playwright-core 1.56.0-alpha-2025-09-21 → 1.56.0-alpha-2025-09-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/reinstall_chrome_beta_mac.sh +1 -1
- package/bin/reinstall_chrome_stable_mac.sh +1 -1
- package/bin/reinstall_msedge_beta_mac.sh +1 -1
- package/bin/reinstall_msedge_dev_mac.sh +1 -1
- package/bin/reinstall_msedge_stable_mac.sh +1 -1
- package/browsers.json +1 -1
- package/lib/client/browserContext.js +1 -7
- package/lib/client/events.js +1 -0
- package/lib/client/page.js +0 -1
- package/lib/generated/injectedScriptSource.js +1 -1
- package/lib/generated/pollingRecorderSource.js +1 -1
- package/lib/protocol/validator.js +0 -3
- package/lib/server/chromium/crBrowser.js +1 -32
- package/lib/server/chromium/crPage.js +2 -6
- package/lib/server/dispatchers/browserContextDispatcher.js +0 -3
- package/lib/server/page.js +4 -4
- package/lib/utils/isomorphic/ariaSnapshot.js +84 -6
- package/lib/vite/recorder/assets/{codeMirrorModule-Ba8ryMC6.js → codeMirrorModule-C3flxtHK.js} +1 -1
- package/lib/vite/recorder/assets/{index-DkR8nwDU.js → index-X8O97QsX.js} +96 -96
- package/lib/vite/recorder/index.html +1 -1
- package/lib/vite/traceViewer/assets/{codeMirrorModule-WgG9VDle.js → codeMirrorModule-BybX26D4.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-D2A3SsO6.js → defaultSettingsView-y2hcyLrw.js} +96 -96
- package/lib/vite/traceViewer/{index.Cd3-kWwE.js → index.KNhKMAYr.js} +1 -1
- package/lib/vite/traceViewer/index.html +2 -2
- package/lib/vite/traceViewer/{uiMode.CasC1El2.js → uiMode.C4ASJG_X.js} +1 -1
- package/lib/vite/traceViewer/uiMode.html +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +6 -35
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-
|
|
2
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function a(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=a(r);fetch(r.href,o)}})();function W0(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-C3flxtHK.js","assets/codeMirrorModule-C3UTv-Ge.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function a(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=a(r);fetch(r.href,o)}})();function W0(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Jr={exports:{}},wa={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModul
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Dg;function I0(){if(Dg)return wa;Dg=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,r,o){var h=null;if(o!==void 0&&(h=""+o),r.key!==void 0&&(h=""+r.key),"key"in r){o={};for(var d in r)d!=="key"&&(o[d]=r[d])}else o=r;return r=o.ref,{$$typeof:u,type:s,key:h,ref:r!==void 0?r:null,props:o}}return wa.Fragment=l,wa.jsx=a,wa.jsxs=a,wa}var
|
|
10
|
+
*/var Dg;function I0(){if(Dg)return wa;Dg=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,r,o){var h=null;if(o!==void 0&&(h=""+o),r.key!==void 0&&(h=""+r.key),"key"in r){o={};for(var d in r)d!=="key"&&(o[d]=r[d])}else o=r;return r=o.ref,{$$typeof:u,type:s,key:h,ref:r!==void 0?r:null,props:o}}return wa.Fragment=l,wa.jsx=a,wa.jsxs=a,wa}var Rg;function F0(){return Rg||(Rg=1,Jr.exports=I0()),Jr.exports}var X=F0(),Wr={exports:{}},fe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.production.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModul
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Rg;function P0(){if(Rg)return fe;Rg=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function N(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function w(A,Y,W){this.props=A,this.context=Y,this.refs=T,this.updater=W||E}w.prototype.isReactComponent={},w.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Y,"setState")},w.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function L(){}L.prototype=w.prototype;function z(A,Y,W){this.props=A,this.context=Y,this.refs=T,this.updater=W||E}var $=z.prototype=new L;$.constructor=z,x($,w.prototype),$.isPureReactComponent=!0;var Q=Array.isArray,G={H:null,A:null,T:null,S:null,V:null},K=Object.prototype.hasOwnProperty;function P(A,Y,W,J,te,ye){return W=ye.ref,{$$typeof:u,type:A,key:Y,ref:W!==void 0?W:null,props:ye}}function V(A,Y){return P(A.type,Y,void 0,void 0,void 0,A.props)}function D(A){return typeof A=="object"&&A!==null&&A.$$typeof===u}function se(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return Y[W]})}var ce=/\/+/g;function q(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?se(""+A.key):Y.toString(36)}function ee(){}function ze(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ee,ee):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function $e(A,Y,W,J,te){var ye=typeof A;(ye==="undefined"||ye==="boolean")&&(A=null);var ue=!1;if(A===null)ue=!0;else switch(ye){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(A.$$typeof){case u:case l:ue=!0;break;case b:return ue=A._init,$e(ue(A._payload),Y,W,J,te)}}if(ue)return te=te(A),ue=J===""?"."+q(A,0):J,Q(te)?(W="",ue!=null&&(W=ue.replace(ce,"$&/")+"/"),$e(te,Y,W,"",function(vn){return vn})):te!=null&&(D(te)&&(te=V(te,W+(te.key==null||A&&A.key===te.key?"":(""+te.key).replace(ce,"$&/")+"/")+ue)),Y.push(te)),1;ue=0;var yt=J===""?".":J+":";if(Q(A))for(var xe=0;xe<A.length;xe++)J=A[xe],ye=yt+q(J,xe),ue+=$e(J,Y,W,ye,te);else if(xe=N(A),typeof xe=="function")for(A=xe.call(A),xe=0;!(J=A.next()).done;)J=J.value,ye=yt+q(J,xe++),ue+=$e(J,Y,W,ye,te);else if(ye==="object"){if(typeof A.then=="function")return $e(ze(A),Y,W,J,te);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ue}function U(A,Y,W){if(A==null)return A;var J=[],te=0;return $e(A,J,"","",function(ye){return Y.call(W,ye,te++)}),J}function Z(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var ie=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function Oe(){}return fe.Children={map:U,forEach:function(A,Y,W){U(A,function(){Y.apply(this,arguments)},W)},count:function(A){var Y=0;return U(A,function(){Y++}),Y},toArray:function(A){return U(A,function(Y){return Y})||[]},only:function(A){if(!D(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},fe.Component=w,fe.Fragment=a,fe.Profiler=r,fe.PureComponent=z,fe.StrictMode=s,fe.Suspense=m,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,fe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return G.H.useMemoCache(A)}},fe.cache=function(A){return function(){return A.apply(null,arguments)}},fe.cloneElement=function(A,Y,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var J=x({},A.props),te=A.key,ye=void 0;if(Y!=null)for(ue in Y.ref!==void 0&&(ye=void 0),Y.key!==void 0&&(te=""+Y.key),Y)!K.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(J[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)J.children=W;else if(1<ue){for(var yt=Array(ue),xe=0;xe<ue;xe++)yt[xe]=arguments[xe+2];J.children=yt}return P(A.type,te,void 0,void 0,ye,J)},fe.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},fe.createElement=function(A,Y,W){var J,te={},ye=null;if(Y!=null)for(J in Y.key!==void 0&&(ye=""+Y.key),Y)K.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=Y[J]);var ue=arguments.length-2;if(ue===1)te.children=W;else if(1<ue){for(var yt=Array(ue),xe=0;xe<ue;xe++)yt[xe]=arguments[xe+2];te.children=yt}if(A&&A.defaultProps)for(J in ue=A.defaultProps,ue)te[J]===void 0&&(te[J]=ue[J]);return P(A,ye,void 0,void 0,null,te)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(A){return{$$typeof:d,render:A}},fe.isValidElement=D,fe.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:Z}},fe.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},fe.startTransition=function(A){var Y=G.T,W={};G.T=W;try{var J=A(),te=G.S;te!==null&&te(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(Oe,ie)}catch(ye){ie(ye)}finally{G.T=Y}},fe.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},fe.use=function(A){return G.H.use(A)},fe.useActionState=function(A,Y,W){return G.H.useActionState(A,Y,W)},fe.useCallback=function(A,Y){return G.H.useCallback(A,Y)},fe.useContext=function(A){return G.H.useContext(A)},fe.useDebugValue=function(){},fe.useDeferredValue=function(A,Y){return G.H.useDeferredValue(A,Y)},fe.useEffect=function(A,Y,W){var J=G.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(A,Y)},fe.useId=function(){return G.H.useId()},fe.useImperativeHandle=function(A,Y,W){return G.H.useImperativeHandle(A,Y,W)},fe.useInsertionEffect=function(A,Y){return G.H.useInsertionEffect(A,Y)},fe.useLayoutEffect=function(A,Y){return G.H.useLayoutEffect(A,Y)},fe.useMemo=function(A,Y){return G.H.useMemo(A,Y)},fe.useOptimistic=function(A,Y){return G.H.useOptimistic(A,Y)},fe.useReducer=function(A,Y,W){return G.H.useReducer(A,Y,W)},fe.useRef=function(A){return G.H.useRef(A)},fe.useState=function(A){return G.H.useState(A)},fe.useSyncExternalStore=function(A,Y,W){return G.H.useSyncExternalStore(A,Y,W)},fe.useTransition=function(){return G.H.useTransition()},fe.version="19.1.1",fe}var kg;function Sf(){return kg||(kg=1,Jr.exports=P0()),Jr.exports}var me=Sf();const ml=W0(me);function rm(){const u=ml.useRef(null),[l,a]=ml.useState(new DOMRect(0,0,10,10));return ml.useLayoutEffect(()=>{const s=u.current;if(!s)return;const r=s.getBoundingClientRect();a(new DOMRect(0,0,r.width,r.height));const o=new ResizeObserver(h=>{const d=h[h.length-1];d&&d.contentRect&&a(d.contentRect)});return o.observe(s),()=>o.disconnect()},[u]),[l,u]}function e1(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const a=l/60;if(a<60)return a.toFixed(1)+"m";const s=a/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function Lg(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function fu(u,l){u&&(l=fl.getObject(u,l));const[a,s]=ml.useState(l),r=ml.useCallback(o=>{u?fl.setObject(u,o):s(o)},[u,s]);return ml.useEffect(()=>{if(u){const o=()=>s(fl.getObject(u,l));return fl.onChangeEmitter.addEventListener(u,o),()=>fl.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[a,r]}class t1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,a){return localStorage[l]||a}setString(l,a){var s;localStorage[l]=a,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,a){if(!localStorage[l])return a;try{return JSON.parse(localStorage[l])}catch{return a}}setObject(l,a){var s;localStorage[l]=JSON.stringify(a),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const fl=new t1;function pl(...u){return u.filter(Boolean).join(" ")}const zg="\\u0000-\\u0020\\u007f-\\u009f",n1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+zg+'"]{2,}[^\\s'+zg+`"')}\\],:;.!?]`,"ug");function l1(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",s=>{s.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",s=>{document.body.classList.add("inactive")},!1);const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode";fl.getString("theme",l)==="dark-mode"&&document.body.classList.add("dark-mode")}const i1=new Set;function a1(){const u=of(),l=u==="dark-mode"?"light-mode":"dark-mode";document.body.classList.remove(u),document.body.classList.add(l),fl.setString("theme",l);for(const a of i1)a(l)}function of(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}function s1(){const[u,l]=ml.useState(of()==="dark-mode");return[u,a=>{of()==="dark-mode"!==a&&a1(),l(a)}]}var Wr={exports:{}},Ea={},Ir={exports:{}},Fr={};/**
|
|
18
|
+
*/var Cg;function P0(){if(Cg)return fe;Cg=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),w=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,b={};function S(E,G,W){this.props=E,this.context=G,this.refs=b,this.updater=W||O}S.prototype.isReactComponent={},S.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,G,"setState")},S.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function C(){}C.prototype=S.prototype;function H(E,G,W){this.props=E,this.context=G,this.refs=b,this.updater=W||O}var q=H.prototype=new C;q.constructor=H,R(q,S.prototype),q.isPureReactComponent=!0;var Y=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function P(E,G,W,J,te,ye){return W=ye.ref,{$$typeof:u,type:E,key:G,ref:W!==void 0?W:null,props:ye}}function V(E,G){return P(E.type,G,void 0,void 0,void 0,E.props)}function x(E){return typeof E=="object"&&E!==null&&E.$$typeof===u}function se(E){var G={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(W){return G[W]})}var ce=/\/+/g;function B(E,G){return typeof E=="object"&&E!==null&&E.key!=null?se(""+E.key):G.toString(36)}function ee(){}function ze(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ee,ee):(E.status="pending",E.then(function(G){E.status==="pending"&&(E.status="fulfilled",E.value=G)},function(G){E.status==="pending"&&(E.status="rejected",E.reason=G)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function $e(E,G,W,J,te){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var ue=!1;if(E===null)ue=!0;else switch(ye){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(E.$$typeof){case u:case l:ue=!0;break;case T:return ue=E._init,$e(ue(E._payload),G,W,J,te)}}if(ue)return te=te(E),ue=J===""?"."+B(E,0):J,Y(te)?(W="",ue!=null&&(W=ue.replace(ce,"$&/")+"/"),$e(te,G,W,"",function(vn){return vn})):te!=null&&(x(te)&&(te=V(te,W+(te.key==null||E&&E.key===te.key?"":(""+te.key).replace(ce,"$&/")+"/")+ue)),G.push(te)),1;ue=0;var yt=J===""?".":J+":";if(Y(E))for(var xe=0;xe<E.length;xe++)J=E[xe],ye=yt+B(J,xe),ue+=$e(J,G,W,ye,te);else if(xe=N(E),typeof xe=="function")for(E=xe.call(E),xe=0;!(J=E.next()).done;)J=J.value,ye=yt+B(J,xe++),ue+=$e(J,G,W,ye,te);else if(ye==="object"){if(typeof E.then=="function")return $e(ze(E),G,W,J,te);throw G=String(E),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(E,G,W){if(E==null)return E;var J=[],te=0;return $e(E,J,"","",function(ye){return G.call(W,ye,te++)}),J}function Z(E){if(E._status===-1){var G=E._result;G=G(),G.then(function(W){(E._status===0||E._status===-1)&&(E._status=1,E._result=W)},function(W){(E._status===0||E._status===-1)&&(E._status=2,E._result=W)}),E._status===-1&&(E._status=0,E._result=G)}if(E._status===1)return E._result.default;throw E._result}var ie=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=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(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function Oe(){}return fe.Children={map:z,forEach:function(E,G,W){z(E,function(){G.apply(this,arguments)},W)},count:function(E){var G=0;return z(E,function(){G++}),G},toArray:function(E){return z(E,function(G){return G})||[]},only:function(E){if(!x(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},fe.Component=S,fe.Fragment=a,fe.Profiler=r,fe.PureComponent=H,fe.StrictMode=s,fe.Suspense=g,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,fe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return K.H.useMemoCache(E)}},fe.cache=function(E){return function(){return E.apply(null,arguments)}},fe.cloneElement=function(E,G,W){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=R({},E.props),te=E.key,ye=void 0;if(G!=null)for(ue in G.ref!==void 0&&(ye=void 0),G.key!==void 0&&(te=""+G.key),G)!Q.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(J[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)J.children=W;else if(1<ue){for(var yt=Array(ue),xe=0;xe<ue;xe++)yt[xe]=arguments[xe+2];J.children=yt}return P(E.type,te,void 0,void 0,ye,J)},fe.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:o,_context:E},E},fe.createElement=function(E,G,W){var J,te={},ye=null;if(G!=null)for(J in G.key!==void 0&&(ye=""+G.key),G)Q.call(G,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=G[J]);var ue=arguments.length-2;if(ue===1)te.children=W;else if(1<ue){for(var yt=Array(ue),xe=0;xe<ue;xe++)yt[xe]=arguments[xe+2];te.children=yt}if(E&&E.defaultProps)for(J in ue=E.defaultProps,ue)te[J]===void 0&&(te[J]=ue[J]);return P(E,ye,void 0,void 0,null,te)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(E){return{$$typeof:d,render:E}},fe.isValidElement=x,fe.lazy=function(E){return{$$typeof:T,_payload:{_status:-1,_result:E},_init:Z}},fe.memo=function(E,G){return{$$typeof:p,type:E,compare:G===void 0?null:G}},fe.startTransition=function(E){var G=K.T,W={};K.T=W;try{var J=E(),te=K.S;te!==null&&te(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(Oe,ie)}catch(ye){ie(ye)}finally{K.T=G}},fe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},fe.use=function(E){return K.H.use(E)},fe.useActionState=function(E,G,W){return K.H.useActionState(E,G,W)},fe.useCallback=function(E,G){return K.H.useCallback(E,G)},fe.useContext=function(E){return K.H.useContext(E)},fe.useDebugValue=function(){},fe.useDeferredValue=function(E,G){return K.H.useDeferredValue(E,G)},fe.useEffect=function(E,G,W){var J=K.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(E,G)},fe.useId=function(){return K.H.useId()},fe.useImperativeHandle=function(E,G,W){return K.H.useImperativeHandle(E,G,W)},fe.useInsertionEffect=function(E,G){return K.H.useInsertionEffect(E,G)},fe.useLayoutEffect=function(E,G){return K.H.useLayoutEffect(E,G)},fe.useMemo=function(E,G){return K.H.useMemo(E,G)},fe.useOptimistic=function(E,G){return K.H.useOptimistic(E,G)},fe.useReducer=function(E,G,W){return K.H.useReducer(E,G,W)},fe.useRef=function(E){return K.H.useRef(E)},fe.useState=function(E){return K.H.useState(E)},fe.useSyncExternalStore=function(E,G,W){return K.H.useSyncExternalStore(E,G,W)},fe.useTransition=function(){return K.H.useTransition()},fe.version="19.1.1",fe}var kg;function Sf(){return kg||(kg=1,Wr.exports=P0()),Wr.exports}var me=Sf();const ml=W0(me);function rm(){const u=ml.useRef(null),[l,a]=ml.useState(new DOMRect(0,0,10,10));return ml.useLayoutEffect(()=>{const s=u.current;if(!s)return;const r=s.getBoundingClientRect();a(new DOMRect(0,0,r.width,r.height));const o=new ResizeObserver(h=>{const d=h[h.length-1];d&&d.contentRect&&a(d.contentRect)});return o.observe(s),()=>o.disconnect()},[u]),[l,u]}function e1(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const a=l/60;if(a<60)return a.toFixed(1)+"m";const s=a/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function Lg(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function ou(u,l){u&&(l=fl.getObject(u,l));const[a,s]=ml.useState(l),r=ml.useCallback(o=>{u?fl.setObject(u,o):s(o)},[u,s]);return ml.useEffect(()=>{if(u){const o=()=>s(fl.getObject(u,l));return fl.onChangeEmitter.addEventListener(u,o),()=>fl.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[a,r]}class t1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,a){return localStorage[l]||a}setString(l,a){var s;localStorage[l]=a,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,a){if(!localStorage[l])return a;try{return JSON.parse(localStorage[l])}catch{return a}}setObject(l,a){var s;localStorage[l]=JSON.stringify(a),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const fl=new t1;function pl(...u){return u.filter(Boolean).join(" ")}const zg="\\u0000-\\u0020\\u007f-\\u009f",n1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+zg+'"]{2,}[^\\s'+zg+`"')}\\],:;.!?]`,"ug");function l1(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",s=>{s.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",s=>{document.body.classList.add("inactive")},!1);const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode";fl.getString("theme",l)==="dark-mode"&&document.body.classList.add("dark-mode")}const i1=new Set;function a1(){const u=of(),l=u==="dark-mode"?"light-mode":"dark-mode";document.body.classList.remove(u),document.body.classList.add(l),fl.setString("theme",l);for(const a of i1)a(l)}function of(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}function s1(){const[u,l]=ml.useState(of()==="dark-mode");return[u,a=>{of()==="dark-mode"!==a&&a1(),l(a)}]}var Ir={exports:{}},Ea={},Fr={exports:{}},Pr={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModul
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Ug;function u1(){return Ug||(Ug=1,(function(u){function l(
|
|
26
|
+
*/var Ug;function u1(){return Ug||(Ug=1,(function(u){function l(z,Z){var ie=z.length;z.push(Z);e:for(;0<ie;){var Oe=ie-1>>>1,E=z[Oe];if(0<r(E,Z))z[Oe]=Z,z[ie]=E,ie=Oe;else break e}}function a(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var Z=z[0],ie=z.pop();if(ie!==Z){z[0]=ie;e:for(var Oe=0,E=z.length,G=E>>>1;Oe<G;){var W=2*(Oe+1)-1,J=z[W],te=W+1,ye=z[te];if(0>r(J,ie))te<E&&0>r(ye,J)?(z[Oe]=ye,z[te]=ie,Oe=te):(z[Oe]=J,z[W]=ie,Oe=W);else if(te<E&&0>r(ye,ie))z[Oe]=ye,z[te]=ie,Oe=te;else break e}}return Z}function r(z,Z){var ie=z.sortIndex-Z.sortIndex;return ie!==0?ie:z.id-Z.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;u.unstable_now=function(){return o.now()}}else{var h=Date,d=h.now();u.unstable_now=function(){return h.now()-d}}var g=[],p=[],T=1,w=null,N=3,O=!1,R=!1,b=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Y(z){for(var Z=a(p);Z!==null;){if(Z.callback===null)s(p);else if(Z.startTime<=z)s(p),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=a(p)}}function K(z){if(b=!1,Y(z),!R)if(a(g)!==null)R=!0,Q||(Q=!0,B());else{var Z=a(p);Z!==null&&$e(K,Z.startTime-z)}}var Q=!1,P=-1,V=5,x=-1;function se(){return S?!0:!(u.unstable_now()-x<V)}function ce(){if(S=!1,Q){var z=u.unstable_now();x=z;var Z=!0;try{e:{R=!1,b&&(b=!1,H(P),P=-1),O=!0;var ie=N;try{t:{for(Y(z),w=a(g);w!==null&&!(w.expirationTime>z&&se());){var Oe=w.callback;if(typeof Oe=="function"){w.callback=null,N=w.priorityLevel;var E=Oe(w.expirationTime<=z);if(z=u.unstable_now(),typeof E=="function"){w.callback=E,Y(z),Z=!0;break t}w===a(g)&&s(g),Y(z)}else s(g);w=a(g)}if(w!==null)Z=!0;else{var G=a(p);G!==null&&$e(K,G.startTime-z),Z=!1}}break e}finally{w=null,N=ie,O=!1}Z=void 0}}finally{Z?B():Q=!1}}}var B;if(typeof q=="function")B=function(){q(ce)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ze=ee.port2;ee.port1.onmessage=ce,B=function(){ze.postMessage(null)}}else B=function(){C(ce,0)};function $e(z,Z){P=C(function(){z(u.unstable_now())},Z)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(z){z.callback=null},u.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<z?Math.floor(1e3/z):5},u.unstable_getCurrentPriorityLevel=function(){return N},u.unstable_next=function(z){switch(N){case 1:case 2:case 3:var Z=3;break;default:Z=N}var ie=N;N=Z;try{return z()}finally{N=ie}},u.unstable_requestPaint=function(){S=!0},u.unstable_runWithPriority=function(z,Z){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ie=N;N=z;try{return Z()}finally{N=ie}},u.unstable_scheduleCallback=function(z,Z,ie){var Oe=u.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Oe+ie:Oe):ie=Oe,z){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=ie+E,z={id:T++,callback:Z,priorityLevel:z,startTime:ie,expirationTime:E,sortIndex:-1},ie>Oe?(z.sortIndex=ie,l(p,z),a(g)===null&&z===a(p)&&(b?(H(P),P=-1):b=!0,$e(K,ie-Oe))):(z.sortIndex=E,l(g,z),R||O||(R=!0,Q||(Q=!0,B()))),z},u.unstable_shouldYield=se,u.unstable_wrapCallback=function(z){var Z=N;return function(){var ie=N;N=Z;try{return z.apply(this,arguments)}finally{N=ie}}}})(Pr)),Pr}var Bg;function c1(){return Bg||(Bg=1,Fr.exports=u1()),Fr.exports}var ef={exports:{}},it={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.js
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModul
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var qg;function r1(){if(qg)return it;qg=1;var u=Sf();function l(
|
|
34
|
+
*/var qg;function r1(){if(qg)return it;qg=1;var u=Sf();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)p+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(g,p,T){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:w==null?null:""+w,children:g,containerInfo:p,implementation:T}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,it.createPortal=function(g,p){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(g,p,null,T)},it.flushSync=function(g){var p=h.T,T=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=T,s.d.f()}},it.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},it.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},it.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var T=p.as,w=d(T,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;T==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:w,integrity:N,fetchPriority:O}):T==="script"&&s.d.X(g,{crossOrigin:w,integrity:N,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var T=d(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},it.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var T=p.as,w=d(T,p.crossOrigin);s.d.L(g,T,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(g,p){if(typeof g=="string")if(p){var T=d(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},it.requestFormReset=function(g){s.d.r(g)},it.unstable_batchedUpdates=function(g,p){return g(p)},it.useFormState=function(g,p,T){return h.H.useFormState(g,p,T)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.1.1",it}var jg;function f1(){if(jg)return ef.exports;jg=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),ef.exports=r1(),ef.exports}/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-dom-client.production.js
|
|
37
37
|
*
|
|
@@ -39,99 +39,99 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModul
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Hg;function o1(){if(Hg)return Ea;Hg=1;var u=c1(),l=Sf(),a=f1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 d(e){if(o(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var f=c.alternate;if(f===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===n)return d(c),e;if(f===i)return d(c),t;f=f.sibling}throw Error(s(188))}if(n.return!==i.return)n=c,i=f;else{for(var g=!1,y=c.child;y;){if(y===n){g=!0,n=c,i=f;break}if(y===i){g=!0,i=c,n=f;break}y=y.sibling}if(!g){for(y=f.child;y;){if(y===n){g=!0,n=f,i=c;break}if(y===i){g=!0,i=f,n=c;break}y=y.sibling}if(!g)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),$=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case w:return"Profiler";case T:return"StrictMode";case G:return"Suspense";case K:return"SuspenseList";case D:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case $:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var $e=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Oe=[],A=-1;function Y(e){return{current:e}}function W(e){0>A||(e.current=Oe[A],Oe[A]=null,A--)}function J(e,t){A++,Oe[A]=e.current,e.current=t}var te=Y(null),ye=Y(null),ue=Y(null),yt=Y(null);function xe(e,t){switch(J(ue,t),J(ye,e),J(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ig(t),e=ag(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(te),J(te,e)}function vn(){W(te),W(ye),W(ue)}function ku(e){e.memoizedState!==null&&J(yt,e);var t=te.current,n=ag(t,e.type);t!==n&&(J(ye,e),J(te,n))}function za(e){ye.current===e&&(W(te),W(ye)),yt.current===e&&(W(yt),ya._currentValue=ie)}var Lu=Object.prototype.hasOwnProperty,zu=u.unstable_scheduleCallback,Uu=u.unstable_cancelCallback,Mp=u.unstable_shouldYield,xp=u.unstable_requestPaint,Vt=u.unstable_now,Dp=u.unstable_getCurrentPriorityLevel,Bf=u.unstable_ImmediatePriority,qf=u.unstable_UserBlockingPriority,Ua=u.unstable_NormalPriority,Cp=u.unstable_LowPriority,jf=u.unstable_IdlePriority,Rp=u.log,kp=u.unstable_setDisableYieldValue,Oi=null,vt=null;function bn(e){if(typeof Rp=="function"&&kp(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Oi,e)}catch{}}var bt=Math.clz32?Math.clz32:Up,Lp=Math.log,zp=Math.LN2;function Up(e){return e>>>=0,e===0?32:31-(Lp(e)/zp|0)|0}var Ba=256,qa=4194304;function Qn(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 ja(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var c=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~f,i!==0?c=Qn(i):(g&=y,g!==0?c=Qn(g):n||(n=y&~e,n!==0&&(c=Qn(n))))):(y=i&~f,y!==0?c=Qn(y):g!==0?c=Qn(g):n||(n=i&~e,n!==0&&(c=Qn(n)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:c}function Ni(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bp(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 Hf(){var e=Ba;return Ba<<=1,(Ba&4194048)===0&&(Ba=256),e}function $f(){var e=qa;return qa<<=1,(qa&62914560)===0&&(qa=4194304),e}function Bu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _i(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qp(e,t,n,i,c,f){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,v=e.expirationTimes,C=e.hiddenUpdates;for(n=g&~n;0<n;){var B=31-bt(n),H=1<<B;y[B]=0,v[B]=-1;var R=C[B];if(R!==null)for(C[B]=null,B=0;B<R.length;B++){var k=R[B];k!==null&&(k.lane&=-536870913)}n&=~H}i!==0&&Yf(e,i,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function Yf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-bt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function Gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-bt(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}function qu(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 ju(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Kf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Ag(e.type))}function jp(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Sn=Math.random().toString(36).slice(2),nt="__reactFiber$"+Sn,rt="__reactProps$"+Sn,Sl="__reactContainer$"+Sn,Hu="__reactEvents$"+Sn,Hp="__reactListeners$"+Sn,$p="__reactHandles$"+Sn,Vf="__reactResources$"+Sn,Mi="__reactMarker$"+Sn;function $u(e){delete e[nt],delete e[rt],delete e[Hu],delete e[Hp],delete e[$p]}function Tl(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sl]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=rg(e);e!==null;){if(n=e[nt])return n;e=rg(e)}return t}e=n,n=e.parentNode}return null}function wl(e){if(e=e[nt]||e[Sl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function El(e){var t=e[Vf];return t||(t=e[Vf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Mi]=!0}var Qf=new Set,Xf={};function Xn(e,t){Al(e,t),Al(e+"Capture",t)}function Al(e,t){for(Xf[e]=t,e=0;e<t.length;e++)Qf.add(t[e])}var Yp=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]*$"),Zf={},Jf={};function Gp(e){return Lu.call(Jf,e)?!0:Lu.call(Zf,e)?!1:Yp.test(e)?Jf[e]=!0:(Zf[e]=!0,!1)}function Ha(e,t,n){if(Gp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function $a(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Yu,Wf;function Ol(e){if(Yu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yu=t&&t[1]||"",Wf=-1<n.stack.indexOf(`
|
|
42
|
+
*/var Hg;function o1(){if(Hg)return Ea;Hg=1;var u=c1(),l=Sf(),a=f1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 d(e){if(o(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var f=c.alternate;if(f===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===n)return d(c),e;if(f===i)return d(c),t;f=f.sibling}throw Error(s(188))}if(n.return!==i.return)n=c,i=f;else{for(var m=!1,y=c.child;y;){if(y===n){m=!0,n=c,i=f;break}if(y===i){m=!0,i=c,n=f;break}y=y.sibling}if(!m){for(y=f.child;y;){if(y===n){m=!0,n=f,i=c;break}if(y===i){m=!0,i=f,n=c;break}y=y.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),H=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case S:return"Profiler";case b:return"StrictMode";case K:return"Suspense";case Q:return"SuspenseList";case x:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case q:return(e.displayName||"Context")+".Provider";case H:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var $e=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Oe=[],E=-1;function G(e){return{current:e}}function W(e){0>E||(e.current=Oe[E],Oe[E]=null,E--)}function J(e,t){E++,Oe[E]=e.current,e.current=t}var te=G(null),ye=G(null),ue=G(null),yt=G(null);function xe(e,t){switch(J(ue,t),J(ye,e),J(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ig(t),e=ag(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(te),J(te,e)}function vn(){W(te),W(ye),W(ue)}function Lu(e){e.memoizedState!==null&&J(yt,e);var t=te.current,n=ag(t,e.type);t!==n&&(J(ye,e),J(te,n))}function za(e){ye.current===e&&(W(te),W(ye)),yt.current===e&&(W(yt),ya._currentValue=ie)}var zu=Object.prototype.hasOwnProperty,Uu=u.unstable_scheduleCallback,Bu=u.unstable_cancelCallback,Mp=u.unstable_shouldYield,xp=u.unstable_requestPaint,Vt=u.unstable_now,Dp=u.unstable_getCurrentPriorityLevel,Bf=u.unstable_ImmediatePriority,qf=u.unstable_UserBlockingPriority,Ua=u.unstable_NormalPriority,Rp=u.unstable_LowPriority,jf=u.unstable_IdlePriority,Cp=u.log,kp=u.unstable_setDisableYieldValue,Oi=null,vt=null;function bn(e){if(typeof Cp=="function"&&kp(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Oi,e)}catch{}}var bt=Math.clz32?Math.clz32:Up,Lp=Math.log,zp=Math.LN2;function Up(e){return e>>>=0,e===0?32:31-(Lp(e)/zp|0)|0}var Ba=256,qa=4194304;function Qn(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 ja(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var c=0,f=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~f,i!==0?c=Qn(i):(m&=y,m!==0?c=Qn(m):n||(n=y&~e,n!==0&&(c=Qn(n))))):(y=i&~f,y!==0?c=Qn(y):m!==0?c=Qn(m):n||(n=i&~e,n!==0&&(c=Qn(n)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:c}function Ni(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bp(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 Hf(){var e=Ba;return Ba<<=1,(Ba&4194048)===0&&(Ba=256),e}function $f(){var e=qa;return qa<<=1,(qa&62914560)===0&&(qa=4194304),e}function qu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _i(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qp(e,t,n,i,c,f){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,v=e.expirationTimes,D=e.hiddenUpdates;for(n=m&~n;0<n;){var U=31-bt(n),$=1<<U;y[U]=0,v[U]=-1;var k=D[U];if(k!==null)for(D[U]=null,U=0;U<k.length;U++){var L=k[U];L!==null&&(L.lane&=-536870913)}n&=~$}i!==0&&Yf(e,i,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(m&~t))}function Yf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-bt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function Gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-bt(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}function ju(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 Hu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Kf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Ag(e.type))}function jp(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Sn=Math.random().toString(36).slice(2),nt="__reactFiber$"+Sn,rt="__reactProps$"+Sn,Sl="__reactContainer$"+Sn,$u="__reactEvents$"+Sn,Hp="__reactListeners$"+Sn,$p="__reactHandles$"+Sn,Vf="__reactResources$"+Sn,Mi="__reactMarker$"+Sn;function Yu(e){delete e[nt],delete e[rt],delete e[$u],delete e[Hp],delete e[$p]}function Tl(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sl]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=rg(e);e!==null;){if(n=e[nt])return n;e=rg(e)}return t}e=n,n=e.parentNode}return null}function wl(e){if(e=e[nt]||e[Sl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function El(e){var t=e[Vf];return t||(t=e[Vf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Mi]=!0}var Qf=new Set,Xf={};function Xn(e,t){Al(e,t),Al(e+"Capture",t)}function Al(e,t){for(Xf[e]=t,e=0;e<t.length;e++)Qf.add(t[e])}var Yp=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]*$"),Zf={},Jf={};function Gp(e){return zu.call(Jf,e)?!0:zu.call(Zf,e)?!1:Yp.test(e)?Jf[e]=!0:(Zf[e]=!0,!1)}function Ha(e,t,n){if(Gp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function $a(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Gu,Wf;function Ol(e){if(Gu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gu=t&&t[1]||"",Wf=-1<n.stack.indexOf(`
|
|
43
43
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+
|
|
45
|
-
`),
|
|
46
|
-
`);for(c=i=0;i<v.length&&!v[i].includes("DetermineComponentFrameRoot");)i++;for(;c<
|
|
47
|
-
`+v[i].replace(" at new "," at ");return e.displayName&&
|
|
44
|
+
`+Gu+e+Wf}var Ku=!1;function Vu(e,t){if(!e||Ku)return"";Ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={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(L){var k=L}Reflect.construct(e,[],$)}else{try{$.call()}catch(L){k=L}e.call($.prototype)}}else{try{throw Error()}catch(L){k=L}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),m=f[0],y=f[1];if(m&&y){var v=m.split(`
|
|
45
|
+
`),D=y.split(`
|
|
46
|
+
`);for(c=i=0;i<v.length&&!v[i].includes("DetermineComponentFrameRoot");)i++;for(;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;if(i===v.length||c===D.length)for(i=v.length-1,c=D.length-1;1<=i&&0<=c&&v[i]!==D[c];)c--;for(;1<=i&&0<=c;i--,c--)if(v[i]!==D[c]){if(i!==1||c!==1)do if(i--,c--,0>c||v[i]!==D[c]){var U=`
|
|
47
|
+
`+v[i].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=i&&0<=c);break}}}finally{Ku=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ol(n):""}function Kp(e){switch(e.tag){case 26:case 27:case 5:return Ol(e.type);case 16:return Ol("Lazy");case 13:return Ol("Suspense");case 19:return Ol("SuspenseList");case 0:case 15:return Vu(e.type,!1);case 11:return Vu(e.type.render,!1);case 1:return Vu(e.type,!0);case 31:return Ol("Activity");default:return""}}function If(e){try{var t="";do t+=Kp(e),e=e.return;while(e);return t}catch(n){return`
|
|
48
48
|
Error generating stack: `+n.message+`
|
|
49
|
-
`+n.stack}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vp(e){var t=Ff(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,f=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){i=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ya(e){e._valueTracker||(e._valueTracker=Vp(e))}function Pf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ff(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ga(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 Qp=/[\n"\\]/g;function Dt(e){return e.replace(Qp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vu(e,t,n,i,c,f,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Qu(e,g,xt(t)):n!=null?Qu(e,g,xt(n)):i!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+xt(y):e.removeAttribute("name")}function eo(e,t,n,i,c,f,g,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;n=n!=null?""+xt(n):"",t=t!=null?""+xt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Qu(e,t,n){t==="number"&&Ga(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Nl(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{for(n=""+xt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function to(e,t,n){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+xt(n):""}function no(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if($e(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function _l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xp=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 lo(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Xp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function io(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&n[c]!==i&&lo(e,c,i)}else for(var f in t)t.hasOwnProperty(f)&&lo(e,f,t[f])}function Xu(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 Zp=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-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"]]),Jp=/^[\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 Ka(e){return Jp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Zu=null;function Ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,xl=null;function ao(e){var t=wl(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Dt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=i[rt]||null;if(!c)throw Error(s(90));Vu(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Pf(i)}break e;case"textarea":to(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Nl(e,!!n.multiple,t,!1)}}}var Wu=!1;function so(e,t,n){if(Wu)return e(t,n);Wu=!0;try{var i=e(t);return i}finally{if(Wu=!1,(Ml!==null||xl!==null)&&(xs(),Ml&&(t=Ml,e=xl,xl=Ml=null,ao(t),e)))for(t=0;t<e.length;t++)ao(e[t])}}function Di(e,t){var n=e.stateNode;if(n===null)return null;var i=n[rt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Iu=!1;if(en)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{Iu=!1}var Tn=null,Fu=null,Va=null;function uo(){if(Va)return Va;var e,t=Fu,n=t.length,i,c="value"in Tn?Tn.value:Tn.textContent,f=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(i=1;i<=g&&t[n-i]===c[f-i];i++);return Va=c.slice(e,1<i?1-i:void 0)}function Qa(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 Xa(){return!0}function co(){return!1}function ft(e){function t(n,i,c,f,g){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Xa:co,this.isPropagationStopped=co,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xa)},persist:function(){},isPersistent:Xa}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Za=ft(Zn),Ri=b({},Zn,{view:0,detail:0}),Wp=ft(Ri),Pu,ec,ki,Ja=b({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,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!==ki&&(ki&&e.type==="mousemove"?(Pu=e.screenX-ki.screenX,ec=e.screenY-ki.screenY):ec=Pu=0,ki=e),Pu)},movementY:function(e){return"movementY"in e?e.movementY:ec}}),ro=ft(Ja),Ip=b({},Ja,{dataTransfer:0}),Fp=ft(Ip),Pp=b({},Ri,{relatedTarget:0}),tc=ft(Pp),ey=b({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=ft(ey),ny=b({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ly=ft(ny),iy=b({},Zn,{data:0}),fo=ft(iy),ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sy={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"},uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uy[e])?!!t[e]:!1}function nc(){return cy}var ry=b({},Ri,{key:function(e){if(e.key){var t=ay[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fy=ft(ry),oy=b({},Ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oo=ft(oy),hy=b({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),dy=ft(hy),gy=b({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),my=ft(gy),py=b({},Ja,{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}),yy=ft(py),vy=b({},Zn,{newState:0,oldState:0}),by=ft(vy),Sy=[9,13,27,32],lc=en&&"CompositionEvent"in window,Li=null;en&&"documentMode"in document&&(Li=document.documentMode);var Ty=en&&"TextEvent"in window&&!Li,ho=en&&(!lc||Li&&8<Li&&11>=Li),go=" ",mo=!1;function po(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function wy(e,t){switch(e){case"compositionend":return yo(t);case"keypress":return t.which!==32?null:(mo=!0,go);case"textInput":return e=t.data,e===go&&mo?null:e;default:return null}}function Ey(e,t){if(Dl)return e==="compositionend"||!lc&&po(e,t)?(e=uo(),Va=Fu=Tn=null,Dl=!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 ho&&t.locale!=="ko"?null:t.data;default:return null}}var Ay={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 vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ay[e.type]:t==="textarea"}function bo(e,t,n,i){Ml?xl?xl.push(i):xl=[i]:Ml=i,t=zs(t,"onChange"),0<t.length&&(n=new Za("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var zi=null,Ui=null;function Oy(e){Pd(e,0)}function Wa(e){var t=xi(e);if(Pf(t))return e}function So(e,t){if(e==="change")return t}var To=!1;if(en){var ic;if(en){var ac="oninput"in document;if(!ac){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),ac=typeof wo.oninput=="function"}ic=ac}else ic=!1;To=ic&&(!document.documentMode||9<document.documentMode)}function Eo(){zi&&(zi.detachEvent("onpropertychange",Ao),Ui=zi=null)}function Ao(e){if(e.propertyName==="value"&&Wa(Ui)){var t=[];bo(t,Ui,e,Ju(e)),so(Oy,t)}}function Ny(e,t,n){e==="focusin"?(Eo(),zi=t,Ui=n,zi.attachEvent("onpropertychange",Ao)):e==="focusout"&&Eo()}function _y(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wa(Ui)}function My(e,t){if(e==="click")return Wa(t)}function xy(e,t){if(e==="input"||e==="change")return Wa(t)}function Dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Dy;function Bi(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var c=n[i];if(!Lu.call(t,c)||!St(e[c],t[c]))return!1}return!0}function Oo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function No(e,t){var n=Oo(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oo(n)}}function _o(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_o(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ga(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ga(e.document)}return t}function sc(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 Cy=en&&"documentMode"in document&&11>=document.documentMode,Cl=null,uc=null,qi=null,cc=!1;function xo(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Cl==null||Cl!==Ga(i)||(i=Cl,"selectionStart"in i&&sc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),qi&&Bi(qi,i)||(qi=i,i=zs(uc,"onSelect"),0<i.length&&(t=new Za("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Cl)))}function Jn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rl={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},rc={},Do={};en&&(Do=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function Wn(e){if(rc[e])return rc[e];if(!Rl[e])return e;var t=Rl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Do)return rc[e]=t[n];return e}var Co=Wn("animationend"),Ro=Wn("animationiteration"),ko=Wn("animationstart"),Ry=Wn("transitionrun"),ky=Wn("transitionstart"),Ly=Wn("transitioncancel"),Lo=Wn("transitionend"),zo=new Map,fc="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(" ");fc.push("scrollEnd");function Ht(e,t){zo.set(e,t),Xn(t,[e])}var Uo=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var n=Uo.get(e);return n!==void 0?n:(t={value:e,source:t,stack:If(t)},Uo.set(e,t),t)}return{value:e,source:t,stack:If(t)}}var Rt=[],kl=0,oc=0;function Ia(){for(var e=kl,t=oc=kl=0;t<e;){var n=Rt[t];Rt[t++]=null;var i=Rt[t];Rt[t++]=null;var c=Rt[t];Rt[t++]=null;var f=Rt[t];if(Rt[t++]=null,i!==null&&c!==null){var g=i.pending;g===null?c.next=c:(c.next=g.next,g.next=c),i.pending=c}f!==0&&Bo(n,c,f)}}function Fa(e,t,n,i){Rt[kl++]=e,Rt[kl++]=t,Rt[kl++]=n,Rt[kl++]=i,oc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function hc(e,t,n,i){return Fa(e,t,n,i),Pa(e)}function Ll(e,t){return Fa(e,null,null,t),Pa(e)}function Bo(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var c=!1,f=e.return;f!==null;)f.childLanes|=n,i=f.alternate,i!==null&&(i.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-bt(n),e=f.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=n|536870912),f):null}function Pa(e){if(50<ra)throw ra=0,vr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zl={};function zy(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,i){return new zy(e,t,n,i)}function dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function qo(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function es(e,t,n,i,c,f){var g=0;if(i=e,typeof e=="function")dc(e)&&(g=1);else if(typeof e=="string")g=B0(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case D:return e=Tt(31,n,t,c),e.elementType=D,e.lanes=f,e;case x:return In(n.children,c,f,t);case T:g=8,c|=24;break;case w:return e=Tt(12,n,t,c|2),e.elementType=w,e.lanes=f,e;case G:return e=Tt(13,n,t,c),e.elementType=G,e.lanes=f,e;case K:return e=Tt(19,n,t,c),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:case $:g=10;break e;case z:g=9;break e;case Q:g=11;break e;case P:g=14;break e;case V:g=16,i=null;break e}g=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=Tt(g,n,t,c),t.elementType=e,t.type=i,t.lanes=f,t}function In(e,t,n,i){return e=Tt(7,e,i,t),e.lanes=n,e}function gc(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function mc(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ul=[],Bl=0,ts=null,ns=0,kt=[],Lt=0,Fn=null,nn=1,ln="";function Pn(e,t){Ul[Bl++]=ns,Ul[Bl++]=ts,ts=e,ns=t}function jo(e,t,n){kt[Lt++]=nn,kt[Lt++]=ln,kt[Lt++]=Fn,Fn=e;var i=nn;e=ln;var c=32-bt(i)-1;i&=~(1<<c),n+=1;var f=32-bt(t)+c;if(30<f){var g=c-c%5;f=(i&(1<<g)-1).toString(32),i>>=g,c-=g,nn=1<<32-bt(t)+c|n<<c|i,ln=f+e}else nn=1<<f|n<<c|i,ln=e}function pc(e){e.return!==null&&(Pn(e,1),jo(e,1,0))}function yc(e){for(;e===ts;)ts=Ul[--Bl],Ul[Bl]=null,ns=Ul[--Bl],Ul[Bl]=null;for(;e===Fn;)Fn=kt[--Lt],kt[Lt]=null,ln=kt[--Lt],kt[Lt]=null,nn=kt[--Lt],kt[Lt]=null}var ut=null,Ue=null,be=!1,el=null,Qt=!1,vc=Error(s(519));function tl(e){var t=Error(s(418,""));throw $i(Ct(t,e)),vc}function Ho(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[nt]=e,t[rt]=i,n){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(n=0;n<oa.length;n++)ge(oa[n],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),eo(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Ya(t);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),no(t,i.value,i.defaultValue,i.children),Ya(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||lg(t.textContent,n)?(i.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),i.onScroll!=null&&ge("scroll",t),i.onScrollEnd!=null&&ge("scrollend",t),i.onClick!=null&&(t.onclick=Us),t=!0):t=!1,t||tl(e)}function $o(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:ut=ut.return}}function ji(e){if(e!==ut)return!1;if(!be)return $o(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lr(e.type,e.memoizedProps)),n=!n),n&&Ue&&tl(e),$o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Ue=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,Bn(e.type)?(e=qr,qr=null,Ue=e):Ue=t):Ue=ut?Yt(e.stateNode.nextSibling):null;return!0}function Hi(){Ue=ut=null,be=!1}function Yo(){var e=el;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),el=null),e}function $i(e){el===null?el=[e]:el.push(e)}var bc=Y(null),nl=null,an=null;function wn(e,t,n){J(bc,t._currentValue),t._currentValue=n}function sn(e){e._currentValue=bc.current,W(bc)}function Sc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Tc(e,t,n,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var g=c.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=c;for(var v=0;v<t.length;v++)if(y.context===t[v]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),Sc(f.return,n,e),i||(g=null);break e}f=y.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(s(341));g.lanes|=n,f=g.alternate,f!==null&&(f.lanes|=n),Sc(g,n,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Yi(e,t,n,i){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var y=c.type;St(c.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(c===yt.current){if(g=c.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ya):e=[ya])}c=c.return}e!==null&&Tc(t,e,n,i),t.flags|=262144}function ls(e){for(e=e.firstContext;e!==null;){if(!St(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ll(e){nl=e,an=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Go(nl,e)}function is(e,t){return nl===null&&ll(e),Go(e,t)}function Go(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},an===null){if(e===null)throw Error(s(308));an=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else an=an.next=t;return n}var Uy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},By=u.unstable_scheduleCallback,qy=u.unstable_NormalPriority,Ve={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wc(){return{controller:new Uy,data:new Map,refCount:0}}function Gi(e){e.refCount--,e.refCount===0&&By(qy,function(){e.controller.abort()})}var Ki=null,Ec=0,ql=0,jl=null;function jy(e,t){if(Ki===null){var n=Ki=[];Ec=0,ql=Or(),jl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ec++,t.then(Ko,Ko),t}function Ko(){if(--Ec===0&&Ki!==null){jl!==null&&(jl.status="fulfilled");var e=Ki;Ki=null,ql=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hy(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),i}var Vo=U.S;U.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&jy(e,t),Vo!==null&&Vo(e,t)};var il=Y(null);function Ac(){var e=il.current;return e!==null?e:Me.pooledCache}function as(e,t){t===null?J(il,il.current):J(il,t.pool)}function Qo(){var e=Ac();return e===null?null:{parent:Ve._currentValue,pool:e}}var Vi=Error(s(460)),Xo=Error(s(474)),ss=Error(s(542)),Oc={then:function(){}};function Zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function us(){}function Jo(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(us,us),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Io(e),e;default:if(typeof t.status=="string")t.then(us,us);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Io(e),e}throw Qi=t,Vi}}var Qi=null;function Wo(){if(Qi===null)throw Error(s(459));var e=Qi;return Qi=null,e}function Io(e){if(e===Vi||e===ss)throw Error(s(483))}var En=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(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 An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Se&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Pa(e),Bo(e,null,n),t}return Fa(e,i,t,n),Pa(e)}function Xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gf(e,n)}}function Mc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?c=f=g:f=f.next=g,n=n.next}while(n!==null);f===null?c=f=t:f=f.next=t}else c=f=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xc=!1;function Zi(){if(xc){var e=jl;if(e!==null)throw e}}function Ji(e,t,n,i){xc=!1;var c=e.updateQueue;En=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var v=y,C=v.next;v.next=null,g===null?f=C:g.next=C,g=v;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==g&&(y===null?B.firstBaseUpdate=C:y.next=C,B.lastBaseUpdate=v))}if(f!==null){var H=c.baseState;g=0,B=C=v=null,y=f;do{var R=y.lane&-536870913,k=R!==y.lane;if(k?(pe&R)===R:(i&R)===R){R!==0&&R===ql&&(xc=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ae=e,ne=y;R=t;var Ae=n;switch(ne.tag){case 1:if(ae=ne.payload,typeof ae=="function"){H=ae.call(Ae,H,R);break e}H=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ne.payload,R=typeof ae=="function"?ae.call(Ae,H,R):ae,R==null)break e;H=b({},H,R);break e;case 2:En=!0}}R=y.callback,R!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[R]:k.push(R))}else k={lane:R,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(C=B=k,v=H):B=B.next=k,g|=R;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;k=y,y=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);B===null&&(v=H),c.baseState=v,c.firstBaseUpdate=C,c.lastBaseUpdate=B,f===null&&(c.shared.lanes=0),kn|=g,e.lanes=g,e.memoizedState=H}}function Fo(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Po(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Fo(n[e],t)}var Hl=Y(null),cs=Y(0);function eh(e,t){e=dn,J(cs,e),J(Hl,t),dn=e|t.baseLanes}function Dc(){J(cs,dn),J(Hl,Hl.current)}function Cc(){dn=cs.current,W(Hl),W(cs)}var Nn=0,oe=null,we=null,Ye=null,rs=!1,$l=!1,al=!1,fs=0,Wi=0,Yl=null,$y=0;function qe(){throw Error(s(321))}function Rc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function kc(e,t,n,i,c,f){return Nn=f,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Bh:qh,al=!1,f=n(i,c),al=!1,$l&&(f=nh(t,n,i,c)),th(e),f}function th(e){U.H=ps;var t=we!==null&&we.next!==null;if(Nn=0,Ye=we=oe=null,rs=!1,Wi=0,Yl=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&ls(e)&&(Je=!0))}function nh(e,t,n,i){oe=e;var c=0;do{if($l&&(Yl=null),Wi=0,$l=!1,25<=c)throw Error(s(301));if(c+=1,Ye=we=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Zy,f=t(n,i)}while($l);return f}function Yy(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ii(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(oe.flags|=1024),t}function Lc(){var e=fs!==0;return fs=0,e}function zc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Uc(e){if(rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rs=!1}Nn=0,Ye=we=oe=null,$l=!1,Wi=fs=0,Yl=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?oe.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ge(){if(we===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Ye===null?oe.memoizedState:Ye.next;if(t!==null)Ye=t,we=e;else{if(e===null)throw oe.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Ye===null?oe.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(e){var t=Wi;return Wi+=1,Yl===null&&(Yl=[]),e=Jo(Yl,e,t),t=oe,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Bh:qh),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===$)return lt(e)}throw Error(s(438,String(e)))}function qc(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Bc(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=se;return t.index++,n}function un(e,t){return typeof t=="function"?t(e):t}function hs(e){var t=Ge();return jc(t,we,e)}function jc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var c=e.baseQueue,f=i.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}t.baseQueue=c=f,i.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var y=g=null,v=null,C=t,B=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(pe&H)===H:(Nn&H)===H){var R=C.revertLane;if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===ql&&(B=!0);else if((Nn&R)===R){C=C.next,R===ql&&(B=!0);continue}else H={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(y=v=H,g=f):v=v.next=H,oe.lanes|=R,kn|=R;H=C.action,al&&n(f,H),f=C.hasEagerState?C.eagerState:n(f,H)}else R={lane:H,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(y=v=R,g=f):v=v.next=R,oe.lanes|=H,kn|=H;C=C.next}while(C!==null&&C!==t);if(v===null?g=f:v.next=y,!St(f,e.memoizedState)&&(Je=!0,B&&(n=jl,n!==null)))throw n;e.memoizedState=f,e.baseState=g,e.baseQueue=v,i.lastRenderedState=f}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Hc(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,c=n.pending,f=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do f=e(f,g.action),g=g.next;while(g!==c);St(f,t.memoizedState)||(Je=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,i]}function lh(e,t,n){var i=oe,c=Ge(),f=be;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var g=!St((we||c).memoizedState,n);g&&(c.memoizedState=n,Je=!0),c=c.queue;var y=sh.bind(null,i,c,e);if(Fi(2048,8,y,[e]),c.getSnapshot!==t||g||Ye!==null&&Ye.memoizedState.tag&1){if(i.flags|=2048,Gl(9,ds(),ah.bind(null,i,c,n,t),null),Me===null)throw Error(s(349));f||(Nn&124)!==0||ih(i,t,n)}return n}function ih(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=Bc(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ah(e,t,n,i){t.value=n,t.getSnapshot=i,uh(t)&&ch(e)}function sh(e,t,n){return n(function(){uh(t)&&ch(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function ch(e){var t=Ll(e,2);t!==null&&Nt(t,e,2)}function $c(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),al){bn(!0);try{n()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:e},t}function rh(e,t,n,i){return e.baseState=n,jc(e,we,typeof i=="function"?i:un)}function Gy(e,t,n,i,c){if(ms(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};U.T!==null?n(!0):f.isTransition=!1,i(f),n=t.pending,n===null?(f.next=t.pending=f,fh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function fh(e,t){var n=t.action,i=t.payload,c=e.state;if(t.isTransition){var f=U.T,g={};U.T=g;try{var y=n(c,i),v=U.S;v!==null&&v(g,y),oh(e,t,y)}catch(C){Yc(e,t,C)}finally{U.T=f}}else try{f=n(c,i),oh(e,t,f)}catch(C){Yc(e,t,C)}}function oh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){hh(e,t,i)},function(i){return Yc(e,t,i)}):hh(e,t,n)}function hh(e,t,n){t.status="fulfilled",t.value=n,dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,fh(e,n)))}function Yc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,dh(t),t=t.next;while(t!==i)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function mh(e,t){if(be){var n=Me.formState;if(n!==null){e:{var i=oe;if(be){if(Ue){t:{for(var c=Ue,f=Qt;c.nodeType!==8;){if(!f){c=null;break t}if(c=Yt(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Ue=Yt(c.nextSibling),i=c.data==="F!";break e}}tl(i)}i=!1}i&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},n.queue=i,n=Lh.bind(null,oe,i),i.dispatch=n,i=$c(!1),f=Xc.bind(null,oe,!1,i.queue),i=ot(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,n=Gy.bind(null,oe,c,f,n),c.dispatch=n,i.memoizedState=e,[t,n,!1]}function ph(e){var t=Ge();return yh(t,we,e)}function yh(e,t,n){if(t=jc(e,t,gh)[0],e=hs(un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ii(t)}catch(g){throw g===Vi?ss:g}else i=t;t=Ge();var c=t.queue,f=c.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,Gl(9,ds(),Ky.bind(null,c,n),null)),[i,f,e]}function Ky(e,t){e.action=t}function vh(e){var t=Ge(),n=we;if(n!==null)return yh(t,n,e);Ge(),t=t.memoizedState,n=Ge();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Gl(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Bc(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function ds(){return{destroy:void 0,resource:void 0}}function bh(){return Ge().memoizedState}function gs(e,t,n,i){var c=ot();i=i===void 0?null:i,oe.flags|=e,c.memoizedState=Gl(1|t,ds(),n,i)}function Fi(e,t,n,i){var c=Ge();i=i===void 0?null:i;var f=c.memoizedState.inst;we!==null&&i!==null&&Rc(i,we.memoizedState.deps)?c.memoizedState=Gl(t,f,n,i):(oe.flags|=e,c.memoizedState=Gl(1|t,f,n,i))}function Sh(e,t){gs(8390656,8,e,t)}function Th(e,t){Fi(2048,8,e,t)}function wh(e,t){return Fi(4,2,e,t)}function Eh(e,t){return Fi(4,4,e,t)}function Ah(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oh(e,t,n){n=n!=null?n.concat([e]):null,Fi(4,4,Ah.bind(null,t,e),n)}function Gc(){}function Nh(e,t){var n=Ge();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Rc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function _h(e,t){var n=Ge();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Rc(t,i[1]))return i[0];if(i=e(),al){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[i,t],i}function Kc(e,t,n){return n===void 0||(Nn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Dd(),oe.lanes|=e,kn|=e,n)}function Mh(e,t,n,i){return St(n,t)?n:Hl.current!==null?(e=Kc(e,n,i),St(e,t)||(Je=!0),e):(Nn&42)===0?(Je=!0,e.memoizedState=n):(e=Dd(),oe.lanes|=e,kn|=e,t)}function xh(e,t,n,i,c){var f=Z.p;Z.p=f!==0&&8>f?f:8;var g=U.T,y={};U.T=y,Xc(e,!1,t,n);try{var v=c(),C=U.S;if(C!==null&&C(y,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var B=Hy(v,i);Pi(e,t,B,Ot(e))}else Pi(e,t,i,Ot(e))}catch(H){Pi(e,t,{then:function(){},status:"rejected",reason:H},Ot())}finally{Z.p=f,U.T=g}}function Vy(){}function Vc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var c=Dh(e).queue;xh(e,c,t,ie,n===null?Vy:function(){return Ch(e),n(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ch(e){var t=Dh(e).next.queue;Pi(e,t,{},Ot())}function Qc(){return lt(ya)}function Rh(){return Ge().memoizedState}function kh(){return Ge().memoizedState}function Qy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ot();e=An(n);var i=On(t,e,n);i!==null&&(Nt(i,t,n),Xi(i,t,n)),t={cache:wc()},e.payload=t;return}t=t.return}}function Xy(e,t,n){var i=Ot();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ms(e)?zh(t,n):(n=hc(e,t,n,i),n!==null&&(Nt(n,e,i),Uh(n,t,i)))}function Lh(e,t,n){var i=Ot();Pi(e,t,n,i)}function Pi(e,t,n,i){var c={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ms(e))zh(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,y=f(g,n);if(c.hasEagerState=!0,c.eagerState=y,St(y,g))return Fa(e,t,c,0),Me===null&&Ia(),!1}catch{}finally{}if(n=hc(e,t,c,i),n!==null)return Nt(n,e,i),Uh(n,t,i),!0}return!1}function Xc(e,t,n,i){if(i={lane:2,revertLane:Or(),action:i,hasEagerState:!1,eagerState:null,next:null},ms(e)){if(t)throw Error(s(479))}else t=hc(e,n,i,2),t!==null&&Nt(t,e,2)}function ms(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function zh(e,t){$l=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gf(e,n)}}var ps={readContext:lt,use:os,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe},Bh={readContext:lt,use:os,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gs(4194308,4,Ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){gs(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var i=e();if(al){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ot();if(n!==void 0){var c=n(t);if(al){bn(!0);try{n(t)}finally{bn(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Xy.bind(null,oe,e),[i.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=$c(e);var t=e.queue,n=Lh.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gc,useDeferredValue:function(e,t){var n=ot();return Kc(n,e,t)},useTransition:function(){var e=$c(!1);return e=xh.bind(null,oe,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=oe,c=ot();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Me===null)throw Error(s(349));(pe&124)!==0||ih(i,t,n)}c.memoizedState=n;var f={value:n,getSnapshot:t};return c.queue=f,Sh(sh.bind(null,i,f,e),[e]),i.flags|=2048,Gl(9,ds(),ah.bind(null,i,f,n,t),null),n},useId:function(){var e=ot(),t=Me.identifierPrefix;if(be){var n=ln,i=nn;n=(i&~(1<<32-bt(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=$y++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Qc,useFormState:mh,useActionState:mh,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xc.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:qc,useCacheRefresh:function(){return ot().memoizedState=Qy.bind(null,oe)}},qh={readContext:lt,use:os,useCallback:Nh,useContext:lt,useEffect:Th,useImperativeHandle:Oh,useInsertionEffect:wh,useLayoutEffect:Eh,useMemo:_h,useReducer:hs,useRef:bh,useState:function(){return hs(un)},useDebugValue:Gc,useDeferredValue:function(e,t){var n=Ge();return Mh(n,we.memoizedState,e,t)},useTransition:function(){var e=hs(un)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:lh,useId:Rh,useHostTransitionStatus:Qc,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var n=Ge();return rh(n,we,e,t)},useMemoCache:qc,useCacheRefresh:kh},Zy={readContext:lt,use:os,useCallback:Nh,useContext:lt,useEffect:Th,useImperativeHandle:Oh,useInsertionEffect:wh,useLayoutEffect:Eh,useMemo:_h,useReducer:Hc,useRef:bh,useState:function(){return Hc(un)},useDebugValue:Gc,useDeferredValue:function(e,t){var n=Ge();return we===null?Kc(n,e,t):Mh(n,we.memoizedState,e,t)},useTransition:function(){var e=Hc(un)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:lh,useId:Rh,useHostTransitionStatus:Qc,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var n=Ge();return we!==null?rh(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qc,useCacheRefresh:kh},Kl=null,ea=0;function ys(e){var t=ea;return ea+=1,Kl===null&&(Kl=[]),Jo(Kl,e,t)}function ta(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vs(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jh(e){var t=e._init;return t(e._payload)}function Hh(e){function t(_,O){if(e){var M=_.deletions;M===null?(_.deletions=[O],_.flags|=16):M.push(O)}}function n(_,O){if(!e)return null;for(;O!==null;)t(_,O),O=O.sibling;return null}function i(_){for(var O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function c(_,O){return _=tn(_,O),_.index=0,_.sibling=null,_}function f(_,O,M){return _.index=M,e?(M=_.alternate,M!==null?(M=M.index,M<O?(_.flags|=67108866,O):M):(_.flags|=67108866,O)):(_.flags|=1048576,O)}function g(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function y(_,O,M,j){return O===null||O.tag!==6?(O=gc(M,_.mode,j),O.return=_,O):(O=c(O,M),O.return=_,O)}function v(_,O,M,j){var I=M.type;return I===x?B(_,O,M.props.children,j,M.key):O!==null&&(O.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===V&&jh(I)===O.type)?(O=c(O,M.props),ta(O,M),O.return=_,O):(O=es(M.type,M.key,M.props,null,_.mode,j),ta(O,M),O.return=_,O)}function C(_,O,M,j){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=mc(M,_.mode,j),O.return=_,O):(O=c(O,M.children||[]),O.return=_,O)}function B(_,O,M,j,I){return O===null||O.tag!==7?(O=In(M,_.mode,j,I),O.return=_,O):(O=c(O,M),O.return=_,O)}function H(_,O,M){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=gc(""+O,_.mode,M),O.return=_,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case N:return M=es(O.type,O.key,O.props,null,_.mode,M),ta(M,O),M.return=_,M;case E:return O=mc(O,_.mode,M),O.return=_,O;case V:var j=O._init;return O=j(O._payload),H(_,O,M)}if($e(O)||q(O))return O=In(O,_.mode,M,null),O.return=_,O;if(typeof O.then=="function")return H(_,ys(O),M);if(O.$$typeof===$)return H(_,is(_,O),M);vs(_,O)}return null}function R(_,O,M,j){var I=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return I!==null?null:y(_,O,""+M,j);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===I?v(_,O,M,j):null;case E:return M.key===I?C(_,O,M,j):null;case V:return I=M._init,M=I(M._payload),R(_,O,M,j)}if($e(M)||q(M))return I!==null?null:B(_,O,M,j,null);if(typeof M.then=="function")return R(_,O,ys(M),j);if(M.$$typeof===$)return R(_,O,is(_,M),j);vs(_,M)}return null}function k(_,O,M,j,I){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return _=_.get(M)||null,y(O,_,""+j,I);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return _=_.get(j.key===null?M:j.key)||null,v(O,_,j,I);case E:return _=_.get(j.key===null?M:j.key)||null,C(O,_,j,I);case V:var he=j._init;return j=he(j._payload),k(_,O,M,j,I)}if($e(j)||q(j))return _=_.get(M)||null,B(O,_,j,I,null);if(typeof j.then=="function")return k(_,O,M,ys(j),I);if(j.$$typeof===$)return k(_,O,M,is(O,j),I);vs(O,j)}return null}function ae(_,O,M,j){for(var I=null,he=null,F=O,le=O=0,Ie=null;F!==null&&le<M.length;le++){F.index>le?(Ie=F,F=null):Ie=F.sibling;var ve=R(_,F,M[le],j);if(ve===null){F===null&&(F=Ie);break}e&&F&&ve.alternate===null&&t(_,F),O=f(ve,O,le),he===null?I=ve:he.sibling=ve,he=ve,F=Ie}if(le===M.length)return n(_,F),be&&Pn(_,le),I;if(F===null){for(;le<M.length;le++)F=H(_,M[le],j),F!==null&&(O=f(F,O,le),he===null?I=F:he.sibling=F,he=F);return be&&Pn(_,le),I}for(F=i(F);le<M.length;le++)Ie=k(F,_,le,M[le],j),Ie!==null&&(e&&Ie.alternate!==null&&F.delete(Ie.key===null?le:Ie.key),O=f(Ie,O,le),he===null?I=Ie:he.sibling=Ie,he=Ie);return e&&F.forEach(function(Yn){return t(_,Yn)}),be&&Pn(_,le),I}function ne(_,O,M,j){if(M==null)throw Error(s(151));for(var I=null,he=null,F=O,le=O=0,Ie=null,ve=M.next();F!==null&&!ve.done;le++,ve=M.next()){F.index>le?(Ie=F,F=null):Ie=F.sibling;var Yn=R(_,F,ve.value,j);if(Yn===null){F===null&&(F=Ie);break}e&&F&&Yn.alternate===null&&t(_,F),O=f(Yn,O,le),he===null?I=Yn:he.sibling=Yn,he=Yn,F=Ie}if(ve.done)return n(_,F),be&&Pn(_,le),I;if(F===null){for(;!ve.done;le++,ve=M.next())ve=H(_,ve.value,j),ve!==null&&(O=f(ve,O,le),he===null?I=ve:he.sibling=ve,he=ve);return be&&Pn(_,le),I}for(F=i(F);!ve.done;le++,ve=M.next())ve=k(F,_,le,ve.value,j),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?le:ve.key),O=f(ve,O,le),he===null?I=ve:he.sibling=ve,he=ve);return e&&F.forEach(function(J0){return t(_,J0)}),be&&Pn(_,le),I}function Ae(_,O,M,j){if(typeof M=="object"&&M!==null&&M.type===x&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:e:{for(var I=M.key;O!==null;){if(O.key===I){if(I=M.type,I===x){if(O.tag===7){n(_,O.sibling),j=c(O,M.props.children),j.return=_,_=j;break e}}else if(O.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===V&&jh(I)===O.type){n(_,O.sibling),j=c(O,M.props),ta(j,M),j.return=_,_=j;break e}n(_,O);break}else t(_,O);O=O.sibling}M.type===x?(j=In(M.props.children,_.mode,j,M.key),j.return=_,_=j):(j=es(M.type,M.key,M.props,null,_.mode,j),ta(j,M),j.return=_,_=j)}return g(_);case E:e:{for(I=M.key;O!==null;){if(O.key===I)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){n(_,O.sibling),j=c(O,M.children||[]),j.return=_,_=j;break e}else{n(_,O);break}else t(_,O);O=O.sibling}j=mc(M,_.mode,j),j.return=_,_=j}return g(_);case V:return I=M._init,M=I(M._payload),Ae(_,O,M,j)}if($e(M))return ae(_,O,M,j);if(q(M)){if(I=q(M),typeof I!="function")throw Error(s(150));return M=I.call(M),ne(_,O,M,j)}if(typeof M.then=="function")return Ae(_,O,ys(M),j);if(M.$$typeof===$)return Ae(_,O,is(_,M),j);vs(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,O!==null&&O.tag===6?(n(_,O.sibling),j=c(O,M),j.return=_,_=j):(n(_,O),j=gc(M,_.mode,j),j.return=_,_=j),g(_)):n(_,O)}return function(_,O,M,j){try{ea=0;var I=Ae(_,O,M,j);return Kl=null,I}catch(F){if(F===Vi||F===ss)throw F;var he=Tt(29,F,null,_.mode);return he.lanes=j,he.return=_,he}finally{}}}var Vl=Hh(!0),$h=Hh(!1),zt=Y(null),Xt=null;function _n(e){var t=e.alternate;J(Qe,Qe.current&1),J(zt,e),Xt===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(Xt=e)}function Yh(e){if(e.tag===22){if(J(Qe,Qe.current),J(zt,e),Xt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Xt=e)}}else Mn()}function Mn(){J(Qe,Qe.current),J(zt,zt.current)}function cn(e){W(zt),Xt===e&&(Xt=null),W(Qe)}var Qe=Y(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Br(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Zc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Ot(),c=An(i);c.payload=t,n!=null&&(c.callback=n),t=On(e,c,i),t!==null&&(Nt(t,e,i),Xi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Ot(),c=An(i);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=On(e,c,i),t!==null&&(Nt(t,e,i),Xi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),i=An(n);i.tag=2,t!=null&&(i.callback=t),t=On(e,i,n),t!==null&&(Nt(t,e,n),Xi(t,e,n))}};function Gh(e,t,n,i,c,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,g):t.prototype&&t.prototype.isPureReactComponent?!Bi(n,i)||!Bi(c,f):!0}function Kh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Jc.enqueueReplaceState(t,t.state,null)}function sl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}var Ss=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)};function Vh(e){Ss(e)}function Qh(e){console.error(e)}function Xh(e){Ss(e)}function Ts(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Zh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Wc(e,t,n){return n=An(n),n.tag=3,n.payload={element:null},n.callback=function(){Ts(e,t)},n}function Jh(e){return e=An(e),e.tag=3,e}function Wh(e,t,n,i){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var f=i.value;e.payload=function(){return c(f)},e.callback=function(){Zh(t,n,i)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Zh(t,n,i),typeof c!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function Jy(e,t,n,i,c){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Yi(t,n,c,!0),n=zt.current,n!==null){switch(n.tag){case 13:return Xt===null?Sr():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=c,i===Oc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),wr(e,i,c)),!1;case 22:return n.flags|=65536,i===Oc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),wr(e,i,c)),!1}throw Error(s(435,n.tag))}return wr(e,i,c),Sr(),!1}if(be)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==vc&&(e=Error(s(422),{cause:i}),$i(Ct(e,n)))):(i!==vc&&(t=Error(s(423),{cause:i}),$i(Ct(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=Ct(i,n),c=Wc(e.stateNode,i,c),Mc(e,c),Be!==4&&(Be=2)),!1;var f=Error(s(520),{cause:i});if(f=Ct(f,n),ca===null?ca=[f]:ca.push(f),Be!==4&&(Be=2),t===null)return!0;i=Ct(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Wc(n.stateNode,i,e),Mc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ln===null||!Ln.has(f))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Jh(c),Wh(c,e,n,i),Mc(n,c),!1}n=n.return}while(n!==null);return!1}var Ih=Error(s(461)),Je=!1;function Fe(e,t,n,i){t.child=e===null?$h(t,null,n,i):Vl(t,e.child,n,i)}function Fh(e,t,n,i,c){n=n.render;var f=t.ref;if("ref"in i){var g={};for(var y in i)y!=="ref"&&(g[y]=i[y])}else g=i;return ll(t),i=kc(e,t,n,g,f,c),y=Lc(),e!==null&&!Je?(zc(e,t,c),rn(e,t,c)):(be&&y&&pc(t),t.flags|=1,Fe(e,t,i,c),t.child)}function Ph(e,t,n,i,c){if(e===null){var f=n.type;return typeof f=="function"&&!dc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,ed(e,t,f,i,c)):(e=es(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ir(e,c)){var g=f.memoizedProps;if(n=n.compare,n=n!==null?n:Bi,n(g,i)&&e.ref===t.ref)return rn(e,t,c)}return t.flags|=1,e=tn(f,i),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,n,i,c){if(e!==null){var f=e.memoizedProps;if(Bi(f,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=f,ir(e,c))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,rn(e,t,c)}return Ic(e,t,n,i,c)}function td(e,t,n){var i=t.pendingProps,c=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=f!==null?f.baseLanes|n:n,e!==null){for(c=t.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;t.childLanes=f&~i}else t.childLanes=0,t.child=null;return nd(e,t,i,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&as(t,f!==null?f.cachePool:null),f!==null?eh(t,f):Dc(),Yh(t);else return t.lanes=t.childLanes=536870912,nd(e,t,f!==null?f.baseLanes|n:n,n)}else f!==null?(as(t,f.cachePool),eh(t,f),Mn(),t.memoizedState=null):(e!==null&&as(t,null),Dc(),Mn());return Fe(e,t,c,n),t.child}function nd(e,t,n,i){var c=Ac();return c=c===null?null:{parent:Ve._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&as(t,null),Dc(),Yh(t),e!==null&&Yi(e,t,i,!0),null}function ws(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ic(e,t,n,i,c){return ll(t),n=kc(e,t,n,i,void 0,c),i=Lc(),e!==null&&!Je?(zc(e,t,c),rn(e,t,c)):(be&&i&&pc(t),t.flags|=1,Fe(e,t,n,c),t.child)}function ld(e,t,n,i,c,f){return ll(t),t.updateQueue=null,n=nh(t,i,n,c),th(e),i=Lc(),e!==null&&!Je?(zc(e,t,f),rn(e,t,f)):(be&&i&&pc(t),t.flags|=1,Fe(e,t,n,f),t.child)}function id(e,t,n,i,c){if(ll(t),t.stateNode===null){var f=zl,g=n.contextType;typeof g=="object"&&g!==null&&(f=lt(g)),f=new n(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Jc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Nc(t),g=n.contextType,f.context=typeof g=="object"&&g!==null?lt(g):zl,f.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Zc(t,n,g,i),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Jc.enqueueReplaceState(f,f.state,null),Ji(t,i,f,c),Zi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,v=sl(n,y);f.props=v;var C=f.context,B=n.contextType;g=zl,typeof B=="object"&&B!==null&&(g=lt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||C!==g)&&Kh(t,f,i,g),En=!1;var R=t.memoizedState;f.state=R,Ji(t,i,f,c),Zi(),C=t.memoizedState,y||R!==C||En?(typeof H=="function"&&(Zc(t,n,H,i),C=t.memoizedState),(v=En||Gh(t,n,v,i,R,C,g))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=C),f.props=i,f.state=C,f.context=g,i=v):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,_c(e,t),g=t.memoizedProps,B=sl(n,g),f.props=B,H=t.pendingProps,R=f.context,C=n.contextType,v=zl,typeof C=="object"&&C!==null&&(v=lt(C)),y=n.getDerivedStateFromProps,(C=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==H||R!==v)&&Kh(t,f,i,v),En=!1,R=t.memoizedState,f.state=R,Ji(t,i,f,c),Zi();var k=t.memoizedState;g!==H||R!==k||En||e!==null&&e.dependencies!==null&&ls(e.dependencies)?(typeof y=="function"&&(Zc(t,n,y,i),k=t.memoizedState),(B=En||Gh(t,n,B,i,R,k,v)||e!==null&&e.dependencies!==null&&ls(e.dependencies))?(C||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,k,v),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,k,v)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=k),f.props=i,f.state=k,f.context=v,i=B):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,ws(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Vl(t,e.child,null,c),t.child=Vl(t,null,n,c)):Fe(e,t,n,c),t.memoizedState=f.state,e=t.child):e=rn(e,t,c),e}function ad(e,t,n,i){return Hi(),t.flags|=256,Fe(e,t,n,i),t.child}var Fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pc(e){return{baseLanes:e,cachePool:Qo()}}function er(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ut),e}function sd(e,t,n){var i=t.pendingProps,c=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(c?_n(t):Mn(),be){var y=Ue,v;if(v=y){e:{for(v=y,y=Qt;v.nodeType!==8;){if(!y){y=null;break e}if(v=Yt(v.nextSibling),v===null){y=null;break e}}y=v}y!==null?(t.memoizedState={dehydrated:y,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},v=Tt(18,null,null,0),v.stateNode=y,v.return=t,t.child=v,ut=t,Ue=null,v=!0):v=!1}v||tl(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return Br(y)?t.lanes=32:t.lanes=536870912,null;cn(t)}return y=i.children,i=i.fallback,c?(Mn(),c=t.mode,y=Es({mode:"hidden",children:y},c),i=In(i,c,n,null),y.return=t,i.return=t,y.sibling=i,t.child=y,c=t.child,c.memoizedState=Pc(n),c.childLanes=er(e,g,n),t.memoizedState=Fc,i):(_n(t),tr(t,y))}if(v=e.memoizedState,v!==null&&(y=v.dehydrated,y!==null)){if(f)t.flags&256?(_n(t),t.flags&=-257,t=nr(e,t,n)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),c=i.fallback,y=t.mode,i=Es({mode:"visible",children:i.children},y),c=In(c,y,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Vl(t,e.child,null,n),i=t.child,i.memoizedState=Pc(n),i.childLanes=er(e,g,n),t.memoizedState=Fc,t=c);else if(_n(t),Br(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var C=g.dgst;g=C,i=Error(s(419)),i.stack="",i.digest=g,$i({value:i,source:null,stack:null}),t=nr(e,t,n)}else if(Je||Yi(e,t,n,!1),g=(n&e.childLanes)!==0,Je||g){if(g=Me,g!==null&&(i=n&-n,i=(i&42)!==0?1:qu(i),i=(i&(g.suspendedLanes|n))!==0?0:i,i!==0&&i!==v.retryLane))throw v.retryLane=i,Ll(e,i),Nt(g,e,i),Ih;y.data==="$?"||Sr(),t=nr(e,t,n)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Ue=Yt(y.nextSibling),ut=t,be=!0,el=null,Qt=!1,e!==null&&(kt[Lt++]=nn,kt[Lt++]=ln,kt[Lt++]=Fn,nn=e.id,ln=e.overflow,Fn=t),t=tr(t,i.children),t.flags|=4096);return t}return c?(Mn(),c=i.fallback,y=t.mode,v=e.child,C=v.sibling,i=tn(v,{mode:"hidden",children:i.children}),i.subtreeFlags=v.subtreeFlags&65011712,C!==null?c=tn(C,c):(c=In(c,y,n,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,y=e.child.memoizedState,y===null?y=Pc(n):(v=y.cachePool,v!==null?(C=Ve._currentValue,v=v.parent!==C?{parent:C,pool:C}:v):v=Qo(),y={baseLanes:y.baseLanes|n,cachePool:v}),c.memoizedState=y,c.childLanes=er(e,g,n),t.memoizedState=Fc,i):(_n(t),n=e.child,e=n.sibling,n=tn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function tr(e,t){return t=Es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Es(e,t){return e=Tt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function nr(e,t,n){return Vl(t,e.child,null,n),e=tr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ud(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Sc(e.return,t,n)}function lr(e,t,n,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=c)}function cd(e,t,n){var i=t.pendingProps,c=i.revealOrder,f=i.tail;if(Fe(e,t,i.children,n),i=Qe.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ud(e,n,t);else if(e.tag===19)ud(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(J(Qe,i),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&bs(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),lr(t,!1,c,n,f);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&bs(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}lr(t,!0,n,null,f);break;case"together":lr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yi(e,t,n,!1),(n&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,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ls(e)))}function Wy(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),wn(t,Ve,e.memoizedState.cache),Hi();break;case 27:case 5:ku(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:wn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?sd(e,t,n):(_n(t),e=rn(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var c=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Yi(e,t,n,!1),i=(n&t.childLanes)!==0),c){if(i)return cd(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(Qe,Qe.current),i)break;return null;case 22:case 23:return t.lanes=0,td(e,t,n);case 24:wn(t,Ve,e.memoizedState.cache)}return rn(e,t,n)}function rd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!ir(e,n)&&(t.flags&128)===0)return Je=!1,Wy(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,be&&(t.flags&1048576)!==0&&jo(t,ns,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,c=i._init;if(i=c(i._payload),t.type=i,typeof i=="function")dc(i)?(e=sl(i,e),t.tag=1,t=id(null,t,i,e,n)):(t.tag=0,t=Ic(null,t,i,e,n));else{if(i!=null){if(c=i.$$typeof,c===Q){t.tag=11,t=Fh(null,t,i,e,n);break e}else if(c===P){t.tag=14,t=Ph(null,t,i,e,n);break e}}throw t=ze(i)||i,Error(s(306,t,""))}}return t;case 0:return Ic(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,c=sl(i,t.pendingProps),id(e,t,i,c,n);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var f=t.memoizedState;c=f.element,_c(e,t),Ji(t,i,null,n);var g=t.memoizedState;if(i=g.cache,wn(t,Ve,i),i!==f.cache&&Tc(t,[Ve],n,!0),Zi(),i=g.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ad(e,t,i,n);break e}else if(i!==c){c=Ct(Error(s(424)),t),$i(c),t=ad(e,t,i,n);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(Ue=Yt(e.firstChild),ut=t,be=!0,el=null,Qt=!0,n=$h(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),i===c){t=rn(e,t,n);break e}Fe(e,t,i,n)}t=t.child}return t;case 26:return ws(e,t),e===null?(n=dg(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,i=Bs(ue.current).createElement(n),i[nt]=t,i[rt]=e,et(i,n,e),Ze(i),t.stateNode=i):t.memoizedState=dg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ku(t),e===null&&be&&(i=t.stateNode=fg(t.type,t.pendingProps,ue.current),ut=t,Qt=!0,c=Ue,Bn(t.type)?(qr=c,Ue=Yt(i.firstChild)):Ue=c),Fe(e,t,t.pendingProps.children,n),ws(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((c=i=Ue)&&(i=A0(i,t.type,t.pendingProps,Qt),i!==null?(t.stateNode=i,ut=t,Ue=Yt(i.firstChild),Qt=!1,c=!0):c=!1),c||tl(t)),ku(t),c=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,i=f.children,Lr(c,f)?i=null:g!==null&&Lr(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=kc(e,t,Yy,null,null,n),ya._currentValue=c),ws(e,t),Fe(e,t,i,n),t.child;case 6:return e===null&&be&&((e=n=Ue)&&(n=O0(n,t.pendingProps,Qt),n!==null?(t.stateNode=n,ut=t,Ue=null,e=!0):e=!1),e||tl(t)),null;case 13:return sd(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Vl(t,null,i,n):Fe(e,t,i,n),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,wn(t,t.type,i.value),Fe(e,t,i.children,n),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,ll(t),c=lt(c),i=i(c),t.flags|=1,Fe(e,t,i,n),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,n);case 15:return ed(e,t,t.type,t.pendingProps,n);case 19:return cd(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Es(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=tn(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return td(e,t,n);case 24:return ll(t),i=lt(Ve),e===null?(c=Ac(),c===null&&(c=Me,f=wc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=n),c=f),t.memoizedState={parent:i,cache:c},Nc(t),wn(t,Ve,c)):((e.lanes&n)!==0&&(_c(e,t),Ji(t,null,null,n),Zi()),c=e.memoizedState,f=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),wn(t,Ve,i)):(i=f.cache,wn(t,Ve,i),i!==c.cache&&Tc(t,[Ve],n,!0))),Fe(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fn(e){e.flags|=4}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vg(t)){if(t=zt.current,t!==null&&((pe&4194048)===pe?Xt!==null:(pe&62914560)!==pe&&(pe&536870912)===0||t!==Xt))throw Qi=Oc,Xo;e.flags|=8192}}function As(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$f():536870912,e.lanes|=t,Jl|=t)}function na(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Iy(e,t,n){var i=t.pendingProps;switch(yc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),sn(Ve),vn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ji(t)?fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yo())),Re(t),null;case 26:return n=t.memoizedState,e===null?(fn(t),n!==null?(Re(t),fd(t,n)):(Re(t),t.flags&=-16777217)):n?n!==e.memoizedState?(fn(t),Re(t),fd(t,n)):(Re(t),t.flags&=-16777217):(e.memoizedProps!==i&&fn(t),Re(t),t.flags&=-16777217),null;case 27:za(t),n=ue.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Re(t),null}e=te.current,ji(t)?Ho(t):(e=fg(c,i,n),t.stateNode=e,fn(t))}return Re(t),null;case 5:if(za(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Re(t),null}if(e=te.current,ji(t))Ho(t);else{switch(c=Bs(ue.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?c.createElement(n,{is:i.is}):c.createElement(n)}}e[nt]=t,e[rt]=i;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.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=e;e:switch(et(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&fn(t)}}return Re(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,ji(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,c=ut,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||lg(e.nodeValue,n)),e||tl(t)}else e=Bs(e).createTextNode(i),e[nt]=t,t.stateNode=e}return Re(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ji(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[nt]=t}else Hi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),c=!1}else c=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(cn(t),t):(cn(t),null)}if(cn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool);var f=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),As(t,t.updateQueue),Re(t),null;case 4:return vn(),e===null&&xr(t.stateNode.containerInfo),Re(t),null;case 10:return sn(t.type),Re(t),null;case 19:if(W(Qe),c=t.memoizedState,c===null)return Re(t),null;if(i=(t.flags&128)!==0,f=c.rendering,f===null)if(i)na(c,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=bs(e),f!==null){for(t.flags|=128,na(c,!1),e=f.updateQueue,t.updateQueue=e,As(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qo(n,e),n=n.sibling;return J(Qe,Qe.current&1|2),t.child}e=e.sibling}c.tail!==null&&Vt()>_s&&(t.flags|=128,i=!0,na(c,!1),t.lanes=4194304)}else{if(!i)if(e=bs(f),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,As(t,e),na(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!be)return Re(t),null}else 2*Vt()-c.renderingStartTime>_s&&n!==536870912&&(t.flags|=128,i=!0,na(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Vt(),t.sibling=null,e=Qe.current,J(Qe,i?e&1|2:e&1),t):(Re(t),null);case 22:case 23:return cn(t),Cc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),n=t.updateQueue,n!==null&&As(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&W(il),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sn(Ve),Re(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Fy(e,t){switch(yc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(Ve),vn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return za(t),null;case 13:if(cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(Qe),null;case 4:return vn(),null;case 10:return sn(t.type),null;case 22:case 23:return cn(t),Cc(),e!==null&&W(il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sn(Ve),null;case 25:return null;default:return null}}function od(e,t){switch(yc(t),t.tag){case 3:sn(Ve),vn();break;case 26:case 27:case 5:za(t);break;case 4:vn();break;case 13:cn(t);break;case 19:W(Qe);break;case 10:sn(t.type);break;case 22:case 23:cn(t),Cc(),e!==null&&W(il);break;case 24:sn(Ve)}}function la(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){i=void 0;var f=n.create,g=n.inst;i=f(),g.destroy=i}n=n.next}while(n!==c)}}catch(y){Ne(t,t.return,y)}}function xn(e,t,n){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&e)===e){var g=i.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,c=t;var v=n,C=y;try{C()}catch(B){Ne(c,v,B)}}}i=i.next}while(i!==f)}}catch(B){Ne(t,t.return,B)}}function hd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Po(t,n)}catch(i){Ne(e,e.return,i)}}}function dd(e,t,n){n.props=sl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ne(e,t,i)}}function ia(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(c){Ne(e,t,c)}}function Zt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(c){Ne(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Ne(e,t,c)}else n.current=null}function gd(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(c){Ne(e,e.return,c)}}function ar(e,t,n){try{var i=e.stateNode;b0(i,e.type,n,t),i[rt]=t}catch(c){Ne(e,e.return,c)}}function md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Bn(e.type)||e.tag===4}function sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||md(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&&Bn(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 ur(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Us));else if(i!==4&&(i===27&&Bn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ur(e,t,n),e=e.sibling;e!==null;)ur(e,t,n),e=e.sibling}function Os(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Bn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}function pd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);et(t,i,n),t[nt]=e,t[rt]=n}catch(f){Ne(e,e.return,f)}}var on=!1,je=!1,cr=!1,yd=typeof WeakSet=="function"?WeakSet:Set,We=null;function Py(e,t){if(e=e.containerInfo,Rr=Gs,e=Mo(e),sc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var c=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var g=0,y=-1,v=-1,C=0,B=0,H=e,R=null;t:for(;;){for(var k;H!==n||c!==0&&H.nodeType!==3||(y=g+c),H!==f||i!==0&&H.nodeType!==3||(v=g+i),H.nodeType===3&&(g+=H.nodeValue.length),(k=H.firstChild)!==null;)R=H,H=k;for(;;){if(H===e)break t;if(R===n&&++C===c&&(y=g),R===f&&++B===i&&(v=g),(k=H.nextSibling)!==null)break;H=R,R=H.parentNode}H=k}n=y===-1||v===-1?null:{start:y,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(kr={focusedElem:e,selectionRange:n},Gs=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,c=f.memoizedProps,f=f.memoizedState,i=n.stateNode;try{var ae=sl(n.type,c,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(ae,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Ne(n,n.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ur(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ur(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,We=e;break}We=t.return}}function vd(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),i&4&&la(5,n);break;case 1:if(Dn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ne(n,n.return,g)}else{var c=sl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ne(n,n.return,g)}}i&64&&hd(n),i&512&&ia(n,n.return);break;case 3:if(Dn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Po(e,t)}catch(g){Ne(n,n.return,g)}}break;case 27:t===null&&i&4&&pd(n);case 26:case 5:Dn(e,n),t===null&&i&4&&gd(n),i&512&&ia(n,n.return);break;case 12:Dn(e,n);break;case 13:Dn(e,n),i&4&&Td(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=c0.bind(null,n),N0(e,n))));break;case 22:if(i=n.memoizedState!==null||on,!i){t=t!==null&&t.memoizedState!==null||je,c=on;var f=je;on=i,(je=t)&&!f?Cn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),on=c,je=f}break;case 30:break;default:Dn(e,n)}}function bd(e){var t=e.alternate;t!==null&&(e.alternate=null,bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$u(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 De=null,ht=!1;function hn(e,t,n){for(n=n.child;n!==null;)Sd(e,t,n),n=n.sibling}function Sd(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Oi,n)}catch{}switch(n.tag){case 26:je||Zt(n,t),hn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:je||Zt(n,t);var i=De,c=ht;Bn(n.type)&&(De=n.stateNode,ht=!1),hn(e,t,n),da(n.stateNode),De=i,ht=c;break;case 5:je||Zt(n,t);case 6:if(i=De,c=ht,De=null,hn(e,t,n),De=i,ht=c,De!==null)if(ht)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(n.stateNode)}catch(f){Ne(n,t,f)}else try{De.removeChild(n.stateNode)}catch(f){Ne(n,t,f)}break;case 18:De!==null&&(ht?(e=De,cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ta(e)):cg(De,n.stateNode));break;case 4:i=De,c=ht,De=n.stateNode.containerInfo,ht=!0,hn(e,t,n),De=i,ht=c;break;case 0:case 11:case 14:case 15:je||xn(2,n,t),je||xn(4,n,t),hn(e,t,n);break;case 1:je||(Zt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&dd(n,t,i)),hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:je=(i=je)||n.memoizedState!==null,hn(e,t,n),je=i;break;default:hn(e,t,n)}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ta(e)}catch(n){Ne(t,t.return,n)}}function e0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yd),t;default:throw Error(s(435,e.tag))}}function rr(e,t){var n=e0(e);t.forEach(function(i){var c=r0.bind(null,e,i);n.has(i)||(n.add(i),i.then(c,c))})}function wt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=n[i],f=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Bn(y.type)){De=y.stateNode,ht=!1;break e}break;case 5:De=y.stateNode,ht=!1;break e;case 3:case 4:De=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(De===null)throw Error(s(160));Sd(f,g,c),De=null,ht=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)wd(t,e),t=t.sibling}var $t=null;function wd(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Et(e),i&4&&(xn(3,e,e.return),la(3,e),xn(5,e,e.return));break;case 1:wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),i&64&&on&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var c=$t;if(wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),i&4){var f=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":f=c.getElementsByTagName("title")[0],(!f||f[Mi]||f[nt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(i),c.head.insertBefore(f,c.querySelector("head > title"))),et(f,i,n),f[nt]=e,Ze(f),i=f;break e;case"link":var g=pg("link","href",c).get(i+(n.href||""));if(g){for(var y=0;y<g.length;y++)if(f=g[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(y,1);break t}}f=c.createElement(i),et(f,i,n),c.head.appendChild(f);break;case"meta":if(g=pg("meta","content",c).get(i+(n.content||""))){for(y=0;y<g.length;y++)if(f=g[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(y,1);break t}}f=c.createElement(i),et(f,i,n),c.head.appendChild(f);break;default:throw Error(s(468,i))}f[nt]=e,Ze(f),i=f}e.stateNode=i}else yg(c,e.type,e.stateNode);else e.stateNode=mg(c,i,e.memoizedProps);else f!==i?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,i===null?yg(c,e.type,e.stateNode):mg(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ar(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),n!==null&&i&4&&ar(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),e.flags&32){c=e.stateNode;try{_l(c,"")}catch(k){Ne(e,e.return,k)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,ar(e,c,n!==null?n.memoizedProps:c)),i&1024&&(cr=!0);break;case 6:if(wt(t,e),Et(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(k){Ne(e,e.return,k)}}break;case 3:if(Hs=null,c=$t,$t=qs(t.containerInfo),wt(t,e),$t=c,Et(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ta(t.containerInfo)}catch(k){Ne(e,e.return,k)}cr&&(cr=!1,Ed(e));break;case 4:i=$t,$t=qs(e.stateNode.containerInfo),wt(t,e),Et(e),$t=i;break;case 12:wt(t,e),Et(e);break;case 13:wt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(mr=Vt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,rr(e,i)));break;case 22:c=e.memoizedState!==null;var v=n!==null&&n.memoizedState!==null,C=on,B=je;if(on=C||c,je=B||v,wt(t,e),je=B,on=C,Et(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||v||on||je||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){v=n=t;try{if(f=v.stateNode,c)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=v.stateNode;var H=v.memoizedProps.style,R=H!=null&&H.hasOwnProperty("display")?H.display:null;y.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(k){Ne(v,v.return,k)}}}else if(t.tag===6){if(n===null){v=t;try{v.stateNode.nodeValue=c?"":v.memoizedProps}catch(k){Ne(v,v.return,k)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,rr(e,n))));break;case 19:wt(t,e),Et(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,rr(e,i)));break;case 30:break;case 21:break;default:wt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(md(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,f=sr(e);Os(e,f,c);break;case 5:var g=n.stateNode;n.flags&32&&(_l(g,""),n.flags&=-33);var y=sr(e);Os(e,y,g);break;case 3:case 4:var v=n.stateNode.containerInfo,C=sr(e);ur(e,C,v);break;default:throw Error(s(161))}}catch(B){Ne(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xn(4,t,t.return),ul(t);break;case 1:Zt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dd(t,t.return,n),ul(t);break;case 27:da(t.stateNode);case 26:case 5:Zt(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function Cn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:Cn(c,f,n),la(4,f);break;case 1:if(Cn(c,f,n),i=f,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(C){Ne(i,i.return,C)}if(i=f,c=i.updateQueue,c!==null){var y=i.stateNode;try{var v=c.shared.hiddenCallbacks;if(v!==null)for(c.shared.hiddenCallbacks=null,c=0;c<v.length;c++)Fo(v[c],y)}catch(C){Ne(i,i.return,C)}}n&&g&64&&hd(f),ia(f,f.return);break;case 27:pd(f);case 26:case 5:Cn(c,f,n),n&&i===null&&g&4&&gd(f),ia(f,f.return);break;case 12:Cn(c,f,n);break;case 13:Cn(c,f,n),n&&g&4&&Td(c,f);break;case 22:f.memoizedState===null&&Cn(c,f,n),ia(f,f.return);break;case 30:break;default:Cn(c,f,n)}t=t.sibling}}function fr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gi(n))}function or(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e))}function Jt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ad(e,t,n,i),t=t.sibling}function Ad(e,t,n,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,n,i),c&2048&&la(9,t);break;case 1:Jt(e,t,n,i);break;case 3:Jt(e,t,n,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e)));break;case 12:if(c&2048){Jt(e,t,n,i),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,y=f.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Ne(t,t.return,v)}}else Jt(e,t,n,i);break;case 13:Jt(e,t,n,i);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?Jt(e,t,n,i):aa(e,t):f._visibility&2?Jt(e,t,n,i):(f._visibility|=2,Ql(e,t,n,i,(t.subtreeFlags&10256)!==0)),c&2048&&fr(g,t);break;case 24:Jt(e,t,n,i),c&2048&&or(t.alternate,t);break;default:Jt(e,t,n,i)}}function Ql(e,t,n,i,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,g=t,y=n,v=i,C=g.flags;switch(g.tag){case 0:case 11:case 15:Ql(f,g,y,v,c),la(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Ql(f,g,y,v,c):aa(f,g):(B._visibility|=2,Ql(f,g,y,v,c)),c&&C&2048&&fr(g.alternate,g);break;case 24:Ql(f,g,y,v,c),c&&C&2048&&or(g.alternate,g);break;default:Ql(f,g,y,v,c)}t=t.sibling}}function aa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,c=i.flags;switch(i.tag){case 22:aa(n,i),c&2048&&fr(i.alternate,i);break;case 24:aa(n,i),c&2048&&or(i.alternate,i);break;default:aa(n,i)}t=t.sibling}}var sa=8192;function Xl(e){if(e.subtreeFlags&sa)for(e=e.child;e!==null;)Od(e),e=e.sibling}function Od(e){switch(e.tag){case 26:Xl(e),e.flags&sa&&e.memoizedState!==null&&j0($t,e.memoizedState,e.memoizedProps);break;case 5:Xl(e);break;case 3:case 4:var t=$t;$t=qs(e.stateNode.containerInfo),Xl(e),$t=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=sa,sa=16777216,Xl(e),sa=t):Xl(e));break;default:Xl(e)}}function Nd(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 ua(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Md(i,e)}Nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_d(e),e=e.sibling}function _d(e){switch(e.tag){case 0:case 11:case 15:ua(e),e.flags&2048&&xn(9,e,e.return);break;case 3:ua(e);break;case 12:ua(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ns(e)):ua(e);break;default:ua(e)}}function Ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Md(i,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xn(8,t,t.return),Ns(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ns(t));break;default:Ns(t)}e=e.sibling}}function Md(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:xn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Gi(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,We=i;else e:for(n=e;We!==null;){i=We;var c=i.sibling,f=i.return;if(bd(i),i===n){We=null;break e}if(c!==null){c.return=f,We=c;break e}We=f}}}var t0={getCacheForType:function(e){var t=lt(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},n0=typeof WeakMap=="function"?WeakMap:Map,Se=0,Me=null,de=null,pe=0,Te=0,At=null,Rn=!1,Zl=!1,hr=!1,dn=0,Be=0,kn=0,cl=0,dr=0,Ut=0,Jl=0,ca=null,dt=null,gr=!1,mr=0,_s=1/0,Ms=null,Ln=null,Pe=0,zn=null,Wl=null,Il=0,pr=0,yr=null,xd=null,ra=0,vr=null;function Ot(){if((Se&2)!==0&&pe!==0)return pe&-pe;if(U.T!==null){var e=ql;return e!==0?e:Or()}return Kf()}function Dd(){Ut===0&&(Ut=(pe&536870912)===0||be?Hf():536870912);var e=zt.current;return e!==null&&(e.flags|=32),Ut}function Nt(e,t,n){(e===Me&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),Un(e,pe,Ut,!1)),_i(e,n),((Se&2)===0||e!==Me)&&(e===Me&&((Se&2)===0&&(cl|=n),Be===4&&Un(e,pe,Ut,!1)),Wt(e))}function Cd(e,t,n){if((Se&6)!==0)throw Error(s(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ni(e,t),c=i?a0(e,t):Tr(e,t,!0),f=i;do{if(c===0){Zl&&!i&&Un(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!l0(n)){c=Tr(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;c=ca;var v=y.current.memoizedState.isDehydrated;if(v&&(Fl(y,g).flags|=256),g=Tr(y,g,!1),g!==2){if(hr&&!v){y.errorRecoveryDisabledLanes|=f,cl|=f,c=4;break e}f=dt,dt=c,f!==null&&(dt===null?dt=f:dt.push.apply(dt,f))}c=g}if(f=!1,c!==2)continue}}if(c===1){Fl(e,0),Un(e,t,0,!0);break}e:{switch(i=e,f=c,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Un(i,t,Ut,!Rn);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=mr+300-Vt(),10<c)){if(Un(i,t,Ut,!Rn),ja(i,0,!0)!==0)break e;i.timeoutHandle=sg(Rd.bind(null,i,n,dt,Ms,gr,t,Ut,cl,Jl,Rn,f,2,-0,0),c);break e}Rd(i,n,dt,Ms,gr,t,Ut,cl,Jl,Rn,f,0,-0,0)}}break}while(!0);Wt(e)}function Rd(e,t,n,i,c,f,g,y,v,C,B,H,R,k){if(e.timeoutHandle=-1,H=t.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(pa={stylesheets:null,count:0,unsuspend:q0},Od(t),H=H0(),H!==null)){e.cancelPendingCommit=H(jd.bind(null,e,t,f,n,i,c,g,y,v,B,1,R,k)),Un(e,f,g,!C);return}jd(e,t,f,n,i,c,g,y,v)}function l0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var c=n[i],f=c.getSnapshot;c=c.value;try{if(!St(f(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t,n,i){t&=~dr,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var f=31-bt(c),g=1<<f;i[f]=-1,c&=~g}n!==0&&Yf(e,n,t)}function xs(){return(Se&6)===0?(fa(0),!1):!0}function br(){if(de!==null){if(Te===0)var e=de.return;else e=de,an=nl=null,Uc(e),Kl=null,ea=0,e=de;for(;e!==null;)od(e.alternate,e),e=e.return;de=null}}function Fl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,T0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),br(),Me=e,de=n=tn(e.current,null),pe=t,Te=0,At=null,Rn=!1,Zl=Ni(e,t),hr=!1,Jl=Ut=dr=cl=kn=Be=0,dt=ca=null,gr=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-bt(i),f=1<<c;t|=e[c],i&=~f}return dn=t,Ia(),n}function kd(e,t){oe=null,U.H=ps,t===Vi||t===ss?(t=Wo(),Te=3):t===Xo?(t=Wo(),Te=4):Te=t===Ih?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,de===null&&(Be=1,Ts(e,Ct(t,e.current)))}function Ld(){var e=U.H;return U.H=ps,e===null?ps:e}function zd(){var e=U.A;return U.A=t0,e}function Sr(){Be=4,Rn||(pe&4194048)!==pe&&zt.current!==null||(Zl=!0),(kn&134217727)===0&&(cl&134217727)===0||Me===null||Un(Me,pe,Ut,!1)}function Tr(e,t,n){var i=Se;Se|=2;var c=Ld(),f=zd();(Me!==e||pe!==t)&&(Ms=null,Fl(e,t)),t=!1;var g=Be;e:do try{if(Te!==0&&de!==null){var y=de,v=At;switch(Te){case 8:br(),g=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var C=Te;if(Te=0,At=null,Pl(e,y,v,C),n&&Zl){g=0;break e}break;default:C=Te,Te=0,At=null,Pl(e,y,v,C)}}i0(),g=Be;break}catch(B){kd(e,B)}while(!0);return t&&e.shellSuspendCounter++,an=nl=null,Se=i,U.H=c,U.A=f,de===null&&(Me=null,pe=0,Ia()),g}function i0(){for(;de!==null;)Ud(de)}function a0(e,t){var n=Se;Se|=2;var i=Ld(),c=zd();Me!==e||pe!==t?(Ms=null,_s=Vt()+500,Fl(e,t)):Zl=Ni(e,t);e:do try{if(Te!==0&&de!==null){t=de;var f=At;t:switch(Te){case 1:Te=0,At=null,Pl(e,t,f,1);break;case 2:case 9:if(Zo(f)){Te=0,At=null,Bd(t);break}t=function(){Te!==2&&Te!==9||Me!==e||(Te=7),Wt(e)},f.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Zo(f)?(Te=0,At=null,Bd(t)):(Te=0,At=null,Pl(e,t,f,7));break;case 5:var g=null;switch(de.tag){case 26:g=de.memoizedState;case 5:case 27:var y=de;if(!g||vg(g)){Te=0,At=null;var v=y.sibling;if(v!==null)de=v;else{var C=y.return;C!==null?(de=C,Ds(C)):de=null}break t}}Te=0,At=null,Pl(e,t,f,5);break;case 6:Te=0,At=null,Pl(e,t,f,6);break;case 8:br(),Be=6;break e;default:throw Error(s(462))}}s0();break}catch(B){kd(e,B)}while(!0);return an=nl=null,U.H=i,U.A=c,Se=n,de!==null?0:(Me=null,pe=0,Ia(),Be)}function s0(){for(;de!==null&&!Mp();)Ud(de)}function Ud(e){var t=rd(e.alternate,e,dn);e.memoizedProps=e.pendingProps,t===null?Ds(e):de=t}function Bd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ld(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=ld(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Uc(t);default:od(n,t),t=de=qo(t,dn),t=rd(n,t,dn)}e.memoizedProps=e.pendingProps,t===null?Ds(e):de=t}function Pl(e,t,n,i){an=nl=null,Uc(t),Kl=null,ea=0;var c=t.return;try{if(Jy(e,c,t,n,pe)){Be=1,Ts(e,Ct(n,e.current)),de=null;return}}catch(f){if(c!==null)throw de=c,f;Be=1,Ts(e,Ct(n,e.current)),de=null;return}t.flags&32768?(be||i===1?e=!0:Zl||(pe&536870912)!==0?e=!1:(Rn=e=!0,(i===2||i===9||i===3||i===6)&&(i=zt.current,i!==null&&i.tag===13&&(i.flags|=16384))),qd(t,e)):Ds(t)}function Ds(e){var t=e;do{if((t.flags&32768)!==0){qd(t,Rn);return}e=t.return;var n=Iy(t.alternate,t,dn);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function qd(e,t){do{var n=Fy(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);Be=6,de=null}function jd(e,t,n,i,c,f,g,y,v){e.cancelPendingCommit=null;do Cs();while(Pe!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=oc,qp(e,n,f,g,y,v),e===Me&&(de=Me=null,pe=0),Wl=t,zn=e,Il=n,pr=f,yr=c,xd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f0(Ua,function(){return Kd(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,c=Z.p,Z.p=2,g=Se,Se|=4;try{Py(e,t,n)}finally{Se=g,Z.p=c,U.T=i}}Pe=1,Hd(),$d(),Yd()}}function Hd(){if(Pe===1){Pe=0;var e=zn,t=Wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var i=Z.p;Z.p=2;var c=Se;Se|=4;try{wd(t,e);var f=kr,g=Mo(e.containerInfo),y=f.focusedElem,v=f.selectionRange;if(g!==y&&y&&y.ownerDocument&&_o(y.ownerDocument.documentElement,y)){if(v!==null&&sc(y)){var C=v.start,B=v.end;if(B===void 0&&(B=C),"selectionStart"in y)y.selectionStart=C,y.selectionEnd=Math.min(B,y.value.length);else{var H=y.ownerDocument||document,R=H&&H.defaultView||window;if(R.getSelection){var k=R.getSelection(),ae=y.textContent.length,ne=Math.min(v.start,ae),Ae=v.end===void 0?ne:Math.min(v.end,ae);!k.extend&&ne>Ae&&(g=Ae,Ae=ne,ne=g);var _=No(y,ne),O=No(y,Ae);if(_&&O&&(k.rangeCount!==1||k.anchorNode!==_.node||k.anchorOffset!==_.offset||k.focusNode!==O.node||k.focusOffset!==O.offset)){var M=H.createRange();M.setStart(_.node,_.offset),k.removeAllRanges(),ne>Ae?(k.addRange(M),k.extend(O.node,O.offset)):(M.setEnd(O.node,O.offset),k.addRange(M))}}}}for(H=[],k=y;k=k.parentNode;)k.nodeType===1&&H.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<H.length;y++){var j=H[y];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Gs=!!Rr,kr=Rr=null}finally{Se=c,Z.p=i,U.T=n}}e.current=t,Pe=2}}function $d(){if(Pe===2){Pe=0;var e=zn,t=Wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var i=Z.p;Z.p=2;var c=Se;Se|=4;try{vd(e,t.alternate,t)}finally{Se=c,Z.p=i,U.T=n}}Pe=3}}function Yd(){if(Pe===4||Pe===3){Pe=0,xp();var e=zn,t=Wl,n=Il,i=xd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pe=5:(Pe=0,Wl=zn=null,Gd(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ln=null),ju(n),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Oi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,c=Z.p,Z.p=2,U.T=null;try{for(var f=e.onRecoverableError,g=0;g<i.length;g++){var y=i[g];f(y.value,{componentStack:y.stack})}}finally{U.T=t,Z.p=c}}(Il&3)!==0&&Cs(),Wt(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===vr?ra++:(ra=0,vr=e):ra=0,fa(0)}}function Gd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gi(t)))}function Cs(e){return Hd(),$d(),Yd(),Kd()}function Kd(){if(Pe!==5)return!1;var e=zn,t=pr;pr=0;var n=ju(Il),i=U.T,c=Z.p;try{Z.p=32>n?32:n,U.T=null,n=yr,yr=null;var f=zn,g=Il;if(Pe=0,Wl=zn=null,Il=0,(Se&6)!==0)throw Error(s(331));var y=Se;if(Se|=4,_d(f.current),Ad(f,f.current,g,n),Se=y,fa(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Oi,f)}catch{}return!0}finally{Z.p=c,U.T=i,Gd(e,t)}}function Vd(e,t,n){t=Ct(n,t),t=Wc(e.stateNode,t,2),e=On(e,t,2),e!==null&&(_i(e,2),Wt(e))}function Ne(e,t,n){if(e.tag===3)Vd(e,e,n);else for(;t!==null;){if(t.tag===3){Vd(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ln===null||!Ln.has(i))){e=Ct(n,e),n=Jh(2),i=On(t,n,2),i!==null&&(Wh(n,i,t,e),_i(i,2),Wt(i));break}}t=t.return}}function wr(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new n0;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(hr=!0,c.add(n),e=u0.bind(null,e,t,n),t.then(e,e))}function u0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(pe&n)===n&&(Be===4||Be===3&&(pe&62914560)===pe&&300>Vt()-mr?(Se&2)===0&&Fl(e,0):dr|=n,Jl===pe&&(Jl=0)),Wt(e)}function Qd(e,t){t===0&&(t=$f()),e=Ll(e,t),e!==null&&(_i(e,t),Wt(e))}function c0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qd(e,n)}function r0(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Qd(e,n)}function f0(e,t){return zu(e,t)}var Rs=null,ei=null,Er=!1,ks=!1,Ar=!1,rl=0;function Wt(e){e!==ei&&e.next===null&&(ei===null?Rs=ei=e:ei=ei.next=e),ks=!0,Er||(Er=!0,h0())}function fa(e,t){if(!Ar&&ks){Ar=!0;do for(var n=!1,i=Rs;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var f=0;else{var g=i.suspendedLanes,y=i.pingedLanes;f=(1<<31-bt(42|e)+1)-1,f&=c&~(g&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,Wd(i,f))}else f=pe,f=ja(i,i===Me?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Ni(i,f)||(n=!0,Wd(i,f));i=i.next}while(n);Ar=!1}}function o0(){Xd()}function Xd(){ks=Er=!1;var e=0;rl!==0&&(S0()&&(e=rl),rl=0);for(var t=Vt(),n=null,i=Rs;i!==null;){var c=i.next,f=Zd(i,t);f===0?(i.next=null,n===null?Rs=c:n.next=c,c===null&&(ei=n)):(n=i,(e!==0||(f&3)!==0)&&(ks=!0)),i=c}fa(e)}function Zd(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-bt(f),y=1<<g,v=c[g];v===-1?((y&n)===0||(y&i)!==0)&&(c[g]=Bp(y,t)):v<=t&&(e.expiredLanes|=y),f&=~y}if(t=Me,n=pe,n=ja(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Uu(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ni(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Uu(i),ju(n)){case 2:case 8:n=qf;break;case 32:n=Ua;break;case 268435456:n=jf;break;default:n=Ua}return i=Jd.bind(null,e),n=zu(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Uu(i),e.callbackPriority=2,e.callbackNode=null,2}function Jd(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var i=pe;return i=ja(e,e===Me?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cd(e,i,t),Zd(e,Vt()),e.callbackNode!=null&&e.callbackNode===n?Jd.bind(null,e):null)}function Wd(e,t){if(Cs())return null;Cd(e,t,!0)}function h0(){w0(function(){(Se&6)!==0?zu(Bf,o0):Xd()})}function Or(){return rl===0&&(rl=Hf()),rl}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ka(""+e)}function Fd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function d0(e,t,n,i,c){if(t==="submit"&&n&&n.stateNode===c){var f=Id((c[rt]||null).action),g=i.submitter;g&&(t=(t=g[rt]||null)?Id(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var y=new Za("action","action",null,i,c);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(rl!==0){var v=g?Fd(c,g):new FormData(c);Vc(n,{pending:!0,data:v,method:c.method,action:f},null,v)}}else typeof f=="function"&&(y.preventDefault(),v=g?Fd(c,g):new FormData(c),Vc(n,{pending:!0,data:v,method:c.method,action:f},f,v))},currentTarget:c}]})}}for(var Nr=0;Nr<fc.length;Nr++){var _r=fc[Nr],g0=_r.toLowerCase(),m0=_r[0].toUpperCase()+_r.slice(1);Ht(g0,"on"+m0)}Ht(Co,"onAnimationEnd"),Ht(Ro,"onAnimationIteration"),Ht(ko,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Ry,"onTransitionRun"),Ht(ky,"onTransitionStart"),Ht(Ly,"onTransitionCancel"),Ht(Lo,"onTransitionEnd"),Al("onMouseEnter",["mouseout","mouseover"]),Al("onMouseLeave",["mouseout","mouseover"]),Al("onPointerEnter",["pointerout","pointerover"]),Al("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="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(" "),p0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Pd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],c=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var g=i.length-1;0<=g;g--){var y=i[g],v=y.instance,C=y.currentTarget;if(y=y.listener,v!==f&&c.isPropagationStopped())break e;f=y,c.currentTarget=C;try{f(c)}catch(B){Ss(B)}c.currentTarget=null,f=v}else for(g=0;g<i.length;g++){if(y=i[g],v=y.instance,C=y.currentTarget,y=y.listener,v!==f&&c.isPropagationStopped())break e;f=y,c.currentTarget=C;try{f(c)}catch(B){Ss(B)}c.currentTarget=null,f=v}}}}function ge(e,t){var n=t[Hu];n===void 0&&(n=t[Hu]=new Set);var i=e+"__bubble";n.has(i)||(eg(t,e,2,!1),n.add(i))}function Mr(e,t,n){var i=0;t&&(i|=4),eg(n,e,i,t)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function xr(e){if(!e[Ls]){e[Ls]=!0,Qf.forEach(function(n){n!=="selectionchange"&&(p0.has(n)||Mr(n,!1,e),Mr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ls]||(t[Ls]=!0,Mr("selectionchange",!1,t))}}function eg(e,t,n,i){switch(Ag(t)){case 2:var c=G0;break;case 8:c=K0;break;default:c=Gr}n=c.bind(null,t,n,e),c=void 0,!Iu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Dr(e,t,n,i,c){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var y=i.stateNode.containerInfo;if(y===c)break;if(g===4)for(g=i.return;g!==null;){var v=g.tag;if((v===3||v===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;y!==null;){if(g=Tl(y),g===null)return;if(v=g.tag,v===5||v===6||v===26||v===27){i=f=g;continue e}y=y.parentNode}}i=i.return}so(function(){var C=f,B=Ju(n),H=[];e:{var R=zo.get(e);if(R!==void 0){var k=Za,ae=e;switch(e){case"keypress":if(Qa(n)===0)break e;case"keydown":case"keyup":k=fy;break;case"focusin":ae="focus",k=tc;break;case"focusout":ae="blur",k=tc;break;case"beforeblur":case"afterblur":k=tc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=ro;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=dy;break;case Co:case Ro:case ko:k=ty;break;case Lo:k=my;break;case"scroll":case"scrollend":k=Wp;break;case"wheel":k=yy;break;case"copy":case"cut":case"paste":k=ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=oo;break;case"toggle":case"beforetoggle":k=by}var ne=(t&4)!==0,Ae=!ne&&(e==="scroll"||e==="scrollend"),_=ne?R!==null?R+"Capture":null:R;ne=[];for(var O=C,M;O!==null;){var j=O;if(M=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||M===null||_===null||(j=Di(O,_),j!=null&&ne.push(ha(O,j,M))),Ae)break;O=O.return}0<ne.length&&(R=new k(R,ae,null,n,B),H.push({event:R,listeners:ne}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",R&&n!==Zu&&(ae=n.relatedTarget||n.fromElement)&&(Tl(ae)||ae[Sl]))break e;if((k||R)&&(R=B.window===B?B:(R=B.ownerDocument)?R.defaultView||R.parentWindow:window,k?(ae=n.relatedTarget||n.toElement,k=C,ae=ae?Tl(ae):null,ae!==null&&(Ae=o(ae),ne=ae.tag,ae!==Ae||ne!==5&&ne!==27&&ne!==6)&&(ae=null)):(k=null,ae=C),k!==ae)){if(ne=ro,j="onMouseLeave",_="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ne=oo,j="onPointerLeave",_="onPointerEnter",O="pointer"),Ae=k==null?R:xi(k),M=ae==null?R:xi(ae),R=new ne(j,O+"leave",k,n,B),R.target=Ae,R.relatedTarget=M,j=null,Tl(B)===C&&(ne=new ne(_,O+"enter",ae,n,B),ne.target=M,ne.relatedTarget=Ae,j=ne),Ae=j,k&&ae)t:{for(ne=k,_=ae,O=0,M=ne;M;M=ti(M))O++;for(M=0,j=_;j;j=ti(j))M++;for(;0<O-M;)ne=ti(ne),O--;for(;0<M-O;)_=ti(_),M--;for(;O--;){if(ne===_||_!==null&&ne===_.alternate)break t;ne=ti(ne),_=ti(_)}ne=null}else ne=null;k!==null&&tg(H,R,k,ne,!1),ae!==null&&Ae!==null&&tg(H,Ae,ae,ne,!0)}}e:{if(R=C?xi(C):window,k=R.nodeName&&R.nodeName.toLowerCase(),k==="select"||k==="input"&&R.type==="file")var I=So;else if(vo(R))if(To)I=xy;else{I=_y;var he=Ny}else k=R.nodeName,!k||k.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?C&&Xu(C.elementType)&&(I=So):I=My;if(I&&(I=I(e,C))){bo(H,I,n,B);break e}he&&he(e,R,C),e==="focusout"&&C&&R.type==="number"&&C.memoizedProps.value!=null&&Qu(R,"number",R.value)}switch(he=C?xi(C):window,e){case"focusin":(vo(he)||he.contentEditable==="true")&&(Cl=he,uc=C,qi=null);break;case"focusout":qi=uc=Cl=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,xo(H,n,B);break;case"selectionchange":if(Cy)break;case"keydown":case"keyup":xo(H,n,B)}var F;if(lc)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Dl?po(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(ho&&n.locale!=="ko"&&(Dl||le!=="onCompositionStart"?le==="onCompositionEnd"&&Dl&&(F=uo()):(Tn=B,Fu="value"in Tn?Tn.value:Tn.textContent,Dl=!0)),he=zs(C,le),0<he.length&&(le=new fo(le,e,null,n,B),H.push({event:le,listeners:he}),F?le.data=F:(F=yo(n),F!==null&&(le.data=F)))),(F=Ty?wy(e,n):Ey(e,n))&&(le=zs(C,"onBeforeInput"),0<le.length&&(he=new fo("onBeforeInput","beforeinput",null,n,B),H.push({event:he,listeners:le}),he.data=F)),d0(H,e,C,n,B)}Pd(H,t)})}function ha(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zs(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Di(e,n),c!=null&&i.unshift(ha(e,c,f)),c=Di(e,t),c!=null&&i.push(ha(e,c,f))),e.tag===3)return i;e=e.return}return[]}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,n,i,c){for(var f=t._reactName,g=[];n!==null&&n!==i;){var y=n,v=y.alternate,C=y.stateNode;if(y=y.tag,v!==null&&v===i)break;y!==5&&y!==26&&y!==27||C===null||(v=C,c?(C=Di(n,f),C!=null&&g.unshift(ha(n,C,v))):c||(C=Di(n,f),C!=null&&g.push(ha(n,C,v)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var y0=/\r\n?/g,v0=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(y0,`
|
|
50
|
-
`).replace(v0,"")}function lg(e,t){return t=ng(t),ng(e)===t}function Us(){}function Ee(e,t,n,i,c,f){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||_l(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&_l(e,""+i);break;case"className":$a(e,"class",i);break;case"tabIndex":$a(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":$a(e,n,i);break;case"style":io(e,i,f);break;case"data":if(t!=="object"){$a(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ka(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",c.name,c,null),Ee(e,t,"formEncType",c.formEncType,c,null),Ee(e,t,"formMethod",c.formMethod,c,null),Ee(e,t,"formTarget",c.formTarget,c,null)):(Ee(e,t,"encType",c.encType,c,null),Ee(e,t,"method",c.method,c,null),Ee(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ka(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Us);break;case"onScroll":i!=null&&ge("scroll",e);break;case"onScrollEnd":i!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Ka(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Ha(e,"popover",i);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ha(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Zp.get(n)||n,Ha(e,n,i))}}function Cr(e,t,n,i,c,f){switch(n){case"style":io(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?_l(e,i):(typeof i=="number"||typeof i=="bigint")&&_l(e,""+i);break;case"onScroll":i!=null&&ge("scroll",e);break;case"onScrollEnd":i!=null&&ge("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),f=e[rt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof i=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,c);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ha(e,n,i)}}}function et(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var i=!1,c=!1,f;for(f in n)if(n.hasOwnProperty(f)){var g=n[f];if(g!=null)switch(f){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,f,g,n,null)}}c&&Ee(e,t,"srcSet",n.srcSet,n,null),i&&Ee(e,t,"src",n.src,n,null);return;case"input":ge("invalid",e);var y=f=g=c=null,v=null,C=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":c=B;break;case"type":g=B;break;case"checked":v=B;break;case"defaultChecked":C=B;break;case"value":f=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ee(e,t,i,B,n,null)}}eo(e,f,y,v,C,g,c,!1),Ya(e);return;case"select":ge("invalid",e),i=g=f=null;for(c in n)if(n.hasOwnProperty(c)&&(y=n[c],y!=null))switch(c){case"value":f=y;break;case"defaultValue":g=y;break;case"multiple":i=y;default:Ee(e,t,c,y,n,null)}t=f,n=g,e.multiple=!!i,t!=null?Nl(e,!!i,t,!1):n!=null&&Nl(e,!!i,n,!0);return;case"textarea":ge("invalid",e),f=c=i=null;for(g in n)if(n.hasOwnProperty(g)&&(y=n[g],y!=null))switch(g){case"value":i=y;break;case"defaultValue":c=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Ee(e,t,g,y,n,null)}no(e,i,c,f),Ya(e);return;case"option":for(v in n)if(n.hasOwnProperty(v)&&(i=n[v],i!=null))switch(v){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ee(e,t,v,i,n,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(i=0;i<oa.length;i++)ge(oa[i],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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 n)if(n.hasOwnProperty(C)&&(i=n[C],i!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,C,i,n,null)}return;default:if(Xu(t)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Cr(e,t,B,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&Ee(e,t,y,i,n,null))}function b0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,g=null,y=null,v=null,C=null,B=null;for(k in n){var H=n[k];if(n.hasOwnProperty(k)&&H!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":v=H;default:i.hasOwnProperty(k)||Ee(e,t,k,null,i,H)}}for(var R in i){var k=i[R];if(H=n[R],i.hasOwnProperty(R)&&(k!=null||H!=null))switch(R){case"type":f=k;break;case"name":c=k;break;case"checked":C=k;break;case"defaultChecked":B=k;break;case"value":g=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==H&&Ee(e,t,R,k,i,H)}}Vu(e,g,y,v,C,B,f,c);return;case"select":k=g=y=R=null;for(f in n)if(v=n[f],n.hasOwnProperty(f)&&v!=null)switch(f){case"value":break;case"multiple":k=v;default:i.hasOwnProperty(f)||Ee(e,t,f,null,i,v)}for(c in i)if(f=i[c],v=n[c],i.hasOwnProperty(c)&&(f!=null||v!=null))switch(c){case"value":R=f;break;case"defaultValue":y=f;break;case"multiple":g=f;default:f!==v&&Ee(e,t,c,f,i,v)}t=y,n=g,i=k,R!=null?Nl(e,!!n,R,!1):!!i!=!!n&&(t!=null?Nl(e,!!n,t,!0):Nl(e,!!n,n?[]:"",!1));return;case"textarea":k=R=null;for(y in n)if(c=n[y],n.hasOwnProperty(y)&&c!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ee(e,t,y,null,i,c)}for(g in i)if(c=i[g],f=n[g],i.hasOwnProperty(g)&&(c!=null||f!=null))switch(g){case"value":R=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==f&&Ee(e,t,g,c,i,f)}to(e,R,k);return;case"option":for(var ae in n)if(R=n[ae],n.hasOwnProperty(ae)&&R!=null&&!i.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ee(e,t,ae,null,i,R)}for(v in i)if(R=i[v],k=n[v],i.hasOwnProperty(v)&&R!==k&&(R!=null||k!=null))switch(v){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ee(e,t,v,R,i,k)}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 ne in n)R=n[ne],n.hasOwnProperty(ne)&&R!=null&&!i.hasOwnProperty(ne)&&Ee(e,t,ne,null,i,R);for(C in i)if(R=i[C],k=n[C],i.hasOwnProperty(C)&&R!==k&&(R!=null||k!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:Ee(e,t,C,R,i,k)}return;default:if(Xu(t)){for(var Ae in n)R=n[Ae],n.hasOwnProperty(Ae)&&R!==void 0&&!i.hasOwnProperty(Ae)&&Cr(e,t,Ae,void 0,i,R);for(B in i)R=i[B],k=n[B],!i.hasOwnProperty(B)||R===k||R===void 0&&k===void 0||Cr(e,t,B,R,i,k);return}}for(var _ in n)R=n[_],n.hasOwnProperty(_)&&R!=null&&!i.hasOwnProperty(_)&&Ee(e,t,_,null,i,R);for(H in i)R=i[H],k=n[H],!i.hasOwnProperty(H)||R===k||R==null&&k==null||Ee(e,t,H,R,i,k)}var Rr=null,kr=null;function Bs(e){return e.nodeType===9?e:e.ownerDocument}function ig(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 ag(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 Lr(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 zr=null;function S0(){var e=window.event;return e&&e.type==="popstate"?e===zr?!1:(zr=e,!0):(zr=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,T0=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,w0=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(e){return ug.resolve(null).then(e).catch(E0)}:sg;function E0(e){setTimeout(function(){throw e})}function Bn(e){return e==="head"}function cg(e,t){var n=t,i=0,c=0;do{var f=n.nextSibling;if(e.removeChild(n),f&&f.nodeType===8)if(n=f.data,n==="/$"){if(0<i&&8>i){n=i;var g=e.ownerDocument;if(n&1&&da(g.documentElement),n&2&&da(g.body),n&4)for(n=g.head,da(n),g=n.firstChild;g;){var y=g.nextSibling,v=g.nodeName;g[Mi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&g.rel.toLowerCase()==="stylesheet"||n.removeChild(g),g=y}}if(c===0){e.removeChild(f),Ta(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:i=n.charCodeAt(0)-48;else i=0;n=f}while(n);Ta(t)}function Ur(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ur(n),$u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function A0(e,t,n,i){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function O0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Yt(e.nextSibling),e===null))return null;return e}function Br(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function N0(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Yt(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var qr=null;function rg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function fg(e,t,n){switch(t=Bs(n),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 da(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$u(e)}var Bt=new Map,og=new Set;function qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gn=Z.d;Z.d={f:_0,r:M0,D:x0,C:D0,L:C0,m:R0,X:L0,S:k0,M:z0};function _0(){var e=gn.f(),t=xs();return e||t}function M0(e){var t=wl(e);t!==null&&t.tag===5&&t.type==="form"?Ch(t):gn.r(e)}var ni=typeof document>"u"?null:document;function hg(e,t,n){var i=ni;if(i&&typeof t=="string"&&t){var c=Dt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),og.has(c)||(og.add(c),e={rel:e,crossOrigin:n,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),et(t,"link",e),Ze(t),i.head.appendChild(t)))}}function x0(e){gn.D(e),hg("dns-prefetch",e,null)}function D0(e,t){gn.C(e,t),hg("preconnect",e,t)}function C0(e,t,n){gn.L(e,t,n);var i=ni;if(i&&e&&t){var c='link[rel="preload"][as="'+Dt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Dt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Dt(n.imageSizes)+'"]')):c+='[href="'+Dt(e)+'"]';var f=c;switch(t){case"style":f=li(e);break;case"script":f=ii(e)}Bt.has(f)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Bt.set(f,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(ga(f))||t==="script"&&i.querySelector(ma(f))||(t=i.createElement("link"),et(t,"link",e),Ze(t),i.head.appendChild(t)))}}function R0(e,t){gn.m(e,t);var n=ni;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Dt(i)+'"][href="'+Dt(e)+'"]',f=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ii(e)}if(!Bt.has(f)&&(e=b({rel:"modulepreload",href:e},t),Bt.set(f,e),n.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ma(f)))return}i=n.createElement("link"),et(i,"link",e),Ze(i),n.head.appendChild(i)}}}function k0(e,t,n){gn.S(e,t,n);var i=ni;if(i&&e){var c=El(i).hoistableStyles,f=li(e);t=t||"default";var g=c.get(f);if(!g){var y={loading:0,preload:null};if(g=i.querySelector(ga(f)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Bt.get(f))&&jr(e,n);var v=g=i.createElement("link");Ze(v),et(v,"link",e),v._p=new Promise(function(C,B){v.onload=C,v.onerror=B}),v.addEventListener("load",function(){y.loading|=1}),v.addEventListener("error",function(){y.loading|=2}),y.loading|=4,js(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:y},c.set(f,g)}}}function L0(e,t){gn.X(e,t);var n=ni;if(n&&e){var i=El(n).hoistableScripts,c=ii(e),f=i.get(c);f||(f=n.querySelector(ma(c)),f||(e=b({src:e,async:!0},t),(t=Bt.get(c))&&Hr(e,t),f=n.createElement("script"),Ze(f),et(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function z0(e,t){gn.M(e,t);var n=ni;if(n&&e){var i=El(n).hoistableScripts,c=ii(e),f=i.get(c);f||(f=n.querySelector(ma(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=Bt.get(c))&&Hr(e,t),f=n.createElement("script"),Ze(f),et(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function dg(e,t,n,i){var c=(c=ue.current)?qs(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=li(n.href),n=El(c).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=li(n.href);var f=El(c).hoistableStyles,g=f.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=c.querySelector(ga(e)))&&!f._p&&(g.instance=f,g.state.loading=5),Bt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Bt.set(e,n),f||U0(c,e,n,g.state))),t&&i===null)throw Error(s(528,""));return g}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ii(n),n=El(c).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function li(e){return'href="'+Dt(e)+'"'}function ga(e){return'link[rel="stylesheet"]['+e+"]"}function gg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function U0(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),et(t,"link",n),Ze(t),e.head.appendChild(t))}function ii(e){return'[src="'+Dt(e)+'"]'}function ma(e){return"script[async]"+e}function mg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Dt(n.href)+'"]');if(i)return t.instance=i,Ze(i),i;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ze(i),et(i,"style",c),js(i,n.precedence,e),t.instance=i;case"stylesheet":c=li(n.href);var f=e.querySelector(ga(c));if(f)return t.state.loading|=4,t.instance=f,Ze(f),f;i=gg(n),(c=Bt.get(c))&&jr(i,c),f=(e.ownerDocument||e).createElement("link"),Ze(f);var g=f;return g._p=new Promise(function(y,v){g.onload=y,g.onerror=v}),et(f,"link",i),t.state.loading|=4,js(f,n.precedence,e),t.instance=f;case"script":return f=ii(n.src),(c=e.querySelector(ma(f)))?(t.instance=c,Ze(c),c):(i=n,(c=Bt.get(f))&&(i=b({},n),Hr(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ze(c),et(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,js(i,n.precedence,e));return t.instance}function js(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,f=c,g=0;g<i.length;g++){var y=i[g];if(y.dataset.precedence===t)f=y;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hs=null;function pg(e,t,n){if(Hs===null){var i=new Map,c=Hs=new Map;c.set(n,i)}else c=Hs,i=c.get(n),i||(i=new Map,c.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var f=n[c];if(!(f[Mi]||f[nt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var y=i.get(g);y?y.push(f):i.set(g,[f])}}return i}function yg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function B0(e,t,n){if(n===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 vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var pa=null;function q0(){}function j0(e,t,n){if(pa===null)throw Error(s(475));var i=pa;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=li(n.href),f=e.querySelector(ga(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=$s.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=f,Ze(f);return}f=e.ownerDocument||e,n=gg(n),(c=Bt.get(c))&&jr(n,c),f=f.createElement("link"),Ze(f);var g=f;g._p=new Promise(function(y,v){g.onload=y,g.onerror=v}),et(f,"link",n),t.instance=f}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=$s.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function H0(){if(pa===null)throw Error(s(475));var e=pa;return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function $s(){if(this.count--,this.count===0){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ys=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ys=new Map,t.forEach($0,e),Ys=null,$s.call(e))}function $0(e,t){if(!(t.state.loading&4)){var n=Ys.get(e);if(n)var i=n.get(null);else{n=new Map,Ys.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var g=c[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),i=g)}i&&n.set(null,i)}c=t.instance,g=c.getAttribute("data-precedence"),f=n.get(g)||i,f===i&&n.set(null,c),n.set(g,c),this.count++,i=$s.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ya={$$typeof:$,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Y0(e,t,n,i,c,f,g,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=Bu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.hiddenUpdates=Bu(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function bg(e,t,n,i,c,f,g,y,v,C,B,H){return e=new Y0(e,t,n,g,y,v,C,H),t=1,f===!0&&(t|=24),f=Tt(3,null,null,t),e.current=f,f.stateNode=e,t=wc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:n,cache:t},Nc(f),e}function Sg(e){return e?(e=zl,e):zl}function Tg(e,t,n,i,c,f){c=Sg(c),i.context===null?i.context=c:i.pendingContext=c,i=An(t),i.payload={element:n},f=f===void 0?null:f,f!==null&&(i.callback=f),n=On(e,i,t),n!==null&&(Nt(n,e,t),Xi(n,e,t))}function wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yr(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function Eg(e){if(e.tag===13){var t=Ll(e,67108864);t!==null&&Nt(t,e,67108864),Yr(e,67108864)}}var Gs=!0;function G0(e,t,n,i){var c=U.T;U.T=null;var f=Z.p;try{Z.p=2,Gr(e,t,n,i)}finally{Z.p=f,U.T=c}}function K0(e,t,n,i){var c=U.T;U.T=null;var f=Z.p;try{Z.p=8,Gr(e,t,n,i)}finally{Z.p=f,U.T=c}}function Gr(e,t,n,i){if(Gs){var c=Kr(i);if(c===null)Dr(e,t,i,Ks,n),Og(e,i);else if(Q0(c,e,t,n,i))i.stopPropagation();else if(Og(e,i),t&4&&-1<V0.indexOf(e)){for(;c!==null;){var f=wl(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Qn(f.pendingLanes);if(g!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var v=1<<31-bt(g);y.entanglements[1]|=v,g&=~v}Wt(f),(Se&6)===0&&(_s=Vt()+500,fa(0))}}break;case 13:y=Ll(f,2),y!==null&&Nt(y,f,2),xs(),Yr(f,2)}if(f=Kr(i),f===null&&Dr(e,t,i,Ks,n),f===c)break;c=f}c!==null&&i.stopPropagation()}else Dr(e,t,i,null,n)}}function Kr(e){return e=Ju(e),Vr(e)}var Ks=null;function Vr(e){if(Ks=null,e=Tl(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ks=e,null}function Ag(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(Dp()){case Bf:return 2;case qf:return 8;case Ua:case Cp:return 32;case jf:return 268435456;default:return 32}default:return 32}}var Qr=!1,qn=null,jn=null,Hn=null,va=new Map,ba=new Map,$n=[],V0="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 Og(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Sa(e,t,n,i,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:f,targetContainers:[c]},t!==null&&(t=wl(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Q0(e,t,n,i,c){switch(t){case"focusin":return qn=Sa(qn,e,t,n,i,c),!0;case"dragenter":return jn=Sa(jn,e,t,n,i,c),!0;case"mouseover":return Hn=Sa(Hn,e,t,n,i,c),!0;case"pointerover":var f=c.pointerId;return va.set(f,Sa(va.get(f)||null,e,t,n,i,c)),!0;case"gotpointercapture":return f=c.pointerId,ba.set(f,Sa(ba.get(f)||null,e,t,n,i,c)),!0}return!1}function Ng(e){var t=Tl(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,jp(e.priority,function(){if(n.tag===13){var i=Ot();i=qu(i);var c=Ll(n,i);c!==null&&Nt(c,n,i),Yr(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kr(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Zu=i,n.target.dispatchEvent(i),Zu=null}else return t=wl(n),t!==null&&Eg(t),e.blockedOn=n,!1;t.shift()}return!0}function _g(e,t,n){Vs(e)&&n.delete(t)}function X0(){Qr=!1,qn!==null&&Vs(qn)&&(qn=null),jn!==null&&Vs(jn)&&(jn=null),Hn!==null&&Vs(Hn)&&(Hn=null),va.forEach(_g),ba.forEach(_g)}function Qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Qr||(Qr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,X0)))}var Xs=null;function Mg(e){Xs!==e&&(Xs=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Xs===e&&(Xs=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Vr(i||n)===null)continue;break}var f=wl(n);f!==null&&(e.splice(t,3),t-=3,Vc(f,{pending:!0,data:c,method:n.method,action:i},i,c))}}))}function Ta(e){function t(v){return Qs(v,e)}qn!==null&&Qs(qn,e),jn!==null&&Qs(jn,e),Hn!==null&&Qs(Hn,e),va.forEach(t),ba.forEach(t);for(var n=0;n<$n.length;n++){var i=$n[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Ng(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var c=n[i],f=n[i+1],g=c[rt]||null;if(typeof f=="function")g||Mg(n);else if(g){var y=null;if(f&&f.hasAttribute("formAction")){if(c=f,g=f[rt]||null)y=g.formAction;else if(Vr(c)!==null)continue}else y=g.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Mg(n)}}}function Xr(e){this._internalRoot=e}Zs.prototype.render=Xr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=Ot();Tg(n,i,e,t,null,null)},Zs.prototype.unmount=Xr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tg(e.current,2,null,e,null,null),xs(),t[Sl]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Ng(e)}};var xg=l.version;if(xg!=="19.1.1")throw Error(s(527,xg,"19.1.1"));Z.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=m(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Z0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{Oi=Js.inject(Z0),vt=Js}catch{}}return Ea.createRoot=function(e,t){if(!r(e))throw Error(s(299));var n=!1,i="",c=Vh,f=Qh,g=Xh,y=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=bg(e,1,!1,null,null,n,i,c,f,g,y,null),e[Sl]=t.current,xr(e),new Xr(t)},Ea.hydrateRoot=function(e,t,n){if(!r(e))throw Error(s(299));var i=!1,c="",f=Vh,g=Qh,y=Xh,v=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=bg(e,1,!0,t,n??null,i,c,f,g,y,v,C),t.context=Sg(null),n=t.current,i=Ot(),i=qu(i),c=An(i),c.callback=null,On(n,c,i),n=i,t.current.lanes=n,_i(t,n),Wt(t),e[Sl]=t.current,xr(e),new Zs(t)},Ea.version="19.1.1",Ea}var $g;function h1(){if($g)return Wr.exports;$g=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),Wr.exports=o1(),Wr.exports}var d1=h1();const g1="modulepreload",m1=function(u){return"/"+u},Yg={},p1=function(l,a,s){let r=Promise.resolve();if(a&&a.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));r=h(a.map(p=>{if(p=m1(p),p in Yg)return;Yg[p]=!0;const b=p.endsWith(".css"),S=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${S}`))return;const N=document.createElement("link");if(N.rel=b?"stylesheet":g1,b||(N.as="script"),N.crossOrigin="",N.href=p,m&&N.setAttribute("nonce",m),document.head.appendChild(N),b)return new Promise((E,x)=>{N.addEventListener("load",E),N.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return r.then(h=>{for(const d of h||[])d.status==="rejected"&&o(d.reason);return l().catch(o)})};function y1(u,l){const a=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let r,o={},h=!1,d=l==null?void 0:l.fg,m=l==null?void 0:l.bg;for(;(r=a.exec(u))!==null;){const[,,p,,b]=r;if(p){const S=+p;switch(S){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:d=Gg[S-30];break;case 39:d=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:m=Gg[S-40];break;case 49:m=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:d=Kg[S-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:m=Kg[S-100];break}}else if(b){const S={...o},N=h?m:d;N!==void 0&&(S.color=N);const E=h?d:m;E!==void 0&&(S["background-color"]=E),s.push(`<span style="${b1(S)}">${v1(b)}</span>`)}}return s.join("")}const Gg={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},Kg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function v1(u){return u.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function b1(u){return Object.entries(u).map(([l,a])=>`${l}: ${a}`).join("; ")}const ef=({text:u,highlighter:l,mimeType:a,linkify:s,readOnly:r,highlight:o,revealLine:h,lineNumbers:d,isFocused:m,focusOnChange:p,wrapLines:b,onChange:S,dataTestId:N,placeholder:E})=>{const[x,T]=rm(),[w]=me.useState(p1(()=>import("./codeMirrorModule-Ba8ryMC6.js"),__vite__mapDeps([0,1])).then(Q=>Q.default)),L=me.useRef(null),[z,$]=me.useState();return me.useEffect(()=>{(async()=>{var V,D;const Q=await w;T1(Q);const G=T.current;if(!G)return;const K=E1(l)||w1(a)||(s?"text/linkified":"");if(L.current&&K===L.current.cm.getOption("mode")&&!!r===L.current.cm.getOption("readOnly")&&d===L.current.cm.getOption("lineNumbers")&&b===L.current.cm.getOption("lineWrapping")&&E===L.current.cm.getOption("placeholder"))return;(D=(V=L.current)==null?void 0:V.cm)==null||D.getWrapperElement().remove();const P=Q(G,{value:"",mode:K,readOnly:!!r,lineNumbers:d,lineWrapping:b,placeholder:E});return L.current={cm:P},m&&P.focus(),$(P),P})()},[w,z,T,l,a,s,d,b,r,m,E]),me.useEffect(()=>{L.current&&L.current.cm.setSize(x.width,x.height)},[x]),me.useLayoutEffect(()=>{var K;if(!z)return;let Q=!1;if(z.getValue()!==u&&(z.setValue(u),Q=!0,p&&(z.execCommand("selectAll"),z.focus())),Q||JSON.stringify(o)!==JSON.stringify(L.current.highlight)){for(const D of L.current.highlight||[])z.removeLineClass(D.line-1,"wrap");for(const D of o||[])z.addLineClass(D.line-1,"wrap",`source-line-${D.type}`);for(const D of L.current.widgets||[])z.removeLineWidget(D);for(const D of L.current.markers||[])D.clear();const P=[],V=[];for(const D of o||[]){if(D.type!=="subtle-error"&&D.type!=="error")continue;const se=(K=L.current)==null?void 0:K.cm.getLine(D.line-1);if(se){const ce={};ce.title=D.message||"",V.push(z.markText({line:D.line-1,ch:0},{line:D.line-1,ch:D.column||se.length},{className:"source-line-error-underline",attributes:ce}))}if(D.type==="error"){const ce=document.createElement("div");ce.innerHTML=y1(D.message||""),ce.className="source-line-error-widget",P.push(z.addLineWidget(D.line,ce,{above:!0,coverGutter:!1}))}}L.current.highlight=o,L.current.widgets=P,L.current.markers=V}typeof h=="number"&&L.current.cm.lineCount()>=h&&z.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let G;return S&&(G=()=>S(z.getValue()),z.on("change",G)),()=>{G&&z.off("change",G)}},[z,u,o,h,p,S]),X.jsx("div",{"data-testid":N,className:"cm-wrapper",ref:T,onClick:S1})};function S1(u){var a;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((a=u.target.nextElementSibling)!=null&&a.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let Vg=!1;function T1(u){Vg||(Vg=!0,u.defineSimpleMode("text/linkified",{start:[{regex:n1,token:"linkified"}]}))}function w1(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function E1(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const A1=50,O1=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:a=!1,orientation:s="vertical",minSidebarSize:r=A1,settingName:o,sidebar:h,main:d})=>{const m=Math.max(r,u)*window.devicePixelRatio,[p,b]=fu(o?o+"."+s+":size":void 0,m),[S,N]=fu(o?o+"."+s+":size":void 0,m),[E,x]=me.useState(null),[T,w]=rm();let L;s==="vertical"?(L=S/window.devicePixelRatio,T&&T.height<L&&(L=T.height-10)):(L=p/window.devicePixelRatio,T&&T.width<L&&(L=T.width-10)),document.body.style.userSelect=E?"none":"inherit";let z={};return s==="vertical"?a?z={top:E?0:L-4,bottom:E?0:void 0,height:E?"initial":8}:z={bottom:E?0:L-4,top:E?0:void 0,height:E?"initial":8}:a?z={left:E?0:L-4,right:E?0:void 0,width:E?"initial":8}:z={right:E?0:L-4,left:E?0:void 0,width:E?"initial":8},X.jsxs("div",{className:pl("split-view",s,a&&"sidebar-first"),ref:w,children:[X.jsx("div",{className:"split-view-main",children:d}),!l&&X.jsx("div",{style:{flexBasis:L},className:"split-view-sidebar",children:h}),!l&&X.jsx("div",{style:z,className:"split-view-resizer",onMouseDown:$=>x({offset:s==="vertical"?$.clientY:$.clientX,size:L}),onMouseUp:()=>x(null),onMouseMove:$=>{if(!$.buttons)x(null);else if(E){const G=(s==="vertical"?$.clientY:$.clientX)-E.offset,K=a?E.size+G:E.size-G,V=$.target.parentElement.getBoundingClientRect(),D=Math.min(Math.max(r,K),(s==="vertical"?V.height:V.width)-r);s==="vertical"?N(D*window.devicePixelRatio):b(D*window.devicePixelRatio)}}})]})},fm=({noShadow:u,children:l,noMinHeight:a,className:s,sidebarBackground:r,onClick:o})=>X.jsx("div",{className:pl("toolbar",u&&"no-shadow",a&&"no-min-height",s,r&&"toolbar-sidebar-background"),onClick:o,children:l}),N1=({tabs:u,selectedTab:l,setSelectedTab:a,leftToolbar:s,rightToolbar:r,dataTestId:o,mode:h})=>{const d=me.useId();return l||(l=u[0].id),h||(h="default"),X.jsx("div",{className:"tabbed-pane","data-testid":o,children:X.jsxs("div",{className:"vbox",children:[X.jsxs(fm,{children:[s&&X.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(m=>X.jsx(_1,{id:m.id,ariaControls:`${d}-${m.id}`,title:m.title,count:m.count,errorCount:m.errorCount,selected:l===m.id,onSelect:a},m.id))]}),h==="select"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:X.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:m=>{a==null||a(u[m.currentTarget.selectedIndex].id)},children:u.map(m=>{let p="";return m.count&&(p=` (${m.count})`),m.errorCount&&(p=` (${m.errorCount})`),X.jsxs("option",{value:m.id,role:"tab","aria-controls":`${d}-${m.id}`,children:[m.title,p]},m.id)})})}),r&&X.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...r]})]}),u.map(m=>{const p="tab-content tab-"+m.id;if(m.component)return X.jsx("div",{id:`${d}-${m.id}`,role:"tabpanel","aria-label":m.title,className:p,style:{display:l===m.id?"inherit":"none"},children:m.component},m.id);if(l===m.id)return X.jsx("div",{id:`${d}-${m.id}`,role:"tabpanel","aria-label":m.title,className:p,children:m.render()},m.id)})]})})},_1=({id:u,title:l,count:a,errorCount:s,selected:r,onSelect:o,ariaControls:h})=>X.jsxs("div",{className:pl("tabbed-pane-tab",r&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,"aria-controls":h,children:[X.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!a&&X.jsx("div",{className:"tabbed-pane-tab-counter",children:a}),!!s&&X.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),M1=({sources:u,fileId:l,setFileId:a})=>X.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{a(s.target.selectedOptions[0].value)},children:x1(u)});function x1(u){const l=r=>r.replace(/.*[/\\]([^/\\]+)/,"$1"),a=r=>X.jsx("option",{value:r.id,children:l(r.label)},r.id),s=new Map;for(const r of u){let o=s.get(r.group||"Debugger");o||(o=[],s.set(r.group||"Debugger",o)),o.push(r)}return[...s.entries()].map(([r,o])=>X.jsx("optgroup",{label:r,children:o.filter(h=>(h.group||"Debugger")===r).map(h=>a(h))},r))}function D1(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const _t=me.forwardRef(function({children:l,title:a="",icon:s,disabled:r=!1,toggled:o=!1,onClick:h=()=>{},style:d,testId:m,className:p,ariaLabel:b},S){return X.jsxs("button",{ref:S,className:pl(p,"toolbar-button",s,o&&"toggled"),onMouseDown:Xg,onClick:h,onDoubleClick:Xg,title:a,disabled:!!r,style:d,"data-testid":m,"aria-label":b||a,children:[s&&X.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l]})}),Qg=({style:u})=>X.jsx("div",{className:"toolbar-separator",style:u}),Xg=u=>{u.stopPropagation(),u.preventDefault()},Ke=function(u,l,a){return u>=l&&u<=a};function gt(u){return Ke(u,48,57)}function Zg(u){return gt(u)||Ke(u,65,70)||Ke(u,97,102)}function C1(u){return Ke(u,65,90)}function R1(u){return Ke(u,97,122)}function k1(u){return C1(u)||R1(u)}function L1(u){return u>=128}function tu(u){return k1(u)||L1(u)||u===95}function Jg(u){return tu(u)||gt(u)||u===45}function z1(u){return Ke(u,0,8)||u===11||Ke(u,14,31)||u===127}function nu(u){return u===10}function mn(u){return nu(u)||u===9||u===32}const U1=1114111;class Tf extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function B1(u){const l=[];for(let a=0;a<u.length;a++){let s=u.charCodeAt(a);if(s===13&&u.charCodeAt(a+1)===10&&(s=10,a++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Ke(s,55296,56319)&&Ke(u.charCodeAt(a+1),56320,57343)){const r=s-55296,o=u.charCodeAt(a+1)-56320;s=Math.pow(2,16)+r*Math.pow(2,10)+o,a++}l.push(s)}return l}function Xe(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,a=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(a)}function q1(u){const l=B1(u);let a=-1;const s=[];let r;const o=function(q){return q>=l.length?-1:l[q]},h=function(q){if(q===void 0&&(q=1),q>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(a+q)},d=function(q){return q===void 0&&(q=1),a+=q,r=o(a),!0},m=function(){return a-=1,!0},p=function(q){return q===void 0&&(q=r),q===-1},b=function(){if(S(),d(),mn(r)){for(;mn(h());)d();return new hf}else{if(r===34)return x();if(r===35)if(Jg(h())||L(h(1),h(2))){const q=new Om("");return $(h(1),h(2),h(3))&&(q.type="id"),q.value=P(),q}else return new at(r);else return r===36?h()===61?(d(),new Y1):new at(r):r===39?x():r===40?new Sm:r===41?new Tm:r===42?h()===61?(d(),new G1):new at(r):r===43?K()?(m(),N()):new at(r):r===44?new pm:r===45?K()?(m(),N()):h(1)===45&&h(2)===62?(d(2),new dm):Q()?(m(),E()):new at(r):r===46?K()?(m(),N()):new at(r):r===58?new gm:r===59?new mm:r===60?h(1)===33&&h(2)===45&&h(3)===45?(d(3),new hm):new at(r):r===64?$(h(1),h(2),h(3))?new Am(P()):new at(r):r===91?new bm:r===92?z()?(m(),E()):new at(r):r===93?new df:r===94?h()===61?(d(),new $1):new at(r):r===123?new ym:r===124?h()===61?(d(),new H1):h()===124?(d(),new wm):new at(r):r===125?new vm:r===126?h()===61?(d(),new j1):new at(r):gt(r)?(m(),N()):tu(r)?(m(),E()):p()?new iu:new at(r)}},S=function(){for(;h(1)===47&&h(2)===42;)for(d(2);;)if(d(),r===42&&h()===47){d();break}else if(p())return},N=function(){const q=V();if($(h(1),h(2),h(3))){const ee=new K1;return ee.value=q.value,ee.repr=q.repr,ee.type=q.type,ee.unit=P(),ee}else if(h()===37){d();const ee=new xm;return ee.value=q.value,ee.repr=q.repr,ee}else{const ee=new Mm;return ee.value=q.value,ee.repr=q.repr,ee.type=q.type,ee}},E=function(){const q=P();if(q.toLowerCase()==="url"&&h()===40){for(d();mn(h(1))&&mn(h(2));)d();return h()===34||h()===39?new au(q):mn(h())&&(h(2)===34||h(2)===39)?new au(q):T()}else return h()===40?(d(),new au(q)):new Em(q)},x=function(q){q===void 0&&(q=r);let ee="";for(;d();){if(r===q||p())return new Nm(ee);if(nu(r))return m(),new om;r===92?p(h())||(nu(h())?d():ee+=Xe(w())):ee+=Xe(r)}throw new Error("Internal error")},T=function(){const q=new _m("");for(;mn(h());)d();if(p(h()))return q;for(;d();){if(r===41||p())return q;if(mn(r)){for(;mn(h());)d();return h()===41||p(h())?(d(),q):(se(),new lu)}else{if(r===34||r===39||r===40||z1(r))return se(),new lu;if(r===92)if(z())q.value+=Xe(w());else return se(),new lu;else q.value+=Xe(r)}}throw new Error("Internal error")},w=function(){if(d(),Zg(r)){const q=[r];for(let ze=0;ze<5&&Zg(h());ze++)d(),q.push(r);mn(h())&&d();let ee=parseInt(q.map(function(ze){return String.fromCharCode(ze)}).join(""),16);return ee>U1&&(ee=65533),ee}else return p()?65533:r},L=function(q,ee){return!(q!==92||nu(ee))},z=function(){return L(r,h())},$=function(q,ee,ze){return q===45?tu(ee)||ee===45||L(ee,ze):tu(q)?!0:q===92?L(q,ee):!1},Q=function(){return $(r,h(1),h(2))},G=function(q,ee,ze){return q===43||q===45?!!(gt(ee)||ee===46&>(ze)):q===46?!!gt(ee):!!gt(q)},K=function(){return G(r,h(1),h(2))},P=function(){let q="";for(;d();)if(Jg(r))q+=Xe(r);else if(z())q+=Xe(w());else return m(),q;throw new Error("Internal parse error")},V=function(){let q="",ee="integer";for((h()===43||h()===45)&&(d(),q+=Xe(r));gt(h());)d(),q+=Xe(r);if(h(1)===46&>(h(2)))for(d(),q+=Xe(r),d(),q+=Xe(r),ee="number";gt(h());)d(),q+=Xe(r);const ze=h(1),$e=h(2),U=h(3);if((ze===69||ze===101)&>($e))for(d(),q+=Xe(r),d(),q+=Xe(r),ee="number";gt(h());)d(),q+=Xe(r);else if((ze===69||ze===101)&&($e===43||$e===45)&>(U))for(d(),q+=Xe(r),d(),q+=Xe(r),d(),q+=Xe(r),ee="number";gt(h());)d(),q+=Xe(r);const Z=D(q);return{type:ee,value:Z,repr:q}},D=function(q){return+q},se=function(){for(;d();){if(r===41||p())return;z()&&w()}};let ce=0;for(;!p(h());)if(s.push(b()),ce++,ce>l.length*2)throw new Error("I'm infinite-looping!");return s}class He{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class om extends He{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class lu extends He{constructor(){super(...arguments),this.tokenType="BADURL"}}class hf extends He{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class hm extends He{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class dm extends He{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class gm extends He{constructor(){super(...arguments),this.tokenType=":"}}class mm extends He{constructor(){super(...arguments),this.tokenType=";"}}class pm extends He{constructor(){super(...arguments),this.tokenType=","}}class yi extends He{constructor(){super(...arguments),this.value="",this.mirror=""}}class ym extends yi{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class vm extends yi{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class bm extends yi{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class df extends yi{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Sm extends yi{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Tm extends yi{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class j1 extends He{constructor(){super(...arguments),this.tokenType="~="}}class H1 extends He{constructor(){super(...arguments),this.tokenType="|="}}class $1 extends He{constructor(){super(...arguments),this.tokenType="^="}}class Y1 extends He{constructor(){super(...arguments),this.tokenType="$="}}class G1 extends He{constructor(){super(...arguments),this.tokenType="*="}}class wm extends He{constructor(){super(...arguments),this.tokenType="||"}}class iu extends He{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class at extends He{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Xe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
|
|
51
|
-
`:this.value}}class vi extends He{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Em extends vi{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ca(this.value)}}class au extends vi{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ca(this.value)+"("}}class Am extends vi{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ca(this.value)}}class Om extends vi{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ca(this.value):"#"+V1(this.value)}}class Nm extends vi{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Dm(this.value)+'"'}}class _m extends vi{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Dm(this.value)+'")'}}class Mm extends He{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class xm extends He{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class K1 extends He{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let a=Ca(this.unit);return a[0].toLowerCase()==="e"&&(a[1]==="-"||Ke(a.charCodeAt(1),48,57))&&(a="\\65 "+a.slice(1,a.length)),l+a}}function Ca(u){u=""+u;let l="";const a=u.charCodeAt(0);for(let s=0;s<u.length;s++){const r=u.charCodeAt(s);if(r===0)throw new Tf("Invalid character: the input contains U+0000.");Ke(r,1,31)||r===127||s===0&&Ke(r,48,57)||s===1&&Ke(r,48,57)&&a===45?l+="\\"+r.toString(16)+" ":r>=128||r===45||r===95||Ke(r,48,57)||Ke(r,65,90)||Ke(r,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function V1(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Tf("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Ke(s,48,57)||Ke(s,65,90)||Ke(s,97,122)?l+=u[a]:l+="\\"+s.toString(16)+" "}return l}function Dm(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Tf("Invalid character: the input contains U+0000.");Ke(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[a]:l+=u[a]}return l}class mt extends Error{}function Q1(u,l){let a;try{a=q1(u),a[a.length-1]instanceof iu||a.push(new iu)}catch(D){const se=D.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,ce=(D.stack||"").indexOf(D.message);throw ce!==-1&&(D.stack=D.stack.substring(0,ce)+se+D.stack.substring(ce+D.message.length)),D.message=se,D}const s=a.find(D=>D instanceof Am||D instanceof om||D instanceof lu||D instanceof wm||D instanceof hm||D instanceof dm||D instanceof mm||D instanceof ym||D instanceof vm||D instanceof _m||D instanceof xm);if(s)throw new mt(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let r=0;const o=new Set;function h(){return new mt(`Unexpected token "${a[r].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function d(){for(;a[r]instanceof hf;)r++}function m(D=r){return a[D]instanceof Em}function p(D=r){return a[D]instanceof Nm}function b(D=r){return a[D]instanceof Mm}function S(D=r){return a[D]instanceof pm}function N(D=r){return a[D]instanceof Sm}function E(D=r){return a[D]instanceof Tm}function x(D=r){return a[D]instanceof au}function T(D=r){return a[D]instanceof at&&a[D].value==="*"}function w(D=r){return a[D]instanceof iu}function L(D=r){return a[D]instanceof at&&[">","+","~"].includes(a[D].value)}function z(D=r){return S(D)||E(D)||w(D)||L(D)||a[D]instanceof hf}function $(){const D=[Q()];for(;d(),!!S();)r++,D.push(Q());return D}function Q(){return d(),b()||p()?a[r++].value:G()}function G(){const D={simples:[]};for(d(),L()?D.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):D.simples.push({selector:K(),combinator:""});;){if(d(),L())D.simples[D.simples.length-1].combinator=a[r++].value,d();else if(z())break;D.simples.push({combinator:"",selector:K()})}return D}function K(){let D="";const se=[];for(;!z();)if(m()||T())D+=a[r++].toSource();else if(a[r]instanceof Om)D+=a[r++].toSource();else if(a[r]instanceof at&&a[r].value===".")if(r++,m())D+="."+a[r++].toSource();else throw h();else if(a[r]instanceof gm)if(r++,m())if(!l.has(a[r].value.toLowerCase()))D+=":"+a[r++].toSource();else{const ce=a[r++].value.toLowerCase();se.push({name:ce,args:[]}),o.add(ce)}else if(x()){const ce=a[r++].value.toLowerCase();if(l.has(ce)?(se.push({name:ce,args:$()}),o.add(ce)):D+=`:${ce}(${P()})`,d(),!E())throw h();r++}else throw h();else if(a[r]instanceof bm){for(D+="[",r++;!(a[r]instanceof df)&&!w();)D+=a[r++].toSource();if(!(a[r]instanceof df))throw h();D+="]",r++}else throw h();if(!D&&!se.length)throw h();return{css:D||void 0,functions:se}}function P(){let D="",se=1;for(;!w()&&((N()||x())&&se++,E()&&se--,!!se);)D+=a[r++].toSource();return D}const V=$();if(!w())throw h();if(V.some(D=>typeof D!="object"||!("simples"in D)))throw new mt(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const Wg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),X1=new Set(["left-of","right-of","above","below","near"]),Z1=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Cm(u){const l=W1(u),a=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const r=Q1(s.body,Z1);a.push({name:"css",body:r.selector,source:s.body});continue}if(Wg.has(s.name)){let r,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new mt(`Malformed selector: ${s.name}=`+s.body);if(r=p[0],p.length===2){if(typeof p[1]!="number"||!X1.has(s.name))throw new mt(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new mt(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Cm(r),distance:o}},d=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),m=d?h.body.parsed.parts.indexOf(d):-1;m!==-1&&J1(h.body.parsed.parts.slice(0,m+1),a.slice(0,m+1))&&h.body.parsed.parts.splice(0,m+1),a.push(h);continue}a.push({...s,source:s.body})}if(Wg.has(a[0].name))throw new mt(`"${a[0].name}" selector cannot be first`);return{capture:l.capture,parts:a}}function J1(u,l){return ci({parts:u})===ci({parts:l})}function ci(u,l){return typeof u=="string"?u:u.parts.map((a,s)=>{let r=!0;!l&&s!==u.capture&&(a.name==="css"||a.name==="xpath"&&a.source.startsWith("//")||a.source.startsWith(".."))&&(r=!1);const o=r?a.name+"=":"";return`${s===u.capture?"*":""}${o}${a.source}`}).join(" >> ")}function W1(u){let l=0,a,s=0;const r={parts:[]},o=()=>{const d=u.substring(s,l).trim(),m=d.indexOf("=");let p,b;m!==-1&&d.substring(0,m).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=d.substring(0,m).trim(),b=d.substring(m+1)):d.length>1&&d[0]==='"'&&d[d.length-1]==='"'||d.length>1&&d[0]==="'"&&d[d.length-1]==="'"?(p="text",b=d):/^\(*\/\//.test(d)||d.startsWith("..")?(p="xpath",b=d):(p="css",b=d);let S=!1;if(p[0]==="*"&&(S=!0,p=p.substring(1)),r.parts.push({name:p,body:b}),S){if(r.capture!==void 0)throw new mt("Only one of the selectors can capture using * modifier");r.capture=r.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),r;const h=()=>{const m=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!m&&!!m[1]};for(;l<u.length;){const d=u[l];d==="\\"&&l+1<u.length?l+=2:d===a?(a=void 0,l++):!a&&(d==='"'||d==="'"||d==="`")&&!h()?(a=d,l++):!a&&d===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),r}function tf(u,l){let a=0,s=u.length===0;const r=()=>u[a]||"",o=()=>{const w=r();return++a,s=a>=u.length,w},h=w=>{throw s?new mt(`Unexpected end of selector while parsing selector \`${u}\``):new mt(`Error while parsing selector \`${u}\` - unexpected symbol "${r()}" at position ${a}`+(w?" during "+w:""))};function d(){for(;!s&&/\s/.test(r());)o()}function m(w){return w>=""||w>="0"&&w<="9"||w>="A"&&w<="Z"||w>="a"&&w<="z"||w>="0"&&w<="9"||w==="_"||w==="-"}function p(){let w="";for(d();!s&&m(r());)w+=o();return w}function b(w){let L=o();for(L!==w&&h("parsing quoted string");!s&&r()!==w;)r()==="\\"&&o(),L+=o();return r()!==w&&h("parsing quoted string"),L+=o(),L}function S(){o()!=="/"&&h("parsing regular expression");let w="",L=!1;for(;!s;){if(r()==="\\")w+=o(),s&&h("parsing regular expression");else if(L&&r()==="]")L=!1;else if(!L&&r()==="[")L=!0;else if(!L&&r()==="/")break;w+=o()}o()!=="/"&&h("parsing regular expression");let z="";for(;!s&&r().match(/[dgimsuy]/);)z+=o();try{return new RegExp(w,z)}catch($){throw new mt(`Error while parsing selector \`${u}\`: ${$.message}`)}}function N(){let w="";return d(),r()==="'"||r()==='"'?w=b(r()).slice(1,-1):w=p(),w||h("parsing property path"),w}function E(){d();let w="";return s||(w+=o()),!s&&w!=="="&&(w+=o()),["=","*=","^=","$=","|=","~="].includes(w)||h("parsing operator"),w}function x(){o();const w=[];for(w.push(N()),d();r()===".";)o(),w.push(N()),d();if(r()==="]")return o(),{name:w.join("."),jsonPath:w,op:"<truthy>",value:null,caseSensitive:!1};const L=E();let z,$=!0;if(d(),r()==="/"){if(L!=="=")throw new mt(`Error while parsing selector \`${u}\` - cannot use ${L} in attribute with regular expression`);z=S()}else if(r()==="'"||r()==='"')z=b(r()).slice(1,-1),d(),r()==="i"||r()==="I"?($=!1,o()):(r()==="s"||r()==="S")&&($=!0,o());else{for(z="";!s&&(m(r())||r()==="+"||r()===".");)z+=o();z==="true"?z=!0:z==="false"&&(z=!1)}if(d(),r()!=="]"&&h("parsing attribute value"),o(),L!=="="&&typeof z!="string")throw new mt(`Error while parsing selector \`${u}\` - cannot use ${L} in attribute with non-string matching value - ${z}`);return{name:w.join("."),jsonPath:w,op:L,value:z,caseSensitive:$}}const T={name:"",attributes:[]};for(T.name=p(),d();r()==="[";)T.attributes.push(x()),d();if(s||h(void 0),!T.name&&!T.attributes.length)throw new mt(`Error while parsing selector \`${u}\` - selector cannot be empty`);return T}function yu(u,l="'"){const a=JSON.stringify(u),s=a.substring(1,a.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function ou(u){return u.charAt(0).toUpperCase()+u.substring(1)}function Rm(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function vu(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function km(u,l,a=!1){return I1(u,l,a,1)[0]}function I1(u,l,a=!1,s=20,r){try{return ui(new iv[u](r),Cm(l),a,s)}catch{return[l]}}function ui(u,l,a=!1,s=20){const r=[...l.parts],o=[];let h=a?"frame-locator":"page";for(let d=0;d<r.length;d++){const m=r[d],p=h;if(h="locator",m.name==="internal:describe")continue;if(m.name==="nth"){m.body==="0"?o.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):m.body==="-1"?o.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):o.push([u.generateLocator(p,"nth",m.body)]);continue}if(m.name==="visible"){o.push([u.generateLocator(p,"visible",m.body),u.generateLocator(p,"default",`visible=${m.body}`)]);continue}if(m.name==="internal:text"){const{exact:x,text:T}=Aa(m.body);o.push([u.generateLocator(p,"text",T,{exact:x})]);continue}if(m.name==="internal:has-text"){const{exact:x,text:T}=Aa(m.body);if(!x){o.push([u.generateLocator(p,"has-text",T,{exact:x})]);continue}}if(m.name==="internal:has-not-text"){const{exact:x,text:T}=Aa(m.body);if(!x){o.push([u.generateLocator(p,"has-not-text",T,{exact:x})]);continue}}if(m.name==="internal:has"){const x=ui(u,m.body.parsed,!1,s);o.push(x.map(T=>u.generateLocator(p,"has",T)));continue}if(m.name==="internal:has-not"){const x=ui(u,m.body.parsed,!1,s);o.push(x.map(T=>u.generateLocator(p,"hasNot",T)));continue}if(m.name==="internal:and"){const x=ui(u,m.body.parsed,!1,s);o.push(x.map(T=>u.generateLocator(p,"and",T)));continue}if(m.name==="internal:or"){const x=ui(u,m.body.parsed,!1,s);o.push(x.map(T=>u.generateLocator(p,"or",T)));continue}if(m.name==="internal:chain"){const x=ui(u,m.body.parsed,!1,s);o.push(x.map(T=>u.generateLocator(p,"chain",T)));continue}if(m.name==="internal:label"){const{exact:x,text:T}=Aa(m.body);o.push([u.generateLocator(p,"label",T,{exact:x})]);continue}if(m.name==="internal:role"){const x=tf(m.body),T={attrs:[]};for(const w of x.attributes)w.name==="name"?(T.exact=w.caseSensitive,T.name=w.value):(w.name==="level"&&typeof w.value=="string"&&(w.value=+w.value),T.attrs.push({name:w.name==="include-hidden"?"includeHidden":w.name,value:w.value}));o.push([u.generateLocator(p,"role",x.name,T)]);continue}if(m.name==="internal:testid"){const x=tf(m.body),{value:T}=x.attributes[0];o.push([u.generateLocator(p,"test-id",T)]);continue}if(m.name==="internal:attr"){const x=tf(m.body),{name:T,value:w,caseSensitive:L}=x.attributes[0],z=w,$=!!L;if(T==="placeholder"){o.push([u.generateLocator(p,"placeholder",z,{exact:$})]);continue}if(T==="alt"){o.push([u.generateLocator(p,"alt",z,{exact:$})]);continue}if(T==="title"){o.push([u.generateLocator(p,"title",z,{exact:$})]);continue}}if(m.name==="internal:control"&&m.body==="enter-frame"){const x=o[o.length-1],T=r[d-1],w=x.map(L=>u.chainLocators([L,u.generateLocator(p,"frame","")]));["xpath","css"].includes(T.name)&&w.push(u.generateLocator(p,"frame-locator",ci({parts:[T]})),u.generateLocator(p,"frame-locator",ci({parts:[T]},!0))),x.splice(0,x.length,...w),h="frame-locator";continue}const b=r[d+1],S=ci({parts:[m]}),N=u.generateLocator(p,"default",S);if(b&&["internal:has-text","internal:has-not-text"].includes(b.name)){const{exact:x,text:T}=Aa(b.body);if(!x){const w=u.generateLocator("locator",b.name==="internal:has-text"?"has-text":"has-not-text",T,{exact:x}),L={};b.name==="internal:has-text"?L.hasText=T:L.hasNotText=T;const z=u.generateLocator(p,"default",S,L);o.push([u.chainLocators([N,w]),z]),d++;continue}}let E;if(["xpath","css"].includes(m.name)){const x=ci({parts:[m]},!0);E=u.generateLocator(p,"default",x)}o.push([N,E].filter(Boolean))}return F1(u,o,s)}function F1(u,l,a){const s=l.map(()=>""),r=[],o=h=>{if(h===l.length)return r.push(u.chainLocators(s)),r.length<a;for(const d of l[h])if(s[h]=d,!o(h+1))return!1;return!0};return o(0),r}function Aa(u){let l=!1;const a=u.match(/^\/(.*)\/([igm]*)$/);return a?{text:new RegExp(a[1],a[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class P1{constructor(l){this.preferredQuote=l}generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(r.hasText)} })`:r.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(r.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];tt(r.name)?o.push(`name: ${this.regexToSourceString(r.name)}`):typeof r.name=="string"&&(o.push(`name: ${this.quote(r.name)}`),r.exact&&o.push("exact: true"));for(const{name:d,value:m}of r.attrs)o.push(`${d}: ${typeof m=="string"?this.quote(m):m}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!r.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact("getByLabel",s,!!r.exact);case"title":return this.toCallWithExact("getByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return vu(String(l))}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToSourceString(a)})`:s?`${l}(${this.quote(a)}, { exact: true })`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return tt(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return yu(l,this.preferredQuote??"'")}}class ev{generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(r.hasText)})`:r.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(r.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];tt(r.name)?o.push(`name=${this.regexToString(r.name)}`):typeof r.name=="string"&&(o.push(`name=${this.quote(r.name)}`),r.exact&&o.push("exact=True"));for(const{name:d,value:m}of r.attrs){let p=typeof m=="string"?this.quote(m):m;typeof m=="boolean"&&(p=m?"True":"False"),o.push(`${Rm(d)}=${p}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!r.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!r.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!r.exact);case"label":return this.toCallWithExact("get_by_label",s,!!r.exact);case"title":return this.toCallWithExact("get_by_title",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${vu(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${a})`}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, exact=True)`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}quote(l){return yu(l,'"')}}class tv{generateLocator(l,a,s,r={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(r.hasText)}))`:r.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(r.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];tt(r.name)?h.push(`.setName(${this.regexToString(r.name)})`):typeof r.name=="string"&&(h.push(`.setName(${this.quote(r.name)})`),r.exact&&h.push(".setExact(true)"));for(const{name:m,value:p}of r.attrs)h.push(`.set${ou(m)}(${typeof p=="string"?this.quote(p):p})`);const d=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${Rm(s).toUpperCase()}${d})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!r.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!r.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(vu(l.source))}${a})`}toCallWithExact(l,a,s,r){return tt(s)?`${a}(${this.regexToString(s)})`:r?`${a}(${this.quote(s)}, new ${l}.${ou(a)}Options().setExact(true))`:`${a}(${this.quote(s)})`}toHasText(l){return tt(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}quote(l){return yu(l,'"')}}class nv{generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(r.hasText)} })`:r.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(r.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];tt(r.name)?o.push(`NameRegex = ${this.regexToString(r.name)}`):typeof r.name=="string"&&(o.push(`Name = ${this.quote(r.name)}`),r.exact&&o.push("Exact = true"));for(const{name:d,value:m}of r.attrs)o.push(`${ou(d)} = ${typeof m=="string"?this.quote(m):m}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${ou(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!r.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!r.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(vu(l.source))}${a})`}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, new() { Exact = true })`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return tt(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return yu(l,'"')}}class lv{generateLocator(l,a,s,r={}){return JSON.stringify({kind:a,body:s,options:r})}chainLocators(l){const a=l.map(s=>JSON.parse(s));for(let s=0;s<a.length-1;++s)a[s].next=a[s+1];return JSON.stringify(a[0])}}const iv={javascript:P1,python:ev,java:tv,csharp:nv,jsonl:lv};function tt(u){return u instanceof RegExp}const av=({language:u,log:l})=>{const a=me.useRef(null),[s,r]=me.useState(new Map);return me.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=a.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[a,l]),X.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),d=typeof h=="boolean"?h:o.status!=="done",m=o.params.selector?km(u,o.params.selector):null;let p=o.title,b="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",b=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",b=`.${o.title.substring(8)}()`):(m||o.params.url)&&(p=o.title+"(",b=")"),X.jsxs("div",{className:pl("call-log-call",o.status),children:[X.jsxs("div",{className:"call-log-call-header",children:[X.jsx("span",{className:pl("codicon",`codicon-chevron-${d?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const S=new Map(s);S.set(o.id,!d),r(S)}}),p,o.params.url?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,m?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-selector",title:`page.${m}`,children:`page.${m}`})}):void 0,b,X.jsx("span",{className:pl("codicon",sv(o))}),typeof o.duration=="number"?X.jsxs("span",{className:"call-log-time",children:["— ",e1(o.duration)]}):void 0]}),(d?o.messages:[]).map((S,N)=>X.jsx("div",{className:"call-log-message",children:S.trim()},N)),!!o.error&&X.jsx("div",{className:"call-log-message error",hidden:!d,children:o.error})]},o.id)}),X.jsx("div",{ref:a})]})};function sv(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const wf=Symbol.for("yaml.alias"),gf=Symbol.for("yaml.document"),Gn=Symbol.for("yaml.map"),Lm=Symbol.for("yaml.pair"),Ft=Symbol.for("yaml.scalar"),bi=Symbol.for("yaml.seq"),jt=Symbol.for("yaml.node.type"),vl=u=>!!u&&typeof u=="object"&&u[jt]===wf,bl=u=>!!u&&typeof u=="object"&&u[jt]===gf,Si=u=>!!u&&typeof u=="object"&&u[jt]===Gn,Ce=u=>!!u&&typeof u=="object"&&u[jt]===Lm,_e=u=>!!u&&typeof u=="object"&&u[jt]===Ft,Ti=u=>!!u&&typeof u=="object"&&u[jt]===bi;function ke(u){if(u&&typeof u=="object")switch(u[jt]){case Gn:case bi:return!0}return!1}function Le(u){if(u&&typeof u=="object")switch(u[jt]){case wf:case Gn:case Ft:case bi:return!0}return!1}const uv=u=>(_e(u)||ke(u))&&!!u.anchor,pt=Symbol("break visit"),zm=Symbol("skip children"),It=Symbol("remove node");function Kn(u,l){const a=Um(l);bl(u)?ri(null,u.contents,a,Object.freeze([u]))===It&&(u.contents=null):ri(null,u,a,Object.freeze([]))}Kn.BREAK=pt;Kn.SKIP=zm;Kn.REMOVE=It;function ri(u,l,a,s){const r=Bm(u,l,a,s);if(Le(r)||Ce(r))return qm(u,s,r),ri(u,r,a,s);if(typeof r!="symbol"){if(ke(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=ri(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===pt)return pt;h===It&&(l.items.splice(o,1),o-=1)}}}else if(Ce(l)){s=Object.freeze(s.concat(l));const o=ri("key",l.key,a,s);if(o===pt)return pt;o===It&&(l.key=null);const h=ri("value",l.value,a,s);if(h===pt)return pt;h===It&&(l.value=null)}}return r}async function bu(u,l){const a=Um(l);bl(u)?await fi(null,u.contents,a,Object.freeze([u]))===It&&(u.contents=null):await fi(null,u,a,Object.freeze([]))}bu.BREAK=pt;bu.SKIP=zm;bu.REMOVE=It;async function fi(u,l,a,s){const r=await Bm(u,l,a,s);if(Le(r)||Ce(r))return qm(u,s,r),fi(u,r,a,s);if(typeof r!="symbol"){if(ke(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await fi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===pt)return pt;h===It&&(l.items.splice(o,1),o-=1)}}}else if(Ce(l)){s=Object.freeze(s.concat(l));const o=await fi("key",l.key,a,s);if(o===pt)return pt;o===It&&(l.key=null);const h=await fi("value",l.value,a,s);if(h===pt)return pt;h===It&&(l.value=null)}}return r}function Um(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function Bm(u,l,a,s){var r,o,h,d,m;if(typeof a=="function")return a(u,l,s);if(Si(l))return(r=a.Map)==null?void 0:r.call(a,u,l,s);if(Ti(l))return(o=a.Seq)==null?void 0:o.call(a,u,l,s);if(Ce(l))return(h=a.Pair)==null?void 0:h.call(a,u,l,s);if(_e(l))return(d=a.Scalar)==null?void 0:d.call(a,u,l,s);if(vl(l))return(m=a.Alias)==null?void 0:m.call(a,u,l,s)}function qm(u,l,a){const s=l[l.length-1];if(ke(s))s.items[u]=a;else if(Ce(s))u==="key"?s.key=a:s.value=a;else if(bl(s))s.contents=a;else{const r=vl(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const cv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},rv=u=>u.replace(/[!,[\]{}]/g,l=>cv[l]);class ct{constructor(l,a){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ct.defaultYaml,l),this.tags=Object.assign({},ct.defaultTags,a)}clone(){const l=new ct(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ct(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ct.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ct.defaultTags);break}return l}add(l,a){this.atNextDocument&&(this.yaml={explicit:ct.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ct.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(s.length!==2&&(a(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return a(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return a(6,`Unsupported YAML version ${o}`,h),!1}}default:return a(0,`Unknown directive ${r}`,!0),!1}}tagName(l,a){if(l==="!")return"!";if(l[0]!=="!")return a(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(a(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&a("Verbatim tags must end with a >"),h)}const[,s,r]=l.match(/^(.*!)([^!]*)$/s);r||a(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(r)}catch(h){return a(String(h)),null}return s==="!"?l:(a(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[a,s]of Object.entries(this.tags))if(l.startsWith(s))return a+rv(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const a=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let r;if(l&&s.length>0&&Le(l.contents)){const o={};Kn(l.contents,(h,d)=>{Le(d)&&d.tag&&(o[d.tag]=!0)}),r=Object.keys(o)}else r=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||r.some(d=>d.startsWith(h)))&&a.push(`%TAG ${o} ${h}`);return a.join(`
|
|
52
|
-
`)}}ct.defaultYaml={explicit:!1,version:"1.2"};ct.defaultTags={"!!":"tag:yaml.org,2002:"};function jm(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const a=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(a)}return!0}function Hm(u){const l=new Set;return Kn(u,{Value(a,s){s.anchor&&l.add(s.anchor)}}),l}function $m(u,l){for(let a=1;;++a){const s=`${u}${a}`;if(!l.has(s))return s}}function fv(u,l){const a=[],s=new Map;let r=null;return{onAnchor:o=>{a.push(o),r||(r=Hm(u));const h=$m(l,r);return r.add(h),h},setAnchors:()=>{for(const o of a){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(_e(h.node)||ke(h.node)))h.node.anchor=h.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=o,d}}},sourceObjects:s}}function oi(u,l,a,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let r=0,o=s.length;r<o;++r){const h=s[r],d=oi(u,s,String(r),h);d===void 0?delete s[r]:d!==h&&(s[r]=d)}else if(s instanceof Map)for(const r of Array.from(s.keys())){const o=s.get(r),h=oi(u,s,r,o);h===void 0?s.delete(r):h!==o&&s.set(r,h)}else if(s instanceof Set)for(const r of Array.from(s)){const o=oi(u,s,r,r);o===void 0?s.delete(r):o!==r&&(s.delete(r),s.add(o))}else for(const[r,o]of Object.entries(s)){const h=oi(u,s,r,o);h===void 0?delete s[r]:h!==o&&(s[r]=h)}return u.call(l,a,s)}function qt(u,l,a){if(Array.isArray(u))return u.map((s,r)=>qt(s,String(r),a));if(u&&typeof u.toJSON=="function"){if(!a||!uv(u))return u.toJSON(l,a);const s={aliasCount:0,count:1,res:void 0};a.anchors.set(u,s),a.onCreate=o=>{s.res=o,delete a.onCreate};const r=u.toJSON(l,a);return a.onCreate&&a.onCreate(r),r}return typeof u=="bigint"&&!(a!=null&&a.keep)?Number(u):u}class Ef{constructor(l){Object.defineProperty(this,jt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:a,maxAliasCount:s,onAnchor:r,reviver:o}={}){if(!bl(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:a===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},d=qt(this,"",h);if(typeof r=="function")for(const{count:
|
|
49
|
+
`+n.stack}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vp(e){var t=Ff(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,f=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){i=""+m,f.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ya(e){e._valueTracker||(e._valueTracker=Vp(e))}function Pf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ff(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ga(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 Qp=/[\n"\\]/g;function Dt(e){return e.replace(Qp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qu(e,t,n,i,c,f,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Xu(e,m,xt(t)):n!=null?Xu(e,m,xt(n)):i!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+xt(y):e.removeAttribute("name")}function eo(e,t,n,i,c,f,m,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;n=n!=null?""+xt(n):"",t=t!=null?""+xt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function Xu(e,t,n){t==="number"&&Ga(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Nl(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{for(n=""+xt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function to(e,t,n){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+xt(n):""}function no(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if($e(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function _l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xp=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 lo(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Xp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function io(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&n[c]!==i&&lo(e,c,i)}else for(var f in t)t.hasOwnProperty(f)&&lo(e,f,t[f])}function Zu(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 Zp=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-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"]]),Jp=/^[\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 Ka(e){return Jp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ju=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,xl=null;function ao(e){var t=wl(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Dt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=i[rt]||null;if(!c)throw Error(s(90));Qu(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Pf(i)}break e;case"textarea":to(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Nl(e,!!n.multiple,t,!1)}}}var Iu=!1;function so(e,t,n){if(Iu)return e(t,n);Iu=!0;try{var i=e(t);return i}finally{if(Iu=!1,(Ml!==null||xl!==null)&&(xs(),Ml&&(t=Ml,e=xl,xl=Ml=null,ao(t),e)))for(t=0;t<e.length;t++)ao(e[t])}}function Di(e,t){var n=e.stateNode;if(n===null)return null;var i=n[rt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(en)try{var Ri={};Object.defineProperty(Ri,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",Ri,Ri),window.removeEventListener("test",Ri,Ri)}catch{Fu=!1}var Tn=null,Pu=null,Va=null;function uo(){if(Va)return Va;var e,t=Pu,n=t.length,i,c="value"in Tn?Tn.value:Tn.textContent,f=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(i=1;i<=m&&t[n-i]===c[f-i];i++);return Va=c.slice(e,1<i?1-i:void 0)}function Qa(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 Xa(){return!0}function co(){return!1}function ft(e){function t(n,i,c,f,m){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Xa:co,this.isPropagationStopped=co,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xa)},persist:function(){},isPersistent:Xa}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Za=ft(Zn),Ci=T({},Zn,{view:0,detail:0}),Wp=ft(Ci),ec,tc,ki,Ja=T({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,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!==ki&&(ki&&e.type==="mousemove"?(ec=e.screenX-ki.screenX,tc=e.screenY-ki.screenY):tc=ec=0,ki=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),ro=ft(Ja),Ip=T({},Ja,{dataTransfer:0}),Fp=ft(Ip),Pp=T({},Ci,{relatedTarget:0}),nc=ft(Pp),ey=T({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=ft(ey),ny=T({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ly=ft(ny),iy=T({},Zn,{data:0}),fo=ft(iy),ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sy={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"},uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uy[e])?!!t[e]:!1}function lc(){return cy}var ry=T({},Ci,{key:function(e){if(e.key){var t=ay[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fy=ft(ry),oy=T({},Ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oo=ft(oy),hy=T({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),dy=ft(hy),gy=T({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),my=ft(gy),py=T({},Ja,{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}),yy=ft(py),vy=T({},Zn,{newState:0,oldState:0}),by=ft(vy),Sy=[9,13,27,32],ic=en&&"CompositionEvent"in window,Li=null;en&&"documentMode"in document&&(Li=document.documentMode);var Ty=en&&"TextEvent"in window&&!Li,ho=en&&(!ic||Li&&8<Li&&11>=Li),go=" ",mo=!1;function po(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function wy(e,t){switch(e){case"compositionend":return yo(t);case"keypress":return t.which!==32?null:(mo=!0,go);case"textInput":return e=t.data,e===go&&mo?null:e;default:return null}}function Ey(e,t){if(Dl)return e==="compositionend"||!ic&&po(e,t)?(e=uo(),Va=Pu=Tn=null,Dl=!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 ho&&t.locale!=="ko"?null:t.data;default:return null}}var Ay={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 vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ay[e.type]:t==="textarea"}function bo(e,t,n,i){Ml?xl?xl.push(i):xl=[i]:Ml=i,t=zs(t,"onChange"),0<t.length&&(n=new Za("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var zi=null,Ui=null;function Oy(e){Pd(e,0)}function Wa(e){var t=xi(e);if(Pf(t))return e}function So(e,t){if(e==="change")return t}var To=!1;if(en){var ac;if(en){var sc="oninput"in document;if(!sc){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),sc=typeof wo.oninput=="function"}ac=sc}else ac=!1;To=ac&&(!document.documentMode||9<document.documentMode)}function Eo(){zi&&(zi.detachEvent("onpropertychange",Ao),Ui=zi=null)}function Ao(e){if(e.propertyName==="value"&&Wa(Ui)){var t=[];bo(t,Ui,e,Wu(e)),so(Oy,t)}}function Ny(e,t,n){e==="focusin"?(Eo(),zi=t,Ui=n,zi.attachEvent("onpropertychange",Ao)):e==="focusout"&&Eo()}function _y(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wa(Ui)}function My(e,t){if(e==="click")return Wa(t)}function xy(e,t){if(e==="input"||e==="change")return Wa(t)}function Dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Dy;function Bi(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var c=n[i];if(!zu.call(t,c)||!St(e[c],t[c]))return!1}return!0}function Oo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function No(e,t){var n=Oo(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oo(n)}}function _o(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_o(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ga(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ga(e.document)}return t}function uc(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 Ry=en&&"documentMode"in document&&11>=document.documentMode,Rl=null,cc=null,qi=null,rc=!1;function xo(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rc||Rl==null||Rl!==Ga(i)||(i=Rl,"selectionStart"in i&&uc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),qi&&Bi(qi,i)||(qi=i,i=zs(cc,"onSelect"),0<i.length&&(t=new Za("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Rl)))}function Jn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cl={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},fc={},Do={};en&&(Do=document.createElement("div").style,"AnimationEvent"in window||(delete Cl.animationend.animation,delete Cl.animationiteration.animation,delete Cl.animationstart.animation),"TransitionEvent"in window||delete Cl.transitionend.transition);function Wn(e){if(fc[e])return fc[e];if(!Cl[e])return e;var t=Cl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Do)return fc[e]=t[n];return e}var Ro=Wn("animationend"),Co=Wn("animationiteration"),ko=Wn("animationstart"),Cy=Wn("transitionrun"),ky=Wn("transitionstart"),Ly=Wn("transitioncancel"),Lo=Wn("transitionend"),zo=new Map,oc="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(" ");oc.push("scrollEnd");function Ht(e,t){zo.set(e,t),Xn(t,[e])}var Uo=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var n=Uo.get(e);return n!==void 0?n:(t={value:e,source:t,stack:If(t)},Uo.set(e,t),t)}return{value:e,source:t,stack:If(t)}}var Ct=[],kl=0,hc=0;function Ia(){for(var e=kl,t=hc=kl=0;t<e;){var n=Ct[t];Ct[t++]=null;var i=Ct[t];Ct[t++]=null;var c=Ct[t];Ct[t++]=null;var f=Ct[t];if(Ct[t++]=null,i!==null&&c!==null){var m=i.pending;m===null?c.next=c:(c.next=m.next,m.next=c),i.pending=c}f!==0&&Bo(n,c,f)}}function Fa(e,t,n,i){Ct[kl++]=e,Ct[kl++]=t,Ct[kl++]=n,Ct[kl++]=i,hc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function dc(e,t,n,i){return Fa(e,t,n,i),Pa(e)}function Ll(e,t){return Fa(e,null,null,t),Pa(e)}function Bo(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var c=!1,f=e.return;f!==null;)f.childLanes|=n,i=f.alternate,i!==null&&(i.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-bt(n),e=f.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=n|536870912),f):null}function Pa(e){if(50<ra)throw ra=0,br=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zl={};function zy(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,i){return new zy(e,t,n,i)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function qo(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function es(e,t,n,i,c,f){var m=0;if(i=e,typeof e=="function")gc(e)&&(m=1);else if(typeof e=="string")m=B0(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case x:return e=Tt(31,n,t,c),e.elementType=x,e.lanes=f,e;case R:return In(n.children,c,f,t);case b:m=8,c|=24;break;case S:return e=Tt(12,n,t,c|2),e.elementType=S,e.lanes=f,e;case K:return e=Tt(13,n,t,c),e.elementType=K,e.lanes=f,e;case Q:return e=Tt(19,n,t,c),e.elementType=Q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:case q:m=10;break e;case H:m=9;break e;case Y:m=11;break e;case P:m=14;break e;case V:m=16,i=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=Tt(m,n,t,c),t.elementType=e,t.type=i,t.lanes=f,t}function In(e,t,n,i){return e=Tt(7,e,i,t),e.lanes=n,e}function mc(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function pc(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ul=[],Bl=0,ts=null,ns=0,kt=[],Lt=0,Fn=null,nn=1,ln="";function Pn(e,t){Ul[Bl++]=ns,Ul[Bl++]=ts,ts=e,ns=t}function jo(e,t,n){kt[Lt++]=nn,kt[Lt++]=ln,kt[Lt++]=Fn,Fn=e;var i=nn;e=ln;var c=32-bt(i)-1;i&=~(1<<c),n+=1;var f=32-bt(t)+c;if(30<f){var m=c-c%5;f=(i&(1<<m)-1).toString(32),i>>=m,c-=m,nn=1<<32-bt(t)+c|n<<c|i,ln=f+e}else nn=1<<f|n<<c|i,ln=e}function yc(e){e.return!==null&&(Pn(e,1),jo(e,1,0))}function vc(e){for(;e===ts;)ts=Ul[--Bl],Ul[Bl]=null,ns=Ul[--Bl],Ul[Bl]=null;for(;e===Fn;)Fn=kt[--Lt],kt[Lt]=null,ln=kt[--Lt],kt[Lt]=null,nn=kt[--Lt],kt[Lt]=null}var ut=null,Ue=null,be=!1,el=null,Qt=!1,bc=Error(s(519));function tl(e){var t=Error(s(418,""));throw $i(Rt(t,e)),bc}function Ho(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[nt]=e,t[rt]=i,n){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(n=0;n<oa.length;n++)ge(oa[n],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),eo(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Ya(t);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),no(t,i.value,i.defaultValue,i.children),Ya(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||lg(t.textContent,n)?(i.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),i.onScroll!=null&&ge("scroll",t),i.onScrollEnd!=null&&ge("scrollend",t),i.onClick!=null&&(t.onclick=Us),t=!0):t=!1,t||tl(e)}function $o(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:ut=ut.return}}function ji(e){if(e!==ut)return!1;if(!be)return $o(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||zr(e.type,e.memoizedProps)),n=!n),n&&Ue&&tl(e),$o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Ue=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,Bn(e.type)?(e=jr,jr=null,Ue=e):Ue=t):Ue=ut?Yt(e.stateNode.nextSibling):null;return!0}function Hi(){Ue=ut=null,be=!1}function Yo(){var e=el;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),el=null),e}function $i(e){el===null?el=[e]:el.push(e)}var Sc=G(null),nl=null,an=null;function wn(e,t,n){J(Sc,t._currentValue),t._currentValue=n}function sn(e){e._currentValue=Sc.current,W(Sc)}function Tc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function wc(e,t,n,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var m=c.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=c;for(var v=0;v<t.length;v++)if(y.context===t[v]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),Tc(f.return,n,e),i||(m=null);break e}f=y.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=n,f=m.alternate,f!==null&&(f.lanes|=n),Tc(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function Yi(e,t,n,i){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var y=c.type;St(c.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}else if(c===yt.current){if(m=c.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ya):e=[ya])}c=c.return}e!==null&&wc(t,e,n,i),t.flags|=262144}function ls(e){for(e=e.firstContext;e!==null;){if(!St(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ll(e){nl=e,an=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Go(nl,e)}function is(e,t){return nl===null&&ll(e),Go(e,t)}function Go(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},an===null){if(e===null)throw Error(s(308));an=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else an=an.next=t;return n}var Uy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},By=u.unstable_scheduleCallback,qy=u.unstable_NormalPriority,Ve={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ec(){return{controller:new Uy,data:new Map,refCount:0}}function Gi(e){e.refCount--,e.refCount===0&&By(qy,function(){e.controller.abort()})}var Ki=null,Ac=0,ql=0,jl=null;function jy(e,t){if(Ki===null){var n=Ki=[];Ac=0,ql=Nr(),jl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ac++,t.then(Ko,Ko),t}function Ko(){if(--Ac===0&&Ki!==null){jl!==null&&(jl.status="fulfilled");var e=Ki;Ki=null,ql=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hy(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),i}var Vo=z.S;z.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&jy(e,t),Vo!==null&&Vo(e,t)};var il=G(null);function Oc(){var e=il.current;return e!==null?e:Me.pooledCache}function as(e,t){t===null?J(il,il.current):J(il,t.pool)}function Qo(){var e=Oc();return e===null?null:{parent:Ve._currentValue,pool:e}}var Vi=Error(s(460)),Xo=Error(s(474)),ss=Error(s(542)),Nc={then:function(){}};function Zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function us(){}function Jo(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(us,us),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Io(e),e;default:if(typeof t.status=="string")t.then(us,us);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Io(e),e}throw Qi=t,Vi}}var Qi=null;function Wo(){if(Qi===null)throw Error(s(459));var e=Qi;return Qi=null,e}function Io(e){if(e===Vi||e===ss)throw Error(s(483))}var En=!1;function _c(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mc(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 An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Se&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Pa(e),Bo(e,null,n),t}return Fa(e,i,t,n),Pa(e)}function Xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gf(e,n)}}function xc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?c=f=m:f=f.next=m,n=n.next}while(n!==null);f===null?c=f=t:f=f.next=t}else c=f=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Dc=!1;function Zi(){if(Dc){var e=jl;if(e!==null)throw e}}function Ji(e,t,n,i){Dc=!1;var c=e.updateQueue;En=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var v=y,D=v.next;v.next=null,m===null?f=D:m.next=D,m=v;var U=e.alternate;U!==null&&(U=U.updateQueue,y=U.lastBaseUpdate,y!==m&&(y===null?U.firstBaseUpdate=D:y.next=D,U.lastBaseUpdate=v))}if(f!==null){var $=c.baseState;m=0,U=D=v=null,y=f;do{var k=y.lane&-536870913,L=k!==y.lane;if(L?(pe&k)===k:(i&k)===k){k!==0&&k===ql&&(Dc=!0),U!==null&&(U=U.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ae=e,ne=y;k=t;var Ae=n;switch(ne.tag){case 1:if(ae=ne.payload,typeof ae=="function"){$=ae.call(Ae,$,k);break e}$=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ne.payload,k=typeof ae=="function"?ae.call(Ae,$,k):ae,k==null)break e;$=T({},$,k);break e;case 2:En=!0}}k=y.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[k]:L.push(k))}else L={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},U===null?(D=U=L,v=$):U=U.next=L,m|=k;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;L=y,y=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);U===null&&(v=$),c.baseState=v,c.firstBaseUpdate=D,c.lastBaseUpdate=U,f===null&&(c.shared.lanes=0),kn|=m,e.lanes=m,e.memoizedState=$}}function Fo(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Po(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Fo(n[e],t)}var Hl=G(null),cs=G(0);function eh(e,t){e=dn,J(cs,e),J(Hl,t),dn=e|t.baseLanes}function Rc(){J(cs,dn),J(Hl,Hl.current)}function Cc(){dn=cs.current,W(Hl),W(cs)}var Nn=0,oe=null,we=null,Ye=null,rs=!1,$l=!1,al=!1,fs=0,Wi=0,Yl=null,$y=0;function qe(){throw Error(s(321))}function kc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function Lc(e,t,n,i,c,f){return Nn=f,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Bh:qh,al=!1,f=n(i,c),al=!1,$l&&(f=nh(t,n,i,c)),th(e),f}function th(e){z.H=ps;var t=we!==null&&we.next!==null;if(Nn=0,Ye=we=oe=null,rs=!1,Wi=0,Yl=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&ls(e)&&(Je=!0))}function nh(e,t,n,i){oe=e;var c=0;do{if($l&&(Yl=null),Wi=0,$l=!1,25<=c)throw Error(s(301));if(c+=1,Ye=we=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=Zy,f=t(n,i)}while($l);return f}function Yy(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Ii(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(oe.flags|=1024),t}function zc(){var e=fs!==0;return fs=0,e}function Uc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bc(e){if(rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rs=!1}Nn=0,Ye=we=oe=null,$l=!1,Wi=fs=0,Yl=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?oe.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ge(){if(we===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Ye===null?oe.memoizedState:Ye.next;if(t!==null)Ye=t,we=e;else{if(e===null)throw oe.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Ye===null?oe.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function qc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(e){var t=Wi;return Wi+=1,Yl===null&&(Yl=[]),e=Jo(Yl,e,t),t=oe,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Bh:qh),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===q)return lt(e)}throw Error(s(438,String(e)))}function jc(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qc(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=se;return t.index++,n}function un(e,t){return typeof t=="function"?t(e):t}function hs(e){var t=Ge();return Hc(t,we,e)}function Hc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var c=e.baseQueue,f=i.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}t.baseQueue=c=f,i.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var y=m=null,v=null,D=t,U=!1;do{var $=D.lane&-536870913;if($!==D.lane?(pe&$)===$:(Nn&$)===$){var k=D.revertLane;if(k===0)v!==null&&(v=v.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===ql&&(U=!0);else if((Nn&k)===k){D=D.next,k===ql&&(U=!0);continue}else $={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(y=v=$,m=f):v=v.next=$,oe.lanes|=k,kn|=k;$=D.action,al&&n(f,$),f=D.hasEagerState?D.eagerState:n(f,$)}else k={lane:$,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(y=v=k,m=f):v=v.next=k,oe.lanes|=$,kn|=$;D=D.next}while(D!==null&&D!==t);if(v===null?m=f:v.next=y,!St(f,e.memoizedState)&&(Je=!0,U&&(n=jl,n!==null)))throw n;e.memoizedState=f,e.baseState=m,e.baseQueue=v,i.lastRenderedState=f}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function $c(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,c=n.pending,f=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do f=e(f,m.action),m=m.next;while(m!==c);St(f,t.memoizedState)||(Je=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,i]}function lh(e,t,n){var i=oe,c=Ge(),f=be;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!St((we||c).memoizedState,n);m&&(c.memoizedState=n,Je=!0),c=c.queue;var y=sh.bind(null,i,c,e);if(Fi(2048,8,y,[e]),c.getSnapshot!==t||m||Ye!==null&&Ye.memoizedState.tag&1){if(i.flags|=2048,Gl(9,ds(),ah.bind(null,i,c,n,t),null),Me===null)throw Error(s(349));f||(Nn&124)!==0||ih(i,t,n)}return n}function ih(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=qc(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ah(e,t,n,i){t.value=n,t.getSnapshot=i,uh(t)&&ch(e)}function sh(e,t,n){return n(function(){uh(t)&&ch(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function ch(e){var t=Ll(e,2);t!==null&&Nt(t,e,2)}function Yc(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),al){bn(!0);try{n()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:e},t}function rh(e,t,n,i){return e.baseState=n,Hc(e,we,typeof i=="function"?i:un)}function Gy(e,t,n,i,c){if(ms(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){f.listeners.push(m)}};z.T!==null?n(!0):f.isTransition=!1,i(f),n=t.pending,n===null?(f.next=t.pending=f,fh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function fh(e,t){var n=t.action,i=t.payload,c=e.state;if(t.isTransition){var f=z.T,m={};z.T=m;try{var y=n(c,i),v=z.S;v!==null&&v(m,y),oh(e,t,y)}catch(D){Gc(e,t,D)}finally{z.T=f}}else try{f=n(c,i),oh(e,t,f)}catch(D){Gc(e,t,D)}}function oh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){hh(e,t,i)},function(i){return Gc(e,t,i)}):hh(e,t,n)}function hh(e,t,n){t.status="fulfilled",t.value=n,dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,fh(e,n)))}function Gc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,dh(t),t=t.next;while(t!==i)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function mh(e,t){if(be){var n=Me.formState;if(n!==null){e:{var i=oe;if(be){if(Ue){t:{for(var c=Ue,f=Qt;c.nodeType!==8;){if(!f){c=null;break t}if(c=Yt(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Ue=Yt(c.nextSibling),i=c.data==="F!";break e}}tl(i)}i=!1}i&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},n.queue=i,n=Lh.bind(null,oe,i),i.dispatch=n,i=Yc(!1),f=Zc.bind(null,oe,!1,i.queue),i=ot(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,n=Gy.bind(null,oe,c,f,n),c.dispatch=n,i.memoizedState=e,[t,n,!1]}function ph(e){var t=Ge();return yh(t,we,e)}function yh(e,t,n){if(t=Hc(e,t,gh)[0],e=hs(un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ii(t)}catch(m){throw m===Vi?ss:m}else i=t;t=Ge();var c=t.queue,f=c.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,Gl(9,ds(),Ky.bind(null,c,n),null)),[i,f,e]}function Ky(e,t){e.action=t}function vh(e){var t=Ge(),n=we;if(n!==null)return yh(t,n,e);Ge(),t=t.memoizedState,n=Ge();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Gl(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=oe.updateQueue,t===null&&(t=qc(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function ds(){return{destroy:void 0,resource:void 0}}function bh(){return Ge().memoizedState}function gs(e,t,n,i){var c=ot();i=i===void 0?null:i,oe.flags|=e,c.memoizedState=Gl(1|t,ds(),n,i)}function Fi(e,t,n,i){var c=Ge();i=i===void 0?null:i;var f=c.memoizedState.inst;we!==null&&i!==null&&kc(i,we.memoizedState.deps)?c.memoizedState=Gl(t,f,n,i):(oe.flags|=e,c.memoizedState=Gl(1|t,f,n,i))}function Sh(e,t){gs(8390656,8,e,t)}function Th(e,t){Fi(2048,8,e,t)}function wh(e,t){return Fi(4,2,e,t)}function Eh(e,t){return Fi(4,4,e,t)}function Ah(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oh(e,t,n){n=n!=null?n.concat([e]):null,Fi(4,4,Ah.bind(null,t,e),n)}function Kc(){}function Nh(e,t){var n=Ge();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&kc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function _h(e,t){var n=Ge();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&kc(t,i[1]))return i[0];if(i=e(),al){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[i,t],i}function Vc(e,t,n){return n===void 0||(Nn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Dd(),oe.lanes|=e,kn|=e,n)}function Mh(e,t,n,i){return St(n,t)?n:Hl.current!==null?(e=Vc(e,n,i),St(e,t)||(Je=!0),e):(Nn&42)===0?(Je=!0,e.memoizedState=n):(e=Dd(),oe.lanes|=e,kn|=e,t)}function xh(e,t,n,i,c){var f=Z.p;Z.p=f!==0&&8>f?f:8;var m=z.T,y={};z.T=y,Zc(e,!1,t,n);try{var v=c(),D=z.S;if(D!==null&&D(y,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var U=Hy(v,i);Pi(e,t,U,Ot(e))}else Pi(e,t,i,Ot(e))}catch($){Pi(e,t,{then:function(){},status:"rejected",reason:$},Ot())}finally{Z.p=f,z.T=m}}function Vy(){}function Qc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var c=Dh(e).queue;xh(e,c,t,ie,n===null?Vy:function(){return Rh(e),n(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rh(e){var t=Dh(e).next.queue;Pi(e,t,{},Ot())}function Xc(){return lt(ya)}function Ch(){return Ge().memoizedState}function kh(){return Ge().memoizedState}function Qy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ot();e=An(n);var i=On(t,e,n);i!==null&&(Nt(i,t,n),Xi(i,t,n)),t={cache:Ec()},e.payload=t;return}t=t.return}}function Xy(e,t,n){var i=Ot();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ms(e)?zh(t,n):(n=dc(e,t,n,i),n!==null&&(Nt(n,e,i),Uh(n,t,i)))}function Lh(e,t,n){var i=Ot();Pi(e,t,n,i)}function Pi(e,t,n,i){var c={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ms(e))zh(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var m=t.lastRenderedState,y=f(m,n);if(c.hasEagerState=!0,c.eagerState=y,St(y,m))return Fa(e,t,c,0),Me===null&&Ia(),!1}catch{}finally{}if(n=dc(e,t,c,i),n!==null)return Nt(n,e,i),Uh(n,t,i),!0}return!1}function Zc(e,t,n,i){if(i={lane:2,revertLane:Nr(),action:i,hasEagerState:!1,eagerState:null,next:null},ms(e)){if(t)throw Error(s(479))}else t=dc(e,n,i,2),t!==null&&Nt(t,e,2)}function ms(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function zh(e,t){$l=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gf(e,n)}}var ps={readContext:lt,use:os,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe},Bh={readContext:lt,use:os,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gs(4194308,4,Ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){gs(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var i=e();if(al){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ot();if(n!==void 0){var c=n(t);if(al){bn(!0);try{n(t)}finally{bn(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Xy.bind(null,oe,e),[i.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Yc(e);var t=e.queue,n=Lh.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kc,useDeferredValue:function(e,t){var n=ot();return Vc(n,e,t)},useTransition:function(){var e=Yc(!1);return e=xh.bind(null,oe,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=oe,c=ot();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Me===null)throw Error(s(349));(pe&124)!==0||ih(i,t,n)}c.memoizedState=n;var f={value:n,getSnapshot:t};return c.queue=f,Sh(sh.bind(null,i,f,e),[e]),i.flags|=2048,Gl(9,ds(),ah.bind(null,i,f,n,t),null),n},useId:function(){var e=ot(),t=Me.identifierPrefix;if(be){var n=ln,i=nn;n=(i&~(1<<32-bt(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=$y++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Xc,useFormState:mh,useActionState:mh,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Zc.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:jc,useCacheRefresh:function(){return ot().memoizedState=Qy.bind(null,oe)}},qh={readContext:lt,use:os,useCallback:Nh,useContext:lt,useEffect:Th,useImperativeHandle:Oh,useInsertionEffect:wh,useLayoutEffect:Eh,useMemo:_h,useReducer:hs,useRef:bh,useState:function(){return hs(un)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=Ge();return Mh(n,we.memoizedState,e,t)},useTransition:function(){var e=hs(un)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:lh,useId:Ch,useHostTransitionStatus:Xc,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var n=Ge();return rh(n,we,e,t)},useMemoCache:jc,useCacheRefresh:kh},Zy={readContext:lt,use:os,useCallback:Nh,useContext:lt,useEffect:Th,useImperativeHandle:Oh,useInsertionEffect:wh,useLayoutEffect:Eh,useMemo:_h,useReducer:$c,useRef:bh,useState:function(){return $c(un)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=Ge();return we===null?Vc(n,e,t):Mh(n,we.memoizedState,e,t)},useTransition:function(){var e=$c(un)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:lh,useId:Ch,useHostTransitionStatus:Xc,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var n=Ge();return we!==null?rh(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:jc,useCacheRefresh:kh},Kl=null,ea=0;function ys(e){var t=ea;return ea+=1,Kl===null&&(Kl=[]),Jo(Kl,e,t)}function ta(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vs(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jh(e){var t=e._init;return t(e._payload)}function Hh(e){function t(_,A){if(e){var M=_.deletions;M===null?(_.deletions=[A],_.flags|=16):M.push(A)}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function i(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function c(_,A){return _=tn(_,A),_.index=0,_.sibling=null,_}function f(_,A,M){return _.index=M,e?(M=_.alternate,M!==null?(M=M.index,M<A?(_.flags|=67108866,A):M):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function m(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function y(_,A,M,j){return A===null||A.tag!==6?(A=mc(M,_.mode,j),A.return=_,A):(A=c(A,M),A.return=_,A)}function v(_,A,M,j){var I=M.type;return I===R?U(_,A,M.props.children,j,M.key):A!==null&&(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===V&&jh(I)===A.type)?(A=c(A,M.props),ta(A,M),A.return=_,A):(A=es(M.type,M.key,M.props,null,_.mode,j),ta(A,M),A.return=_,A)}function D(_,A,M,j){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=pc(M,_.mode,j),A.return=_,A):(A=c(A,M.children||[]),A.return=_,A)}function U(_,A,M,j,I){return A===null||A.tag!==7?(A=In(M,_.mode,j,I),A.return=_,A):(A=c(A,M),A.return=_,A)}function $(_,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=mc(""+A,_.mode,M),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return M=es(A.type,A.key,A.props,null,_.mode,M),ta(M,A),M.return=_,M;case O:return A=pc(A,_.mode,M),A.return=_,A;case V:var j=A._init;return A=j(A._payload),$(_,A,M)}if($e(A)||B(A))return A=In(A,_.mode,M,null),A.return=_,A;if(typeof A.then=="function")return $(_,ys(A),M);if(A.$$typeof===q)return $(_,is(_,A),M);vs(_,A)}return null}function k(_,A,M,j){var I=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return I!==null?null:y(_,A,""+M,j);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===I?v(_,A,M,j):null;case O:return M.key===I?D(_,A,M,j):null;case V:return I=M._init,M=I(M._payload),k(_,A,M,j)}if($e(M)||B(M))return I!==null?null:U(_,A,M,j,null);if(typeof M.then=="function")return k(_,A,ys(M),j);if(M.$$typeof===q)return k(_,A,is(_,M),j);vs(_,M)}return null}function L(_,A,M,j,I){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return _=_.get(M)||null,y(A,_,""+j,I);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return _=_.get(j.key===null?M:j.key)||null,v(A,_,j,I);case O:return _=_.get(j.key===null?M:j.key)||null,D(A,_,j,I);case V:var he=j._init;return j=he(j._payload),L(_,A,M,j,I)}if($e(j)||B(j))return _=_.get(M)||null,U(A,_,j,I,null);if(typeof j.then=="function")return L(_,A,M,ys(j),I);if(j.$$typeof===q)return L(_,A,M,is(A,j),I);vs(A,j)}return null}function ae(_,A,M,j){for(var I=null,he=null,F=A,le=A=0,Ie=null;F!==null&&le<M.length;le++){F.index>le?(Ie=F,F=null):Ie=F.sibling;var ve=k(_,F,M[le],j);if(ve===null){F===null&&(F=Ie);break}e&&F&&ve.alternate===null&&t(_,F),A=f(ve,A,le),he===null?I=ve:he.sibling=ve,he=ve,F=Ie}if(le===M.length)return n(_,F),be&&Pn(_,le),I;if(F===null){for(;le<M.length;le++)F=$(_,M[le],j),F!==null&&(A=f(F,A,le),he===null?I=F:he.sibling=F,he=F);return be&&Pn(_,le),I}for(F=i(F);le<M.length;le++)Ie=L(F,_,le,M[le],j),Ie!==null&&(e&&Ie.alternate!==null&&F.delete(Ie.key===null?le:Ie.key),A=f(Ie,A,le),he===null?I=Ie:he.sibling=Ie,he=Ie);return e&&F.forEach(function(Yn){return t(_,Yn)}),be&&Pn(_,le),I}function ne(_,A,M,j){if(M==null)throw Error(s(151));for(var I=null,he=null,F=A,le=A=0,Ie=null,ve=M.next();F!==null&&!ve.done;le++,ve=M.next()){F.index>le?(Ie=F,F=null):Ie=F.sibling;var Yn=k(_,F,ve.value,j);if(Yn===null){F===null&&(F=Ie);break}e&&F&&Yn.alternate===null&&t(_,F),A=f(Yn,A,le),he===null?I=Yn:he.sibling=Yn,he=Yn,F=Ie}if(ve.done)return n(_,F),be&&Pn(_,le),I;if(F===null){for(;!ve.done;le++,ve=M.next())ve=$(_,ve.value,j),ve!==null&&(A=f(ve,A,le),he===null?I=ve:he.sibling=ve,he=ve);return be&&Pn(_,le),I}for(F=i(F);!ve.done;le++,ve=M.next())ve=L(F,_,le,ve.value,j),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?le:ve.key),A=f(ve,A,le),he===null?I=ve:he.sibling=ve,he=ve);return e&&F.forEach(function(J0){return t(_,J0)}),be&&Pn(_,le),I}function Ae(_,A,M,j){if(typeof M=="object"&&M!==null&&M.type===R&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:e:{for(var I=M.key;A!==null;){if(A.key===I){if(I=M.type,I===R){if(A.tag===7){n(_,A.sibling),j=c(A,M.props.children),j.return=_,_=j;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===V&&jh(I)===A.type){n(_,A.sibling),j=c(A,M.props),ta(j,M),j.return=_,_=j;break e}n(_,A);break}else t(_,A);A=A.sibling}M.type===R?(j=In(M.props.children,_.mode,j,M.key),j.return=_,_=j):(j=es(M.type,M.key,M.props,null,_.mode,j),ta(j,M),j.return=_,_=j)}return m(_);case O:e:{for(I=M.key;A!==null;){if(A.key===I)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){n(_,A.sibling),j=c(A,M.children||[]),j.return=_,_=j;break e}else{n(_,A);break}else t(_,A);A=A.sibling}j=pc(M,_.mode,j),j.return=_,_=j}return m(_);case V:return I=M._init,M=I(M._payload),Ae(_,A,M,j)}if($e(M))return ae(_,A,M,j);if(B(M)){if(I=B(M),typeof I!="function")throw Error(s(150));return M=I.call(M),ne(_,A,M,j)}if(typeof M.then=="function")return Ae(_,A,ys(M),j);if(M.$$typeof===q)return Ae(_,A,is(_,M),j);vs(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(n(_,A.sibling),j=c(A,M),j.return=_,_=j):(n(_,A),j=mc(M,_.mode,j),j.return=_,_=j),m(_)):n(_,A)}return function(_,A,M,j){try{ea=0;var I=Ae(_,A,M,j);return Kl=null,I}catch(F){if(F===Vi||F===ss)throw F;var he=Tt(29,F,null,_.mode);return he.lanes=j,he.return=_,he}finally{}}}var Vl=Hh(!0),$h=Hh(!1),zt=G(null),Xt=null;function _n(e){var t=e.alternate;J(Qe,Qe.current&1),J(zt,e),Xt===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(Xt=e)}function Yh(e){if(e.tag===22){if(J(Qe,Qe.current),J(zt,e),Xt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Xt=e)}}else Mn()}function Mn(){J(Qe,Qe.current),J(zt,zt.current)}function cn(e){W(zt),Xt===e&&(Xt=null),W(Qe)}var Qe=G(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||qr(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Jc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Ot(),c=An(i);c.payload=t,n!=null&&(c.callback=n),t=On(e,c,i),t!==null&&(Nt(t,e,i),Xi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Ot(),c=An(i);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=On(e,c,i),t!==null&&(Nt(t,e,i),Xi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),i=An(n);i.tag=2,t!=null&&(i.callback=t),t=On(e,i,n),t!==null&&(Nt(t,e,n),Xi(t,e,n))}};function Gh(e,t,n,i,c,f,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,m):t.prototype&&t.prototype.isPureReactComponent?!Bi(n,i)||!Bi(c,f):!0}function Kh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Wc.enqueueReplaceState(t,t.state,null)}function sl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=T({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}var Ss=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)};function Vh(e){Ss(e)}function Qh(e){console.error(e)}function Xh(e){Ss(e)}function Ts(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Zh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Ic(e,t,n){return n=An(n),n.tag=3,n.payload={element:null},n.callback=function(){Ts(e,t)},n}function Jh(e){return e=An(e),e.tag=3,e}function Wh(e,t,n,i){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var f=i.value;e.payload=function(){return c(f)},e.callback=function(){Zh(t,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Zh(t,n,i),typeof c!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function Jy(e,t,n,i,c){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Yi(t,n,c,!0),n=zt.current,n!==null){switch(n.tag){case 13:return Xt===null?Tr():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=c,i===Nc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Er(e,i,c)),!1;case 22:return n.flags|=65536,i===Nc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Er(e,i,c)),!1}throw Error(s(435,n.tag))}return Er(e,i,c),Tr(),!1}if(be)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==bc&&(e=Error(s(422),{cause:i}),$i(Rt(e,n)))):(i!==bc&&(t=Error(s(423),{cause:i}),$i(Rt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=Rt(i,n),c=Ic(e.stateNode,i,c),xc(e,c),Be!==4&&(Be=2)),!1;var f=Error(s(520),{cause:i});if(f=Rt(f,n),ca===null?ca=[f]:ca.push(f),Be!==4&&(Be=2),t===null)return!0;i=Rt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Ic(n.stateNode,i,e),xc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ln===null||!Ln.has(f))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Jh(c),Wh(c,e,n,i),xc(n,c),!1}n=n.return}while(n!==null);return!1}var Ih=Error(s(461)),Je=!1;function Fe(e,t,n,i){t.child=e===null?$h(t,null,n,i):Vl(t,e.child,n,i)}function Fh(e,t,n,i,c){n=n.render;var f=t.ref;if("ref"in i){var m={};for(var y in i)y!=="ref"&&(m[y]=i[y])}else m=i;return ll(t),i=Lc(e,t,n,m,f,c),y=zc(),e!==null&&!Je?(Uc(e,t,c),rn(e,t,c)):(be&&y&&yc(t),t.flags|=1,Fe(e,t,i,c),t.child)}function Ph(e,t,n,i,c){if(e===null){var f=n.type;return typeof f=="function"&&!gc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,ed(e,t,f,i,c)):(e=es(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ar(e,c)){var m=f.memoizedProps;if(n=n.compare,n=n!==null?n:Bi,n(m,i)&&e.ref===t.ref)return rn(e,t,c)}return t.flags|=1,e=tn(f,i),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,n,i,c){if(e!==null){var f=e.memoizedProps;if(Bi(f,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=f,ar(e,c))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,rn(e,t,c)}return Fc(e,t,n,i,c)}function td(e,t,n){var i=t.pendingProps,c=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=f!==null?f.baseLanes|n:n,e!==null){for(c=t.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;t.childLanes=f&~i}else t.childLanes=0,t.child=null;return nd(e,t,i,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&as(t,f!==null?f.cachePool:null),f!==null?eh(t,f):Rc(),Yh(t);else return t.lanes=t.childLanes=536870912,nd(e,t,f!==null?f.baseLanes|n:n,n)}else f!==null?(as(t,f.cachePool),eh(t,f),Mn(),t.memoizedState=null):(e!==null&&as(t,null),Rc(),Mn());return Fe(e,t,c,n),t.child}function nd(e,t,n,i){var c=Oc();return c=c===null?null:{parent:Ve._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&as(t,null),Rc(),Yh(t),e!==null&&Yi(e,t,i,!0),null}function ws(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Fc(e,t,n,i,c){return ll(t),n=Lc(e,t,n,i,void 0,c),i=zc(),e!==null&&!Je?(Uc(e,t,c),rn(e,t,c)):(be&&i&&yc(t),t.flags|=1,Fe(e,t,n,c),t.child)}function ld(e,t,n,i,c,f){return ll(t),t.updateQueue=null,n=nh(t,i,n,c),th(e),i=zc(),e!==null&&!Je?(Uc(e,t,f),rn(e,t,f)):(be&&i&&yc(t),t.flags|=1,Fe(e,t,n,f),t.child)}function id(e,t,n,i,c){if(ll(t),t.stateNode===null){var f=zl,m=n.contextType;typeof m=="object"&&m!==null&&(f=lt(m)),f=new n(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Wc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},_c(t),m=n.contextType,f.context=typeof m=="object"&&m!==null?lt(m):zl,f.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Jc(t,n,m,i),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(m=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),m!==f.state&&Wc.enqueueReplaceState(f,f.state,null),Ji(t,i,f,c),Zi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,v=sl(n,y);f.props=v;var D=f.context,U=n.contextType;m=zl,typeof U=="object"&&U!==null&&(m=lt(U));var $=n.getDerivedStateFromProps;U=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,U||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||D!==m)&&Kh(t,f,i,m),En=!1;var k=t.memoizedState;f.state=k,Ji(t,i,f,c),Zi(),D=t.memoizedState,y||k!==D||En?(typeof $=="function"&&(Jc(t,n,$,i),D=t.memoizedState),(v=En||Gh(t,n,v,i,k,D,m))?(U||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),f.props=i,f.state=D,f.context=m,i=v):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,Mc(e,t),m=t.memoizedProps,U=sl(n,m),f.props=U,$=t.pendingProps,k=f.context,D=n.contextType,v=zl,typeof D=="object"&&D!==null&&(v=lt(D)),y=n.getDerivedStateFromProps,(D=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(m!==$||k!==v)&&Kh(t,f,i,v),En=!1,k=t.memoizedState,f.state=k,Ji(t,i,f,c),Zi();var L=t.memoizedState;m!==$||k!==L||En||e!==null&&e.dependencies!==null&&ls(e.dependencies)?(typeof y=="function"&&(Jc(t,n,y,i),L=t.memoizedState),(U=En||Gh(t,n,U,i,k,L,v)||e!==null&&e.dependencies!==null&&ls(e.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,L,v),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,L,v)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=L),f.props=i,f.state=L,f.context=v,i=U):(typeof f.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,ws(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Vl(t,e.child,null,c),t.child=Vl(t,null,n,c)):Fe(e,t,n,c),t.memoizedState=f.state,e=t.child):e=rn(e,t,c),e}function ad(e,t,n,i){return Hi(),t.flags|=256,Fe(e,t,n,i),t.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function er(e){return{baseLanes:e,cachePool:Qo()}}function tr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ut),e}function sd(e,t,n){var i=t.pendingProps,c=!1,f=(t.flags&128)!==0,m;if((m=f)||(m=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(c?_n(t):Mn(),be){var y=Ue,v;if(v=y){e:{for(v=y,y=Qt;v.nodeType!==8;){if(!y){y=null;break e}if(v=Yt(v.nextSibling),v===null){y=null;break e}}y=v}y!==null?(t.memoizedState={dehydrated:y,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},v=Tt(18,null,null,0),v.stateNode=y,v.return=t,t.child=v,ut=t,Ue=null,v=!0):v=!1}v||tl(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return qr(y)?t.lanes=32:t.lanes=536870912,null;cn(t)}return y=i.children,i=i.fallback,c?(Mn(),c=t.mode,y=Es({mode:"hidden",children:y},c),i=In(i,c,n,null),y.return=t,i.return=t,y.sibling=i,t.child=y,c=t.child,c.memoizedState=er(n),c.childLanes=tr(e,m,n),t.memoizedState=Pc,i):(_n(t),nr(t,y))}if(v=e.memoizedState,v!==null&&(y=v.dehydrated,y!==null)){if(f)t.flags&256?(_n(t),t.flags&=-257,t=lr(e,t,n)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),c=i.fallback,y=t.mode,i=Es({mode:"visible",children:i.children},y),c=In(c,y,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Vl(t,e.child,null,n),i=t.child,i.memoizedState=er(n),i.childLanes=tr(e,m,n),t.memoizedState=Pc,t=c);else if(_n(t),qr(y)){if(m=y.nextSibling&&y.nextSibling.dataset,m)var D=m.dgst;m=D,i=Error(s(419)),i.stack="",i.digest=m,$i({value:i,source:null,stack:null}),t=lr(e,t,n)}else if(Je||Yi(e,t,n,!1),m=(n&e.childLanes)!==0,Je||m){if(m=Me,m!==null&&(i=n&-n,i=(i&42)!==0?1:ju(i),i=(i&(m.suspendedLanes|n))!==0?0:i,i!==0&&i!==v.retryLane))throw v.retryLane=i,Ll(e,i),Nt(m,e,i),Ih;y.data==="$?"||Tr(),t=lr(e,t,n)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Ue=Yt(y.nextSibling),ut=t,be=!0,el=null,Qt=!1,e!==null&&(kt[Lt++]=nn,kt[Lt++]=ln,kt[Lt++]=Fn,nn=e.id,ln=e.overflow,Fn=t),t=nr(t,i.children),t.flags|=4096);return t}return c?(Mn(),c=i.fallback,y=t.mode,v=e.child,D=v.sibling,i=tn(v,{mode:"hidden",children:i.children}),i.subtreeFlags=v.subtreeFlags&65011712,D!==null?c=tn(D,c):(c=In(c,y,n,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,y=e.child.memoizedState,y===null?y=er(n):(v=y.cachePool,v!==null?(D=Ve._currentValue,v=v.parent!==D?{parent:D,pool:D}:v):v=Qo(),y={baseLanes:y.baseLanes|n,cachePool:v}),c.memoizedState=y,c.childLanes=tr(e,m,n),t.memoizedState=Pc,i):(_n(t),n=e.child,e=n.sibling,n=tn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function nr(e,t){return t=Es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Es(e,t){return e=Tt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function lr(e,t,n){return Vl(t,e.child,null,n),e=nr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ud(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Tc(e.return,t,n)}function ir(e,t,n,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=c)}function cd(e,t,n){var i=t.pendingProps,c=i.revealOrder,f=i.tail;if(Fe(e,t,i.children,n),i=Qe.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ud(e,n,t);else if(e.tag===19)ud(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(J(Qe,i),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&bs(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),ir(t,!1,c,n,f);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&bs(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}ir(t,!0,n,null,f);break;case"together":ir(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yi(e,t,n,!1),(n&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,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ar(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ls(e)))}function Wy(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),wn(t,Ve,e.memoizedState.cache),Hi();break;case 27:case 5:Lu(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:wn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?sd(e,t,n):(_n(t),e=rn(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var c=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Yi(e,t,n,!1),i=(n&t.childLanes)!==0),c){if(i)return cd(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(Qe,Qe.current),i)break;return null;case 22:case 23:return t.lanes=0,td(e,t,n);case 24:wn(t,Ve,e.memoizedState.cache)}return rn(e,t,n)}function rd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!ar(e,n)&&(t.flags&128)===0)return Je=!1,Wy(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,be&&(t.flags&1048576)!==0&&jo(t,ns,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,c=i._init;if(i=c(i._payload),t.type=i,typeof i=="function")gc(i)?(e=sl(i,e),t.tag=1,t=id(null,t,i,e,n)):(t.tag=0,t=Fc(null,t,i,e,n));else{if(i!=null){if(c=i.$$typeof,c===Y){t.tag=11,t=Fh(null,t,i,e,n);break e}else if(c===P){t.tag=14,t=Ph(null,t,i,e,n);break e}}throw t=ze(i)||i,Error(s(306,t,""))}}return t;case 0:return Fc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,c=sl(i,t.pendingProps),id(e,t,i,c,n);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var f=t.memoizedState;c=f.element,Mc(e,t),Ji(t,i,null,n);var m=t.memoizedState;if(i=m.cache,wn(t,Ve,i),i!==f.cache&&wc(t,[Ve],n,!0),Zi(),i=m.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ad(e,t,i,n);break e}else if(i!==c){c=Rt(Error(s(424)),t),$i(c),t=ad(e,t,i,n);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(Ue=Yt(e.firstChild),ut=t,be=!0,el=null,Qt=!0,n=$h(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),i===c){t=rn(e,t,n);break e}Fe(e,t,i,n)}t=t.child}return t;case 26:return ws(e,t),e===null?(n=dg(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,i=Bs(ue.current).createElement(n),i[nt]=t,i[rt]=e,et(i,n,e),Ze(i),t.stateNode=i):t.memoizedState=dg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Lu(t),e===null&&be&&(i=t.stateNode=fg(t.type,t.pendingProps,ue.current),ut=t,Qt=!0,c=Ue,Bn(t.type)?(jr=c,Ue=Yt(i.firstChild)):Ue=c),Fe(e,t,t.pendingProps.children,n),ws(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((c=i=Ue)&&(i=A0(i,t.type,t.pendingProps,Qt),i!==null?(t.stateNode=i,ut=t,Ue=Yt(i.firstChild),Qt=!1,c=!0):c=!1),c||tl(t)),Lu(t),c=t.type,f=t.pendingProps,m=e!==null?e.memoizedProps:null,i=f.children,zr(c,f)?i=null:m!==null&&zr(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Lc(e,t,Yy,null,null,n),ya._currentValue=c),ws(e,t),Fe(e,t,i,n),t.child;case 6:return e===null&&be&&((e=n=Ue)&&(n=O0(n,t.pendingProps,Qt),n!==null?(t.stateNode=n,ut=t,Ue=null,e=!0):e=!1),e||tl(t)),null;case 13:return sd(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Vl(t,null,i,n):Fe(e,t,i,n),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,wn(t,t.type,i.value),Fe(e,t,i.children,n),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,ll(t),c=lt(c),i=i(c),t.flags|=1,Fe(e,t,i,n),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,n);case 15:return ed(e,t,t.type,t.pendingProps,n);case 19:return cd(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Es(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=tn(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return td(e,t,n);case 24:return ll(t),i=lt(Ve),e===null?(c=Oc(),c===null&&(c=Me,f=Ec(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=n),c=f),t.memoizedState={parent:i,cache:c},_c(t),wn(t,Ve,c)):((e.lanes&n)!==0&&(Mc(e,t),Ji(t,null,null,n),Zi()),c=e.memoizedState,f=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),wn(t,Ve,i)):(i=f.cache,wn(t,Ve,i),i!==c.cache&&wc(t,[Ve],n,!0))),Fe(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fn(e){e.flags|=4}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vg(t)){if(t=zt.current,t!==null&&((pe&4194048)===pe?Xt!==null:(pe&62914560)!==pe&&(pe&536870912)===0||t!==Xt))throw Qi=Nc,Xo;e.flags|=8192}}function As(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$f():536870912,e.lanes|=t,Jl|=t)}function na(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Iy(e,t,n){var i=t.pendingProps;switch(vc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Ce(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),sn(Ve),vn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ji(t)?fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yo())),Ce(t),null;case 26:return n=t.memoizedState,e===null?(fn(t),n!==null?(Ce(t),fd(t,n)):(Ce(t),t.flags&=-16777217)):n?n!==e.memoizedState?(fn(t),Ce(t),fd(t,n)):(Ce(t),t.flags&=-16777217):(e.memoizedProps!==i&&fn(t),Ce(t),t.flags&=-16777217),null;case 27:za(t),n=ue.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ce(t),null}e=te.current,ji(t)?Ho(t):(e=fg(c,i,n),t.stateNode=e,fn(t))}return Ce(t),null;case 5:if(za(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ce(t),null}if(e=te.current,ji(t))Ho(t);else{switch(c=Bs(ue.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?c.createElement(n,{is:i.is}):c.createElement(n)}}e[nt]=t,e[rt]=i;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.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=e;e:switch(et(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&fn(t)}}return Ce(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,ji(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,c=ut,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||lg(e.nodeValue,n)),e||tl(t)}else e=Bs(e).createTextNode(i),e[nt]=t,t.stateNode=e}return Ce(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ji(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[nt]=t}else Hi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),c=!1}else c=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(cn(t),t):(cn(t),null)}if(cn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool);var f=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),As(t,t.updateQueue),Ce(t),null;case 4:return vn(),e===null&&Dr(t.stateNode.containerInfo),Ce(t),null;case 10:return sn(t.type),Ce(t),null;case 19:if(W(Qe),c=t.memoizedState,c===null)return Ce(t),null;if(i=(t.flags&128)!==0,f=c.rendering,f===null)if(i)na(c,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=bs(e),f!==null){for(t.flags|=128,na(c,!1),e=f.updateQueue,t.updateQueue=e,As(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qo(n,e),n=n.sibling;return J(Qe,Qe.current&1|2),t.child}e=e.sibling}c.tail!==null&&Vt()>_s&&(t.flags|=128,i=!0,na(c,!1),t.lanes=4194304)}else{if(!i)if(e=bs(f),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,As(t,e),na(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!be)return Ce(t),null}else 2*Vt()-c.renderingStartTime>_s&&n!==536870912&&(t.flags|=128,i=!0,na(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Vt(),t.sibling=null,e=Qe.current,J(Qe,i?e&1|2:e&1),t):(Ce(t),null);case 22:case 23:return cn(t),Cc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),n=t.updateQueue,n!==null&&As(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&W(il),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sn(Ve),Ce(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Fy(e,t){switch(vc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(Ve),vn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return za(t),null;case 13:if(cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(Qe),null;case 4:return vn(),null;case 10:return sn(t.type),null;case 22:case 23:return cn(t),Cc(),e!==null&&W(il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sn(Ve),null;case 25:return null;default:return null}}function od(e,t){switch(vc(t),t.tag){case 3:sn(Ve),vn();break;case 26:case 27:case 5:za(t);break;case 4:vn();break;case 13:cn(t);break;case 19:W(Qe);break;case 10:sn(t.type);break;case 22:case 23:cn(t),Cc(),e!==null&&W(il);break;case 24:sn(Ve)}}function la(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){i=void 0;var f=n.create,m=n.inst;i=f(),m.destroy=i}n=n.next}while(n!==c)}}catch(y){Ne(t,t.return,y)}}function xn(e,t,n){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&e)===e){var m=i.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,c=t;var v=n,D=y;try{D()}catch(U){Ne(c,v,U)}}}i=i.next}while(i!==f)}}catch(U){Ne(t,t.return,U)}}function hd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Po(t,n)}catch(i){Ne(e,e.return,i)}}}function dd(e,t,n){n.props=sl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ne(e,t,i)}}function ia(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(c){Ne(e,t,c)}}function Zt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(c){Ne(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Ne(e,t,c)}else n.current=null}function gd(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(c){Ne(e,e.return,c)}}function sr(e,t,n){try{var i=e.stateNode;b0(i,e.type,n,t),i[rt]=t}catch(c){Ne(e,e.return,c)}}function md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Bn(e.type)||e.tag===4}function ur(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||md(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&&Bn(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 cr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Us));else if(i!==4&&(i===27&&Bn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(cr(e,t,n),e=e.sibling;e!==null;)cr(e,t,n),e=e.sibling}function Os(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Bn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}function pd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);et(t,i,n),t[nt]=e,t[rt]=n}catch(f){Ne(e,e.return,f)}}var on=!1,je=!1,rr=!1,yd=typeof WeakSet=="function"?WeakSet:Set,We=null;function Py(e,t){if(e=e.containerInfo,kr=Gs,e=Mo(e),uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var c=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var m=0,y=-1,v=-1,D=0,U=0,$=e,k=null;t:for(;;){for(var L;$!==n||c!==0&&$.nodeType!==3||(y=m+c),$!==f||i!==0&&$.nodeType!==3||(v=m+i),$.nodeType===3&&(m+=$.nodeValue.length),(L=$.firstChild)!==null;)k=$,$=L;for(;;){if($===e)break t;if(k===n&&++D===c&&(y=m),k===f&&++U===i&&(v=m),(L=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=L}n=y===-1||v===-1?null:{start:y,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lr={focusedElem:e,selectionRange:n},Gs=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,c=f.memoizedProps,f=f.memoizedState,i=n.stateNode;try{var ae=sl(n.type,c,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(ae,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Ne(n,n.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Br(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Br(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,We=e;break}We=t.return}}function vd(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),i&4&&la(5,n);break;case 1:if(Dn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var c=sl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}i&64&&hd(n),i&512&&ia(n,n.return);break;case 3:if(Dn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Po(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&i&4&&pd(n);case 26:case 5:Dn(e,n),t===null&&i&4&&gd(n),i&512&&ia(n,n.return);break;case 12:Dn(e,n);break;case 13:Dn(e,n),i&4&&Td(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=c0.bind(null,n),N0(e,n))));break;case 22:if(i=n.memoizedState!==null||on,!i){t=t!==null&&t.memoizedState!==null||je,c=on;var f=je;on=i,(je=t)&&!f?Rn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),on=c,je=f}break;case 30:break;default:Dn(e,n)}}function bd(e){var t=e.alternate;t!==null&&(e.alternate=null,bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yu(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 De=null,ht=!1;function hn(e,t,n){for(n=n.child;n!==null;)Sd(e,t,n),n=n.sibling}function Sd(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Oi,n)}catch{}switch(n.tag){case 26:je||Zt(n,t),hn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:je||Zt(n,t);var i=De,c=ht;Bn(n.type)&&(De=n.stateNode,ht=!1),hn(e,t,n),da(n.stateNode),De=i,ht=c;break;case 5:je||Zt(n,t);case 6:if(i=De,c=ht,De=null,hn(e,t,n),De=i,ht=c,De!==null)if(ht)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(n.stateNode)}catch(f){Ne(n,t,f)}else try{De.removeChild(n.stateNode)}catch(f){Ne(n,t,f)}break;case 18:De!==null&&(ht?(e=De,cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ta(e)):cg(De,n.stateNode));break;case 4:i=De,c=ht,De=n.stateNode.containerInfo,ht=!0,hn(e,t,n),De=i,ht=c;break;case 0:case 11:case 14:case 15:je||xn(2,n,t),je||xn(4,n,t),hn(e,t,n);break;case 1:je||(Zt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&dd(n,t,i)),hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:je=(i=je)||n.memoizedState!==null,hn(e,t,n),je=i;break;default:hn(e,t,n)}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ta(e)}catch(n){Ne(t,t.return,n)}}function e0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yd),t;default:throw Error(s(435,e.tag))}}function fr(e,t){var n=e0(e);t.forEach(function(i){var c=r0.bind(null,e,i);n.has(i)||(n.add(i),i.then(c,c))})}function wt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=n[i],f=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 27:if(Bn(y.type)){De=y.stateNode,ht=!1;break e}break;case 5:De=y.stateNode,ht=!1;break e;case 3:case 4:De=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(De===null)throw Error(s(160));Sd(f,m,c),De=null,ht=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)wd(t,e),t=t.sibling}var $t=null;function wd(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Et(e),i&4&&(xn(3,e,e.return),la(3,e),xn(5,e,e.return));break;case 1:wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),i&64&&on&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var c=$t;if(wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),i&4){var f=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":f=c.getElementsByTagName("title")[0],(!f||f[Mi]||f[nt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(i),c.head.insertBefore(f,c.querySelector("head > title"))),et(f,i,n),f[nt]=e,Ze(f),i=f;break e;case"link":var m=pg("link","href",c).get(i+(n.href||""));if(m){for(var y=0;y<m.length;y++)if(f=m[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(y,1);break t}}f=c.createElement(i),et(f,i,n),c.head.appendChild(f);break;case"meta":if(m=pg("meta","content",c).get(i+(n.content||""))){for(y=0;y<m.length;y++)if(f=m[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(y,1);break t}}f=c.createElement(i),et(f,i,n),c.head.appendChild(f);break;default:throw Error(s(468,i))}f[nt]=e,Ze(f),i=f}e.stateNode=i}else yg(c,e.type,e.stateNode);else e.stateNode=mg(c,i,e.memoizedProps);else f!==i?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,i===null?yg(c,e.type,e.stateNode):mg(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&sr(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),n!==null&&i&4&&sr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),Et(e),i&512&&(je||n===null||Zt(n,n.return)),e.flags&32){c=e.stateNode;try{_l(c,"")}catch(L){Ne(e,e.return,L)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,sr(e,c,n!==null?n.memoizedProps:c)),i&1024&&(rr=!0);break;case 6:if(wt(t,e),Et(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(L){Ne(e,e.return,L)}}break;case 3:if(Hs=null,c=$t,$t=qs(t.containerInfo),wt(t,e),$t=c,Et(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ta(t.containerInfo)}catch(L){Ne(e,e.return,L)}rr&&(rr=!1,Ed(e));break;case 4:i=$t,$t=qs(e.stateNode.containerInfo),wt(t,e),Et(e),$t=i;break;case 12:wt(t,e),Et(e);break;case 13:wt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(pr=Vt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,fr(e,i)));break;case 22:c=e.memoizedState!==null;var v=n!==null&&n.memoizedState!==null,D=on,U=je;if(on=D||c,je=U||v,wt(t,e),je=U,on=D,Et(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||v||on||je||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){v=n=t;try{if(f=v.stateNode,c)m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{y=v.stateNode;var $=v.memoizedProps.style,k=$!=null&&$.hasOwnProperty("display")?$.display:null;y.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(L){Ne(v,v.return,L)}}}else if(t.tag===6){if(n===null){v=t;try{v.stateNode.nodeValue=c?"":v.memoizedProps}catch(L){Ne(v,v.return,L)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,fr(e,n))));break;case 19:wt(t,e),Et(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,fr(e,i)));break;case 30:break;case 21:break;default:wt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(md(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,f=ur(e);Os(e,f,c);break;case 5:var m=n.stateNode;n.flags&32&&(_l(m,""),n.flags&=-33);var y=ur(e);Os(e,y,m);break;case 3:case 4:var v=n.stateNode.containerInfo,D=ur(e);cr(e,D,v);break;default:throw Error(s(161))}}catch(U){Ne(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xn(4,t,t.return),ul(t);break;case 1:Zt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dd(t,t.return,n),ul(t);break;case 27:da(t.stateNode);case 26:case 5:Zt(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function Rn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,f=t,m=f.flags;switch(f.tag){case 0:case 11:case 15:Rn(c,f,n),la(4,f);break;case 1:if(Rn(c,f,n),i=f,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(D){Ne(i,i.return,D)}if(i=f,c=i.updateQueue,c!==null){var y=i.stateNode;try{var v=c.shared.hiddenCallbacks;if(v!==null)for(c.shared.hiddenCallbacks=null,c=0;c<v.length;c++)Fo(v[c],y)}catch(D){Ne(i,i.return,D)}}n&&m&64&&hd(f),ia(f,f.return);break;case 27:pd(f);case 26:case 5:Rn(c,f,n),n&&i===null&&m&4&&gd(f),ia(f,f.return);break;case 12:Rn(c,f,n);break;case 13:Rn(c,f,n),n&&m&4&&Td(c,f);break;case 22:f.memoizedState===null&&Rn(c,f,n),ia(f,f.return);break;case 30:break;default:Rn(c,f,n)}t=t.sibling}}function or(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gi(n))}function hr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e))}function Jt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ad(e,t,n,i),t=t.sibling}function Ad(e,t,n,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,n,i),c&2048&&la(9,t);break;case 1:Jt(e,t,n,i);break;case 3:Jt(e,t,n,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e)));break;case 12:if(c&2048){Jt(e,t,n,i),e=t.stateNode;try{var f=t.memoizedProps,m=f.id,y=f.onPostCommit;typeof y=="function"&&y(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Ne(t,t.return,v)}}else Jt(e,t,n,i);break;case 13:Jt(e,t,n,i);break;case 23:break;case 22:f=t.stateNode,m=t.alternate,t.memoizedState!==null?f._visibility&2?Jt(e,t,n,i):aa(e,t):f._visibility&2?Jt(e,t,n,i):(f._visibility|=2,Ql(e,t,n,i,(t.subtreeFlags&10256)!==0)),c&2048&&or(m,t);break;case 24:Jt(e,t,n,i),c&2048&&hr(t.alternate,t);break;default:Jt(e,t,n,i)}}function Ql(e,t,n,i,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,m=t,y=n,v=i,D=m.flags;switch(m.tag){case 0:case 11:case 15:Ql(f,m,y,v,c),la(8,m);break;case 23:break;case 22:var U=m.stateNode;m.memoizedState!==null?U._visibility&2?Ql(f,m,y,v,c):aa(f,m):(U._visibility|=2,Ql(f,m,y,v,c)),c&&D&2048&&or(m.alternate,m);break;case 24:Ql(f,m,y,v,c),c&&D&2048&&hr(m.alternate,m);break;default:Ql(f,m,y,v,c)}t=t.sibling}}function aa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,c=i.flags;switch(i.tag){case 22:aa(n,i),c&2048&&or(i.alternate,i);break;case 24:aa(n,i),c&2048&&hr(i.alternate,i);break;default:aa(n,i)}t=t.sibling}}var sa=8192;function Xl(e){if(e.subtreeFlags&sa)for(e=e.child;e!==null;)Od(e),e=e.sibling}function Od(e){switch(e.tag){case 26:Xl(e),e.flags&sa&&e.memoizedState!==null&&j0($t,e.memoizedState,e.memoizedProps);break;case 5:Xl(e);break;case 3:case 4:var t=$t;$t=qs(e.stateNode.containerInfo),Xl(e),$t=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=sa,sa=16777216,Xl(e),sa=t):Xl(e));break;default:Xl(e)}}function Nd(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 ua(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Md(i,e)}Nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_d(e),e=e.sibling}function _d(e){switch(e.tag){case 0:case 11:case 15:ua(e),e.flags&2048&&xn(9,e,e.return);break;case 3:ua(e);break;case 12:ua(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ns(e)):ua(e);break;default:ua(e)}}function Ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Md(i,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xn(8,t,t.return),Ns(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ns(t));break;default:Ns(t)}e=e.sibling}}function Md(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:xn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Gi(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,We=i;else e:for(n=e;We!==null;){i=We;var c=i.sibling,f=i.return;if(bd(i),i===n){We=null;break e}if(c!==null){c.return=f,We=c;break e}We=f}}}var t0={getCacheForType:function(e){var t=lt(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},n0=typeof WeakMap=="function"?WeakMap:Map,Se=0,Me=null,de=null,pe=0,Te=0,At=null,Cn=!1,Zl=!1,dr=!1,dn=0,Be=0,kn=0,cl=0,gr=0,Ut=0,Jl=0,ca=null,dt=null,mr=!1,pr=0,_s=1/0,Ms=null,Ln=null,Pe=0,zn=null,Wl=null,Il=0,yr=0,vr=null,xd=null,ra=0,br=null;function Ot(){if((Se&2)!==0&&pe!==0)return pe&-pe;if(z.T!==null){var e=ql;return e!==0?e:Nr()}return Kf()}function Dd(){Ut===0&&(Ut=(pe&536870912)===0||be?Hf():536870912);var e=zt.current;return e!==null&&(e.flags|=32),Ut}function Nt(e,t,n){(e===Me&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),Un(e,pe,Ut,!1)),_i(e,n),((Se&2)===0||e!==Me)&&(e===Me&&((Se&2)===0&&(cl|=n),Be===4&&Un(e,pe,Ut,!1)),Wt(e))}function Rd(e,t,n){if((Se&6)!==0)throw Error(s(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ni(e,t),c=i?a0(e,t):wr(e,t,!0),f=i;do{if(c===0){Zl&&!i&&Un(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!l0(n)){c=wr(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var y=e;c=ca;var v=y.current.memoizedState.isDehydrated;if(v&&(Fl(y,m).flags|=256),m=wr(y,m,!1),m!==2){if(dr&&!v){y.errorRecoveryDisabledLanes|=f,cl|=f,c=4;break e}f=dt,dt=c,f!==null&&(dt===null?dt=f:dt.push.apply(dt,f))}c=m}if(f=!1,c!==2)continue}}if(c===1){Fl(e,0),Un(e,t,0,!0);break}e:{switch(i=e,f=c,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Un(i,t,Ut,!Cn);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=pr+300-Vt(),10<c)){if(Un(i,t,Ut,!Cn),ja(i,0,!0)!==0)break e;i.timeoutHandle=sg(Cd.bind(null,i,n,dt,Ms,mr,t,Ut,cl,Jl,Cn,f,2,-0,0),c);break e}Cd(i,n,dt,Ms,mr,t,Ut,cl,Jl,Cn,f,0,-0,0)}}break}while(!0);Wt(e)}function Cd(e,t,n,i,c,f,m,y,v,D,U,$,k,L){if(e.timeoutHandle=-1,$=t.subtreeFlags,($&8192||($&16785408)===16785408)&&(pa={stylesheets:null,count:0,unsuspend:q0},Od(t),$=H0(),$!==null)){e.cancelPendingCommit=$(jd.bind(null,e,t,f,n,i,c,m,y,v,U,1,k,L)),Un(e,f,m,!D);return}jd(e,t,f,n,i,c,m,y,v)}function l0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var c=n[i],f=c.getSnapshot;c=c.value;try{if(!St(f(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t,n,i){t&=~gr,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var f=31-bt(c),m=1<<f;i[f]=-1,c&=~m}n!==0&&Yf(e,n,t)}function xs(){return(Se&6)===0?(fa(0),!1):!0}function Sr(){if(de!==null){if(Te===0)var e=de.return;else e=de,an=nl=null,Bc(e),Kl=null,ea=0,e=de;for(;e!==null;)od(e.alternate,e),e=e.return;de=null}}function Fl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,T0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sr(),Me=e,de=n=tn(e.current,null),pe=t,Te=0,At=null,Cn=!1,Zl=Ni(e,t),dr=!1,Jl=Ut=gr=cl=kn=Be=0,dt=ca=null,mr=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-bt(i),f=1<<c;t|=e[c],i&=~f}return dn=t,Ia(),n}function kd(e,t){oe=null,z.H=ps,t===Vi||t===ss?(t=Wo(),Te=3):t===Xo?(t=Wo(),Te=4):Te=t===Ih?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,de===null&&(Be=1,Ts(e,Rt(t,e.current)))}function Ld(){var e=z.H;return z.H=ps,e===null?ps:e}function zd(){var e=z.A;return z.A=t0,e}function Tr(){Be=4,Cn||(pe&4194048)!==pe&&zt.current!==null||(Zl=!0),(kn&134217727)===0&&(cl&134217727)===0||Me===null||Un(Me,pe,Ut,!1)}function wr(e,t,n){var i=Se;Se|=2;var c=Ld(),f=zd();(Me!==e||pe!==t)&&(Ms=null,Fl(e,t)),t=!1;var m=Be;e:do try{if(Te!==0&&de!==null){var y=de,v=At;switch(Te){case 8:Sr(),m=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var D=Te;if(Te=0,At=null,Pl(e,y,v,D),n&&Zl){m=0;break e}break;default:D=Te,Te=0,At=null,Pl(e,y,v,D)}}i0(),m=Be;break}catch(U){kd(e,U)}while(!0);return t&&e.shellSuspendCounter++,an=nl=null,Se=i,z.H=c,z.A=f,de===null&&(Me=null,pe=0,Ia()),m}function i0(){for(;de!==null;)Ud(de)}function a0(e,t){var n=Se;Se|=2;var i=Ld(),c=zd();Me!==e||pe!==t?(Ms=null,_s=Vt()+500,Fl(e,t)):Zl=Ni(e,t);e:do try{if(Te!==0&&de!==null){t=de;var f=At;t:switch(Te){case 1:Te=0,At=null,Pl(e,t,f,1);break;case 2:case 9:if(Zo(f)){Te=0,At=null,Bd(t);break}t=function(){Te!==2&&Te!==9||Me!==e||(Te=7),Wt(e)},f.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Zo(f)?(Te=0,At=null,Bd(t)):(Te=0,At=null,Pl(e,t,f,7));break;case 5:var m=null;switch(de.tag){case 26:m=de.memoizedState;case 5:case 27:var y=de;if(!m||vg(m)){Te=0,At=null;var v=y.sibling;if(v!==null)de=v;else{var D=y.return;D!==null?(de=D,Ds(D)):de=null}break t}}Te=0,At=null,Pl(e,t,f,5);break;case 6:Te=0,At=null,Pl(e,t,f,6);break;case 8:Sr(),Be=6;break e;default:throw Error(s(462))}}s0();break}catch(U){kd(e,U)}while(!0);return an=nl=null,z.H=i,z.A=c,Se=n,de!==null?0:(Me=null,pe=0,Ia(),Be)}function s0(){for(;de!==null&&!Mp();)Ud(de)}function Ud(e){var t=rd(e.alternate,e,dn);e.memoizedProps=e.pendingProps,t===null?Ds(e):de=t}function Bd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ld(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=ld(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Bc(t);default:od(n,t),t=de=qo(t,dn),t=rd(n,t,dn)}e.memoizedProps=e.pendingProps,t===null?Ds(e):de=t}function Pl(e,t,n,i){an=nl=null,Bc(t),Kl=null,ea=0;var c=t.return;try{if(Jy(e,c,t,n,pe)){Be=1,Ts(e,Rt(n,e.current)),de=null;return}}catch(f){if(c!==null)throw de=c,f;Be=1,Ts(e,Rt(n,e.current)),de=null;return}t.flags&32768?(be||i===1?e=!0:Zl||(pe&536870912)!==0?e=!1:(Cn=e=!0,(i===2||i===9||i===3||i===6)&&(i=zt.current,i!==null&&i.tag===13&&(i.flags|=16384))),qd(t,e)):Ds(t)}function Ds(e){var t=e;do{if((t.flags&32768)!==0){qd(t,Cn);return}e=t.return;var n=Iy(t.alternate,t,dn);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function qd(e,t){do{var n=Fy(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);Be=6,de=null}function jd(e,t,n,i,c,f,m,y,v){e.cancelPendingCommit=null;do Rs();while(Pe!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=hc,qp(e,n,f,m,y,v),e===Me&&(de=Me=null,pe=0),Wl=t,zn=e,Il=n,yr=f,vr=c,xd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f0(Ua,function(){return Kd(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,c=Z.p,Z.p=2,m=Se,Se|=4;try{Py(e,t,n)}finally{Se=m,Z.p=c,z.T=i}}Pe=1,Hd(),$d(),Yd()}}function Hd(){if(Pe===1){Pe=0;var e=zn,t=Wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var i=Z.p;Z.p=2;var c=Se;Se|=4;try{wd(t,e);var f=Lr,m=Mo(e.containerInfo),y=f.focusedElem,v=f.selectionRange;if(m!==y&&y&&y.ownerDocument&&_o(y.ownerDocument.documentElement,y)){if(v!==null&&uc(y)){var D=v.start,U=v.end;if(U===void 0&&(U=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(U,y.value.length);else{var $=y.ownerDocument||document,k=$&&$.defaultView||window;if(k.getSelection){var L=k.getSelection(),ae=y.textContent.length,ne=Math.min(v.start,ae),Ae=v.end===void 0?ne:Math.min(v.end,ae);!L.extend&&ne>Ae&&(m=Ae,Ae=ne,ne=m);var _=No(y,ne),A=No(y,Ae);if(_&&A&&(L.rangeCount!==1||L.anchorNode!==_.node||L.anchorOffset!==_.offset||L.focusNode!==A.node||L.focusOffset!==A.offset)){var M=$.createRange();M.setStart(_.node,_.offset),L.removeAllRanges(),ne>Ae?(L.addRange(M),L.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),L.addRange(M))}}}}for($=[],L=y;L=L.parentNode;)L.nodeType===1&&$.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<$.length;y++){var j=$[y];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Gs=!!kr,Lr=kr=null}finally{Se=c,Z.p=i,z.T=n}}e.current=t,Pe=2}}function $d(){if(Pe===2){Pe=0;var e=zn,t=Wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var i=Z.p;Z.p=2;var c=Se;Se|=4;try{vd(e,t.alternate,t)}finally{Se=c,Z.p=i,z.T=n}}Pe=3}}function Yd(){if(Pe===4||Pe===3){Pe=0,xp();var e=zn,t=Wl,n=Il,i=xd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pe=5:(Pe=0,Wl=zn=null,Gd(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ln=null),Hu(n),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Oi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=z.T,c=Z.p,Z.p=2,z.T=null;try{for(var f=e.onRecoverableError,m=0;m<i.length;m++){var y=i[m];f(y.value,{componentStack:y.stack})}}finally{z.T=t,Z.p=c}}(Il&3)!==0&&Rs(),Wt(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===br?ra++:(ra=0,br=e):ra=0,fa(0)}}function Gd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gi(t)))}function Rs(e){return Hd(),$d(),Yd(),Kd()}function Kd(){if(Pe!==5)return!1;var e=zn,t=yr;yr=0;var n=Hu(Il),i=z.T,c=Z.p;try{Z.p=32>n?32:n,z.T=null,n=vr,vr=null;var f=zn,m=Il;if(Pe=0,Wl=zn=null,Il=0,(Se&6)!==0)throw Error(s(331));var y=Se;if(Se|=4,_d(f.current),Ad(f,f.current,m,n),Se=y,fa(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Oi,f)}catch{}return!0}finally{Z.p=c,z.T=i,Gd(e,t)}}function Vd(e,t,n){t=Rt(n,t),t=Ic(e.stateNode,t,2),e=On(e,t,2),e!==null&&(_i(e,2),Wt(e))}function Ne(e,t,n){if(e.tag===3)Vd(e,e,n);else for(;t!==null;){if(t.tag===3){Vd(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ln===null||!Ln.has(i))){e=Rt(n,e),n=Jh(2),i=On(t,n,2),i!==null&&(Wh(n,i,t,e),_i(i,2),Wt(i));break}}t=t.return}}function Er(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new n0;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(dr=!0,c.add(n),e=u0.bind(null,e,t,n),t.then(e,e))}function u0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(pe&n)===n&&(Be===4||Be===3&&(pe&62914560)===pe&&300>Vt()-pr?(Se&2)===0&&Fl(e,0):gr|=n,Jl===pe&&(Jl=0)),Wt(e)}function Qd(e,t){t===0&&(t=$f()),e=Ll(e,t),e!==null&&(_i(e,t),Wt(e))}function c0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qd(e,n)}function r0(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Qd(e,n)}function f0(e,t){return Uu(e,t)}var Cs=null,ei=null,Ar=!1,ks=!1,Or=!1,rl=0;function Wt(e){e!==ei&&e.next===null&&(ei===null?Cs=ei=e:ei=ei.next=e),ks=!0,Ar||(Ar=!0,h0())}function fa(e,t){if(!Or&&ks){Or=!0;do for(var n=!1,i=Cs;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var f=0;else{var m=i.suspendedLanes,y=i.pingedLanes;f=(1<<31-bt(42|e)+1)-1,f&=c&~(m&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,Wd(i,f))}else f=pe,f=ja(i,i===Me?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Ni(i,f)||(n=!0,Wd(i,f));i=i.next}while(n);Or=!1}}function o0(){Xd()}function Xd(){ks=Ar=!1;var e=0;rl!==0&&(S0()&&(e=rl),rl=0);for(var t=Vt(),n=null,i=Cs;i!==null;){var c=i.next,f=Zd(i,t);f===0?(i.next=null,n===null?Cs=c:n.next=c,c===null&&(ei=n)):(n=i,(e!==0||(f&3)!==0)&&(ks=!0)),i=c}fa(e)}function Zd(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var m=31-bt(f),y=1<<m,v=c[m];v===-1?((y&n)===0||(y&i)!==0)&&(c[m]=Bp(y,t)):v<=t&&(e.expiredLanes|=y),f&=~y}if(t=Me,n=pe,n=ja(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Bu(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ni(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Bu(i),Hu(n)){case 2:case 8:n=qf;break;case 32:n=Ua;break;case 268435456:n=jf;break;default:n=Ua}return i=Jd.bind(null,e),n=Uu(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Bu(i),e.callbackPriority=2,e.callbackNode=null,2}function Jd(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Rs()&&e.callbackNode!==n)return null;var i=pe;return i=ja(e,e===Me?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Rd(e,i,t),Zd(e,Vt()),e.callbackNode!=null&&e.callbackNode===n?Jd.bind(null,e):null)}function Wd(e,t){if(Rs())return null;Rd(e,t,!0)}function h0(){w0(function(){(Se&6)!==0?Uu(Bf,o0):Xd()})}function Nr(){return rl===0&&(rl=Hf()),rl}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ka(""+e)}function Fd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function d0(e,t,n,i,c){if(t==="submit"&&n&&n.stateNode===c){var f=Id((c[rt]||null).action),m=i.submitter;m&&(t=(t=m[rt]||null)?Id(t.formAction):m.getAttribute("formAction"),t!==null&&(f=t,m=null));var y=new Za("action","action",null,i,c);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(rl!==0){var v=m?Fd(c,m):new FormData(c);Qc(n,{pending:!0,data:v,method:c.method,action:f},null,v)}}else typeof f=="function"&&(y.preventDefault(),v=m?Fd(c,m):new FormData(c),Qc(n,{pending:!0,data:v,method:c.method,action:f},f,v))},currentTarget:c}]})}}for(var _r=0;_r<oc.length;_r++){var Mr=oc[_r],g0=Mr.toLowerCase(),m0=Mr[0].toUpperCase()+Mr.slice(1);Ht(g0,"on"+m0)}Ht(Ro,"onAnimationEnd"),Ht(Co,"onAnimationIteration"),Ht(ko,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Cy,"onTransitionRun"),Ht(ky,"onTransitionStart"),Ht(Ly,"onTransitionCancel"),Ht(Lo,"onTransitionEnd"),Al("onMouseEnter",["mouseout","mouseover"]),Al("onMouseLeave",["mouseout","mouseover"]),Al("onPointerEnter",["pointerout","pointerover"]),Al("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="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(" "),p0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Pd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],c=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var m=i.length-1;0<=m;m--){var y=i[m],v=y.instance,D=y.currentTarget;if(y=y.listener,v!==f&&c.isPropagationStopped())break e;f=y,c.currentTarget=D;try{f(c)}catch(U){Ss(U)}c.currentTarget=null,f=v}else for(m=0;m<i.length;m++){if(y=i[m],v=y.instance,D=y.currentTarget,y=y.listener,v!==f&&c.isPropagationStopped())break e;f=y,c.currentTarget=D;try{f(c)}catch(U){Ss(U)}c.currentTarget=null,f=v}}}}function ge(e,t){var n=t[$u];n===void 0&&(n=t[$u]=new Set);var i=e+"__bubble";n.has(i)||(eg(t,e,2,!1),n.add(i))}function xr(e,t,n){var i=0;t&&(i|=4),eg(n,e,i,t)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function Dr(e){if(!e[Ls]){e[Ls]=!0,Qf.forEach(function(n){n!=="selectionchange"&&(p0.has(n)||xr(n,!1,e),xr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ls]||(t[Ls]=!0,xr("selectionchange",!1,t))}}function eg(e,t,n,i){switch(Ag(t)){case 2:var c=G0;break;case 8:c=K0;break;default:c=Kr}n=c.bind(null,t,n,e),c=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Rr(e,t,n,i,c){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var y=i.stateNode.containerInfo;if(y===c)break;if(m===4)for(m=i.return;m!==null;){var v=m.tag;if((v===3||v===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;y!==null;){if(m=Tl(y),m===null)return;if(v=m.tag,v===5||v===6||v===26||v===27){i=f=m;continue e}y=y.parentNode}}i=i.return}so(function(){var D=f,U=Wu(n),$=[];e:{var k=zo.get(e);if(k!==void 0){var L=Za,ae=e;switch(e){case"keypress":if(Qa(n)===0)break e;case"keydown":case"keyup":L=fy;break;case"focusin":ae="focus",L=nc;break;case"focusout":ae="blur",L=nc;break;case"beforeblur":case"afterblur":L=nc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=ro;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=dy;break;case Ro:case Co:case ko:L=ty;break;case Lo:L=my;break;case"scroll":case"scrollend":L=Wp;break;case"wheel":L=yy;break;case"copy":case"cut":case"paste":L=ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=oo;break;case"toggle":case"beforetoggle":L=by}var ne=(t&4)!==0,Ae=!ne&&(e==="scroll"||e==="scrollend"),_=ne?k!==null?k+"Capture":null:k;ne=[];for(var A=D,M;A!==null;){var j=A;if(M=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||M===null||_===null||(j=Di(A,_),j!=null&&ne.push(ha(A,j,M))),Ae)break;A=A.return}0<ne.length&&(k=new L(k,ae,null,n,U),$.push({event:k,listeners:ne}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&n!==Ju&&(ae=n.relatedTarget||n.fromElement)&&(Tl(ae)||ae[Sl]))break e;if((L||k)&&(k=U.window===U?U:(k=U.ownerDocument)?k.defaultView||k.parentWindow:window,L?(ae=n.relatedTarget||n.toElement,L=D,ae=ae?Tl(ae):null,ae!==null&&(Ae=o(ae),ne=ae.tag,ae!==Ae||ne!==5&&ne!==27&&ne!==6)&&(ae=null)):(L=null,ae=D),L!==ae)){if(ne=ro,j="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ne=oo,j="onPointerLeave",_="onPointerEnter",A="pointer"),Ae=L==null?k:xi(L),M=ae==null?k:xi(ae),k=new ne(j,A+"leave",L,n,U),k.target=Ae,k.relatedTarget=M,j=null,Tl(U)===D&&(ne=new ne(_,A+"enter",ae,n,U),ne.target=M,ne.relatedTarget=Ae,j=ne),Ae=j,L&&ae)t:{for(ne=L,_=ae,A=0,M=ne;M;M=ti(M))A++;for(M=0,j=_;j;j=ti(j))M++;for(;0<A-M;)ne=ti(ne),A--;for(;0<M-A;)_=ti(_),M--;for(;A--;){if(ne===_||_!==null&&ne===_.alternate)break t;ne=ti(ne),_=ti(_)}ne=null}else ne=null;L!==null&&tg($,k,L,ne,!1),ae!==null&&Ae!==null&&tg($,Ae,ae,ne,!0)}}e:{if(k=D?xi(D):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var I=So;else if(vo(k))if(To)I=xy;else{I=_y;var he=Ny}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&Zu(D.elementType)&&(I=So):I=My;if(I&&(I=I(e,D))){bo($,I,n,U);break e}he&&he(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&Xu(k,"number",k.value)}switch(he=D?xi(D):window,e){case"focusin":(vo(he)||he.contentEditable==="true")&&(Rl=he,cc=D,qi=null);break;case"focusout":qi=cc=Rl=null;break;case"mousedown":rc=!0;break;case"contextmenu":case"mouseup":case"dragend":rc=!1,xo($,n,U);break;case"selectionchange":if(Ry)break;case"keydown":case"keyup":xo($,n,U)}var F;if(ic)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Dl?po(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(ho&&n.locale!=="ko"&&(Dl||le!=="onCompositionStart"?le==="onCompositionEnd"&&Dl&&(F=uo()):(Tn=U,Pu="value"in Tn?Tn.value:Tn.textContent,Dl=!0)),he=zs(D,le),0<he.length&&(le=new fo(le,e,null,n,U),$.push({event:le,listeners:he}),F?le.data=F:(F=yo(n),F!==null&&(le.data=F)))),(F=Ty?wy(e,n):Ey(e,n))&&(le=zs(D,"onBeforeInput"),0<le.length&&(he=new fo("onBeforeInput","beforeinput",null,n,U),$.push({event:he,listeners:le}),he.data=F)),d0($,e,D,n,U)}Pd($,t)})}function ha(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zs(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Di(e,n),c!=null&&i.unshift(ha(e,c,f)),c=Di(e,t),c!=null&&i.push(ha(e,c,f))),e.tag===3)return i;e=e.return}return[]}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,n,i,c){for(var f=t._reactName,m=[];n!==null&&n!==i;){var y=n,v=y.alternate,D=y.stateNode;if(y=y.tag,v!==null&&v===i)break;y!==5&&y!==26&&y!==27||D===null||(v=D,c?(D=Di(n,f),D!=null&&m.unshift(ha(n,D,v))):c||(D=Di(n,f),D!=null&&m.push(ha(n,D,v)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var y0=/\r\n?/g,v0=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(y0,`
|
|
50
|
+
`).replace(v0,"")}function lg(e,t){return t=ng(t),ng(e)===t}function Us(){}function Ee(e,t,n,i,c,f){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||_l(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&_l(e,""+i);break;case"className":$a(e,"class",i);break;case"tabIndex":$a(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":$a(e,n,i);break;case"style":io(e,i,f);break;case"data":if(t!=="object"){$a(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ka(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",c.name,c,null),Ee(e,t,"formEncType",c.formEncType,c,null),Ee(e,t,"formMethod",c.formMethod,c,null),Ee(e,t,"formTarget",c.formTarget,c,null)):(Ee(e,t,"encType",c.encType,c,null),Ee(e,t,"method",c.method,c,null),Ee(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ka(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Us);break;case"onScroll":i!=null&&ge("scroll",e);break;case"onScrollEnd":i!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Ka(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Ha(e,"popover",i);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ha(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Zp.get(n)||n,Ha(e,n,i))}}function Cr(e,t,n,i,c,f){switch(n){case"style":io(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?_l(e,i):(typeof i=="number"||typeof i=="bigint")&&_l(e,""+i);break;case"onScroll":i!=null&&ge("scroll",e);break;case"onScrollEnd":i!=null&&ge("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),f=e[rt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof i=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,c);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ha(e,n,i)}}}function et(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var i=!1,c=!1,f;for(f in n)if(n.hasOwnProperty(f)){var m=n[f];if(m!=null)switch(f){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,f,m,n,null)}}c&&Ee(e,t,"srcSet",n.srcSet,n,null),i&&Ee(e,t,"src",n.src,n,null);return;case"input":ge("invalid",e);var y=f=m=c=null,v=null,D=null;for(i in n)if(n.hasOwnProperty(i)){var U=n[i];if(U!=null)switch(i){case"name":c=U;break;case"type":m=U;break;case"checked":v=U;break;case"defaultChecked":D=U;break;case"value":f=U;break;case"defaultValue":y=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ee(e,t,i,U,n,null)}}eo(e,f,y,v,D,m,c,!1),Ya(e);return;case"select":ge("invalid",e),i=m=f=null;for(c in n)if(n.hasOwnProperty(c)&&(y=n[c],y!=null))switch(c){case"value":f=y;break;case"defaultValue":m=y;break;case"multiple":i=y;default:Ee(e,t,c,y,n,null)}t=f,n=m,e.multiple=!!i,t!=null?Nl(e,!!i,t,!1):n!=null&&Nl(e,!!i,n,!0);return;case"textarea":ge("invalid",e),f=c=i=null;for(m in n)if(n.hasOwnProperty(m)&&(y=n[m],y!=null))switch(m){case"value":i=y;break;case"defaultValue":c=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Ee(e,t,m,y,n,null)}no(e,i,c,f),Ya(e);return;case"option":for(v in n)if(n.hasOwnProperty(v)&&(i=n[v],i!=null))switch(v){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ee(e,t,v,i,n,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(i=0;i<oa.length;i++)ge(oa[i],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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(D in n)if(n.hasOwnProperty(D)&&(i=n[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,D,i,n,null)}return;default:if(Zu(t)){for(U in n)n.hasOwnProperty(U)&&(i=n[U],i!==void 0&&Cr(e,t,U,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&Ee(e,t,y,i,n,null))}function b0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,m=null,y=null,v=null,D=null,U=null;for(L in n){var $=n[L];if(n.hasOwnProperty(L)&&$!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":v=$;default:i.hasOwnProperty(L)||Ee(e,t,L,null,i,$)}}for(var k in i){var L=i[k];if($=n[k],i.hasOwnProperty(k)&&(L!=null||$!=null))switch(k){case"type":f=L;break;case"name":c=L;break;case"checked":D=L;break;case"defaultChecked":U=L;break;case"value":m=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==$&&Ee(e,t,k,L,i,$)}}Qu(e,m,y,v,D,U,f,c);return;case"select":L=m=y=k=null;for(f in n)if(v=n[f],n.hasOwnProperty(f)&&v!=null)switch(f){case"value":break;case"multiple":L=v;default:i.hasOwnProperty(f)||Ee(e,t,f,null,i,v)}for(c in i)if(f=i[c],v=n[c],i.hasOwnProperty(c)&&(f!=null||v!=null))switch(c){case"value":k=f;break;case"defaultValue":y=f;break;case"multiple":m=f;default:f!==v&&Ee(e,t,c,f,i,v)}t=y,n=m,i=L,k!=null?Nl(e,!!n,k,!1):!!i!=!!n&&(t!=null?Nl(e,!!n,t,!0):Nl(e,!!n,n?[]:"",!1));return;case"textarea":L=k=null;for(y in n)if(c=n[y],n.hasOwnProperty(y)&&c!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ee(e,t,y,null,i,c)}for(m in i)if(c=i[m],f=n[m],i.hasOwnProperty(m)&&(c!=null||f!=null))switch(m){case"value":k=c;break;case"defaultValue":L=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==f&&Ee(e,t,m,c,i,f)}to(e,k,L);return;case"option":for(var ae in n)if(k=n[ae],n.hasOwnProperty(ae)&&k!=null&&!i.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ee(e,t,ae,null,i,k)}for(v in i)if(k=i[v],L=n[v],i.hasOwnProperty(v)&&k!==L&&(k!=null||L!=null))switch(v){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ee(e,t,v,k,i,L)}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 ne in n)k=n[ne],n.hasOwnProperty(ne)&&k!=null&&!i.hasOwnProperty(ne)&&Ee(e,t,ne,null,i,k);for(D in i)if(k=i[D],L=n[D],i.hasOwnProperty(D)&&k!==L&&(k!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ee(e,t,D,k,i,L)}return;default:if(Zu(t)){for(var Ae in n)k=n[Ae],n.hasOwnProperty(Ae)&&k!==void 0&&!i.hasOwnProperty(Ae)&&Cr(e,t,Ae,void 0,i,k);for(U in i)k=i[U],L=n[U],!i.hasOwnProperty(U)||k===L||k===void 0&&L===void 0||Cr(e,t,U,k,i,L);return}}for(var _ in n)k=n[_],n.hasOwnProperty(_)&&k!=null&&!i.hasOwnProperty(_)&&Ee(e,t,_,null,i,k);for($ in i)k=i[$],L=n[$],!i.hasOwnProperty($)||k===L||k==null&&L==null||Ee(e,t,$,k,i,L)}var kr=null,Lr=null;function Bs(e){return e.nodeType===9?e:e.ownerDocument}function ig(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 ag(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 zr(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 Ur=null;function S0(){var e=window.event;return e&&e.type==="popstate"?e===Ur?!1:(Ur=e,!0):(Ur=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,T0=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,w0=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(e){return ug.resolve(null).then(e).catch(E0)}:sg;function E0(e){setTimeout(function(){throw e})}function Bn(e){return e==="head"}function cg(e,t){var n=t,i=0,c=0;do{var f=n.nextSibling;if(e.removeChild(n),f&&f.nodeType===8)if(n=f.data,n==="/$"){if(0<i&&8>i){n=i;var m=e.ownerDocument;if(n&1&&da(m.documentElement),n&2&&da(m.body),n&4)for(n=m.head,da(n),m=n.firstChild;m;){var y=m.nextSibling,v=m.nodeName;m[Mi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=y}}if(c===0){e.removeChild(f),Ta(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:i=n.charCodeAt(0)-48;else i=0;n=f}while(n);Ta(t)}function Br(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Br(n),Yu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function A0(e,t,n,i){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function O0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Yt(e.nextSibling),e===null))return null;return e}function qr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function N0(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Yt(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var jr=null;function rg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function fg(e,t,n){switch(t=Bs(n),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 da(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yu(e)}var Bt=new Map,og=new Set;function qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gn=Z.d;Z.d={f:_0,r:M0,D:x0,C:D0,L:R0,m:C0,X:L0,S:k0,M:z0};function _0(){var e=gn.f(),t=xs();return e||t}function M0(e){var t=wl(e);t!==null&&t.tag===5&&t.type==="form"?Rh(t):gn.r(e)}var ni=typeof document>"u"?null:document;function hg(e,t,n){var i=ni;if(i&&typeof t=="string"&&t){var c=Dt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),og.has(c)||(og.add(c),e={rel:e,crossOrigin:n,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),et(t,"link",e),Ze(t),i.head.appendChild(t)))}}function x0(e){gn.D(e),hg("dns-prefetch",e,null)}function D0(e,t){gn.C(e,t),hg("preconnect",e,t)}function R0(e,t,n){gn.L(e,t,n);var i=ni;if(i&&e&&t){var c='link[rel="preload"][as="'+Dt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Dt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Dt(n.imageSizes)+'"]')):c+='[href="'+Dt(e)+'"]';var f=c;switch(t){case"style":f=li(e);break;case"script":f=ii(e)}Bt.has(f)||(e=T({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Bt.set(f,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(ga(f))||t==="script"&&i.querySelector(ma(f))||(t=i.createElement("link"),et(t,"link",e),Ze(t),i.head.appendChild(t)))}}function C0(e,t){gn.m(e,t);var n=ni;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Dt(i)+'"][href="'+Dt(e)+'"]',f=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ii(e)}if(!Bt.has(f)&&(e=T({rel:"modulepreload",href:e},t),Bt.set(f,e),n.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ma(f)))return}i=n.createElement("link"),et(i,"link",e),Ze(i),n.head.appendChild(i)}}}function k0(e,t,n){gn.S(e,t,n);var i=ni;if(i&&e){var c=El(i).hoistableStyles,f=li(e);t=t||"default";var m=c.get(f);if(!m){var y={loading:0,preload:null};if(m=i.querySelector(ga(f)))y.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Bt.get(f))&&Hr(e,n);var v=m=i.createElement("link");Ze(v),et(v,"link",e),v._p=new Promise(function(D,U){v.onload=D,v.onerror=U}),v.addEventListener("load",function(){y.loading|=1}),v.addEventListener("error",function(){y.loading|=2}),y.loading|=4,js(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:y},c.set(f,m)}}}function L0(e,t){gn.X(e,t);var n=ni;if(n&&e){var i=El(n).hoistableScripts,c=ii(e),f=i.get(c);f||(f=n.querySelector(ma(c)),f||(e=T({src:e,async:!0},t),(t=Bt.get(c))&&$r(e,t),f=n.createElement("script"),Ze(f),et(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function z0(e,t){gn.M(e,t);var n=ni;if(n&&e){var i=El(n).hoistableScripts,c=ii(e),f=i.get(c);f||(f=n.querySelector(ma(c)),f||(e=T({src:e,async:!0,type:"module"},t),(t=Bt.get(c))&&$r(e,t),f=n.createElement("script"),Ze(f),et(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function dg(e,t,n,i){var c=(c=ue.current)?qs(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=li(n.href),n=El(c).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=li(n.href);var f=El(c).hoistableStyles,m=f.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,m),(f=c.querySelector(ga(e)))&&!f._p&&(m.instance=f,m.state.loading=5),Bt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Bt.set(e,n),f||U0(c,e,n,m.state))),t&&i===null)throw Error(s(528,""));return m}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ii(n),n=El(c).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function li(e){return'href="'+Dt(e)+'"'}function ga(e){return'link[rel="stylesheet"]['+e+"]"}function gg(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function U0(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),et(t,"link",n),Ze(t),e.head.appendChild(t))}function ii(e){return'[src="'+Dt(e)+'"]'}function ma(e){return"script[async]"+e}function mg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Dt(n.href)+'"]');if(i)return t.instance=i,Ze(i),i;var c=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ze(i),et(i,"style",c),js(i,n.precedence,e),t.instance=i;case"stylesheet":c=li(n.href);var f=e.querySelector(ga(c));if(f)return t.state.loading|=4,t.instance=f,Ze(f),f;i=gg(n),(c=Bt.get(c))&&Hr(i,c),f=(e.ownerDocument||e).createElement("link"),Ze(f);var m=f;return m._p=new Promise(function(y,v){m.onload=y,m.onerror=v}),et(f,"link",i),t.state.loading|=4,js(f,n.precedence,e),t.instance=f;case"script":return f=ii(n.src),(c=e.querySelector(ma(f)))?(t.instance=c,Ze(c),c):(i=n,(c=Bt.get(f))&&(i=T({},n),$r(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ze(c),et(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,js(i,n.precedence,e));return t.instance}function js(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,f=c,m=0;m<i.length;m++){var y=i[m];if(y.dataset.precedence===t)f=y;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $r(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hs=null;function pg(e,t,n){if(Hs===null){var i=new Map,c=Hs=new Map;c.set(n,i)}else c=Hs,i=c.get(n),i||(i=new Map,c.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var f=n[c];if(!(f[Mi]||f[nt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var m=f.getAttribute(t)||"";m=e+m;var y=i.get(m);y?y.push(f):i.set(m,[f])}}return i}function yg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function B0(e,t,n){if(n===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 vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var pa=null;function q0(){}function j0(e,t,n){if(pa===null)throw Error(s(475));var i=pa;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=li(n.href),f=e.querySelector(ga(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=$s.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=f,Ze(f);return}f=e.ownerDocument||e,n=gg(n),(c=Bt.get(c))&&Hr(n,c),f=f.createElement("link"),Ze(f);var m=f;m._p=new Promise(function(y,v){m.onload=y,m.onerror=v}),et(f,"link",n),t.instance=f}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=$s.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function H0(){if(pa===null)throw Error(s(475));var e=pa;return e.stylesheets&&e.count===0&&Yr(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Yr(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function $s(){if(this.count--,this.count===0){if(this.stylesheets)Yr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ys=null;function Yr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ys=new Map,t.forEach($0,e),Ys=null,$s.call(e))}function $0(e,t){if(!(t.state.loading&4)){var n=Ys.get(e);if(n)var i=n.get(null);else{n=new Map,Ys.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var m=c[f];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}c=t.instance,m=c.getAttribute("data-precedence"),f=n.get(m)||i,f===i&&n.set(null,c),n.set(m,c),this.count++,i=$s.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ya={$$typeof:q,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Y0(e,t,n,i,c,f,m,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=qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.hiddenUpdates=qu(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function bg(e,t,n,i,c,f,m,y,v,D,U,$){return e=new Y0(e,t,n,m,y,v,D,$),t=1,f===!0&&(t|=24),f=Tt(3,null,null,t),e.current=f,f.stateNode=e,t=Ec(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:n,cache:t},_c(f),e}function Sg(e){return e?(e=zl,e):zl}function Tg(e,t,n,i,c,f){c=Sg(c),i.context===null?i.context=c:i.pendingContext=c,i=An(t),i.payload={element:n},f=f===void 0?null:f,f!==null&&(i.callback=f),n=On(e,i,t),n!==null&&(Nt(n,e,t),Xi(n,e,t))}function wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gr(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function Eg(e){if(e.tag===13){var t=Ll(e,67108864);t!==null&&Nt(t,e,67108864),Gr(e,67108864)}}var Gs=!0;function G0(e,t,n,i){var c=z.T;z.T=null;var f=Z.p;try{Z.p=2,Kr(e,t,n,i)}finally{Z.p=f,z.T=c}}function K0(e,t,n,i){var c=z.T;z.T=null;var f=Z.p;try{Z.p=8,Kr(e,t,n,i)}finally{Z.p=f,z.T=c}}function Kr(e,t,n,i){if(Gs){var c=Vr(i);if(c===null)Rr(e,t,i,Ks,n),Og(e,i);else if(Q0(c,e,t,n,i))i.stopPropagation();else if(Og(e,i),t&4&&-1<V0.indexOf(e)){for(;c!==null;){var f=wl(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var m=Qn(f.pendingLanes);if(m!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;m;){var v=1<<31-bt(m);y.entanglements[1]|=v,m&=~v}Wt(f),(Se&6)===0&&(_s=Vt()+500,fa(0))}}break;case 13:y=Ll(f,2),y!==null&&Nt(y,f,2),xs(),Gr(f,2)}if(f=Vr(i),f===null&&Rr(e,t,i,Ks,n),f===c)break;c=f}c!==null&&i.stopPropagation()}else Rr(e,t,i,null,n)}}function Vr(e){return e=Wu(e),Qr(e)}var Ks=null;function Qr(e){if(Ks=null,e=Tl(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ks=e,null}function Ag(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(Dp()){case Bf:return 2;case qf:return 8;case Ua:case Rp:return 32;case jf:return 268435456;default:return 32}default:return 32}}var Xr=!1,qn=null,jn=null,Hn=null,va=new Map,ba=new Map,$n=[],V0="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 Og(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Sa(e,t,n,i,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:f,targetContainers:[c]},t!==null&&(t=wl(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Q0(e,t,n,i,c){switch(t){case"focusin":return qn=Sa(qn,e,t,n,i,c),!0;case"dragenter":return jn=Sa(jn,e,t,n,i,c),!0;case"mouseover":return Hn=Sa(Hn,e,t,n,i,c),!0;case"pointerover":var f=c.pointerId;return va.set(f,Sa(va.get(f)||null,e,t,n,i,c)),!0;case"gotpointercapture":return f=c.pointerId,ba.set(f,Sa(ba.get(f)||null,e,t,n,i,c)),!0}return!1}function Ng(e){var t=Tl(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,jp(e.priority,function(){if(n.tag===13){var i=Ot();i=ju(i);var c=Ll(n,i);c!==null&&Nt(c,n,i),Gr(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vr(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ju=i,n.target.dispatchEvent(i),Ju=null}else return t=wl(n),t!==null&&Eg(t),e.blockedOn=n,!1;t.shift()}return!0}function _g(e,t,n){Vs(e)&&n.delete(t)}function X0(){Xr=!1,qn!==null&&Vs(qn)&&(qn=null),jn!==null&&Vs(jn)&&(jn=null),Hn!==null&&Vs(Hn)&&(Hn=null),va.forEach(_g),ba.forEach(_g)}function Qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Xr||(Xr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,X0)))}var Xs=null;function Mg(e){Xs!==e&&(Xs=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Xs===e&&(Xs=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Qr(i||n)===null)continue;break}var f=wl(n);f!==null&&(e.splice(t,3),t-=3,Qc(f,{pending:!0,data:c,method:n.method,action:i},i,c))}}))}function Ta(e){function t(v){return Qs(v,e)}qn!==null&&Qs(qn,e),jn!==null&&Qs(jn,e),Hn!==null&&Qs(Hn,e),va.forEach(t),ba.forEach(t);for(var n=0;n<$n.length;n++){var i=$n[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Ng(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var c=n[i],f=n[i+1],m=c[rt]||null;if(typeof f=="function")m||Mg(n);else if(m){var y=null;if(f&&f.hasAttribute("formAction")){if(c=f,m=f[rt]||null)y=m.formAction;else if(Qr(c)!==null)continue}else y=m.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Mg(n)}}}function Zr(e){this._internalRoot=e}Zs.prototype.render=Zr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=Ot();Tg(n,i,e,t,null,null)},Zs.prototype.unmount=Zr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tg(e.current,2,null,e,null,null),xs(),t[Sl]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Ng(e)}};var xg=l.version;if(xg!=="19.1.1")throw Error(s(527,xg,"19.1.1"));Z.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=g(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Z0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{Oi=Js.inject(Z0),vt=Js}catch{}}return Ea.createRoot=function(e,t){if(!r(e))throw Error(s(299));var n=!1,i="",c=Vh,f=Qh,m=Xh,y=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=bg(e,1,!1,null,null,n,i,c,f,m,y,null),e[Sl]=t.current,Dr(e),new Zr(t)},Ea.hydrateRoot=function(e,t,n){if(!r(e))throw Error(s(299));var i=!1,c="",f=Vh,m=Qh,y=Xh,v=null,D=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks),n.formState!==void 0&&(D=n.formState)),t=bg(e,1,!0,t,n??null,i,c,f,m,y,v,D),t.context=Sg(null),n=t.current,i=Ot(),i=ju(i),c=An(i),c.callback=null,On(n,c,i),n=i,t.current.lanes=n,_i(t,n),Wt(t),e[Sl]=t.current,Dr(e),new Zs(t)},Ea.version="19.1.1",Ea}var $g;function h1(){if($g)return Ir.exports;$g=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),Ir.exports=o1(),Ir.exports}var d1=h1();const g1="modulepreload",m1=function(u){return"/"+u},Yg={},p1=function(l,a,s){let r=Promise.resolve();if(a&&a.length>0){let h=function(p){return Promise.all(p.map(T=>Promise.resolve(T).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),g=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));r=h(a.map(p=>{if(p=m1(p),p in Yg)return;Yg[p]=!0;const T=p.endsWith(".css"),w=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${w}`))return;const N=document.createElement("link");if(N.rel=T?"stylesheet":g1,T||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),T)return new Promise((O,R)=>{N.addEventListener("load",O),N.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return r.then(h=>{for(const d of h||[])d.status==="rejected"&&o(d.reason);return l().catch(o)})};function y1(u,l){const a=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let r,o={},h=!1,d=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(r=a.exec(u))!==null;){const[,,p,,T]=r;if(p){const w=+p;switch(w){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:d=Gg[w-30];break;case 39:d=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:g=Gg[w-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:d=Kg[w-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:g=Kg[w-100];break}}else if(T){const w={...o},N=h?g:d;N!==void 0&&(w.color=N);const O=h?d:g;O!==void 0&&(w["background-color"]=O),s.push(`<span style="${b1(w)}">${v1(T)}</span>`)}}return s.join("")}const Gg={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},Kg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function v1(u){return u.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function b1(u){return Object.entries(u).map(([l,a])=>`${l}: ${a}`).join("; ")}const tf=({text:u,highlighter:l,mimeType:a,linkify:s,readOnly:r,highlight:o,revealLine:h,lineNumbers:d,isFocused:g,focusOnChange:p,wrapLines:T,onChange:w,dataTestId:N,placeholder:O})=>{const[R,b]=rm(),[S]=me.useState(p1(()=>import("./codeMirrorModule-C3flxtHK.js"),__vite__mapDeps([0,1])).then(Y=>Y.default)),C=me.useRef(null),[H,q]=me.useState();return me.useEffect(()=>{(async()=>{var V,x;const Y=await S;T1(Y);const K=b.current;if(!K)return;const Q=E1(l)||w1(a)||(s?"text/linkified":"");if(C.current&&Q===C.current.cm.getOption("mode")&&!!r===C.current.cm.getOption("readOnly")&&d===C.current.cm.getOption("lineNumbers")&&T===C.current.cm.getOption("lineWrapping")&&O===C.current.cm.getOption("placeholder"))return;(x=(V=C.current)==null?void 0:V.cm)==null||x.getWrapperElement().remove();const P=Y(K,{value:"",mode:Q,readOnly:!!r,lineNumbers:d,lineWrapping:T,placeholder:O});return C.current={cm:P},g&&P.focus(),q(P),P})()},[S,H,b,l,a,s,d,T,r,g,O]),me.useEffect(()=>{C.current&&C.current.cm.setSize(R.width,R.height)},[R]),me.useLayoutEffect(()=>{var Q;if(!H)return;let Y=!1;if(H.getValue()!==u&&(H.setValue(u),Y=!0,p&&(H.execCommand("selectAll"),H.focus())),Y||JSON.stringify(o)!==JSON.stringify(C.current.highlight)){for(const x of C.current.highlight||[])H.removeLineClass(x.line-1,"wrap");for(const x of o||[])H.addLineClass(x.line-1,"wrap",`source-line-${x.type}`);for(const x of C.current.widgets||[])H.removeLineWidget(x);for(const x of C.current.markers||[])x.clear();const P=[],V=[];for(const x of o||[]){if(x.type!=="subtle-error"&&x.type!=="error")continue;const se=(Q=C.current)==null?void 0:Q.cm.getLine(x.line-1);if(se){const ce={};ce.title=x.message||"",V.push(H.markText({line:x.line-1,ch:0},{line:x.line-1,ch:x.column||se.length},{className:"source-line-error-underline",attributes:ce}))}if(x.type==="error"){const ce=document.createElement("div");ce.innerHTML=y1(x.message||""),ce.className="source-line-error-widget",P.push(H.addLineWidget(x.line,ce,{above:!0,coverGutter:!1}))}}C.current.highlight=o,C.current.widgets=P,C.current.markers=V}typeof h=="number"&&C.current.cm.lineCount()>=h&&H.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let K;return w&&(K=()=>w(H.getValue()),H.on("change",K)),()=>{K&&H.off("change",K)}},[H,u,o,h,p,w]),X.jsx("div",{"data-testid":N,className:"cm-wrapper",ref:b,onClick:S1})};function S1(u){var a;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((a=u.target.nextElementSibling)!=null&&a.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let Vg=!1;function T1(u){Vg||(Vg=!0,u.defineSimpleMode("text/linkified",{start:[{regex:n1,token:"linkified"}]}))}function w1(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function E1(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const A1=50,O1=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:a=!1,orientation:s="vertical",minSidebarSize:r=A1,settingName:o,sidebar:h,main:d})=>{const g=Math.max(r,u)*window.devicePixelRatio,[p,T]=ou(o?o+"."+s+":size":void 0,g),[w,N]=ou(o?o+"."+s+":size":void 0,g),[O,R]=me.useState(null),[b,S]=rm();let C;s==="vertical"?(C=w/window.devicePixelRatio,b&&b.height<C&&(C=b.height-10)):(C=p/window.devicePixelRatio,b&&b.width<C&&(C=b.width-10)),document.body.style.userSelect=O?"none":"inherit";let H={};return s==="vertical"?a?H={top:O?0:C-4,bottom:O?0:void 0,height:O?"initial":8}:H={bottom:O?0:C-4,top:O?0:void 0,height:O?"initial":8}:a?H={left:O?0:C-4,right:O?0:void 0,width:O?"initial":8}:H={right:O?0:C-4,left:O?0:void 0,width:O?"initial":8},X.jsxs("div",{className:pl("split-view",s,a&&"sidebar-first"),ref:S,children:[X.jsx("div",{className:"split-view-main",children:d}),!l&&X.jsx("div",{style:{flexBasis:C},className:"split-view-sidebar",children:h}),!l&&X.jsx("div",{style:H,className:"split-view-resizer",onMouseDown:q=>R({offset:s==="vertical"?q.clientY:q.clientX,size:C}),onMouseUp:()=>R(null),onMouseMove:q=>{if(!q.buttons)R(null);else if(O){const K=(s==="vertical"?q.clientY:q.clientX)-O.offset,Q=a?O.size+K:O.size-K,V=q.target.parentElement.getBoundingClientRect(),x=Math.min(Math.max(r,Q),(s==="vertical"?V.height:V.width)-r);s==="vertical"?N(x*window.devicePixelRatio):T(x*window.devicePixelRatio)}}})]})},fm=({noShadow:u,children:l,noMinHeight:a,className:s,sidebarBackground:r,onClick:o})=>X.jsx("div",{className:pl("toolbar",u&&"no-shadow",a&&"no-min-height",s,r&&"toolbar-sidebar-background"),onClick:o,children:l}),N1=({tabs:u,selectedTab:l,setSelectedTab:a,leftToolbar:s,rightToolbar:r,dataTestId:o,mode:h})=>{const d=me.useId();return l||(l=u[0].id),h||(h="default"),X.jsx("div",{className:"tabbed-pane","data-testid":o,children:X.jsxs("div",{className:"vbox",children:[X.jsxs(fm,{children:[s&&X.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(g=>X.jsx(_1,{id:g.id,ariaControls:`${d}-${g.id}`,title:g.title,count:g.count,errorCount:g.errorCount,selected:l===g.id,onSelect:a},g.id))]}),h==="select"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:X.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:g=>{a==null||a(u[g.currentTarget.selectedIndex].id)},children:u.map(g=>{let p="";return g.count&&(p=` (${g.count})`),g.errorCount&&(p=` (${g.errorCount})`),X.jsxs("option",{value:g.id,role:"tab","aria-controls":`${d}-${g.id}`,children:[g.title,p]},g.id)})})}),r&&X.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...r]})]}),u.map(g=>{const p="tab-content tab-"+g.id;if(g.component)return X.jsx("div",{id:`${d}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,style:{display:l===g.id?"inherit":"none"},children:g.component},g.id);if(l===g.id)return X.jsx("div",{id:`${d}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},_1=({id:u,title:l,count:a,errorCount:s,selected:r,onSelect:o,ariaControls:h})=>X.jsxs("div",{className:pl("tabbed-pane-tab",r&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,"aria-controls":h,children:[X.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!a&&X.jsx("div",{className:"tabbed-pane-tab-counter",children:a}),!!s&&X.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),M1=({sources:u,fileId:l,setFileId:a})=>X.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{a(s.target.selectedOptions[0].value)},children:x1(u)});function x1(u){const l=r=>r.replace(/.*[/\\]([^/\\]+)/,"$1"),a=r=>X.jsx("option",{value:r.id,children:l(r.label)},r.id),s=new Map;for(const r of u){let o=s.get(r.group||"Debugger");o||(o=[],s.set(r.group||"Debugger",o)),o.push(r)}return[...s.entries()].map(([r,o])=>X.jsx("optgroup",{label:r,children:o.filter(h=>(h.group||"Debugger")===r).map(h=>a(h))},r))}function D1(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const _t=me.forwardRef(function({children:l,title:a="",icon:s,disabled:r=!1,toggled:o=!1,onClick:h=()=>{},style:d,testId:g,className:p,ariaLabel:T},w){return X.jsxs("button",{ref:w,className:pl(p,"toolbar-button",s,o&&"toggled"),onMouseDown:Xg,onClick:h,onDoubleClick:Xg,title:a,disabled:!!r,style:d,"data-testid":g,"aria-label":T||a,children:[s&&X.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l]})}),Qg=({style:u})=>X.jsx("div",{className:"toolbar-separator",style:u}),Xg=u=>{u.stopPropagation(),u.preventDefault()},Ke=function(u,l,a){return u>=l&&u<=a};function gt(u){return Ke(u,48,57)}function Zg(u){return gt(u)||Ke(u,65,70)||Ke(u,97,102)}function R1(u){return Ke(u,65,90)}function C1(u){return Ke(u,97,122)}function k1(u){return R1(u)||C1(u)}function L1(u){return u>=128}function tu(u){return k1(u)||L1(u)||u===95}function Jg(u){return tu(u)||gt(u)||u===45}function z1(u){return Ke(u,0,8)||u===11||Ke(u,14,31)||u===127}function nu(u){return u===10}function mn(u){return nu(u)||u===9||u===32}const U1=1114111;class Tf extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function B1(u){const l=[];for(let a=0;a<u.length;a++){let s=u.charCodeAt(a);if(s===13&&u.charCodeAt(a+1)===10&&(s=10,a++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Ke(s,55296,56319)&&Ke(u.charCodeAt(a+1),56320,57343)){const r=s-55296,o=u.charCodeAt(a+1)-56320;s=Math.pow(2,16)+r*Math.pow(2,10)+o,a++}l.push(s)}return l}function Xe(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,a=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(a)}function q1(u){const l=B1(u);let a=-1;const s=[];let r;const o=function(B){return B>=l.length?-1:l[B]},h=function(B){if(B===void 0&&(B=1),B>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(a+B)},d=function(B){return B===void 0&&(B=1),a+=B,r=o(a),!0},g=function(){return a-=1,!0},p=function(B){return B===void 0&&(B=r),B===-1},T=function(){if(w(),d(),mn(r)){for(;mn(h());)d();return new hf}else{if(r===34)return R();if(r===35)if(Jg(h())||C(h(1),h(2))){const B=new Om("");return q(h(1),h(2),h(3))&&(B.type="id"),B.value=P(),B}else return new at(r);else return r===36?h()===61?(d(),new Y1):new at(r):r===39?R():r===40?new Sm:r===41?new Tm:r===42?h()===61?(d(),new G1):new at(r):r===43?Q()?(g(),N()):new at(r):r===44?new pm:r===45?Q()?(g(),N()):h(1)===45&&h(2)===62?(d(2),new dm):Y()?(g(),O()):new at(r):r===46?Q()?(g(),N()):new at(r):r===58?new gm:r===59?new mm:r===60?h(1)===33&&h(2)===45&&h(3)===45?(d(3),new hm):new at(r):r===64?q(h(1),h(2),h(3))?new Am(P()):new at(r):r===91?new bm:r===92?H()?(g(),O()):new at(r):r===93?new df:r===94?h()===61?(d(),new $1):new at(r):r===123?new ym:r===124?h()===61?(d(),new H1):h()===124?(d(),new wm):new at(r):r===125?new vm:r===126?h()===61?(d(),new j1):new at(r):gt(r)?(g(),N()):tu(r)?(g(),O()):p()?new iu:new at(r)}},w=function(){for(;h(1)===47&&h(2)===42;)for(d(2);;)if(d(),r===42&&h()===47){d();break}else if(p())return},N=function(){const B=V();if(q(h(1),h(2),h(3))){const ee=new K1;return ee.value=B.value,ee.repr=B.repr,ee.type=B.type,ee.unit=P(),ee}else if(h()===37){d();const ee=new xm;return ee.value=B.value,ee.repr=B.repr,ee}else{const ee=new Mm;return ee.value=B.value,ee.repr=B.repr,ee.type=B.type,ee}},O=function(){const B=P();if(B.toLowerCase()==="url"&&h()===40){for(d();mn(h(1))&&mn(h(2));)d();return h()===34||h()===39?new au(B):mn(h())&&(h(2)===34||h(2)===39)?new au(B):b()}else return h()===40?(d(),new au(B)):new Em(B)},R=function(B){B===void 0&&(B=r);let ee="";for(;d();){if(r===B||p())return new Nm(ee);if(nu(r))return g(),new om;r===92?p(h())||(nu(h())?d():ee+=Xe(S())):ee+=Xe(r)}throw new Error("Internal error")},b=function(){const B=new _m("");for(;mn(h());)d();if(p(h()))return B;for(;d();){if(r===41||p())return B;if(mn(r)){for(;mn(h());)d();return h()===41||p(h())?(d(),B):(se(),new lu)}else{if(r===34||r===39||r===40||z1(r))return se(),new lu;if(r===92)if(H())B.value+=Xe(S());else return se(),new lu;else B.value+=Xe(r)}}throw new Error("Internal error")},S=function(){if(d(),Zg(r)){const B=[r];for(let ze=0;ze<5&&Zg(h());ze++)d(),B.push(r);mn(h())&&d();let ee=parseInt(B.map(function(ze){return String.fromCharCode(ze)}).join(""),16);return ee>U1&&(ee=65533),ee}else return p()?65533:r},C=function(B,ee){return!(B!==92||nu(ee))},H=function(){return C(r,h())},q=function(B,ee,ze){return B===45?tu(ee)||ee===45||C(ee,ze):tu(B)?!0:B===92?C(B,ee):!1},Y=function(){return q(r,h(1),h(2))},K=function(B,ee,ze){return B===43||B===45?!!(gt(ee)||ee===46&>(ze)):B===46?!!gt(ee):!!gt(B)},Q=function(){return K(r,h(1),h(2))},P=function(){let B="";for(;d();)if(Jg(r))B+=Xe(r);else if(H())B+=Xe(S());else return g(),B;throw new Error("Internal parse error")},V=function(){let B="",ee="integer";for((h()===43||h()===45)&&(d(),B+=Xe(r));gt(h());)d(),B+=Xe(r);if(h(1)===46&>(h(2)))for(d(),B+=Xe(r),d(),B+=Xe(r),ee="number";gt(h());)d(),B+=Xe(r);const ze=h(1),$e=h(2),z=h(3);if((ze===69||ze===101)&>($e))for(d(),B+=Xe(r),d(),B+=Xe(r),ee="number";gt(h());)d(),B+=Xe(r);else if((ze===69||ze===101)&&($e===43||$e===45)&>(z))for(d(),B+=Xe(r),d(),B+=Xe(r),d(),B+=Xe(r),ee="number";gt(h());)d(),B+=Xe(r);const Z=x(B);return{type:ee,value:Z,repr:B}},x=function(B){return+B},se=function(){for(;d();){if(r===41||p())return;H()&&S()}};let ce=0;for(;!p(h());)if(s.push(T()),ce++,ce>l.length*2)throw new Error("I'm infinite-looping!");return s}class He{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class om extends He{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class lu extends He{constructor(){super(...arguments),this.tokenType="BADURL"}}class hf extends He{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class hm extends He{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class dm extends He{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class gm extends He{constructor(){super(...arguments),this.tokenType=":"}}class mm extends He{constructor(){super(...arguments),this.tokenType=";"}}class pm extends He{constructor(){super(...arguments),this.tokenType=","}}class yi extends He{constructor(){super(...arguments),this.value="",this.mirror=""}}class ym extends yi{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class vm extends yi{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class bm extends yi{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class df extends yi{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Sm extends yi{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Tm extends yi{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class j1 extends He{constructor(){super(...arguments),this.tokenType="~="}}class H1 extends He{constructor(){super(...arguments),this.tokenType="|="}}class $1 extends He{constructor(){super(...arguments),this.tokenType="^="}}class Y1 extends He{constructor(){super(...arguments),this.tokenType="$="}}class G1 extends He{constructor(){super(...arguments),this.tokenType="*="}}class wm extends He{constructor(){super(...arguments),this.tokenType="||"}}class iu extends He{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class at extends He{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Xe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
|
|
51
|
+
`:this.value}}class vi extends He{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Em extends vi{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ra(this.value)}}class au extends vi{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ra(this.value)+"("}}class Am extends vi{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ra(this.value)}}class Om extends vi{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ra(this.value):"#"+V1(this.value)}}class Nm extends vi{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Dm(this.value)+'"'}}class _m extends vi{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Dm(this.value)+'")'}}class Mm extends He{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class xm extends He{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class K1 extends He{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let a=Ra(this.unit);return a[0].toLowerCase()==="e"&&(a[1]==="-"||Ke(a.charCodeAt(1),48,57))&&(a="\\65 "+a.slice(1,a.length)),l+a}}function Ra(u){u=""+u;let l="";const a=u.charCodeAt(0);for(let s=0;s<u.length;s++){const r=u.charCodeAt(s);if(r===0)throw new Tf("Invalid character: the input contains U+0000.");Ke(r,1,31)||r===127||s===0&&Ke(r,48,57)||s===1&&Ke(r,48,57)&&a===45?l+="\\"+r.toString(16)+" ":r>=128||r===45||r===95||Ke(r,48,57)||Ke(r,65,90)||Ke(r,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function V1(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Tf("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Ke(s,48,57)||Ke(s,65,90)||Ke(s,97,122)?l+=u[a]:l+="\\"+s.toString(16)+" "}return l}function Dm(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Tf("Invalid character: the input contains U+0000.");Ke(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[a]:l+=u[a]}return l}class mt extends Error{}function Q1(u,l){let a;try{a=q1(u),a[a.length-1]instanceof iu||a.push(new iu)}catch(x){const se=x.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,ce=(x.stack||"").indexOf(x.message);throw ce!==-1&&(x.stack=x.stack.substring(0,ce)+se+x.stack.substring(ce+x.message.length)),x.message=se,x}const s=a.find(x=>x instanceof Am||x instanceof om||x instanceof lu||x instanceof wm||x instanceof hm||x instanceof dm||x instanceof mm||x instanceof ym||x instanceof vm||x instanceof _m||x instanceof xm);if(s)throw new mt(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let r=0;const o=new Set;function h(){return new mt(`Unexpected token "${a[r].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function d(){for(;a[r]instanceof hf;)r++}function g(x=r){return a[x]instanceof Em}function p(x=r){return a[x]instanceof Nm}function T(x=r){return a[x]instanceof Mm}function w(x=r){return a[x]instanceof pm}function N(x=r){return a[x]instanceof Sm}function O(x=r){return a[x]instanceof Tm}function R(x=r){return a[x]instanceof au}function b(x=r){return a[x]instanceof at&&a[x].value==="*"}function S(x=r){return a[x]instanceof iu}function C(x=r){return a[x]instanceof at&&[">","+","~"].includes(a[x].value)}function H(x=r){return w(x)||O(x)||S(x)||C(x)||a[x]instanceof hf}function q(){const x=[Y()];for(;d(),!!w();)r++,x.push(Y());return x}function Y(){return d(),T()||p()?a[r++].value:K()}function K(){const x={simples:[]};for(d(),C()?x.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):x.simples.push({selector:Q(),combinator:""});;){if(d(),C())x.simples[x.simples.length-1].combinator=a[r++].value,d();else if(H())break;x.simples.push({combinator:"",selector:Q()})}return x}function Q(){let x="";const se=[];for(;!H();)if(g()||b())x+=a[r++].toSource();else if(a[r]instanceof Om)x+=a[r++].toSource();else if(a[r]instanceof at&&a[r].value===".")if(r++,g())x+="."+a[r++].toSource();else throw h();else if(a[r]instanceof gm)if(r++,g())if(!l.has(a[r].value.toLowerCase()))x+=":"+a[r++].toSource();else{const ce=a[r++].value.toLowerCase();se.push({name:ce,args:[]}),o.add(ce)}else if(R()){const ce=a[r++].value.toLowerCase();if(l.has(ce)?(se.push({name:ce,args:q()}),o.add(ce)):x+=`:${ce}(${P()})`,d(),!O())throw h();r++}else throw h();else if(a[r]instanceof bm){for(x+="[",r++;!(a[r]instanceof df)&&!S();)x+=a[r++].toSource();if(!(a[r]instanceof df))throw h();x+="]",r++}else throw h();if(!x&&!se.length)throw h();return{css:x||void 0,functions:se}}function P(){let x="",se=1;for(;!S()&&((N()||R())&&se++,O()&&se--,!!se);)x+=a[r++].toSource();return x}const V=q();if(!S())throw h();if(V.some(x=>typeof x!="object"||!("simples"in x)))throw new mt(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const Wg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),X1=new Set(["left-of","right-of","above","below","near"]),Z1=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Rm(u){const l=W1(u),a=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const r=Q1(s.body,Z1);a.push({name:"css",body:r.selector,source:s.body});continue}if(Wg.has(s.name)){let r,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new mt(`Malformed selector: ${s.name}=`+s.body);if(r=p[0],p.length===2){if(typeof p[1]!="number"||!X1.has(s.name))throw new mt(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new mt(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Rm(r),distance:o}},d=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),g=d?h.body.parsed.parts.indexOf(d):-1;g!==-1&&J1(h.body.parsed.parts.slice(0,g+1),a.slice(0,g+1))&&h.body.parsed.parts.splice(0,g+1),a.push(h);continue}a.push({...s,source:s.body})}if(Wg.has(a[0].name))throw new mt(`"${a[0].name}" selector cannot be first`);return{capture:l.capture,parts:a}}function J1(u,l){return ci({parts:u})===ci({parts:l})}function ci(u,l){return typeof u=="string"?u:u.parts.map((a,s)=>{let r=!0;!l&&s!==u.capture&&(a.name==="css"||a.name==="xpath"&&a.source.startsWith("//")||a.source.startsWith(".."))&&(r=!1);const o=r?a.name+"=":"";return`${s===u.capture?"*":""}${o}${a.source}`}).join(" >> ")}function W1(u){let l=0,a,s=0;const r={parts:[]},o=()=>{const d=u.substring(s,l).trim(),g=d.indexOf("=");let p,T;g!==-1&&d.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=d.substring(0,g).trim(),T=d.substring(g+1)):d.length>1&&d[0]==='"'&&d[d.length-1]==='"'||d.length>1&&d[0]==="'"&&d[d.length-1]==="'"?(p="text",T=d):/^\(*\/\//.test(d)||d.startsWith("..")?(p="xpath",T=d):(p="css",T=d);let w=!1;if(p[0]==="*"&&(w=!0,p=p.substring(1)),r.parts.push({name:p,body:T}),w){if(r.capture!==void 0)throw new mt("Only one of the selectors can capture using * modifier");r.capture=r.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),r;const h=()=>{const g=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!g&&!!g[1]};for(;l<u.length;){const d=u[l];d==="\\"&&l+1<u.length?l+=2:d===a?(a=void 0,l++):!a&&(d==='"'||d==="'"||d==="`")&&!h()?(a=d,l++):!a&&d===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),r}function nf(u,l){let a=0,s=u.length===0;const r=()=>u[a]||"",o=()=>{const S=r();return++a,s=a>=u.length,S},h=S=>{throw s?new mt(`Unexpected end of selector while parsing selector \`${u}\``):new mt(`Error while parsing selector \`${u}\` - unexpected symbol "${r()}" at position ${a}`+(S?" during "+S:""))};function d(){for(;!s&&/\s/.test(r());)o()}function g(S){return S>=""||S>="0"&&S<="9"||S>="A"&&S<="Z"||S>="a"&&S<="z"||S>="0"&&S<="9"||S==="_"||S==="-"}function p(){let S="";for(d();!s&&g(r());)S+=o();return S}function T(S){let C=o();for(C!==S&&h("parsing quoted string");!s&&r()!==S;)r()==="\\"&&o(),C+=o();return r()!==S&&h("parsing quoted string"),C+=o(),C}function w(){o()!=="/"&&h("parsing regular expression");let S="",C=!1;for(;!s;){if(r()==="\\")S+=o(),s&&h("parsing regular expression");else if(C&&r()==="]")C=!1;else if(!C&&r()==="[")C=!0;else if(!C&&r()==="/")break;S+=o()}o()!=="/"&&h("parsing regular expression");let H="";for(;!s&&r().match(/[dgimsuy]/);)H+=o();try{return new RegExp(S,H)}catch(q){throw new mt(`Error while parsing selector \`${u}\`: ${q.message}`)}}function N(){let S="";return d(),r()==="'"||r()==='"'?S=T(r()).slice(1,-1):S=p(),S||h("parsing property path"),S}function O(){d();let S="";return s||(S+=o()),!s&&S!=="="&&(S+=o()),["=","*=","^=","$=","|=","~="].includes(S)||h("parsing operator"),S}function R(){o();const S=[];for(S.push(N()),d();r()===".";)o(),S.push(N()),d();if(r()==="]")return o(),{name:S.join("."),jsonPath:S,op:"<truthy>",value:null,caseSensitive:!1};const C=O();let H,q=!0;if(d(),r()==="/"){if(C!=="=")throw new mt(`Error while parsing selector \`${u}\` - cannot use ${C} in attribute with regular expression`);H=w()}else if(r()==="'"||r()==='"')H=T(r()).slice(1,-1),d(),r()==="i"||r()==="I"?(q=!1,o()):(r()==="s"||r()==="S")&&(q=!0,o());else{for(H="";!s&&(g(r())||r()==="+"||r()===".");)H+=o();H==="true"?H=!0:H==="false"&&(H=!1)}if(d(),r()!=="]"&&h("parsing attribute value"),o(),C!=="="&&typeof H!="string")throw new mt(`Error while parsing selector \`${u}\` - cannot use ${C} in attribute with non-string matching value - ${H}`);return{name:S.join("."),jsonPath:S,op:C,value:H,caseSensitive:q}}const b={name:"",attributes:[]};for(b.name=p(),d();r()==="[";)b.attributes.push(R()),d();if(s||h(void 0),!b.name&&!b.attributes.length)throw new mt(`Error while parsing selector \`${u}\` - selector cannot be empty`);return b}function vu(u,l="'"){const a=JSON.stringify(u),s=a.substring(1,a.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function hu(u){return u.charAt(0).toUpperCase()+u.substring(1)}function Cm(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function bu(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function km(u,l,a=!1){return I1(u,l,a,1)[0]}function I1(u,l,a=!1,s=20,r){try{return ui(new iv[u](r),Rm(l),a,s)}catch{return[l]}}function ui(u,l,a=!1,s=20){const r=[...l.parts],o=[];let h=a?"frame-locator":"page";for(let d=0;d<r.length;d++){const g=r[d],p=h;if(h="locator",g.name==="internal:describe")continue;if(g.name==="nth"){g.body==="0"?o.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):g.body==="-1"?o.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):o.push([u.generateLocator(p,"nth",g.body)]);continue}if(g.name==="visible"){o.push([u.generateLocator(p,"visible",g.body),u.generateLocator(p,"default",`visible=${g.body}`)]);continue}if(g.name==="internal:text"){const{exact:R,text:b}=Aa(g.body);o.push([u.generateLocator(p,"text",b,{exact:R})]);continue}if(g.name==="internal:has-text"){const{exact:R,text:b}=Aa(g.body);if(!R){o.push([u.generateLocator(p,"has-text",b,{exact:R})]);continue}}if(g.name==="internal:has-not-text"){const{exact:R,text:b}=Aa(g.body);if(!R){o.push([u.generateLocator(p,"has-not-text",b,{exact:R})]);continue}}if(g.name==="internal:has"){const R=ui(u,g.body.parsed,!1,s);o.push(R.map(b=>u.generateLocator(p,"has",b)));continue}if(g.name==="internal:has-not"){const R=ui(u,g.body.parsed,!1,s);o.push(R.map(b=>u.generateLocator(p,"hasNot",b)));continue}if(g.name==="internal:and"){const R=ui(u,g.body.parsed,!1,s);o.push(R.map(b=>u.generateLocator(p,"and",b)));continue}if(g.name==="internal:or"){const R=ui(u,g.body.parsed,!1,s);o.push(R.map(b=>u.generateLocator(p,"or",b)));continue}if(g.name==="internal:chain"){const R=ui(u,g.body.parsed,!1,s);o.push(R.map(b=>u.generateLocator(p,"chain",b)));continue}if(g.name==="internal:label"){const{exact:R,text:b}=Aa(g.body);o.push([u.generateLocator(p,"label",b,{exact:R})]);continue}if(g.name==="internal:role"){const R=nf(g.body),b={attrs:[]};for(const S of R.attributes)S.name==="name"?(b.exact=S.caseSensitive,b.name=S.value):(S.name==="level"&&typeof S.value=="string"&&(S.value=+S.value),b.attrs.push({name:S.name==="include-hidden"?"includeHidden":S.name,value:S.value}));o.push([u.generateLocator(p,"role",R.name,b)]);continue}if(g.name==="internal:testid"){const R=nf(g.body),{value:b}=R.attributes[0];o.push([u.generateLocator(p,"test-id",b)]);continue}if(g.name==="internal:attr"){const R=nf(g.body),{name:b,value:S,caseSensitive:C}=R.attributes[0],H=S,q=!!C;if(b==="placeholder"){o.push([u.generateLocator(p,"placeholder",H,{exact:q})]);continue}if(b==="alt"){o.push([u.generateLocator(p,"alt",H,{exact:q})]);continue}if(b==="title"){o.push([u.generateLocator(p,"title",H,{exact:q})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const R=o[o.length-1],b=r[d-1],S=R.map(C=>u.chainLocators([C,u.generateLocator(p,"frame","")]));["xpath","css"].includes(b.name)&&S.push(u.generateLocator(p,"frame-locator",ci({parts:[b]})),u.generateLocator(p,"frame-locator",ci({parts:[b]},!0))),R.splice(0,R.length,...S),h="frame-locator";continue}const T=r[d+1],w=ci({parts:[g]}),N=u.generateLocator(p,"default",w);if(T&&["internal:has-text","internal:has-not-text"].includes(T.name)){const{exact:R,text:b}=Aa(T.body);if(!R){const S=u.generateLocator("locator",T.name==="internal:has-text"?"has-text":"has-not-text",b,{exact:R}),C={};T.name==="internal:has-text"?C.hasText=b:C.hasNotText=b;const H=u.generateLocator(p,"default",w,C);o.push([u.chainLocators([N,S]),H]),d++;continue}}let O;if(["xpath","css"].includes(g.name)){const R=ci({parts:[g]},!0);O=u.generateLocator(p,"default",R)}o.push([N,O].filter(Boolean))}return F1(u,o,s)}function F1(u,l,a){const s=l.map(()=>""),r=[],o=h=>{if(h===l.length)return r.push(u.chainLocators(s)),r.length<a;for(const d of l[h])if(s[h]=d,!o(h+1))return!1;return!0};return o(0),r}function Aa(u){let l=!1;const a=u.match(/^\/(.*)\/([igm]*)$/);return a?{text:new RegExp(a[1],a[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class P1{constructor(l){this.preferredQuote=l}generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(r.hasText)} })`:r.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(r.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];tt(r.name)?o.push(`name: ${this.regexToSourceString(r.name)}`):typeof r.name=="string"&&(o.push(`name: ${this.quote(r.name)}`),r.exact&&o.push("exact: true"));for(const{name:d,value:g}of r.attrs)o.push(`${d}: ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!r.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact("getByLabel",s,!!r.exact);case"title":return this.toCallWithExact("getByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return bu(String(l))}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToSourceString(a)})`:s?`${l}(${this.quote(a)}, { exact: true })`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return tt(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return vu(l,this.preferredQuote??"'")}}class ev{generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(r.hasText)})`:r.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(r.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];tt(r.name)?o.push(`name=${this.regexToString(r.name)}`):typeof r.name=="string"&&(o.push(`name=${this.quote(r.name)}`),r.exact&&o.push("exact=True"));for(const{name:d,value:g}of r.attrs){let p=typeof g=="string"?this.quote(g):g;typeof g=="boolean"&&(p=g?"True":"False"),o.push(`${Cm(d)}=${p}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!r.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!r.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!r.exact);case"label":return this.toCallWithExact("get_by_label",s,!!r.exact);case"title":return this.toCallWithExact("get_by_title",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${bu(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${a})`}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, exact=True)`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}quote(l){return vu(l,'"')}}class tv{generateLocator(l,a,s,r={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(a){case"default":return r.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(r.hasText)}))`:r.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(r.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];tt(r.name)?h.push(`.setName(${this.regexToString(r.name)})`):typeof r.name=="string"&&(h.push(`.setName(${this.quote(r.name)})`),r.exact&&h.push(".setExact(true)"));for(const{name:g,value:p}of r.attrs)h.push(`.set${hu(g)}(${typeof p=="string"?this.quote(p):p})`);const d=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${Cm(s).toUpperCase()}${d})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!r.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!r.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(bu(l.source))}${a})`}toCallWithExact(l,a,s,r){return tt(s)?`${a}(${this.regexToString(s)})`:r?`${a}(${this.quote(s)}, new ${l}.${hu(a)}Options().setExact(true))`:`${a}(${this.quote(s)})`}toHasText(l){return tt(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}quote(l){return vu(l,'"')}}class nv{generateLocator(l,a,s,r={}){switch(a){case"default":return r.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(r.hasText)} })`:r.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(r.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];tt(r.name)?o.push(`NameRegex = ${this.regexToString(r.name)}`):typeof r.name=="string"&&(o.push(`Name = ${this.quote(r.name)}`),r.exact&&o.push("Exact = true"));for(const{name:d,value:g}of r.attrs)o.push(`${hu(d)} = ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${hu(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!r.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!r.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!r.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!r.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!r.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(bu(l.source))}${a})`}toCallWithExact(l,a,s){return tt(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, new() { Exact = true })`:`${l}(${this.quote(a)})`}toHasText(l){return tt(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return tt(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return tt(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return vu(l,'"')}}class lv{generateLocator(l,a,s,r={}){return JSON.stringify({kind:a,body:s,options:r})}chainLocators(l){const a=l.map(s=>JSON.parse(s));for(let s=0;s<a.length-1;++s)a[s].next=a[s+1];return JSON.stringify(a[0])}}const iv={javascript:P1,python:ev,java:tv,csharp:nv,jsonl:lv};function tt(u){return u instanceof RegExp}const av=({language:u,log:l})=>{const a=me.useRef(null),[s,r]=me.useState(new Map);return me.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=a.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[a,l]),X.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),d=typeof h=="boolean"?h:o.status!=="done",g=o.params.selector?km(u,o.params.selector):null;let p=o.title,T="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",T=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",T=`.${o.title.substring(8)}()`):(g||o.params.url)&&(p=o.title+"(",T=")"),X.jsxs("div",{className:pl("call-log-call",o.status),children:[X.jsxs("div",{className:"call-log-call-header",children:[X.jsx("span",{className:pl("codicon",`codicon-chevron-${d?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const w=new Map(s);w.set(o.id,!d),r(w)}}),p,o.params.url?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,g?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,T,X.jsx("span",{className:pl("codicon",sv(o))}),typeof o.duration=="number"?X.jsxs("span",{className:"call-log-time",children:["— ",e1(o.duration)]}):void 0]}),(d?o.messages:[]).map((w,N)=>X.jsx("div",{className:"call-log-message",children:w.trim()},N)),!!o.error&&X.jsx("div",{className:"call-log-message error",hidden:!d,children:o.error})]},o.id)}),X.jsx("div",{ref:a})]})};function sv(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const wf=Symbol.for("yaml.alias"),gf=Symbol.for("yaml.document"),Gn=Symbol.for("yaml.map"),Lm=Symbol.for("yaml.pair"),Ft=Symbol.for("yaml.scalar"),bi=Symbol.for("yaml.seq"),jt=Symbol.for("yaml.node.type"),vl=u=>!!u&&typeof u=="object"&&u[jt]===wf,bl=u=>!!u&&typeof u=="object"&&u[jt]===gf,Si=u=>!!u&&typeof u=="object"&&u[jt]===Gn,Re=u=>!!u&&typeof u=="object"&&u[jt]===Lm,_e=u=>!!u&&typeof u=="object"&&u[jt]===Ft,Ti=u=>!!u&&typeof u=="object"&&u[jt]===bi;function ke(u){if(u&&typeof u=="object")switch(u[jt]){case Gn:case bi:return!0}return!1}function Le(u){if(u&&typeof u=="object")switch(u[jt]){case wf:case Gn:case Ft:case bi:return!0}return!1}const uv=u=>(_e(u)||ke(u))&&!!u.anchor,pt=Symbol("break visit"),zm=Symbol("skip children"),It=Symbol("remove node");function Kn(u,l){const a=Um(l);bl(u)?ri(null,u.contents,a,Object.freeze([u]))===It&&(u.contents=null):ri(null,u,a,Object.freeze([]))}Kn.BREAK=pt;Kn.SKIP=zm;Kn.REMOVE=It;function ri(u,l,a,s){const r=Bm(u,l,a,s);if(Le(r)||Re(r))return qm(u,s,r),ri(u,r,a,s);if(typeof r!="symbol"){if(ke(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=ri(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===pt)return pt;h===It&&(l.items.splice(o,1),o-=1)}}}else if(Re(l)){s=Object.freeze(s.concat(l));const o=ri("key",l.key,a,s);if(o===pt)return pt;o===It&&(l.key=null);const h=ri("value",l.value,a,s);if(h===pt)return pt;h===It&&(l.value=null)}}return r}async function Su(u,l){const a=Um(l);bl(u)?await fi(null,u.contents,a,Object.freeze([u]))===It&&(u.contents=null):await fi(null,u,a,Object.freeze([]))}Su.BREAK=pt;Su.SKIP=zm;Su.REMOVE=It;async function fi(u,l,a,s){const r=await Bm(u,l,a,s);if(Le(r)||Re(r))return qm(u,s,r),fi(u,r,a,s);if(typeof r!="symbol"){if(ke(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await fi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===pt)return pt;h===It&&(l.items.splice(o,1),o-=1)}}}else if(Re(l)){s=Object.freeze(s.concat(l));const o=await fi("key",l.key,a,s);if(o===pt)return pt;o===It&&(l.key=null);const h=await fi("value",l.value,a,s);if(h===pt)return pt;h===It&&(l.value=null)}}return r}function Um(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function Bm(u,l,a,s){var r,o,h,d,g;if(typeof a=="function")return a(u,l,s);if(Si(l))return(r=a.Map)==null?void 0:r.call(a,u,l,s);if(Ti(l))return(o=a.Seq)==null?void 0:o.call(a,u,l,s);if(Re(l))return(h=a.Pair)==null?void 0:h.call(a,u,l,s);if(_e(l))return(d=a.Scalar)==null?void 0:d.call(a,u,l,s);if(vl(l))return(g=a.Alias)==null?void 0:g.call(a,u,l,s)}function qm(u,l,a){const s=l[l.length-1];if(ke(s))s.items[u]=a;else if(Re(s))u==="key"?s.key=a:s.value=a;else if(bl(s))s.contents=a;else{const r=vl(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const cv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},rv=u=>u.replace(/[!,[\]{}]/g,l=>cv[l]);class ct{constructor(l,a){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ct.defaultYaml,l),this.tags=Object.assign({},ct.defaultTags,a)}clone(){const l=new ct(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ct(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ct.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ct.defaultTags);break}return l}add(l,a){this.atNextDocument&&(this.yaml={explicit:ct.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ct.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(s.length!==2&&(a(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return a(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return a(6,`Unsupported YAML version ${o}`,h),!1}}default:return a(0,`Unknown directive ${r}`,!0),!1}}tagName(l,a){if(l==="!")return"!";if(l[0]!=="!")return a(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(a(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&a("Verbatim tags must end with a >"),h)}const[,s,r]=l.match(/^(.*!)([^!]*)$/s);r||a(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(r)}catch(h){return a(String(h)),null}return s==="!"?l:(a(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[a,s]of Object.entries(this.tags))if(l.startsWith(s))return a+rv(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const a=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let r;if(l&&s.length>0&&Le(l.contents)){const o={};Kn(l.contents,(h,d)=>{Le(d)&&d.tag&&(o[d.tag]=!0)}),r=Object.keys(o)}else r=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||r.some(d=>d.startsWith(h)))&&a.push(`%TAG ${o} ${h}`);return a.join(`
|
|
52
|
+
`)}}ct.defaultYaml={explicit:!1,version:"1.2"};ct.defaultTags={"!!":"tag:yaml.org,2002:"};function jm(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const a=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(a)}return!0}function Hm(u){const l=new Set;return Kn(u,{Value(a,s){s.anchor&&l.add(s.anchor)}}),l}function $m(u,l){for(let a=1;;++a){const s=`${u}${a}`;if(!l.has(s))return s}}function fv(u,l){const a=[],s=new Map;let r=null;return{onAnchor:o=>{a.push(o),r||(r=Hm(u));const h=$m(l,r);return r.add(h),h},setAnchors:()=>{for(const o of a){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(_e(h.node)||ke(h.node)))h.node.anchor=h.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=o,d}}},sourceObjects:s}}function oi(u,l,a,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let r=0,o=s.length;r<o;++r){const h=s[r],d=oi(u,s,String(r),h);d===void 0?delete s[r]:d!==h&&(s[r]=d)}else if(s instanceof Map)for(const r of Array.from(s.keys())){const o=s.get(r),h=oi(u,s,r,o);h===void 0?s.delete(r):h!==o&&s.set(r,h)}else if(s instanceof Set)for(const r of Array.from(s)){const o=oi(u,s,r,r);o===void 0?s.delete(r):o!==r&&(s.delete(r),s.add(o))}else for(const[r,o]of Object.entries(s)){const h=oi(u,s,r,o);h===void 0?delete s[r]:h!==o&&(s[r]=h)}return u.call(l,a,s)}function qt(u,l,a){if(Array.isArray(u))return u.map((s,r)=>qt(s,String(r),a));if(u&&typeof u.toJSON=="function"){if(!a||!uv(u))return u.toJSON(l,a);const s={aliasCount:0,count:1,res:void 0};a.anchors.set(u,s),a.onCreate=o=>{s.res=o,delete a.onCreate};const r=u.toJSON(l,a);return a.onCreate&&a.onCreate(r),r}return typeof u=="bigint"&&!(a!=null&&a.keep)?Number(u):u}class Ef{constructor(l){Object.defineProperty(this,jt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:a,maxAliasCount:s,onAnchor:r,reviver:o}={}){if(!bl(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:a===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},d=qt(this,"",h);if(typeof r=="function")for(const{count:g,res:p}of h.anchors.values())r(p,g);return typeof o=="function"?oi(o,{"":d},"",d):d}}class Tu extends Ef{constructor(l){super(wf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l){let a;return Kn(l,{Node:(s,r)=>{if(r===this)return Kn.BREAK;r.anchor===this.source&&(a=r)}}),a}toJSON(l,a){if(!a)return{source:this.source};const{anchors:s,doc:r,maxAliasCount:o}=a,h=this.resolve(r);if(!h){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let d=s.get(h);if(d||(qt(h,null,a),d=s.get(h)),!d||d.res===void 0){const g="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(g)}if(o>=0&&(d.count+=1,d.aliasCount===0&&(d.aliasCount=su(r,h,s)),d.count*d.aliasCount>o)){const g="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(g)}return d.res}toString(l,a,s){const r=`*${this.source}`;if(l){if(jm(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${r} `}return r}}function su(u,l,a){if(vl(l)){const s=l.resolve(u),r=a&&s&&a.get(s);return r?r.count*r.aliasCount:0}else if(ke(l)){let s=0;for(const r of l.items){const o=su(u,r,a);o>s&&(s=o)}return s}else if(Re(l)){const s=su(u,l.key,a),r=su(u,l.value,a);return Math.max(s,r)}return 1}const Ym=u=>!u||typeof u!="function"&&typeof u!="object";class re extends Ef{constructor(l){super(Ft),this.value=l}toJSON(l,a){return a!=null&&a.keep?this.value:qt(this.value,l,a)}toString(){return String(this.value)}}re.BLOCK_FOLDED="BLOCK_FOLDED";re.BLOCK_LITERAL="BLOCK_LITERAL";re.PLAIN="PLAIN";re.QUOTE_DOUBLE="QUOTE_DOUBLE";re.QUOTE_SINGLE="QUOTE_SINGLE";const ov="tag:yaml.org,2002:";function hv(u,l,a){if(l){const s=a.filter(o=>o.tag===l),r=s.find(o=>!o.format)??s[0];if(!r)throw new Error(`Tag ${l} not found`);return r}return a.find(s=>{var r;return((r=s.identify)==null?void 0:r.call(s,u))&&!s.format})}function Ma(u,l,a){var w,N,O;if(bl(u)&&(u=u.contents),Le(u))return u;if(Re(u)){const R=(N=(w=a.schema[Gn]).createNode)==null?void 0:N.call(w,a.schema,null,a);return R.items.push(u),R}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:r,onTagObj:o,schema:h,sourceObjects:d}=a;let g;if(s&&u&&typeof u=="object"){if(g=d.get(u),g)return g.anchor||(g.anchor=r(u)),new Tu(g.anchor);g={anchor:null,node:null},d.set(u,g)}l!=null&&l.startsWith("!!")&&(l=ov+l.slice(2));let p=hv(u,l,h.tags);if(!p){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const R=new re(u);return g&&(g.node=R),R}p=u instanceof Map?h[Gn]:Symbol.iterator in Object(u)?h[bi]:h[Gn]}o&&(o(p),delete a.onTagObj);const T=p!=null&&p.createNode?p.createNode(a.schema,u,a):typeof((O=p==null?void 0:p.nodeClass)==null?void 0:O.from)=="function"?p.nodeClass.from(a.schema,u,a):new re(u);return l?T.tag=l:p.default||(T.tag=p.tag),g&&(g.node=T),T}function du(u,l,a){let s=a;for(let r=l.length-1;r>=0;--r){const o=l[r];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=s,s=h}else s=new Map([[o,s]])}return Ma(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:u,sourceObjects:new Map})}const Na=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class Gm extends Ef{constructor(l,a){super(l),Object.defineProperty(this,"schema",{value:a,configurable:!0,enumerable:!1,writable:!0})}clone(l){const a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(a.schema=l),a.items=a.items.map(s=>Le(s)||Re(s)?s.clone(l):s),this.range&&(a.range=this.range.slice()),a}addIn(l,a){if(Na(l))this.add(a);else{const[s,...r]=l,o=this.get(s,!0);if(ke(o))o.addIn(r,a);else if(o===void 0&&this.schema)this.set(s,du(this.schema,r,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}deleteIn(l){const[a,...s]=l;if(s.length===0)return this.delete(a);const r=this.get(a,!0);if(ke(r))return r.deleteIn(s);throw new Error(`Expected YAML collection at ${a}. Remaining path: ${s}`)}getIn(l,a){const[s,...r]=l,o=this.get(s,!0);return r.length===0?!a&&_e(o)?o.value:o:ke(o)?o.getIn(r,a):void 0}hasAllNullValues(l){return this.items.every(a=>{if(!Re(a))return!1;const s=a.value;return s==null||l&&_e(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(l){const[a,...s]=l;if(s.length===0)return this.has(a);const r=this.get(a,!0);return ke(r)?r.hasIn(s):!1}setIn(l,a){const[s,...r]=l;if(r.length===0)this.set(s,a);else{const o=this.get(s,!0);if(ke(o))o.setIn(r,a);else if(o===void 0&&this.schema)this.set(s,du(this.schema,r,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}}const dv=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function pn(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const hl=(u,l,a)=>u.endsWith(`
|
|
53
53
|
`)?pn(a,l):a.includes(`
|
|
54
54
|
`)?`
|
|
55
|
-
`+pn(a,l):(u.endsWith(" ")?"":" ")+a,Km="flow",mf="block",uu="quoted";function
|
|
56
|
-
`)a===mf&&(
|
|
57
|
-
`&&
|
|
58
|
-
`&&
|
|
59
|
-
${l}${u.slice(0,
|
|
60
|
-
${l}${u.slice(
|
|
61
|
-
`);s=l,r=l+1,o=u[r]}return s}const
|
|
62
|
-
`){if(o-h>s)return!0;if(h=o+1,r-h<=s)return!1}return!0}function _a(u,l){const a=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return a;const{implicitKey:s}=l,r=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(
|
|
55
|
+
`+pn(a,l):(u.endsWith(" ")?"":" ")+a,Km="flow",mf="block",uu="quoted";function wu(u,l,a="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:o=20,onFold:h,onOverflow:d}={}){if(!r||r<0)return u;r<o&&(o=0);const g=Math.max(1+o,1+r-l.length);if(u.length<=g)return u;const p=[],T={};let w=r-l.length;typeof s=="number"&&(s>r-Math.max(2,o)?p.push(0):w=r-s);let N,O,R=!1,b=-1,S=-1,C=-1;a===mf&&(b=Ig(u,b,l.length),b!==-1&&(w=b+g));for(let q;q=u[b+=1];){if(a===uu&&q==="\\"){switch(S=b,u[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}C=b}if(q===`
|
|
56
|
+
`)a===mf&&(b=Ig(u,b,l.length)),w=b+l.length+g,N=void 0;else{if(q===" "&&O&&O!==" "&&O!==`
|
|
57
|
+
`&&O!==" "){const Y=u[b+1];Y&&Y!==" "&&Y!==`
|
|
58
|
+
`&&Y!==" "&&(N=b)}if(b>=w)if(N)p.push(N),w=N+g,N=void 0;else if(a===uu){for(;O===" "||O===" ";)O=q,q=u[b+=1],R=!0;const Y=b>C+1?b-2:S-1;if(T[Y])return u;p.push(Y),T[Y]=!0,w=Y+g,N=void 0}else R=!0}O=q}if(R&&d&&d(),p.length===0)return u;h&&h();let H=u.slice(0,p[0]);for(let q=0;q<p.length;++q){const Y=p[q],K=p[q+1]||u.length;Y===0?H=`
|
|
59
|
+
${l}${u.slice(0,K)}`:(a===uu&&T[Y]&&(H+=`${u[Y]}\\`),H+=`
|
|
60
|
+
${l}${u.slice(Y+1,K)}`)}return H}function Ig(u,l,a){let s=l,r=l+1,o=u[r];for(;o===" "||o===" ";)if(l<r+a)o=u[++l];else{do o=u[++l];while(o&&o!==`
|
|
61
|
+
`);s=l,r=l+1,o=u[r]}return s}const Eu=(u,l)=>({indentAtStart:l?u.indent.length:u.indentAtStart,lineWidth:u.options.lineWidth,minContentWidth:u.options.minContentWidth}),Au=u=>/^(%|---|\.\.\.)/m.test(u);function gv(u,l,a){if(!l||l<0)return!1;const s=l-a,r=u.length;if(r<=s)return!1;for(let o=0,h=0;o<r;++o)if(u[o]===`
|
|
62
|
+
`){if(o-h>s)return!0;if(h=o+1,r-h<=s)return!1}return!0}function _a(u,l){const a=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return a;const{implicitKey:s}=l,r=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(Au(u)?" ":"");let h="",d=0;for(let g=0,p=a[g];p;p=a[++g])if(p===" "&&a[g+1]==="\\"&&a[g+2]==="n"&&(h+=a.slice(d,g)+"\\ ",g+=1,d=g,p="\\"),p==="\\")switch(a[g+1]){case"u":{h+=a.slice(d,g);const T=a.substr(g+2,4);switch(T){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:T.substr(0,2)==="00"?h+="\\x"+T.substr(2):h+=a.substr(g,6)}g+=5,d=g+1}break;case"n":if(s||a[g+2]==='"'||a.length<r)g+=1;else{for(h+=a.slice(d,g)+`
|
|
63
63
|
|
|
64
|
-
`;a[
|
|
65
|
-
`,
|
|
66
|
-
`)||/[ \t]\n|\n[ \t]/.test(u))return _a(u,l);const a=l.indent||(
|
|
67
|
-
${a}`)+"'";return l.implicitKey?s:
|
|
64
|
+
`;a[g+2]==="\\"&&a[g+3]==="n"&&a[g+4]!=='"';)h+=`
|
|
65
|
+
`,g+=2;h+=o,a[g+2]===" "&&(h+="\\"),g+=1,d=g+1}break;default:g+=1}return h=d?h+a.slice(d):a,s?h:wu(h,o,uu,Eu(l,!1))}function pf(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
|
|
66
|
+
`)||/[ \t]\n|\n[ \t]/.test(u))return _a(u,l);const a=l.indent||(Au(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
67
|
+
${a}`)+"'";return l.implicitKey?s:wu(s,a,Km,Eu(l,!1))}function hi(u,l){const{singleQuote:a}=l.options;let s;if(a===!1)s=_a;else{const r=u.includes('"'),o=u.includes("'");r&&!o?s=pf:o&&!r?s=_a:s=a?pf:_a}return s(u,l)}let yf;try{yf=new RegExp(`(^|(?<!
|
|
68
68
|
))
|
|
69
69
|
+(?!
|
|
70
|
-
|$)`,"g")}catch{yf=/\n+(?!\n|$)/g}function cu({comment:u,type:l,value:a},s,r,o){const{blockQuote:h,commentString:d,lineWidth:
|
|
70
|
+
|$)`,"g")}catch{yf=/\n+(?!\n|$)/g}function cu({comment:u,type:l,value:a},s,r,o){const{blockQuote:h,commentString:d,lineWidth:g}=s.options;if(!h||/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return hi(a,s);const p=s.indent||(s.forceBlockIndent||Au(a)?" ":""),T=h==="literal"?!0:h==="folded"||l===re.BLOCK_FOLDED?!1:l===re.BLOCK_LITERAL?!0:!gv(a,g,p.length);if(!a)return T?`|
|
|
71
71
|
`:`>
|
|
72
|
-
`;let
|
|
73
|
-
`&&
|
|
74
|
-
`);
|
|
75
|
-
`&&(
|
|
76
|
-
`)
|
|
77
|
-
${p}${
|
|
78
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const
|
|
79
|
-
${p}${
|
|
80
|
-
`)||
|
|
81
|
-
`)?hi(o,l):cu(u,l,a,s);if(!d&&!
|
|
82
|
-
`))return cu(u,l,a,s);if(
|
|
83
|
-
${
|
|
84
|
-
${l.indent}${d}`:d}function vv({key:u,value:l},a,s,r){const{allNullValues:o,doc:h,indent:d,indentStep:
|
|
85
|
-
${d}:`):(
|
|
86
|
-
`:"",
|
|
87
|
-
${pn(P,a.indent)}`}
|
|
88
|
-
`&&(
|
|
72
|
+
`;let w,N;for(N=a.length;N>0;--N){const Q=a[N-1];if(Q!==`
|
|
73
|
+
`&&Q!==" "&&Q!==" ")break}let O=a.substring(N);const R=O.indexOf(`
|
|
74
|
+
`);R===-1?w="-":a===O||R!==O.length-1?(w="+",o&&o()):w="",O&&(a=a.slice(0,-O.length),O[O.length-1]===`
|
|
75
|
+
`&&(O=O.slice(0,-1)),O=O.replace(yf,`$&${p}`));let b=!1,S,C=-1;for(S=0;S<a.length;++S){const Q=a[S];if(Q===" ")b=!0;else if(Q===`
|
|
76
|
+
`)C=S;else break}let H=a.substring(0,C<S?C+1:S);H&&(a=a.substring(H.length),H=H.replace(/\n+/g,`$&${p}`));let Y=(T?"|":">")+(b?p?"2":"1":"")+w;if(u&&(Y+=" "+d(u.replace(/ ?[\r\n]+/g," ")),r&&r()),T)return a=a.replace(/\n+/g,`$&${p}`),`${Y}
|
|
77
|
+
${p}${H}${a}${O}`;a=a.replace(/\n+/g,`
|
|
78
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const K=wu(`${H}${a}${O}`,p,mf,Eu(s,!0));return`${Y}
|
|
79
|
+
${p}${K}`}function mv(u,l,a,s){const{type:r,value:o}=u,{actualString:h,implicitKey:d,indent:g,indentStep:p,inFlow:T}=l;if(d&&o.includes(`
|
|
80
|
+
`)||T&&/[[\]{},]/.test(o))return hi(o,l);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return d||T||!o.includes(`
|
|
81
|
+
`)?hi(o,l):cu(u,l,a,s);if(!d&&!T&&r!==re.PLAIN&&o.includes(`
|
|
82
|
+
`))return cu(u,l,a,s);if(Au(o)){if(g==="")return l.forceBlockIndent=!0,cu(u,l,a,s);if(d&&g===p)return hi(o,l)}const w=o.replace(/\n+/g,`$&
|
|
83
|
+
${g}`);if(h){const N=b=>{var S;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((S=b.test)==null?void 0:S.test(w))},{compat:O,tags:R}=l.doc.schema;if(R.some(N)||O!=null&&O.some(N))return hi(o,l)}return d?w:wu(w,g,Km,Eu(l,!1))}function Ca(u,l,a,s){const{implicitKey:r,inFlow:o}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:d}=u;d!==re.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(d=re.QUOTE_DOUBLE);const g=T=>{switch(T){case re.BLOCK_FOLDED:case re.BLOCK_LITERAL:return r||o?hi(h.value,l):cu(h,l,a,s);case re.QUOTE_DOUBLE:return _a(h.value,l);case re.QUOTE_SINGLE:return pf(h.value,l);case re.PLAIN:return mv(h,l,a,s);default:return null}};let p=g(d);if(p===null){const{defaultKeyType:T,defaultStringType:w}=l.options,N=r&&T||w;if(p=g(N),p===null)throw new Error(`Unsupported default string type ${N}`)}return p}function Vm(u,l){const a=Object.assign({blockQuote:!0,commentString:dv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},u.schema.toStringOptions,l);let s;switch(a.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:u,flowCollectionPadding:a.flowCollectionPadding?" ":"",indent:"",indentStep:typeof a.indent=="number"?" ".repeat(a.indent):" ",inFlow:s,options:a}}function pv(u,l){var r;if(l.tag){const o=u.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let a,s;if(_e(l)){s=l.value;let o=u.filter(h=>{var d;return(d=h.identify)==null?void 0:d.call(h,s)});if(o.length>1){const h=o.filter(d=>d.test);h.length>0&&(o=h)}a=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else s=l,a=u.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!a){const o=((r=s==null?void 0:s.constructor)==null?void 0:r.name)??typeof s;throw new Error(`Tag not resolved for ${o} value`)}return a}function yv(u,l,{anchors:a,doc:s}){if(!s.directives)return"";const r=[],o=(_e(u)||ke(u))&&u.anchor;o&&jm(o)&&(a.add(o),r.push(`&${o}`));const h=u.tag?u.tag:l.default?null:l.tag;return h&&r.push(s.directives.tagString(h)),r.join(" ")}function mi(u,l,a,s){var g;if(Re(u))return u.toString(l,a,s);if(vl(u)){if(l.doc.directives)return u.toString(l);if((g=l.resolvedAliases)!=null&&g.has(u))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(u):l.resolvedAliases=new Set([u]),u=u.resolve(l.doc)}let r;const o=Le(u)?u:l.doc.createNode(u,{onTagObj:p=>r=p});r||(r=pv(l.doc.schema.tags,o));const h=yv(o,r,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const d=typeof r.stringify=="function"?r.stringify(o,l,a,s):_e(o)?Ca(o,l,a,s):o.toString(l,a,s);return h?_e(o)||d[0]==="{"||d[0]==="["?`${h} ${d}`:`${h}
|
|
84
|
+
${l.indent}${d}`:d}function vv({key:u,value:l},a,s,r){const{allNullValues:o,doc:h,indent:d,indentStep:g,options:{commentString:p,indentSeq:T,simpleKeys:w}}=a;let N=Le(u)&&u.comment||null;if(w){if(N)throw new Error("With simple keys, key nodes cannot have comments");if(ke(u)||!Le(u)&&typeof u=="object"){const P="With simple keys, collection cannot be used as a key value";throw new Error(P)}}let O=!w&&(!u||N&&l==null&&!a.inFlow||ke(u)||(_e(u)?u.type===re.BLOCK_FOLDED||u.type===re.BLOCK_LITERAL:typeof u=="object"));a=Object.assign({},a,{allNullValues:!1,implicitKey:!O&&(w||!o),indent:d+g});let R=!1,b=!1,S=mi(u,a,()=>R=!0,()=>b=!0);if(!O&&!a.inFlow&&S.length>1024){if(w)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(a.inFlow){if(o||l==null)return R&&s&&s(),S===""?"?":O?`? ${S}`:S}else if(o&&!w||l==null&&O)return S=`? ${S}`,N&&!R?S+=hl(S,a.indent,p(N)):b&&r&&r(),S;R&&(N=null),O?(N&&(S+=hl(S,a.indent,p(N))),S=`? ${S}
|
|
85
|
+
${d}:`):(S=`${S}:`,N&&(S+=hl(S,a.indent,p(N))));let C,H,q;Le(l)?(C=!!l.spaceBefore,H=l.commentBefore,q=l.comment):(C=!1,H=null,q=null,l&&typeof l=="object"&&(l=h.createNode(l))),a.implicitKey=!1,!O&&!N&&_e(l)&&(a.indentAtStart=S.length+1),b=!1,!T&&g.length>=2&&!a.inFlow&&!O&&Ti(l)&&!l.flow&&!l.tag&&!l.anchor&&(a.indent=a.indent.substring(2));let Y=!1;const K=mi(l,a,()=>Y=!0,()=>b=!0);let Q=" ";if(N||C||H){if(Q=C?`
|
|
86
|
+
`:"",H){const P=p(H);Q+=`
|
|
87
|
+
${pn(P,a.indent)}`}K===""&&!a.inFlow?Q===`
|
|
88
|
+
`&&(Q=`
|
|
89
89
|
|
|
90
|
-
`):
|
|
91
|
-
${a.indent}`}else if(!
|
|
92
|
-
`),
|
|
93
|
-
${a.indent}`)}}else(
|
|
94
|
-
`)&&(
|
|
95
|
-
${
|
|
96
|
-
`}}return u?(
|
|
97
|
-
`+pn(p(u),
|
|
98
|
-
`))&&(p=!0),
|
|
99
|
-
${o}${r}${
|
|
100
|
-
`;return`${
|
|
101
|
-
${r}${
|
|
102
|
-
`:" ")}return
|
|
90
|
+
`):Q+=`
|
|
91
|
+
${a.indent}`}else if(!O&&ke(l)){const P=K[0],V=K.indexOf(`
|
|
92
|
+
`),x=V!==-1,se=a.inFlow??l.flow??l.items.length===0;if(x||!se){let ce=!1;if(x&&(P==="&"||P==="!")){let B=K.indexOf(" ");P==="&"&&B!==-1&&B<V&&K[B+1]==="!"&&(B=K.indexOf(" ",B+1)),(B===-1||V<B)&&(ce=!0)}ce||(Q=`
|
|
93
|
+
${a.indent}`)}}else(K===""||K[0]===`
|
|
94
|
+
`)&&(Q="");return S+=Q+K,a.inFlow?Y&&s&&s():q&&!Y?S+=hl(S,a.indent,p(q)):b&&r&&r(),S}function Qm(u,l){(u==="debug"||u==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(l):console.warn(l))}const Ws="<<",yn={identify:u=>u===Ws||typeof u=="symbol"&&u.description===Ws,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new re(Symbol(Ws)),{addToJSMap:Xm}),stringify:()=>Ws},bv=(u,l)=>(yn.identify(l)||_e(l)&&(!l.type||l.type===re.PLAIN)&&yn.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(a=>a.tag===yn.tag&&a.default));function Xm(u,l,a){if(a=u&&vl(a)?a.resolve(u.doc):a,Ti(a))for(const s of a.items)lf(u,l,s);else if(Array.isArray(a))for(const s of a)lf(u,l,s);else lf(u,l,a)}function lf(u,l,a){const s=u&&vl(a)?a.resolve(u.doc):a;if(!Si(s))throw new Error("Merge sources must be maps or map aliases");const r=s.toJSON(null,u,Map);for(const[o,h]of r)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function Zm(u,l,{key:a,value:s}){if(Le(a)&&a.addToJSMap)a.addToJSMap(u,l,s);else if(bv(u,a))Xm(u,l,s);else{const r=qt(a,"",u);if(l instanceof Map)l.set(r,qt(s,r,u));else if(l instanceof Set)l.add(r);else{const o=Sv(a,r,u),h=qt(s,o,u);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function Sv(u,l,a){if(l===null)return"";if(typeof l!="object")return String(l);if(Le(u)&&(a!=null&&a.doc)){const s=Vm(a.doc,{});s.anchors=new Set;for(const o of a.anchors.keys())s.anchors.add(o.anchor);s.inFlow=!0,s.inStringifyKey=!0;const r=u.toString(s);if(!a.mapKeyWarned){let o=JSON.stringify(r);o.length>40&&(o=o.substring(0,36)+'..."'),Qm(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return r}return JSON.stringify(l)}function Af(u,l,a){const s=Ma(u,void 0,a),r=Ma(l,void 0,a);return new st(s,r)}class st{constructor(l,a=null){Object.defineProperty(this,jt,{value:Lm}),this.key=l,this.value=a}clone(l){let{key:a,value:s}=this;return Le(a)&&(a=a.clone(l)),Le(s)&&(s=s.clone(l)),new st(a,s)}toJSON(l,a){const s=a!=null&&a.mapAsMap?new Map:{};return Zm(a,s,this)}toString(l,a,s){return l!=null&&l.doc?vv(this,l,a,s):JSON.stringify(this)}}function Jm(u,l,a){return(l.inFlow??u.flow?wv:Tv)(u,l,a)}function Tv({comment:u,items:l},a,{blockItemPrefix:s,flowChars:r,itemIndent:o,onChompKeep:h,onComment:d}){const{indent:g,options:{commentString:p}}=a,T=Object.assign({},a,{indent:o,type:null});let w=!1;const N=[];for(let R=0;R<l.length;++R){const b=l[R];let S=null;if(Le(b))!w&&b.spaceBefore&&N.push(""),gu(a,N,b.commentBefore,w),b.comment&&(S=b.comment);else if(Re(b)){const H=Le(b.key)?b.key:null;H&&(!w&&H.spaceBefore&&N.push(""),gu(a,N,H.commentBefore,w))}w=!1;let C=mi(b,T,()=>S=null,()=>w=!0);S&&(C+=hl(C,o,p(S))),w&&S&&(w=!1),N.push(s+C)}let O;if(N.length===0)O=r.start+r.end;else{O=N[0];for(let R=1;R<N.length;++R){const b=N[R];O+=b?`
|
|
95
|
+
${g}${b}`:`
|
|
96
|
+
`}}return u?(O+=`
|
|
97
|
+
`+pn(p(u),g),d&&d()):w&&h&&h(),O}function wv({items:u},l,{flowChars:a,itemIndent:s}){const{indent:r,indentStep:o,flowCollectionPadding:h,options:{commentString:d}}=l;s+=o;const g=Object.assign({},l,{indent:s,inFlow:!0,type:null});let p=!1,T=0;const w=[];for(let R=0;R<u.length;++R){const b=u[R];let S=null;if(Le(b))b.spaceBefore&&w.push(""),gu(l,w,b.commentBefore,!1),b.comment&&(S=b.comment);else if(Re(b)){const H=Le(b.key)?b.key:null;H&&(H.spaceBefore&&w.push(""),gu(l,w,H.commentBefore,!1),H.comment&&(p=!0));const q=Le(b.value)?b.value:null;q?(q.comment&&(S=q.comment),q.commentBefore&&(p=!0)):b.value==null&&(H!=null&&H.comment)&&(S=H.comment)}S&&(p=!0);let C=mi(b,g,()=>S=null);R<u.length-1&&(C+=","),S&&(C+=hl(C,s,d(S))),!p&&(w.length>T||C.includes(`
|
|
98
|
+
`))&&(p=!0),w.push(C),T=w.length}const{start:N,end:O}=a;if(w.length===0)return N+O;if(!p){const R=w.reduce((b,S)=>b+S.length+2,2);p=l.options.lineWidth>0&&R>l.options.lineWidth}if(p){let R=N;for(const b of w)R+=b?`
|
|
99
|
+
${o}${r}${b}`:`
|
|
100
|
+
`;return`${R}
|
|
101
|
+
${r}${O}`}else return`${N}${h}${w.join(" ")}${h}${O}`}function gu({indent:u,options:{commentString:l}},a,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){const o=pn(l(s),u);a.push(o.trimStart())}}function dl(u,l){const a=_e(l)?l.value:l;for(const s of u)if(Re(s)&&(s.key===l||s.key===a||_e(s.key)&&s.key.value===a))return s}class Mt extends Gm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(Gn,l),this.items=[]}static from(l,a,s){const{keepUndefined:r,replacer:o}=s,h=new this(l),d=(g,p)=>{if(typeof o=="function")p=o.call(a,g,p);else if(Array.isArray(o)&&!o.includes(g))return;(p!==void 0||r)&&h.items.push(Af(g,p,s))};if(a instanceof Map)for(const[g,p]of a)d(g,p);else if(a&&typeof a=="object")for(const g of Object.keys(a))d(g,a[g]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,a){var h;let s;Re(l)?s=l:!l||typeof l!="object"||!("key"in l)?s=new st(l,l==null?void 0:l.value):s=new st(l.key,l.value);const r=dl(this.items,s.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(r){if(!a)throw new Error(`Key ${s.key} already set`);_e(r.value)&&Ym(s.value)?r.value.value=s.value:r.value=s.value}else if(o){const d=this.items.findIndex(g=>o(s,g)<0);d===-1?this.items.push(s):this.items.splice(d,0,s)}else this.items.push(s)}delete(l){const a=dl(this.items,l);return a?this.items.splice(this.items.indexOf(a),1).length>0:!1}get(l,a){const s=dl(this.items,l),r=s==null?void 0:s.value;return(!a&&_e(r)?r.value:r)??void 0}has(l){return!!dl(this.items,l)}set(l,a){this.add(new st(l,a),!0)}toJSON(l,a,s){const r=s?new s:a!=null&&a.mapAsMap?new Map:{};a!=null&&a.onCreate&&a.onCreate(r);for(const o of this.items)Zm(a,r,o);return r}toString(l,a,s){if(!l)return JSON.stringify(this);for(const r of this.items)if(!Re(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),Jm(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:s,onComment:a})}}const wi={collection:"map",default:!0,nodeClass:Mt,tag:"tag:yaml.org,2002:map",resolve(u,l){return Si(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,a)=>Mt.from(u,l,a)};class Vn extends Gm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(bi,l),this.items=[]}add(l){this.items.push(l)}delete(l){const a=Is(l);return typeof a!="number"?!1:this.items.splice(a,1).length>0}get(l,a){const s=Is(l);if(typeof s!="number")return;const r=this.items[s];return!a&&_e(r)?r.value:r}has(l){const a=Is(l);return typeof a=="number"&&a<this.items.length}set(l,a){const s=Is(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const r=this.items[s];_e(r)&&Ym(a)?r.value=a:this.items[s]=a}toJSON(l,a){const s=[];a!=null&&a.onCreate&&a.onCreate(s);let r=0;for(const o of this.items)s.push(qt(o,String(r++),a));return s}toString(l,a,s){return l?Jm(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:s,onComment:a}):JSON.stringify(this)}static from(l,a,s){const{replacer:r}=s,o=new this(l);if(a&&Symbol.iterator in Object(a)){let h=0;for(let d of a){if(typeof r=="function"){const g=a instanceof Set?d:String(h++);d=r.call(a,g,d)}o.items.push(Ma(d,void 0,s))}}return o}}function Is(u){let l=_e(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const Ei={collection:"seq",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:seq",resolve(u,l){return Ti(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,a)=>Vn.from(u,l,a)},Ou={identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify(u,l,a,s){return l=Object.assign({actualString:!0},l),Ca(u,l,a,s)}},Nu={identify:u=>u==null,createNode:()=>new re(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new re(null),stringify:({source:u},l)=>typeof u=="string"&&Nu.test.test(u)?u:l.options.nullStr},Of={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new re(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},a){if(u&&Of.test.test(u)){const s=u[0]==="t"||u[0]==="T";if(l===s)return u}return l?a.options.trueStr:a.options.falseStr}};function Kt({format:u,minFractionDigits:l,tag:a,value:s}){if(typeof s=="bigint")return String(s);const r=typeof s=="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(s);if(!u&&l&&(!a||a==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let d=l-(o.length-h-1);for(;d-- >0;)o+="0"}return o}const Wm={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Kt},Im={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Kt(u)}},Fm={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(u){const l=new re(parseFloat(u)),a=u.indexOf(".");return a!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-a-1),l},stringify:Kt},_u=u=>typeof u=="bigint"||Number.isInteger(u),Nf=(u,l,a,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),a);function Pm(u,l,a){const{value:s}=u;return _u(s)&&s>=0?a+s.toString(l):Kt(u)}const ep={identify:u=>_u(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,a)=>Nf(u,2,8,a),stringify:u=>Pm(u,8,"0o")},tp={identify:_u,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,a)=>Nf(u,0,10,a),stringify:Kt},np={identify:u=>_u(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,a)=>Nf(u,2,16,a),stringify:u=>Pm(u,16,"0x")},Ev=[wi,Ei,Ou,Nu,Of,ep,tp,np,Wm,Im,Fm];function Fg(u){return typeof u=="bigint"||Number.isInteger(u)}const Fs=({value:u})=>JSON.stringify(u),Av=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:Fs},{identify:u=>u==null,createNode:()=>new re(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fs},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:u=>u==="true",stringify:Fs},{identify:Fg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(u,l,{intAsBigInt:a})=>a?BigInt(u):parseInt(u,10),stringify:({value:u})=>Fg(u)?u.toString():JSON.stringify(u)},{identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:u=>parseFloat(u),stringify:Fs}],Ov={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},Nv=[wi,Ei].concat(Av,Ov),_f={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,l){if(typeof Buffer=="function")return Buffer.from(u,"base64");if(typeof atob=="function"){const a=atob(u.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length);for(let r=0;r<a.length;++r)s[r]=a.charCodeAt(r);return s}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:l,value:a},s,r,o){const h=a;let d;if(typeof Buffer=="function")d=h instanceof Buffer?h.toString("base64"):Buffer.from(h.buffer).toString("base64");else if(typeof btoa=="function"){let g="";for(let p=0;p<h.length;++p)g+=String.fromCharCode(h[p]);d=btoa(g)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l||(l=re.BLOCK_LITERAL),l!==re.QUOTE_DOUBLE){const g=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(d.length/g),T=new Array(p);for(let w=0,N=0;w<p;++w,N+=g)T[w]=d.substr(N,g);d=T.join(l===re.BLOCK_LITERAL?`
|
|
102
|
+
`:" ")}return Ca({comment:u,type:l,value:d},s,r,o)}};function lp(u,l){if(Ti(u))for(let a=0;a<u.items.length;++a){let s=u.items[a];if(!Re(s)){if(Si(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const r=s.items[0]||new st(new re(null));if(s.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${s.commentBefore}
|
|
103
103
|
${r.key.commentBefore}`:s.commentBefore),s.comment){const o=r.value??r.key;o.comment=o.comment?`${s.comment}
|
|
104
|
-
${o.comment}`:s.comment}s=r}u.items[a]=
|
|
104
|
+
${o.comment}`:s.comment}s=r}u.items[a]=Re(s)?s:new st(s)}}else l("Expected a sequence for this tag");return u}function ip(u,l,a){const{replacer:s}=a,r=new Vn(u);r.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(o++),h));let d,g;if(Array.isArray(h))if(h.length===2)d=h[0],g=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const p=Object.keys(h);if(p.length===1)d=p[0],g=h[d];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else d=h;r.items.push(Af(d,g,a))}return r}const Mf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:lp,createNode:ip};class di extends Vn{constructor(){super(),this.add=Mt.prototype.add.bind(this),this.delete=Mt.prototype.delete.bind(this),this.get=Mt.prototype.get.bind(this),this.has=Mt.prototype.has.bind(this),this.set=Mt.prototype.set.bind(this),this.tag=di.tag}toJSON(l,a){if(!a)return super.toJSON(l);const s=new Map;a!=null&&a.onCreate&&a.onCreate(s);for(const r of this.items){let o,h;if(Re(r)?(o=qt(r.key,"",a),h=qt(r.value,o,a)):o=qt(r,"",a),s.has(o))throw new Error("Ordered maps must not include duplicate keys");s.set(o,h)}return s}static from(l,a,s){const r=ip(l,a,s),o=new this;return o.items=r.items,o}}di.tag="tag:yaml.org,2002:omap";const xf={collection:"seq",identify:u=>u instanceof Map,nodeClass:di,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const a=lp(u,l),s=[];for(const{key:r}of a.items)_e(r)&&(s.includes(r.value)?l(`Ordered maps must not include duplicate keys: ${r.value}`):s.push(r.value));return Object.assign(new di,a)},createNode:(u,l,a)=>di.from(u,l,a)};function ap({value:u,source:l},a){return l&&(u?sp:up).test.test(l)?l:u?a.options.trueStr:a.options.falseStr}const sp={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new re(!0),stringify:ap},up={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new re(!1),stringify:ap},_v={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Kt},Mv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u.replace(/_/g,"")),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Kt(u)}},xv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(u){const l=new re(parseFloat(u.replace(/_/g,""))),a=u.indexOf(".");if(a!==-1){const s=u.substring(a+1).replace(/_/g,"");s[s.length-1]==="0"&&(l.minFractionDigits=s.length)}return l},stringify:Kt},ka=u=>typeof u=="bigint"||Number.isInteger(u);function Mu(u,l,a,{intAsBigInt:s}){const r=u[0];if((r==="-"||r==="+")&&(l+=1),u=u.substring(l).replace(/_/g,""),s){switch(a){case 2:u=`0b${u}`;break;case 8:u=`0o${u}`;break;case 16:u=`0x${u}`;break}const h=BigInt(u);return r==="-"?BigInt(-1)*h:h}const o=parseInt(u,a);return r==="-"?-1*o:o}function Df(u,l,a){const{value:s}=u;if(ka(s)){const r=s.toString(l);return s<0?"-"+a+r.substr(1):a+r}return Kt(u)}const Dv={identify:ka,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,a)=>Mu(u,2,2,a),stringify:u=>Df(u,2,"0b")},Rv={identify:ka,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,a)=>Mu(u,1,8,a),stringify:u=>Df(u,8,"0")},Cv={identify:ka,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,a)=>Mu(u,0,10,a),stringify:Kt},kv={identify:ka,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,a)=>Mu(u,2,16,a),stringify:u=>Df(u,16,"0x")};class gi extends Mt{constructor(l){super(l),this.tag=gi.tag}add(l){let a;Re(l)?a=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?a=new st(l.key,null):a=new st(l,null),dl(this.items,a.key)||this.items.push(a)}get(l,a){const s=dl(this.items,l);return!a&&Re(s)?_e(s.key)?s.key.value:s.key:s}set(l,a){if(typeof a!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof a}`);const s=dl(this.items,l);s&&!a?this.items.splice(this.items.indexOf(s),1):!s&&a&&this.items.push(new st(l))}toJSON(l,a){return super.toJSON(l,a,Set)}toString(l,a,s){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),a,s);throw new Error("Set items must all have null values")}static from(l,a,s){const{replacer:r}=s,o=new this(l);if(a&&Symbol.iterator in Object(a))for(let h of a)typeof r=="function"&&(h=r.call(a,h,h)),o.items.push(Af(h,null,s));return o}}gi.tag="tag:yaml.org,2002:set";const Rf={collection:"map",identify:u=>u instanceof Set,nodeClass:gi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,a)=>gi.from(u,l,a),resolve(u,l){if(Si(u)){if(u.hasAllNullValues(!0))return Object.assign(new gi,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Cf(u,l){const a=u[0],s=a==="-"||a==="+"?u.substring(1):u,r=h=>l?BigInt(h):Number(h),o=s.replace(/_/g,"").split(":").reduce((h,d)=>h*r(60)+r(d),r(0));return a==="-"?r(-1)*o:o}function cp(u){let{value:l}=u,a=h=>h;if(typeof l=="bigint")a=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Kt(u);let s="";l<0&&(s="-",l*=a(-1));const r=a(60),o=[l%r];return l<60?o.unshift(0):(l=(l-o[0])/r,o.unshift(l%r),l>=60&&(l=(l-o[0])/r,o.unshift(l))),s+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const rp={identify:u=>typeof u=="bigint"||Number.isInteger(u),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(u,l,{intAsBigInt:a})=>Cf(u,a),stringify:cp},fp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:u=>Cf(u,!1),stringify:cp},xu={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(u){const l=u.match(xu.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,a,s,r,o,h,d]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(a,s-1,r,o||0,h||0,d||0,g);const T=l[8];if(T&&T!=="Z"){let w=Cf(T,!1);Math.abs(w)<30&&(w*=60),p-=6e4*w}return new Date(p)},stringify:({value:u})=>u.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Pg=[wi,Ei,Ou,Nu,sp,up,Dv,Rv,Cv,kv,_v,Mv,xv,_f,yn,xf,Mf,Rf,rp,fp,xu],em=new Map([["core",Ev],["failsafe",[wi,Ei,Ou]],["json",Nv],["yaml11",Pg],["yaml-1.1",Pg]]),tm={binary:_f,bool:Of,float:Fm,floatExp:Im,floatNaN:Wm,floatTime:fp,int:tp,intHex:np,intOct:ep,intTime:rp,map:wi,merge:yn,null:Nu,omap:xf,pairs:Mf,seq:Ei,set:Rf,timestamp:xu},Lv={"tag:yaml.org,2002:binary":_f,"tag:yaml.org,2002:merge":yn,"tag:yaml.org,2002:omap":xf,"tag:yaml.org,2002:pairs":Mf,"tag:yaml.org,2002:set":Rf,"tag:yaml.org,2002:timestamp":xu};function af(u,l,a){const s=em.get(l);if(s&&!u)return a&&!s.includes(yn)?s.concat(yn):s.slice();let r=s;if(!r)if(Array.isArray(u))r=[];else{const o=Array.from(em.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(u))for(const o of u)r=r.concat(o);else typeof u=="function"&&(r=u(r.slice()));return a&&(r=r.concat(yn)),r.reduce((o,h)=>{const d=typeof h=="string"?tm[h]:h;if(!d){const g=JSON.stringify(h),p=Object.keys(tm).map(T=>JSON.stringify(T)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return o.includes(d)||o.push(d),o},[])}const zv=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class Du{constructor({compat:l,customTags:a,merge:s,resolveKnownTags:r,schema:o,sortMapEntries:h,toStringDefaults:d}){this.compat=Array.isArray(l)?af(l,"compat"):l?af(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=r?Lv:{},this.tags=af(a,this.name,s),this.toStringOptions=d??null,Object.defineProperty(this,Gn,{value:wi}),Object.defineProperty(this,Ft,{value:Ou}),Object.defineProperty(this,bi,{value:Ei}),this.sortMapEntries=typeof h=="function"?h:h===!0?zv:null}clone(){const l=Object.create(Du.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function Uv(u,l){var g;const a=[];let s=l.directives===!0;if(l.directives!==!1&&u.directives){const p=u.directives.toString(u);p?(a.push(p),s=!0):u.directives.docStart&&(s=!0)}s&&a.push("---");const r=Vm(u,l),{commentString:o}=r.options;if(u.commentBefore){a.length!==1&&a.unshift("");const p=o(u.commentBefore);a.unshift(pn(p,""))}let h=!1,d=null;if(u.contents){if(Le(u.contents)){if(u.contents.spaceBefore&&s&&a.push(""),u.contents.commentBefore){const w=o(u.contents.commentBefore);a.push(pn(w,""))}r.forceBlockIndent=!!u.comment,d=u.contents.comment}const p=d?void 0:()=>h=!0;let T=mi(u.contents,r,()=>d=null,p);d&&(T+=hl(T,"",o(d))),(T[0]==="|"||T[0]===">")&&a[a.length-1]==="---"?a[a.length-1]=`--- ${T}`:a.push(T)}else a.push(mi(u.contents,r));if((g=u.directives)!=null&&g.docEnd)if(u.comment){const p=o(u.comment);p.includes(`
|
|
105
105
|
`)?(a.push("..."),a.push(pn(p,""))):a.push(`... ${p}`)}else a.push("...");else{let p=u.comment;p&&h&&(p=p.replace(/^\n+/,"")),p&&((!h||d)&&a[a.length-1]!==""&&a.push(""),a.push(pn(o(p),"")))}return a.join(`
|
|
106
106
|
`)+`
|
|
107
|
-
`}class Ai{constructor(l,a,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,jt,{value:gf});let r=null;typeof a=="function"||Array.isArray(a)?r=a:s===void 0&&a&&(s=a,a=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ct({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,r,s)}clone(){const l=Object.create(Ai.prototype,{[jt]:{value:gf}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=Le(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){ai(this.contents)&&this.contents.add(l)}addIn(l,a){ai(this.contents)&&this.contents.addIn(l,a)}createAlias(l,a){if(!l.anchor){const s=Hm(this);l.anchor=!a||s.has(a)?$m(a||"a",s):a}return new
|
|
108
|
-
`),h=d+h}if(/[^ ]/.test(h)){let d=1;const
|
|
107
|
+
`}class Ai{constructor(l,a,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,jt,{value:gf});let r=null;typeof a=="function"||Array.isArray(a)?r=a:s===void 0&&a&&(s=a,a=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ct({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,r,s)}clone(){const l=Object.create(Ai.prototype,{[jt]:{value:gf}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=Le(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){ai(this.contents)&&this.contents.add(l)}addIn(l,a){ai(this.contents)&&this.contents.addIn(l,a)}createAlias(l,a){if(!l.anchor){const s=Hm(this);l.anchor=!a||s.has(a)?$m(a||"a",s):a}return new Tu(l.anchor)}createNode(l,a,s){let r;if(typeof a=="function")l=a.call({"":l},"",l),r=a;else if(Array.isArray(a)){const S=H=>typeof H=="number"||H instanceof String||H instanceof Number,C=a.filter(S).map(String);C.length>0&&(a=a.concat(C)),r=a}else s===void 0&&a&&(s=a,a=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:d,keepUndefined:g,onTagObj:p,tag:T}=s??{},{onAnchor:w,setAnchors:N,sourceObjects:O}=fv(this,h||"a"),R={aliasDuplicateObjects:o??!0,keepUndefined:g??!1,onAnchor:w,onTagObj:p,replacer:r,schema:this.schema,sourceObjects:O},b=Ma(l,T,R);return d&&ke(b)&&(b.flow=!0),N(),b}createPair(l,a,s={}){const r=this.createNode(l,null,s),o=this.createNode(a,null,s);return new st(r,o)}delete(l){return ai(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Na(l)?this.contents==null?!1:(this.contents=null,!0):ai(this.contents)?this.contents.deleteIn(l):!1}get(l,a){return ke(this.contents)?this.contents.get(l,a):void 0}getIn(l,a){return Na(l)?!a&&_e(this.contents)?this.contents.value:this.contents:ke(this.contents)?this.contents.getIn(l,a):void 0}has(l){return ke(this.contents)?this.contents.has(l):!1}hasIn(l){return Na(l)?this.contents!==void 0:ke(this.contents)?this.contents.hasIn(l):!1}set(l,a){this.contents==null?this.contents=du(this.schema,[l],a):ai(this.contents)&&this.contents.set(l,a)}setIn(l,a){Na(l)?this.contents=a:this.contents==null?this.contents=du(this.schema,Array.from(l),a):ai(this.contents)&&this.contents.setIn(l,a)}setSchema(l,a={}){typeof l=="number"&&(l=String(l));let s;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ct({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ct({version:l}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const r=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(a.schema instanceof Object)this.schema=a.schema;else if(s)this.schema=new Du(Object.assign(s,a));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:a,mapAsMap:s,maxAliasCount:r,onAnchor:o,reviver:h}={}){const d={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},g=qt(this.contents,a??"",d);if(typeof o=="function")for(const{count:p,res:T}of d.anchors.values())o(T,p);return typeof h=="function"?oi(h,{"":g},"",g):g}toJSON(l,a){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:a})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const a=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${a}`)}return Uv(this,l)}}function ai(u){if(ke(u))return!0;throw new Error("Expected a YAML collection as document contents")}class kf extends Error{constructor(l,a,s,r){super(),this.name=l,this.code=s,this.message=r,this.pos=a}}class gl extends kf{constructor(l,a,s){super("YAMLParseError",l,a,s)}}class op extends kf{constructor(l,a,s){super("YAMLWarning",l,a,s)}}const mu=(u,l)=>a=>{if(a.pos[0]===-1)return;a.linePos=a.pos.map(d=>l.linePos(d));const{line:s,col:r}=a.linePos[0];a.message+=` at line ${s}, column ${r}`;let o=r-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const d=Math.min(o-39,h.length-79);h="…"+h.substring(d),o-=d-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,o))){let d=u.substring(l.lineStarts[s-2],l.lineStarts[s-1]);d.length>80&&(d=d.substring(0,79)+`…
|
|
108
|
+
`),h=d+h}if(/[^ ]/.test(h)){let d=1;const g=a.linePos[1];g&&g.line===s&&g.col>r&&(d=Math.max(1,Math.min(g.col-r,80-o)));const p=" ".repeat(o)+"^".repeat(d);a.message+=`:
|
|
109
109
|
|
|
110
110
|
${h}
|
|
111
111
|
${p}
|
|
112
|
-
`}};function pi(u,{flow:l,indicator:a,next:s,offset:r,onError:o,parentIndent:h,startOnNewline:d}){let
|
|
113
|
-
`))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const a of l.start)if(a.type==="newline")return!0;if(l.sep){for(const a of l.sep)if(a.type==="newline")return!0}if(xa(l.key)||xa(l.value))return!0}return!1;default:return!0}}function vf(u,l,a){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&xa(l)&&a(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function hp(u,l,a){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const r=typeof s=="function"?s:(o,h)=>o===h||_e(o)&&_e(h)&&o.value===h.value;return l.some(o=>r(o.key,a))}const nm="All mapping items must start at the same column";function Bv({composeNode:u,composeEmptyNode:l},a,s,r,o){var
|
|
114
|
-
`+
|
|
115
|
-
`+
|
|
116
|
-
`+
|
|
117
|
-
`+P:V.comment=P,
|
|
118
|
-
`+
|
|
119
|
-
`+
|
|
120
|
-
`.repeat(Math.max(1,h.length-1)):"";let
|
|
121
|
-
`;for(let T
|
|
122
|
-
`):
|
|
123
|
-
`:!
|
|
112
|
+
`}};function pi(u,{flow:l,indicator:a,next:s,offset:r,onError:o,parentIndent:h,startOnNewline:d}){let g=!1,p=d,T=d,w="",N="",O=!1,R=!1,b=null,S=null,C=null,H=null,q=null,Y=null,K=null;for(const V of u)switch(R&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&o(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),R=!1),b&&(p&&V.type!=="comment"&&V.type!=="newline"&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),b=null),V.type){case"space":!l&&(a!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&V.source.includes(" ")&&(b=V),T=!0;break;case"comment":{T||o(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const x=V.source.substring(1)||" ";w?w+=N+x:w=x,N="",p=!1;break}case"newline":p?w?w+=V.source:g=!0:N+=V.source,p=!0,O=!0,(S||C)&&(H=V),T=!0;break;case"anchor":S&&o(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&o(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),S=V,K===null&&(K=V.offset),p=!1,T=!1,R=!0;break;case"tag":{C&&o(V,"MULTIPLE_TAGS","A node can have at most one tag"),C=V,K===null&&(K=V.offset),p=!1,T=!1,R=!0;break}case a:(S||C)&&o(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),Y&&o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${l??"collection"}`),Y=V,p=a==="seq-item-ind"||a==="explicit-key-ind",T=!1;break;case"comma":if(l){q&&o(V,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),q=V,p=!1,T=!1;break}default:o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),p=!1,T=!1}const Q=u[u.length-1],P=Q?Q.offset+Q.source.length:r;return R&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b&&(p&&b.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:q,found:Y,spaceBefore:g,comment:w,hasNewline:O,anchor:S,tag:C,newlineAfterProp:H,end:P,start:K??P}}function xa(u){if(!u)return null;switch(u.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(u.source.includes(`
|
|
113
|
+
`))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const a of l.start)if(a.type==="newline")return!0;if(l.sep){for(const a of l.sep)if(a.type==="newline")return!0}if(xa(l.key)||xa(l.value))return!0}return!1;default:return!0}}function vf(u,l,a){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&xa(l)&&a(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function hp(u,l,a){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const r=typeof s=="function"?s:(o,h)=>o===h||_e(o)&&_e(h)&&o.value===h.value;return l.some(o=>r(o.key,a))}const nm="All mapping items must start at the same column";function Bv({composeNode:u,composeEmptyNode:l},a,s,r,o){var T;const h=(o==null?void 0:o.nodeClass)??Mt,d=new h(a.schema);a.atRoot&&(a.atRoot=!1);let g=s.offset,p=null;for(const w of s.items){const{start:N,key:O,sep:R,value:b}=w,S=pi(N,{indicator:"explicit-key-ind",next:O??(R==null?void 0:R[0]),offset:g,onError:r,parentIndent:s.indent,startOnNewline:!0}),C=!S.found;if(C){if(O&&(O.type==="block-seq"?r(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in O&&O.indent!==s.indent&&r(g,"BAD_INDENT",nm)),!S.anchor&&!S.tag&&!R){p=S.end,S.comment&&(d.comment?d.comment+=`
|
|
114
|
+
`+S.comment:d.comment=S.comment);continue}(S.newlineAfterProp||xa(O))&&r(O??N[N.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((T=S.found)==null?void 0:T.indent)!==s.indent&&r(g,"BAD_INDENT",nm);a.atKey=!0;const H=S.end,q=O?u(a,O,S,r):l(a,H,N,null,S,r);a.schema.compat&&vf(s.indent,O,r),a.atKey=!1,hp(a,d.items,q)&&r(H,"DUPLICATE_KEY","Map keys must be unique");const Y=pi(R??[],{indicator:"map-value-ind",next:b,offset:q.range[2],onError:r,parentIndent:s.indent,startOnNewline:!O||O.type==="block-scalar"});if(g=Y.end,Y.found){C&&((b==null?void 0:b.type)==="block-map"&&!Y.hasNewline&&r(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),a.options.strict&&S.start<Y.found.offset-1024&&r(q.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const K=b?u(a,b,Y,r):l(a,g,R,null,Y,r);a.schema.compat&&vf(s.indent,b,r),g=K.range[2];const Q=new st(q,K);a.options.keepSourceTokens&&(Q.srcToken=w),d.items.push(Q)}else{C&&r(q.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Y.comment&&(q.comment?q.comment+=`
|
|
115
|
+
`+Y.comment:q.comment=Y.comment);const K=new st(q);a.options.keepSourceTokens&&(K.srcToken=w),d.items.push(K)}}return p&&p<g&&r(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[s.offset,g,p??g],d}function qv({composeNode:u,composeEmptyNode:l},a,s,r,o){const h=(o==null?void 0:o.nodeClass)??Vn,d=new h(a.schema);a.atRoot&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let g=s.offset,p=null;for(const{start:T,value:w}of s.items){const N=pi(T,{indicator:"seq-item-ind",next:w,offset:g,onError:r,parentIndent:s.indent,startOnNewline:!0});if(!N.found)if(N.anchor||N.tag||w)w&&w.type==="block-seq"?r(N.end,"BAD_INDENT","All sequence items must start at the same column"):r(g,"MISSING_CHAR","Sequence item without - indicator");else{p=N.end,N.comment&&(d.comment=N.comment);continue}const O=w?u(a,w,N,r):l(a,N.end,T,null,N,r);a.schema.compat&&vf(s.indent,w,r),g=O.range[2],d.items.push(O)}return d.range=[s.offset,g,p??g],d}function La(u,l,a,s){let r="";if(u){let o=!1,h="";for(const d of u){const{source:g,type:p}=d;switch(p){case"space":o=!0;break;case"comment":{a&&!o&&s(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const T=g.substring(1)||" ";r?r+=h+T:r=T,h="";break}case"newline":r&&(h+=g),o=!0;break;default:s(d,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=g.length}}return{comment:r,offset:l}}const sf="Block collections are not allowed within flow collections",uf=u=>u&&(u.type==="block-map"||u.type==="block-seq");function jv({composeNode:u,composeEmptyNode:l},a,s,r,o){const h=s.start.source==="{",d=h?"flow map":"flow sequence",g=(o==null?void 0:o.nodeClass)??(h?Mt:Vn),p=new g(a.schema);p.flow=!0;const T=a.atRoot;T&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let w=s.offset+s.start.source.length;for(let S=0;S<s.items.length;++S){const C=s.items[S],{start:H,key:q,sep:Y,value:K}=C,Q=pi(H,{flow:d,indicator:"explicit-key-ind",next:q??(Y==null?void 0:Y[0]),offset:w,onError:r,parentIndent:s.indent,startOnNewline:!1});if(!Q.found){if(!Q.anchor&&!Q.tag&&!Y&&!K){S===0&&Q.comma?r(Q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`):S<s.items.length-1&&r(Q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${d}`),Q.comment&&(p.comment?p.comment+=`
|
|
116
|
+
`+Q.comment:p.comment=Q.comment),w=Q.end;continue}!h&&a.options.strict&&xa(q)&&r(q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(S===0)Q.comma&&r(Q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`);else if(Q.comma||r(Q.start,"MISSING_CHAR",`Missing , between ${d} items`),Q.comment){let P="";e:for(const V of H)switch(V.type){case"comma":case"space":break;case"comment":P=V.source.substring(1);break e;default:break e}if(P){let V=p.items[p.items.length-1];Re(V)&&(V=V.value??V.key),V.comment?V.comment+=`
|
|
117
|
+
`+P:V.comment=P,Q.comment=Q.comment.substring(P.length+1)}}if(!h&&!Y&&!Q.found){const P=K?u(a,K,Q,r):l(a,Q.end,Y,null,Q,r);p.items.push(P),w=P.range[2],uf(K)&&r(P.range,"BLOCK_IN_FLOW",sf)}else{a.atKey=!0;const P=Q.end,V=q?u(a,q,Q,r):l(a,P,H,null,Q,r);uf(q)&&r(V.range,"BLOCK_IN_FLOW",sf),a.atKey=!1;const x=pi(Y??[],{flow:d,indicator:"map-value-ind",next:K,offset:V.range[2],onError:r,parentIndent:s.indent,startOnNewline:!1});if(x.found){if(!h&&!Q.found&&a.options.strict){if(Y)for(const B of Y){if(B===x.found)break;if(B.type==="newline"){r(B,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Q.start<x.found.offset-1024&&r(x.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else K&&("source"in K&&K.source&&K.source[0]===":"?r(K,"MISSING_CHAR",`Missing space after : in ${d}`):r(x.start,"MISSING_CHAR",`Missing , or : between ${d} items`));const se=K?u(a,K,x,r):x.found?l(a,x.end,Y,null,x,r):null;se?uf(K)&&r(se.range,"BLOCK_IN_FLOW",sf):x.comment&&(V.comment?V.comment+=`
|
|
118
|
+
`+x.comment:V.comment=x.comment);const ce=new st(V,se);if(a.options.keepSourceTokens&&(ce.srcToken=C),h){const B=p;hp(a,B.items,V)&&r(P,"DUPLICATE_KEY","Map keys must be unique"),B.items.push(ce)}else{const B=new Mt(a.schema);B.flow=!0,B.items.push(ce);const ee=(se??V).range;B.range=[V.range[0],ee[1],ee[2]],p.items.push(B)}w=se?se.range[2]:x.end}}const N=h?"}":"]",[O,...R]=s.end;let b=w;if(O&&O.source===N)b=O.offset+O.source.length;else{const S=d[0].toUpperCase()+d.substring(1),C=T?`${S} must end with a ${N}`:`${S} in block collection must be sufficiently indented and end with a ${N}`;r(w,T?"MISSING_CHAR":"BAD_INDENT",C),O&&O.source.length!==1&&R.unshift(O)}if(R.length>0){const S=La(R,b,a.options.strict,r);S.comment&&(p.comment?p.comment+=`
|
|
119
|
+
`+S.comment:p.comment=S.comment),p.range=[s.offset,b,S.offset]}else p.range=[s.offset,b,b];return p}function cf(u,l,a,s,r,o){const h=a.type==="block-map"?Bv(u,l,a,s,o):a.type==="block-seq"?qv(u,l,a,s,o):jv(u,l,a,s,o),d=h.constructor;return r==="!"||r===d.tagName?(h.tag=d.tagName,h):(r&&(h.tag=r),h)}function Hv(u,l,a,s,r){var N;const o=s.tag,h=o?l.directives.tagName(o.source,O=>r(o,"TAG_RESOLVE_FAILED",O)):null;if(a.type==="block-seq"){const{anchor:O,newlineAfterProp:R}=s,b=O&&o?O.offset>o.offset?O:o:O??o;b&&(!R||R.offset<b.offset)&&r(b,"MISSING_CHAR","Missing newline after block sequence props")}const d=a.type==="block-map"?"map":a.type==="block-seq"?"seq":a.start.source==="{"?"map":"seq";if(!o||!h||h==="!"||h===Mt.tagName&&d==="map"||h===Vn.tagName&&d==="seq")return cf(u,l,a,r,h);let g=l.schema.tags.find(O=>O.tag===h&&O.collection===d);if(!g){const O=l.schema.knownTags[h];if(O&&O.collection===d)l.schema.tags.push(Object.assign({},O,{default:!1})),g=O;else return O!=null&&O.collection?r(o,"BAD_COLLECTION_TYPE",`${O.tag} used for ${d} collection, but expects ${O.collection}`,!0):r(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),cf(u,l,a,r,h)}const p=cf(u,l,a,r,h,g),T=((N=g.resolve)==null?void 0:N.call(g,p,O=>r(o,"TAG_RESOLVE_FAILED",O),l.options))??p,w=Le(T)?T:new re(T);return w.range=p.range,w.tag=h,g!=null&&g.format&&(w.format=g.format),w}function dp(u,l,a){const s=l.offset,r=$v(l,u.options.strict,a);if(!r)return{value:"",type:null,comment:"",range:[s,s,s]};const o=r.mode===">"?re.BLOCK_FOLDED:re.BLOCK_LITERAL,h=l.source?Yv(l.source):[];let d=h.length;for(let b=h.length-1;b>=0;--b){const S=h[b][1];if(S===""||S==="\r")d=b;else break}if(d===0){const b=r.chomp==="+"&&h.length>0?`
|
|
120
|
+
`.repeat(Math.max(1,h.length-1)):"";let S=s+r.length;return l.source&&(S+=l.source.length),{value:b,type:o,comment:r.comment,range:[s,S,S]}}let g=l.indent+r.indent,p=l.offset+r.length,T=0;for(let b=0;b<d;++b){const[S,C]=h[b];if(C===""||C==="\r")r.indent===0&&S.length>g&&(g=S.length);else{S.length<g&&a(p+S.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(g=S.length),T=b,g===0&&!u.atRoot&&a(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=S.length+C.length+1}for(let b=h.length-1;b>=d;--b)h[b][0].length>g&&(d=b+1);let w="",N="",O=!1;for(let b=0;b<T;++b)w+=h[b][0].slice(g)+`
|
|
121
|
+
`;for(let b=T;b<d;++b){let[S,C]=h[b];p+=S.length+C.length+1;const H=C[C.length-1]==="\r";if(H&&(C=C.slice(0,-1)),C&&S.length<g){const Y=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;a(p-C.length-(H?2:1),"BAD_INDENT",Y),S=""}o===re.BLOCK_LITERAL?(w+=N+S.slice(g)+C,N=`
|
|
122
|
+
`):S.length>g||C[0]===" "?(N===" "?N=`
|
|
123
|
+
`:!O&&N===`
|
|
124
124
|
`&&(N=`
|
|
125
125
|
|
|
126
|
-
`),
|
|
127
|
-
`,
|
|
128
|
-
`?
|
|
126
|
+
`),w+=N+S.slice(g)+C,N=`
|
|
127
|
+
`,O=!0):C===""?N===`
|
|
128
|
+
`?w+=`
|
|
129
129
|
`:N=`
|
|
130
|
-
`:(
|
|
131
|
-
`+h[
|
|
132
|
-
`&&(
|
|
133
|
-
`);break;default:
|
|
134
|
-
`}const
|
|
130
|
+
`:(w+=N+C,N=" ",O=!1)}switch(r.chomp){case"-":break;case"+":for(let b=d;b<h.length;++b)w+=`
|
|
131
|
+
`+h[b][0].slice(g);w[w.length-1]!==`
|
|
132
|
+
`&&(w+=`
|
|
133
|
+
`);break;default:w+=`
|
|
134
|
+
`}const R=s+r.length+l.source.length;return{value:w,type:o,comment:r.comment,range:[s,R,R]}}function $v({offset:u,props:l},a,s){if(l[0].type!=="block-scalar-header")return s(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:r}=l[0],o=r[0];let h=0,d="",g=-1;for(let N=1;N<r.length;++N){const O=r[N];if(!d&&(O==="-"||O==="+"))d=O;else{const R=Number(O);!h&&R?h=R:g===-1&&(g=u+N)}}g!==-1&&s(g,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let p=!1,T="",w=r.length;for(let N=1;N<l.length;++N){const O=l[N];switch(O.type){case"space":p=!0;case"newline":w+=O.source.length;break;case"comment":a&&!p&&s(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),w+=O.source.length,T=O.source.substring(1);break;case"error":s(O,"UNEXPECTED_TOKEN",O.message),w+=O.source.length;break;default:{const R=`Unexpected token in block scalar header: ${O.type}`;s(O,"UNEXPECTED_TOKEN",R);const b=O.source;b&&typeof b=="string"&&(w+=b.length)}}}return{mode:o,indent:h,chomp:d,comment:T,length:w}}function Yv(u){const l=u.split(/\n( *)/),a=l[0],s=a.match(/^( *)/),o=[s!=null&&s[1]?[s[1],a.slice(s[1].length)]:["",a]];for(let h=1;h<l.length;h+=2)o.push([l[h],l[h+1]]);return o}function gp(u,l,a){const{offset:s,type:r,source:o,end:h}=u;let d,g;const p=(N,O,R)=>a(s+N,O,R);switch(r){case"scalar":d=re.PLAIN,g=Gv(o,p);break;case"single-quoted-scalar":d=re.QUOTE_SINGLE,g=Kv(o,p);break;case"double-quoted-scalar":d=re.QUOTE_DOUBLE,g=Vv(o,p);break;default:return a(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const T=s+o.length,w=La(h,T,l,a);return{value:g,type:d,comment:w.comment,range:[s,T,w.offset]}}function Gv(u,l){let a="";switch(u[0]){case" ":a="a tab character";break;case",":a="flow indicator character ,";break;case"%":a="directive indicator character %";break;case"|":case">":{a=`block scalar indicator ${u[0]}`;break}case"@":case"`":{a=`reserved character ${u[0]}`;break}}return a&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${a}`),mp(u)}function Kv(u,l){return(u[u.length-1]!=="'"||u.length===1)&&l(u.length,"MISSING_CHAR","Missing closing 'quote"),mp(u.slice(1,-1)).replace(/''/g,"'")}function mp(u){let l,a;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
135
135
|
`,"sy"),a=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
136
136
|
`,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,a=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=l.exec(u);if(!s)return u;let r=s[1],o=" ",h=l.lastIndex;for(a.lastIndex=h;s=a.exec(u);)s[1]===""?o===`
|
|
137
137
|
`?r+=o:o=`
|
|
@@ -146,31 +146,31 @@ ${p}
|
|
|
146
146
|
`);)s===`
|
|
147
147
|
`&&(a+=`
|
|
148
148
|
`),l+=1,s=u[l+1];return a||(a=" "),{fold:a,offset:l}}const Xv={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
149
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Zv(u,l,a,s){const r=u.substr(l,a),h=r.length===a&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(h)){const d=u.substr(l-2,a+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),d}return String.fromCodePoint(h)}function pp(u,l,a,s){const{value:r,type:o,comment:h,range:d}=l.type==="block-scalar"?dp(u,l,s):gp(l,u.options.strict,s),
|
|
149
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Zv(u,l,a,s){const r=u.substr(l,a),h=r.length===a&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(h)){const d=u.substr(l-2,a+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),d}return String.fromCodePoint(h)}function pp(u,l,a,s){const{value:r,type:o,comment:h,range:d}=l.type==="block-scalar"?dp(u,l,s):gp(l,u.options.strict,s),g=a?u.directives.tagName(a.source,w=>s(a,"TAG_RESOLVE_FAILED",w)):null;let p;u.options.stringKeys&&u.atKey?p=u.schema[Ft]:g?p=Jv(u.schema,r,g,a,s):l.type==="scalar"?p=Wv(u,r,l,s):p=u.schema[Ft];let T;try{const w=p.resolve(r,N=>s(a??l,"TAG_RESOLVE_FAILED",N),u.options);T=_e(w)?w:new re(w)}catch(w){const N=w instanceof Error?w.message:String(w);s(a??l,"TAG_RESOLVE_FAILED",N),T=new re(r)}return T.range=d,T.source=r,o&&(T.type=o),g&&(T.tag=g),p.format&&(T.format=p.format),h&&(T.comment=h),T}function Jv(u,l,a,s,r){var d;if(a==="!")return u[Ft];const o=[];for(const g of u.tags)if(!g.collection&&g.tag===a)if(g.default&&g.test)o.push(g);else return g;for(const g of o)if((d=g.test)!=null&&d.test(l))return g;const h=u.knownTags[a];return h&&!h.collection?(u.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(r(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,a!=="tag:yaml.org,2002:str"),u[Ft])}function Wv({atKey:u,directives:l,schema:a},s,r,o){const h=a.tags.find(d=>{var g;return(d.default===!0||u&&d.default==="key")&&((g=d.test)==null?void 0:g.test(s))})||a[Ft];if(a.compat){const d=a.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(s))})??a[Ft];if(h.tag!==d.tag){const g=l.tagString(h.tag),p=l.tagString(d.tag),T=`Value may be parsed as either ${g} or ${p}`;o(r,"TAG_RESOLVE_FAILED",T,!0)}}return h}function Iv(u,l,a){if(l){a===null&&(a=l.length);for(let s=a-1;s>=0;--s){let r=l[s];switch(r.type){case"space":case"comment":case"newline":u-=r.source.length;continue}for(r=l[++s];(r==null?void 0:r.type)==="space";)u+=r.source.length,r=l[++s];break}}return u}const Fv={composeNode:yp,composeEmptyNode:Lf};function yp(u,l,a,s){const r=u.atKey,{spaceBefore:o,comment:h,anchor:d,tag:g}=a;let p,T=!0;switch(l.type){case"alias":p=Pv(u,l,s),(d||g)&&s(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=pp(u,l,g,s),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=Hv(Fv,u,l,a,s),d&&(p.anchor=d.source.substring(1));break;default:{const w=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",w),p=Lf(u,l.offset,void 0,null,a,s),T=!1}}return d&&p.anchor===""&&s(d,"BAD_ALIAS","Anchor cannot be an empty string"),r&&u.options.stringKeys&&(!_e(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&s(g??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),u.options.keepSourceTokens&&T&&(p.srcToken=l),p}function Lf(u,l,a,s,{spaceBefore:r,comment:o,anchor:h,tag:d,end:g},p){const T={type:"scalar",offset:Iv(l,a,s),indent:-1,source:""},w=pp(u,T,d,p);return h&&(w.anchor=h.source.substring(1),w.anchor===""&&p(h,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(w.spaceBefore=!0),o&&(w.comment=o,w.range[2]=g),w}function Pv({options:u},{offset:l,source:a,end:s},r){const o=new Tu(a.substring(1));o.source===""&&r(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&r(l+a.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+a.length,d=La(s,h,u.strict,r);return o.range=[l,h,d.offset],d.comment&&(o.comment=d.comment),o}function eb(u,l,{offset:a,start:s,value:r,end:o},h){const d=Object.assign({_directives:l},u),g=new Ai(void 0,d),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},T=pi(s,{indicator:"doc-start",next:r??(o==null?void 0:o[0]),offset:a,onError:h,parentIndent:0,startOnNewline:!0});T.found&&(g.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!T.hasNewline&&h(T.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=r?yp(p,r,T,h):Lf(p,T.end,s,null,T,h);const w=g.contents.range[2],N=La(o,w,!1,h);return N.comment&&(g.comment=N.comment),g.range=[a,w,N.offset],g}function Oa(u){if(typeof u=="number")return[u,u+1];if(Array.isArray(u))return u.length===2?u:[u[0],u[1]];const{offset:l,source:a}=u;return[l,l+(typeof a=="string"?a.length:1)]}function lm(u){var r;let l="",a=!1,s=!1;for(let o=0;o<u.length;++o){const h=u[o];switch(h[0]){case"#":l+=(l===""?"":s?`
|
|
150
150
|
|
|
151
151
|
`:`
|
|
152
152
|
`)+(h.substring(1)||" "),a=!0,s=!1;break;case"%":((r=u[o+1])==null?void 0:r[0])!=="#"&&(o+=1),a=!1;break;default:a||(s=!0),a=!1}}return{comment:l,afterEmptyLine:s}}class zf{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(a,s,r,o)=>{const h=Oa(a);o?this.warnings.push(new op(h,s,r)):this.errors.push(new gl(h,s,r))},this.directives=new ct({version:l.version||"1.2"}),this.options=l}decorate(l,a){const{comment:s,afterEmptyLine:r}=lm(this.prelude);if(s){const o=l.contents;if(a)l.comment=l.comment?`${l.comment}
|
|
153
|
-
${s}`:s;else if(r||l.directives.docStart||!o)l.commentBefore=s;else if(ke(o)&&!o.flow&&o.items.length>0){let h=o.items[0];
|
|
153
|
+
${s}`:s;else if(r||l.directives.docStart||!o)l.commentBefore=s;else if(ke(o)&&!o.flow&&o.items.length>0){let h=o.items[0];Re(h)&&(h=h.key);const d=h.commentBefore;h.commentBefore=d?`${s}
|
|
154
154
|
${d}`:s}else{const h=o.commentBefore;o.commentBefore=h?`${s}
|
|
155
155
|
${h}`:s}}a?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:lm(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,a=!1,s=-1){for(const r of l)yield*this.next(r);yield*this.end(a,s)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(a,s,r)=>{const o=Oa(l);o[0]+=a,this.onError(o,"BAD_DIRECTIVE",s,r)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const a=eb(this.options,this.directives,l,this.onError);this.atDirectives&&!a.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(a,!1),this.doc&&(yield this.doc),this.doc=a,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const a=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,s=new gl(Oa(l),"UNEXPECTED_TOKEN",a);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new gl(Oa(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const a=La(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),a.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
|
|
156
|
-
${a.comment}`:a.comment}this.doc.range[2]=a.offset;break}default:this.errors.push(new gl(Oa(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,a=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),r=new Ai(void 0,s);this.atDirectives&&this.onError(a,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,a,a],this.decorate(r,!1),yield r}}}function tb(u,l=!0,a){if(u){const s=(r,o,h)=>{const d=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(a)a(d,o,h);else throw new gl([d,d+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return gp(u,l,s);case"block-scalar":return dp({options:{strict:l}},u,s)}}return null}function nb(u,l){const{implicitKey:a=!1,indent:s,inFlow:r=!1,offset:o=-1,type:h="PLAIN"}=l,d=
|
|
156
|
+
${a.comment}`:a.comment}this.doc.range[2]=a.offset;break}default:this.errors.push(new gl(Oa(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,a=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),r=new Ai(void 0,s);this.atDirectives&&this.onError(a,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,a,a],this.decorate(r,!1),yield r}}}function tb(u,l=!0,a){if(u){const s=(r,o,h)=>{const d=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(a)a(d,o,h);else throw new gl([d,d+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return gp(u,l,s);case"block-scalar":return dp({options:{strict:l}},u,s)}}return null}function nb(u,l){const{implicitKey:a=!1,indent:s,inFlow:r=!1,offset:o=-1,type:h="PLAIN"}=l,d=Ca({type:h,value:u},{implicitKey:a,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),g=l.end??[{type:"newline",offset:-1,indent:s,source:`
|
|
157
157
|
`}];switch(d[0]){case"|":case">":{const p=d.indexOf(`
|
|
158
|
-
`),
|
|
159
|
-
`,N=[{type:"block-scalar-header",offset:o,indent:s,source:
|
|
160
|
-
`}),{type:"block-scalar",offset:o,indent:s,props:N,source:
|
|
158
|
+
`),T=d.substring(0,p),w=d.substring(p+1)+`
|
|
159
|
+
`,N=[{type:"block-scalar-header",offset:o,indent:s,source:T}];return vp(N,g)||N.push({type:"newline",offset:-1,indent:s,source:`
|
|
160
|
+
`}),{type:"block-scalar",offset:o,indent:s,props:N,source:w}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:d,end:g};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:d,end:g};default:return{type:"scalar",offset:o,indent:s,source:d,end:g}}}function lb(u,l,a={}){let{afterKey:s=!1,implicitKey:r=!1,inFlow:o=!1,type:h}=a,d="indent"in u?u.indent:null;if(s&&typeof d=="number"&&(d+=2),!h)switch(u.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const p=u.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const g=Ca({type:h,value:l},{implicitKey:r||d===null,indent:d!==null&&d>0?" ".repeat(d):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":ib(u,g);break;case'"':rf(u,g,"double-quoted-scalar");break;case"'":rf(u,g,"single-quoted-scalar");break;default:rf(u,g,"scalar")}}function ib(u,l){const a=l.indexOf(`
|
|
161
161
|
`),s=l.substring(0,a),r=l.substring(a+1)+`
|
|
162
162
|
`;if(u.type==="block-scalar"){const o=u.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=s,u.source=r}else{const{offset:o}=u,h="indent"in u?u.indent:-1,d=[{type:"block-scalar-header",offset:o,indent:h,source:s}];vp(d,"end"in u?u.end:void 0)||d.push({type:"newline",offset:-1,indent:h,source:`
|
|
163
|
-
`});for(const
|
|
164
|
-
`};delete u.items,Object.assign(u,{type:a,source:l,end:[r]});break}default:{const s="indent"in u?u.indent:-1,r="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:a,indent:s,source:l,end:r})}}}const ab=u=>"type"in u?
|
|
163
|
+
`});for(const g of Object.keys(u))g!=="type"&&g!=="offset"&&delete u[g];Object.assign(u,{type:"block-scalar",indent:h,props:d,source:r})}}function vp(u,l){if(l)for(const a of l)switch(a.type){case"space":case"comment":u.push(a);break;case"newline":return u.push(a),!0}return!1}function rf(u,l,a){switch(u.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":u.type=a,u.source=l;break;case"block-scalar":{const s=u.props.slice(1);let r=l.length;u.props[0].type==="block-scalar-header"&&(r-=u.props[0].source.length);for(const o of s)o.offset+=r;delete u.props,Object.assign(u,{type:a,source:l,end:s});break}case"block-map":case"block-seq":{const r={type:"newline",offset:u.offset+l.length,indent:u.indent,source:`
|
|
164
|
+
`};delete u.items,Object.assign(u,{type:a,source:l,end:[r]});break}default:{const s="indent"in u?u.indent:-1,r="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:a,indent:s,source:l,end:r})}}}const ab=u=>"type"in u?pu(u):ru(u);function pu(u){switch(u.type){case"block-scalar":{let l="";for(const a of u.props)l+=pu(a);return l+u.source}case"block-map":case"block-seq":{let l="";for(const a of u.items)l+=ru(a);return l}case"flow-collection":{let l=u.start.source;for(const a of u.items)l+=ru(a);for(const a of u.end)l+=a.source;return l}case"document":{let l=ru(u);if(u.end)for(const a of u.end)l+=a.source;return l}default:{let l=u.source;if("end"in u&&u.end)for(const a of u.end)l+=a.source;return l}}}function ru({start:u,key:l,sep:a,value:s}){let r="";for(const o of u)r+=o.source;if(l&&(r+=pu(l)),a)for(const o of a)r+=o.source;return s&&(r+=pu(s)),r}const bf=Symbol("break visit"),sb=Symbol("skip children"),bp=Symbol("remove item");function yl(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),Sp(Object.freeze([]),u,l)}yl.BREAK=bf;yl.SKIP=sb;yl.REMOVE=bp;yl.itemAtPath=(u,l)=>{let a=u;for(const[s,r]of l){const o=a==null?void 0:a[s];if(o&&"items"in o)a=o.items[r];else return}return a};yl.parentCollection=(u,l)=>{const a=yl.itemAtPath(u,l.slice(0,-1)),s=l[l.length-1][0],r=a==null?void 0:a[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function Sp(u,l,a){let s=a(l,u);if(typeof s=="symbol")return s;for(const r of["key","value"]){const o=l[r];if(o&&"items"in o){for(let h=0;h<o.items.length;++h){const d=Sp(Object.freeze(u.concat([[r,h]])),o.items[h],a);if(typeof d=="number")h=d-1;else{if(d===bf)return bf;d===bp&&(o.items.splice(h,1),h-=1)}}typeof s=="function"&&r==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const Ru="\uFEFF",Cu="",ku="",Da="",ub=u=>!!u&&"items"in u,cb=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function rb(u){switch(u){case Ru:return"<BOM>";case Cu:return"<DOC>";case ku:return"<FLOW_END>";case Da:return"<SCALAR>";default:return JSON.stringify(u)}}function Tp(u){switch(u){case Ru:return"byte-order-mark";case Cu:return"doc-mode";case ku:return"flow-error-end";case Da:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
165
165
|
`:case`\r
|
|
166
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const fb=Object.freeze(Object.defineProperty({__proto__:null,BOM:
|
|
166
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const fb=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ru,DOCUMENT:Cu,FLOW_END:ku,SCALAR:Da,createScalarToken:nb,isCollection:ub,isScalar:cb,prettyToken:rb,resolveAsScalar:tb,setScalarValue:lb,stringify:ab,tokenType:Tp,visit:yl},Symbol.toStringTag,{value:"Module"}));function Gt(u){switch(u){case void 0:case" ":case`
|
|
167
167
|
`:case"\r":case" ":return!0;default:return!1}}const im=new Set("0123456789ABCDEFabcdef"),ob=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ps=new Set(",[]{}"),hb=new Set(` ,[]{}
|
|
168
|
-
\r `),
|
|
168
|
+
\r `),ff=u=>!u||hb.has(u);class wp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,a=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!a;let s=this.next??"stream";for(;s&&(a||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let l=this.pos,a=this.buffer[l];for(;a===" "||a===" ";)a=this.buffer[++l];return!a||a==="#"||a===`
|
|
169
169
|
`?!0:a==="\r"?this.buffer[l+1]===`
|
|
170
170
|
`:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let a=this.buffer[l];if(this.indentNext>0){let s=0;for(;a===" ";)a=this.buffer[++s+l];if(a==="\r"){const r=this.buffer[s+l+1];if(r===`
|
|
171
171
|
`||!r&&!this.atEnd)return l+s+1}return a===`
|
|
172
172
|
`||s>=this.indentNext||!a&&!this.atEnd?l+s:-1}if(a==="-"||a==="."){const s=this.buffer.substr(l,3);if((s==="---"||s==="...")&&Gt(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
|
|
173
|
-
`,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===
|
|
173
|
+
`,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===Ru&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let a=l.length,s=l.indexOf("#");for(;s!==-1;){const o=l[s-1];if(o===" "||o===" "){a=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const o=l[a-1];if(o===" "||o===" ")a-=1;else break}const r=(yield*this.pushCount(a))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const a=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-a),yield*this.pushNewline(),"stream"}return yield Cu,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const a=this.peek(3);if((a==="---"||a==="...")&&Gt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,a==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Gt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,a]=this.peek(2);if(!a&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&Gt(a)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let a=yield*this.pushIndicators();switch(l[a]){case"#":yield*this.pushCount(l.length-a);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(ff),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return a+=yield*this.parseBlockScalarHeader(),a+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-a),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,a,s=-1;do l=yield*this.pushNewline(),l>0?(a=yield*this.pushSpaces(!1),this.indentValue=s=a):a=0,a+=yield*this.pushSpaces(!0);while(l+a>0);const r=this.getLine();if(r===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&r[0]!=="#"||s===0&&(r.startsWith("---")||r.startsWith("..."))&&Gt(r[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield ku,yield*this.parseLineStart();let o=0;for(;r[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),r[o]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(ff),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||Gt(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let a=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;a!==-1&&this.buffer[a+1]==="'";)a=this.buffer.indexOf("'",a+2);else for(;a!==-1;){let o=0;for(;this.buffer[a-1-o]==="\\";)o+=1;if(o%2===0)break;a=this.buffer.indexOf('"',a+1)}const s=this.buffer.substring(0,a);let r=s.indexOf(`
|
|
174
174
|
`,this.pos);if(r!==-1){for(;r!==-1;){const o=this.continueScalar(r+1);if(o===-1)break;r=s.indexOf(`
|
|
175
175
|
`,o)}r!==-1&&(a=r-(s[r-1]==="\r"?2:1))}if(a===-1){if(!this.atEnd)return this.setNext("quoted-scalar");a=this.buffer.length}return yield*this.pushToIndex(a+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const a=this.buffer[++l];if(a==="+")this.blockScalarKeep=!0;else if(a>"0"&&a<="9")this.blockScalarIndent=Number(a)-1;else if(a!=="-")break}return yield*this.pushUntil(a=>Gt(a)||a==="#")}*parseBlockScalar(){let l=this.pos-1,a=0,s;e:for(let o=this.pos;s=this.buffer[o];++o)switch(s){case" ":a+=1;break;case`
|
|
176
176
|
`:l=o,a=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
|
|
@@ -180,14 +180,14 @@ ${a.comment}`:a.comment}this.doc.range[2]=a.offset;break}default:this.errors.pus
|
|
|
180
180
|
`&&o>=this.pos&&o+1+a>d)l=o;else break}while(!0);return yield Da,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let a=this.pos-1,s=this.pos-1,r;for(;r=this.buffer[++s];)if(r===":"){const o=this.buffer[s+1];if(Gt(o)||l&&Ps.has(o))break;a=s}else if(Gt(r)){let o=this.buffer[s+1];if(r==="\r"&&(o===`
|
|
181
181
|
`?(s+=1,r=`
|
|
182
182
|
`,o=this.buffer[s+1]):a=s),o==="#"||l&&Ps.has(o))break;if(r===`
|
|
183
|
-
`){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&Ps.has(r))break;a=s}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield Da,yield*this.pushToIndex(a+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,a){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(a&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(
|
|
183
|
+
`){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&Ps.has(r))break;a=s}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield Da,yield*this.pushToIndex(a+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,a){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(a&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(ff))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,a=this.charAt(1);if(Gt(a)||l&&Ps.has(a))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,a=this.buffer[l];for(;!Gt(a)&&a!==">";)a=this.buffer[++l];return yield*this.pushToIndex(a===">"?l+1:l,!1)}else{let l=this.pos+1,a=this.buffer[l];for(;a;)if(ob.has(a))a=this.buffer[++l];else if(a==="%"&&im.has(this.buffer[l+1])&&im.has(this.buffer[l+2]))a=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
|
|
184
184
|
`?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
|
|
185
185
|
`?yield*this.pushCount(2):0}*pushSpaces(l){let a=this.pos-1,s;do s=this.buffer[++a];while(s===" "||l&&s===" ");const r=a-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=a),r}*pushUntil(l){let a=this.pos,s=this.buffer[a];for(;!l(s);)s=this.buffer[++a];return yield*this.pushToIndex(a,!1)}}class Ep{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let a=0,s=this.lineStarts.length;for(;a<s;){const o=a+s>>1;this.lineStarts[o]<l?a=o+1:s=o}if(this.lineStarts[a]===l)return{line:a+1,col:1};if(a===0)return{line:0,col:l};const r=this.lineStarts[a-1];return{line:a,col:l-r+1}}}}function ol(u,l){for(let a=0;a<u.length;++a)if(u[a].type===l)return!0;return!1}function am(u){for(let l=0;l<u.length;++l)switch(u[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function Ap(u){switch(u==null?void 0:u.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function eu(u){switch(u.type){case"document":return u.start;case"block-map":{const l=u.items[u.items.length-1];return l.sep??l.start}case"block-seq":return u.items[u.items.length-1].start;default:return[]}}function si(u){var a;if(u.length===0)return[];let l=u.length;e:for(;--l>=0;)switch(u[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((a=u[++l])==null?void 0:a.type)==="space";);return u.splice(l,u.length)}function sm(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!ol(l.start,"explicit-key-ind")&&!ol(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Ap(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Uf{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new wp,this.onNewLine=l}*parse(l,a=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(l,a))yield*this.next(s);a||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const a=Tp(l);if(a)if(a==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=a,yield*this.step(),a){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const s=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(!l||l.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const a=l??this.stack.pop();if(!a)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield a;else{const s=this.peek(1);switch(a.type==="block-scalar"?a.indent="indent"in s?s.indent:0:a.type==="flow-collection"&&s.type==="document"&&(a.indent=0),a.type==="flow-collection"&&sm(a),s.type){case"document":s.value=a;break;case"block-scalar":s.props.push(a);break;case"block-map":{const r=s.items[s.items.length-1];if(r.value){s.items.push({start:[],key:a,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=a;else{Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=s.items[s.items.length-1];r.value?s.items.push({start:[],value:a}):r.value=a;break}case"flow-collection":{const r=s.items[s.items.length-1];!r||r.value?s.items.push({start:[],key:a,sep:[]}):r.sep?r.value=a:Object.assign(r,{key:a,sep:[]});return}default:yield*this.pop(),yield*this.pop(a)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(a.type==="block-map"||a.type==="block-seq")){const r=a.items[a.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&am(r.start)===-1&&(a.indent===0||r.start.every(o=>o.type!=="comment"||o.indent<a.indent))&&(s.type==="document"?s.end=r.start:s.items.push({start:r.start}),a.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{am(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const a=this.startBlockValue(l);a?this.stack.push(a):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const a=eu(this.peek(2)),s=si(a);let r;l.end?(r=l.end,r.push(this.sourceToken),delete l.end):r=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:s,key:l,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let a=this.source.indexOf(`
|
|
186
186
|
`)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
|
|
187
|
-
`,a)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,a.value){const r="end"in a.value?a.value.end:void 0,o=Array.isArray(r)?r[r.length-1]:void 0;(o==null?void 0:o.type)==="comment"?r==null||r.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else if(a.sep)a.sep.push(this.sourceToken);else{if(this.atIndentedComment(a.start,l.indent)){const r=l.items[l.items.length-2],o=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const r=!this.onKeyLine&&this.indent===l.indent,o=r&&(a.sep||a.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&a.sep&&!a.value){const d=[];for(let
|
|
187
|
+
`,a)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,a.value){const r="end"in a.value?a.value.end:void 0,o=Array.isArray(r)?r[r.length-1]:void 0;(o==null?void 0:o.type)==="comment"?r==null||r.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else if(a.sep)a.sep.push(this.sourceToken);else{if(this.atIndentedComment(a.start,l.indent)){const r=l.items[l.items.length-2],o=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const r=!this.onKeyLine&&this.indent===l.indent,o=r&&(a.sep||a.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&a.sep&&!a.value){const d=[];for(let g=0;g<a.sep.length;++g){const p=a.sep[g];switch(p.type){case"newline":d.push(g);break;case"space":break;case"comment":p.indent>l.indent&&(d.length=0);break;default:d.length=0}}d.length>=2&&(h=a.sep.splice(d[1]))}switch(this.type){case"anchor":case"tag":o||a.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"explicit-key-ind":!a.sep&&!a.explicitKey?(a.start.push(this.sourceToken),a.explicitKey=!0):o||a.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(a.explicitKey)if(a.sep)if(a.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ol(a.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Ap(a.key)&&!ol(a.sep,"newline")){const d=si(a.start),g=a.key,p=a.sep;p.push(this.sourceToken),delete a.key,delete a.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:g,sep:p}]})}else h.length>0?a.sep=a.sep.concat(h,this.sourceToken):a.sep.push(this.sourceToken);else if(ol(a.start,"newline"))Object.assign(a,{key:null,sep:[this.sourceToken]});else{const d=si(a.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]})}else a.sep?a.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):ol(a.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const d=this.flowScalar(this.type);o||a.value?(l.items.push({start:h,key:d,sep:[]}),this.onKeyLine=!0):a.sep?this.stack.push(d):(Object.assign(a,{key:d,sep:[]}),this.onKeyLine=!0);return}default:{const d=this.startBlockValue(l);if(d){r&&d.type!=="block-seq"&&l.items.push({start:h}),this.stack.push(d);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(a.value){const r="end"in a.value?a.value.end:void 0,o=Array.isArray(r)?r[r.length-1]:void 0;(o==null?void 0:o.type)==="comment"?r==null||r.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(a.start,l.indent)){const r=l.items[l.items.length-2],o=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return;case"anchor":case"tag":if(a.value||this.indent<=l.indent)break;a.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;a.value||ol(a.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return}if(this.indent>l.indent){const r=this.startBlockValue(l);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const a=l.items[l.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!a||a.sep?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return;case"map-value-ind":!a||a.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!a||a.value?l.items.push({start:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);!a||a.value?l.items.push({start:[],key:r,sep:[]}):a.sep?this.stack.push(r):Object.assign(a,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const s=this.startBlockValue(l);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===l.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const r=eu(s),o=si(r);sm(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const d={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let a=this.source.indexOf(`
|
|
188
188
|
`)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
|
|
189
|
-
`,a)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const a=eu(l),s=si(a);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const a=eu(l),s=si(a);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,a){return this.type!=="comment"||this.indent<=a?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Op(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Ep||null,prettyErrors:l}}function db(u,l={}){const{lineCounter:a,prettyErrors:s}=Op(l),r=new Uf(a==null?void 0:a.addNewLine),o=new zf(l),h=Array.from(o.compose(r.parse(u)));if(s&&a)for(const d of h)d.errors.forEach(
|
|
189
|
+
`,a)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const a=eu(l),s=si(a);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const a=eu(l),s=si(a);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,a){return this.type!=="comment"||this.indent<=a?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Op(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Ep||null,prettyErrors:l}}function db(u,l={}){const{lineCounter:a,prettyErrors:s}=Op(l),r=new Uf(a==null?void 0:a.addNewLine),o=new zf(l),h=Array.from(o.compose(r.parse(u)));if(s&&a)for(const d of h)d.errors.forEach(mu(u,a)),d.warnings.forEach(mu(u,a));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Np(u,l={}){const{lineCounter:a,prettyErrors:s}=Op(l),r=new Uf(a==null?void 0:a.addNewLine),o=new zf(l);let h=null;for(const d of o.compose(r.parse(u),!0,u.length))if(!h)h=d;else if(h.options.logLevel!=="silent"){h.errors.push(new gl(d.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&a&&(h.errors.forEach(mu(u,a)),h.warnings.forEach(mu(u,a))),h}function gb(u,l,a){let s;typeof l=="function"?s=l:a===void 0&&l&&typeof l=="object"&&(a=l);const r=Np(u,a);if(!r)return null;if(r.warnings.forEach(o=>Qm(r.options.logLevel,o)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:s},a))}function mb(u,l,a){let s=null;if(typeof l=="function"||Array.isArray(l)?s=l:a===void 0&&l&&(a=l),typeof a=="string"&&(a=a.length),typeof a=="number"){const r=Math.round(a);a=r<1?void 0:r>8?{indent:8}:{indent:r}}if(u===void 0){const{keepUndefined:r}=a??l??{};if(!r)return}return bl(u)&&!s?u.toString(a):new Ai(u,s,a).toString(a)}const pb=Object.freeze(Object.defineProperty({__proto__:null,Alias:Tu,CST:fb,Composer:zf,Document:Ai,Lexer:wp,LineCounter:Ep,Pair:st,Parser:Uf,Scalar:re,Schema:Du,YAMLError:kf,YAMLMap:Mt,YAMLParseError:gl,YAMLSeq:Vn,YAMLWarning:op,isAlias:vl,isCollection:ke,isDocument:bl,isMap:Si,isNode:Le,isPair:Re,isScalar:_e,isSeq:Ti,parse:gb,parseAllDocuments:db,parseDocument:Np,stringify:mb,visit:Kn,visitAsync:Su},Symbol.toStringTag,{value:"Module"}));function yb(u,l,a={}){var R;const s=new u.LineCounter,r={keepSourceTokens:!0,lineCounter:s,...a},o=u.parseDocument(l,r),h=[],d=b=>[s.linePos(b[0]),s.linePos(b[1])],g=(b,S)=>{if(b.range)return{from:b.range[0],to:S.range?S.range[2]:b.range[2]}},p=b=>{h.push({message:b.message,range:[s.linePos(b.pos[0]),s.linePos(b.pos[1])]})},T=(b,S)=>{for(const C of S.items){if(C instanceof u.Scalar&&typeof C.value=="string"){const Y=yu.parse(C,r,h);Y&&(Y.sourceRange=g(C,C),b.children=b.children||[],b.children.push(Y));continue}if(C instanceof u.YAMLMap){w(b,C);continue}h.push({message:"Sequence items should be strings or maps",range:d(C.range||S.range)})}},w=(b,S)=>{for(const C of S.items){if(b.children=b.children||[],!(C.key instanceof u.Scalar&&typeof C.key.value=="string")){h.push({message:"Only string keys are supported",range:d(C.key.range||S.range)});continue}const q=C.key,Y=C.value;if(q.value==="text"){if(!(Y instanceof u.Scalar&&typeof Y.value=="string")){h.push({message:"Text value should be a string",range:d(C.value.range||S.range)});continue}b.children.push({kind:"text",text:fu(Y.value),sourceRange:g(q,Y)});continue}if(q.value==="/children"){if(!(Y instanceof u.Scalar&&typeof Y.value=="string")||Y.value!=="contain"&&Y.value!=="equal"&&Y.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:d(C.value.range||S.range)});continue}b.containerMode=Y.value;continue}if(q.value.startsWith("/")){if(!(Y instanceof u.Scalar&&typeof Y.value=="string")){h.push({message:"Property value should be a string",range:d(C.value.range||S.range)});continue}b.props=b.props??{},b.props[q.value.slice(1)]=fu(Y.value);continue}const K=yu.parse(q,r,h);if(!K)continue;if(Y instanceof u.Scalar){const V=typeof Y.value;if(V!=="string"&&V!=="number"&&V!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:d(C.value.range||S.range)});continue}b.children.push({...K,children:[{kind:"text",text:fu(String(Y.value)),sourceRange:g(Y,Y)}],sourceRange:g(q,q),subtreeSourceRange:g(q,Y)});continue}if(Y instanceof u.YAMLSeq){b.children.push(K),K.sourceRange=g(q,q),K.subtreeSourceRange=g(q,Y),T(K,Y);continue}h.push({message:"Map values should be strings or sequences",range:d(C.value.range||S.range)})}},N={range:[0,0,0]},O={kind:"role",role:"fragment",sourceRange:g(N,N),subtreeSourceRange:g(N,o)};return o.errors.forEach(p),h.length?{errors:h,fragment:O}:(o.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?d(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:O}:(T(O,o.contents),h.length?{errors:h,fragment:vb}:((R=O.children)==null?void 0:R.length)===1&&(!O.containerMode||O.containerMode==="contain")?{fragment:O.children[0],errors:[]}:{fragment:O,errors:[]}))}const vb={kind:"role",role:"fragment"};function _p(u){return u.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function fu(u){return{raw:u,normalized:_p(u)}}class yu{static parse(l,a,s){try{return new yu(l.value,a)._parse()}catch(r){if(r instanceof um){const o=a.prettyErrors===!1?r.message:r.message+`:
|
|
190
190
|
|
|
191
191
|
`+l.value+`
|
|
192
192
|
`+" ".repeat(r.pos)+`^
|
|
193
|
-
`;return s.push({message:o,range:[a.lineCounter.linePos(l.range[0]),a.lineCounter.linePos(l.range[0]+r.pos)]}),null}throw r}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const a=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(a,this._pos)}_readString(){let l="",a=!1;for(;!this._eof();){const s=this._next();if(a)l+=s,a=!1;else if(s==="\\")a=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,a=0){throw new um(l,a||this._pos)}_readRegex(){let l="",a=!1,s=!1;for(;!this._eof();){const r=this._next();if(a)l+=r,a=!1;else if(r==="\\")a=!0,l+=r;else{if(r==="/"&&!s)return{pattern:l};r==="["?(s=!0,l+=r):r==="]"&&s?(l+=r,s=!1):l+=r}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),_p(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let a=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),a=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let r="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),a=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)r+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,r||"true",a)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const a=this._readStringOrRegex()||"",s={kind:"role",role:l,name:a};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,a,s,r){if(a==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',r),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',r),l.disabled=s==="true";return}if(a==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',r),l.expanded=s==="true";return}if(a==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',r),l.active=s==="true";return}if(a==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',r),l.level=Number(s);return}if(a==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',r),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',r),l.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${a}]`,r)}_assert(l,a,s){l||this._throwError(a||"Assertion error",s)}}class um extends Error{constructor(l,a){super(l),this.pos=a}}const bb=({className:u,style:l,open:a,isModal:s,width:r,verticalOffset:o,requestClose:h,anchor:d,dataTestId:m,children:p})=>{const b=me.useRef(null),[S,N]=me.useState(0);let E=l;if(d!=null&&d.current){const x=d.current.getBoundingClientRect();E={position:"fixed",margin:0,top:x.bottom+(o??0),left:Sb(x,r??0),width:r,zIndex:100,...l}}return me.useEffect(()=>{const x=w=>{!b.current||!(w.target instanceof Node)||b.current.contains(w.target)||h==null||h()},T=w=>{w.key==="Escape"&&(h==null||h())};return a?(document.addEventListener("mousedown",x),document.addEventListener("keydown",T),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",T)}):()=>{}},[a,h]),me.useEffect(()=>{const x=()=>N(T=>T+1);return window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)}},[]),me.useLayoutEffect(()=>{b.current&&(a?s?b.current.showModal():b.current.show():b.current.close())},[a,s]),X.jsx("dialog",{ref:b,style:E,className:u,"data-testid":m,children:p})},Sb=(u,l)=>{const a=cm(u,l,"left");if(a.inBounds)return a.value;const s=cm(u,l,"right");return s.inBounds?s.value:a.value},cm=(u,l,a)=>{const s=document.documentElement.clientWidth;if(a==="left"){const r=u.left;return{value:r,inBounds:r+l<=s}}else return{value:u.right-l,inBounds:u.right-l>=0}},Tb=({sources:u,paused:l,log:a,mode:s})=>{const[r,o]=me.useState(),[h,d]=fu("recorderPropertiesTab","log"),[m,p]=me.useState(),[b,S]=me.useState(),[N,E]=me.useState(!1),[x,T]=s1(),[w,L]=fu("autoExpect",!1),z=me.useRef(null);window.playwrightSelectSource=D=>o(D),me.useEffect(()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:w}})},[w]);const $=me.useMemo(()=>u.find(se=>se.id===r)??D1(),[u,r]),[Q,G]=me.useState("");window.playwrightElementPicked=(D,se)=>{const ce=$.language;G(km(ce,D.selector)),p(D.ariaSnapshot),S([]),se&&h!=="locator"&&h!=="aria"&&d("locator"),s==="inspecting"&&h==="aria"||window.dispatch({event:"setMode",params:{mode:s==="inspecting"?"standby":"recording"}}).catch(()=>{})};const K=me.useRef(null);me.useLayoutEffect(()=>{var D;(D=K.current)==null||D.scrollIntoView({block:"center",inline:"nearest"})},[K]),me.useLayoutEffect(()=>{const D=se=>{switch(se.key){case"F8":se.preventDefault(),l?window.dispatch({event:"resume"}):window.dispatch({event:"pause"});break;case"F10":se.preventDefault(),l&&window.dispatch({event:"step"});break}};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[l]);const P=me.useCallback(D=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}}),G(D),window.dispatch({event:"highlightRequested",params:{selector:D}})},[s]),V=me.useCallback(D=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}});const{fragment:se,errors:ce}=yb(pb,D,{prettyErrors:!1}),q=ce.map(ee=>({message:ee.message,line:ee.range[1].line,column:ee.range[1].col,type:"subtle-error"}));S(q),p(D),ce.length||window.dispatch({event:"highlightRequested",params:{ariaTemplate:se}})},[s]);return X.jsxs("div",{className:"recorder",children:[X.jsxs(fm,{children:[X.jsx(_t,{icon:"circle-large-filled",title:"Record",toggled:s==="recording"||s==="recording-inspecting"||s==="assertingText"||s==="assertingVisibility",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="none"||s==="standby"||s==="inspecting"?"recording":"standby"}})},children:"Record"}),X.jsx(Qg,{}),X.jsx(_t,{icon:"inspect",title:"Pick locator",toggled:s==="inspecting"||s==="recording-inspecting",onClick:()=>{const D={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[s];window.dispatch({event:"setMode",params:{mode:D}}).catch(()=>{})}}),X.jsx(_t,{icon:"eye",title:"Assert visibility",toggled:s==="assertingVisibility",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingVisibility"?"recording":"assertingVisibility"}})}}),X.jsx(_t,{icon:"whole-word",title:"Assert text",toggled:s==="assertingText",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingText"?"recording":"assertingText"}})}}),X.jsx(_t,{icon:"symbol-constant",title:"Assert value",toggled:s==="assertingValue",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingValue"?"recording":"assertingValue"}})}}),X.jsx(_t,{icon:"gist",title:"Assert snapshot",toggled:s==="assertingSnapshot",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingSnapshot"?"recording":"assertingSnapshot"}})}}),X.jsx(Qg,{}),X.jsx(_t,{icon:"files",title:"Copy",disabled:!$||!$.text,onClick:()=>{Lg($.text)}}),X.jsx(_t,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!l,onClick:()=>{window.dispatch({event:"resume"})}}),X.jsx(_t,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:l,onClick:()=>{window.dispatch({event:"pause"})}}),X.jsx(_t,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!l,onClick:()=>{window.dispatch({event:"step"})}}),X.jsx("div",{style:{flex:"auto"}}),X.jsx("div",{children:"Target:"}),X.jsx(M1,{fileId:$.id,sources:u,setFileId:D=>{o(D),window.dispatch({event:"fileChanged",params:{fileId:D}})}}),X.jsx(_t,{icon:"clear-all",title:"Clear",disabled:!$||!$.text,onClick:()=>{window.dispatch({event:"clear"})}}),X.jsx(_t,{ref:z,icon:"settings-gear",title:"Settings",onClick:()=>E(D=>!D)}),X.jsxs(bb,{style:{padding:"4px 8px"},open:N,width:200,verticalOffset:8,requestClose:()=>E(!1),anchor:z,dataTestId:"settings-dialog",children:[X.jsxs("div",{className:"setting",children:[X.jsx("input",{type:"checkbox",id:"dark-mode-setting",checked:x,onChange:()=>T(!x)}),X.jsx("label",{htmlFor:"dark-mode-setting",children:"Dark mode"})]},"dark-mode-setting"),X.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[X.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:w,onChange:()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:!w}}),L(!w)}}),X.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),X.jsx(O1,{sidebarSize:200,main:X.jsx(ef,{text:$.text,highlighter:$.language,highlight:$.highlight,revealLine:$.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:X.jsx(N1,{rightToolbar:h==="locator"||h==="aria"?[X.jsx(_t,{icon:"files",title:"Copy",onClick:()=>Lg((h==="locator"?Q:m)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>X.jsx(ef,{text:Q,placeholder:"Type locator to inspect",highlighter:$.language,focusOnChange:!0,onChange:P,wrapLines:!0})},{id:"log",title:"Log",render:()=>X.jsx(av,{language:$.language,log:Array.from(a.values())})},{id:"aria",title:"Aria",render:()=>X.jsx(ef,{text:m||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:V,highlight:b,wrapLines:!0})}],selectedTab:h,setSelectedTab:d})})]})},wb=({})=>{const[u,l]=me.useState([]),[a,s]=me.useState(!1),[r,o]=me.useState(new Map),[h,d]=me.useState("none");return me.useLayoutEffect(()=>{window.playwrightSetMode=d,window.playwrightSetSources=m=>{l(m),window.playwrightSourcesEchoForTest=m},window.playwrightSetPageURL=m=>{document.title=m?`Playwright Inspector - ${m}`:"Playwright Inspector"},window.playwrightSetPaused=s,window.playwrightUpdateLogs=m=>{o(p=>{const b=new Map(p);for(const S of m)S.reveal=!p.has(S.id),b.set(S.id,S);return b})}},[]),X.jsx(Tb,{sources:u,paused:a,log:r,mode:h})};(async()=>(l1(),d1.createRoot(document.querySelector("#root")).render(X.jsx(wb,{}))))();export{W0 as g};
|
|
193
|
+
`;return s.push({message:o,range:[a.lineCounter.linePos(l.range[0]),a.lineCounter.linePos(l.range[0]+r.pos)]}),null}throw r}}constructor(l,a){this._options=a,this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const a=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(a,this._pos)}_readString(){let l="",a=!1;for(;!this._eof();){const s=this._next();if(a)l+=s,a=!1;else if(s==="\\")a=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,a=0){throw new um(l,a||this._pos)}_readRegex(){let l="",a=!1,s=!1;for(;!this._eof();){const r=this._next();if(a)l+=r,a=!1;else if(r==="\\")a=!0,l+=r;else{if(r==="/"&&!s)return{pattern:l};r==="["?(s=!0,l+=r):r==="]"&&s?(l+=r,s=!1):l+=r}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),_p(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let a=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),a=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let r="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),a=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)r+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,r||"true",a)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const a=this._readStringOrRegex()||"",s={kind:"role",role:l,name:a};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,a,s,r){if(a==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',r),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',r),l.disabled=s==="true";return}if(a==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',r),l.expanded=s==="true";return}if(a==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',r),l.active=s==="true";return}if(a==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',r),l.level=Number(s);return}if(a==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',r),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',r),l.selected=s==="true";return}if(this._options.laxProps){l.props=l.props||{},l.props[a]=fu(s);return}this._assert(!1,`Unsupported attribute [${a}]`,r)}_assert(l,a,s){l||this._throwError(a||"Assertion error",s)}}class um extends Error{constructor(l,a){super(l),this.pos=a}}const bb=({className:u,style:l,open:a,isModal:s,width:r,verticalOffset:o,requestClose:h,anchor:d,dataTestId:g,children:p})=>{const T=me.useRef(null),[w,N]=me.useState(0);let O=l;if(d!=null&&d.current){const R=d.current.getBoundingClientRect();O={position:"fixed",margin:0,top:R.bottom+(o??0),left:Sb(R,r??0),width:r,zIndex:100,...l}}return me.useEffect(()=>{const R=S=>{!T.current||!(S.target instanceof Node)||T.current.contains(S.target)||h==null||h()},b=S=>{S.key==="Escape"&&(h==null||h())};return a?(document.addEventListener("mousedown",R),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",R),document.removeEventListener("keydown",b)}):()=>{}},[a,h]),me.useEffect(()=>{const R=()=>N(b=>b+1);return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),me.useLayoutEffect(()=>{T.current&&(a?s?T.current.showModal():T.current.show():T.current.close())},[a,s]),X.jsx("dialog",{ref:T,style:O,className:u,"data-testid":g,children:p})},Sb=(u,l)=>{const a=cm(u,l,"left");if(a.inBounds)return a.value;const s=cm(u,l,"right");return s.inBounds?s.value:a.value},cm=(u,l,a)=>{const s=document.documentElement.clientWidth;if(a==="left"){const r=u.left;return{value:r,inBounds:r+l<=s}}else return{value:u.right-l,inBounds:u.right-l>=0}},Tb=({sources:u,paused:l,log:a,mode:s})=>{const[r,o]=me.useState(),[h,d]=ou("recorderPropertiesTab","log"),[g,p]=me.useState(),[T,w]=me.useState(),[N,O]=me.useState(!1),[R,b]=s1(),[S,C]=ou("autoExpect",!1),H=me.useRef(null);window.playwrightSelectSource=x=>o(x),me.useEffect(()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:S}})},[S]);const q=me.useMemo(()=>u.find(se=>se.id===r)??D1(),[u,r]),[Y,K]=me.useState("");window.playwrightElementPicked=(x,se)=>{const ce=q.language;K(km(ce,x.selector)),p(x.ariaSnapshot),w([]),se&&h!=="locator"&&h!=="aria"&&d("locator"),s==="inspecting"&&h==="aria"||window.dispatch({event:"setMode",params:{mode:s==="inspecting"?"standby":"recording"}}).catch(()=>{})};const Q=me.useRef(null);me.useLayoutEffect(()=>{var x;(x=Q.current)==null||x.scrollIntoView({block:"center",inline:"nearest"})},[Q]),me.useLayoutEffect(()=>{const x=se=>{switch(se.key){case"F8":se.preventDefault(),l?window.dispatch({event:"resume"}):window.dispatch({event:"pause"});break;case"F10":se.preventDefault(),l&&window.dispatch({event:"step"});break}};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[l]);const P=me.useCallback(x=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}}),K(x),window.dispatch({event:"highlightRequested",params:{selector:x}})},[s]),V=me.useCallback(x=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}});const{fragment:se,errors:ce}=yb(pb,x,{prettyErrors:!1}),B=ce.map(ee=>({message:ee.message,line:ee.range[1].line,column:ee.range[1].col,type:"subtle-error"}));w(B),p(x),ce.length||window.dispatch({event:"highlightRequested",params:{ariaTemplate:se}})},[s]);return X.jsxs("div",{className:"recorder",children:[X.jsxs(fm,{children:[X.jsx(_t,{icon:"circle-large-filled",title:"Record",toggled:s==="recording"||s==="recording-inspecting"||s==="assertingText"||s==="assertingVisibility",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="none"||s==="standby"||s==="inspecting"?"recording":"standby"}})},children:"Record"}),X.jsx(Qg,{}),X.jsx(_t,{icon:"inspect",title:"Pick locator",toggled:s==="inspecting"||s==="recording-inspecting",onClick:()=>{const x={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[s];window.dispatch({event:"setMode",params:{mode:x}}).catch(()=>{})}}),X.jsx(_t,{icon:"eye",title:"Assert visibility",toggled:s==="assertingVisibility",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingVisibility"?"recording":"assertingVisibility"}})}}),X.jsx(_t,{icon:"whole-word",title:"Assert text",toggled:s==="assertingText",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingText"?"recording":"assertingText"}})}}),X.jsx(_t,{icon:"symbol-constant",title:"Assert value",toggled:s==="assertingValue",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingValue"?"recording":"assertingValue"}})}}),X.jsx(_t,{icon:"gist",title:"Assert snapshot",toggled:s==="assertingSnapshot",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingSnapshot"?"recording":"assertingSnapshot"}})}}),X.jsx(Qg,{}),X.jsx(_t,{icon:"files",title:"Copy",disabled:!q||!q.text,onClick:()=>{Lg(q.text)}}),X.jsx(_t,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!l,onClick:()=>{window.dispatch({event:"resume"})}}),X.jsx(_t,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:l,onClick:()=>{window.dispatch({event:"pause"})}}),X.jsx(_t,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!l,onClick:()=>{window.dispatch({event:"step"})}}),X.jsx("div",{style:{flex:"auto"}}),X.jsx("div",{children:"Target:"}),X.jsx(M1,{fileId:q.id,sources:u,setFileId:x=>{o(x),window.dispatch({event:"fileChanged",params:{fileId:x}})}}),X.jsx(_t,{icon:"clear-all",title:"Clear",disabled:!q||!q.text,onClick:()=>{window.dispatch({event:"clear"})}}),X.jsx(_t,{ref:H,icon:"settings-gear",title:"Settings",onClick:()=>O(x=>!x)}),X.jsxs(bb,{style:{padding:"4px 8px"},open:N,width:200,verticalOffset:8,requestClose:()=>O(!1),anchor:H,dataTestId:"settings-dialog",children:[X.jsxs("div",{className:"setting",children:[X.jsx("input",{type:"checkbox",id:"dark-mode-setting",checked:R,onChange:()=>b(!R)}),X.jsx("label",{htmlFor:"dark-mode-setting",children:"Dark mode"})]},"dark-mode-setting"),X.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[X.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:S,onChange:()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:!S}}),C(!S)}}),X.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),X.jsx(O1,{sidebarSize:200,main:X.jsx(tf,{text:q.text,highlighter:q.language,highlight:q.highlight,revealLine:q.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:X.jsx(N1,{rightToolbar:h==="locator"||h==="aria"?[X.jsx(_t,{icon:"files",title:"Copy",onClick:()=>Lg((h==="locator"?Y:g)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>X.jsx(tf,{text:Y,placeholder:"Type locator to inspect",highlighter:q.language,focusOnChange:!0,onChange:P,wrapLines:!0})},{id:"log",title:"Log",render:()=>X.jsx(av,{language:q.language,log:Array.from(a.values())})},{id:"aria",title:"Aria",render:()=>X.jsx(tf,{text:g||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:V,highlight:T,wrapLines:!0})}],selectedTab:h,setSelectedTab:d})})]})},wb=({})=>{const[u,l]=me.useState([]),[a,s]=me.useState(!1),[r,o]=me.useState(new Map),[h,d]=me.useState("none");return me.useLayoutEffect(()=>{window.playwrightSetMode=d,window.playwrightSetSources=g=>{l(g),window.playwrightSourcesEchoForTest=g},window.playwrightSetPageURL=g=>{document.title=g?`Playwright Inspector - ${g}`:"Playwright Inspector"},window.playwrightSetPaused=s,window.playwrightUpdateLogs=g=>{o(p=>{const T=new Map(p);for(const w of g)w.reveal=!p.has(w.id),T.set(w.id,w);return T})}},[]),X.jsx(Tb,{sources:u,paused:a,log:r,mode:h})};(async()=>(l1(),d1.createRoot(document.querySelector("#root")).render(X.jsx(wb,{}))))();export{W0 as g};
|