playwright-core 1.57.0-beta-1764944708000 → 1.57.0-beta-1765994843000

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.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-Bucv2d7q.js","../codeMirrorModule.C3UTv-Ge.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-Bn2yEfav.js","../codeMirrorModule.C3UTv-Ge.css"])))=>i.map(i=>d[i]);
2
2
  var R1=Object.defineProperty;var j1=(n,e,i)=>e in n?R1(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var Te=(n,e,i)=>j1(n,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function i(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(l){if(l.ep)return;l.ep=!0;const o=i(l);fetch(l.href,o)}})();function L1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yf={exports:{}},Ma={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -15,7 +15,7 @@ var R1=Object.defineProperty;var j1=(n,e,i)=>e in n?R1(n,e,{enumerable:!0,config
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 vy;function U1(){if(vy)return de;vy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function T(N,P,W){this.props=N,this.context=P,this.refs=x,this.updater=W||S}T.prototype.isReactComponent={},T.prototype.setState=function(N,P){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,P,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=T.prototype;function k(N,P,W){this.props=N,this.context=P,this.refs=x,this.updater=W||S}var $=k.prototype=new C;$.constructor=k,E($,T.prototype),$.isPureReactComponent=!0;var V=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function Z(N,P,W,J,ae,be){return W=be.ref,{$$typeof:n,type:N,key:P,ref:W!==void 0?W:null,props:be}}function q(N,P){return Z(N.type,P,void 0,void 0,void 0,N.props)}function j(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ie(N){var P={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(W){return P[W]})}var le=/\/+/g;function I(N,P){return typeof N=="object"&&N!==null&&N.key!=null?ie(""+N.key):P.toString(36)}function F(){}function ee(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(P){N.status==="pending"&&(N.status="fulfilled",N.value=P)},function(P){N.status==="pending"&&(N.status="rejected",N.reason=P)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ve(N,P,W,J,ae){var be=typeof N;(be==="undefined"||be==="boolean")&&(N=null);var te=!1;if(N===null)te=!0;else switch(be){case"bigint":case"string":case"number":te=!0;break;case"object":switch(N.$$typeof){case n:case e:te=!0;break;case m:return te=N._init,ve(te(N._payload),P,W,J,ae)}}if(te)return ae=ae(N),te=J===""?"."+I(N,0):J,V(ae)?(W="",te!=null&&(W=te.replace(le,"$&/")+"/"),ve(ae,P,W,"",function(Gt){return Gt})):ae!=null&&(j(ae)&&(ae=q(ae,W+(ae.key==null||N&&N.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+te)),P.push(ae)),1;te=0;var yt=J===""?".":J+":";if(V(N))for(var Ne=0;Ne<N.length;Ne++)J=N[Ne],be=yt+I(J,Ne),te+=ve(J,P,W,be,ae);else if(Ne=v(N),typeof Ne=="function")for(N=Ne.call(N),Ne=0;!(J=N.next()).done;)J=J.value,be=yt+I(J,Ne++),te+=ve(J,P,W,be,ae);else if(be==="object"){if(typeof N.then=="function")return ve(ee(N),P,W,J,ae);throw P=String(N),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return te}function z(N,P,W){if(N==null)return N;var J=[],ae=0;return ve(N,J,"","",function(be){return P.call(W,be,ae++)}),J}function Q(N){if(N._status===-1){var P=N._result;P=P(),P.then(function(W){(N._status===0||N._status===-1)&&(N._status=1,N._result=W)},function(W){(N._status===0||N._status===-1)&&(N._status=2,N._result=W)}),N._status===-1&&(N._status=0,N._result=P)}if(N._status===1)return N._result.default;throw N._result}var se=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function we(){}return de.Children={map:z,forEach:function(N,P,W){z(N,function(){P.apply(this,arguments)},W)},count:function(N){var P=0;return z(N,function(){P++}),P},toArray:function(N){return z(N,function(P){return P})||[]},only:function(N){if(!j(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},de.Component=T,de.Fragment=i,de.Profiler=l,de.PureComponent=k,de.StrictMode=s,de.Suspense=d,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,de.__COMPILER_RUNTIME={__proto__:null,c:function(N){return R.H.useMemoCache(N)}},de.cache=function(N){return function(){return N.apply(null,arguments)}},de.cloneElement=function(N,P,W){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var J=E({},N.props),ae=N.key,be=void 0;if(P!=null)for(te in P.ref!==void 0&&(be=void 0),P.key!==void 0&&(ae=""+P.key),P)!G.call(P,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&P.ref===void 0||(J[te]=P[te]);var te=arguments.length-2;if(te===1)J.children=W;else if(1<te){for(var yt=Array(te),Ne=0;Ne<te;Ne++)yt[Ne]=arguments[Ne+2];J.children=yt}return Z(N.type,ae,void 0,void 0,be,J)},de.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:o,_context:N},N},de.createElement=function(N,P,W){var J,ae={},be=null;if(P!=null)for(J in P.key!==void 0&&(be=""+P.key),P)G.call(P,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=P[J]);var te=arguments.length-2;if(te===1)ae.children=W;else if(1<te){for(var yt=Array(te),Ne=0;Ne<te;Ne++)yt[Ne]=arguments[Ne+2];ae.children=yt}if(N&&N.defaultProps)for(J in te=N.defaultProps,te)ae[J]===void 0&&(ae[J]=te[J]);return Z(N,be,void 0,void 0,null,ae)},de.createRef=function(){return{current:null}},de.forwardRef=function(N){return{$$typeof:f,render:N}},de.isValidElement=j,de.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:Q}},de.memo=function(N,P){return{$$typeof:p,type:N,compare:P===void 0?null:P}},de.startTransition=function(N){var P=R.T,W={};R.T=W;try{var J=N(),ae=R.S;ae!==null&&ae(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(we,se)}catch(be){se(be)}finally{R.T=P}},de.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},de.use=function(N){return R.H.use(N)},de.useActionState=function(N,P,W){return R.H.useActionState(N,P,W)},de.useCallback=function(N,P){return R.H.useCallback(N,P)},de.useContext=function(N){return R.H.useContext(N)},de.useDebugValue=function(){},de.useDeferredValue=function(N,P){return R.H.useDeferredValue(N,P)},de.useEffect=function(N,P,W){var J=R.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(N,P)},de.useId=function(){return R.H.useId()},de.useImperativeHandle=function(N,P,W){return R.H.useImperativeHandle(N,P,W)},de.useInsertionEffect=function(N,P){return R.H.useInsertionEffect(N,P)},de.useLayoutEffect=function(N,P){return R.H.useLayoutEffect(N,P)},de.useMemo=function(N,P){return R.H.useMemo(N,P)},de.useOptimistic=function(N,P){return R.H.useOptimistic(N,P)},de.useReducer=function(N,P,W){return R.H.useReducer(N,P,W)},de.useRef=function(N){return R.H.useRef(N)},de.useState=function(N){return R.H.useState(N)},de.useSyncExternalStore=function(N,P,W){return R.H.useSyncExternalStore(N,P,W)},de.useTransition=function(){return R.H.useTransition()},de.version="19.1.1",de}var Sy;function Bh(){return Sy||(Sy=1,Xf.exports=U1()),Xf.exports}var H=Bh();const gt=L1(H);function Po(n,e,i,s){const[l,o]=gt.useState(i);return gt.useEffect(()=>{let u=!1;return n().then(f=>{u||o(f)}),()=>{u=!0}},e),l}function cs(){const n=gt.useRef(null),[e]=mh(n);return[e,n]}function mh(n){const[e,i]=gt.useState(new DOMRect(0,0,10,10)),s=gt.useCallback(()=>{const l=n==null?void 0:n.current;l&&i(l.getBoundingClientRect())},[n]);return gt.useLayoutEffect(()=>{const l=n==null?void 0:n.current;if(!l)return;s();const o=new ResizeObserver(s);return o.observe(l),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,n]),[e,s]}function _t(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0)+"ms";const e=n/1e3;if(e<60)return e.toFixed(1)+"s";const i=e/60;if(i<60)return i.toFixed(1)+"m";const s=i/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function z1(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0);const e=n/1024;if(e<1e3)return e.toFixed(1)+"K";const i=e/1024;return i<1e3?i.toFixed(1)+"M":(i/1024).toFixed(1)+"G"}function Ab(n,e,i,s,l){let o=0,u=n.length;for(;o<u;){const f=o+u>>1;i(e,n[f])>=0?o=f+1:u=f}return u}function wy(n){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function rn(n,e){n&&(e=es.getObject(n,e));const[i,s]=gt.useState(e),l=gt.useCallback(o=>{n?es.setObject(n,o):s(o)},[n,s]);return gt.useEffect(()=>{if(n){const o=()=>s(es.getObject(n,e));return es.onChangeEmitter.addEventListener(n,o),()=>es.onChangeEmitter.removeEventListener(n,o)}},[e,n]),[i,l]}const yh=new Map,Nb=new Map;let Fo;function xi(n,e){const[i,s]=gt.useState();Nb.set(n,{setter:s,defaultValue:e});const l=gt.useCallback(o=>{const u=yh.get(Fo||"default")||{};u[n]=o,yh.set(Fo||"default",u),s(o)},[n]);return[i,l]}function H1(n){if(Fo===n)return;Fo=n;const e=yh.get(n)||{};for(const[i,s]of Nb.entries())s.setter(e[i]||s.defaultValue)}class q1{constructor(){this.onChangeEmitter=new EventTarget}getString(e,i){return localStorage[e]||i}setString(e,i){var s;localStorage[e]=i,this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}getObject(e,i){if(!localStorage[e])return i;try{return JSON.parse(localStorage[e])}catch{return i}}setObject(e,i){var s;localStorage[e]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}}const es=new q1;function Ye(...n){return n.filter(Boolean).join(" ")}function Cb(n){n&&(n!=null&&n.scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded(!1):n==null||n.scrollIntoView())}const xy="\\u0000-\\u0020\\u007f-\\u009f",kb=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+xy+'"]{2,}[^\\s'+xy+`"')}\\],:;.!?]`,"ug");function $1(){const[n,e]=gt.useState(!1),i=gt.useCallback(()=>{const s=[];return e(l=>(s.push(setTimeout(()=>e(!1),1e3)),l?(s.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>s.forEach(clearTimeout)},[e]);return[n,i]}function t2(){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 e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode";es.getString("theme",e)==="dark-mode"?document.documentElement.classList.add("dark-mode"):document.documentElement.classList.add("light-mode")}const Uh=new Set;function I1(){const n=bh(),e=n==="dark-mode"?"light-mode":"dark-mode";document.documentElement.classList.remove(n),document.documentElement.classList.add(e),es.setString("theme",e);for(const i of Uh)i(e)}function n2(n){Uh.add(n)}function i2(n){Uh.delete(n)}function bh(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":"light-mode"}function V1(){const[n,e]=gt.useState(bh()==="dark-mode");return[n,i=>{bh()==="dark-mode"!==i&&I1(),e(i)}]}var Pf={exports:{}},Oa={},Ff={exports:{}},Qf={};/**
18
+ */var vy;function U1(){if(vy)return de;vy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function T(N,P,W){this.props=N,this.context=P,this.refs=x,this.updater=W||S}T.prototype.isReactComponent={},T.prototype.setState=function(N,P){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,P,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=T.prototype;function k(N,P,W){this.props=N,this.context=P,this.refs=x,this.updater=W||S}var $=k.prototype=new C;$.constructor=k,E($,T.prototype),$.isPureReactComponent=!0;var V=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function Z(N,P,W,J,ae,be){return W=be.ref,{$$typeof:n,type:N,key:P,ref:W!==void 0?W:null,props:be}}function q(N,P){return Z(N.type,P,void 0,void 0,void 0,N.props)}function j(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ie(N){var P={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(W){return P[W]})}var le=/\/+/g;function I(N,P){return typeof N=="object"&&N!==null&&N.key!=null?ie(""+N.key):P.toString(36)}function F(){}function ee(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(P){N.status==="pending"&&(N.status="fulfilled",N.value=P)},function(P){N.status==="pending"&&(N.status="rejected",N.reason=P)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ve(N,P,W,J,ae){var be=typeof N;(be==="undefined"||be==="boolean")&&(N=null);var te=!1;if(N===null)te=!0;else switch(be){case"bigint":case"string":case"number":te=!0;break;case"object":switch(N.$$typeof){case n:case e:te=!0;break;case m:return te=N._init,ve(te(N._payload),P,W,J,ae)}}if(te)return ae=ae(N),te=J===""?"."+I(N,0):J,V(ae)?(W="",te!=null&&(W=te.replace(le,"$&/")+"/"),ve(ae,P,W,"",function(Gt){return Gt})):ae!=null&&(j(ae)&&(ae=q(ae,W+(ae.key==null||N&&N.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+te)),P.push(ae)),1;te=0;var yt=J===""?".":J+":";if(V(N))for(var Ne=0;Ne<N.length;Ne++)J=N[Ne],be=yt+I(J,Ne),te+=ve(J,P,W,be,ae);else if(Ne=v(N),typeof Ne=="function")for(N=Ne.call(N),Ne=0;!(J=N.next()).done;)J=J.value,be=yt+I(J,Ne++),te+=ve(J,P,W,be,ae);else if(be==="object"){if(typeof N.then=="function")return ve(ee(N),P,W,J,ae);throw P=String(N),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return te}function z(N,P,W){if(N==null)return N;var J=[],ae=0;return ve(N,J,"","",function(be){return P.call(W,be,ae++)}),J}function Q(N){if(N._status===-1){var P=N._result;P=P(),P.then(function(W){(N._status===0||N._status===-1)&&(N._status=1,N._result=W)},function(W){(N._status===0||N._status===-1)&&(N._status=2,N._result=W)}),N._status===-1&&(N._status=0,N._result=P)}if(N._status===1)return N._result.default;throw N._result}var se=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function we(){}return de.Children={map:z,forEach:function(N,P,W){z(N,function(){P.apply(this,arguments)},W)},count:function(N){var P=0;return z(N,function(){P++}),P},toArray:function(N){return z(N,function(P){return P})||[]},only:function(N){if(!j(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},de.Component=T,de.Fragment=i,de.Profiler=l,de.PureComponent=k,de.StrictMode=s,de.Suspense=d,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,de.__COMPILER_RUNTIME={__proto__:null,c:function(N){return R.H.useMemoCache(N)}},de.cache=function(N){return function(){return N.apply(null,arguments)}},de.cloneElement=function(N,P,W){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var J=E({},N.props),ae=N.key,be=void 0;if(P!=null)for(te in P.ref!==void 0&&(be=void 0),P.key!==void 0&&(ae=""+P.key),P)!G.call(P,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&P.ref===void 0||(J[te]=P[te]);var te=arguments.length-2;if(te===1)J.children=W;else if(1<te){for(var yt=Array(te),Ne=0;Ne<te;Ne++)yt[Ne]=arguments[Ne+2];J.children=yt}return Z(N.type,ae,void 0,void 0,be,J)},de.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:o,_context:N},N},de.createElement=function(N,P,W){var J,ae={},be=null;if(P!=null)for(J in P.key!==void 0&&(be=""+P.key),P)G.call(P,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=P[J]);var te=arguments.length-2;if(te===1)ae.children=W;else if(1<te){for(var yt=Array(te),Ne=0;Ne<te;Ne++)yt[Ne]=arguments[Ne+2];ae.children=yt}if(N&&N.defaultProps)for(J in te=N.defaultProps,te)ae[J]===void 0&&(ae[J]=te[J]);return Z(N,be,void 0,void 0,null,ae)},de.createRef=function(){return{current:null}},de.forwardRef=function(N){return{$$typeof:f,render:N}},de.isValidElement=j,de.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:Q}},de.memo=function(N,P){return{$$typeof:p,type:N,compare:P===void 0?null:P}},de.startTransition=function(N){var P=R.T,W={};R.T=W;try{var J=N(),ae=R.S;ae!==null&&ae(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(we,se)}catch(be){se(be)}finally{R.T=P}},de.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},de.use=function(N){return R.H.use(N)},de.useActionState=function(N,P,W){return R.H.useActionState(N,P,W)},de.useCallback=function(N,P){return R.H.useCallback(N,P)},de.useContext=function(N){return R.H.useContext(N)},de.useDebugValue=function(){},de.useDeferredValue=function(N,P){return R.H.useDeferredValue(N,P)},de.useEffect=function(N,P,W){var J=R.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(N,P)},de.useId=function(){return R.H.useId()},de.useImperativeHandle=function(N,P,W){return R.H.useImperativeHandle(N,P,W)},de.useInsertionEffect=function(N,P){return R.H.useInsertionEffect(N,P)},de.useLayoutEffect=function(N,P){return R.H.useLayoutEffect(N,P)},de.useMemo=function(N,P){return R.H.useMemo(N,P)},de.useOptimistic=function(N,P){return R.H.useOptimistic(N,P)},de.useReducer=function(N,P,W){return R.H.useReducer(N,P,W)},de.useRef=function(N){return R.H.useRef(N)},de.useState=function(N){return R.H.useState(N)},de.useSyncExternalStore=function(N,P,W){return R.H.useSyncExternalStore(N,P,W)},de.useTransition=function(){return R.H.useTransition()},de.version="19.1.1",de}var Sy;function Bh(){return Sy||(Sy=1,Xf.exports=U1()),Xf.exports}var H=Bh();const gt=L1(H);function Po(n,e,i,s){const[l,o]=gt.useState(i);return gt.useEffect(()=>{let u=!1;return n().then(f=>{u||o(f)}),()=>{u=!0}},e),l}function cs(){const n=gt.useRef(null),[e]=mh(n);return[e,n]}function mh(n){const[e,i]=gt.useState(new DOMRect(0,0,10,10)),s=gt.useCallback(()=>{const l=n==null?void 0:n.current;l&&i(l.getBoundingClientRect())},[n]);return gt.useLayoutEffect(()=>{const l=n==null?void 0:n.current;if(!l)return;s();const o=new ResizeObserver(s);return o.observe(l),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,n]),[e,s]}function _t(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0)+"ms";const e=n/1e3;if(e<60)return e.toFixed(1)+"s";const i=e/60;if(i<60)return i.toFixed(1)+"m";const s=i/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function z1(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0);const e=n/1024;if(e<1e3)return e.toFixed(1)+"K";const i=e/1024;return i<1e3?i.toFixed(1)+"M":(i/1024).toFixed(1)+"G"}function Ab(n,e,i,s,l){let o=0,u=n.length;for(;o<u;){const f=o+u>>1;i(e,n[f])>=0?o=f+1:u=f}return u}function wy(n){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function rn(n,e){n&&(e=es.getObject(n,e));const[i,s]=gt.useState(e),l=gt.useCallback(o=>{n?es.setObject(n,o):s(o)},[n,s]);return gt.useEffect(()=>{if(n){const o=()=>s(es.getObject(n,e));return es.onChangeEmitter.addEventListener(n,o),()=>es.onChangeEmitter.removeEventListener(n,o)}},[e,n]),[i,l]}const yh=new Map,Nb=new Map;let Fo;function xi(n,e){const[i,s]=gt.useState();Nb.set(n,{setter:s,defaultValue:e});const l=gt.useCallback(o=>{const u=yh.get(Fo||"default")||{};u[n]=o,yh.set(Fo||"default",u),s(o)},[n]);return[i,l]}function H1(n){if(Fo===n)return;Fo=n;const e=yh.get(n)||{};for(const[i,s]of Nb.entries())s.setter(e[i]||s.defaultValue)}class q1{constructor(){this.onChangeEmitter=new EventTarget}getString(e,i){return localStorage[e]||i}setString(e,i){var s;localStorage[e]=i,this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}getObject(e,i){if(!localStorage[e])return i;try{return JSON.parse(localStorage[e])}catch{return i}}setObject(e,i){var s;localStorage[e]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}}const es=new q1;function Ye(...n){return n.filter(Boolean).join(" ")}function Cb(n){n&&(n!=null&&n.scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded(!1):n==null||n.scrollIntoView())}const xy="\\u0000-\\u0020\\u007f-\\u009f",kb=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+xy+'"]{2,}[^\\s'+xy+`"')}\\],:;.!?]`,"ug");function $1(){const[n,e]=gt.useState(!1),i=gt.useCallback(()=>{const s=[];return e(l=>(s.push(setTimeout(()=>e(!1),1e3)),l?(s.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>s.forEach(clearTimeout)},[e]);return[n,i]}function n2(){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 e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode";es.getString("theme",e)==="dark-mode"?document.documentElement.classList.add("dark-mode"):document.documentElement.classList.add("light-mode")}const Uh=new Set;function I1(){const n=bh(),e=n==="dark-mode"?"light-mode":"dark-mode";document.documentElement.classList.remove(n),document.documentElement.classList.add(e),es.setString("theme",e);for(const i of Uh)i(e)}function i2(n){Uh.add(n)}function s2(n){Uh.delete(n)}function bh(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":"light-mode"}function V1(){const[n,e]=gt.useState(bh()==="dark-mode");return[n,i=>{bh()==="dark-mode"!==i&&I1(),e(i)}]}var Pf={exports:{}},Oa={},Ff={exports:{}},Qf={};/**
19
19
  * @license React
20
20
  * scheduler.production.js
21
21
  *
@@ -47,8 +47,8 @@ var R1=Object.defineProperty;var j1=(n,e,i)=>e in n?R1(n,e,{enumerable:!0,config
47
47
  `+A[c].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=c&&0<=h);break}}}finally{qc=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?xs(a):""}function AS(t){switch(t.tag){case 26:case 27:case 5:return xs(t.type);case 16:return xs("Lazy");case 13:return xs("Suspense");case 19:return xs("SuspenseList");case 0:case 15:return $c(t.type,!1);case 11:return $c(t.type.render,!1);case 1:return $c(t.type,!0);case 31:return xs("Activity");default:return""}}function Hd(t){try{var r="";do r+=AS(t),t=t.return;while(t);return r}catch(a){return`
48
48
  Error generating stack: `+a.message+`
49
49
  `+a.stack}}function Xt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qd(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function NS(t){var r=qd(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),c=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,g=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(w){c=""+w,g.call(this,w)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ml(t){t._valueTracker||(t._valueTracker=NS(t))}function $d(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),c="";return t&&(c=qd(t)?t.checked?"true":"false":t.value),t=c,t!==a?(r.setValue(t),!0):!1}function yl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var CS=/[\n"\\]/g;function Pt(t){return t.replace(CS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ic(t,r,a,c,h,g,w,_){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),r!=null?w==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Xt(r)):t.value!==""+Xt(r)&&(t.value=""+Xt(r)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),r!=null?Vc(t,w,Xt(r)):a!=null?Vc(t,w,Xt(a)):c!=null&&t.removeAttribute("value"),h==null&&g!=null&&(t.defaultChecked=!!g),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+Xt(_):t.removeAttribute("name")}function Id(t,r,a,c,h,g,w,_){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||a!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;a=a!=null?""+Xt(a):"",r=r!=null?""+Xt(r):a,_||r===t.value||(t.value=r),t.defaultValue=r}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=_?t.checked:!!c,t.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function Vc(t,r,a){r==="number"&&yl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function _s(t,r,a,c){if(t=t.options,r){r={};for(var h=0;h<a.length;h++)r["$"+a[h]]=!0;for(a=0;a<t.length;a++)h=r.hasOwnProperty("$"+t[a].value),t[a].selected!==h&&(t[a].selected=h),h&&c&&(t[a].defaultSelected=!0)}else{for(a=""+Xt(a),r=null,h=0;h<t.length;h++){if(t[h].value===a){t[h].selected=!0,c&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function Vd(t,r,a){if(r!=null&&(r=""+Xt(r),r!==t.value&&(t.value=r),a==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=a!=null?""+Xt(a):""}function Gd(t,r,a,c){if(r==null){if(c!=null){if(a!=null)throw Error(s(92));if(ve(c)){if(1<c.length)throw Error(s(93));c=c[0]}a=c}a==null&&(a=""),r=a}a=Xt(r),t.defaultValue=a,c=t.textContent,c===a&&c!==""&&c!==null&&(t.value=c)}function Ts(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var kS=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 Kd(t,r,a){var c=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?c?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":c?t.setProperty(r,a):typeof a!="number"||a===0||kS.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function Yd(t,r,a){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,a!=null){for(var c in a)!a.hasOwnProperty(c)||r!=null&&r.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var h in r)c=r[h],r.hasOwnProperty(h)&&a[h]!==c&&Kd(t,h,c)}else for(var g in r)r.hasOwnProperty(g)&&Kd(t,g,r[g])}function Gc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var MS=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"]]),OS=/^[\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 bl(t){return OS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Kc=null;function Yc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Es=null,As=null;function Xd(t){var r=vs(t);if(r&&(t=r.stateNode)){var a=t[Et]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ic(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pt(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var c=a[r];if(c!==t&&c.form===t.form){var h=c[Et]||null;if(!h)throw Error(s(90));Ic(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<a.length;r++)c=a[r],c.form===t.form&&$d(c)}break e;case"textarea":Vd(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&_s(t,!!a.multiple,r,!1)}}}var Xc=!1;function Pd(t,r,a){if(Xc)return t(r,a);Xc=!0;try{var c=t(r);return c}finally{if(Xc=!1,(Es!==null||As!==null)&&(io(),Es&&(r=Es,t=As,As=Es=null,Xd(r),t)))for(r=0;r<t.length;r++)Xd(t[r])}}function zr(t,r){var a=t.stateNode;if(a===null)return null;var c=a[Et]||null;if(c===null)return null;a=c[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(s(231,r,typeof a));return a}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pc=!1;if(kn)try{var Hr={};Object.defineProperty(Hr,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",Hr,Hr),window.removeEventListener("test",Hr,Hr)}catch{Pc=!1}var ei=null,Fc=null,vl=null;function Fd(){if(vl)return vl;var t,r=Fc,a=r.length,c,h="value"in ei?ei.value:ei.textContent,g=h.length;for(t=0;t<a&&r[t]===h[t];t++);var w=a-t;for(c=1;c<=w&&r[a-c]===h[g-c];c++);return vl=h.slice(t,1<c?1-c:void 0)}function Sl(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function wl(){return!0}function Qd(){return!1}function At(t){function r(a,c,h,g,w){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(a=t[_],this[_]=a?a(g):g[_]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?wl:Qd,this.isPropagationStopped=Qd,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wl)},persist:function(){},isPersistent:wl}),r}var Di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xl=At(Di),qr=m({},Di,{view:0,detail:0}),RS=At(qr),Qc,Zc,$r,_l=m({},qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$r&&($r&&t.type==="mousemove"?(Qc=t.screenX-$r.screenX,Zc=t.screenY-$r.screenY):Zc=Qc=0,$r=t),Qc)},movementY:function(t){return"movementY"in t?t.movementY:Zc}}),Zd=At(_l),jS=m({},_l,{dataTransfer:0}),LS=At(jS),DS=m({},qr,{relatedTarget:0}),Jc=At(DS),BS=m({},Di,{animationName:0,elapsedTime:0,pseudoElement:0}),US=At(BS),zS=m({},Di,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),HS=At(zS),qS=m({},Di,{data:0}),Jd=At(qS),$S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IS={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"},VS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=VS[t])?!!r[t]:!1}function Wc(){return GS}var KS=m({},qr,{key:function(t){if(t.key){var r=$S[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Sl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?IS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wc,charCode:function(t){return t.type==="keypress"?Sl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Sl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),YS=At(KS),XS=m({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=At(XS),PS=m({},qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wc}),FS=At(PS),QS=m({},Di,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZS=At(QS),JS=m({},_l,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),WS=At(JS),ew=m({},Di,{newState:0,oldState:0}),tw=At(ew),nw=[9,13,27,32],eu=kn&&"CompositionEvent"in window,Ir=null;kn&&"documentMode"in document&&(Ir=document.documentMode);var iw=kn&&"TextEvent"in window&&!Ir,ep=kn&&(!eu||Ir&&8<Ir&&11>=Ir),tp=" ",np=!1;function ip(t,r){switch(t){case"keyup":return nw.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ns=!1;function sw(t,r){switch(t){case"compositionend":return sp(r);case"keypress":return r.which!==32?null:(np=!0,tp);case"textInput":return t=r.data,t===tp&&np?null:t;default:return null}}function rw(t,r){if(Ns)return t==="compositionend"||!eu&&ip(t,r)?(t=Fd(),vl=Fc=ei=null,Ns=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ep&&r.locale!=="ko"?null:r.data;default:return null}}var aw={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 rp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!aw[t.type]:r==="textarea"}function ap(t,r,a,c){Es?As?As.push(c):As=[c]:Es=c,r=co(r,"onChange"),0<r.length&&(a=new xl("onChange","change",null,a,c),t.push({event:a,listeners:r}))}var Vr=null,Gr=null;function lw(t){qm(t,0)}function Tl(t){var r=Ur(t);if($d(r))return t}function lp(t,r){if(t==="change")return r}var op=!1;if(kn){var tu;if(kn){var nu="oninput"in document;if(!nu){var cp=document.createElement("div");cp.setAttribute("oninput","return;"),nu=typeof cp.oninput=="function"}tu=nu}else tu=!1;op=tu&&(!document.documentMode||9<document.documentMode)}function up(){Vr&&(Vr.detachEvent("onpropertychange",fp),Gr=Vr=null)}function fp(t){if(t.propertyName==="value"&&Tl(Gr)){var r=[];ap(r,Gr,t,Yc(t)),Pd(lw,r)}}function ow(t,r,a){t==="focusin"?(up(),Vr=r,Gr=a,Vr.attachEvent("onpropertychange",fp)):t==="focusout"&&up()}function cw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Tl(Gr)}function uw(t,r){if(t==="click")return Tl(r)}function fw(t,r){if(t==="input"||t==="change")return Tl(r)}function hw(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Bt=typeof Object.is=="function"?Object.is:hw;function Kr(t,r){if(Bt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!cn.call(r,h)||!Bt(t[h],r[h]))return!1}return!0}function hp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dp(t,r){var a=hp(t);t=0;for(var c;a;){if(a.nodeType===3){if(c=t+a.textContent.length,t<=r&&c>=r)return{node:a,offset:r-t};t=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hp(a)}}function pp(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?pp(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function gp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=yl(t.document);r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=yl(t.document)}return r}function iu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var dw=kn&&"documentMode"in document&&11>=document.documentMode,Cs=null,su=null,Yr=null,ru=!1;function mp(t,r,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ru||Cs==null||Cs!==yl(c)||(c=Cs,"selectionStart"in c&&iu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Yr&&Kr(Yr,c)||(Yr=c,c=co(su,"onSelect"),0<c.length&&(r=new xl("onSelect","select",null,r,a),t.push({event:r,listeners:c}),r.target=Cs)))}function Bi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var ks={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},au={},yp={};kn&&(yp=document.createElement("div").style,"AnimationEvent"in window||(delete ks.animationend.animation,delete ks.animationiteration.animation,delete ks.animationstart.animation),"TransitionEvent"in window||delete ks.transitionend.transition);function Ui(t){if(au[t])return au[t];if(!ks[t])return t;var r=ks[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in yp)return au[t]=r[a];return t}var bp=Ui("animationend"),vp=Ui("animationiteration"),Sp=Ui("animationstart"),pw=Ui("transitionrun"),gw=Ui("transitionstart"),mw=Ui("transitioncancel"),wp=Ui("transitionend"),xp=new Map,lu="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(" ");lu.push("scrollEnd");function fn(t,r){xp.set(t,r),Li(r,[t])}var _p=new WeakMap;function Ft(t,r){if(typeof t=="object"&&t!==null){var a=_p.get(t);return a!==void 0?a:(r={value:t,source:r,stack:Hd(r)},_p.set(t,r),r)}return{value:t,source:r,stack:Hd(r)}}var Qt=[],Ms=0,ou=0;function El(){for(var t=Ms,r=ou=Ms=0;r<t;){var a=Qt[r];Qt[r++]=null;var c=Qt[r];Qt[r++]=null;var h=Qt[r];Qt[r++]=null;var g=Qt[r];if(Qt[r++]=null,c!==null&&h!==null){var w=c.pending;w===null?h.next=h:(h.next=w.next,w.next=h),c.pending=h}g!==0&&Tp(a,h,g)}}function Al(t,r,a,c){Qt[Ms++]=t,Qt[Ms++]=r,Qt[Ms++]=a,Qt[Ms++]=c,ou|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function cu(t,r,a,c){return Al(t,r,a,c),Nl(t)}function Os(t,r){return Al(t,null,null,r),Nl(t)}function Tp(t,r,a){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a);for(var h=!1,g=t.return;g!==null;)g.childLanes|=a,c=g.alternate,c!==null&&(c.childLanes|=a),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(h=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,h&&r!==null&&(h=31-vt(a),t=g.hiddenUpdates,c=t[h],c===null?t[h]=[r]:c.push(r),r.lane=a|536870912),g):null}function Nl(t){if(50<ya)throw ya=0,mf=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Rs={};function yw(t,r,a,c){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(t,r,a,c){return new yw(t,r,a,c)}function uu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mn(t,r){var a=t.alternate;return a===null?(a=Ut(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Ep(t,r){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,r=a.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Cl(t,r,a,c,h,g){var w=0;if(c=t,typeof t=="function")uu(t)&&(w=1);else if(typeof t=="string")w=v1(t,a,ae.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case j:return t=Ut(31,a,r,h),t.elementType=j,t.lanes=g,t;case E:return zi(a.children,h,g,r);case x:w=8,h|=24;break;case T:return t=Ut(12,a,r,h|2),t.elementType=T,t.lanes=g,t;case R:return t=Ut(13,a,r,h),t.elementType=R,t.lanes=g,t;case G:return t=Ut(19,a,r,h),t.elementType=G,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:case $:w=10;break e;case k:w=9;break e;case V:w=11;break e;case Z:w=14;break e;case q:w=16,c=null;break e}w=29,a=Error(s(130,t===null?"null":typeof t,"")),c=null}return r=Ut(w,a,r,h),r.elementType=t,r.type=c,r.lanes=g,r}function zi(t,r,a,c){return t=Ut(7,t,c,r),t.lanes=a,t}function fu(t,r,a){return t=Ut(6,t,null,r),t.lanes=a,t}function hu(t,r,a){return r=Ut(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var js=[],Ls=0,kl=null,Ml=0,Zt=[],Jt=0,Hi=null,On=1,Rn="";function qi(t,r){js[Ls++]=Ml,js[Ls++]=kl,kl=t,Ml=r}function Ap(t,r,a){Zt[Jt++]=On,Zt[Jt++]=Rn,Zt[Jt++]=Hi,Hi=t;var c=On;t=Rn;var h=32-vt(c)-1;c&=~(1<<h),a+=1;var g=32-vt(r)+h;if(30<g){var w=h-h%5;g=(c&(1<<w)-1).toString(32),c>>=w,h-=w,On=1<<32-vt(r)+h|a<<h|c,Rn=g+t}else On=1<<g|a<<h|c,Rn=t}function du(t){t.return!==null&&(qi(t,1),Ap(t,1,0))}function pu(t){for(;t===kl;)kl=js[--Ls],js[Ls]=null,Ml=js[--Ls],js[Ls]=null;for(;t===Hi;)Hi=Zt[--Jt],Zt[Jt]=null,Rn=Zt[--Jt],Zt[Jt]=null,On=Zt[--Jt],Zt[Jt]=null}var St=null,$e=null,_e=!1,$i=null,yn=!1,gu=Error(s(519));function Ii(t){var r=Error(s(418,""));throw Fr(Ft(r,t)),gu}function Np(t){var r=t.stateNode,a=t.type,c=t.memoizedProps;switch(r[ft]=t,r[Et]=c,a){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(a=0;a<va.length;a++)ye(va[a],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":ye("invalid",r),Id(r,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),ml(r);break;case"select":ye("invalid",r);break;case"textarea":ye("invalid",r),Gd(r,c.value,c.defaultValue,c.children),ml(r)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||c.suppressHydrationWarning===!0||Gm(r.textContent,a)?(c.popover!=null&&(ye("beforetoggle",r),ye("toggle",r)),c.onScroll!=null&&ye("scroll",r),c.onScrollEnd!=null&&ye("scrollend",r),c.onClick!=null&&(r.onclick=uo),r=!0):r=!1,r||Ii(t)}function Cp(t){for(St=t.return;St;)switch(St.tag){case 5:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:St=St.return}}function Xr(t){if(t!==St)return!1;if(!_e)return Cp(t),_e=!0,!1;var r=t.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Rf(t.type,t.memoizedProps)),a=!a),a&&$e&&Ii(t),Cp(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(r===0){$e=dn(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}$e=null}}else r===27?(r=$e,mi(t.type)?(t=Bf,Bf=null,$e=t):$e=r):$e=St?dn(t.stateNode.nextSibling):null;return!0}function Pr(){$e=St=null,_e=!1}function kp(){var t=$i;return t!==null&&(kt===null?kt=t:kt.push.apply(kt,t),$i=null),t}function Fr(t){$i===null?$i=[t]:$i.push(t)}var mu=P(null),Vi=null,jn=null;function ti(t,r,a){J(mu,r._currentValue),r._currentValue=a}function Ln(t){t._currentValue=mu.current,W(mu)}function yu(t,r,a){for(;t!==null;){var c=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),t===a)break;t=t.return}}function bu(t,r,a,c){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var g=h.dependencies;if(g!==null){var w=h.child;g=g.firstContext;e:for(;g!==null;){var _=g;g=h;for(var A=0;A<r.length;A++)if(_.context===r[A]){g.lanes|=a,_=g.alternate,_!==null&&(_.lanes|=a),yu(g.return,a,t),c||(w=null);break e}g=_.next}}else if(h.tag===18){if(w=h.return,w===null)throw Error(s(341));w.lanes|=a,g=w.alternate,g!==null&&(g.lanes|=a),yu(w,a,t),w=null}else w=h.child;if(w!==null)w.return=h;else for(w=h;w!==null;){if(w===t){w=null;break}if(h=w.sibling,h!==null){h.return=w.return,w=h;break}w=w.return}h=w}}function Qr(t,r,a,c){t=null;for(var h=r,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var w=h.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var _=h.type;Bt(h.pendingProps.value,w.value)||(t!==null?t.push(_):t=[_])}}else if(h===yt.current){if(w=h.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Ea):t=[Ea])}h=h.return}t!==null&&bu(r,t,a,c),r.flags|=262144}function Ol(t){for(t=t.firstContext;t!==null;){if(!Bt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Gi(t){Vi=t,jn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ht(t){return Mp(Vi,t)}function Rl(t,r){return Vi===null&&Gi(t),Mp(t,r)}function Mp(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},jn===null){if(t===null)throw Error(s(308));jn=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else jn=jn.next=r;return a}var bw=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(a,c){t.push(c)}};this.abort=function(){r.aborted=!0,t.forEach(function(a){return a()})}},vw=n.unstable_scheduleCallback,Sw=n.unstable_NormalPriority,Ze={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vu(){return{controller:new bw,data:new Map,refCount:0}}function Zr(t){t.refCount--,t.refCount===0&&vw(Sw,function(){t.controller.abort()})}var Jr=null,Su=0,Ds=0,Bs=null;function ww(t,r){if(Jr===null){var a=Jr=[];Su=0,Ds=_f(),Bs={status:"pending",value:void 0,then:function(c){a.push(c)}}}return Su++,r.then(Op,Op),r}function Op(){if(--Su===0&&Jr!==null){Bs!==null&&(Bs.status="fulfilled");var t=Jr;Jr=null,Ds=0,Bs=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function xw(t,r){var a=[],c={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return t.then(function(){c.status="fulfilled",c.value=r;for(var h=0;h<a.length;h++)(0,a[h])(r)},function(h){for(c.status="rejected",c.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),c}var Rp=z.S;z.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&ww(t,r),Rp!==null&&Rp(t,r)};var Ki=P(null);function wu(){var t=Ki.current;return t!==null?t:je.pooledCache}function jl(t,r){r===null?J(Ki,Ki.current):J(Ki,r.pool)}function jp(){var t=wu();return t===null?null:{parent:Ze._currentValue,pool:t}}var Wr=Error(s(460)),Lp=Error(s(474)),Ll=Error(s(542)),xu={then:function(){}};function Dp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Dl(){}function Bp(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Dl,Dl),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,zp(t),t;default:if(typeof r.status=="string")r.then(Dl,Dl);else{if(t=je,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(c){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=c}},function(c){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,zp(t),t}throw ea=r,Wr}}var ea=null;function Up(){if(ea===null)throw Error(s(459));var t=ea;return ea=null,t}function zp(t){if(t===Wr||t===Ll)throw Error(s(483))}var ni=!1;function _u(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ii(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function si(t,r,a){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var h=c.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),c.pending=r,r=Nl(t),Tp(t,null,a),r}return Al(t,c,r,a),Nl(t)}function ta(t,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var c=r.lanes;c&=t.pendingLanes,a|=c,r.lanes=a,Od(t,a)}}function Eu(t,r){var a=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?h=g=w:g=g.next=w,a=a.next}while(a!==null);g===null?h=g=r:g=g.next=r}else h=g=r;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=r:t.next=r,a.lastBaseUpdate=r}var Au=!1;function na(){if(Au){var t=Bs;if(t!==null)throw t}}function ia(t,r,a,c){Au=!1;var h=t.updateQueue;ni=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var A=_,D=A.next;A.next=null,w===null?g=D:w.next=D,w=A;var K=t.alternate;K!==null&&(K=K.updateQueue,_=K.lastBaseUpdate,_!==w&&(_===null?K.firstBaseUpdate=D:_.next=D,K.lastBaseUpdate=A))}if(g!==null){var X=h.baseState;w=0,K=D=A=null,_=g;do{var B=_.lane&-536870913,U=B!==_.lane;if(U?(Se&B)===B:(c&B)===B){B!==0&&B===Ds&&(Au=!0),K!==null&&(K=K.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var fe=t,oe=_;B=r;var Me=a;switch(oe.tag){case 1:if(fe=oe.payload,typeof fe=="function"){X=fe.call(Me,X,B);break e}X=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=oe.payload,B=typeof fe=="function"?fe.call(Me,X,B):fe,B==null)break e;X=m({},X,B);break e;case 2:ni=!0}}B=_.callback,B!==null&&(t.flags|=64,U&&(t.flags|=8192),U=h.callbacks,U===null?h.callbacks=[B]:U.push(B))}else U={lane:B,tag:_.tag,payload:_.payload,callback:_.callback,next:null},K===null?(D=K=U,A=X):K=K.next=U,w|=B;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;U=_,_=U.next,U.next=null,h.lastBaseUpdate=U,h.shared.pending=null}}while(!0);K===null&&(A=X),h.baseState=A,h.firstBaseUpdate=D,h.lastBaseUpdate=K,g===null&&(h.shared.lanes=0),hi|=w,t.lanes=w,t.memoizedState=X}}function Hp(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function qp(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Hp(a[t],r)}var Us=P(null),Bl=P(0);function $p(t,r){t=$n,J(Bl,t),J(Us,r),$n=t|r.baseLanes}function Nu(){J(Bl,$n),J(Us,Us.current)}function Cu(){$n=Bl.current,W(Us),W(Bl)}var ri=0,pe=null,Ce=null,Pe=null,Ul=!1,zs=!1,Yi=!1,zl=0,sa=0,Hs=null,_w=0;function Ve(){throw Error(s(321))}function ku(t,r){if(r===null)return!1;for(var a=0;a<r.length&&a<t.length;a++)if(!Bt(t[a],r[a]))return!1;return!0}function Mu(t,r,a,c,h,g){return ri=g,pe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=t===null||t.memoizedState===null?Tg:Eg,Yi=!1,g=a(c,h),Yi=!1,zs&&(g=Vp(r,a,c,h)),Ip(t),g}function Ip(t){z.H=Gl;var r=Ce!==null&&Ce.next!==null;if(ri=0,Pe=Ce=pe=null,Ul=!1,sa=0,Hs=null,r)throw Error(s(300));t===null||tt||(t=t.dependencies,t!==null&&Ol(t)&&(tt=!0))}function Vp(t,r,a,c){pe=t;var h=0;do{if(zs&&(Hs=null),sa=0,zs=!1,25<=h)throw Error(s(301));if(h+=1,Pe=Ce=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}z.H=Mw,g=r(a,c)}while(zs);return g}function Tw(){var t=z.H,r=t.useState()[0];return r=typeof r.then=="function"?ra(r):r,t=t.useState()[0],(Ce!==null?Ce.memoizedState:null)!==t&&(pe.flags|=1024),r}function Ou(){var t=zl!==0;return zl=0,t}function Ru(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function ju(t){if(Ul){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ul=!1}ri=0,Pe=Ce=pe=null,zs=!1,sa=zl=0,Hs=null}function Nt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?pe.memoizedState=Pe=t:Pe=Pe.next=t,Pe}function Fe(){if(Ce===null){var t=pe.alternate;t=t!==null?t.memoizedState:null}else t=Ce.next;var r=Pe===null?pe.memoizedState:Pe.next;if(r!==null)Pe=r,Ce=t;else{if(t===null)throw pe.alternate===null?Error(s(467)):Error(s(310));Ce=t,t={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Pe===null?pe.memoizedState=Pe=t:Pe=Pe.next=t}return Pe}function Lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ra(t){var r=sa;return sa+=1,Hs===null&&(Hs=[]),t=Bp(Hs,t,r),r=pe,(Pe===null?r.memoizedState:Pe.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?Tg:Eg),t}function Hl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ra(t);if(t.$$typeof===$)return ht(t)}throw Error(s(438,String(t)))}function Du(t){var r=null,a=pe.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var c=pe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(r={data:c.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=Lu(),pe.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(t),c=0;c<t;c++)a[c]=ie;return r.index++,a}function Dn(t,r){return typeof r=="function"?r(t):r}function ql(t){var r=Fe();return Bu(r,Ce,t)}function Bu(t,r,a){var c=t.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=a;var h=t.baseQueue,g=c.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}r.baseQueue=h=g,c.pending=null}if(g=t.baseState,h===null)t.memoizedState=g;else{r=h.next;var _=w=null,A=null,D=r,K=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Se&X)===X:(ri&X)===X){var B=D.revertLane;if(B===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===Ds&&(K=!0);else if((ri&B)===B){D=D.next,B===Ds&&(K=!0);continue}else X={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(_=A=X,w=g):A=A.next=X,pe.lanes|=B,hi|=B;X=D.action,Yi&&a(g,X),g=D.hasEagerState?D.eagerState:a(g,X)}else B={lane:X,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(_=A=B,w=g):A=A.next=B,pe.lanes|=X,hi|=X;D=D.next}while(D!==null&&D!==r);if(A===null?w=g:A.next=_,!Bt(g,t.memoizedState)&&(tt=!0,K&&(a=Bs,a!==null)))throw a;t.memoizedState=g,t.baseState=w,t.baseQueue=A,c.lastRenderedState=g}return h===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function Uu(t){var r=Fe(),a=r.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=t;var c=a.dispatch,h=a.pending,g=r.memoizedState;if(h!==null){a.pending=null;var w=h=h.next;do g=t(g,w.action),w=w.next;while(w!==h);Bt(g,r.memoizedState)||(tt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),a.lastRenderedState=g}return[g,c]}function Gp(t,r,a){var c=pe,h=Fe(),g=_e;if(g){if(a===void 0)throw Error(s(407));a=a()}else a=r();var w=!Bt((Ce||h).memoizedState,a);w&&(h.memoizedState=a,tt=!0),h=h.queue;var _=Xp.bind(null,c,h,t);if(aa(2048,8,_,[t]),h.getSnapshot!==r||w||Pe!==null&&Pe.memoizedState.tag&1){if(c.flags|=2048,qs(9,$l(),Yp.bind(null,c,h,a,r),null),je===null)throw Error(s(349));g||(ri&124)!==0||Kp(c,r,a)}return a}function Kp(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=pe.updateQueue,r===null?(r=Lu(),pe.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function Yp(t,r,a,c){r.value=a,r.getSnapshot=c,Pp(r)&&Fp(t)}function Xp(t,r,a){return a(function(){Pp(r)&&Fp(t)})}function Pp(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Bt(t,a)}catch{return!0}}function Fp(t){var r=Os(t,2);r!==null&&It(r,t,2)}function zu(t){var r=Nt();if(typeof t=="function"){var a=t;if(t=a(),Yi){Yt(!0);try{a()}finally{Yt(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:t},r}function Qp(t,r,a,c){return t.baseState=a,Bu(t,Ce,typeof c=="function"?c:Dn)}function Ew(t,r,a,c,h){if(Vl(t))throw Error(s(485));if(t=r.action,t!==null){var g={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){g.listeners.push(w)}};z.T!==null?a(!0):g.isTransition=!1,c(g),a=r.pending,a===null?(g.next=r.pending=g,Zp(r,g)):(g.next=a.next,r.pending=a.next=g)}}function Zp(t,r){var a=r.action,c=r.payload,h=t.state;if(r.isTransition){var g=z.T,w={};z.T=w;try{var _=a(h,c),A=z.S;A!==null&&A(w,_),Jp(t,r,_)}catch(D){Hu(t,r,D)}finally{z.T=g}}else try{g=a(h,c),Jp(t,r,g)}catch(D){Hu(t,r,D)}}function Jp(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(c){Wp(t,r,c)},function(c){return Hu(t,r,c)}):Wp(t,r,a)}function Wp(t,r,a){r.status="fulfilled",r.value=a,eg(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,Zp(t,a)))}function Hu(t,r,a){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do r.status="rejected",r.reason=a,eg(r),r=r.next;while(r!==c)}t.action=null}function eg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function tg(t,r){return r}function ng(t,r){if(_e){var a=je.formState;if(a!==null){e:{var c=pe;if(_e){if($e){t:{for(var h=$e,g=yn;h.nodeType!==8;){if(!g){h=null;break t}if(h=dn(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){$e=dn(h.nextSibling),c=h.data==="F!";break e}}Ii(c)}c=!1}c&&(r=a[0])}}return a=Nt(),a.memoizedState=a.baseState=r,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tg,lastRenderedState:r},a.queue=c,a=wg.bind(null,pe,c),c.dispatch=a,c=zu(!1),g=Gu.bind(null,pe,!1,c.queue),c=Nt(),h={state:r,dispatch:null,action:t,pending:null},c.queue=h,a=Ew.bind(null,pe,h,g,a),h.dispatch=a,c.memoizedState=t,[r,a,!1]}function ig(t){var r=Fe();return sg(r,Ce,t)}function sg(t,r,a){if(r=Bu(t,r,tg)[0],t=ql(Dn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var c=ra(r)}catch(w){throw w===Wr?Ll:w}else c=r;r=Fe();var h=r.queue,g=h.dispatch;return a!==r.memoizedState&&(pe.flags|=2048,qs(9,$l(),Aw.bind(null,h,a),null)),[c,g,t]}function Aw(t,r){t.action=r}function rg(t){var r=Fe(),a=Ce;if(a!==null)return sg(r,a,t);Fe(),r=r.memoizedState,a=Fe();var c=a.queue.dispatch;return a.memoizedState=t,[r,c,!1]}function qs(t,r,a,c){return t={tag:t,create:a,deps:c,inst:r,next:null},r=pe.updateQueue,r===null&&(r=Lu(),pe.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=t.next=t:(c=a.next,a.next=t,t.next=c,r.lastEffect=t),t}function $l(){return{destroy:void 0,resource:void 0}}function ag(){return Fe().memoizedState}function Il(t,r,a,c){var h=Nt();c=c===void 0?null:c,pe.flags|=t,h.memoizedState=qs(1|r,$l(),a,c)}function aa(t,r,a,c){var h=Fe();c=c===void 0?null:c;var g=h.memoizedState.inst;Ce!==null&&c!==null&&ku(c,Ce.memoizedState.deps)?h.memoizedState=qs(r,g,a,c):(pe.flags|=t,h.memoizedState=qs(1|r,g,a,c))}function lg(t,r){Il(8390656,8,t,r)}function og(t,r){aa(2048,8,t,r)}function cg(t,r){return aa(4,2,t,r)}function ug(t,r){return aa(4,4,t,r)}function fg(t,r){if(typeof r=="function"){t=t();var a=r(t);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function hg(t,r,a){a=a!=null?a.concat([t]):null,aa(4,4,fg.bind(null,r,t),a)}function qu(){}function dg(t,r){var a=Fe();r=r===void 0?null:r;var c=a.memoizedState;return r!==null&&ku(r,c[1])?c[0]:(a.memoizedState=[t,r],t)}function pg(t,r){var a=Fe();r=r===void 0?null:r;var c=a.memoizedState;if(r!==null&&ku(r,c[1]))return c[0];if(c=t(),Yi){Yt(!0);try{t()}finally{Yt(!1)}}return a.memoizedState=[c,r],c}function $u(t,r,a){return a===void 0||(ri&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=ym(),pe.lanes|=t,hi|=t,a)}function gg(t,r,a,c){return Bt(a,r)?a:Us.current!==null?(t=$u(t,a,c),Bt(t,r)||(tt=!0),t):(ri&42)===0?(tt=!0,t.memoizedState=a):(t=ym(),pe.lanes|=t,hi|=t,r)}function mg(t,r,a,c,h){var g=Q.p;Q.p=g!==0&&8>g?g:8;var w=z.T,_={};z.T=_,Gu(t,!1,r,a);try{var A=h(),D=z.S;if(D!==null&&D(_,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var K=xw(A,c);la(t,r,K,$t(t))}else la(t,r,c,$t(t))}catch(X){la(t,r,{then:function(){},status:"rejected",reason:X},$t())}finally{Q.p=g,z.T=w}}function Nw(){}function Iu(t,r,a,c){if(t.tag!==5)throw Error(s(476));var h=yg(t).queue;mg(t,h,r,se,a===null?Nw:function(){return bg(t),a(c)})}function yg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:se},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function bg(t){var r=yg(t).next.queue;la(t,r,{},$t())}function Vu(){return ht(Ea)}function vg(){return Fe().memoizedState}function Sg(){return Fe().memoizedState}function Cw(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=$t();t=ii(a);var c=si(r,t,a);c!==null&&(It(c,r,a),ta(c,r,a)),r={cache:vu()},t.payload=r;return}r=r.return}}function kw(t,r,a){var c=$t();a={lane:c,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Vl(t)?xg(r,a):(a=cu(t,r,a,c),a!==null&&(It(a,t,c),_g(a,r,c)))}function wg(t,r,a){var c=$t();la(t,r,a,c)}function la(t,r,a,c){var h={lane:c,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Vl(t))xg(r,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var w=r.lastRenderedState,_=g(w,a);if(h.hasEagerState=!0,h.eagerState=_,Bt(_,w))return Al(t,r,h,0),je===null&&El(),!1}catch{}finally{}if(a=cu(t,r,h,c),a!==null)return It(a,t,c),_g(a,r,c),!0}return!1}function Gu(t,r,a,c){if(c={lane:2,revertLane:_f(),action:c,hasEagerState:!1,eagerState:null,next:null},Vl(t)){if(r)throw Error(s(479))}else r=cu(t,a,c,2),r!==null&&It(r,t,2)}function Vl(t){var r=t.alternate;return t===pe||r!==null&&r===pe}function xg(t,r){zs=Ul=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function _g(t,r,a){if((a&4194048)!==0){var c=r.lanes;c&=t.pendingLanes,a|=c,r.lanes=a,Od(t,a)}}var Gl={readContext:ht,use:Hl,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve},Tg={readContext:ht,use:Hl,useCallback:function(t,r){return Nt().memoizedState=[t,r===void 0?null:r],t},useContext:ht,useEffect:lg,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,Il(4194308,4,fg.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Il(4194308,4,t,r)},useInsertionEffect:function(t,r){Il(4,2,t,r)},useMemo:function(t,r){var a=Nt();r=r===void 0?null:r;var c=t();if(Yi){Yt(!0);try{t()}finally{Yt(!1)}}return a.memoizedState=[c,r],c},useReducer:function(t,r,a){var c=Nt();if(a!==void 0){var h=a(r);if(Yi){Yt(!0);try{a(r)}finally{Yt(!1)}}}else h=r;return c.memoizedState=c.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},c.queue=t,t=t.dispatch=kw.bind(null,pe,t),[c.memoizedState,t]},useRef:function(t){var r=Nt();return t={current:t},r.memoizedState=t},useState:function(t){t=zu(t);var r=t.queue,a=wg.bind(null,pe,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:qu,useDeferredValue:function(t,r){var a=Nt();return $u(a,t,r)},useTransition:function(){var t=zu(!1);return t=mg.bind(null,pe,t.queue,!0,!1),Nt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var c=pe,h=Nt();if(_e){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),je===null)throw Error(s(349));(Se&124)!==0||Kp(c,r,a)}h.memoizedState=a;var g={value:a,getSnapshot:r};return h.queue=g,lg(Xp.bind(null,c,g,t),[t]),c.flags|=2048,qs(9,$l(),Yp.bind(null,c,g,a,r),null),a},useId:function(){var t=Nt(),r=je.identifierPrefix;if(_e){var a=Rn,c=On;a=(c&~(1<<32-vt(c)-1)).toString(32)+a,r="«"+r+"R"+a,a=zl++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=_w++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Vu,useFormState:ng,useActionState:ng,useOptimistic:function(t){var r=Nt();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Gu.bind(null,pe,!0,a),a.dispatch=r,[t,r]},useMemoCache:Du,useCacheRefresh:function(){return Nt().memoizedState=Cw.bind(null,pe)}},Eg={readContext:ht,use:Hl,useCallback:dg,useContext:ht,useEffect:og,useImperativeHandle:hg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:pg,useReducer:ql,useRef:ag,useState:function(){return ql(Dn)},useDebugValue:qu,useDeferredValue:function(t,r){var a=Fe();return gg(a,Ce.memoizedState,t,r)},useTransition:function(){var t=ql(Dn)[0],r=Fe().memoizedState;return[typeof t=="boolean"?t:ra(t),r]},useSyncExternalStore:Gp,useId:vg,useHostTransitionStatus:Vu,useFormState:ig,useActionState:ig,useOptimistic:function(t,r){var a=Fe();return Qp(a,Ce,t,r)},useMemoCache:Du,useCacheRefresh:Sg},Mw={readContext:ht,use:Hl,useCallback:dg,useContext:ht,useEffect:og,useImperativeHandle:hg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:pg,useReducer:Uu,useRef:ag,useState:function(){return Uu(Dn)},useDebugValue:qu,useDeferredValue:function(t,r){var a=Fe();return Ce===null?$u(a,t,r):gg(a,Ce.memoizedState,t,r)},useTransition:function(){var t=Uu(Dn)[0],r=Fe().memoizedState;return[typeof t=="boolean"?t:ra(t),r]},useSyncExternalStore:Gp,useId:vg,useHostTransitionStatus:Vu,useFormState:rg,useActionState:rg,useOptimistic:function(t,r){var a=Fe();return Ce!==null?Qp(a,Ce,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:Sg},$s=null,oa=0;function Kl(t){var r=oa;return oa+=1,$s===null&&($s=[]),Bp($s,t,r)}function ca(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Yl(t,r){throw r.$$typeof===y?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Ag(t){var r=t._init;return r(t._payload)}function Ng(t){function r(O,M){if(t){var L=O.deletions;L===null?(O.deletions=[M],O.flags|=16):L.push(M)}}function a(O,M){if(!t)return null;for(;M!==null;)r(O,M),M=M.sibling;return null}function c(O){for(var M=new Map;O!==null;)O.key!==null?M.set(O.key,O):M.set(O.index,O),O=O.sibling;return M}function h(O,M){return O=Mn(O,M),O.index=0,O.sibling=null,O}function g(O,M,L){return O.index=L,t?(L=O.alternate,L!==null?(L=L.index,L<M?(O.flags|=67108866,M):L):(O.flags|=67108866,M)):(O.flags|=1048576,M)}function w(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function _(O,M,L,Y){return M===null||M.tag!==6?(M=fu(L,O.mode,Y),M.return=O,M):(M=h(M,L),M.return=O,M)}function A(O,M,L,Y){var ne=L.type;return ne===E?K(O,M,L.props.children,Y,L.key):M!==null&&(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===q&&Ag(ne)===M.type)?(M=h(M,L.props),ca(M,L),M.return=O,M):(M=Cl(L.type,L.key,L.props,null,O.mode,Y),ca(M,L),M.return=O,M)}function D(O,M,L,Y){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=hu(L,O.mode,Y),M.return=O,M):(M=h(M,L.children||[]),M.return=O,M)}function K(O,M,L,Y,ne){return M===null||M.tag!==7?(M=zi(L,O.mode,Y,ne),M.return=O,M):(M=h(M,L),M.return=O,M)}function X(O,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=fu(""+M,O.mode,L),M.return=O,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case v:return L=Cl(M.type,M.key,M.props,null,O.mode,L),ca(L,M),L.return=O,L;case S:return M=hu(M,O.mode,L),M.return=O,M;case q:var Y=M._init;return M=Y(M._payload),X(O,M,L)}if(ve(M)||I(M))return M=zi(M,O.mode,L,null),M.return=O,M;if(typeof M.then=="function")return X(O,Kl(M),L);if(M.$$typeof===$)return X(O,Rl(O,M),L);Yl(O,M)}return null}function B(O,M,L,Y){var ne=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ne!==null?null:_(O,M,""+L,Y);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case v:return L.key===ne?A(O,M,L,Y):null;case S:return L.key===ne?D(O,M,L,Y):null;case q:return ne=L._init,L=ne(L._payload),B(O,M,L,Y)}if(ve(L)||I(L))return ne!==null?null:K(O,M,L,Y,null);if(typeof L.then=="function")return B(O,M,Kl(L),Y);if(L.$$typeof===$)return B(O,M,Rl(O,L),Y);Yl(O,L)}return null}function U(O,M,L,Y,ne){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return O=O.get(L)||null,_(M,O,""+Y,ne);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return O=O.get(Y.key===null?L:Y.key)||null,A(M,O,Y,ne);case S:return O=O.get(Y.key===null?L:Y.key)||null,D(M,O,Y,ne);case q:var ge=Y._init;return Y=ge(Y._payload),U(O,M,L,Y,ne)}if(ve(Y)||I(Y))return O=O.get(L)||null,K(M,O,Y,ne,null);if(typeof Y.then=="function")return U(O,M,L,Kl(Y),ne);if(Y.$$typeof===$)return U(O,M,L,Rl(M,Y),ne);Yl(M,Y)}return null}function fe(O,M,L,Y){for(var ne=null,ge=null,re=M,ue=M=0,it=null;re!==null&&ue<L.length;ue++){re.index>ue?(it=re,re=null):it=re.sibling;var xe=B(O,re,L[ue],Y);if(xe===null){re===null&&(re=it);break}t&&re&&xe.alternate===null&&r(O,re),M=g(xe,M,ue),ge===null?ne=xe:ge.sibling=xe,ge=xe,re=it}if(ue===L.length)return a(O,re),_e&&qi(O,ue),ne;if(re===null){for(;ue<L.length;ue++)re=X(O,L[ue],Y),re!==null&&(M=g(re,M,ue),ge===null?ne=re:ge.sibling=re,ge=re);return _e&&qi(O,ue),ne}for(re=c(re);ue<L.length;ue++)it=U(re,O,ue,L[ue],Y),it!==null&&(t&&it.alternate!==null&&re.delete(it.key===null?ue:it.key),M=g(it,M,ue),ge===null?ne=it:ge.sibling=it,ge=it);return t&&re.forEach(function(wi){return r(O,wi)}),_e&&qi(O,ue),ne}function oe(O,M,L,Y){if(L==null)throw Error(s(151));for(var ne=null,ge=null,re=M,ue=M=0,it=null,xe=L.next();re!==null&&!xe.done;ue++,xe=L.next()){re.index>ue?(it=re,re=null):it=re.sibling;var wi=B(O,re,xe.value,Y);if(wi===null){re===null&&(re=it);break}t&&re&&wi.alternate===null&&r(O,re),M=g(wi,M,ue),ge===null?ne=wi:ge.sibling=wi,ge=wi,re=it}if(xe.done)return a(O,re),_e&&qi(O,ue),ne;if(re===null){for(;!xe.done;ue++,xe=L.next())xe=X(O,xe.value,Y),xe!==null&&(M=g(xe,M,ue),ge===null?ne=xe:ge.sibling=xe,ge=xe);return _e&&qi(O,ue),ne}for(re=c(re);!xe.done;ue++,xe=L.next())xe=U(re,O,ue,xe.value,Y),xe!==null&&(t&&xe.alternate!==null&&re.delete(xe.key===null?ue:xe.key),M=g(xe,M,ue),ge===null?ne=xe:ge.sibling=xe,ge=xe);return t&&re.forEach(function(O1){return r(O,O1)}),_e&&qi(O,ue),ne}function Me(O,M,L,Y){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case v:e:{for(var ne=L.key;M!==null;){if(M.key===ne){if(ne=L.type,ne===E){if(M.tag===7){a(O,M.sibling),Y=h(M,L.props.children),Y.return=O,O=Y;break e}}else if(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===q&&Ag(ne)===M.type){a(O,M.sibling),Y=h(M,L.props),ca(Y,L),Y.return=O,O=Y;break e}a(O,M);break}else r(O,M);M=M.sibling}L.type===E?(Y=zi(L.props.children,O.mode,Y,L.key),Y.return=O,O=Y):(Y=Cl(L.type,L.key,L.props,null,O.mode,Y),ca(Y,L),Y.return=O,O=Y)}return w(O);case S:e:{for(ne=L.key;M!==null;){if(M.key===ne)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){a(O,M.sibling),Y=h(M,L.children||[]),Y.return=O,O=Y;break e}else{a(O,M);break}else r(O,M);M=M.sibling}Y=hu(L,O.mode,Y),Y.return=O,O=Y}return w(O);case q:return ne=L._init,L=ne(L._payload),Me(O,M,L,Y)}if(ve(L))return fe(O,M,L,Y);if(I(L)){if(ne=I(L),typeof ne!="function")throw Error(s(150));return L=ne.call(L),oe(O,M,L,Y)}if(typeof L.then=="function")return Me(O,M,Kl(L),Y);if(L.$$typeof===$)return Me(O,M,Rl(O,L),Y);Yl(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(a(O,M.sibling),Y=h(M,L),Y.return=O,O=Y):(a(O,M),Y=fu(L,O.mode,Y),Y.return=O,O=Y),w(O)):a(O,M)}return function(O,M,L,Y){try{oa=0;var ne=Me(O,M,L,Y);return $s=null,ne}catch(re){if(re===Wr||re===Ll)throw re;var ge=Ut(29,re,null,O.mode);return ge.lanes=Y,ge.return=O,ge}finally{}}}var Is=Ng(!0),Cg=Ng(!1),Wt=P(null),bn=null;function ai(t){var r=t.alternate;J(Je,Je.current&1),J(Wt,t),bn===null&&(r===null||Us.current!==null||r.memoizedState!==null)&&(bn=t)}function kg(t){if(t.tag===22){if(J(Je,Je.current),J(Wt,t),bn===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(bn=t)}}else li()}function li(){J(Je,Je.current),J(Wt,Wt.current)}function Bn(t){W(Wt),bn===t&&(bn=null),W(Je)}var Je=P(0);function Xl(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Df(a)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Ku(t,r,a,c){r=t.memoizedState,a=a(c,r),a=a==null?r:m({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Yu={enqueueSetState:function(t,r,a){t=t._reactInternals;var c=$t(),h=ii(c);h.payload=r,a!=null&&(h.callback=a),r=si(t,h,c),r!==null&&(It(r,t,c),ta(r,t,c))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var c=$t(),h=ii(c);h.tag=1,h.payload=r,a!=null&&(h.callback=a),r=si(t,h,c),r!==null&&(It(r,t,c),ta(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=$t(),c=ii(a);c.tag=2,r!=null&&(c.callback=r),r=si(t,c,a),r!==null&&(It(r,t,a),ta(r,t,a))}};function Mg(t,r,a,c,h,g,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,g,w):r.prototype&&r.prototype.isPureReactComponent?!Kr(a,c)||!Kr(h,g):!0}function Og(t,r,a,c){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,c),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,c),r.state!==t&&Yu.enqueueReplaceState(r,r.state,null)}function Xi(t,r){var a=r;if("ref"in r){a={};for(var c in r)c!=="ref"&&(a[c]=r[c])}if(t=t.defaultProps){a===r&&(a=m({},a));for(var h in t)a[h]===void 0&&(a[h]=t[h])}return a}var Pl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Rg(t){Pl(t)}function jg(t){console.error(t)}function Lg(t){Pl(t)}function Fl(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(c){setTimeout(function(){throw c})}}function Dg(t,r,a){try{var c=t.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Xu(t,r,a){return a=ii(a),a.tag=3,a.payload={element:null},a.callback=function(){Fl(t,r)},a}function Bg(t){return t=ii(t),t.tag=3,t}function Ug(t,r,a,c){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var g=c.value;t.payload=function(){return h(g)},t.callback=function(){Dg(r,a,c)}}var w=a.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){Dg(r,a,c),typeof h!="function"&&(di===null?di=new Set([this]):di.add(this));var _=c.stack;this.componentDidCatch(c.value,{componentStack:_!==null?_:""})})}function Ow(t,r,a,c,h){if(a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(r=a.alternate,r!==null&&Qr(r,a,h,!0),a=Wt.current,a!==null){switch(a.tag){case 13:return bn===null?bf():a.alternate===null&&Ie===0&&(Ie=3),a.flags&=-257,a.flags|=65536,a.lanes=h,c===xu?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([c]):r.add(c),Sf(t,c,h)),!1;case 22:return a.flags|=65536,c===xu?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([c]):a.add(c)),Sf(t,c,h)),!1}throw Error(s(435,a.tag))}return Sf(t,c,h),bf(),!1}if(_e)return r=Wt.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,c!==gu&&(t=Error(s(422),{cause:c}),Fr(Ft(t,a)))):(c!==gu&&(r=Error(s(423),{cause:c}),Fr(Ft(r,a))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,c=Ft(c,a),h=Xu(t.stateNode,c,h),Eu(t,h),Ie!==4&&(Ie=2)),!1;var g=Error(s(520),{cause:c});if(g=Ft(g,a),ma===null?ma=[g]:ma.push(g),Ie!==4&&(Ie=2),r===null)return!0;c=Ft(c,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,t=h&-h,a.lanes|=t,t=Xu(a.stateNode,c,t),Eu(a,t),!1;case 1:if(r=a.type,g=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(di===null||!di.has(g))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Bg(h),Ug(h,t,a,c),Eu(a,h),!1}a=a.return}while(a!==null);return!1}var zg=Error(s(461)),tt=!1;function st(t,r,a,c){r.child=t===null?Cg(r,null,a,c):Is(r,t.child,a,c)}function Hg(t,r,a,c,h){a=a.render;var g=r.ref;if("ref"in c){var w={};for(var _ in c)_!=="ref"&&(w[_]=c[_])}else w=c;return Gi(r),c=Mu(t,r,a,w,g,h),_=Ou(),t!==null&&!tt?(Ru(t,r,h),Un(t,r,h)):(_e&&_&&du(r),r.flags|=1,st(t,r,c,h),r.child)}function qg(t,r,a,c,h){if(t===null){var g=a.type;return typeof g=="function"&&!uu(g)&&g.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=g,$g(t,r,g,c,h)):(t=Cl(a.type,null,c,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!tf(t,h)){var w=g.memoizedProps;if(a=a.compare,a=a!==null?a:Kr,a(w,c)&&t.ref===r.ref)return Un(t,r,h)}return r.flags|=1,t=Mn(g,c),t.ref=r.ref,t.return=r,r.child=t}function $g(t,r,a,c,h){if(t!==null){var g=t.memoizedProps;if(Kr(g,c)&&t.ref===r.ref)if(tt=!1,r.pendingProps=c=g,tf(t,h))(t.flags&131072)!==0&&(tt=!0);else return r.lanes=t.lanes,Un(t,r,h)}return Pu(t,r,a,c,h)}function Ig(t,r,a){var c=r.pendingProps,h=c.children,g=t!==null?t.memoizedState:null;if(c.mode==="hidden"){if((r.flags&128)!==0){if(c=g!==null?g.baseLanes|a:a,t!==null){for(h=r.child=t.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;r.childLanes=g&~c}else r.childLanes=0,r.child=null;return Vg(t,r,c,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&jl(r,g!==null?g.cachePool:null),g!==null?$p(r,g):Nu(),kg(r);else return r.lanes=r.childLanes=536870912,Vg(t,r,g!==null?g.baseLanes|a:a,a)}else g!==null?(jl(r,g.cachePool),$p(r,g),li(),r.memoizedState=null):(t!==null&&jl(r,null),Nu(),li());return st(t,r,h,a),r.child}function Vg(t,r,a,c){var h=wu();return h=h===null?null:{parent:Ze._currentValue,pool:h},r.memoizedState={baseLanes:a,cachePool:h},t!==null&&jl(r,null),Nu(),kg(r),t!==null&&Qr(t,r,c,!0),null}function Ql(t,r){var a=r.ref;if(a===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(t===null||t.ref!==a)&&(r.flags|=4194816)}}function Pu(t,r,a,c,h){return Gi(r),a=Mu(t,r,a,c,void 0,h),c=Ou(),t!==null&&!tt?(Ru(t,r,h),Un(t,r,h)):(_e&&c&&du(r),r.flags|=1,st(t,r,a,h),r.child)}function Gg(t,r,a,c,h,g){return Gi(r),r.updateQueue=null,a=Vp(r,c,a,h),Ip(t),c=Ou(),t!==null&&!tt?(Ru(t,r,g),Un(t,r,g)):(_e&&c&&du(r),r.flags|=1,st(t,r,a,g),r.child)}function Kg(t,r,a,c,h){if(Gi(r),r.stateNode===null){var g=Rs,w=a.contextType;typeof w=="object"&&w!==null&&(g=ht(w)),g=new a(c,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Yu,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=c,g.state=r.memoizedState,g.refs={},_u(r),w=a.contextType,g.context=typeof w=="object"&&w!==null?ht(w):Rs,g.state=r.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Ku(r,a,w,c),g.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(w=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),w!==g.state&&Yu.enqueueReplaceState(g,g.state,null),ia(r,c,g,h),na(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),c=!0}else if(t===null){g=r.stateNode;var _=r.memoizedProps,A=Xi(a,_);g.props=A;var D=g.context,K=a.contextType;w=Rs,typeof K=="object"&&K!==null&&(w=ht(K));var X=a.getDerivedStateFromProps;K=typeof X=="function"||typeof g.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,K||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_||D!==w)&&Og(r,g,c,w),ni=!1;var B=r.memoizedState;g.state=B,ia(r,c,g,h),na(),D=r.memoizedState,_||B!==D||ni?(typeof X=="function"&&(Ku(r,a,X,c),D=r.memoizedState),(A=ni||Mg(r,a,A,c,B,D,w))?(K||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=c,r.memoizedState=D),g.props=c,g.state=D,g.context=w,c=A):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),c=!1)}else{g=r.stateNode,Tu(t,r),w=r.memoizedProps,K=Xi(a,w),g.props=K,X=r.pendingProps,B=g.context,D=a.contextType,A=Rs,typeof D=="object"&&D!==null&&(A=ht(D)),_=a.getDerivedStateFromProps,(D=typeof _=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==X||B!==A)&&Og(r,g,c,A),ni=!1,B=r.memoizedState,g.state=B,ia(r,c,g,h),na();var U=r.memoizedState;w!==X||B!==U||ni||t!==null&&t.dependencies!==null&&Ol(t.dependencies)?(typeof _=="function"&&(Ku(r,a,_,c),U=r.memoizedState),(K=ni||Mg(r,a,K,c,B,U,A)||t!==null&&t.dependencies!==null&&Ol(t.dependencies))?(D||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,U,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,U,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===t.memoizedProps&&B===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&B===t.memoizedState||(r.flags|=1024),r.memoizedProps=c,r.memoizedState=U),g.props=c,g.state=U,g.context=A,c=K):(typeof g.componentDidUpdate!="function"||w===t.memoizedProps&&B===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&B===t.memoizedState||(r.flags|=1024),c=!1)}return g=c,Ql(t,r),c=(r.flags&128)!==0,g||c?(g=r.stateNode,a=c&&typeof a.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&c?(r.child=Is(r,t.child,null,h),r.child=Is(r,null,a,h)):st(t,r,a,h),r.memoizedState=g.state,t=r.child):t=Un(t,r,h),t}function Yg(t,r,a,c){return Pr(),r.flags|=256,st(t,r,a,c),r.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qu(t){return{baseLanes:t,cachePool:jp()}}function Zu(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=en),t}function Xg(t,r,a){var c=r.pendingProps,h=!1,g=(r.flags&128)!==0,w;if((w=g)||(w=t!==null&&t.memoizedState===null?!1:(Je.current&2)!==0),w&&(h=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,t===null){if(_e){if(h?ai(r):li(),_e){var _=$e,A;if(A=_){e:{for(A=_,_=yn;A.nodeType!==8;){if(!_){_=null;break e}if(A=dn(A.nextSibling),A===null){_=null;break e}}_=A}_!==null?(r.memoizedState={dehydrated:_,treeContext:Hi!==null?{id:On,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},A=Ut(18,null,null,0),A.stateNode=_,A.return=r,r.child=A,St=r,$e=null,A=!0):A=!1}A||Ii(r)}if(_=r.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Df(_)?r.lanes=32:r.lanes=536870912,null;Bn(r)}return _=c.children,c=c.fallback,h?(li(),h=r.mode,_=Zl({mode:"hidden",children:_},h),c=zi(c,h,a,null),_.return=r,c.return=r,_.sibling=c,r.child=_,h=r.child,h.memoizedState=Qu(a),h.childLanes=Zu(t,w,a),r.memoizedState=Fu,c):(ai(r),Ju(r,_))}if(A=t.memoizedState,A!==null&&(_=A.dehydrated,_!==null)){if(g)r.flags&256?(ai(r),r.flags&=-257,r=Wu(t,r,a)):r.memoizedState!==null?(li(),r.child=t.child,r.flags|=128,r=null):(li(),h=c.fallback,_=r.mode,c=Zl({mode:"visible",children:c.children},_),h=zi(h,_,a,null),h.flags|=2,c.return=r,h.return=r,c.sibling=h,r.child=c,Is(r,t.child,null,a),c=r.child,c.memoizedState=Qu(a),c.childLanes=Zu(t,w,a),r.memoizedState=Fu,r=h);else if(ai(r),Df(_)){if(w=_.nextSibling&&_.nextSibling.dataset,w)var D=w.dgst;w=D,c=Error(s(419)),c.stack="",c.digest=w,Fr({value:c,source:null,stack:null}),r=Wu(t,r,a)}else if(tt||Qr(t,r,a,!1),w=(a&t.childLanes)!==0,tt||w){if(w=je,w!==null&&(c=a&-a,c=(c&42)!==0?1:Dc(c),c=(c&(w.suspendedLanes|a))!==0?0:c,c!==0&&c!==A.retryLane))throw A.retryLane=c,Os(t,c),It(w,t,c),zg;_.data==="$?"||bf(),r=Wu(t,r,a)}else _.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=A.treeContext,$e=dn(_.nextSibling),St=r,_e=!0,$i=null,yn=!1,t!==null&&(Zt[Jt++]=On,Zt[Jt++]=Rn,Zt[Jt++]=Hi,On=t.id,Rn=t.overflow,Hi=r),r=Ju(r,c.children),r.flags|=4096);return r}return h?(li(),h=c.fallback,_=r.mode,A=t.child,D=A.sibling,c=Mn(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,D!==null?h=Mn(D,h):(h=zi(h,_,a,null),h.flags|=2),h.return=r,c.return=r,c.sibling=h,r.child=c,c=h,h=r.child,_=t.child.memoizedState,_===null?_=Qu(a):(A=_.cachePool,A!==null?(D=Ze._currentValue,A=A.parent!==D?{parent:D,pool:D}:A):A=jp(),_={baseLanes:_.baseLanes|a,cachePool:A}),h.memoizedState=_,h.childLanes=Zu(t,w,a),r.memoizedState=Fu,c):(ai(r),a=t.child,t=a.sibling,a=Mn(a,{mode:"visible",children:c.children}),a.return=r,a.sibling=null,t!==null&&(w=r.deletions,w===null?(r.deletions=[t],r.flags|=16):w.push(t)),r.child=a,r.memoizedState=null,a)}function Ju(t,r){return r=Zl({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Zl(t,r){return t=Ut(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Wu(t,r,a){return Is(r,t.child,null,a),t=Ju(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Pg(t,r,a){t.lanes|=r;var c=t.alternate;c!==null&&(c.lanes|=r),yu(t.return,r,a)}function ef(t,r,a,c,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=a,g.tailMode=h)}function Fg(t,r,a){var c=r.pendingProps,h=c.revealOrder,g=c.tail;if(st(t,r,c.children,a),c=Je.current,(c&2)!==0)c=c&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Pg(t,a,r);else if(t.tag===19)Pg(t,a,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}switch(J(Je,c),h){case"forwards":for(a=r.child,h=null;a!==null;)t=a.alternate,t!==null&&Xl(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=r.child,r.child=null):(h=a.sibling,a.sibling=null),ef(r,!1,h,a,g);break;case"backwards":for(a=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&Xl(t)===null){r.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}ef(r,!0,a,null,g);break;case"together":ef(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Un(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),hi|=r.lanes,(a&r.childLanes)===0)if(t!==null){if(Qr(t,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,a=Mn(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Mn(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function tf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ol(t)))}function Rw(t,r,a){switch(r.tag){case 3:Ne(r,r.stateNode.containerInfo),ti(r,Ze,t.memoizedState.cache),Pr();break;case 27:case 5:jr(r);break;case 4:Ne(r,r.stateNode.containerInfo);break;case 10:ti(r,r.type,r.memoizedProps.value);break;case 13:var c=r.memoizedState;if(c!==null)return c.dehydrated!==null?(ai(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Xg(t,r,a):(ai(r),t=Un(t,r,a),t!==null?t.sibling:null);ai(r);break;case 19:var h=(t.flags&128)!==0;if(c=(a&r.childLanes)!==0,c||(Qr(t,r,a,!1),c=(a&r.childLanes)!==0),h){if(c)return Fg(t,r,a);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),J(Je,Je.current),c)break;return null;case 22:case 23:return r.lanes=0,Ig(t,r,a);case 24:ti(r,Ze,t.memoizedState.cache)}return Un(t,r,a)}function Qg(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)tt=!0;else{if(!tf(t,a)&&(r.flags&128)===0)return tt=!1,Rw(t,r,a);tt=(t.flags&131072)!==0}else tt=!1,_e&&(r.flags&1048576)!==0&&Ap(r,Ml,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var c=r.elementType,h=c._init;if(c=h(c._payload),r.type=c,typeof c=="function")uu(c)?(t=Xi(c,t),r.tag=1,r=Kg(null,r,c,t,a)):(r.tag=0,r=Pu(null,r,c,t,a));else{if(c!=null){if(h=c.$$typeof,h===V){r.tag=11,r=Hg(null,r,c,t,a);break e}else if(h===Z){r.tag=14,r=qg(null,r,c,t,a);break e}}throw r=ee(c)||c,Error(s(306,r,""))}}return r;case 0:return Pu(t,r,r.type,r.pendingProps,a);case 1:return c=r.type,h=Xi(c,r.pendingProps),Kg(t,r,c,h,a);case 3:e:{if(Ne(r,r.stateNode.containerInfo),t===null)throw Error(s(387));c=r.pendingProps;var g=r.memoizedState;h=g.element,Tu(t,r),ia(r,c,null,a);var w=r.memoizedState;if(c=w.cache,ti(r,Ze,c),c!==g.cache&&bu(r,[Ze],a,!0),na(),c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Yg(t,r,c,a);break e}else if(c!==h){h=Ft(Error(s(424)),r),Fr(h),r=Yg(t,r,c,a);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for($e=dn(t.firstChild),St=r,_e=!0,$i=null,yn=!0,a=Cg(r,null,c,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pr(),c===h){r=Un(t,r,a);break e}st(t,r,c,a)}r=r.child}return r;case 26:return Ql(t,r),t===null?(a=ey(r.type,null,r.pendingProps,null))?r.memoizedState=a:_e||(a=r.type,t=r.pendingProps,c=fo(te.current).createElement(a),c[ft]=r,c[Et]=t,at(c,a,t),et(c),r.stateNode=c):r.memoizedState=ey(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return jr(r),t===null&&_e&&(c=r.stateNode=Zm(r.type,r.pendingProps,te.current),St=r,yn=!0,h=$e,mi(r.type)?(Bf=h,$e=dn(c.firstChild)):$e=h),st(t,r,r.pendingProps.children,a),Ql(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&_e&&((h=c=$e)&&(c=a1(c,r.type,r.pendingProps,yn),c!==null?(r.stateNode=c,St=r,$e=dn(c.firstChild),yn=!1,h=!0):h=!1),h||Ii(r)),jr(r),h=r.type,g=r.pendingProps,w=t!==null?t.memoizedProps:null,c=g.children,Rf(h,g)?c=null:w!==null&&Rf(h,w)&&(r.flags|=32),r.memoizedState!==null&&(h=Mu(t,r,Tw,null,null,a),Ea._currentValue=h),Ql(t,r),st(t,r,c,a),r.child;case 6:return t===null&&_e&&((t=a=$e)&&(a=l1(a,r.pendingProps,yn),a!==null?(r.stateNode=a,St=r,$e=null,t=!0):t=!1),t||Ii(r)),null;case 13:return Xg(t,r,a);case 4:return Ne(r,r.stateNode.containerInfo),c=r.pendingProps,t===null?r.child=Is(r,null,c,a):st(t,r,c,a),r.child;case 11:return Hg(t,r,r.type,r.pendingProps,a);case 7:return st(t,r,r.pendingProps,a),r.child;case 8:return st(t,r,r.pendingProps.children,a),r.child;case 12:return st(t,r,r.pendingProps.children,a),r.child;case 10:return c=r.pendingProps,ti(r,r.type,c.value),st(t,r,c.children,a),r.child;case 9:return h=r.type._context,c=r.pendingProps.children,Gi(r),h=ht(h),c=c(h),r.flags|=1,st(t,r,c,a),r.child;case 14:return qg(t,r,r.type,r.pendingProps,a);case 15:return $g(t,r,r.type,r.pendingProps,a);case 19:return Fg(t,r,a);case 31:return c=r.pendingProps,a=r.mode,c={mode:c.mode,children:c.children},t===null?(a=Zl(c,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=Mn(t.child,c),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return Ig(t,r,a);case 24:return Gi(r),c=ht(Ze),t===null?(h=wu(),h===null&&(h=je,g=vu(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=a),h=g),r.memoizedState={parent:c,cache:h},_u(r),ti(r,Ze,h)):((t.lanes&a)!==0&&(Tu(t,r),ia(r,null,null,a),na()),h=t.memoizedState,g=r.memoizedState,h.parent!==c?(h={parent:c,cache:c},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),ti(r,Ze,c)):(c=g.cache,ti(r,Ze,c),c!==h.cache&&bu(r,[Ze],a,!0))),st(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function zn(t){t.flags|=4}function Zg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ry(r)){if(r=Wt.current,r!==null&&((Se&4194048)===Se?bn!==null:(Se&62914560)!==Se&&(Se&536870912)===0||r!==bn))throw ea=xu,Lp;t.flags|=8192}}function Jl(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Jn():536870912,t.lanes|=r,Ys|=r)}function ua(t,r){if(!_e)switch(t.tailMode){case"hidden":r=t.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Ue(t){var r=t.alternate!==null&&t.alternate.child===t.child,a=0,c=0;if(r)for(var h=t.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=c,t.childLanes=a,r}function jw(t,r,a){var c=r.pendingProps;switch(pu(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(r),null;case 1:return Ue(r),null;case 3:return a=r.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),Ln(Ze),Gt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Xr(r)?zn(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,kp())),Ue(r),null;case 26:return a=r.memoizedState,t===null?(zn(r),a!==null?(Ue(r),Zg(r,a)):(Ue(r),r.flags&=-16777217)):a?a!==t.memoizedState?(zn(r),Ue(r),Zg(r,a)):(Ue(r),r.flags&=-16777217):(t.memoizedProps!==c&&zn(r),Ue(r),r.flags&=-16777217),null;case 27:En(r),a=te.current;var h=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==c&&zn(r);else{if(!c){if(r.stateNode===null)throw Error(s(166));return Ue(r),null}t=ae.current,Xr(r)?Np(r):(t=Zm(h,c,a),r.stateNode=t,zn(r))}return Ue(r),null;case 5:if(En(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==c&&zn(r);else{if(!c){if(r.stateNode===null)throw Error(s(166));return Ue(r),null}if(t=ae.current,Xr(r))Np(r);else{switch(h=fo(te.current),t){case 1:t=h.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=h.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=h.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=h.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=h.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?t.multiple=!0:c.size&&(t.size=c.size);break;default:t=typeof c.is=="string"?h.createElement(a,{is:c.is}):h.createElement(a)}}t[ft]=r,t[Et]=c;e:for(h=r.child;h!==null;){if(h.tag===5||h.tag===6)t.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===r)break e;for(;h.sibling===null;){if(h.return===null||h.return===r)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}r.stateNode=t;e:switch(at(t,a,c),a){case"button":case"input":case"select":case"textarea":t=!!c.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&zn(r)}}return Ue(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==c&&zn(r);else{if(typeof c!="string"&&r.stateNode===null)throw Error(s(166));if(t=te.current,Xr(r)){if(t=r.stateNode,a=r.memoizedProps,c=null,h=St,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}t[ft]=r,t=!!(t.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||Gm(t.nodeValue,a)),t||Ii(r)}else t=fo(t).createTextNode(c),t[ft]=r,r.stateNode=t}return Ue(r),null;case 13:if(c=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Xr(r),c!==null&&c.dehydrated!==null){if(t===null){if(!h)throw Error(s(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[ft]=r}else Pr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ue(r),h=!1}else h=kp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(Bn(r),r):(Bn(r),null)}if(Bn(r),(r.flags&128)!==0)return r.lanes=a,r;if(a=c!==null,t=t!==null&&t.memoizedState!==null,a){c=r.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool);var g=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==h&&(c.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),Jl(r,r.updateQueue),Ue(r),null;case 4:return Gt(),t===null&&Nf(r.stateNode.containerInfo),Ue(r),null;case 10:return Ln(r.type),Ue(r),null;case 19:if(W(Je),h=r.memoizedState,h===null)return Ue(r),null;if(c=(r.flags&128)!==0,g=h.rendering,g===null)if(c)ua(h,!1);else{if(Ie!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=Xl(t),g!==null){for(r.flags|=128,ua(h,!1),t=g.updateQueue,r.updateQueue=t,Jl(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)Ep(a,t),a=a.sibling;return J(Je,Je.current&1|2),r.child}t=t.sibling}h.tail!==null&&Kt()>to&&(r.flags|=128,c=!0,ua(h,!1),r.lanes=4194304)}else{if(!c)if(t=Xl(g),t!==null){if(r.flags|=128,c=!0,t=t.updateQueue,r.updateQueue=t,Jl(r,t),ua(h,!0),h.tail===null&&h.tailMode==="hidden"&&!g.alternate&&!_e)return Ue(r),null}else 2*Kt()-h.renderingStartTime>to&&a!==536870912&&(r.flags|=128,c=!0,ua(h,!1),r.lanes=4194304);h.isBackwards?(g.sibling=r.child,r.child=g):(t=h.last,t!==null?t.sibling=g:r.child=g,h.last=g)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Kt(),r.sibling=null,t=Je.current,J(Je,c?t&1|2:t&1),r):(Ue(r),null);case 22:case 23:return Bn(r),Cu(),c=r.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(r.flags|=8192):c&&(r.flags|=8192),c?(a&536870912)!==0&&(r.flags&128)===0&&(Ue(r),r.subtreeFlags&6&&(r.flags|=8192)):Ue(r),a=r.updateQueue,a!==null&&Jl(r,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==a&&(r.flags|=2048),t!==null&&W(Ki),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ln(Ze),Ue(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function Lw(t,r){switch(pu(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ln(Ze),Gt(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return En(r),null;case 13:if(Bn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Pr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return W(Je),null;case 4:return Gt(),null;case 10:return Ln(r.type),null;case 22:case 23:return Bn(r),Cu(),t!==null&&W(Ki),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ln(Ze),null;case 25:return null;default:return null}}function Jg(t,r){switch(pu(r),r.tag){case 3:Ln(Ze),Gt();break;case 26:case 27:case 5:En(r);break;case 4:Gt();break;case 13:Bn(r);break;case 19:W(Je);break;case 10:Ln(r.type);break;case 22:case 23:Bn(r),Cu(),t!==null&&W(Ki);break;case 24:Ln(Ze)}}function fa(t,r){try{var a=r.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var h=c.next;a=h;do{if((a.tag&t)===t){c=void 0;var g=a.create,w=a.inst;c=g(),w.destroy=c}a=a.next}while(a!==h)}}catch(_){Oe(r,r.return,_)}}function oi(t,r,a){try{var c=r.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&t)===t){var w=c.inst,_=w.destroy;if(_!==void 0){w.destroy=void 0,h=r;var A=a,D=_;try{D()}catch(K){Oe(h,A,K)}}}c=c.next}while(c!==g)}}catch(K){Oe(r,r.return,K)}}function Wg(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{qp(r,a)}catch(c){Oe(t,t.return,c)}}}function em(t,r,a){a.props=Xi(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(c){Oe(t,r,c)}}function ha(t,r){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof a=="function"?t.refCleanup=a(c):a.current=c}}catch(h){Oe(t,r,h)}}function vn(t,r){var a=t.ref,c=t.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(h){Oe(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Oe(t,r,h)}else a.current=null}function tm(t){var r=t.type,a=t.memoizedProps,c=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(h){Oe(t,t.return,h)}}function nf(t,r,a){try{var c=t.stateNode;t1(c,t.type,a,r),c[Et]=r}catch(h){Oe(t,t.return,h)}}function nm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&mi(t.type)||t.tag===4}function sf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||nm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&mi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function rf(t,r,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(t),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=uo));else if(c!==4&&(c===27&&mi(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(rf(t,r,a),t=t.sibling;t!==null;)rf(t,r,a),t=t.sibling}function Wl(t,r,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(c!==4&&(c===27&&mi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Wl(t,r,a),t=t.sibling;t!==null;)Wl(t,r,a),t=t.sibling}function im(t){var r=t.stateNode,a=t.memoizedProps;try{for(var c=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);at(r,c,a),r[ft]=t,r[Et]=a}catch(g){Oe(t,t.return,g)}}var Hn=!1,Ge=!1,af=!1,sm=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Dw(t,r){if(t=t.containerInfo,Mf=bo,t=gp(t),iu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var w=0,_=-1,A=-1,D=0,K=0,X=t,B=null;t:for(;;){for(var U;X!==a||h!==0&&X.nodeType!==3||(_=w+h),X!==g||c!==0&&X.nodeType!==3||(A=w+c),X.nodeType===3&&(w+=X.nodeValue.length),(U=X.firstChild)!==null;)B=X,X=U;for(;;){if(X===t)break t;if(B===a&&++D===h&&(_=w),B===g&&++K===c&&(A=w),(U=X.nextSibling)!==null)break;X=B,B=X.parentNode}X=U}a=_===-1||A===-1?null:{start:_,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Of={focusedElem:t,selectionRange:a},bo=!1,nt=r;nt!==null;)if(r=nt,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,nt=t;else for(;nt!==null;){switch(r=nt,g=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,a=r,h=g.memoizedProps,g=g.memoizedState,c=a.stateNode;try{var fe=Xi(a.type,h,a.elementType===a.type);t=c.getSnapshotBeforeUpdate(fe,g),c.__reactInternalSnapshotBeforeUpdate=t}catch(oe){Oe(a,a.return,oe)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)Lf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,nt=t;break}nt=r.return}}function rm(t,r,a){var c=a.flags;switch(a.tag){case 0:case 11:case 15:ci(t,a),c&4&&fa(5,a);break;case 1:if(ci(t,a),c&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(w){Oe(a,a.return,w)}else{var h=Xi(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(w){Oe(a,a.return,w)}}c&64&&Wg(a),c&512&&ha(a,a.return);break;case 3:if(ci(t,a),c&64&&(t=a.updateQueue,t!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{qp(t,r)}catch(w){Oe(a,a.return,w)}}break;case 27:r===null&&c&4&&im(a);case 26:case 5:ci(t,a),r===null&&c&4&&tm(a),c&512&&ha(a,a.return);break;case 12:ci(t,a);break;case 13:ci(t,a),c&4&&om(t,a),c&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Gw.bind(null,a),o1(t,a))));break;case 22:if(c=a.memoizedState!==null||Hn,!c){r=r!==null&&r.memoizedState!==null||Ge,h=Hn;var g=Ge;Hn=c,(Ge=r)&&!g?ui(t,a,(a.subtreeFlags&8772)!==0):ci(t,a),Hn=h,Ge=g}break;case 30:break;default:ci(t,a)}}function am(t){var r=t.alternate;r!==null&&(t.alternate=null,am(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&zc(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Le=null,Ct=!1;function qn(t,r,a){for(a=a.child;a!==null;)lm(t,r,a),a=a.sibling}function lm(t,r,a){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Oi,a)}catch{}switch(a.tag){case 26:Ge||vn(a,r),qn(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ge||vn(a,r);var c=Le,h=Ct;mi(a.type)&&(Le=a.stateNode,Ct=!1),qn(t,r,a),wa(a.stateNode),Le=c,Ct=h;break;case 5:Ge||vn(a,r);case 6:if(c=Le,h=Ct,Le=null,qn(t,r,a),Le=c,Ct=h,Le!==null)if(Ct)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(a.stateNode)}catch(g){Oe(a,r,g)}else try{Le.removeChild(a.stateNode)}catch(g){Oe(a,r,g)}break;case 18:Le!==null&&(Ct?(t=Le,Fm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ka(t)):Fm(Le,a.stateNode));break;case 4:c=Le,h=Ct,Le=a.stateNode.containerInfo,Ct=!0,qn(t,r,a),Le=c,Ct=h;break;case 0:case 11:case 14:case 15:Ge||oi(2,a,r),Ge||oi(4,a,r),qn(t,r,a);break;case 1:Ge||(vn(a,r),c=a.stateNode,typeof c.componentWillUnmount=="function"&&em(a,r,c)),qn(t,r,a);break;case 21:qn(t,r,a);break;case 22:Ge=(c=Ge)||a.memoizedState!==null,qn(t,r,a),Ge=c;break;default:qn(t,r,a)}}function om(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ka(t)}catch(a){Oe(r,r.return,a)}}function Bw(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new sm),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new sm),r;default:throw Error(s(435,t.tag))}}function lf(t,r){var a=Bw(t);r.forEach(function(c){var h=Kw.bind(null,t,c);a.has(c)||(a.add(c),c.then(h,h))})}function zt(t,r){var a=r.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c],g=t,w=r,_=w;e:for(;_!==null;){switch(_.tag){case 27:if(mi(_.type)){Le=_.stateNode,Ct=!1;break e}break;case 5:Le=_.stateNode,Ct=!1;break e;case 3:case 4:Le=_.stateNode.containerInfo,Ct=!0;break e}_=_.return}if(Le===null)throw Error(s(160));lm(g,w,h),Le=null,Ct=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)cm(r,t),r=r.sibling}var hn=null;function cm(t,r){var a=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zt(r,t),Ht(t),c&4&&(oi(3,t,t.return),fa(3,t),oi(5,t,t.return));break;case 1:zt(r,t),Ht(t),c&512&&(Ge||a===null||vn(a,a.return)),c&64&&Hn&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?c:a.concat(c))));break;case 26:var h=hn;if(zt(r,t),Ht(t),c&512&&(Ge||a===null||vn(a,a.return)),c&4){var g=a!==null?a.memoizedState:null;if(c=t.memoizedState,a===null)if(c===null)if(t.stateNode===null){e:{c=t.type,a=t.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":g=h.getElementsByTagName("title")[0],(!g||g[Br]||g[ft]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(c),h.head.insertBefore(g,h.querySelector("head > title"))),at(g,c,a),g[ft]=t,et(g),c=g;break e;case"link":var w=iy("link","href",h).get(c+(a.href||""));if(w){for(var _=0;_<w.length;_++)if(g=w[_],g.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&g.getAttribute("rel")===(a.rel==null?null:a.rel)&&g.getAttribute("title")===(a.title==null?null:a.title)&&g.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){w.splice(_,1);break t}}g=h.createElement(c),at(g,c,a),h.head.appendChild(g);break;case"meta":if(w=iy("meta","content",h).get(c+(a.content||""))){for(_=0;_<w.length;_++)if(g=w[_],g.getAttribute("content")===(a.content==null?null:""+a.content)&&g.getAttribute("name")===(a.name==null?null:a.name)&&g.getAttribute("property")===(a.property==null?null:a.property)&&g.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&g.getAttribute("charset")===(a.charSet==null?null:a.charSet)){w.splice(_,1);break t}}g=h.createElement(c),at(g,c,a),h.head.appendChild(g);break;default:throw Error(s(468,c))}g[ft]=t,et(g),c=g}t.stateNode=c}else sy(h,t.type,t.stateNode);else t.stateNode=ny(h,c,t.memoizedProps);else g!==c?(g===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):g.count--,c===null?sy(h,t.type,t.stateNode):ny(h,c,t.memoizedProps)):c===null&&t.stateNode!==null&&nf(t,t.memoizedProps,a.memoizedProps)}break;case 27:zt(r,t),Ht(t),c&512&&(Ge||a===null||vn(a,a.return)),a!==null&&c&4&&nf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(zt(r,t),Ht(t),c&512&&(Ge||a===null||vn(a,a.return)),t.flags&32){h=t.stateNode;try{Ts(h,"")}catch(U){Oe(t,t.return,U)}}c&4&&t.stateNode!=null&&(h=t.memoizedProps,nf(t,h,a!==null?a.memoizedProps:h)),c&1024&&(af=!0);break;case 6:if(zt(r,t),Ht(t),c&4){if(t.stateNode===null)throw Error(s(162));c=t.memoizedProps,a=t.stateNode;try{a.nodeValue=c}catch(U){Oe(t,t.return,U)}}break;case 3:if(go=null,h=hn,hn=ho(r.containerInfo),zt(r,t),hn=h,Ht(t),c&4&&a!==null&&a.memoizedState.isDehydrated)try{ka(r.containerInfo)}catch(U){Oe(t,t.return,U)}af&&(af=!1,um(t));break;case 4:c=hn,hn=ho(t.stateNode.containerInfo),zt(r,t),Ht(t),hn=c;break;case 12:zt(r,t),Ht(t);break;case 13:zt(r,t),Ht(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(df=Kt()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,lf(t,c)));break;case 22:h=t.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,D=Hn,K=Ge;if(Hn=D||h,Ge=K||A,zt(r,t),Ge=K,Hn=D,Ht(t),c&8192)e:for(r=t.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(a===null||A||Hn||Ge||Pi(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){A=a=r;try{if(g=A.stateNode,h)w=g.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{_=A.stateNode;var X=A.memoizedProps.style,B=X!=null&&X.hasOwnProperty("display")?X.display:null;_.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(U){Oe(A,A.return,U)}}}else if(r.tag===6){if(a===null){A=r;try{A.stateNode.nodeValue=h?"":A.memoizedProps}catch(U){Oe(A,A.return,U)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}c&4&&(c=t.updateQueue,c!==null&&(a=c.retryQueue,a!==null&&(c.retryQueue=null,lf(t,a))));break;case 19:zt(r,t),Ht(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,lf(t,c)));break;case 30:break;case 21:break;default:zt(r,t),Ht(t)}}function Ht(t){var r=t.flags;if(r&2){try{for(var a,c=t.return;c!==null;){if(nm(c)){a=c;break}c=c.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var h=a.stateNode,g=sf(t);Wl(t,g,h);break;case 5:var w=a.stateNode;a.flags&32&&(Ts(w,""),a.flags&=-33);var _=sf(t);Wl(t,_,w);break;case 3:case 4:var A=a.stateNode.containerInfo,D=sf(t);rf(t,D,A);break;default:throw Error(s(161))}}catch(K){Oe(t,t.return,K)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function um(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;um(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function ci(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)rm(t,r.alternate,r),r=r.sibling}function Pi(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:oi(4,r,r.return),Pi(r);break;case 1:vn(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&em(r,r.return,a),Pi(r);break;case 27:wa(r.stateNode);case 26:case 5:vn(r,r.return),Pi(r);break;case 22:r.memoizedState===null&&Pi(r);break;case 30:Pi(r);break;default:Pi(r)}t=t.sibling}}function ui(t,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var c=r.alternate,h=t,g=r,w=g.flags;switch(g.tag){case 0:case 11:case 15:ui(h,g,a),fa(4,g);break;case 1:if(ui(h,g,a),c=g,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(D){Oe(c,c.return,D)}if(c=g,h=c.updateQueue,h!==null){var _=c.stateNode;try{var A=h.shared.hiddenCallbacks;if(A!==null)for(h.shared.hiddenCallbacks=null,h=0;h<A.length;h++)Hp(A[h],_)}catch(D){Oe(c,c.return,D)}}a&&w&64&&Wg(g),ha(g,g.return);break;case 27:im(g);case 26:case 5:ui(h,g,a),a&&c===null&&w&4&&tm(g),ha(g,g.return);break;case 12:ui(h,g,a);break;case 13:ui(h,g,a),a&&w&4&&om(h,g);break;case 22:g.memoizedState===null&&ui(h,g,a),ha(g,g.return);break;case 30:break;default:ui(h,g,a)}r=r.sibling}}function of(t,r){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Zr(a))}function cf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Zr(t))}function Sn(t,r,a,c){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)fm(t,r,a,c),r=r.sibling}function fm(t,r,a,c){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Sn(t,r,a,c),h&2048&&fa(9,r);break;case 1:Sn(t,r,a,c);break;case 3:Sn(t,r,a,c),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Zr(t)));break;case 12:if(h&2048){Sn(t,r,a,c),t=r.stateNode;try{var g=r.memoizedProps,w=g.id,_=g.onPostCommit;typeof _=="function"&&_(w,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(A){Oe(r,r.return,A)}}else Sn(t,r,a,c);break;case 13:Sn(t,r,a,c);break;case 23:break;case 22:g=r.stateNode,w=r.alternate,r.memoizedState!==null?g._visibility&2?Sn(t,r,a,c):da(t,r):g._visibility&2?Sn(t,r,a,c):(g._visibility|=2,Vs(t,r,a,c,(r.subtreeFlags&10256)!==0)),h&2048&&of(w,r);break;case 24:Sn(t,r,a,c),h&2048&&cf(r.alternate,r);break;default:Sn(t,r,a,c)}}function Vs(t,r,a,c,h){for(h=h&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=t,w=r,_=a,A=c,D=w.flags;switch(w.tag){case 0:case 11:case 15:Vs(g,w,_,A,h),fa(8,w);break;case 23:break;case 22:var K=w.stateNode;w.memoizedState!==null?K._visibility&2?Vs(g,w,_,A,h):da(g,w):(K._visibility|=2,Vs(g,w,_,A,h)),h&&D&2048&&of(w.alternate,w);break;case 24:Vs(g,w,_,A,h),h&&D&2048&&cf(w.alternate,w);break;default:Vs(g,w,_,A,h)}r=r.sibling}}function da(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=t,c=r,h=c.flags;switch(c.tag){case 22:da(a,c),h&2048&&of(c.alternate,c);break;case 24:da(a,c),h&2048&&cf(c.alternate,c);break;default:da(a,c)}r=r.sibling}}var pa=8192;function Gs(t){if(t.subtreeFlags&pa)for(t=t.child;t!==null;)hm(t),t=t.sibling}function hm(t){switch(t.tag){case 26:Gs(t),t.flags&pa&&t.memoizedState!==null&&w1(hn,t.memoizedState,t.memoizedProps);break;case 5:Gs(t);break;case 3:case 4:var r=hn;hn=ho(t.stateNode.containerInfo),Gs(t),hn=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=pa,pa=16777216,Gs(t),pa=r):Gs(t));break;default:Gs(t)}}function dm(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function ga(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var c=r[a];nt=c,gm(c,t)}dm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pm(t),t=t.sibling}function pm(t){switch(t.tag){case 0:case 11:case 15:ga(t),t.flags&2048&&oi(9,t,t.return);break;case 3:ga(t);break;case 12:ga(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,eo(t)):ga(t);break;default:ga(t)}}function eo(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var c=r[a];nt=c,gm(c,t)}dm(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:oi(8,r,r.return),eo(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,eo(r));break;default:eo(r)}t=t.sibling}}function gm(t,r){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:oi(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var c=a.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zr(a.memoizedState.cache)}if(c=a.child,c!==null)c.return=a,nt=c;else e:for(a=t;nt!==null;){c=nt;var h=c.sibling,g=c.return;if(am(c),c===a){nt=null;break e}if(h!==null){h.return=g,nt=h;break e}nt=g}}}var Uw={getCacheForType:function(t){var r=ht(Ze),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},zw=typeof WeakMap=="function"?WeakMap:Map,Ee=0,je=null,me=null,Se=0,Ae=0,qt=null,fi=!1,Ks=!1,uf=!1,$n=0,Ie=0,hi=0,Fi=0,ff=0,en=0,Ys=0,ma=null,kt=null,hf=!1,df=0,to=1/0,no=null,di=null,rt=0,pi=null,Xs=null,Ps=0,pf=0,gf=null,mm=null,ya=0,mf=null;function $t(){if((Ee&2)!==0&&Se!==0)return Se&-Se;if(z.T!==null){var t=Ds;return t!==0?t:_f()}return Rd()}function ym(){en===0&&(en=(Se&536870912)===0||_e?ce():536870912);var t=Wt.current;return t!==null&&(t.flags|=32),en}function It(t,r,a){(t===je&&(Ae===2||Ae===9)||t.cancelPendingCommit!==null)&&(Fs(t,0),gi(t,Se,en,!1)),Dr(t,a),((Ee&2)===0||t!==je)&&(t===je&&((Ee&2)===0&&(Fi|=a),Ie===4&&gi(t,Se,en,!1)),wn(t))}function bm(t,r,a){if((Ee&6)!==0)throw Error(s(327));var c=!a&&(r&124)===0&&(r&t.expiredLanes)===0||ji(t,r),h=c?$w(t,r):vf(t,r,!0),g=c;do{if(h===0){Ks&&!c&&gi(t,r,0,!1);break}else{if(a=t.current.alternate,g&&!Hw(a)){h=vf(t,r,!1),g=!1;continue}if(h===2){if(g=r,t.errorRecoveryDisabledLanes&g)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var _=t;h=ma;var A=_.current.memoizedState.isDehydrated;if(A&&(Fs(_,w).flags|=256),w=vf(_,w,!1),w!==2){if(uf&&!A){_.errorRecoveryDisabledLanes|=g,Fi|=g,h=4;break e}g=kt,kt=h,g!==null&&(kt===null?kt=g:kt.push.apply(kt,g))}h=w}if(g=!1,h!==2)continue}}if(h===1){Fs(t,0),gi(t,r,0,!0);break}e:{switch(c=t,g=h,g){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:gi(c,r,en,!fi);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(h=df+300-Kt(),10<h)){if(gi(c,r,en,!fi),ms(c,0,!0)!==0)break e;c.timeoutHandle=Xm(vm.bind(null,c,a,kt,no,hf,r,en,Fi,Ys,fi,g,2,-0,0),h);break e}vm(c,a,kt,no,hf,r,en,Fi,Ys,fi,g,0,-0,0)}}break}while(!0);wn(t)}function vm(t,r,a,c,h,g,w,_,A,D,K,X,B,U){if(t.timeoutHandle=-1,X=r.subtreeFlags,(X&8192||(X&16785408)===16785408)&&(Ta={stylesheets:null,count:0,unsuspend:S1},hm(r),X=x1(),X!==null)){t.cancelPendingCommit=X(Am.bind(null,t,r,g,a,c,h,w,_,A,K,1,B,U)),gi(t,g,w,!D);return}Am(t,r,g,a,c,h,w,_,A)}function Hw(t){for(var r=t;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var h=a[c],g=h.getSnapshot;h=h.value;try{if(!Bt(g(),h))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function gi(t,r,a,c){r&=~ff,r&=~Fi,t.suspendedLanes|=r,t.pingedLanes&=~r,c&&(t.warmLanes|=r),c=t.expirationTimes;for(var h=r;0<h;){var g=31-vt(h),w=1<<g;c[g]=-1,h&=~w}a!==0&&Md(t,a,r)}function io(){return(Ee&6)===0?(ba(0),!1):!0}function yf(){if(me!==null){if(Ae===0)var t=me.return;else t=me,jn=Vi=null,ju(t),$s=null,oa=0,t=me;for(;t!==null;)Jg(t.alternate,t),t=t.return;me=null}}function Fs(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,i1(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),yf(),je=t,me=a=Mn(t.current,null),Se=r,Ae=0,qt=null,fi=!1,Ks=ji(t,r),uf=!1,Ys=en=ff=Fi=hi=Ie=0,kt=ma=null,hf=!1,(r&8)!==0&&(r|=r&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=r;0<c;){var h=31-vt(c),g=1<<h;r|=t[h],c&=~g}return $n=r,El(),a}function Sm(t,r){pe=null,z.H=Gl,r===Wr||r===Ll?(r=Up(),Ae=3):r===Lp?(r=Up(),Ae=4):Ae=r===zg?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,qt=r,me===null&&(Ie=1,Fl(t,Ft(r,t.current)))}function wm(){var t=z.H;return z.H=Gl,t===null?Gl:t}function xm(){var t=z.A;return z.A=Uw,t}function bf(){Ie=4,fi||(Se&4194048)!==Se&&Wt.current!==null||(Ks=!0),(hi&134217727)===0&&(Fi&134217727)===0||je===null||gi(je,Se,en,!1)}function vf(t,r,a){var c=Ee;Ee|=2;var h=wm(),g=xm();(je!==t||Se!==r)&&(no=null,Fs(t,r)),r=!1;var w=Ie;e:do try{if(Ae!==0&&me!==null){var _=me,A=qt;switch(Ae){case 8:yf(),w=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(r=!0);var D=Ae;if(Ae=0,qt=null,Qs(t,_,A,D),a&&Ks){w=0;break e}break;default:D=Ae,Ae=0,qt=null,Qs(t,_,A,D)}}qw(),w=Ie;break}catch(K){Sm(t,K)}while(!0);return r&&t.shellSuspendCounter++,jn=Vi=null,Ee=c,z.H=h,z.A=g,me===null&&(je=null,Se=0,El()),w}function qw(){for(;me!==null;)_m(me)}function $w(t,r){var a=Ee;Ee|=2;var c=wm(),h=xm();je!==t||Se!==r?(no=null,to=Kt()+500,Fs(t,r)):Ks=ji(t,r);e:do try{if(Ae!==0&&me!==null){r=me;var g=qt;t:switch(Ae){case 1:Ae=0,qt=null,Qs(t,r,g,1);break;case 2:case 9:if(Dp(g)){Ae=0,qt=null,Tm(r);break}r=function(){Ae!==2&&Ae!==9||je!==t||(Ae=7),wn(t)},g.then(r,r);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Dp(g)?(Ae=0,qt=null,Tm(r)):(Ae=0,qt=null,Qs(t,r,g,7));break;case 5:var w=null;switch(me.tag){case 26:w=me.memoizedState;case 5:case 27:var _=me;if(!w||ry(w)){Ae=0,qt=null;var A=_.sibling;if(A!==null)me=A;else{var D=_.return;D!==null?(me=D,so(D)):me=null}break t}}Ae=0,qt=null,Qs(t,r,g,5);break;case 6:Ae=0,qt=null,Qs(t,r,g,6);break;case 8:yf(),Ie=6;break e;default:throw Error(s(462))}}Iw();break}catch(K){Sm(t,K)}while(!0);return jn=Vi=null,z.H=c,z.A=h,Ee=a,me!==null?0:(je=null,Se=0,El(),Ie)}function Iw(){for(;me!==null&&!fl();)_m(me)}function _m(t){var r=Qg(t.alternate,t,$n);t.memoizedProps=t.pendingProps,r===null?so(t):me=r}function Tm(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=Gg(a,r,r.pendingProps,r.type,void 0,Se);break;case 11:r=Gg(a,r,r.pendingProps,r.type.render,r.ref,Se);break;case 5:ju(r);default:Jg(a,r),r=me=Ep(r,$n),r=Qg(a,r,$n)}t.memoizedProps=t.pendingProps,r===null?so(t):me=r}function Qs(t,r,a,c){jn=Vi=null,ju(r),$s=null,oa=0;var h=r.return;try{if(Ow(t,h,r,a,Se)){Ie=1,Fl(t,Ft(a,t.current)),me=null;return}}catch(g){if(h!==null)throw me=h,g;Ie=1,Fl(t,Ft(a,t.current)),me=null;return}r.flags&32768?(_e||c===1?t=!0:Ks||(Se&536870912)!==0?t=!1:(fi=t=!0,(c===2||c===9||c===3||c===6)&&(c=Wt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Em(r,t)):so(r)}function so(t){var r=t;do{if((r.flags&32768)!==0){Em(r,fi);return}t=r.return;var a=jw(r.alternate,r,$n);if(a!==null){me=a;return}if(r=r.sibling,r!==null){me=r;return}me=r=t}while(r!==null);Ie===0&&(Ie=5)}function Em(t,r){do{var a=Lw(t.alternate,t);if(a!==null){a.flags&=32767,me=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){me=t;return}me=t=a}while(t!==null);Ie=6,me=null}function Am(t,r,a,c,h,g,w,_,A){t.cancelPendingCommit=null;do ro();while(rt!==0);if((Ee&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(g=r.lanes|r.childLanes,g|=ou,SS(t,a,g,w,_,A),t===je&&(me=je=null,Se=0),Xs=r,pi=t,Ps=a,pf=g,gf=h,mm=c,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yw(gs,function(){return Om(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||c){c=z.T,z.T=null,h=Q.p,Q.p=2,w=Ee,Ee|=4;try{Dw(t,r,a)}finally{Ee=w,Q.p=h,z.T=c}}rt=1,Nm(),Cm(),km()}}function Nm(){if(rt===1){rt=0;var t=pi,r=Xs,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var c=Q.p;Q.p=2;var h=Ee;Ee|=4;try{cm(r,t);var g=Of,w=gp(t.containerInfo),_=g.focusedElem,A=g.selectionRange;if(w!==_&&_&&_.ownerDocument&&pp(_.ownerDocument.documentElement,_)){if(A!==null&&iu(_)){var D=A.start,K=A.end;if(K===void 0&&(K=D),"selectionStart"in _)_.selectionStart=D,_.selectionEnd=Math.min(K,_.value.length);else{var X=_.ownerDocument||document,B=X&&X.defaultView||window;if(B.getSelection){var U=B.getSelection(),fe=_.textContent.length,oe=Math.min(A.start,fe),Me=A.end===void 0?oe:Math.min(A.end,fe);!U.extend&&oe>Me&&(w=Me,Me=oe,oe=w);var O=dp(_,oe),M=dp(_,Me);if(O&&M&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==M.node||U.focusOffset!==M.offset)){var L=X.createRange();L.setStart(O.node,O.offset),U.removeAllRanges(),oe>Me?(U.addRange(L),U.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),U.addRange(L))}}}}for(X=[],U=_;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<X.length;_++){var Y=X[_];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}bo=!!Mf,Of=Mf=null}finally{Ee=h,Q.p=c,z.T=a}}t.current=r,rt=2}}function Cm(){if(rt===2){rt=0;var t=pi,r=Xs,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var c=Q.p;Q.p=2;var h=Ee;Ee|=4;try{rm(t,r.alternate,r)}finally{Ee=h,Q.p=c,z.T=a}}rt=3}}function km(){if(rt===4||rt===3){rt=0,Mc();var t=pi,r=Xs,a=Ps,c=mm;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?rt=5:(rt=0,Xs=pi=null,Mm(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(di=null),Bc(a),r=r.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Oi,r,void 0,(r.current.flags&128)===128)}catch{}if(c!==null){r=z.T,h=Q.p,Q.p=2,z.T=null;try{for(var g=t.onRecoverableError,w=0;w<c.length;w++){var _=c[w];g(_.value,{componentStack:_.stack})}}finally{z.T=r,Q.p=h}}(Ps&3)!==0&&ro(),wn(t),h=t.pendingLanes,(a&4194090)!==0&&(h&42)!==0?t===mf?ya++:(ya=0,mf=t):ya=0,ba(0)}}function Mm(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Zr(r)))}function ro(t){return Nm(),Cm(),km(),Om()}function Om(){if(rt!==5)return!1;var t=pi,r=pf;pf=0;var a=Bc(Ps),c=z.T,h=Q.p;try{Q.p=32>a?32:a,z.T=null,a=gf,gf=null;var g=pi,w=Ps;if(rt=0,Xs=pi=null,Ps=0,(Ee&6)!==0)throw Error(s(331));var _=Ee;if(Ee|=4,pm(g.current),fm(g,g.current,w,a),Ee=_,ba(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Oi,g)}catch{}return!0}finally{Q.p=h,z.T=c,Mm(t,r)}}function Rm(t,r,a){r=Ft(a,r),r=Xu(t.stateNode,r,2),t=si(t,r,2),t!==null&&(Dr(t,2),wn(t))}function Oe(t,r,a){if(t.tag===3)Rm(t,t,a);else for(;r!==null;){if(r.tag===3){Rm(r,t,a);break}else if(r.tag===1){var c=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(di===null||!di.has(c))){t=Ft(a,t),a=Bg(2),c=si(r,a,2),c!==null&&(Ug(a,c,r,t),Dr(c,2),wn(c));break}}r=r.return}}function Sf(t,r,a){var c=t.pingCache;if(c===null){c=t.pingCache=new zw;var h=new Set;c.set(r,h)}else h=c.get(r),h===void 0&&(h=new Set,c.set(r,h));h.has(a)||(uf=!0,h.add(a),t=Vw.bind(null,t,r,a),r.then(t,t))}function Vw(t,r,a){var c=t.pingCache;c!==null&&c.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,je===t&&(Se&a)===a&&(Ie===4||Ie===3&&(Se&62914560)===Se&&300>Kt()-df?(Ee&2)===0&&Fs(t,0):ff|=a,Ys===Se&&(Ys=0)),wn(t)}function jm(t,r){r===0&&(r=Jn()),t=Os(t,r),t!==null&&(Dr(t,r),wn(t))}function Gw(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),jm(t,a)}function Kw(t,r){var a=0;switch(t.tag){case 13:var c=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(s(314))}c!==null&&c.delete(r),jm(t,a)}function Yw(t,r){return ds(t,r)}var ao=null,Zs=null,wf=!1,lo=!1,xf=!1,Qi=0;function wn(t){t!==Zs&&t.next===null&&(Zs===null?ao=Zs=t:Zs=Zs.next=t),lo=!0,wf||(wf=!0,Pw())}function ba(t,r){if(!xf&&lo){xf=!0;do for(var a=!1,c=ao;c!==null;){if(t!==0){var h=c.pendingLanes;if(h===0)var g=0;else{var w=c.suspendedLanes,_=c.pingedLanes;g=(1<<31-vt(42|t)+1)-1,g&=h&~(w&~_),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,Um(c,g))}else g=Se,g=ms(c,c===je?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||ji(c,g)||(a=!0,Um(c,g));c=c.next}while(a);xf=!1}}function Xw(){Lm()}function Lm(){lo=wf=!1;var t=0;Qi!==0&&(n1()&&(t=Qi),Qi=0);for(var r=Kt(),a=null,c=ao;c!==null;){var h=c.next,g=Dm(c,r);g===0?(c.next=null,a===null?ao=h:a.next=h,h===null&&(Zs=a)):(a=c,(t!==0||(g&3)!==0)&&(lo=!0)),c=h}ba(t)}function Dm(t,r){for(var a=t.suspendedLanes,c=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var w=31-vt(g),_=1<<w,A=h[w];A===-1?((_&a)===0||(_&c)!==0)&&(h[w]=dl(_,r)):A<=r&&(t.expiredLanes|=_),g&=~_}if(r=je,a=Se,a=ms(t,t===r?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,a===0||t===r&&(Ae===2||Ae===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&bt(c),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||ji(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(c!==null&&bt(c),Bc(a)){case 2:case 8:a=Mi;break;case 32:a=gs;break;case 268435456:a=hl;break;default:a=gs}return c=Bm.bind(null,t),a=ds(a,c),t.callbackPriority=r,t.callbackNode=a,r}return c!==null&&c!==null&&bt(c),t.callbackPriority=2,t.callbackNode=null,2}function Bm(t,r){if(rt!==0&&rt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(ro()&&t.callbackNode!==a)return null;var c=Se;return c=ms(t,t===je?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(bm(t,c,r),Dm(t,Kt()),t.callbackNode!=null&&t.callbackNode===a?Bm.bind(null,t):null)}function Um(t,r){if(ro())return null;bm(t,r,!0)}function Pw(){s1(function(){(Ee&6)!==0?ds(ps,Xw):Lm()})}function _f(){return Qi===0&&(Qi=ce()),Qi}function zm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:bl(""+t)}function Hm(t,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,t.id&&a.setAttribute("form",t.id),r.parentNode.insertBefore(a,r),t=new FormData(t),a.parentNode.removeChild(a),t}function Fw(t,r,a,c,h){if(r==="submit"&&a&&a.stateNode===h){var g=zm((h[Et]||null).action),w=c.submitter;w&&(r=(r=w[Et]||null)?zm(r.formAction):w.getAttribute("formAction"),r!==null&&(g=r,w=null));var _=new xl("action","action",null,c,h);t.push({event:_,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Qi!==0){var A=w?Hm(h,w):new FormData(h);Iu(a,{pending:!0,data:A,method:h.method,action:g},null,A)}}else typeof g=="function"&&(_.preventDefault(),A=w?Hm(h,w):new FormData(h),Iu(a,{pending:!0,data:A,method:h.method,action:g},g,A))},currentTarget:h}]})}}for(var Tf=0;Tf<lu.length;Tf++){var Ef=lu[Tf],Qw=Ef.toLowerCase(),Zw=Ef[0].toUpperCase()+Ef.slice(1);fn(Qw,"on"+Zw)}fn(bp,"onAnimationEnd"),fn(vp,"onAnimationIteration"),fn(Sp,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(pw,"onTransitionRun"),fn(gw,"onTransitionStart"),fn(mw,"onTransitionCancel"),fn(wp,"onTransitionEnd"),ws("onMouseEnter",["mouseout","mouseover"]),ws("onMouseLeave",["mouseout","mouseover"]),ws("onPointerEnter",["pointerout","pointerover"]),ws("onPointerLeave",["pointerout","pointerover"]),Li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Li("onBeforeInput",["compositionend","keypress","textInput","paste"]),Li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var va="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(" "),Jw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(va));function qm(t,r){r=(r&4)!==0;for(var a=0;a<t.length;a++){var c=t[a],h=c.event;c=c.listeners;e:{var g=void 0;if(r)for(var w=c.length-1;0<=w;w--){var _=c[w],A=_.instance,D=_.currentTarget;if(_=_.listener,A!==g&&h.isPropagationStopped())break e;g=_,h.currentTarget=D;try{g(h)}catch(K){Pl(K)}h.currentTarget=null,g=A}else for(w=0;w<c.length;w++){if(_=c[w],A=_.instance,D=_.currentTarget,_=_.listener,A!==g&&h.isPropagationStopped())break e;g=_,h.currentTarget=D;try{g(h)}catch(K){Pl(K)}h.currentTarget=null,g=A}}}}function ye(t,r){var a=r[Uc];a===void 0&&(a=r[Uc]=new Set);var c=t+"__bubble";a.has(c)||($m(r,t,2,!1),a.add(c))}function Af(t,r,a){var c=0;r&&(c|=4),$m(a,t,c,r)}var oo="_reactListening"+Math.random().toString(36).slice(2);function Nf(t){if(!t[oo]){t[oo]=!0,Ld.forEach(function(a){a!=="selectionchange"&&(Jw.has(a)||Af(a,!1,t),Af(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[oo]||(r[oo]=!0,Af("selectionchange",!1,r))}}function $m(t,r,a,c){switch(fy(r)){case 2:var h=E1;break;case 8:h=A1;break;default:h=$f}a=h.bind(null,r,a,t),h=void 0,!Pc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),c?h!==void 0?t.addEventListener(r,a,{capture:!0,passive:h}):t.addEventListener(r,a,!0):h!==void 0?t.addEventListener(r,a,{passive:h}):t.addEventListener(r,a,!1)}function Cf(t,r,a,c,h){var g=c;if((r&1)===0&&(r&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var _=c.stateNode.containerInfo;if(_===h)break;if(w===4)for(w=c.return;w!==null;){var A=w.tag;if((A===3||A===4)&&w.stateNode.containerInfo===h)return;w=w.return}for(;_!==null;){if(w=bs(_),w===null)return;if(A=w.tag,A===5||A===6||A===26||A===27){c=g=w;continue e}_=_.parentNode}}c=c.return}Pd(function(){var D=g,K=Yc(a),X=[];e:{var B=xp.get(t);if(B!==void 0){var U=xl,fe=t;switch(t){case"keypress":if(Sl(a)===0)break e;case"keydown":case"keyup":U=YS;break;case"focusin":fe="focus",U=Jc;break;case"focusout":fe="blur",U=Jc;break;case"beforeblur":case"afterblur":U=Jc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=LS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=FS;break;case bp:case vp:case Sp:U=US;break;case wp:U=ZS;break;case"scroll":case"scrollend":U=RS;break;case"wheel":U=WS;break;case"copy":case"cut":case"paste":U=HS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Wd;break;case"toggle":case"beforetoggle":U=tw}var oe=(r&4)!==0,Me=!oe&&(t==="scroll"||t==="scrollend"),O=oe?B!==null?B+"Capture":null:B;oe=[];for(var M=D,L;M!==null;){var Y=M;if(L=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||L===null||O===null||(Y=zr(M,O),Y!=null&&oe.push(Sa(M,Y,L))),Me)break;M=M.return}0<oe.length&&(B=new U(B,fe,null,a,K),X.push({event:B,listeners:oe}))}}if((r&7)===0){e:{if(B=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",B&&a!==Kc&&(fe=a.relatedTarget||a.fromElement)&&(bs(fe)||fe[ys]))break e;if((U||B)&&(B=K.window===K?K:(B=K.ownerDocument)?B.defaultView||B.parentWindow:window,U?(fe=a.relatedTarget||a.toElement,U=D,fe=fe?bs(fe):null,fe!==null&&(Me=o(fe),oe=fe.tag,fe!==Me||oe!==5&&oe!==27&&oe!==6)&&(fe=null)):(U=null,fe=D),U!==fe)){if(oe=Zd,Y="onMouseLeave",O="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(oe=Wd,Y="onPointerLeave",O="onPointerEnter",M="pointer"),Me=U==null?B:Ur(U),L=fe==null?B:Ur(fe),B=new oe(Y,M+"leave",U,a,K),B.target=Me,B.relatedTarget=L,Y=null,bs(K)===D&&(oe=new oe(O,M+"enter",fe,a,K),oe.target=L,oe.relatedTarget=Me,Y=oe),Me=Y,U&&fe)t:{for(oe=U,O=fe,M=0,L=oe;L;L=Js(L))M++;for(L=0,Y=O;Y;Y=Js(Y))L++;for(;0<M-L;)oe=Js(oe),M--;for(;0<L-M;)O=Js(O),L--;for(;M--;){if(oe===O||O!==null&&oe===O.alternate)break t;oe=Js(oe),O=Js(O)}oe=null}else oe=null;U!==null&&Im(X,B,U,oe,!1),fe!==null&&Me!==null&&Im(X,Me,fe,oe,!0)}}e:{if(B=D?Ur(D):window,U=B.nodeName&&B.nodeName.toLowerCase(),U==="select"||U==="input"&&B.type==="file")var ne=lp;else if(rp(B))if(op)ne=fw;else{ne=cw;var ge=ow}else U=B.nodeName,!U||U.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?D&&Gc(D.elementType)&&(ne=lp):ne=uw;if(ne&&(ne=ne(t,D))){ap(X,ne,a,K);break e}ge&&ge(t,B,D),t==="focusout"&&D&&B.type==="number"&&D.memoizedProps.value!=null&&Vc(B,"number",B.value)}switch(ge=D?Ur(D):window,t){case"focusin":(rp(ge)||ge.contentEditable==="true")&&(Cs=ge,su=D,Yr=null);break;case"focusout":Yr=su=Cs=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,mp(X,a,K);break;case"selectionchange":if(dw)break;case"keydown":case"keyup":mp(X,a,K)}var re;if(eu)e:{switch(t){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else Ns?ip(t,a)&&(ue="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(ue="onCompositionStart");ue&&(ep&&a.locale!=="ko"&&(Ns||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&Ns&&(re=Fd()):(ei=K,Fc="value"in ei?ei.value:ei.textContent,Ns=!0)),ge=co(D,ue),0<ge.length&&(ue=new Jd(ue,t,null,a,K),X.push({event:ue,listeners:ge}),re?ue.data=re:(re=sp(a),re!==null&&(ue.data=re)))),(re=iw?sw(t,a):rw(t,a))&&(ue=co(D,"onBeforeInput"),0<ue.length&&(ge=new Jd("onBeforeInput","beforeinput",null,a,K),X.push({event:ge,listeners:ue}),ge.data=re)),Fw(X,t,D,a,K)}qm(X,r)})}function Sa(t,r,a){return{instance:t,listener:r,currentTarget:a}}function co(t,r){for(var a=r+"Capture",c=[];t!==null;){var h=t,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=zr(t,a),h!=null&&c.unshift(Sa(t,h,g)),h=zr(t,r),h!=null&&c.push(Sa(t,h,g))),t.tag===3)return c;t=t.return}return[]}function Js(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Im(t,r,a,c,h){for(var g=r._reactName,w=[];a!==null&&a!==c;){var _=a,A=_.alternate,D=_.stateNode;if(_=_.tag,A!==null&&A===c)break;_!==5&&_!==26&&_!==27||D===null||(A=D,h?(D=zr(a,g),D!=null&&w.unshift(Sa(a,D,A))):h||(D=zr(a,g),D!=null&&w.push(Sa(a,D,A)))),a=a.return}w.length!==0&&t.push({event:r,listeners:w})}var Ww=/\r\n?/g,e1=/\u0000|\uFFFD/g;function Vm(t){return(typeof t=="string"?t:""+t).replace(Ww,`
50
- `).replace(e1,"")}function Gm(t,r){return r=Vm(r),Vm(t)===r}function uo(){}function ke(t,r,a,c,h,g){switch(a){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||Ts(t,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&Ts(t,""+c);break;case"className":gl(t,"class",c);break;case"tabIndex":gl(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":gl(t,a,c);break;case"style":Yd(t,c,g);break;case"data":if(r!=="object"){gl(t,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||a!=="href")){t.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=bl(""+c),t.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(a,"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 g=="function"&&(a==="formAction"?(r!=="input"&&ke(t,r,"name",h.name,h,null),ke(t,r,"formEncType",h.formEncType,h,null),ke(t,r,"formMethod",h.formMethod,h,null),ke(t,r,"formTarget",h.formTarget,h,null)):(ke(t,r,"encType",h.encType,h,null),ke(t,r,"method",h.method,h,null),ke(t,r,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=bl(""+c),t.setAttribute(a,c);break;case"onClick":c!=null&&(t.onclick=uo);break;case"onScroll":c!=null&&ye("scroll",t);break;case"onScrollEnd":c!=null&&ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(s(60));t.innerHTML=a}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}a=bl(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""+c):t.removeAttribute(a);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":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":c===!0?t.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,c):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(a,c):t.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(a):t.setAttribute(a,c);break;case"popover":ye("beforetoggle",t),ye("toggle",t),pl(t,"popover",c);break;case"xlinkActuate":Cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Cn(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Cn(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Cn(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Cn(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":pl(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=MS.get(a)||a,pl(t,a,c))}}function kf(t,r,a,c,h,g){switch(a){case"style":Yd(t,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(s(60));t.innerHTML=a}}break;case"children":typeof c=="string"?Ts(t,c):(typeof c=="number"||typeof c=="bigint")&&Ts(t,""+c);break;case"onScroll":c!=null&&ye("scroll",t);break;case"onScrollEnd":c!=null&&ye("scrollend",t);break;case"onClick":c!=null&&(t.onclick=uo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),r=a.slice(2,h?a.length-7:void 0),g=t[Et]||null,g=g!=null?g[a]:null,typeof g=="function"&&t.removeEventListener(r,g,h),typeof c=="function")){typeof g!="function"&&g!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(r,c,h);break e}a in t?t[a]=c:c===!0?t.setAttribute(a,""):pl(t,a,c)}}}function at(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",t),ye("load",t);var c=!1,h=!1,g;for(g in a)if(a.hasOwnProperty(g)){var w=a[g];if(w!=null)switch(g){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ke(t,r,g,w,a,null)}}h&&ke(t,r,"srcSet",a.srcSet,a,null),c&&ke(t,r,"src",a.src,a,null);return;case"input":ye("invalid",t);var _=g=w=h=null,A=null,D=null;for(c in a)if(a.hasOwnProperty(c)){var K=a[c];if(K!=null)switch(c){case"name":h=K;break;case"type":w=K;break;case"checked":A=K;break;case"defaultChecked":D=K;break;case"value":g=K;break;case"defaultValue":_=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,r));break;default:ke(t,r,c,K,a,null)}}Id(t,g,_,A,D,w,h,!1),ml(t);return;case"select":ye("invalid",t),c=w=g=null;for(h in a)if(a.hasOwnProperty(h)&&(_=a[h],_!=null))switch(h){case"value":g=_;break;case"defaultValue":w=_;break;case"multiple":c=_;default:ke(t,r,h,_,a,null)}r=g,a=w,t.multiple=!!c,r!=null?_s(t,!!c,r,!1):a!=null&&_s(t,!!c,a,!0);return;case"textarea":ye("invalid",t),g=h=c=null;for(w in a)if(a.hasOwnProperty(w)&&(_=a[w],_!=null))switch(w){case"value":c=_;break;case"defaultValue":h=_;break;case"children":g=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:ke(t,r,w,_,a,null)}Gd(t,c,h,g),ml(t);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(c=a[A],c!=null))switch(A){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ke(t,r,A,c,a,null)}return;case"dialog":ye("beforetoggle",t),ye("toggle",t),ye("cancel",t),ye("close",t);break;case"iframe":case"object":ye("load",t);break;case"video":case"audio":for(c=0;c<va.length;c++)ye(va[c],t);break;case"image":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"embed":case"source":case"link":ye("error",t),ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(c=a[D],c!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ke(t,r,D,c,a,null)}return;default:if(Gc(r)){for(K in a)a.hasOwnProperty(K)&&(c=a[K],c!==void 0&&kf(t,r,K,c,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(c=a[_],c!=null&&ke(t,r,_,c,a,null))}function t1(t,r,a,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,w=null,_=null,A=null,D=null,K=null;for(U in a){var X=a[U];if(a.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":A=X;default:c.hasOwnProperty(U)||ke(t,r,U,null,c,X)}}for(var B in c){var U=c[B];if(X=a[B],c.hasOwnProperty(B)&&(U!=null||X!=null))switch(B){case"type":g=U;break;case"name":h=U;break;case"checked":D=U;break;case"defaultChecked":K=U;break;case"value":w=U;break;case"defaultValue":_=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,r));break;default:U!==X&&ke(t,r,B,U,c,X)}}Ic(t,w,_,A,D,K,g,h);return;case"select":U=w=_=B=null;for(g in a)if(A=a[g],a.hasOwnProperty(g)&&A!=null)switch(g){case"value":break;case"multiple":U=A;default:c.hasOwnProperty(g)||ke(t,r,g,null,c,A)}for(h in c)if(g=c[h],A=a[h],c.hasOwnProperty(h)&&(g!=null||A!=null))switch(h){case"value":B=g;break;case"defaultValue":_=g;break;case"multiple":w=g;default:g!==A&&ke(t,r,h,g,c,A)}r=_,a=w,c=U,B!=null?_s(t,!!a,B,!1):!!c!=!!a&&(r!=null?_s(t,!!a,r,!0):_s(t,!!a,a?[]:"",!1));return;case"textarea":U=B=null;for(_ in a)if(h=a[_],a.hasOwnProperty(_)&&h!=null&&!c.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:ke(t,r,_,null,c,h)}for(w in c)if(h=c[w],g=a[w],c.hasOwnProperty(w)&&(h!=null||g!=null))switch(w){case"value":B=h;break;case"defaultValue":U=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==g&&ke(t,r,w,h,c,g)}Vd(t,B,U);return;case"option":for(var fe in a)if(B=a[fe],a.hasOwnProperty(fe)&&B!=null&&!c.hasOwnProperty(fe))switch(fe){case"selected":t.selected=!1;break;default:ke(t,r,fe,null,c,B)}for(A in c)if(B=c[A],U=a[A],c.hasOwnProperty(A)&&B!==U&&(B!=null||U!=null))switch(A){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:ke(t,r,A,B,c,U)}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 oe in a)B=a[oe],a.hasOwnProperty(oe)&&B!=null&&!c.hasOwnProperty(oe)&&ke(t,r,oe,null,c,B);for(D in c)if(B=c[D],U=a[D],c.hasOwnProperty(D)&&B!==U&&(B!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,r));break;default:ke(t,r,D,B,c,U)}return;default:if(Gc(r)){for(var Me in a)B=a[Me],a.hasOwnProperty(Me)&&B!==void 0&&!c.hasOwnProperty(Me)&&kf(t,r,Me,void 0,c,B);for(K in c)B=c[K],U=a[K],!c.hasOwnProperty(K)||B===U||B===void 0&&U===void 0||kf(t,r,K,B,c,U);return}}for(var O in a)B=a[O],a.hasOwnProperty(O)&&B!=null&&!c.hasOwnProperty(O)&&ke(t,r,O,null,c,B);for(X in c)B=c[X],U=a[X],!c.hasOwnProperty(X)||B===U||B==null&&U==null||ke(t,r,X,B,c,U)}var Mf=null,Of=null;function fo(t){return t.nodeType===9?t:t.ownerDocument}function Km(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ym(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Rf(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var jf=null;function n1(){var t=window.event;return t&&t.type==="popstate"?t===jf?!1:(jf=t,!0):(jf=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,i1=typeof clearTimeout=="function"?clearTimeout:void 0,Pm=typeof Promise=="function"?Promise:void 0,s1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pm<"u"?function(t){return Pm.resolve(null).then(t).catch(r1)}:Xm;function r1(t){setTimeout(function(){throw t})}function mi(t){return t==="head"}function Fm(t,r){var a=r,c=0,h=0;do{var g=a.nextSibling;if(t.removeChild(a),g&&g.nodeType===8)if(a=g.data,a==="/$"){if(0<c&&8>c){a=c;var w=t.ownerDocument;if(a&1&&wa(w.documentElement),a&2&&wa(w.body),a&4)for(a=w.head,wa(a),w=a.firstChild;w;){var _=w.nextSibling,A=w.nodeName;w[Br]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&w.rel.toLowerCase()==="stylesheet"||a.removeChild(w),w=_}}if(h===0){t.removeChild(g),ka(r);return}h--}else a==="$"||a==="$?"||a==="$!"?h++:c=a.charCodeAt(0)-48;else c=0;a=g}while(a);ka(r)}function Lf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lf(a),zc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function a1(t,r,a,c){for(;t.nodeType===1;){var h=a;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Br])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=dn(t.nextSibling),t===null)break}return null}function l1(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=dn(t.nextSibling),t===null))return null;return t}function Df(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function o1(t,r){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")r();else{var c=function(){r(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function dn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var Bf=null;function Qm(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return t;r--}else a==="/$"&&r++}t=t.previousSibling}return null}function Zm(t,r,a){switch(r=fo(a),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function wa(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);zc(t)}var tn=new Map,Jm=new Set;function ho(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var In=Q.d;Q.d={f:c1,r:u1,D:f1,C:h1,L:d1,m:p1,X:m1,S:g1,M:y1};function c1(){var t=In.f(),r=io();return t||r}function u1(t){var r=vs(t);r!==null&&r.tag===5&&r.type==="form"?bg(r):In.r(t)}var Ws=typeof document>"u"?null:document;function Wm(t,r,a){var c=Ws;if(c&&typeof r=="string"&&r){var h=Pt(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),Jm.has(h)||(Jm.add(h),t={rel:t,crossOrigin:a,href:r},c.querySelector(h)===null&&(r=c.createElement("link"),at(r,"link",t),et(r),c.head.appendChild(r)))}}function f1(t){In.D(t),Wm("dns-prefetch",t,null)}function h1(t,r){In.C(t,r),Wm("preconnect",t,r)}function d1(t,r,a){In.L(t,r,a);var c=Ws;if(c&&t&&r){var h='link[rel="preload"][as="'+Pt(r)+'"]';r==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Pt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Pt(a.imageSizes)+'"]')):h+='[href="'+Pt(t)+'"]';var g=h;switch(r){case"style":g=er(t);break;case"script":g=tr(t)}tn.has(g)||(t=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),tn.set(g,t),c.querySelector(h)!==null||r==="style"&&c.querySelector(xa(g))||r==="script"&&c.querySelector(_a(g))||(r=c.createElement("link"),at(r,"link",t),et(r),c.head.appendChild(r)))}}function p1(t,r){In.m(t,r);var a=Ws;if(a&&t){var c=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Pt(c)+'"][href="'+Pt(t)+'"]',g=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=tr(t)}if(!tn.has(g)&&(t=m({rel:"modulepreload",href:t},r),tn.set(g,t),a.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(_a(g)))return}c=a.createElement("link"),at(c,"link",t),et(c),a.head.appendChild(c)}}}function g1(t,r,a){In.S(t,r,a);var c=Ws;if(c&&t){var h=Ss(c).hoistableStyles,g=er(t);r=r||"default";var w=h.get(g);if(!w){var _={loading:0,preload:null};if(w=c.querySelector(xa(g)))_.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},a),(a=tn.get(g))&&Uf(t,a);var A=w=c.createElement("link");et(A),at(A,"link",t),A._p=new Promise(function(D,K){A.onload=D,A.onerror=K}),A.addEventListener("load",function(){_.loading|=1}),A.addEventListener("error",function(){_.loading|=2}),_.loading|=4,po(w,r,c)}w={type:"stylesheet",instance:w,count:1,state:_},h.set(g,w)}}}function m1(t,r){In.X(t,r);var a=Ws;if(a&&t){var c=Ss(a).hoistableScripts,h=tr(t),g=c.get(h);g||(g=a.querySelector(_a(h)),g||(t=m({src:t,async:!0},r),(r=tn.get(h))&&zf(t,r),g=a.createElement("script"),et(g),at(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function y1(t,r){In.M(t,r);var a=Ws;if(a&&t){var c=Ss(a).hoistableScripts,h=tr(t),g=c.get(h);g||(g=a.querySelector(_a(h)),g||(t=m({src:t,async:!0,type:"module"},r),(r=tn.get(h))&&zf(t,r),g=a.createElement("script"),et(g),at(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function ey(t,r,a,c){var h=(h=te.current)?ho(h):null;if(!h)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=er(a.href),a=Ss(h).hoistableStyles,c=a.get(r),c||(c={type:"style",instance:null,count:0,state:null},a.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=er(a.href);var g=Ss(h).hoistableStyles,w=g.get(t);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,w),(g=h.querySelector(xa(t)))&&!g._p&&(w.instance=g,w.state.loading=5),tn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},tn.set(t,a),g||b1(h,t,a,w.state))),r&&c===null)throw Error(s(528,""));return w}if(r&&c!==null)throw Error(s(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=tr(a),a=Ss(h).hoistableScripts,c=a.get(r),c||(c={type:"script",instance:null,count:0,state:null},a.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function er(t){return'href="'+Pt(t)+'"'}function xa(t){return'link[rel="stylesheet"]['+t+"]"}function ty(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function b1(t,r,a,c){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=t.createElement("link"),c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),at(r,"link",a),et(r),t.head.appendChild(r))}function tr(t){return'[src="'+Pt(t)+'"]'}function _a(t){return"script[async]"+t}function ny(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var c=t.querySelector('style[data-href~="'+Pt(a.href)+'"]');if(c)return r.instance=c,et(c),c;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),et(c),at(c,"style",h),po(c,a.precedence,t),r.instance=c;case"stylesheet":h=er(a.href);var g=t.querySelector(xa(h));if(g)return r.state.loading|=4,r.instance=g,et(g),g;c=ty(a),(h=tn.get(h))&&Uf(c,h),g=(t.ownerDocument||t).createElement("link"),et(g);var w=g;return w._p=new Promise(function(_,A){w.onload=_,w.onerror=A}),at(g,"link",c),r.state.loading|=4,po(g,a.precedence,t),r.instance=g;case"script":return g=tr(a.src),(h=t.querySelector(_a(g)))?(r.instance=h,et(h),h):(c=a,(h=tn.get(g))&&(c=m({},a),zf(c,h)),t=t.ownerDocument||t,h=t.createElement("script"),et(h),at(h,"link",c),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,po(c,a.precedence,t));return r.instance}function po(t,r,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,g=h,w=0;w<c.length;w++){var _=c[w];if(_.dataset.precedence===r)g=_;else if(g!==h)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function Uf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function zf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var go=null;function iy(t,r,a){if(go===null){var c=new Map,h=go=new Map;h.set(a,c)}else h=go,c=h.get(a),c||(c=new Map,h.set(a,c));if(c.has(t))return c;for(c.set(t,null),a=a.getElementsByTagName(t),h=0;h<a.length;h++){var g=a[h];if(!(g[Br]||g[ft]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var w=g.getAttribute(r)||"";w=t+w;var _=c.get(w);_?_.push(g):c.set(w,[g])}}return c}function sy(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function v1(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function ry(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ta=null;function S1(){}function w1(t,r,a){if(Ta===null)throw Error(s(475));var c=Ta;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=er(a.href),g=t.querySelector(xa(h));if(g){t=g._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(c.count++,c=mo.bind(c),t.then(c,c)),r.state.loading|=4,r.instance=g,et(g);return}g=t.ownerDocument||t,a=ty(a),(h=tn.get(h))&&Uf(a,h),g=g.createElement("link"),et(g);var w=g;w._p=new Promise(function(_,A){w.onload=_,w.onerror=A}),at(g,"link",a),r.instance=g}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(c.count++,r=mo.bind(c),t.addEventListener("load",r),t.addEventListener("error",r))}}function x1(){if(Ta===null)throw Error(s(475));var t=Ta;return t.stylesheets&&t.count===0&&Hf(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Hf(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(a)}}:null}function mo(){if(this.count--,this.count===0){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yo=null;function Hf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yo=new Map,r.forEach(_1,t),yo=null,mo.call(t))}function _1(t,r){if(!(r.state.loading&4)){var a=yo.get(t);if(a)var c=a.get(null);else{a=new Map,yo.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var w=h[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(a.set(w.dataset.precedence,w),c=w)}c&&a.set(null,c)}h=r.instance,w=h.getAttribute("data-precedence"),g=a.get(w)||c,g===c&&a.set(null,h),a.set(w,h),this.count++,c=mo.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),g?g.parentNode.insertBefore(h,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var Ea={$$typeof:$,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function T1(t,r,a,c,h,g,w,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=un(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=un(0),this.hiddenUpdates=un(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function ay(t,r,a,c,h,g,w,_,A,D,K,X){return t=new T1(t,r,a,w,_,A,D,X),r=1,g===!0&&(r|=24),g=Ut(3,null,null,r),t.current=g,g.stateNode=t,r=vu(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:c,isDehydrated:a,cache:r},_u(g),t}function ly(t){return t?(t=Rs,t):Rs}function oy(t,r,a,c,h,g){h=ly(h),c.context===null?c.context=h:c.pendingContext=h,c=ii(r),c.payload={element:a},g=g===void 0?null:g,g!==null&&(c.callback=g),a=si(t,c,r),a!==null&&(It(a,t,r),ta(a,t,r))}function cy(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function qf(t,r){cy(t,r),(t=t.alternate)&&cy(t,r)}function uy(t){if(t.tag===13){var r=Os(t,67108864);r!==null&&It(r,t,67108864),qf(t,67108864)}}var bo=!0;function E1(t,r,a,c){var h=z.T;z.T=null;var g=Q.p;try{Q.p=2,$f(t,r,a,c)}finally{Q.p=g,z.T=h}}function A1(t,r,a,c){var h=z.T;z.T=null;var g=Q.p;try{Q.p=8,$f(t,r,a,c)}finally{Q.p=g,z.T=h}}function $f(t,r,a,c){if(bo){var h=If(c);if(h===null)Cf(t,r,c,vo,a),hy(t,c);else if(C1(h,t,r,a,c))c.stopPropagation();else if(hy(t,c),r&4&&-1<N1.indexOf(t)){for(;h!==null;){var g=vs(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=Nn(g.pendingLanes);if(w!==0){var _=g;for(_.pendingLanes|=2,_.entangledLanes|=2;w;){var A=1<<31-vt(w);_.entanglements[1]|=A,w&=~A}wn(g),(Ee&6)===0&&(to=Kt()+500,ba(0))}}break;case 13:_=Os(g,2),_!==null&&It(_,g,2),io(),qf(g,2)}if(g=If(c),g===null&&Cf(t,r,c,vo,a),g===h)break;h=g}h!==null&&c.stopPropagation()}else Cf(t,r,c,null,a)}}function If(t){return t=Yc(t),Vf(t)}var vo=null;function Vf(t){if(vo=null,t=bs(t),t!==null){var r=o(t);if(r===null)t=null;else{var a=r.tag;if(a===13){if(t=u(r),t!==null)return t;t=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return vo=t,null}function fy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lr()){case ps:return 2;case Mi:return 8;case gs:case Qn:return 32;case hl:return 268435456;default:return 32}default:return 32}}var Gf=!1,yi=null,bi=null,vi=null,Aa=new Map,Na=new Map,Si=[],N1="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 hy(t,r){switch(t){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":bi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Aa.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Na.delete(r.pointerId)}}function Ca(t,r,a,c,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:a,eventSystemFlags:c,nativeEvent:g,targetContainers:[h]},r!==null&&(r=vs(r),r!==null&&uy(r)),t):(t.eventSystemFlags|=c,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function C1(t,r,a,c,h){switch(r){case"focusin":return yi=Ca(yi,t,r,a,c,h),!0;case"dragenter":return bi=Ca(bi,t,r,a,c,h),!0;case"mouseover":return vi=Ca(vi,t,r,a,c,h),!0;case"pointerover":var g=h.pointerId;return Aa.set(g,Ca(Aa.get(g)||null,t,r,a,c,h)),!0;case"gotpointercapture":return g=h.pointerId,Na.set(g,Ca(Na.get(g)||null,t,r,a,c,h)),!0}return!1}function dy(t){var r=bs(t.target);if(r!==null){var a=o(r);if(a!==null){if(r=a.tag,r===13){if(r=u(a),r!==null){t.blockedOn=r,wS(t.priority,function(){if(a.tag===13){var c=$t();c=Dc(c);var h=Os(a,c);h!==null&&It(h,a,c),qf(a,c)}});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function So(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=If(t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a);Kc=c,a.target.dispatchEvent(c),Kc=null}else return r=vs(a),r!==null&&uy(r),t.blockedOn=a,!1;r.shift()}return!0}function py(t,r,a){So(t)&&a.delete(r)}function k1(){Gf=!1,yi!==null&&So(yi)&&(yi=null),bi!==null&&So(bi)&&(bi=null),vi!==null&&So(vi)&&(vi=null),Aa.forEach(py),Na.forEach(py)}function wo(t,r){t.blockedOn===r&&(t.blockedOn=null,Gf||(Gf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,k1)))}var xo=null;function gy(t){xo!==t&&(xo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xo===t&&(xo=null);for(var r=0;r<t.length;r+=3){var a=t[r],c=t[r+1],h=t[r+2];if(typeof c!="function"){if(Vf(c||a)===null)continue;break}var g=vs(a);g!==null&&(t.splice(r,3),r-=3,Iu(g,{pending:!0,data:h,method:a.method,action:c},c,h))}}))}function ka(t){function r(A){return wo(A,t)}yi!==null&&wo(yi,t),bi!==null&&wo(bi,t),vi!==null&&wo(vi,t),Aa.forEach(r),Na.forEach(r);for(var a=0;a<Si.length;a++){var c=Si[a];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Si.length&&(a=Si[0],a.blockedOn===null);)dy(a),a.blockedOn===null&&Si.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var h=a[c],g=a[c+1],w=h[Et]||null;if(typeof g=="function")w||gy(a);else if(w){var _=null;if(g&&g.hasAttribute("formAction")){if(h=g,w=g[Et]||null)_=w.formAction;else if(Vf(h)!==null)continue}else _=w.action;typeof _=="function"?a[c+1]=_:(a.splice(c,3),c-=3),gy(a)}}}function Kf(t){this._internalRoot=t}_o.prototype.render=Kf.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,c=$t();oy(a,c,t,r,null,null)},_o.prototype.unmount=Kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;oy(t.current,2,null,t,null,null),io(),r[ys]=null}};function _o(t){this._internalRoot=t}_o.prototype.unstable_scheduleHydration=function(t){if(t){var r=Rd();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Si.length&&r!==0&&r<Si[a].priority;a++);Si.splice(a,0,t),a===0&&dy(t)}};var my=e.version;if(my!=="19.1.1")throw Error(s(527,my,"19.1.1"));Q.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=d(r),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var M1={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Oi=To.inject(M1),ut=To}catch{}}return Oa.createRoot=function(t,r){if(!l(t))throw Error(s(299));var a=!1,c="",h=Rg,g=jg,w=Lg,_=null;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(_=r.unstable_transitionCallbacks)),r=ay(t,1,!1,null,null,a,c,h,g,w,_,null),t[ys]=r.current,Nf(t),new Kf(r)},Oa.hydrateRoot=function(t,r,a){if(!l(t))throw Error(s(299));var c=!1,h="",g=Rg,w=jg,_=Lg,A=null,D=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(D=a.formState)),r=ay(t,1,!0,r,a??null,c,h,g,w,_,A,D),r.context=ly(null),a=r.current,c=$t(),c=Dc(c),h=ii(c),h.callback=null,si(a,h,c),a=c,r.current.lanes=a,Dr(r,a),wn(r),t[ys]=r.current,Nf(t),new _o(r)},Oa.version="19.1.1",Oa}var Cy;function F1(){if(Cy)return Pf.exports;Cy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Pf.exports=P1(),Pf.exports}var s2=F1();const Mb=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}]]);function Q1(n,e){var i;return(i=Z1(n,e))==null?void 0:i.replaceAll(`
51
- `,"\\n")}function Z1(n,e){if(n)for(const i of e.split("|")){if(i==="url")try{const l=new URL(n[i]);return l.protocol==="data:"?l.protocol:l.protocol==="about:"?n[i]:l.pathname+l.search}catch{if(n[i]!==void 0)return n[i]}if(i==="timeNumber"&&n[i]!==void 0)return new Date(n[i]).toString();const s=J1(n,i);if(s!==void 0)return s}}function J1(n,e){const i=e.split(".");let s=n;for(const l of i){if(typeof s!="object"||s===null)return;s=s[l]}if(s!==void 0)return String(s)}function W1(n){var e;return(e=Mb.get(n.type+"."+n.method))==null?void 0:e.group}const Ha=Symbol("context"),Ob=Symbol("nextInContext"),Rb=Symbol("prevByEndTime"),jb=Symbol("nextByStartTime"),ky=Symbol("events");class r2{constructor(e,i){Te(this,"startTime");Te(this,"endTime");Te(this,"browserName");Te(this,"channel");Te(this,"platform");Te(this,"playwrightVersion");Te(this,"wallTime");Te(this,"title");Te(this,"options");Te(this,"pages");Te(this,"actions");Te(this,"attachments");Te(this,"visibleAttachments");Te(this,"events");Te(this,"stdio");Te(this,"errors");Te(this,"errorDescriptors");Te(this,"hasSource");Te(this,"hasStepData");Te(this,"sdkLanguage");Te(this,"testIdAttributeName");Te(this,"sources");Te(this,"resources");Te(this,"actionCounters");Te(this,"traceUrl");var l;i.forEach(o=>ex(o));const s=i.find(o=>o.origin==="library");this.traceUrl=e,this.browserName=(s==null?void 0:s.browserName)||"",this.sdkLanguage=s==null?void 0:s.sdkLanguage,this.channel=s==null?void 0:s.channel,this.testIdAttributeName=s==null?void 0:s.testIdAttributeName,this.platform=(s==null?void 0:s.platform)||"",this.playwrightVersion=(l=i.find(o=>o.playwrightVersion))==null?void 0:l.playwrightVersion,this.title=(s==null?void 0:s.title)||"",this.options=(s==null?void 0:s.options)||{},this.actions=tx(i),this.pages=[].concat(...i.map(o=>o.pages)),this.wallTime=i.map(o=>o.wallTime).reduce((o,u)=>Math.min(o||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=i.map(o=>o.startTime).reduce((o,u)=>Math.min(o,u),Number.MAX_VALUE),this.endTime=i.map(o=>o.endTime).reduce((o,u)=>Math.max(o,u),Number.MIN_VALUE),this.events=[].concat(...i.map(o=>o.events)),this.stdio=[].concat(...i.map(o=>o.stdio)),this.errors=[].concat(...i.map(o=>o.errors)),this.hasSource=i.some(o=>o.hasSource),this.hasStepData=i.some(o=>o.origin==="testRunner"),this.resources=[...i.map(o=>o.resources)].flat(),this.attachments=this.actions.flatMap(o=>{var u;return((u=o.attachments)==null?void 0:u.map(f=>({...f,callId:o.callId,traceUrl:e})))??[]}),this.visibleAttachments=this.attachments.filter(o=>!o.name.startsWith("_")),this.events.sort((o,u)=>o.time-u.time),this.resources.sort((o,u)=>o._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=cx(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const o of this.actions)o.group=o.group??W1({type:o.class,method:o.method}),o.group&&this.actionCounters.set(o.group,1+(this.actionCounters.get(o.group)||0))}createRelativeUrl(e){const i=new URL("http://localhost/"+e);return i.searchParams.set("trace",this.traceUrl),i.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const i=new Set(e);return this.actions.filter(s=>!s.group||i.has(s.group))}_errorDescriptorsFromActions(){var i;const e=[];for(const s of this.actions||[])(i=s.error)!=null&&i.message&&e.push({action:s,stack:s.stack,message:s.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,i)=>({stack:e.stack,message:e.message}))}}function ex(n){for(const i of n.pages)i[Ha]=n;for(let i=0;i<n.actions.length;++i){const s=n.actions[i];s[Ha]=n}let e;for(let i=n.actions.length-1;i>=0;i--){const s=n.actions[i];s[Ob]=e,s.class!=="Route"&&(e=s)}for(const i of n.events)i[Ha]=n;for(const i of n.resources)i[Ha]=n}function tx(n){const e=[],i=nx(n);e.push(...i),e.sort((s,l)=>l.parentId===s.callId?1:s.parentId===l.callId?-1:s.endTime-l.endTime);for(let s=1;s<e.length;++s)e[s][Rb]=e[s-1];e.sort((s,l)=>l.parentId===s.callId?-1:s.parentId===l.callId?1:s.startTime-l.startTime);for(let s=0;s+1<e.length;++s)e[s][jb]=e[s+1];return e}let My=0;function nx(n){const e=new Map,i=n.filter(u=>u.origin==="library"),s=n.filter(u=>u.origin==="testRunner");if(!s.length||!i.length)return n.map(u=>u.actions.map(f=>({...f,context:u}))).flat();for(const u of i)for(const f of u.actions)e.set(f.stepId||`tmp-step@${++My}`,{...f,context:u});const l=sx(s,e);l&&ix(i,l);const o=new Map;for(const u of s)for(const f of u.actions){const d=f.stepId&&e.get(f.stepId);if(d){o.set(f.callId,d.callId),f.error&&(d.error=f.error),f.attachments&&(d.attachments=f.attachments),f.annotations&&(d.annotations=f.annotations),f.parentId&&(d.parentId=o.get(f.parentId)??f.parentId),f.group&&(d.group=f.group),d.startTime=f.startTime,d.endTime=f.endTime;continue}f.parentId&&(f.parentId=o.get(f.parentId)??f.parentId),e.set(f.stepId||`tmp-step@${++My}`,{...f,context:u})}return[...e.values()]}function ix(n,e){for(const i of n){i.startTime+=e,i.endTime+=e;for(const s of i.actions)s.startTime&&(s.startTime+=e),s.endTime&&(s.endTime+=e);for(const s of i.events)s.time+=e;for(const s of i.stdio)s.timestamp+=e;for(const s of i.pages)for(const l of s.screencastFrames)l.timestamp+=e;for(const s of i.resources)s._monotonicTime&&(s._monotonicTime+=e)}}function sx(n,e){for(const i of n)for(const s of i.actions){if(!s.startTime)continue;const l=s.stepId?e.get(s.stepId):void 0;if(l)return s.startTime-l.startTime}return 0}function rx(n){const e=new Map;for(const s of n)e.set(s.callId,{id:s.callId,parent:void 0,children:[],action:s});const i={id:"",parent:void 0,children:[]};for(const s of e.values()){const l=s.action.parentId&&e.get(s.action.parentId)||i;l.children.push(s),s.parent=l}return{rootItem:i,itemMap:e}}function Lb(n){return n[Ha]}function ax(n){return n[Ob]}function Oy(n){return n[Rb]}function Ry(n){return n[jb]}function lx(n){let e=0,i=0;for(const s of ox(n)){if(s.type==="console"){const l=s.messageType;l==="warning"?++i:l==="error"&&++e}s.type==="event"&&s.method==="pageError"&&++e}return{errors:e,warnings:i}}function ox(n){let e=n[ky];if(e)return e;const i=ax(n);return e=Lb(n).events.filter(s=>s.time>=n.startTime&&(!i||s.time<i.startTime)),n[ky]=e,e}function cx(n,e){var s;const i=new Map;for(const l of n)for(const o of l.stack||[]){let u=i.get(o.file);u||(u={errors:[],content:void 0},i.set(o.file,u))}for(const l of e){const{action:o,stack:u,message:f}=l;!o||!u||(s=i.get(u[0].file))==null||s.errors.push({line:u[0].line||0,message:f})}return i}const ux=50,Qo=({sidebarSize:n,sidebarHidden:e=!1,sidebarIsFirst:i=!1,orientation:s="vertical",minSidebarSize:l=ux,settingName:o,sidebar:u,main:f})=>{const d=Math.max(l,n)*window.devicePixelRatio,[p,m]=rn(o?o+"."+s+":size":void 0,d),[y,v]=rn(o?o+"."+s+":size":void 0,d),[S,E]=H.useState(null),[x,T]=cs();let C;s==="vertical"?(C=y/window.devicePixelRatio,x&&x.height<C&&(C=x.height-10)):(C=p/window.devicePixelRatio,x&&x.width<C&&(C=x.width-10)),document.body.style.userSelect=S?"none":"inherit";let k={};return s==="vertical"?i?k={top:S?0:C-4,bottom:S?0:void 0,height:S?"initial":8}:k={bottom:S?0:C-4,top:S?0:void 0,height:S?"initial":8}:i?k={left:S?0:C-4,right:S?0:void 0,width:S?"initial":8}:k={right:S?0:C-4,left:S?0:void 0,width:S?"initial":8},b.jsxs("div",{className:Ye("split-view",s,i&&"sidebar-first"),ref:T,children:[b.jsx("div",{className:"split-view-main",children:f}),!e&&b.jsx("div",{style:{flexBasis:C},className:"split-view-sidebar",children:u}),!e&&b.jsx("div",{style:k,className:"split-view-resizer",onMouseDown:$=>E({offset:s==="vertical"?$.clientY:$.clientX,size:C}),onMouseUp:()=>E(null),onMouseMove:$=>{if(!$.buttons)E(null);else if(S){const R=(s==="vertical"?$.clientY:$.clientX)-S.offset,G=i?S.size+R:S.size-R,q=$.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(l,G),(s==="vertical"?q.height:q.width)-l);s==="vertical"?v(j*window.devicePixelRatio):m(j*window.devicePixelRatio)}}})]})},Qe=function(n,e,i){return n>=e&&n<=i};function Mt(n){return Qe(n,48,57)}function jy(n){return Mt(n)||Qe(n,65,70)||Qe(n,97,102)}function fx(n){return Qe(n,65,90)}function hx(n){return Qe(n,97,122)}function dx(n){return fx(n)||hx(n)}function px(n){return n>=128}function Do(n){return dx(n)||px(n)||n===95}function Ly(n){return Do(n)||Mt(n)||n===45}function gx(n){return Qe(n,0,8)||n===11||Qe(n,14,31)||n===127}function Bo(n){return n===10}function Vn(n){return Bo(n)||n===9||n===32}const mx=1114111;class zh extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function yx(n){const e=[];for(let i=0;i<n.length;i++){let s=n.charCodeAt(i);if(s===13&&n.charCodeAt(i+1)===10&&(s=10,i++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Qe(s,55296,56319)&&Qe(n.charCodeAt(i+1),56320,57343)){const l=s-55296,o=n.charCodeAt(i+1)-56320;s=Math.pow(2,16)+l*Math.pow(2,10)+o,i++}e.push(s)}return e}function We(n){if(n<=65535)return String.fromCharCode(n);n-=Math.pow(2,16);const e=Math.floor(n/Math.pow(2,10))+55296,i=n%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(i)}function Db(n){const e=yx(n);let i=-1;const s=[];let l;const o=function(I){return I>=e.length?-1:e[I]},u=function(I){if(I===void 0&&(I=1),I>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+I)},f=function(I){return I===void 0&&(I=1),i+=I,l=o(i),!0},d=function(){return i-=1,!0},p=function(I){return I===void 0&&(I=l),I===-1},m=function(){if(y(),f(),Vn(l)){for(;Vn(u());)f();return new Zo}else{if(l===34)return E();if(l===35)if(Ly(u())||C(u(1),u(2))){const I=new Pb("");return $(u(1),u(2),u(3))&&(I.type="id"),I.value=Z(),I}else return new lt(l);else return l===36?u()===61?(f(),new wx):new lt(l):l===39?E():l===40?new Kb:l===41?new Hh:l===42?u()===61?(f(),new xx):new lt(l):l===43?G()?(d(),v()):new lt(l):l===44?new $b:l===45?G()?(d(),v()):u(1)===45&&u(2)===62?(f(2),new zb):V()?(d(),S()):new lt(l):l===46?G()?(d(),v()):new lt(l):l===58?new Hb:l===59?new qb:l===60?u(1)===33&&u(2)===45&&u(3)===45?(f(3),new Ub):new lt(l):l===64?$(u(1),u(2),u(3))?new Xb(Z()):new lt(l):l===91?new Gb:l===92?k()?(d(),S()):new lt(l):l===93?new vh:l===94?u()===61?(f(),new Sx):new lt(l):l===123?new Ib:l===124?u()===61?(f(),new vx):u()===124?(f(),new Yb):new lt(l):l===125?new Vb:l===126?u()===61?(f(),new bx):new lt(l):Mt(l)?(d(),v()):Do(l)?(d(),S()):p()?new zo:new lt(l)}},y=function(){for(;u(1)===47&&u(2)===42;)for(f(2);;)if(f(),l===42&&u()===47){f();break}else if(p())return},v=function(){const I=q();if($(u(1),u(2),u(3))){const F=new _x;return F.value=I.value,F.repr=I.repr,F.type=I.type,F.unit=Z(),F}else if(u()===37){f();const F=new Zb;return F.value=I.value,F.repr=I.repr,F}else{const F=new Qb;return F.value=I.value,F.repr=I.repr,F.type=I.type,F}},S=function(){const I=Z();if(I.toLowerCase()==="url"&&u()===40){for(f();Vn(u(1))&&Vn(u(2));)f();return u()===34||u()===39?new Ka(I):Vn(u())&&(u(2)===34||u(2)===39)?new Ka(I):x()}else return u()===40?(f(),new Ka(I)):new qh(I)},E=function(I){I===void 0&&(I=l);let F="";for(;f();){if(l===I||p())return new $h(F);if(Bo(l))return d(),new Bb;l===92?p(u())||(Bo(u())?f():F+=We(T())):F+=We(l)}throw new Error("Internal error")},x=function(){const I=new Fb("");for(;Vn(u());)f();if(p(u()))return I;for(;f();){if(l===41||p())return I;if(Vn(l)){for(;Vn(u());)f();return u()===41||p(u())?(f(),I):(ie(),new Uo)}else{if(l===34||l===39||l===40||gx(l))return ie(),new Uo;if(l===92)if(k())I.value+=We(T());else return ie(),new Uo;else I.value+=We(l)}}throw new Error("Internal error")},T=function(){if(f(),jy(l)){const I=[l];for(let ee=0;ee<5&&jy(u());ee++)f(),I.push(l);Vn(u())&&f();let F=parseInt(I.map(function(ee){return String.fromCharCode(ee)}).join(""),16);return F>mx&&(F=65533),F}else return p()?65533:l},C=function(I,F){return!(I!==92||Bo(F))},k=function(){return C(l,u())},$=function(I,F,ee){return I===45?Do(F)||F===45||C(F,ee):Do(I)?!0:I===92?C(I,F):!1},V=function(){return $(l,u(1),u(2))},R=function(I,F,ee){return I===43||I===45?!!(Mt(F)||F===46&&Mt(ee)):I===46?!!Mt(F):!!Mt(I)},G=function(){return R(l,u(1),u(2))},Z=function(){let I="";for(;f();)if(Ly(l))I+=We(l);else if(k())I+=We(T());else return d(),I;throw new Error("Internal parse error")},q=function(){let I="",F="integer";for((u()===43||u()===45)&&(f(),I+=We(l));Mt(u());)f(),I+=We(l);if(u(1)===46&&Mt(u(2)))for(f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);const ee=u(1),ve=u(2),z=u(3);if((ee===69||ee===101)&&Mt(ve))for(f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);else if((ee===69||ee===101)&&(ve===43||ve===45)&&Mt(z))for(f(),I+=We(l),f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);const Q=j(I);return{type:F,value:Q,repr:I}},j=function(I){return+I},ie=function(){for(;f();){if(l===41||p())return;k()&&T()}};let le=0;for(;!p(u());)if(s.push(m()),le++,le>e.length*2)throw new Error("I'm infinite-looping!");return s}class Xe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Bb extends Xe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Uo extends Xe{constructor(){super(...arguments),this.tokenType="BADURL"}}class Zo extends Xe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Ub extends Xe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class zb extends Xe{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class Hb extends Xe{constructor(){super(...arguments),this.tokenType=":"}}class qb extends Xe{constructor(){super(...arguments),this.tokenType=";"}}class $b extends Xe{constructor(){super(...arguments),this.tokenType=","}}class _r extends Xe{constructor(){super(...arguments),this.value="",this.mirror=""}}class Ib extends _r{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Vb extends _r{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Gb extends _r{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class vh extends _r{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Kb extends _r{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Hh extends _r{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class bx extends Xe{constructor(){super(...arguments),this.tokenType="~="}}class vx extends Xe{constructor(){super(...arguments),this.tokenType="|="}}class Sx extends Xe{constructor(){super(...arguments),this.tokenType="^="}}class wx extends Xe{constructor(){super(...arguments),this.tokenType="$="}}class xx extends Xe{constructor(){super(...arguments),this.tokenType="*="}}class Yb extends Xe{constructor(){super(...arguments),this.tokenType="||"}}class zo extends Xe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class lt extends Xe{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=We(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\
50
+ `).replace(e1,"")}function Gm(t,r){return r=Vm(r),Vm(t)===r}function uo(){}function ke(t,r,a,c,h,g){switch(a){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||Ts(t,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&Ts(t,""+c);break;case"className":gl(t,"class",c);break;case"tabIndex":gl(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":gl(t,a,c);break;case"style":Yd(t,c,g);break;case"data":if(r!=="object"){gl(t,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||a!=="href")){t.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=bl(""+c),t.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(a,"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 g=="function"&&(a==="formAction"?(r!=="input"&&ke(t,r,"name",h.name,h,null),ke(t,r,"formEncType",h.formEncType,h,null),ke(t,r,"formMethod",h.formMethod,h,null),ke(t,r,"formTarget",h.formTarget,h,null)):(ke(t,r,"encType",h.encType,h,null),ke(t,r,"method",h.method,h,null),ke(t,r,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=bl(""+c),t.setAttribute(a,c);break;case"onClick":c!=null&&(t.onclick=uo);break;case"onScroll":c!=null&&ye("scroll",t);break;case"onScrollEnd":c!=null&&ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(s(60));t.innerHTML=a}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}a=bl(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""+c):t.removeAttribute(a);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":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":c===!0?t.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,c):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(a,c):t.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(a):t.setAttribute(a,c);break;case"popover":ye("beforetoggle",t),ye("toggle",t),pl(t,"popover",c);break;case"xlinkActuate":Cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Cn(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Cn(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Cn(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Cn(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":pl(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=MS.get(a)||a,pl(t,a,c))}}function kf(t,r,a,c,h,g){switch(a){case"style":Yd(t,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(s(60));t.innerHTML=a}}break;case"children":typeof c=="string"?Ts(t,c):(typeof c=="number"||typeof c=="bigint")&&Ts(t,""+c);break;case"onScroll":c!=null&&ye("scroll",t);break;case"onScrollEnd":c!=null&&ye("scrollend",t);break;case"onClick":c!=null&&(t.onclick=uo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),r=a.slice(2,h?a.length-7:void 0),g=t[Et]||null,g=g!=null?g[a]:null,typeof g=="function"&&t.removeEventListener(r,g,h),typeof c=="function")){typeof g!="function"&&g!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(r,c,h);break e}a in t?t[a]=c:c===!0?t.setAttribute(a,""):pl(t,a,c)}}}function at(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",t),ye("load",t);var c=!1,h=!1,g;for(g in a)if(a.hasOwnProperty(g)){var w=a[g];if(w!=null)switch(g){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ke(t,r,g,w,a,null)}}h&&ke(t,r,"srcSet",a.srcSet,a,null),c&&ke(t,r,"src",a.src,a,null);return;case"input":ye("invalid",t);var _=g=w=h=null,A=null,D=null;for(c in a)if(a.hasOwnProperty(c)){var K=a[c];if(K!=null)switch(c){case"name":h=K;break;case"type":w=K;break;case"checked":A=K;break;case"defaultChecked":D=K;break;case"value":g=K;break;case"defaultValue":_=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,r));break;default:ke(t,r,c,K,a,null)}}Id(t,g,_,A,D,w,h,!1),ml(t);return;case"select":ye("invalid",t),c=w=g=null;for(h in a)if(a.hasOwnProperty(h)&&(_=a[h],_!=null))switch(h){case"value":g=_;break;case"defaultValue":w=_;break;case"multiple":c=_;default:ke(t,r,h,_,a,null)}r=g,a=w,t.multiple=!!c,r!=null?_s(t,!!c,r,!1):a!=null&&_s(t,!!c,a,!0);return;case"textarea":ye("invalid",t),g=h=c=null;for(w in a)if(a.hasOwnProperty(w)&&(_=a[w],_!=null))switch(w){case"value":c=_;break;case"defaultValue":h=_;break;case"children":g=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:ke(t,r,w,_,a,null)}Gd(t,c,h,g),ml(t);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(c=a[A],c!=null))switch(A){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ke(t,r,A,c,a,null)}return;case"dialog":ye("beforetoggle",t),ye("toggle",t),ye("cancel",t),ye("close",t);break;case"iframe":case"object":ye("load",t);break;case"video":case"audio":for(c=0;c<va.length;c++)ye(va[c],t);break;case"image":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"embed":case"source":case"link":ye("error",t),ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(c=a[D],c!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ke(t,r,D,c,a,null)}return;default:if(Gc(r)){for(K in a)a.hasOwnProperty(K)&&(c=a[K],c!==void 0&&kf(t,r,K,c,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(c=a[_],c!=null&&ke(t,r,_,c,a,null))}function t1(t,r,a,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,w=null,_=null,A=null,D=null,K=null;for(U in a){var X=a[U];if(a.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":A=X;default:c.hasOwnProperty(U)||ke(t,r,U,null,c,X)}}for(var B in c){var U=c[B];if(X=a[B],c.hasOwnProperty(B)&&(U!=null||X!=null))switch(B){case"type":g=U;break;case"name":h=U;break;case"checked":D=U;break;case"defaultChecked":K=U;break;case"value":w=U;break;case"defaultValue":_=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,r));break;default:U!==X&&ke(t,r,B,U,c,X)}}Ic(t,w,_,A,D,K,g,h);return;case"select":U=w=_=B=null;for(g in a)if(A=a[g],a.hasOwnProperty(g)&&A!=null)switch(g){case"value":break;case"multiple":U=A;default:c.hasOwnProperty(g)||ke(t,r,g,null,c,A)}for(h in c)if(g=c[h],A=a[h],c.hasOwnProperty(h)&&(g!=null||A!=null))switch(h){case"value":B=g;break;case"defaultValue":_=g;break;case"multiple":w=g;default:g!==A&&ke(t,r,h,g,c,A)}r=_,a=w,c=U,B!=null?_s(t,!!a,B,!1):!!c!=!!a&&(r!=null?_s(t,!!a,r,!0):_s(t,!!a,a?[]:"",!1));return;case"textarea":U=B=null;for(_ in a)if(h=a[_],a.hasOwnProperty(_)&&h!=null&&!c.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:ke(t,r,_,null,c,h)}for(w in c)if(h=c[w],g=a[w],c.hasOwnProperty(w)&&(h!=null||g!=null))switch(w){case"value":B=h;break;case"defaultValue":U=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==g&&ke(t,r,w,h,c,g)}Vd(t,B,U);return;case"option":for(var fe in a)if(B=a[fe],a.hasOwnProperty(fe)&&B!=null&&!c.hasOwnProperty(fe))switch(fe){case"selected":t.selected=!1;break;default:ke(t,r,fe,null,c,B)}for(A in c)if(B=c[A],U=a[A],c.hasOwnProperty(A)&&B!==U&&(B!=null||U!=null))switch(A){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:ke(t,r,A,B,c,U)}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 oe in a)B=a[oe],a.hasOwnProperty(oe)&&B!=null&&!c.hasOwnProperty(oe)&&ke(t,r,oe,null,c,B);for(D in c)if(B=c[D],U=a[D],c.hasOwnProperty(D)&&B!==U&&(B!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,r));break;default:ke(t,r,D,B,c,U)}return;default:if(Gc(r)){for(var Me in a)B=a[Me],a.hasOwnProperty(Me)&&B!==void 0&&!c.hasOwnProperty(Me)&&kf(t,r,Me,void 0,c,B);for(K in c)B=c[K],U=a[K],!c.hasOwnProperty(K)||B===U||B===void 0&&U===void 0||kf(t,r,K,B,c,U);return}}for(var O in a)B=a[O],a.hasOwnProperty(O)&&B!=null&&!c.hasOwnProperty(O)&&ke(t,r,O,null,c,B);for(X in c)B=c[X],U=a[X],!c.hasOwnProperty(X)||B===U||B==null&&U==null||ke(t,r,X,B,c,U)}var Mf=null,Of=null;function fo(t){return t.nodeType===9?t:t.ownerDocument}function Km(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ym(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Rf(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var jf=null;function n1(){var t=window.event;return t&&t.type==="popstate"?t===jf?!1:(jf=t,!0):(jf=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,i1=typeof clearTimeout=="function"?clearTimeout:void 0,Pm=typeof Promise=="function"?Promise:void 0,s1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pm<"u"?function(t){return Pm.resolve(null).then(t).catch(r1)}:Xm;function r1(t){setTimeout(function(){throw t})}function mi(t){return t==="head"}function Fm(t,r){var a=r,c=0,h=0;do{var g=a.nextSibling;if(t.removeChild(a),g&&g.nodeType===8)if(a=g.data,a==="/$"){if(0<c&&8>c){a=c;var w=t.ownerDocument;if(a&1&&wa(w.documentElement),a&2&&wa(w.body),a&4)for(a=w.head,wa(a),w=a.firstChild;w;){var _=w.nextSibling,A=w.nodeName;w[Br]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&w.rel.toLowerCase()==="stylesheet"||a.removeChild(w),w=_}}if(h===0){t.removeChild(g),ka(r);return}h--}else a==="$"||a==="$?"||a==="$!"?h++:c=a.charCodeAt(0)-48;else c=0;a=g}while(a);ka(r)}function Lf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lf(a),zc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function a1(t,r,a,c){for(;t.nodeType===1;){var h=a;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Br])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=dn(t.nextSibling),t===null)break}return null}function l1(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=dn(t.nextSibling),t===null))return null;return t}function Df(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function o1(t,r){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")r();else{var c=function(){r(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function dn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var Bf=null;function Qm(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return t;r--}else a==="/$"&&r++}t=t.previousSibling}return null}function Zm(t,r,a){switch(r=fo(a),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function wa(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);zc(t)}var tn=new Map,Jm=new Set;function ho(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var In=Q.d;Q.d={f:c1,r:u1,D:f1,C:h1,L:d1,m:p1,X:m1,S:g1,M:y1};function c1(){var t=In.f(),r=io();return t||r}function u1(t){var r=vs(t);r!==null&&r.tag===5&&r.type==="form"?bg(r):In.r(t)}var Ws=typeof document>"u"?null:document;function Wm(t,r,a){var c=Ws;if(c&&typeof r=="string"&&r){var h=Pt(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),Jm.has(h)||(Jm.add(h),t={rel:t,crossOrigin:a,href:r},c.querySelector(h)===null&&(r=c.createElement("link"),at(r,"link",t),et(r),c.head.appendChild(r)))}}function f1(t){In.D(t),Wm("dns-prefetch",t,null)}function h1(t,r){In.C(t,r),Wm("preconnect",t,r)}function d1(t,r,a){In.L(t,r,a);var c=Ws;if(c&&t&&r){var h='link[rel="preload"][as="'+Pt(r)+'"]';r==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Pt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Pt(a.imageSizes)+'"]')):h+='[href="'+Pt(t)+'"]';var g=h;switch(r){case"style":g=er(t);break;case"script":g=tr(t)}tn.has(g)||(t=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),tn.set(g,t),c.querySelector(h)!==null||r==="style"&&c.querySelector(xa(g))||r==="script"&&c.querySelector(_a(g))||(r=c.createElement("link"),at(r,"link",t),et(r),c.head.appendChild(r)))}}function p1(t,r){In.m(t,r);var a=Ws;if(a&&t){var c=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Pt(c)+'"][href="'+Pt(t)+'"]',g=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=tr(t)}if(!tn.has(g)&&(t=m({rel:"modulepreload",href:t},r),tn.set(g,t),a.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(_a(g)))return}c=a.createElement("link"),at(c,"link",t),et(c),a.head.appendChild(c)}}}function g1(t,r,a){In.S(t,r,a);var c=Ws;if(c&&t){var h=Ss(c).hoistableStyles,g=er(t);r=r||"default";var w=h.get(g);if(!w){var _={loading:0,preload:null};if(w=c.querySelector(xa(g)))_.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},a),(a=tn.get(g))&&Uf(t,a);var A=w=c.createElement("link");et(A),at(A,"link",t),A._p=new Promise(function(D,K){A.onload=D,A.onerror=K}),A.addEventListener("load",function(){_.loading|=1}),A.addEventListener("error",function(){_.loading|=2}),_.loading|=4,po(w,r,c)}w={type:"stylesheet",instance:w,count:1,state:_},h.set(g,w)}}}function m1(t,r){In.X(t,r);var a=Ws;if(a&&t){var c=Ss(a).hoistableScripts,h=tr(t),g=c.get(h);g||(g=a.querySelector(_a(h)),g||(t=m({src:t,async:!0},r),(r=tn.get(h))&&zf(t,r),g=a.createElement("script"),et(g),at(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function y1(t,r){In.M(t,r);var a=Ws;if(a&&t){var c=Ss(a).hoistableScripts,h=tr(t),g=c.get(h);g||(g=a.querySelector(_a(h)),g||(t=m({src:t,async:!0,type:"module"},r),(r=tn.get(h))&&zf(t,r),g=a.createElement("script"),et(g),at(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function ey(t,r,a,c){var h=(h=te.current)?ho(h):null;if(!h)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=er(a.href),a=Ss(h).hoistableStyles,c=a.get(r),c||(c={type:"style",instance:null,count:0,state:null},a.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=er(a.href);var g=Ss(h).hoistableStyles,w=g.get(t);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,w),(g=h.querySelector(xa(t)))&&!g._p&&(w.instance=g,w.state.loading=5),tn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},tn.set(t,a),g||b1(h,t,a,w.state))),r&&c===null)throw Error(s(528,""));return w}if(r&&c!==null)throw Error(s(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=tr(a),a=Ss(h).hoistableScripts,c=a.get(r),c||(c={type:"script",instance:null,count:0,state:null},a.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function er(t){return'href="'+Pt(t)+'"'}function xa(t){return'link[rel="stylesheet"]['+t+"]"}function ty(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function b1(t,r,a,c){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=t.createElement("link"),c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),at(r,"link",a),et(r),t.head.appendChild(r))}function tr(t){return'[src="'+Pt(t)+'"]'}function _a(t){return"script[async]"+t}function ny(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var c=t.querySelector('style[data-href~="'+Pt(a.href)+'"]');if(c)return r.instance=c,et(c),c;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),et(c),at(c,"style",h),po(c,a.precedence,t),r.instance=c;case"stylesheet":h=er(a.href);var g=t.querySelector(xa(h));if(g)return r.state.loading|=4,r.instance=g,et(g),g;c=ty(a),(h=tn.get(h))&&Uf(c,h),g=(t.ownerDocument||t).createElement("link"),et(g);var w=g;return w._p=new Promise(function(_,A){w.onload=_,w.onerror=A}),at(g,"link",c),r.state.loading|=4,po(g,a.precedence,t),r.instance=g;case"script":return g=tr(a.src),(h=t.querySelector(_a(g)))?(r.instance=h,et(h),h):(c=a,(h=tn.get(g))&&(c=m({},a),zf(c,h)),t=t.ownerDocument||t,h=t.createElement("script"),et(h),at(h,"link",c),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,po(c,a.precedence,t));return r.instance}function po(t,r,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,g=h,w=0;w<c.length;w++){var _=c[w];if(_.dataset.precedence===r)g=_;else if(g!==h)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function Uf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function zf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var go=null;function iy(t,r,a){if(go===null){var c=new Map,h=go=new Map;h.set(a,c)}else h=go,c=h.get(a),c||(c=new Map,h.set(a,c));if(c.has(t))return c;for(c.set(t,null),a=a.getElementsByTagName(t),h=0;h<a.length;h++){var g=a[h];if(!(g[Br]||g[ft]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var w=g.getAttribute(r)||"";w=t+w;var _=c.get(w);_?_.push(g):c.set(w,[g])}}return c}function sy(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function v1(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function ry(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ta=null;function S1(){}function w1(t,r,a){if(Ta===null)throw Error(s(475));var c=Ta;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=er(a.href),g=t.querySelector(xa(h));if(g){t=g._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(c.count++,c=mo.bind(c),t.then(c,c)),r.state.loading|=4,r.instance=g,et(g);return}g=t.ownerDocument||t,a=ty(a),(h=tn.get(h))&&Uf(a,h),g=g.createElement("link"),et(g);var w=g;w._p=new Promise(function(_,A){w.onload=_,w.onerror=A}),at(g,"link",a),r.instance=g}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(c.count++,r=mo.bind(c),t.addEventListener("load",r),t.addEventListener("error",r))}}function x1(){if(Ta===null)throw Error(s(475));var t=Ta;return t.stylesheets&&t.count===0&&Hf(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Hf(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(a)}}:null}function mo(){if(this.count--,this.count===0){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yo=null;function Hf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yo=new Map,r.forEach(_1,t),yo=null,mo.call(t))}function _1(t,r){if(!(r.state.loading&4)){var a=yo.get(t);if(a)var c=a.get(null);else{a=new Map,yo.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var w=h[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(a.set(w.dataset.precedence,w),c=w)}c&&a.set(null,c)}h=r.instance,w=h.getAttribute("data-precedence"),g=a.get(w)||c,g===c&&a.set(null,h),a.set(w,h),this.count++,c=mo.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),g?g.parentNode.insertBefore(h,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var Ea={$$typeof:$,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function T1(t,r,a,c,h,g,w,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=un(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=un(0),this.hiddenUpdates=un(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function ay(t,r,a,c,h,g,w,_,A,D,K,X){return t=new T1(t,r,a,w,_,A,D,X),r=1,g===!0&&(r|=24),g=Ut(3,null,null,r),t.current=g,g.stateNode=t,r=vu(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:c,isDehydrated:a,cache:r},_u(g),t}function ly(t){return t?(t=Rs,t):Rs}function oy(t,r,a,c,h,g){h=ly(h),c.context===null?c.context=h:c.pendingContext=h,c=ii(r),c.payload={element:a},g=g===void 0?null:g,g!==null&&(c.callback=g),a=si(t,c,r),a!==null&&(It(a,t,r),ta(a,t,r))}function cy(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function qf(t,r){cy(t,r),(t=t.alternate)&&cy(t,r)}function uy(t){if(t.tag===13){var r=Os(t,67108864);r!==null&&It(r,t,67108864),qf(t,67108864)}}var bo=!0;function E1(t,r,a,c){var h=z.T;z.T=null;var g=Q.p;try{Q.p=2,$f(t,r,a,c)}finally{Q.p=g,z.T=h}}function A1(t,r,a,c){var h=z.T;z.T=null;var g=Q.p;try{Q.p=8,$f(t,r,a,c)}finally{Q.p=g,z.T=h}}function $f(t,r,a,c){if(bo){var h=If(c);if(h===null)Cf(t,r,c,vo,a),hy(t,c);else if(C1(h,t,r,a,c))c.stopPropagation();else if(hy(t,c),r&4&&-1<N1.indexOf(t)){for(;h!==null;){var g=vs(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=Nn(g.pendingLanes);if(w!==0){var _=g;for(_.pendingLanes|=2,_.entangledLanes|=2;w;){var A=1<<31-vt(w);_.entanglements[1]|=A,w&=~A}wn(g),(Ee&6)===0&&(to=Kt()+500,ba(0))}}break;case 13:_=Os(g,2),_!==null&&It(_,g,2),io(),qf(g,2)}if(g=If(c),g===null&&Cf(t,r,c,vo,a),g===h)break;h=g}h!==null&&c.stopPropagation()}else Cf(t,r,c,null,a)}}function If(t){return t=Yc(t),Vf(t)}var vo=null;function Vf(t){if(vo=null,t=bs(t),t!==null){var r=o(t);if(r===null)t=null;else{var a=r.tag;if(a===13){if(t=u(r),t!==null)return t;t=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return vo=t,null}function fy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lr()){case ps:return 2;case Mi:return 8;case gs:case Qn:return 32;case hl:return 268435456;default:return 32}default:return 32}}var Gf=!1,yi=null,bi=null,vi=null,Aa=new Map,Na=new Map,Si=[],N1="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 hy(t,r){switch(t){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":bi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Aa.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Na.delete(r.pointerId)}}function Ca(t,r,a,c,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:a,eventSystemFlags:c,nativeEvent:g,targetContainers:[h]},r!==null&&(r=vs(r),r!==null&&uy(r)),t):(t.eventSystemFlags|=c,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function C1(t,r,a,c,h){switch(r){case"focusin":return yi=Ca(yi,t,r,a,c,h),!0;case"dragenter":return bi=Ca(bi,t,r,a,c,h),!0;case"mouseover":return vi=Ca(vi,t,r,a,c,h),!0;case"pointerover":var g=h.pointerId;return Aa.set(g,Ca(Aa.get(g)||null,t,r,a,c,h)),!0;case"gotpointercapture":return g=h.pointerId,Na.set(g,Ca(Na.get(g)||null,t,r,a,c,h)),!0}return!1}function dy(t){var r=bs(t.target);if(r!==null){var a=o(r);if(a!==null){if(r=a.tag,r===13){if(r=u(a),r!==null){t.blockedOn=r,wS(t.priority,function(){if(a.tag===13){var c=$t();c=Dc(c);var h=Os(a,c);h!==null&&It(h,a,c),qf(a,c)}});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function So(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=If(t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a);Kc=c,a.target.dispatchEvent(c),Kc=null}else return r=vs(a),r!==null&&uy(r),t.blockedOn=a,!1;r.shift()}return!0}function py(t,r,a){So(t)&&a.delete(r)}function k1(){Gf=!1,yi!==null&&So(yi)&&(yi=null),bi!==null&&So(bi)&&(bi=null),vi!==null&&So(vi)&&(vi=null),Aa.forEach(py),Na.forEach(py)}function wo(t,r){t.blockedOn===r&&(t.blockedOn=null,Gf||(Gf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,k1)))}var xo=null;function gy(t){xo!==t&&(xo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xo===t&&(xo=null);for(var r=0;r<t.length;r+=3){var a=t[r],c=t[r+1],h=t[r+2];if(typeof c!="function"){if(Vf(c||a)===null)continue;break}var g=vs(a);g!==null&&(t.splice(r,3),r-=3,Iu(g,{pending:!0,data:h,method:a.method,action:c},c,h))}}))}function ka(t){function r(A){return wo(A,t)}yi!==null&&wo(yi,t),bi!==null&&wo(bi,t),vi!==null&&wo(vi,t),Aa.forEach(r),Na.forEach(r);for(var a=0;a<Si.length;a++){var c=Si[a];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Si.length&&(a=Si[0],a.blockedOn===null);)dy(a),a.blockedOn===null&&Si.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var h=a[c],g=a[c+1],w=h[Et]||null;if(typeof g=="function")w||gy(a);else if(w){var _=null;if(g&&g.hasAttribute("formAction")){if(h=g,w=g[Et]||null)_=w.formAction;else if(Vf(h)!==null)continue}else _=w.action;typeof _=="function"?a[c+1]=_:(a.splice(c,3),c-=3),gy(a)}}}function Kf(t){this._internalRoot=t}_o.prototype.render=Kf.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,c=$t();oy(a,c,t,r,null,null)},_o.prototype.unmount=Kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;oy(t.current,2,null,t,null,null),io(),r[ys]=null}};function _o(t){this._internalRoot=t}_o.prototype.unstable_scheduleHydration=function(t){if(t){var r=Rd();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Si.length&&r!==0&&r<Si[a].priority;a++);Si.splice(a,0,t),a===0&&dy(t)}};var my=e.version;if(my!=="19.1.1")throw Error(s(527,my,"19.1.1"));Q.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=d(r),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var M1={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Oi=To.inject(M1),ut=To}catch{}}return Oa.createRoot=function(t,r){if(!l(t))throw Error(s(299));var a=!1,c="",h=Rg,g=jg,w=Lg,_=null;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(_=r.unstable_transitionCallbacks)),r=ay(t,1,!1,null,null,a,c,h,g,w,_,null),t[ys]=r.current,Nf(t),new Kf(r)},Oa.hydrateRoot=function(t,r,a){if(!l(t))throw Error(s(299));var c=!1,h="",g=Rg,w=jg,_=Lg,A=null,D=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(D=a.formState)),r=ay(t,1,!0,r,a??null,c,h,g,w,_,A,D),r.context=ly(null),a=r.current,c=$t(),c=Dc(c),h=ii(c),h.callback=null,si(a,h,c),a=c,r.current.lanes=a,Dr(r,a),wn(r),t[ys]=r.current,Nf(t),new _o(r)},Oa.version="19.1.1",Oa}var Cy;function F1(){if(Cy)return Pf.exports;Cy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Pf.exports=P1(),Pf.exports}var r2=F1();const Mb=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}]]);function Q1(n,e){var i;return(i=Z1(n,e))==null?void 0:i.replaceAll(`
51
+ `,"\\n")}function Z1(n,e){if(n)for(const i of e.split("|")){if(i==="url")try{const l=new URL(n[i]);return l.protocol==="data:"?l.protocol:l.protocol==="about:"?n[i]:l.pathname+l.search}catch{if(n[i]!==void 0)return n[i]}if(i==="timeNumber"&&n[i]!==void 0)return new Date(n[i]).toString();const s=J1(n,i);if(s!==void 0)return s}}function J1(n,e){const i=e.split(".");let s=n;for(const l of i){if(typeof s!="object"||s===null)return;s=s[l]}if(s!==void 0)return String(s)}function W1(n){var e;return(e=Mb.get(n.type+"."+n.method))==null?void 0:e.group}const Ha=Symbol("context"),Ob=Symbol("nextInContext"),Rb=Symbol("prevByEndTime"),jb=Symbol("nextByStartTime"),ky=Symbol("events");class a2{constructor(e,i){Te(this,"startTime");Te(this,"endTime");Te(this,"browserName");Te(this,"channel");Te(this,"platform");Te(this,"playwrightVersion");Te(this,"wallTime");Te(this,"title");Te(this,"options");Te(this,"pages");Te(this,"actions");Te(this,"attachments");Te(this,"visibleAttachments");Te(this,"events");Te(this,"stdio");Te(this,"errors");Te(this,"errorDescriptors");Te(this,"hasSource");Te(this,"hasStepData");Te(this,"sdkLanguage");Te(this,"testIdAttributeName");Te(this,"sources");Te(this,"resources");Te(this,"actionCounters");Te(this,"traceUri");var l;i.forEach(o=>ex(o));const s=i.find(o=>o.origin==="library");this.traceUri=e,this.browserName=(s==null?void 0:s.browserName)||"",this.sdkLanguage=s==null?void 0:s.sdkLanguage,this.channel=s==null?void 0:s.channel,this.testIdAttributeName=s==null?void 0:s.testIdAttributeName,this.platform=(s==null?void 0:s.platform)||"",this.playwrightVersion=(l=i.find(o=>o.playwrightVersion))==null?void 0:l.playwrightVersion,this.title=(s==null?void 0:s.title)||"",this.options=(s==null?void 0:s.options)||{},this.actions=tx(i),this.pages=[].concat(...i.map(o=>o.pages)),this.wallTime=i.map(o=>o.wallTime).reduce((o,u)=>Math.min(o||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=i.map(o=>o.startTime).reduce((o,u)=>Math.min(o,u),Number.MAX_VALUE),this.endTime=i.map(o=>o.endTime).reduce((o,u)=>Math.max(o,u),Number.MIN_VALUE),this.events=[].concat(...i.map(o=>o.events)),this.stdio=[].concat(...i.map(o=>o.stdio)),this.errors=[].concat(...i.map(o=>o.errors)),this.hasSource=i.some(o=>o.hasSource),this.hasStepData=i.some(o=>o.origin==="testRunner"),this.resources=[...i.map(o=>o.resources)].flat(),this.attachments=this.actions.flatMap(o=>{var u;return((u=o.attachments)==null?void 0:u.map(f=>({...f,callId:o.callId,traceUri:e})))??[]}),this.visibleAttachments=this.attachments.filter(o=>!o.name.startsWith("_")),this.events.sort((o,u)=>o.time-u.time),this.resources.sort((o,u)=>o._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=cx(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const o of this.actions)o.group=o.group??W1({type:o.class,method:o.method}),o.group&&this.actionCounters.set(o.group,1+(this.actionCounters.get(o.group)||0))}createRelativeUrl(e){const i=new URL("http://localhost/"+e);return i.searchParams.set("trace",this.traceUri),i.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const i=new Set(e);return this.actions.filter(s=>!s.group||i.has(s.group))}_errorDescriptorsFromActions(){var i;const e=[];for(const s of this.actions||[])(i=s.error)!=null&&i.message&&e.push({action:s,stack:s.stack,message:s.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,i)=>({stack:e.stack,message:e.message}))}}function ex(n){for(const i of n.pages)i[Ha]=n;for(let i=0;i<n.actions.length;++i){const s=n.actions[i];s[Ha]=n}let e;for(let i=n.actions.length-1;i>=0;i--){const s=n.actions[i];s[Ob]=e,s.class!=="Route"&&(e=s)}for(const i of n.events)i[Ha]=n;for(const i of n.resources)i[Ha]=n}function tx(n){const e=[],i=nx(n);e.push(...i),e.sort((s,l)=>l.parentId===s.callId?1:s.parentId===l.callId?-1:s.endTime-l.endTime);for(let s=1;s<e.length;++s)e[s][Rb]=e[s-1];e.sort((s,l)=>l.parentId===s.callId?-1:s.parentId===l.callId?1:s.startTime-l.startTime);for(let s=0;s+1<e.length;++s)e[s][jb]=e[s+1];return e}let My=0;function nx(n){const e=new Map,i=n.filter(u=>u.origin==="library"),s=n.filter(u=>u.origin==="testRunner");if(!s.length||!i.length)return n.map(u=>u.actions.map(f=>({...f,context:u}))).flat();for(const u of i)for(const f of u.actions)e.set(f.stepId||`tmp-step@${++My}`,{...f,context:u});const l=sx(s,e);l&&ix(i,l);const o=new Map;for(const u of s)for(const f of u.actions){const d=f.stepId&&e.get(f.stepId);if(d){o.set(f.callId,d.callId),f.error&&(d.error=f.error),f.attachments&&(d.attachments=f.attachments),f.annotations&&(d.annotations=f.annotations),f.parentId&&(d.parentId=o.get(f.parentId)??f.parentId),f.group&&(d.group=f.group),d.startTime=f.startTime,d.endTime=f.endTime;continue}f.parentId&&(f.parentId=o.get(f.parentId)??f.parentId),e.set(f.stepId||`tmp-step@${++My}`,{...f,context:u})}return[...e.values()]}function ix(n,e){for(const i of n){i.startTime+=e,i.endTime+=e;for(const s of i.actions)s.startTime&&(s.startTime+=e),s.endTime&&(s.endTime+=e);for(const s of i.events)s.time+=e;for(const s of i.stdio)s.timestamp+=e;for(const s of i.pages)for(const l of s.screencastFrames)l.timestamp+=e;for(const s of i.resources)s._monotonicTime&&(s._monotonicTime+=e)}}function sx(n,e){for(const i of n)for(const s of i.actions){if(!s.startTime)continue;const l=s.stepId?e.get(s.stepId):void 0;if(l)return s.startTime-l.startTime}return 0}function rx(n){const e=new Map;for(const s of n)e.set(s.callId,{id:s.callId,parent:void 0,children:[],action:s});const i={id:"",parent:void 0,children:[]};for(const s of e.values()){const l=s.action.parentId&&e.get(s.action.parentId)||i;l.children.push(s),s.parent=l}return{rootItem:i,itemMap:e}}function Lb(n){return n[Ha]}function ax(n){return n[Ob]}function Oy(n){return n[Rb]}function Ry(n){return n[jb]}function lx(n){let e=0,i=0;for(const s of ox(n)){if(s.type==="console"){const l=s.messageType;l==="warning"?++i:l==="error"&&++e}s.type==="event"&&s.method==="pageError"&&++e}return{errors:e,warnings:i}}function ox(n){let e=n[ky];if(e)return e;const i=ax(n);return e=Lb(n).events.filter(s=>s.time>=n.startTime&&(!i||s.time<i.startTime)),n[ky]=e,e}function cx(n,e){var s;const i=new Map;for(const l of n)for(const o of l.stack||[]){let u=i.get(o.file);u||(u={errors:[],content:void 0},i.set(o.file,u))}for(const l of e){const{action:o,stack:u,message:f}=l;!o||!u||(s=i.get(u[0].file))==null||s.errors.push({line:u[0].line||0,message:f})}return i}const ux=50,Qo=({sidebarSize:n,sidebarHidden:e=!1,sidebarIsFirst:i=!1,orientation:s="vertical",minSidebarSize:l=ux,settingName:o,sidebar:u,main:f})=>{const d=Math.max(l,n)*window.devicePixelRatio,[p,m]=rn(o?o+"."+s+":size":void 0,d),[y,v]=rn(o?o+"."+s+":size":void 0,d),[S,E]=H.useState(null),[x,T]=cs();let C;s==="vertical"?(C=y/window.devicePixelRatio,x&&x.height<C&&(C=x.height-10)):(C=p/window.devicePixelRatio,x&&x.width<C&&(C=x.width-10)),document.body.style.userSelect=S?"none":"inherit";let k={};return s==="vertical"?i?k={top:S?0:C-4,bottom:S?0:void 0,height:S?"initial":8}:k={bottom:S?0:C-4,top:S?0:void 0,height:S?"initial":8}:i?k={left:S?0:C-4,right:S?0:void 0,width:S?"initial":8}:k={right:S?0:C-4,left:S?0:void 0,width:S?"initial":8},b.jsxs("div",{className:Ye("split-view",s,i&&"sidebar-first"),ref:T,children:[b.jsx("div",{className:"split-view-main",children:f}),!e&&b.jsx("div",{style:{flexBasis:C},className:"split-view-sidebar",children:u}),!e&&b.jsx("div",{style:k,className:"split-view-resizer",onMouseDown:$=>E({offset:s==="vertical"?$.clientY:$.clientX,size:C}),onMouseUp:()=>E(null),onMouseMove:$=>{if(!$.buttons)E(null);else if(S){const R=(s==="vertical"?$.clientY:$.clientX)-S.offset,G=i?S.size+R:S.size-R,q=$.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(l,G),(s==="vertical"?q.height:q.width)-l);s==="vertical"?v(j*window.devicePixelRatio):m(j*window.devicePixelRatio)}}})]})},Qe=function(n,e,i){return n>=e&&n<=i};function Mt(n){return Qe(n,48,57)}function jy(n){return Mt(n)||Qe(n,65,70)||Qe(n,97,102)}function fx(n){return Qe(n,65,90)}function hx(n){return Qe(n,97,122)}function dx(n){return fx(n)||hx(n)}function px(n){return n>=128}function Do(n){return dx(n)||px(n)||n===95}function Ly(n){return Do(n)||Mt(n)||n===45}function gx(n){return Qe(n,0,8)||n===11||Qe(n,14,31)||n===127}function Bo(n){return n===10}function Vn(n){return Bo(n)||n===9||n===32}const mx=1114111;class zh extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function yx(n){const e=[];for(let i=0;i<n.length;i++){let s=n.charCodeAt(i);if(s===13&&n.charCodeAt(i+1)===10&&(s=10,i++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Qe(s,55296,56319)&&Qe(n.charCodeAt(i+1),56320,57343)){const l=s-55296,o=n.charCodeAt(i+1)-56320;s=Math.pow(2,16)+l*Math.pow(2,10)+o,i++}e.push(s)}return e}function We(n){if(n<=65535)return String.fromCharCode(n);n-=Math.pow(2,16);const e=Math.floor(n/Math.pow(2,10))+55296,i=n%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(i)}function Db(n){const e=yx(n);let i=-1;const s=[];let l;const o=function(I){return I>=e.length?-1:e[I]},u=function(I){if(I===void 0&&(I=1),I>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+I)},f=function(I){return I===void 0&&(I=1),i+=I,l=o(i),!0},d=function(){return i-=1,!0},p=function(I){return I===void 0&&(I=l),I===-1},m=function(){if(y(),f(),Vn(l)){for(;Vn(u());)f();return new Zo}else{if(l===34)return E();if(l===35)if(Ly(u())||C(u(1),u(2))){const I=new Pb("");return $(u(1),u(2),u(3))&&(I.type="id"),I.value=Z(),I}else return new lt(l);else return l===36?u()===61?(f(),new wx):new lt(l):l===39?E():l===40?new Kb:l===41?new Hh:l===42?u()===61?(f(),new xx):new lt(l):l===43?G()?(d(),v()):new lt(l):l===44?new $b:l===45?G()?(d(),v()):u(1)===45&&u(2)===62?(f(2),new zb):V()?(d(),S()):new lt(l):l===46?G()?(d(),v()):new lt(l):l===58?new Hb:l===59?new qb:l===60?u(1)===33&&u(2)===45&&u(3)===45?(f(3),new Ub):new lt(l):l===64?$(u(1),u(2),u(3))?new Xb(Z()):new lt(l):l===91?new Gb:l===92?k()?(d(),S()):new lt(l):l===93?new vh:l===94?u()===61?(f(),new Sx):new lt(l):l===123?new Ib:l===124?u()===61?(f(),new vx):u()===124?(f(),new Yb):new lt(l):l===125?new Vb:l===126?u()===61?(f(),new bx):new lt(l):Mt(l)?(d(),v()):Do(l)?(d(),S()):p()?new zo:new lt(l)}},y=function(){for(;u(1)===47&&u(2)===42;)for(f(2);;)if(f(),l===42&&u()===47){f();break}else if(p())return},v=function(){const I=q();if($(u(1),u(2),u(3))){const F=new _x;return F.value=I.value,F.repr=I.repr,F.type=I.type,F.unit=Z(),F}else if(u()===37){f();const F=new Zb;return F.value=I.value,F.repr=I.repr,F}else{const F=new Qb;return F.value=I.value,F.repr=I.repr,F.type=I.type,F}},S=function(){const I=Z();if(I.toLowerCase()==="url"&&u()===40){for(f();Vn(u(1))&&Vn(u(2));)f();return u()===34||u()===39?new Ka(I):Vn(u())&&(u(2)===34||u(2)===39)?new Ka(I):x()}else return u()===40?(f(),new Ka(I)):new qh(I)},E=function(I){I===void 0&&(I=l);let F="";for(;f();){if(l===I||p())return new $h(F);if(Bo(l))return d(),new Bb;l===92?p(u())||(Bo(u())?f():F+=We(T())):F+=We(l)}throw new Error("Internal error")},x=function(){const I=new Fb("");for(;Vn(u());)f();if(p(u()))return I;for(;f();){if(l===41||p())return I;if(Vn(l)){for(;Vn(u());)f();return u()===41||p(u())?(f(),I):(ie(),new Uo)}else{if(l===34||l===39||l===40||gx(l))return ie(),new Uo;if(l===92)if(k())I.value+=We(T());else return ie(),new Uo;else I.value+=We(l)}}throw new Error("Internal error")},T=function(){if(f(),jy(l)){const I=[l];for(let ee=0;ee<5&&jy(u());ee++)f(),I.push(l);Vn(u())&&f();let F=parseInt(I.map(function(ee){return String.fromCharCode(ee)}).join(""),16);return F>mx&&(F=65533),F}else return p()?65533:l},C=function(I,F){return!(I!==92||Bo(F))},k=function(){return C(l,u())},$=function(I,F,ee){return I===45?Do(F)||F===45||C(F,ee):Do(I)?!0:I===92?C(I,F):!1},V=function(){return $(l,u(1),u(2))},R=function(I,F,ee){return I===43||I===45?!!(Mt(F)||F===46&&Mt(ee)):I===46?!!Mt(F):!!Mt(I)},G=function(){return R(l,u(1),u(2))},Z=function(){let I="";for(;f();)if(Ly(l))I+=We(l);else if(k())I+=We(T());else return d(),I;throw new Error("Internal parse error")},q=function(){let I="",F="integer";for((u()===43||u()===45)&&(f(),I+=We(l));Mt(u());)f(),I+=We(l);if(u(1)===46&&Mt(u(2)))for(f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);const ee=u(1),ve=u(2),z=u(3);if((ee===69||ee===101)&&Mt(ve))for(f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);else if((ee===69||ee===101)&&(ve===43||ve===45)&&Mt(z))for(f(),I+=We(l),f(),I+=We(l),f(),I+=We(l),F="number";Mt(u());)f(),I+=We(l);const Q=j(I);return{type:F,value:Q,repr:I}},j=function(I){return+I},ie=function(){for(;f();){if(l===41||p())return;k()&&T()}};let le=0;for(;!p(u());)if(s.push(m()),le++,le>e.length*2)throw new Error("I'm infinite-looping!");return s}class Xe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Bb extends Xe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Uo extends Xe{constructor(){super(...arguments),this.tokenType="BADURL"}}class Zo extends Xe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Ub extends Xe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class zb extends Xe{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class Hb extends Xe{constructor(){super(...arguments),this.tokenType=":"}}class qb extends Xe{constructor(){super(...arguments),this.tokenType=";"}}class $b extends Xe{constructor(){super(...arguments),this.tokenType=","}}class _r extends Xe{constructor(){super(...arguments),this.value="",this.mirror=""}}class Ib extends _r{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Vb extends _r{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Gb extends _r{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class vh extends _r{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Kb extends _r{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Hh extends _r{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class bx extends Xe{constructor(){super(...arguments),this.tokenType="~="}}class vx extends Xe{constructor(){super(...arguments),this.tokenType="|="}}class Sx extends Xe{constructor(){super(...arguments),this.tokenType="^="}}class wx extends Xe{constructor(){super(...arguments),this.tokenType="$="}}class xx extends Xe{constructor(){super(...arguments),this.tokenType="*="}}class Yb extends Xe{constructor(){super(...arguments),this.tokenType="||"}}class zo extends Xe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class lt extends Xe{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=We(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\
52
52
  `:this.value}}class Tr extends Xe{constructor(){super(...arguments),this.value=""}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}}class qh extends Tr{constructor(e){super(),this.tokenType="IDENT",this.value=e}toString(){return"IDENT("+this.value+")"}toSource(){return al(this.value)}}class Ka extends Tr{constructor(e){super(),this.tokenType="FUNCTION",this.value=e,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return al(this.value)+"("}}class Xb extends Tr{constructor(e){super(),this.tokenType="AT-KEYWORD",this.value=e}toString(){return"AT("+this.value+")"}toSource(){return"@"+al(this.value)}}class Pb extends Tr{constructor(e){super(),this.tokenType="HASH",this.value=e,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type==="id"?"#"+al(this.value):"#"+Tx(this.value)}}class $h extends Tr{constructor(e){super(),this.tokenType="STRING",this.value=e}toString(){return'"'+Jb(this.value)+'"'}}class Fb extends Tr{constructor(e){super(),this.tokenType="URL",this.value=e}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Jb(this.value)+'")'}}class Qb extends Xe{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}}class Zb extends Xe{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+"%"}}class _x extends Xe{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){const e=this.repr;let i=al(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||Qe(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),e+i}}function al(n){n=""+n;let e="";const i=n.charCodeAt(0);for(let s=0;s<n.length;s++){const l=n.charCodeAt(s);if(l===0)throw new zh("Invalid character: the input contains U+0000.");Qe(l,1,31)||l===127||s===0&&Qe(l,48,57)||s===1&&Qe(l,48,57)&&i===45?e+="\\"+l.toString(16)+" ":l>=128||l===45||l===95||Qe(l,48,57)||Qe(l,65,90)||Qe(l,97,122)?e+=n[s]:e+="\\"+n[s]}return e}function Tx(n){n=""+n;let e="";for(let i=0;i<n.length;i++){const s=n.charCodeAt(i);if(s===0)throw new zh("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Qe(s,48,57)||Qe(s,65,90)||Qe(s,97,122)?e+=n[i]:e+="\\"+s.toString(16)+" "}return e}function Jb(n){n=""+n;let e="";for(let i=0;i<n.length;i++){const s=n.charCodeAt(i);if(s===0)throw new zh("Invalid character: the input contains U+0000.");Qe(s,1,31)||s===127?e+="\\"+s.toString(16)+" ":s===34||s===92?e+="\\"+n[i]:e+=n[i]}return e}class Ot extends Error{}function Ex(n,e){let i;try{i=Db(n),i[i.length-1]instanceof zo||i.push(new zo)}catch(j){const ie=j.message+` while parsing css selector "${n}". Did you mean to CSS.escape it?`,le=(j.stack||"").indexOf(j.message);throw le!==-1&&(j.stack=j.stack.substring(0,le)+ie+j.stack.substring(le+j.message.length)),j.message=ie,j}const s=i.find(j=>j instanceof Xb||j instanceof Bb||j instanceof Uo||j instanceof Yb||j instanceof Ub||j instanceof zb||j instanceof qb||j instanceof Ib||j instanceof Vb||j instanceof Fb||j instanceof Zb);if(s)throw new Ot(`Unsupported token "${s.toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`);let l=0;const o=new Set;function u(){return new Ot(`Unexpected token "${i[l].toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`)}function f(){for(;i[l]instanceof Zo;)l++}function d(j=l){return i[j]instanceof qh}function p(j=l){return i[j]instanceof $h}function m(j=l){return i[j]instanceof Qb}function y(j=l){return i[j]instanceof $b}function v(j=l){return i[j]instanceof Kb}function S(j=l){return i[j]instanceof Hh}function E(j=l){return i[j]instanceof Ka}function x(j=l){return i[j]instanceof lt&&i[j].value==="*"}function T(j=l){return i[j]instanceof zo}function C(j=l){return i[j]instanceof lt&&[">","+","~"].includes(i[j].value)}function k(j=l){return y(j)||S(j)||T(j)||C(j)||i[j]instanceof Zo}function $(){const j=[V()];for(;f(),!!y();)l++,j.push(V());return j}function V(){return f(),m()||p()?i[l++].value:R()}function R(){const j={simples:[]};for(f(),C()?j.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):j.simples.push({selector:G(),combinator:""});;){if(f(),C())j.simples[j.simples.length-1].combinator=i[l++].value,f();else if(k())break;j.simples.push({combinator:"",selector:G()})}return j}function G(){let j="";const ie=[];for(;!k();)if(d()||x())j+=i[l++].toSource();else if(i[l]instanceof Pb)j+=i[l++].toSource();else if(i[l]instanceof lt&&i[l].value===".")if(l++,d())j+="."+i[l++].toSource();else throw u();else if(i[l]instanceof Hb)if(l++,d())if(!e.has(i[l].value.toLowerCase()))j+=":"+i[l++].toSource();else{const le=i[l++].value.toLowerCase();ie.push({name:le,args:[]}),o.add(le)}else if(E()){const le=i[l++].value.toLowerCase();if(e.has(le)?(ie.push({name:le,args:$()}),o.add(le)):j+=`:${le}(${Z()})`,f(),!S())throw u();l++}else throw u();else if(i[l]instanceof Gb){for(j+="[",l++;!(i[l]instanceof vh)&&!T();)j+=i[l++].toSource();if(!(i[l]instanceof vh))throw u();j+="]",l++}else throw u();if(!j&&!ie.length)throw u();return{css:j||void 0,functions:ie}}function Z(){let j="",ie=1;for(;!T()&&((v()||E())&&ie++,S()&&ie--,!!ie);)j+=i[l++].toSource();return j}const q=$();if(!T())throw u();if(q.some(j=>typeof j!="object"||!("simples"in j)))throw new Ot(`Error while parsing css selector "${n}". Did you mean to CSS.escape it?`);return{selector:q,names:Array.from(o)}}const Sh=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),Ax=new Set(["left-of","right-of","above","below","near"]),Wb=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 ll(n){const e=kx(n),i=[];for(const s of e.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const l=Ex(s.body,Wb);i.push({name:"css",body:l.selector,source:s.body});continue}if(Sh.has(s.name)){let l,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new Ot(`Malformed selector: ${s.name}=`+s.body);if(l=p[0],p.length===2){if(typeof p[1]!="number"||!Ax.has(s.name))throw new Ot(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new Ot(`Malformed selector: ${s.name}=`+s.body)}const u={name:s.name,source:s.body,body:{parsed:ll(l),distance:o}},f=[...u.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),d=f?u.body.parsed.parts.indexOf(f):-1;d!==-1&&Nx(u.body.parsed.parts.slice(0,d+1),i.slice(0,d+1))&&u.body.parsed.parts.splice(0,d+1),i.push(u);continue}i.push({...s,source:s.body})}if(Sh.has(i[0].name))throw new Ot(`"${i[0].name}" selector cannot be first`);return{capture:e.capture,parts:i}}function Nx(n,e){return Xn({parts:n})===Xn({parts:e})}function Xn(n,e){return typeof n=="string"?n:n.parts.map((i,s)=>{let l=!0;!e&&s!==n.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(l=!1);const o=l?i.name+"=":"";return`${s===n.capture?"*":""}${o}${i.source}`}).join(" >> ")}function Cx(n,e){const i=(s,l)=>{for(const o of s.parts)e(o,l),Sh.has(o.name)&&i(o.body.parsed,!0)};i(n,!1)}function kx(n){let e=0,i,s=0;const l={parts:[]},o=()=>{const f=n.substring(s,e).trim(),d=f.indexOf("=");let p,m;d!==-1&&f.substring(0,d).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=f.substring(0,d).trim(),m=f.substring(d+1)):f.length>1&&f[0]==='"'&&f[f.length-1]==='"'||f.length>1&&f[0]==="'"&&f[f.length-1]==="'"?(p="text",m=f):/^\(*\/\//.test(f)||f.startsWith("..")?(p="xpath",m=f):(p="css",m=f);let y=!1;if(p[0]==="*"&&(y=!0,p=p.substring(1)),l.parts.push({name:p,body:m}),y){if(l.capture!==void 0)throw new Ot("Only one of the selectors can capture using * modifier");l.capture=l.parts.length-1}};if(!n.includes(">>"))return e=n.length,o(),l;const u=()=>{const d=n.substring(s,e).match(/^\s*text\s*=(.*)$/);return!!d&&!!d[1]};for(;e<n.length;){const f=n[e];f==="\\"&&e+1<n.length?e+=2:f===i?(i=void 0,e++):!i&&(f==='"'||f==="'"||f==="`")&&!u()?(i=f,e++):!i&&f===">"&&n[e+1]===">"?(o(),e+=2,s=e):e++}return o(),l}function as(n,e){let i=0,s=n.length===0;const l=()=>n[i]||"",o=()=>{const T=l();return++i,s=i>=n.length,T},u=T=>{throw s?new Ot(`Unexpected end of selector while parsing selector \`${n}\``):new Ot(`Error while parsing selector \`${n}\` - unexpected symbol "${l()}" at position ${i}`+(T?" during "+T:""))};function f(){for(;!s&&/\s/.test(l());)o()}function d(T){return T>="€"||T>="0"&&T<="9"||T>="A"&&T<="Z"||T>="a"&&T<="z"||T>="0"&&T<="9"||T==="_"||T==="-"}function p(){let T="";for(f();!s&&d(l());)T+=o();return T}function m(T){let C=o();for(C!==T&&u("parsing quoted string");!s&&l()!==T;)l()==="\\"&&o(),C+=o();return l()!==T&&u("parsing quoted string"),C+=o(),C}function y(){o()!=="/"&&u("parsing regular expression");let T="",C=!1;for(;!s;){if(l()==="\\")T+=o(),s&&u("parsing regular expression");else if(C&&l()==="]")C=!1;else if(!C&&l()==="[")C=!0;else if(!C&&l()==="/")break;T+=o()}o()!=="/"&&u("parsing regular expression");let k="";for(;!s&&l().match(/[dgimsuy]/);)k+=o();try{return new RegExp(T,k)}catch($){throw new Ot(`Error while parsing selector \`${n}\`: ${$.message}`)}}function v(){let T="";return f(),l()==="'"||l()==='"'?T=m(l()).slice(1,-1):T=p(),T||u("parsing property path"),T}function S(){f();let T="";return s||(T+=o()),!s&&T!=="="&&(T+=o()),["=","*=","^=","$=","|=","~="].includes(T)||u("parsing operator"),T}function E(){o();const T=[];for(T.push(v()),f();l()===".";)o(),T.push(v()),f();if(l()==="]")return o(),{name:T.join("."),jsonPath:T,op:"<truthy>",value:null,caseSensitive:!1};const C=S();let k,$=!0;if(f(),l()==="/"){if(C!=="=")throw new Ot(`Error while parsing selector \`${n}\` - cannot use ${C} in attribute with regular expression`);k=y()}else if(l()==="'"||l()==='"')k=m(l()).slice(1,-1),f(),l()==="i"||l()==="I"?($=!1,o()):(l()==="s"||l()==="S")&&($=!0,o());else{for(k="";!s&&(d(l())||l()==="+"||l()===".");)k+=o();k==="true"?k=!0:k==="false"?k=!1:e||(k=+k,Number.isNaN(k)&&u("parsing attribute value"))}if(f(),l()!=="]"&&u("parsing attribute value"),o(),C!=="="&&typeof k!="string")throw new Ot(`Error while parsing selector \`${n}\` - cannot use ${C} in attribute with non-string matching value - ${k}`);return{name:T.join("."),jsonPath:T,op:C,value:k,caseSensitive:$}}const x={name:"",attributes:[]};for(x.name=p(),f();l()==="[";)x.attributes.push(E()),f();if(s||u(void 0),!x.name&&!x.attributes.length)throw new Ot(`Error while parsing selector \`${n}\` - selector cannot be empty`);return x}function cc(n,e="'"){const i=JSON.stringify(n),s=i.substring(1,i.length-1).replace(/\\"/g,'"');if(e==="'")return e+s.replace(/[']/g,"\\'")+e;if(e==='"')return e+s.replace(/["]/g,'\\"')+e;if(e==="`")return e+s.replace(/[`]/g,"\\`")+e;throw new Error("Invalid escape char")}function Jo(n){return n.charAt(0).toUpperCase()+n.substring(1)}function e0(n){return n.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function or(n){return`"${n.replace(/["\\]/g,e=>"\\"+e)}"`}let Zi;function Mx(){Zi=new Map}function Tt(n){let e=Zi==null?void 0:Zi.get(n);return e===void 0&&(e=n.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),Zi==null||Zi.set(n,e)),e}function uc(n){return n.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function t0(n){return n.unicode||n.unicodeSets?String(n):String(n).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function Rt(n,e){return typeof n!="string"?t0(n):`${JSON.stringify(n)}${e?"s":"i"}`}function xt(n,e){return typeof n!="string"?t0(n):`"${n.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${e?"s":"i"}`}function Ox(n,e,i=""){if(n.length<=e)return n;const s=[...n];return s.length>e?s.slice(0,e-i.length).join("")+i:s.join("")}function Dy(n,e){return Ox(n,e,"…")}function Wo(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rx(n,e){const i=n.length,s=e.length;let l=0,o=0;const u=Array(i+1).fill(null).map(()=>Array(s+1).fill(0));for(let f=1;f<=i;f++)for(let d=1;d<=s;d++)n[f-1]===e[d-1]&&(u[f][d]=u[f-1][d-1]+1,u[f][d]>l&&(l=u[f][d],o=f));return n.slice(o-l,o)}function jx(n,e){try{const i=ll(e),s=Lx(i);return s||ts(new i0[n],i,!1,1)[0]}catch{return e}}function Lx(n){const e=n.parts[n.parts.length-1];if((e==null?void 0:e.name)==="internal:describe"){const i=JSON.parse(e.body);if(typeof i=="string")return i}}function ls(n,e,i=!1){return n0(n,e,i,1)[0]}function n0(n,e,i=!1,s=20,l){try{return ts(new i0[n](l),ll(e),i,s)}catch{return[e]}}function ts(n,e,i=!1,s=20){const l=[...e.parts],o=[];let u=i?"frame-locator":"page";for(let f=0;f<l.length;f++){const d=l[f],p=u;if(u="locator",d.name==="internal:describe")continue;if(d.name==="nth"){d.body==="0"?o.push([n.generateLocator(p,"first",""),n.generateLocator(p,"nth","0")]):d.body==="-1"?o.push([n.generateLocator(p,"last",""),n.generateLocator(p,"nth","-1")]):o.push([n.generateLocator(p,"nth",d.body)]);continue}if(d.name==="visible"){o.push([n.generateLocator(p,"visible",d.body),n.generateLocator(p,"default",`visible=${d.body}`)]);continue}if(d.name==="internal:text"){const{exact:E,text:x}=Ra(d.body);o.push([n.generateLocator(p,"text",x,{exact:E})]);continue}if(d.name==="internal:has-text"){const{exact:E,text:x}=Ra(d.body);if(!E){o.push([n.generateLocator(p,"has-text",x,{exact:E})]);continue}}if(d.name==="internal:has-not-text"){const{exact:E,text:x}=Ra(d.body);if(!E){o.push([n.generateLocator(p,"has-not-text",x,{exact:E})]);continue}}if(d.name==="internal:has"){const E=ts(n,d.body.parsed,!1,s);o.push(E.map(x=>n.generateLocator(p,"has",x)));continue}if(d.name==="internal:has-not"){const E=ts(n,d.body.parsed,!1,s);o.push(E.map(x=>n.generateLocator(p,"hasNot",x)));continue}if(d.name==="internal:and"){const E=ts(n,d.body.parsed,!1,s);o.push(E.map(x=>n.generateLocator(p,"and",x)));continue}if(d.name==="internal:or"){const E=ts(n,d.body.parsed,!1,s);o.push(E.map(x=>n.generateLocator(p,"or",x)));continue}if(d.name==="internal:chain"){const E=ts(n,d.body.parsed,!1,s);o.push(E.map(x=>n.generateLocator(p,"chain",x)));continue}if(d.name==="internal:label"){const{exact:E,text:x}=Ra(d.body);o.push([n.generateLocator(p,"label",x,{exact:E})]);continue}if(d.name==="internal:role"){const E=as(d.body,!0),x={attrs:[]};for(const T of E.attributes)T.name==="name"?(x.exact=T.caseSensitive,x.name=T.value):(T.name==="level"&&typeof T.value=="string"&&(T.value=+T.value),x.attrs.push({name:T.name==="include-hidden"?"includeHidden":T.name,value:T.value}));o.push([n.generateLocator(p,"role",E.name,x)]);continue}if(d.name==="internal:testid"){const E=as(d.body,!0),{value:x}=E.attributes[0];o.push([n.generateLocator(p,"test-id",x)]);continue}if(d.name==="internal:attr"){const E=as(d.body,!0),{name:x,value:T,caseSensitive:C}=E.attributes[0],k=T,$=!!C;if(x==="placeholder"){o.push([n.generateLocator(p,"placeholder",k,{exact:$})]);continue}if(x==="alt"){o.push([n.generateLocator(p,"alt",k,{exact:$})]);continue}if(x==="title"){o.push([n.generateLocator(p,"title",k,{exact:$})]);continue}}if(d.name==="internal:control"&&d.body==="enter-frame"){const E=o[o.length-1],x=l[f-1],T=E.map(C=>n.chainLocators([C,n.generateLocator(p,"frame","")]));["xpath","css"].includes(x.name)&&T.push(n.generateLocator(p,"frame-locator",Xn({parts:[x]})),n.generateLocator(p,"frame-locator",Xn({parts:[x]},!0))),E.splice(0,E.length,...T),u="frame-locator";continue}const m=l[f+1],y=Xn({parts:[d]}),v=n.generateLocator(p,"default",y);if(m&&["internal:has-text","internal:has-not-text"].includes(m.name)){const{exact:E,text:x}=Ra(m.body);if(!E){const T=n.generateLocator("locator",m.name==="internal:has-text"?"has-text":"has-not-text",x,{exact:E}),C={};m.name==="internal:has-text"?C.hasText=x:C.hasNotText=x;const k=n.generateLocator(p,"default",y,C);o.push([n.chainLocators([v,T]),k]),f++;continue}}let S;if(["xpath","css"].includes(d.name)){const E=Xn({parts:[d]},!0);S=n.generateLocator(p,"default",E)}o.push([v,S].filter(Boolean))}return Dx(n,o,s)}function Dx(n,e,i){const s=e.map(()=>""),l=[],o=u=>{if(u===e.length)return l.push(n.chainLocators(s)),l.length<i;for(const f of e[u])if(s[u]=f,!o(u+1))return!1;return!0};return o(0),l}function Ra(n){let e=!1;const i=n.match(/^\/(.*)\/([igm]*)$/);return i?{text:new RegExp(i[1],i[2])}:(n.endsWith('"')?(n=JSON.parse(n),e=!0):n.endsWith('"s')?(n=JSON.parse(n.substring(0,n.length-1)),e=!0):n.endsWith('"i')&&(n=JSON.parse(n.substring(0,n.length-1)),e=!1),{exact:e,text:n})}class Bx{constructor(e){this.preferredQuote=e}generateLocator(e,i,s,l={}){switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(l.hasText)} })`:l.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(l.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=[];ot(l.name)?o.push(`name: ${this.regexToSourceString(l.name)}`):typeof l.name=="string"&&(o.push(`name: ${this.quote(l.name)}`),l.exact&&o.push("exact: true"));for(const{name:f,value:d}of l.attrs)o.push(`${f}: ${typeof d=="string"?this.quote(d):d}`);const u=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${u})`;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,!!l.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!l.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!l.exact);case"label":return this.toCallWithExact("getByLabel",s,!!l.exact);case"title":return this.toCallWithExact("getByTitle",s,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToSourceString(e){return uc(String(e))}toCallWithExact(e,i,s){return ot(i)?`${e}(${this.regexToSourceString(i)})`:s?`${e}(${this.quote(i)}, { exact: true })`:`${e}(${this.quote(i)})`}toHasText(e){return ot(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return ot(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return cc(e,this.preferredQuote??"'")}}class Ux{generateLocator(e,i,s,l={}){switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(l.hasText)})`:l.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(l.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=[];ot(l.name)?o.push(`name=${this.regexToString(l.name)}`):typeof l.name=="string"&&(o.push(`name=${this.quote(l.name)}`),l.exact&&o.push("exact=True"));for(const{name:f,value:d}of l.attrs){let p=typeof d=="string"?this.quote(d):d;typeof d=="boolean"&&(p=d?"True":"False"),o.push(`${e0(f)}=${p}`)}const u=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${u})`;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,!!l.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!l.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!l.exact);case"label":return this.toCallWithExact("get_by_label",s,!!l.exact);case"title":return this.toCallWithExact("get_by_title",s,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${uc(e.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${i})`}toCallWithExact(e,i,s){return ot(i)?`${e}(${this.regexToString(i)})`:s?`${e}(${this.quote(i)}, exact=True)`:`${e}(${this.quote(i)})`}toHasText(e){return ot(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return ot(e)?this.regexToString(e):this.quote(e)}quote(e){return cc(e,'"')}}class zx{generateLocator(e,i,s,l={}){let o;switch(e){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(l.hasText)}))`:l.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(l.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 u=[];ot(l.name)?u.push(`.setName(${this.regexToString(l.name)})`):typeof l.name=="string"&&(u.push(`.setName(${this.quote(l.name)})`),l.exact&&u.push(".setExact(true)"));for(const{name:d,value:p}of l.attrs)u.push(`.set${Jo(d)}(${typeof p=="string"?this.quote(p):p})`);const f=u.length?`, new ${o}.GetByRoleOptions()${u.join("")}`:"";return`getByRole(AriaRole.${e0(s).toUpperCase()}${f})`;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,!!l.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!l.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!l.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!l.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(uc(e.source))}${i})`}toCallWithExact(e,i,s,l){return ot(s)?`${i}(${this.regexToString(s)})`:l?`${i}(${this.quote(s)}, new ${e}.${Jo(i)}Options().setExact(true))`:`${i}(${this.quote(s)})`}toHasText(e){return ot(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return ot(e)?this.regexToString(e):this.quote(e)}quote(e){return cc(e,'"')}}class Hx{generateLocator(e,i,s,l={}){switch(i){case"default":return l.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(l.hasText)} })`:l.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(l.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=[];ot(l.name)?o.push(`NameRegex = ${this.regexToString(l.name)}`):typeof l.name=="string"&&(o.push(`Name = ${this.quote(l.name)}`),l.exact&&o.push("Exact = true"));for(const{name:f,value:d}of l.attrs)o.push(`${Jo(f)} = ${typeof d=="string"?this.quote(d):d}`);const u=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${Jo(s)}${u})`;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,!!l.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!l.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!l.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!l.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(uc(e.source))}${i})`}toCallWithExact(e,i,s){return ot(i)?`${e}(${this.regexToString(i)})`:s?`${e}(${this.quote(i)}, new() { Exact = true })`:`${e}(${this.quote(i)})`}toHasText(e){return ot(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return ot(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return ot(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return cc(e,'"')}}class qx{generateLocator(e,i,s,l={}){return JSON.stringify({kind:i,body:s,options:l})}chainLocators(e){const i=e.map(s=>JSON.parse(s));for(let s=0;s<i.length-1;++s)i[s].next=i[s+1];return JSON.stringify(i[0])}}const i0={javascript:Bx,python:Ux,java:zx,csharp:Hx,jsonl:qx};function ot(n){return n instanceof RegExp}const By=new Map;function $x({name:n,rootItem:e,render:i,title:s,icon:l,isError:o,isVisible:u,selectedItem:f,onAccepted:d,onSelected:p,onHighlighted:m,treeState:y,setTreeState:v,noItemsMessage:S,dataTestId:E,autoExpandDepth:x}){const T=H.useMemo(()=>Ix(e,f,y.expandedItems,x||0,u),[e,f,y,x,u]),C=H.useRef(null),[k,$]=H.useState(),[V,R]=H.useState(!1);H.useEffect(()=>{m==null||m(k)},[m,k]),H.useEffect(()=>{const q=C.current;if(!q)return;const j=()=>{By.set(n,q.scrollTop)};return q.addEventListener("scroll",j,{passive:!0}),()=>q.removeEventListener("scroll",j)},[n]),H.useEffect(()=>{C.current&&(C.current.scrollTop=By.get(n)||0)},[n]);const G=H.useCallback(q=>{const{expanded:j}=T.get(q);if(j){for(let ie=f;ie;ie=ie.parent)if(ie===q){p==null||p(q);break}y.expandedItems.set(q.id,!1)}else y.expandedItems.set(q.id,!0);v({...y})},[T,f,p,y,v]),Z=H.useCallback(q=>{const{expanded:j}=T.get(q),ie=[q];for(;ie.length;){const le=ie.pop();ie.push(...le.children),y.expandedItems.set(le.id,!j)}v({...y})},[T,y,v]);return b.jsx("div",{className:Ye("tree-view vbox",n+"-tree-view"),"data-testid":E||n+"-tree",children:b.jsxs("div",{className:Ye("tree-view-content"),role:T.size>0?"tree":void 0,tabIndex:0,onKeyDown:q=>{if(f&&q.key==="Enter"){d==null||d(f);return}if(q.key!=="ArrowDown"&&q.key!=="ArrowUp"&&q.key!=="ArrowLeft"&&q.key!=="ArrowRight")return;if(q.stopPropagation(),q.preventDefault(),f&&q.key==="ArrowLeft"){const{expanded:ie,parent:le}=T.get(f);ie?(y.expandedItems.set(f.id,!1),v({...y})):le&&(p==null||p(le));return}if(f&&q.key==="ArrowRight"){f.children.length&&(y.expandedItems.set(f.id,!0),v({...y}));return}let j=f;if(q.key==="ArrowDown"&&(f?j=T.get(f).next:T.size&&(j=[...T.keys()][0])),q.key==="ArrowUp"){if(f)j=T.get(f).prev;else if(T.size){const ie=[...T.keys()];j=ie[ie.length-1]}}m==null||m(void 0),j&&(R(!0),p==null||p(j)),$(void 0)},ref:C,children:[S&&T.size===0&&b.jsx("div",{className:"tree-view-empty",children:S}),e.children.map(q=>T.get(q)&&b.jsx(s0,{item:q,treeItems:T,selectedItem:f,onSelected:p,onAccepted:d,isError:o,toggleExpanded:G,toggleSubtree:Z,highlightedItem:k,setHighlightedItem:$,render:i,icon:l,title:s,isKeyboardNavigation:V,setIsKeyboardNavigation:R},q.id))]})})}function s0({item:n,treeItems:e,selectedItem:i,onSelected:s,highlightedItem:l,setHighlightedItem:o,isError:u,onAccepted:f,toggleExpanded:d,toggleSubtree:p,render:m,title:y,icon:v,isKeyboardNavigation:S,setIsKeyboardNavigation:E}){const x=H.useId(),T=H.useRef(null);H.useEffect(()=>{i===n&&S&&T.current&&(Cb(T.current),E(!1))},[n,i,S,E]);const C=e.get(n),k=C.depth,$=C.expanded;let V="codicon-blank";typeof $=="boolean"&&(V=$?"codicon-chevron-down":"codicon-chevron-right");const R=m(n),G=$&&n.children.length?n.children:[],Z=y==null?void 0:y(n),q=(v==null?void 0:v(n))||"codicon-blank";return b.jsxs("div",{ref:T,role:"treeitem","aria-selected":n===i,"aria-expanded":$,"aria-controls":x,title:Z,className:"vbox",style:{flex:"none"},children:[b.jsxs("div",{onDoubleClick:()=>f==null?void 0:f(n),className:Ye("tree-view-entry",i===n&&"selected",l===n&&"highlighted",(u==null?void 0:u(n))&&"error"),onClick:()=>s==null?void 0:s(n),onMouseEnter:()=>o(n),onMouseLeave:()=>o(void 0),children:[k?new Array(k).fill(0).map((j,ie)=>b.jsx("div",{className:"tree-view-indent"},"indent-"+ie)):void 0,b.jsx("div",{"aria-hidden":"true",className:"codicon "+V,style:{minWidth:16,marginRight:4},onDoubleClick:j=>{j.preventDefault(),j.stopPropagation()},onClick:j=>{j.stopPropagation(),j.preventDefault(),j.altKey?p(n):d(n)}}),v&&b.jsx("div",{className:"codicon "+q,style:{minWidth:16,marginRight:4},"aria-label":"["+q.replace("codicon","icon")+"]"}),typeof R=="string"?b.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:R}):R]}),!!G.length&&b.jsx("div",{id:x,role:"group",children:G.map(j=>e.get(j)&&b.jsx(s0,{item:j,treeItems:e,selectedItem:i,onSelected:s,onAccepted:f,isError:u,toggleExpanded:d,toggleSubtree:p,highlightedItem:l,setHighlightedItem:o,render:m,title:y,icon:v,isKeyboardNavigation:S,setIsKeyboardNavigation:E},j.id))})]})}function Ix(n,e,i,s,l=()=>!0){if(!l(n))return new Map;const o=new Map,u=new Set;for(let p=e==null?void 0:e.parent;p;p=p.parent)u.add(p.id);let f=null;const d=(p,m)=>{for(const y of p.children){if(!l(y))continue;const v=u.has(y.id)||i.get(y.id),S=s>m&&o.size<25&&v!==!1,E=y.children.length?v??S:void 0,x={depth:m,expanded:E,parent:n===p?null:p,next:null,prev:f};f&&(o.get(f).next=y),f=y,o.set(y,x),E&&d(y,m+1)}};return d(n,0),o}const Dt=H.forwardRef(function({children:e,title:i="",icon:s,disabled:l=!1,toggled:o=!1,onClick:u=()=>{},style:f,testId:d,className:p,ariaLabel:m},y){return b.jsxs("button",{ref:y,className:Ye(p,"toolbar-button",s,o&&"toggled"),onMouseDown:Uy,onClick:u,onDoubleClick:Uy,title:i,disabled:!!l,style:f,"data-testid":d,"aria-label":m||i,children:[s&&b.jsx("span",{className:`codicon codicon-${s}`,style:e?{marginRight:5}:{}}),e]})}),Uy=n=>{n.stopPropagation(),n.preventDefault()};function r0(n){return n==="scheduled"?"codicon-clock":n==="running"?"codicon-loading":n==="failed"?"codicon-error":n==="passed"?"codicon-check":n==="skipped"?"codicon-circle-slash":"codicon-circle-outline"}function Vx(n){return n==="scheduled"?"Pending":n==="running"?"Running":n==="failed"?"Failed":n==="passed"?"Passed":n==="skipped"?"Skipped":"Did not run"}const Gx=$x,Kx=({actions:n,selectedAction:e,selectedTime:i,setSelectedTime:s,treeState:l,setTreeState:o,sdkLanguage:u,onSelected:f,onHighlighted:d,revealConsole:p,revealActionAttachment:m,isLive:y})=>{const{rootItem:v,itemMap:S}=H.useMemo(()=>rx(n),[n]),{selectedItem:E}=H.useMemo(()=>({selectedItem:e?S.get(e.callId):void 0}),[S,e]),x=H.useCallback(R=>{var G,Z;return!!((Z=(G=R.action)==null?void 0:G.error)!=null&&Z.message)},[]),T=H.useCallback(R=>s({minimum:R.action.startTime,maximum:R.action.endTime}),[s]),C=H.useCallback(R=>{var Z,q;const G=!!m&&!!((q=(Z=R.action)==null?void 0:Z.attachments)!=null&&q.length);return Ih(R.action,{sdkLanguage:u,revealConsole:p,revealActionAttachment:()=>m==null?void 0:m(R.action.callId),isLive:y,showDuration:!0,showBadges:!0,showAttachments:G})},[y,p,m,u]),k=H.useCallback(R=>!i||!R.action||R.action.startTime<=i.maximum&&R.action.endTime>=i.minimum,[i]),$=H.useCallback(R=>{f==null||f(R.action)},[f]),V=H.useCallback(R=>{d==null||d(R==null?void 0:R.action)},[d]);return b.jsxs("div",{className:"vbox",children:[i&&b.jsxs("div",{className:"action-list-show-all",onClick:()=>s(void 0),children:[b.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),b.jsx(Gx,{name:"actions",rootItem:v,treeState:l,setTreeState:o,selectedItem:E,onSelected:$,onHighlighted:V,onAccepted:T,isError:x,isVisible:k,render:C})]})},Ih=(n,e)=>{var T;const{sdkLanguage:i,revealConsole:s,revealActionAttachment:l,isLive:o,showDuration:u,showBadges:f,showAttachments:d}=e,{errors:p,warnings:m}=lx(n),y=n.params.selector?jx(i||"javascript",n.params.selector):void 0,v=n.class==="Test"&&n.method==="test.step"&&((T=n.annotations)==null?void 0:T.some(C=>C.type==="skip"));let S="";n.endTime?S=_t(n.endTime-n.startTime):n.error?S="Timed out":o||(S="-");const{elements:E,title:x}=a0(n);return b.jsxs("div",{className:"action-title vbox",children:[b.jsxs("div",{className:"hbox",children:[b.jsx("span",{className:"action-title-method",title:x,children:E}),(u||f||d||v)&&b.jsx("div",{className:"spacer"}),d&&b.jsx(Dt,{icon:"attach",title:"Open Attachment",onClick:()=>l==null?void 0:l()}),u&&!v&&b.jsx("div",{className:"action-duration",children:S||b.jsx("span",{className:"codicon codicon-loading"})}),v&&b.jsx("span",{className:Ye("action-skipped","codicon",r0("skipped")),title:"skipped"}),f&&b.jsxs("div",{className:"action-icons",onClick:()=>s==null?void 0:s(),children:[!!p&&b.jsxs("div",{className:"action-icon",children:[b.jsx("span",{className:"codicon codicon-error"}),b.jsx("span",{className:"action-icon-value",children:p})]}),!!m&&b.jsxs("div",{className:"action-icon",children:[b.jsx("span",{className:"codicon codicon-warning"}),b.jsx("span",{className:"action-icon-value",children:m})]})]})]}),y&&b.jsx("div",{className:"action-title-selector",title:y,children:y})]})};function a0(n){var f;const e=n.title??((f=Mb.get(n.class+"."+n.method))==null?void 0:f.title)??n.method,i=[],s=[];let l=0;const o=/\{([^}]+)\}/g;let u;for(;(u=o.exec(e))!==null;){const[d,p]=u,m=e.slice(l,u.index);i.push(m),s.push(m);const y=Q1(n.params,p);y===void 0?(i.push(d),s.push(d)):u.index===0?(i.push(y),s.push(y)):(i.push(b.jsx("span",{className:"action-title-param",children:y},i.length)),s.push(y)),l=u.index+d.length}if(l<e.length){const d=e.slice(l);i.push(d),s.push(d)}return{elements:i,title:s.join("")}}const Vh=({value:n,description:e})=>{const[i,s]=H.useState("copy"),l=H.useCallback(()=>{(typeof n=="function"?n():Promise.resolve(n)).then(u=>{navigator.clipboard.writeText(u).then(()=>{s("check"),setTimeout(()=>{s("copy")},3e3)},()=>{s("close")})},()=>{s("close")})},[n]);return b.jsx(Dt,{title:e||"Copy",icon:i,onClick:l})},Ho=({value:n,description:e,copiedDescription:i=e,style:s})=>{const[l,o]=H.useState(!1),u=H.useCallback(async()=>{const f=typeof n=="function"?await n():n;await navigator.clipboard.writeText(f),o(!0),setTimeout(()=>o(!1),3e3)},[n]);return b.jsx(Dt,{style:s,title:e,onClick:u,className:"copy-to-clipboard-text-button",children:l?i:e})},us=({text:n})=>b.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:n}),Yx=({action:n,startTimeOffset:e,sdkLanguage:i})=>{const s=H.useMemo(()=>Object.keys((n==null?void 0:n.params)??{}).filter(f=>f!=="info"),[n]);if(!n)return b.jsx(us,{text:"No action selected"});const l=n.startTime-e,o=_t(l),{title:u}=a0(n);return b.jsxs("div",{className:"call-tab",children:[b.jsx("div",{className:"call-line",children:u}),b.jsx("div",{className:"call-section",children:"Time"}),Eo({name:"start",type:"literal",text:o}),Eo({name:"duration",type:"literal",text:Xx(n)}),!!s.length&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"call-section",children:"Parameters"}),s.map(f=>Eo(zy(n,f,n.params[f],i)))]}),!!n.result&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"call-section",children:"Return value"}),Object.keys(n.result).map(f=>Eo(zy(n,f,n.result[f],i)))]})]})};function Xx(n){return n.endTime?_t(n.endTime-n.startTime):n.error?"Timed Out":"Running"}function Eo(n){let e=n.text.replace(/\n/g,"↵");return n.type==="string"&&(e=`"${e}"`),b.jsxs("div",{className:"call-line",children:[n.name,":",b.jsx("span",{className:Ye("call-value",n.type),title:n.text,children:e}),["literal","string","number","object","locator"].includes(n.type)&&b.jsx(Vh,{value:n.text})]},n.name)}function zy(n,e,i,s){const l=n.method.includes("eval")||n.method==="waitForFunction";if(e==="files")return{text:"<files>",type:"string",name:e};if((e==="eventInit"||e==="expectedValue"||e==="arg"&&l)&&(i=ec(i.value,new Array(10).fill({handle:"<handle>"}))),(e==="value"&&l||e==="received"&&n.method==="expect")&&(i=ec(i,new Array(10).fill({handle:"<handle>"}))),e==="selector")return{text:ls(s||"javascript",n.params.selector),type:"locator",name:"locator"};const o=typeof i;return o!=="object"||i===null?{text:String(i),type:o,name:e}:i.guid?{text:"<handle>",type:"handle",name:e}:{text:JSON.stringify(i).slice(0,1e3),type:"object",name:e}}function ec(n,e){if(n.n!==void 0)return n.n;if(n.s!==void 0)return n.s;if(n.b!==void 0)return n.b;if(n.v!==void 0){if(n.v==="undefined")return;if(n.v==="null")return null;if(n.v==="NaN")return NaN;if(n.v==="Infinity")return 1/0;if(n.v==="-Infinity")return-1/0;if(n.v==="-0")return-0}if(n.d!==void 0)return new Date(n.d);if(n.r!==void 0)return new RegExp(n.r.p,n.r.f);if(n.a!==void 0)return n.a.map(i=>ec(i,e));if(n.o!==void 0){const i={};for(const{k:s,v:l}of n.o)i[s]=ec(l,e);return i}return n.h!==void 0?e===void 0?"<object>":e[n.h]:"<object>"}const Hy=new Map;function fc({name:n,items:e=[],id:i,render:s,icon:l,isError:o,isWarning:u,isInfo:f,selectedItem:d,onAccepted:p,onSelected:m,onHighlighted:y,onIconClicked:v,noItemsMessage:S,dataTestId:E,notSelectable:x,ariaLabel:T}){const C=H.useRef(null),[k,$]=H.useState();return H.useEffect(()=>{y==null||y(k)},[y,k]),H.useEffect(()=>{const V=C.current;if(!V)return;const R=()=>{Hy.set(n,V.scrollTop)};return V.addEventListener("scroll",R,{passive:!0}),()=>V.removeEventListener("scroll",R)},[n]),H.useEffect(()=>{C.current&&(C.current.scrollTop=Hy.get(n)||0)},[n]),b.jsx("div",{className:Ye("list-view vbox",n+"-list-view"),role:e.length>0?"list":void 0,"aria-label":T,children:b.jsxs("div",{className:Ye("list-view-content",x&&"not-selectable"),tabIndex:0,onKeyDown:V=>{var q;if(d&&V.key==="Enter"){p==null||p(d,e.indexOf(d));return}if(V.key!=="ArrowDown"&&V.key!=="ArrowUp")return;V.stopPropagation(),V.preventDefault();const R=d?e.indexOf(d):-1;let G=R;V.key==="ArrowDown"&&(R===-1?G=0:G=Math.min(R+1,e.length-1)),V.key==="ArrowUp"&&(R===-1?G=e.length-1:G=Math.max(R-1,0));const Z=(q=C.current)==null?void 0:q.children.item(G);Cb(Z||void 0),y==null||y(void 0),m==null||m(e[G],G),$(void 0)},ref:C,children:[S&&e.length===0&&b.jsx("div",{className:"list-view-empty",children:S}),e.map((V,R)=>{const G=s(V,R);return b.jsxs("div",{onDoubleClick:()=>p==null?void 0:p(V,R),role:"listitem",className:Ye("list-view-entry",d===V&&"selected",!x&&k===V&&"highlighted",(o==null?void 0:o(V,R))&&"error",(u==null?void 0:u(V,R))&&"warning",(f==null?void 0:f(V,R))&&"info"),"aria-selected":d===V,onClick:()=>m==null?void 0:m(V,R),onMouseEnter:()=>$(V),onMouseLeave:()=>$(void 0),children:[l&&b.jsx("div",{className:"codicon "+(l(V,R)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:Z=>{Z.preventDefault(),Z.stopPropagation()},onClick:Z=>{Z.stopPropagation(),Z.preventDefault(),v==null||v(V,R)}}),typeof G=="string"?b.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:G}):G]},(i==null?void 0:i(V,R))||R)})]})})}const Px=fc,Fx=({action:n,isLive:e})=>{const i=H.useMemo(()=>{var u;if(!n||!n.log.length)return[];const s=n.log,l=n.context.wallTime-n.context.startTime,o=[];for(let f=0;f<s.length;++f){let d="";if(s[f].time!==-1){const p=(u=s[f])==null?void 0:u.time;f+1<s.length?d=_t(s[f+1].time-p):n.endTime>0?d=_t(n.endTime-p):e?d=_t(Date.now()-l-p):d="-"}o.push({message:s[f].message,time:d})}return o},[n,e]);return i.length?b.jsx(Px,{name:"log",ariaLabel:"Log entries",items:i,render:s=>b.jsxs("div",{className:"log-list-item",children:[b.jsx("span",{className:"log-list-duration",children:s.time}),s.message]}),notSelectable:!0}):b.jsx(us,{text:"No log entries"})};function el(n,e){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let l,o={},u=!1,f=e==null?void 0:e.fg,d=e==null?void 0:e.bg;for(;(l=i.exec(n))!==null;){const[,,p,,m]=l;if(p){const y=+p;switch(y){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:u=!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:u=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:f=qy[y-30];break;case 39:f=e==null?void 0:e.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:d=qy[y-40];break;case 49:d=e==null?void 0:e.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:f=$y[y-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:d=$y[y-100];break}}else if(m){const y={...o},v=u?d:f;v!==void 0&&(y.color=v);const S=u?f:d;S!==void 0&&(y["background-color"]=S),s.push(`<span style="${Zx(y)}">${Qx(m)}</span>`)}}return s.join("")}const qy={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)"},$y={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 Qx(n){return n.replace(/[&"<>]/g,e=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[e])}function Zx(n){return Object.entries(n).map(([e,i])=>`${e}: ${i}`).join("; ")}const Jx=({error:n})=>{const e=H.useMemo(()=>el(n),[n]);return b.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:e||""}})},l0=({cursor:n,onPaneMouseMove:e,onPaneMouseUp:i,onPaneDoubleClick:s})=>(gt.useEffect(()=>{const l=document.createElement("div");return l.style.position="fixed",l.style.top="0",l.style.right="0",l.style.bottom="0",l.style.left="0",l.style.zIndex="9999",l.style.cursor=n,document.body.appendChild(l),e&&l.addEventListener("mousemove",e),i&&l.addEventListener("mouseup",i),s&&document.body.addEventListener("dblclick",s),()=>{e&&l.removeEventListener("mousemove",e),i&&l.removeEventListener("mouseup",i),s&&document.body.removeEventListener("dblclick",s),document.body.removeChild(l)}},[n,e,i,s]),b.jsx(b.Fragment,{})),Wx={position:"absolute",top:0,right:0,bottom:0,left:0},o0=({orientation:n,offsets:e,setOffsets:i,resizerColor:s,resizerWidth:l,minColumnWidth:o})=>{const u=o||0,[f,d]=gt.useState(null),[p,m]=cs(),y={position:"absolute",right:n==="horizontal"?void 0:0,bottom:n==="horizontal"?0:void 0,width:n==="horizontal"?7:void 0,height:n==="horizontal"?void 0:7,borderTopWidth:n==="horizontal"?void 0:(7-l)/2,borderRightWidth:n==="horizontal"?(7-l)/2:void 0,borderBottomWidth:n==="horizontal"?void 0:(7-l)/2,borderLeftWidth:n==="horizontal"?(7-l)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:n==="horizontal"?"ew-resize":"ns-resize"};return b.jsxs("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-l)/2,zIndex:100,pointerEvents:"none"},ref:m,children:[!!f&&b.jsx(l0,{cursor:n==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>d(null),onPaneMouseMove:v=>{if(!v.buttons)d(null);else if(f){const S=n==="horizontal"?v.clientX-f.clientX:v.clientY-f.clientY,E=f.offset+S,x=f.index>0?e[f.index-1]:0,T=n==="horizontal"?p.width:p.height,C=Math.min(Math.max(x+u,E),T-u)-e[f.index];for(let k=f.index;k<e.length;++k)e[k]=e[k]+C;i([...e])}}}),e.map((v,S)=>b.jsx("div",{style:{...y,top:n==="horizontal"?0:v,left:n==="horizontal"?v:0,pointerEvents:"initial"},onMouseDown:E=>d({clientX:E.clientX,clientY:E.clientY,offset:v,index:S}),children:b.jsx("div",{style:{...Wx,background:s}})},S))]})};async function Jf(n){const e=new Image;return n&&(e.src=n,await new Promise((i,s)=>{e.onload=i,e.onerror=i})),e}const wh={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%),
53
53
  linear-gradient(-45deg, #80808020 25%, transparent 25%),
54
54
  linear-gradient(45deg, transparent 75%, #80808020 75%),
@@ -56,7 +56,7 @@ Error generating stack: `+a.message+`
56
56
  rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
57
57
  rgb(0 0 0 / 10%) 0px -2px 4px,
58
58
  rgb(0 0 0 / 15%) 0px -6.1px 12px,
59
- rgb(0 0 0 / 25%) 0px 6px 12px`},e_=({diff:n,noTargetBlank:e,hideDetails:i})=>{const[s,l]=H.useState(n.diff?"diff":"actual"),[o,u]=H.useState(!1),[f,d]=H.useState(null),[p,m]=H.useState("Expected"),[y,v]=H.useState(null),[S,E]=H.useState(null),[x,T]=cs();H.useEffect(()=>{(async()=>{var j,ie,le,I;d(await Jf((j=n.expected)==null?void 0:j.attachment.path)),m(((ie=n.expected)==null?void 0:ie.title)||"Expected"),v(await Jf((le=n.actual)==null?void 0:le.attachment.path)),E(await Jf((I=n.diff)==null?void 0:I.attachment.path))})()},[n]);const C=f&&y&&S,k=C?Math.max(f.naturalWidth,y.naturalWidth,200):500,$=C?Math.max(f.naturalHeight,y.naturalHeight,200):500,V=Math.min(1,(x.width-30)/k),R=Math.min(1,(x.width-50)/k/2),G=k*V,Z=$*V,q={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return b.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:T,children:C&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[n.diff&&b.jsx("div",{style:{...q,fontWeight:s==="diff"?600:"initial"},onClick:()=>l("diff"),children:"Diff"}),b.jsx("div",{style:{...q,fontWeight:s==="actual"?600:"initial"},onClick:()=>l("actual"),children:"Actual"}),b.jsx("div",{style:{...q,fontWeight:s==="expected"?600:"initial"},onClick:()=>l("expected"),children:p}),b.jsx("div",{style:{...q,fontWeight:s==="sxs"?600:"initial"},onClick:()=>l("sxs"),children:"Side by side"}),b.jsx("div",{style:{...q,fontWeight:s==="slider"?600:"initial"},onClick:()=>l("slider"),children:"Slider"})]}),b.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:Z+60},children:[n.diff&&s==="diff"&&b.jsx(Gn,{image:S,alt:"Diff",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="actual"&&b.jsx(Gn,{image:y,alt:"Actual",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="expected"&&b.jsx(Gn,{image:f,alt:p,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="slider"&&b.jsx(t_,{expectedImage:f,actualImage:y,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V,expectedTitle:p}),n.diff&&s==="sxs"&&b.jsxs("div",{style:{display:"flex"},children:[b.jsx(Gn,{image:f,title:p,hideSize:i,canvasWidth:R*k,canvasHeight:R*$,scale:R}),b.jsx(Gn,{image:o?S:y,title:o?"Diff":"Actual",onClick:()=>u(!o),hideSize:i,canvasWidth:R*k,canvasHeight:R*$,scale:R})]}),!n.diff&&s==="actual"&&b.jsx(Gn,{image:y,title:"Actual",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),!n.diff&&s==="expected"&&b.jsx(Gn,{image:f,title:p,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),!n.diff&&s==="sxs"&&b.jsxs("div",{style:{display:"flex"},children:[b.jsx(Gn,{image:f,title:p,canvasWidth:R*k,canvasHeight:R*$,scale:R}),b.jsx(Gn,{image:y,title:"Actual",canvasWidth:R*k,canvasHeight:R*$,scale:R})]})]}),!i&&b.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[b.jsx("div",{children:n.diff&&b.jsx("a",{target:"_blank",href:n.diff.attachment.path,rel:"noreferrer",children:n.diff.attachment.name})}),b.jsx("div",{children:b.jsx("a",{target:e?"":"_blank",href:n.actual.attachment.path,rel:"noreferrer",children:n.actual.attachment.name})}),b.jsx("div",{children:b.jsx("a",{target:e?"":"_blank",href:n.expected.attachment.path,rel:"noreferrer",children:n.expected.attachment.name})})]})]})})},t_=({expectedImage:n,actualImage:e,canvasWidth:i,canvasHeight:s,scale:l,expectedTitle:o,hideSize:u})=>{const f={position:"absolute",top:0,left:0},[d,p]=H.useState(i/2),m=n.naturalWidth===e.naturalWidth&&n.naturalHeight===e.naturalHeight;return b.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&b.jsxs("div",{style:{margin:5},children:[!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),b.jsx("span",{children:n.naturalWidth}),b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),b.jsx("span",{children:n.naturalHeight}),!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!m&&b.jsx("span",{children:e.naturalWidth}),!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!m&&b.jsx("span",{children:e.naturalHeight})]}),b.jsxs("div",{style:{position:"relative",width:i,height:s,margin:15,...wh},children:[b.jsx(o0,{orientation:"horizontal",offsets:[d],setOffsets:y=>p(y[0]),resizerColor:"#57606a80",resizerWidth:6}),b.jsx("img",{alt:o,style:{width:n.naturalWidth*l,height:n.naturalHeight*l},draggable:"false",src:n.src}),b.jsx("div",{style:{...f,bottom:0,overflow:"hidden",width:d,...wh},children:b.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*l,height:e.naturalHeight*l},draggable:"false",src:e.src})})]})]})},Gn=({image:n,title:e,alt:i,hideSize:s,canvasWidth:l,canvasHeight:o,scale:u,onClick:f})=>b.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!s&&b.jsxs("div",{style:{margin:5},children:[e&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),b.jsx("span",{children:n.naturalWidth}),b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),b.jsx("span",{children:n.naturalHeight})]}),b.jsx("div",{style:{display:"flex",flex:"none",width:l,height:o,margin:15,...wh},children:b.jsx("img",{width:n.naturalWidth*u,height:n.naturalHeight*u,alt:e||i,style:{cursor:f?"pointer":"initial"},draggable:"false",src:n.src,onClick:f})})]}),n_="modulepreload",i_=function(n,e){return new URL(n,e).href},Iy={},s_=function(e,i,s){let l=Promise.resolve();if(i&&i.length>0){let u=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const f=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),p=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(i.map(m=>{if(m=i_(m,s),m in Iy)return;Iy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(!!s)for(let x=f.length-1;x>=0;x--){const T=f[x];if(T.href===m&&(!y||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${v}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":n_,y||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),y)return new Promise((x,T)=>{E.addEventListener("load",x),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return e().catch(o)})},r_=20,Sr=({text:n,highlighter:e,mimeType:i,linkify:s,readOnly:l,highlight:o,revealLine:u,lineNumbers:f,isFocused:d,focusOnChange:p,wrapLines:m,onChange:y,dataTestId:v,placeholder:S})=>{const[E,x]=cs(),[T]=H.useState(s_(()=>import("./codeMirrorModule-Bucv2d7q.js"),__vite__mapDeps([0,1]),import.meta.url).then(V=>V.default)),C=H.useRef(null),[k,$]=H.useState();return H.useEffect(()=>{(async()=>{var q,j;const V=await T;l_(V);const R=x.current;if(!R)return;const G=c_(e)||o_(i)||(s?"text/linkified":"");if(C.current&&G===C.current.cm.getOption("mode")&&!!l===C.current.cm.getOption("readOnly")&&f===C.current.cm.getOption("lineNumbers")&&m===C.current.cm.getOption("lineWrapping")&&S===C.current.cm.getOption("placeholder"))return;(j=(q=C.current)==null?void 0:q.cm)==null||j.getWrapperElement().remove();const Z=V(R,{value:"",mode:G,readOnly:!!l,lineNumbers:f,lineWrapping:m,placeholder:S,matchBrackets:!0,autoCloseBrackets:!0});return C.current={cm:Z},d&&Z.focus(),$(Z),Z})()},[T,k,x,e,i,s,f,m,l,d,S]),H.useEffect(()=>{C.current&&C.current.cm.setSize(E.width,E.height)},[E]),H.useLayoutEffect(()=>{var G;if(!k)return;let V=!1;if(k.getValue()!==n&&(k.setValue(n),V=!0,p&&(k.execCommand("selectAll"),k.focus())),V||JSON.stringify(o)!==JSON.stringify(C.current.highlight)){for(const j of C.current.highlight||[])k.removeLineClass(j.line-1,"wrap");for(const j of o||[])k.addLineClass(j.line-1,"wrap",`source-line-${j.type}`);for(const j of C.current.widgets||[])k.removeLineWidget(j);for(const j of C.current.markers||[])j.clear();const Z=[],q=[];for(const j of o||[]){if(j.type!=="subtle-error"&&j.type!=="error")continue;const ie=(G=C.current)==null?void 0:G.cm.getLine(j.line-1);if(ie){const le={};le.title=j.message||"",q.push(k.markText({line:j.line-1,ch:0},{line:j.line-1,ch:j.column||ie.length},{className:"source-line-error-underline",attributes:le}))}if(j.type==="error"){const le=document.createElement("div");le.innerHTML=el(j.message||""),le.className="source-line-error-widget",Z.push(k.addLineWidget(j.line,le,{above:!0,coverGutter:!1}))}}C.current.highlight=o,C.current.widgets=Z,C.current.markers=q}typeof u=="number"&&C.current.cm.lineCount()>=u&&k.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let R;return y&&(R=()=>y(k.getValue()),k.on("change",R)),()=>{R&&k.off("change",R)}},[k,n,o,u,p,y]),b.jsx("div",{"data-testid":v,className:"cm-wrapper",ref:x,onClick:a_})};function a_(n){var i;if(!(n.target instanceof HTMLElement))return;let e;n.target.classList.contains("cm-linkified")?e=n.target.textContent:n.target.classList.contains("cm-link")&&((i=n.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(e=n.target.nextElementSibling.textContent.slice(1,-1)),e&&(n.preventDefault(),n.stopPropagation(),window.open(e,"_blank"))}let Vy=!1;function l_(n){Vy||(Vy=!0,n.defineSimpleMode("text/linkified",{start:[{regex:kb,token:"linkified"}]}))}function o_(n){if(n){if(n.includes("javascript")||n.includes("json"))return"javascript";if(n.includes("python"))return"python";if(n.includes("csharp"))return"text/x-csharp";if(n.includes("java"))return"text/x-java";if(n.includes("markdown"))return"markdown";if(n.includes("html")||n.includes("svg"))return"htmlmixed";if(n.includes("css"))return"css"}}function c_(n){if(n)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[n]}function u_(n){return!!n.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const c0=({title:n,children:e,setExpanded:i,expanded:s,expandOnTitleClick:l,className:o})=>{const u=H.useId(),f=H.useId(),d=H.useCallback(()=>i(!s),[s,i]),p=b.jsx("div",{className:Ye("codicon",s?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:l?void 0:d});return b.jsxs("div",{className:Ye("expandable",s&&"expanded",o),children:[l?b.jsxs("div",{id:u,role:"button","aria-expanded":s,"aria-controls":f,className:"expandable-title",onClick:d,children:[p,n]}):b.jsxs("div",{className:"expandable-title",children:[p,n]}),s&&b.jsx("div",{id:f,"aria-labelledby":u,role:"region",className:"expandable-content",children:e})]})};function u0(n){const e=[];let i=0,s;for(;(s=kb.exec(n))!==null;){const o=n.substring(i,s.index);o&&e.push(o);const u=s[0];e.push(f_(u)),i=s.index+u.length}const l=n.substring(i);return l&&e.push(l),e}function f_(n){let e=n;return e.startsWith("www.")&&(e="https://"+e),b.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:n})}const f0=H.createContext(void 0),Ci=()=>H.useContext(f0),h_=({attachment:n,reveal:e})=>{const i=Ci(),[s,l]=H.useState(!1),[o,u]=H.useState(null),[f,d]=H.useState(null),[p,m]=$1(),y=H.useRef(null),v=u_(n.contentType),S=!!n.sha1||!!n.path;H.useEffect(()=>{var T;if(e)return(T=y.current)==null||T.scrollIntoView({behavior:"smooth"}),m()},[e,m]),H.useEffect(()=>{s&&o===null&&f===null&&(d("Loading ..."),fetch(hc(i,n)).then(T=>T.text()).then(T=>{u(T),d(null)}).catch(T=>{d("Failed to load: "+T.message)}))},[i,s,o,f,n]);const E=H.useMemo(()=>{const T=o?o.split(`
59
+ rgb(0 0 0 / 25%) 0px 6px 12px`},e_=({diff:n,noTargetBlank:e,hideDetails:i})=>{const[s,l]=H.useState(n.diff?"diff":"actual"),[o,u]=H.useState(!1),[f,d]=H.useState(null),[p,m]=H.useState("Expected"),[y,v]=H.useState(null),[S,E]=H.useState(null),[x,T]=cs();H.useEffect(()=>{(async()=>{var j,ie,le,I;d(await Jf((j=n.expected)==null?void 0:j.attachment.path)),m(((ie=n.expected)==null?void 0:ie.title)||"Expected"),v(await Jf((le=n.actual)==null?void 0:le.attachment.path)),E(await Jf((I=n.diff)==null?void 0:I.attachment.path))})()},[n]);const C=f&&y&&S,k=C?Math.max(f.naturalWidth,y.naturalWidth,200):500,$=C?Math.max(f.naturalHeight,y.naturalHeight,200):500,V=Math.min(1,(x.width-30)/k),R=Math.min(1,(x.width-50)/k/2),G=k*V,Z=$*V,q={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return b.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:T,children:C&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[n.diff&&b.jsx("div",{style:{...q,fontWeight:s==="diff"?600:"initial"},onClick:()=>l("diff"),children:"Diff"}),b.jsx("div",{style:{...q,fontWeight:s==="actual"?600:"initial"},onClick:()=>l("actual"),children:"Actual"}),b.jsx("div",{style:{...q,fontWeight:s==="expected"?600:"initial"},onClick:()=>l("expected"),children:p}),b.jsx("div",{style:{...q,fontWeight:s==="sxs"?600:"initial"},onClick:()=>l("sxs"),children:"Side by side"}),b.jsx("div",{style:{...q,fontWeight:s==="slider"?600:"initial"},onClick:()=>l("slider"),children:"Slider"})]}),b.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:Z+60},children:[n.diff&&s==="diff"&&b.jsx(Gn,{image:S,alt:"Diff",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="actual"&&b.jsx(Gn,{image:y,alt:"Actual",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="expected"&&b.jsx(Gn,{image:f,alt:p,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),n.diff&&s==="slider"&&b.jsx(t_,{expectedImage:f,actualImage:y,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V,expectedTitle:p}),n.diff&&s==="sxs"&&b.jsxs("div",{style:{display:"flex"},children:[b.jsx(Gn,{image:f,title:p,hideSize:i,canvasWidth:R*k,canvasHeight:R*$,scale:R}),b.jsx(Gn,{image:o?S:y,title:o?"Diff":"Actual",onClick:()=>u(!o),hideSize:i,canvasWidth:R*k,canvasHeight:R*$,scale:R})]}),!n.diff&&s==="actual"&&b.jsx(Gn,{image:y,title:"Actual",hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),!n.diff&&s==="expected"&&b.jsx(Gn,{image:f,title:p,hideSize:i,canvasWidth:G,canvasHeight:Z,scale:V}),!n.diff&&s==="sxs"&&b.jsxs("div",{style:{display:"flex"},children:[b.jsx(Gn,{image:f,title:p,canvasWidth:R*k,canvasHeight:R*$,scale:R}),b.jsx(Gn,{image:y,title:"Actual",canvasWidth:R*k,canvasHeight:R*$,scale:R})]})]}),!i&&b.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[b.jsx("div",{children:n.diff&&b.jsx("a",{target:"_blank",href:n.diff.attachment.path,rel:"noreferrer",children:n.diff.attachment.name})}),b.jsx("div",{children:b.jsx("a",{target:e?"":"_blank",href:n.actual.attachment.path,rel:"noreferrer",children:n.actual.attachment.name})}),b.jsx("div",{children:b.jsx("a",{target:e?"":"_blank",href:n.expected.attachment.path,rel:"noreferrer",children:n.expected.attachment.name})})]})]})})},t_=({expectedImage:n,actualImage:e,canvasWidth:i,canvasHeight:s,scale:l,expectedTitle:o,hideSize:u})=>{const f={position:"absolute",top:0,left:0},[d,p]=H.useState(i/2),m=n.naturalWidth===e.naturalWidth&&n.naturalHeight===e.naturalHeight;return b.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&b.jsxs("div",{style:{margin:5},children:[!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),b.jsx("span",{children:n.naturalWidth}),b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),b.jsx("span",{children:n.naturalHeight}),!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!m&&b.jsx("span",{children:e.naturalWidth}),!m&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!m&&b.jsx("span",{children:e.naturalHeight})]}),b.jsxs("div",{style:{position:"relative",width:i,height:s,margin:15,...wh},children:[b.jsx(o0,{orientation:"horizontal",offsets:[d],setOffsets:y=>p(y[0]),resizerColor:"#57606a80",resizerWidth:6}),b.jsx("img",{alt:o,style:{width:n.naturalWidth*l,height:n.naturalHeight*l},draggable:"false",src:n.src}),b.jsx("div",{style:{...f,bottom:0,overflow:"hidden",width:d,...wh},children:b.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*l,height:e.naturalHeight*l},draggable:"false",src:e.src})})]})]})},Gn=({image:n,title:e,alt:i,hideSize:s,canvasWidth:l,canvasHeight:o,scale:u,onClick:f})=>b.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!s&&b.jsxs("div",{style:{margin:5},children:[e&&b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),b.jsx("span",{children:n.naturalWidth}),b.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),b.jsx("span",{children:n.naturalHeight})]}),b.jsx("div",{style:{display:"flex",flex:"none",width:l,height:o,margin:15,...wh},children:b.jsx("img",{width:n.naturalWidth*u,height:n.naturalHeight*u,alt:e||i,style:{cursor:f?"pointer":"initial"},draggable:"false",src:n.src,onClick:f})})]}),n_="modulepreload",i_=function(n,e){return new URL(n,e).href},Iy={},s_=function(e,i,s){let l=Promise.resolve();if(i&&i.length>0){let u=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const f=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),p=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(i.map(m=>{if(m=i_(m,s),m in Iy)return;Iy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(!!s)for(let x=f.length-1;x>=0;x--){const T=f[x];if(T.href===m&&(!y||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${v}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":n_,y||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),y)return new Promise((x,T)=>{E.addEventListener("load",x),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return e().catch(o)})},r_=20,Sr=({text:n,highlighter:e,mimeType:i,linkify:s,readOnly:l,highlight:o,revealLine:u,lineNumbers:f,isFocused:d,focusOnChange:p,wrapLines:m,onChange:y,dataTestId:v,placeholder:S})=>{const[E,x]=cs(),[T]=H.useState(s_(()=>import("./codeMirrorModule-Bn2yEfav.js"),__vite__mapDeps([0,1]),import.meta.url).then(V=>V.default)),C=H.useRef(null),[k,$]=H.useState();return H.useEffect(()=>{(async()=>{var q,j;const V=await T;l_(V);const R=x.current;if(!R)return;const G=c_(e)||o_(i)||(s?"text/linkified":"");if(C.current&&G===C.current.cm.getOption("mode")&&!!l===C.current.cm.getOption("readOnly")&&f===C.current.cm.getOption("lineNumbers")&&m===C.current.cm.getOption("lineWrapping")&&S===C.current.cm.getOption("placeholder"))return;(j=(q=C.current)==null?void 0:q.cm)==null||j.getWrapperElement().remove();const Z=V(R,{value:"",mode:G,readOnly:!!l,lineNumbers:f,lineWrapping:m,placeholder:S,matchBrackets:!0,autoCloseBrackets:!0});return C.current={cm:Z},d&&Z.focus(),$(Z),Z})()},[T,k,x,e,i,s,f,m,l,d,S]),H.useEffect(()=>{C.current&&C.current.cm.setSize(E.width,E.height)},[E]),H.useLayoutEffect(()=>{var G;if(!k)return;let V=!1;if(k.getValue()!==n&&(k.setValue(n),V=!0,p&&(k.execCommand("selectAll"),k.focus())),V||JSON.stringify(o)!==JSON.stringify(C.current.highlight)){for(const j of C.current.highlight||[])k.removeLineClass(j.line-1,"wrap");for(const j of o||[])k.addLineClass(j.line-1,"wrap",`source-line-${j.type}`);for(const j of C.current.widgets||[])k.removeLineWidget(j);for(const j of C.current.markers||[])j.clear();const Z=[],q=[];for(const j of o||[]){if(j.type!=="subtle-error"&&j.type!=="error")continue;const ie=(G=C.current)==null?void 0:G.cm.getLine(j.line-1);if(ie){const le={};le.title=j.message||"",q.push(k.markText({line:j.line-1,ch:0},{line:j.line-1,ch:j.column||ie.length},{className:"source-line-error-underline",attributes:le}))}if(j.type==="error"){const le=document.createElement("div");le.innerHTML=el(j.message||""),le.className="source-line-error-widget",Z.push(k.addLineWidget(j.line,le,{above:!0,coverGutter:!1}))}}C.current.highlight=o,C.current.widgets=Z,C.current.markers=q}typeof u=="number"&&C.current.cm.lineCount()>=u&&k.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let R;return y&&(R=()=>y(k.getValue()),k.on("change",R)),()=>{R&&k.off("change",R)}},[k,n,o,u,p,y]),b.jsx("div",{"data-testid":v,className:"cm-wrapper",ref:x,onClick:a_})};function a_(n){var i;if(!(n.target instanceof HTMLElement))return;let e;n.target.classList.contains("cm-linkified")?e=n.target.textContent:n.target.classList.contains("cm-link")&&((i=n.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(e=n.target.nextElementSibling.textContent.slice(1,-1)),e&&(n.preventDefault(),n.stopPropagation(),window.open(e,"_blank"))}let Vy=!1;function l_(n){Vy||(Vy=!0,n.defineSimpleMode("text/linkified",{start:[{regex:kb,token:"linkified"}]}))}function o_(n){if(n){if(n.includes("javascript")||n.includes("json"))return"javascript";if(n.includes("python"))return"python";if(n.includes("csharp"))return"text/x-csharp";if(n.includes("java"))return"text/x-java";if(n.includes("markdown"))return"markdown";if(n.includes("html")||n.includes("svg"))return"htmlmixed";if(n.includes("css"))return"css"}}function c_(n){if(n)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[n]}function u_(n){return!!n.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const c0=({title:n,children:e,setExpanded:i,expanded:s,expandOnTitleClick:l,className:o})=>{const u=H.useId(),f=H.useId(),d=H.useCallback(()=>i(!s),[s,i]),p=b.jsx("div",{className:Ye("codicon",s?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:l?void 0:d});return b.jsxs("div",{className:Ye("expandable",s&&"expanded",o),children:[l?b.jsxs("div",{id:u,role:"button","aria-expanded":s,"aria-controls":f,className:"expandable-title",onClick:d,children:[p,n]}):b.jsxs("div",{className:"expandable-title",children:[p,n]}),s&&b.jsx("div",{id:f,"aria-labelledby":u,role:"region",className:"expandable-content",children:e})]})};function u0(n){const e=[];let i=0,s;for(;(s=kb.exec(n))!==null;){const o=n.substring(i,s.index);o&&e.push(o);const u=s[0];e.push(f_(u)),i=s.index+u.length}const l=n.substring(i);return l&&e.push(l),e}function f_(n){let e=n;return e.startsWith("www.")&&(e="https://"+e),b.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:n})}const f0=H.createContext(void 0),Ci=()=>H.useContext(f0),h_=({attachment:n,reveal:e})=>{const i=Ci(),[s,l]=H.useState(!1),[o,u]=H.useState(null),[f,d]=H.useState(null),[p,m]=$1(),y=H.useRef(null),v=u_(n.contentType),S=!!n.sha1||!!n.path;H.useEffect(()=>{var T;if(e)return(T=y.current)==null||T.scrollIntoView({behavior:"smooth"}),m()},[e,m]),H.useEffect(()=>{s&&o===null&&f===null&&(d("Loading ..."),fetch(hc(i,n)).then(T=>T.text()).then(T=>{u(T),d(null)}).catch(T=>{d("Failed to load: "+T.message)}))},[i,s,o,f,n]);const E=H.useMemo(()=>{const T=o?o.split(`
60
60
  `).length:0;return Math.min(Math.max(5,T),20)*r_},[o]),x=b.jsxs("span",{style:{marginLeft:5},ref:y,"aria-label":n.name,children:[b.jsx("span",{children:u0(n.name)}),S&&b.jsx("a",{style:{marginLeft:5},href:qo(i,n),children:"download"})]});return!v||!S?b.jsx("div",{style:{marginLeft:20},children:x}):b.jsxs("div",{className:Ye(p&&"yellow-flash"),children:[b.jsx(c0,{title:x,expanded:s,setExpanded:l,expandOnTitleClick:!0,children:f&&b.jsx("i",{children:f})}),s&&o!==null&&b.jsx("div",{className:"vbox",style:{height:E},children:b.jsx(Sr,{text:o,readOnly:!0,mimeType:n.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},d_=({revealedAttachmentCallId:n})=>{const e=Ci(),{diffMap:i,screenshots:s,attachments:l}=H.useMemo(()=>{const o=new Set((e==null?void 0:e.visibleAttachments)??[]),u=new Set,f=new Map;for(const d of o){if(!d.path&&!d.sha1)continue;const p=d.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(p){const m=p[1],y=p[2],v=f.get(m)||{expected:void 0,actual:void 0,diff:void 0};v[y]=d,f.set(m,v),o.delete(d)}else d.contentType.startsWith("image/")&&(u.add(d),o.delete(d))}return{diffMap:f,attachments:o,screenshots:u}},[e]);return!i.size&&!s.size&&!l.size?b.jsx(us,{text:"No attachments"}):b.jsxs("div",{className:"attachments-tab",children:[[...i.values()].map(({expected:o,actual:u,diff:f})=>b.jsxs(b.Fragment,{children:[o&&u&&b.jsx("div",{className:"attachments-section",children:"Image diff"}),o&&u&&b.jsx(e_,{noTargetBlank:!0,diff:{name:"Image diff",expected:{attachment:{...o,path:qo(e,o)},title:"Expected"},actual:{attachment:{...u,path:qo(e,u)}},diff:f?{attachment:{...f,path:qo(e,f)}}:void 0}})]})),s.size?b.jsx("div",{className:"attachments-section",children:"Screenshots"}):void 0,[...s.values()].map((o,u)=>{const f=hc(e,o);return b.jsxs("div",{className:"attachment-item",children:[b.jsx("div",{children:b.jsx("img",{draggable:"false",src:f})}),b.jsx("div",{children:b.jsx("a",{target:"_blank",href:f,rel:"noreferrer",children:o.name})})]},`screenshot-${u}`)}),l.size?b.jsx("div",{className:"attachments-section",children:"Attachments"}):void 0,[...l.values()].map((o,u)=>b.jsx("div",{className:"attachment-item",children:b.jsx(h_,{attachment:o,reveal:n&&o.callId===n.callId?n:void 0})},p_(o,u)))]})};function hc(n,e){return n&&e.sha1?n.createRelativeUrl(`sha1/${e.sha1}`):`file?path=${encodeURIComponent(e.path)}`}function qo(n,e){let i=e.contentType?`&dn=${encodeURIComponent(e.name)}`:"";return e.contentType&&(i+=`&dct=${encodeURIComponent(e.contentType)}`),hc(n,e)+i}function p_(n,e){return e+"-"+(n.sha1?"sha1-"+n.sha1:"path-"+n.path)}const g_=`
61
61
  # Instructions
62
62
 
@@ -66,7 +66,7 @@ Error generating stack: `+a.message+`
66
66
  `.trimStart();async function m_({testInfo:n,metadata:e,errorContext:i,errors:s,buildCodeFrame:l,stdout:o,stderr:u}){var y;const f=new Set(s.filter(v=>v.message&&!v.message.includes(`
67
67
  `)).map(v=>v.message));for(const v of s)for(const S of f.keys())(y=v.message)!=null&&y.includes(S)&&f.delete(S);const d=s.filter(v=>!(!v.message||!v.message.includes(`
68
68
  `)&&!f.has(v.message)));if(!d.length)return;const p=[g_,"# Test info","",n];o&&p.push("","# Stdout","","```",$o(o),"```"),u&&p.push("","# Stderr","","```",$o(u),"```"),p.push("","# Error details");for(const v of d)p.push("","```",$o(v.message||""),"```");i&&p.push(i);const m=await l(d[d.length-1]);return m&&p.push("","# Test source","","```ts",m,"```"),e!=null&&e.gitDiff&&p.push("","# Local changes","","```diff",e.gitDiff,"```"),p.join(`
69
- `)}const y_=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function $o(n){return n.replace(y_,"")}const b_=fc,v_=({stack:n,setSelectedFrame:e,selectedFrame:i})=>{const s=n||[];return b.jsx(b_,{name:"stack-trace",ariaLabel:"Stack trace",items:s,selectedItem:s[i],render:l=>{const o=l.file[1]===":"?"\\":"/";return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"stack-trace-frame-function",children:l.function||"(anonymous)"}),b.jsx("span",{className:"stack-trace-frame-location",children:l.file.split(o).pop()}),b.jsx("span",{className:"stack-trace-frame-line",children:":"+l.line})]})},onSelected:l=>e(s.indexOf(l))})},Gh=({noShadow:n,children:e,noMinHeight:i,className:s,sidebarBackground:l,onClick:o})=>b.jsx("div",{className:Ye("toolbar",n&&"no-shadow",i&&"no-min-height",s,l&&"toolbar-sidebar-background"),onClick:o,children:e});function S_(n,e,i,s,l){const o=Ci();return Po(async()=>{var S,E,x,T;const u=n==null?void 0:n[e],f=u!=null&&u.file?u:l;if(!f)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const d=f.file;let p=i.get(d);p||(p={errors:((S=l==null?void 0:l.source)==null?void 0:S.errors)||[],content:(E=l==null?void 0:l.source)==null?void 0:E.content},i.set(d,p));const m=(f==null?void 0:f.line)||((x=p.errors[0])==null?void 0:x.line)||0,y=s&&d.startsWith(s)?d.substring(s.length+1):d,v=p.errors.map(C=>({type:"error",line:C.line,message:C.message}));if(v.push({line:m,type:"running"}),((T=l==null?void 0:l.source)==null?void 0:T.content)!==void 0)p.content=l.source.content;else if(p.content===void 0||f===l){const C=await h0(d);try{let k=o?await fetch(o.createRelativeUrl(`sha1/src@${C}.txt`)):void 0;(!k||k.status===404)&&(k=await fetch(`file?path=${encodeURIComponent(d)}`)),k.status>=400?p.content=`<Unable to read "${d}">`:p.content=await k.text()}catch{p.content=`<Unable to read "${d}">`}}return{model:o,source:p,highlight:v,targetLine:m,fileName:y,location:f}},[n,e,s,l],{source:{errors:[],content:"Loading…"},highlight:[]})}const w_=({stack:n,sources:e,rootDir:i,fallbackLocation:s,stackFrameLocation:l,onOpenExternally:o})=>{const[u,f]=H.useState(),[d,p]=H.useState(0);H.useEffect(()=>{u!==n&&(f(n),p(0))},[n,u,f,p]);const{source:m,highlight:y,targetLine:v,fileName:S,location:E}=S_(n,d,e,i,s),x=H.useCallback(()=>{E&&(o?o(E):window.location.href=`vscode://file//${E.file}:${E.line}`)},[o,E]),T=((n==null?void 0:n.length)??0)>1,C=x_(S);return b.jsx(Qo,{sidebarSize:200,orientation:l==="bottom"?"vertical":"horizontal",sidebarHidden:!T,main:b.jsxs("div",{className:"vbox","data-testid":"source-code",children:[S&&b.jsxs(Gh,{children:[b.jsx("div",{className:"source-tab-file-name",title:S,children:b.jsx("div",{children:C})}),b.jsx(Vh,{description:"Copy filename",value:C}),E&&b.jsx(Dt,{icon:"link-external",title:"Open in VS Code",onClick:x})]}),b.jsx(Sr,{text:m.content||"",highlighter:"javascript",highlight:y,revealLine:v,readOnly:!0,lineNumbers:!0,dataTestId:"source-code-mirror"})]}),sidebar:b.jsx(v_,{stack:n,selectedFrame:d,setSelectedFrame:p})})};async function h0(n){const e=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-1",e),s=[],l=new DataView(i);for(let o=0;o<l.byteLength;o+=1){const u=l.getUint8(o).toString(16).padStart(2,"0");s.push(u)}return s.join("")}function x_(n){if(!n)return"";const e=n!=null&&n.includes("/")?"/":"\\";return(n==null?void 0:n.split(e).pop())??""}const __=({prompt:n})=>b.jsx(Ho,{value:n,description:"Copy prompt",copiedDescription:b.jsxs(b.Fragment,{children:["Copied ",b.jsx("span",{className:"codicon codicon-copy",style:{marginLeft:"5px"}})]}),style:{width:"120px",justifyContent:"center"}});function T_(n){return H.useMemo(()=>{if(!n)return{errors:new Map};const e=new Map;for(const i of n.errorDescriptors)e.set(i.message,i);return{errors:e}},[n])}function E_({message:n,error:e,sdkLanguage:i,revealInSource:s}){var f;let l,o;const u=(f=e.stack)==null?void 0:f[0];return u&&(l=u.file.replace(/.*[/\\](.*)/,"$1")+":"+u.line,o=u.file+":"+u.line),b.jsxs("div",{style:{display:"flex",flexDirection:"column",overflowX:"clip"},children:[b.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)",flex:0},children:[e.action&&Ih(e.action,{sdkLanguage:i}),l&&b.jsxs("div",{className:"action-location",children:["@ ",b.jsx("span",{title:o,onClick:()=>s(e),children:l})]})]}),b.jsx(Jx,{error:n})]})}const A_=({errorsModel:n,sdkLanguage:e,revealInSource:i,wallTime:s,testRunMetadata:l})=>{const o=Ci(),u=Po(async()=>{const p=o==null?void 0:o.attachments.find(m=>m.name==="error-context");if(p)return await fetch(hc(o,p)).then(m=>m.text())},[o],void 0),f=H.useCallback(async p=>{var S;const m=(S=p.stack)==null?void 0:S[0];if(!m)return;let y=o?await fetch(o.createRelativeUrl(`sha1/src@${await h0(m.file)}.txt`)):void 0;if((!y||y.status===404)&&(y=await fetch(`file?path=${encodeURIComponent(m.file)}`)),y.status>=400)return;const v=await y.text();return N_({source:v,message:$o(p.message).split(`
69
+ `)}const y_=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function $o(n){return n.replace(y_,"")}const b_=fc,v_=({stack:n,setSelectedFrame:e,selectedFrame:i})=>{const s=n||[];return b.jsx(b_,{name:"stack-trace",ariaLabel:"Stack trace",items:s,selectedItem:s[i],render:l=>{const o=l.file[1]===":"?"\\":"/";return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"stack-trace-frame-function",children:l.function||"(anonymous)"}),b.jsx("span",{className:"stack-trace-frame-location",children:l.file.split(o).pop()}),b.jsx("span",{className:"stack-trace-frame-line",children:":"+l.line})]})},onSelected:l=>e(s.indexOf(l))})},Gh=({noShadow:n,children:e,noMinHeight:i,className:s,sidebarBackground:l,onClick:o})=>b.jsx("div",{className:Ye("toolbar",n&&"no-shadow",i&&"no-min-height",s,l&&"toolbar-sidebar-background"),onClick:o,children:e});function S_(n,e,i,s,l){const o=Ci();return Po(async()=>{var S,E,x,T;const u=n==null?void 0:n[e],f=u!=null&&u.file?u:l;if(!f)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const d=f.file;let p=i.get(d);p||(p={errors:((S=l==null?void 0:l.source)==null?void 0:S.errors)||[],content:(E=l==null?void 0:l.source)==null?void 0:E.content},i.set(d,p));const m=(f==null?void 0:f.line)||((x=p.errors[0])==null?void 0:x.line)||0,y=s&&d.startsWith(s)?d.substring(s.length+1):d,v=p.errors.map(C=>({type:"error",line:C.line,message:C.message}));if(v.push({line:m,type:"running"}),((T=l==null?void 0:l.source)==null?void 0:T.content)!==void 0)p.content=l.source.content;else if(p.content===void 0||f===l){const C=await h0(d);try{let k=o?await fetch(o.createRelativeUrl(`sha1/src@${C}.txt`)):void 0;(!k||k.status===404)&&(k=await fetch(`file?path=${encodeURIComponent(d)}`)),k.status>=400?p.content="":p.content=await k.text()}catch{p.content=`<Unable to read "${d}">`}}return{model:o,source:p,highlight:v,targetLine:m,fileName:y,location:f}},[n,e,s,l],{source:{errors:[],content:"Loading…"},highlight:[]})}const w_=({stack:n,sources:e,rootDir:i,fallbackLocation:s,stackFrameLocation:l,onOpenExternally:o})=>{const[u,f]=H.useState(),[d,p]=H.useState(0);H.useEffect(()=>{u!==n&&(f(n),p(0))},[n,u,f,p]);const{source:m,highlight:y,targetLine:v,fileName:S,location:E}=S_(n,d,e,i,s),x=H.useCallback(()=>{E&&(o?o(E):window.location.href=`vscode://file//${E.file}:${E.line}`)},[o,E]),T=((n==null?void 0:n.length)??0)>1,C=x_(S);return b.jsx(Qo,{sidebarSize:200,orientation:l==="bottom"?"vertical":"horizontal",sidebarHidden:!T,main:b.jsxs("div",{className:"vbox","data-testid":"source-code",children:[S&&b.jsxs(Gh,{children:[b.jsx("div",{className:"source-tab-file-name",title:S,children:b.jsx("div",{children:C})}),b.jsx(Vh,{description:"Copy filename",value:C}),E&&b.jsx(Dt,{icon:"link-external",title:"Open in VS Code",onClick:x})]}),b.jsx(Sr,{text:m.content||"",highlighter:"javascript",highlight:y,revealLine:v,readOnly:!0,lineNumbers:!0,dataTestId:"source-code-mirror"})]}),sidebar:b.jsx(v_,{stack:n,selectedFrame:d,setSelectedFrame:p})})};async function h0(n){const e=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-1",e),s=[],l=new DataView(i);for(let o=0;o<l.byteLength;o+=1){const u=l.getUint8(o).toString(16).padStart(2,"0");s.push(u)}return s.join("")}function x_(n){if(!n)return"";const e=n!=null&&n.includes("/")?"/":"\\";return(n==null?void 0:n.split(e).pop())??""}const __=({prompt:n})=>b.jsx(Ho,{value:n,description:"Copy prompt",copiedDescription:b.jsxs(b.Fragment,{children:["Copied ",b.jsx("span",{className:"codicon codicon-copy",style:{marginLeft:"5px"}})]}),style:{width:"120px",justifyContent:"center"}});function T_(n){return H.useMemo(()=>{if(!n)return{errors:new Map};const e=new Map;for(const i of n.errorDescriptors)e.set(i.message,i);return{errors:e}},[n])}function E_({message:n,error:e,sdkLanguage:i,revealInSource:s}){var f;let l,o;const u=(f=e.stack)==null?void 0:f[0];return u&&(l=u.file.replace(/.*[/\\](.*)/,"$1")+":"+u.line,o=u.file+":"+u.line),b.jsxs("div",{style:{display:"flex",flexDirection:"column",overflowX:"clip"},children:[b.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)",flex:0},children:[e.action&&Ih(e.action,{sdkLanguage:i}),l&&b.jsxs("div",{className:"action-location",children:["@ ",b.jsx("span",{title:o,onClick:()=>s(e),children:l})]})]}),b.jsx(Jx,{error:n})]})}const A_=({errorsModel:n,sdkLanguage:e,revealInSource:i,wallTime:s,testRunMetadata:l})=>{const o=Ci(),u=Po(async()=>{const p=o==null?void 0:o.attachments.find(m=>m.name==="error-context");if(p)return await fetch(hc(o,p)).then(m=>m.text())},[o],void 0),f=H.useCallback(async p=>{var S;const m=(S=p.stack)==null?void 0:S[0];if(!m)return;let y=o?await fetch(o.createRelativeUrl(`sha1/src@${await h0(m.file)}.txt`)):void 0;if((!y||y.status===404)&&(y=await fetch(`file?path=${encodeURIComponent(m.file)}`)),y.status>=400)return;const v=await y.text();return N_({source:v,message:$o(p.message).split(`
70
70
  `)[0]||void 0,location:m,linesAbove:100,linesBelow:100})},[o]),d=Po(()=>m_({testInfo:(o==null?void 0:o.title)??"",metadata:l,errorContext:u,errors:(o==null?void 0:o.errorDescriptors)??[],buildCodeFrame:f}),[u,l,o,f],void 0);return n.errors.size?b.jsxs("div",{className:"fill",style:{overflow:"auto"},children:[b.jsx("span",{style:{position:"absolute",right:"5px",top:"5px",zIndex:1},children:d&&b.jsx(__,{prompt:d})}),[...n.errors.entries()].map(([p,m])=>{const y=`error-${s}-${p}`;return b.jsx(E_,{message:p,error:m,revealInSource:i,sdkLanguage:e},y)})]}):b.jsx(us,{text:"No errors"})};function N_({source:n,message:e,location:i,linesAbove:s,linesBelow:l}){const o=n.split(`
71
71
  `).slice(),u=Math.max(0,i.line-s-1),f=Math.min(o.length,i.line+l),d=o.slice(u,f),p=String(f).length,m=d.map((y,v)=>`${u+v+1===i.line?"> ":" "}${(u+v+1).toString().padEnd(p," ")} | ${y}`);return e&&m.splice(i.line-u,0,`${" ".repeat(p+2)} | ${" ".repeat(i.column-2)} ^ ${e}`),m.join(`
72
72
  `)}const C_=fc;function k_(n,e){const{entries:i}=H.useMemo(()=>{if(!n)return{entries:[]};const l=[];function o(f){var m,y,v,S,E,x;const d=l[l.length-1];d&&((m=f.browserMessage)==null?void 0:m.bodyString)===((y=d.browserMessage)==null?void 0:y.bodyString)&&((v=f.browserMessage)==null?void 0:v.location)===((S=d.browserMessage)==null?void 0:S.location)&&f.browserError===d.browserError&&((E=f.nodeMessage)==null?void 0:E.html)===((x=d.nodeMessage)==null?void 0:x.html)&&f.isError===d.isError&&f.isWarning===d.isWarning&&f.timestamp-d.timestamp<1e3?d.repeat++:l.push({...f,repeat:1})}const u=[...n.events,...n.stdio].sort((f,d)=>{const p="time"in f?f.time:f.timestamp,m="time"in d?d.time:d.timestamp;return p-m});for(const f of u){if(f.type==="console"){const d=f.args&&f.args.length?O_(f.args):d0(f.text),p=f.location.url,y=`${p?p.substring(p.lastIndexOf("/")+1):"<anonymous>"}:${f.location.lineNumber}`;o({browserMessage:{body:d,bodyString:f.text,location:y},isError:f.messageType==="error",isWarning:f.messageType==="warning",timestamp:f.time})}if(f.type==="event"&&f.method==="pageError"&&o({browserError:f.params.error,isError:!0,isWarning:!1,timestamp:f.time}),f.type==="stderr"||f.type==="stdout"){let d="";f.text&&(d=el(f.text.trim())||""),f.base64&&(d=el(atob(f.base64).trim())||""),o({nodeMessage:{html:d},isError:f.type==="stderr",isWarning:!1,timestamp:f.timestamp})}}return{entries:l}},[n]);return{entries:H.useMemo(()=>e?i.filter(l=>l.timestamp>=e.minimum&&l.timestamp<=e.maximum):i,[i,e])}}const M_=({consoleModel:n,boundaries:e,onEntryHovered:i,onAccepted:s})=>n.entries.length?b.jsx("div",{className:"console-tab",children:b.jsx(C_,{name:"console",onAccepted:s,onHighlighted:l=>i==null?void 0:i(l?n.entries.indexOf(l):void 0),items:n.entries,isError:l=>l.isError,isWarning:l=>l.isWarning,render:l=>{const o=_t(l.timestamp-e.minimum),u=b.jsx("span",{className:"console-time",children:o}),f=l.isError?"status-error":l.isWarning?"status-warning":"status-none",d=l.browserMessage||l.browserError?b.jsx("span",{className:Ye("codicon","codicon-browser",f),title:"Browser message"}):b.jsx("span",{className:Ye("codicon","codicon-file",f),title:"Runner message"});let p,m,y,v;const{browserMessage:S,browserError:E,nodeMessage:x}=l;if(S&&(p=S.location,m=S.body),E){const{error:T,value:C}=E;T?(m=T.message,v=T.stack):m=String(C)}return x&&(y=x.html),b.jsxs("div",{className:"console-line",children:[u,d,p&&b.jsx("span",{className:"console-location",children:p}),l.repeat>1&&b.jsx("span",{className:"console-repeat",children:l.repeat}),m&&b.jsx("span",{className:"console-line-message",children:m}),y&&b.jsx("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:y}}),v&&b.jsx("div",{className:"console-stack",children:v})]})}})}):b.jsx(us,{text:"No console entries"});function O_(n){if(n.length===1)return d0(n[0].preview);const e=typeof n[0].value=="string"&&n[0].value.includes("%"),i=e?n[0].value:"",s=e?n.slice(1):n;let l=0;const o=/%([%sdifoOc])/g;let u;const f=[];let d=[];f.push(b.jsx("span",{children:d},f.length+1));let p=0;for(;(u=o.exec(i))!==null;){const m=i.substring(p,u.index);d.push(b.jsx("span",{children:m},d.length+1)),p=u.index+2;const y=u[0][1];if(y==="%")d.push(b.jsx("span",{children:"%"},d.length+1));else if(y==="s"||y==="o"||y==="O"||y==="d"||y==="i"||y==="f"){const v=s[l++],S={};typeof(v==null?void 0:v.value)!="string"&&(S.color="var(--vscode-debugTokenExpression-number)"),d.push(b.jsx("span",{style:S,children:(v==null?void 0:v.preview)||""},d.length+1))}else if(y==="c"){d=[];const v=s[l++],S=v?R_(v.preview):{};f.push(b.jsx("span",{style:S,children:d},f.length+1))}}for(p<i.length&&d.push(b.jsx("span",{children:i.substring(p)},d.length+1));l<s.length;l++){const m=s[l],y={};d.length&&d.push(b.jsx("span",{children:" "},d.length+1)),typeof(m==null?void 0:m.value)!="string"&&(y.color="var(--vscode-debugTokenExpression-number)"),d.push(b.jsx("span",{style:y,children:(m==null?void 0:m.preview)||""},d.length+1))}return f}function d0(n){return[b.jsx("span",{dangerouslySetInnerHTML:{__html:el(n.trim())}})]}function R_(n){try{const e={},i=n.split(";");for(const s of i){const l=s.trim();if(!l)continue;let[o,u]=l.split(":");if(o=o.trim(),u=u.trim(),!j_(o))continue;const f=o.replace(/-([a-z])/g,d=>d[1].toUpperCase());e[f]=u}return e}catch{return{}}}function j_(n){return["background","border","color","font","line","margin","padding","text"].some(i=>n.startsWith(i))}const xh=({tabs:n,selectedTab:e,setSelectedTab:i,leftToolbar:s,rightToolbar:l,dataTestId:o,mode:u})=>{const f=H.useId();return e||(e=n[0].id),u||(u="default"),b.jsx("div",{className:"tabbed-pane","data-testid":o,children:b.jsxs("div",{className:"vbox",children:[b.jsxs(Gh,{children:[s&&b.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),u==="default"&&b.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...n.map(d=>b.jsx(p0,{id:d.id,ariaControls:`${f}-${d.id}`,title:d.title,count:d.count,errorCount:d.errorCount,selected:e===d.id,onSelect:i},d.id))]}),u==="select"&&b.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:b.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:e,onChange:d=>{i==null||i(n[d.currentTarget.selectedIndex].id)},children:n.map(d=>{let p="";return d.count&&(p=` (${d.count})`),d.errorCount&&(p=` (${d.errorCount})`),b.jsxs("option",{value:d.id,role:"tab","aria-controls":`${f}-${d.id}`,children:[d.title,p]},d.id)})})}),l&&b.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...l]})]}),n.map(d=>{const p="tab-content tab-"+d.id;if(d.component)return b.jsx("div",{id:`${f}-${d.id}`,role:"tabpanel","aria-label":d.title,className:p,style:{display:e===d.id?"inherit":"none"},children:d.component},d.id);if(e===d.id)return b.jsx("div",{id:`${f}-${d.id}`,role:"tabpanel","aria-label":d.title,className:p,children:d.render()},d.id)})]})})},p0=({id:n,title:e,count:i,errorCount:s,selected:l,onSelect:o,ariaControls:u})=>b.jsxs("div",{className:Ye("tabbed-pane-tab",l&&"selected"),onClick:()=>o==null?void 0:o(n),role:"tab",title:e,"aria-controls":u,"aria-selected":l,children:[b.jsx("div",{className:"tabbed-pane-tab-label",children:e}),!!i&&b.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!s&&b.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]});async function L_(n){const e=navigator.platform.includes("Win")?"win":"unix";let i=[];const s=new Set(["accept-encoding","host","method","path","scheme","version","authority","protocol"]);function l(y){return'^"'+y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^
@@ -263,4 +263,4 @@ ${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.pus
263
263
  `)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
264
264
  `,i)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var s;const i=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,i.value){const l="end"in i.value?i.value.end:void 0,o=Array.isArray(l)?l[l.length-1]:void 0;(o==null?void 0:o.type)==="comment"?l==null||l.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)e.items.push({start:[this.sourceToken]});else if(i.sep)i.sep.push(this.sourceToken);else{if(this.atIndentedComment(i.start,e.indent)){const l=e.items[e.items.length-2],o=(s=l==null?void 0:l.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),e.items.pop();return}}i.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const l=!this.onKeyLine&&this.indent===e.indent,o=l&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(o&&i.sep&&!i.value){const f=[];for(let d=0;d<i.sep.length;++d){const p=i.sep[d];switch(p.type){case"newline":f.push(d);break;case"space":break;case"comment":p.indent>e.indent&&(f.length=0);break;default:f.length=0}}f.length>=2&&(u=i.sep.splice(f[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(u.push(this.sourceToken),e.items.push({start:u}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(u.push(this.sourceToken),e.items.push({start:u,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(i.explicitKey)if(i.sep)if(i.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ns(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(cS(i.key)&&!ns(i.sep,"newline")){const f=ar(i.start),d=i.key,p=i.sep;p.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:d,sep:p}]})}else u.length>0?i.sep=i.sep.concat(u,this.sourceToken):i.sep.push(this.sourceToken);else if(ns(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const f=ar(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?e.items.push({start:u,key:null,sep:[this.sourceToken]}):ns(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);o||i.value?(e.items.push({start:u,key:f,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(f):(Object.assign(i,{key:f,sep:[]}),this.onKeyLine=!0);return}default:{const f=this.startBlockValue(e);if(f){l&&f.type!=="block-seq"&&e.items.push({start:u}),this.stack.push(f);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var s;const i=e.items[e.items.length-1];switch(this.type){case"newline":if(i.value){const l="end"in i.value?i.value.end:void 0,o=Array.isArray(l)?l[l.length-1]:void 0;(o==null?void 0:o.type)==="comment"?l==null||l.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,e.indent)){const l=e.items[e.items.length-2],o=(s=l==null?void 0:l.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),e.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=e.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;i.value||ns(i.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>e.indent){const l=this.startBlockValue(e);if(l){this.stack.push(l);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const i=e.items[e.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(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?e.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?e.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const l=this.flowScalar(this.type);!i||i.value?e.items.push({start:[],key:l,sep:[]}):i.sep?this.stack.push(l):Object.assign(i,{key:l,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);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===e.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 l=Lo(s),o=ar(l);_b(e);const u=e.end.splice(1,e.end.length);u.push(this.sourceToken);const f={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let i=this.source.indexOf(`
265
265
  `)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
266
- `,i)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){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 i=Lo(e),s=ar(i);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 i=Lo(e),s=ar(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,i){return this.type!=="comment"||this.indent<=i?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){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:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function uS(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new oS||null,prettyErrors:e}}function NN(n,e={}){const{lineCounter:i,prettyErrors:s}=uS(e),l=new kd(i==null?void 0:i.addNewLine),o=new Cd(e),u=Array.from(o.compose(l.parse(n)));if(s&&i)for(const f of u)f.errors.forEach(lc(n,i)),f.warnings.forEach(lc(n,i));return u.length>0?u:Object.assign([],{empty:!0},o.streamInfo())}function fS(n,e={}){const{lineCounter:i,prettyErrors:s}=uS(e),l=new kd(i==null?void 0:i.addNewLine),o=new Cd(e);let u=null;for(const f of o.compose(l.parse(n),!0,n.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new rs(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(u.errors.forEach(lc(n,i)),u.warnings.forEach(lc(n,i))),u}function CN(n,e,i){let s;typeof e=="function"?s=e:i===void 0&&e&&typeof e=="object"&&(i=e);const l=fS(n,i);if(!l)return null;if(l.warnings.forEach(o=>Ov(l.options.logLevel,o)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:s},i))}function kN(n,e,i){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:i===void 0&&e&&(i=e),typeof i=="string"&&(i=i.length),typeof i=="number"){const l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(n===void 0){const{keepUndefined:l}=i??e??{};if(!l)return}return hs(n)&&!s?n.toString(i):new Rr(n,s,i).toString(i)}const hS=Object.freeze(Object.defineProperty({__proto__:null,Alias:yc,CST:TN,Composer:Cd,Document:Rr,Lexer:lS,LineCounter:oS,Pair:mt,Parser:kd,Scalar:he,Schema:Ac,YAMLError:Ad,YAMLMap:Vt,YAMLParseError:rs,YAMLSeq:Ni,YAMLWarning:Qv,isAlias:fs,isCollection:He,isDocument:hs,isMap:Cr,isNode:qe,isPair:Be,isScalar:Re,isSeq:kr,parse:CN,parseAllDocuments:NN,parseDocument:fS,stringify:kN,visit:Ai,visitAsync:mc},Symbol.toStringTag,{value:"Module"})),MN=({action:n,model:e,sdkLanguage:i,testIdAttributeName:s,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})=>{const[d,p]=H.useState("action"),[m]=rn("shouldPopulateCanvasFromScreenshot",!1),y=H.useMemo(()=>LN(n),[n]),{snapshotInfoUrl:v,snapshotUrl:S,popoutUrl:E}=H.useMemo(()=>{const T=y[d];return e&&T?DN(e.traceUrl,T,m):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[y,d,m,e]),x=H.useMemo(()=>v!==void 0?{snapshotInfoUrl:v,snapshotUrl:S,popoutUrl:E}:void 0,[v,S,E]);return b.jsxs("div",{className:"snapshot-tab vbox",children:[b.jsxs(Gh,{children:[b.jsx(Dt,{className:"pick-locator",title:"Pick locator",icon:"target",toggled:l,onClick:()=>o(!l)}),b.jsx("div",{className:"hbox",style:{height:"100%"},role:"tablist",children:["action","before","after"].map(T=>b.jsx(p0,{id:T,title:jN(T),selected:d===T,onSelect:()=>p(T)},T))}),b.jsx("div",{style:{flex:"auto"}}),b.jsx(Dt,{icon:"link-external",title:"Open snapshot in a new tab",disabled:!(x!=null&&x.popoutUrl),onClick:()=>{const T=window.open((x==null?void 0:x.popoutUrl)||"","_blank");T==null||T.addEventListener("DOMContentLoaded",()=>{new pv(T,{isUnderTest:pS,sdkLanguage:i,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}).consoleApi.install()})}})]}),b.jsx(ON,{snapshotUrls:x,sdkLanguage:i,testIdAttributeName:s,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})]})},ON=({snapshotUrls:n,sdkLanguage:e,testIdAttributeName:i,isInspecting:s,setIsInspecting:l,highlightedElement:o,setHighlightedElement:u})=>{const f=H.useRef(null),d=H.useRef(null),[p,m]=H.useState({viewport:gS,url:""}),y=H.useRef({iteration:0,visibleIframe:0});return H.useEffect(()=>{(async()=>{const v=y.current.iteration+1,S=1-y.current.visibleIframe;y.current.iteration=v;const E=await BN(n==null?void 0:n.snapshotInfoUrl);if(y.current.iteration!==v)return;const x=[f,d][S].current;if(x){let T=()=>{};const C=new Promise(k=>T=k);try{x.addEventListener("load",T),x.addEventListener("error",T);const k=(n==null?void 0:n.snapshotUrl)||UN;x.contentWindow?x.contentWindow.location.replace(k):x.src=k,await C}catch{}finally{x.removeEventListener("load",T),x.removeEventListener("error",T)}}y.current.iteration===v&&(y.current.visibleIframe=S,m(E))})()},[n]),b.jsxs("div",{className:"vbox",tabIndex:0,onKeyDown:v=>{v.key==="Escape"&&s&&l(!1)},children:[b.jsx(Tb,{isInspecting:s,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:f.current,iteration:y.current.iteration}),b.jsx(Tb,{isInspecting:s,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:d.current,iteration:y.current.iteration}),b.jsx(RN,{snapshotInfo:p,children:b.jsxs("div",{className:"snapshot-switcher",children:[b.jsx("iframe",{ref:f,name:"snapshot",title:"DOM Snapshot",className:Ye(y.current.visibleIframe===0&&"snapshot-visible")}),b.jsx("iframe",{ref:d,name:"snapshot",title:"DOM Snapshot",className:Ye(y.current.visibleIframe===1&&"snapshot-visible")})]})})]})},RN=({snapshotInfo:n,children:e})=>{const[i,s]=cs(),l=40,o={width:n.viewport.width,height:n.viewport.height},u={width:Math.max(o.width,480),height:Math.max(o.height+l,320)},f=Math.min(i.width/u.width,i.height/u.height,1),d={x:(i.width-u.width)/2,y:(i.height-u.height)/2};return b.jsx("div",{ref:s,className:"snapshot-wrapper",children:b.jsxs("div",{className:"snapshot-container",style:{width:u.width+"px",height:u.height+"px",transform:`translate(${d.x}px, ${d.y}px) scale(${f})`},children:[b.jsx(SA,{url:n.url}),b.jsx("div",{className:"snapshot-browser-body",children:b.jsx("div",{style:{width:o.width+"px",height:o.height+"px"},children:e})})]})})};function jN(n){return n==="before"?"Before":n==="after"?"After":n==="action"?"Action":n}const Tb=({iframe:n,isInspecting:e,sdkLanguage:i,testIdAttributeName:s,highlightedElement:l,setHighlightedElement:o,iteration:u})=>(H.useEffect(()=>{const f=l.lastEdited==="ariaSnapshot"?l.ariaSnapshot:void 0,d=l.lastEdited==="locator"?l.locator:void 0,p=!!f||!!d||e,m=[],y=new URLSearchParams(window.location.search).get("isUnderTest")==="true";try{dS(m,p,i,s,y,"",n==null?void 0:n.contentWindow)}catch{}const v=f?Kh(hS,f):void 0,S=d?bA(i,d,s):void 0;for(const{recorder:E,frameSelector:x}of m){const T=S!=null&&S.startsWith(x)?S.substring(x.length).trim():void 0,C=(v==null?void 0:v.errors.length)===0?v.fragment:void 0;E.setUIState({mode:e?"inspecting":"none",actionSelector:T,ariaTemplate:C,language:i,testIdAttributeName:s,overlay:{offsetX:0}},{async elementPicked(k){o({locator:ls(i,x+k.selector),ariaSnapshot:k.ariaSnapshot,lastEdited:"none"})},highlightUpdated(){for(const k of m)k.recorder!==E&&k.recorder.clearHighlight()}})}},[n,e,l,o,i,s,u]),b.jsx(b.Fragment,{}));function dS(n,e,i,s,l,o,u){if(!u)return;const f=u;if(!f._recorder&&e){const d=new pv(u,{isUnderTest:l,sdkLanguage:i,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}),p=new hA(d);f._injectedScript=d,f._recorder={recorder:p,frameSelector:o},l&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(p)))}f._recorder&&n.push(f._recorder);for(let d=0;d<u.frames.length;++d){const p=u.frames[d],m=p.frameElement?f._injectedScript.generateSelectorSimple(p.frameElement,{omitInternalEngines:!0,testIdAttributeName:s})+" >> internal:control=enter-frame >> ":"";dS(n,e,i,s,l,o+m,p)}}const za=(n,e,i=!1)=>{if(!n)return;const s=n[e];if(s){if(!n.pageId){console.error("snapshot action must have a pageId");return}return{action:n,snapshotName:s,pageId:n.pageId,point:n.point,hasInputTarget:i}}};function LN(n){if(!n)return{};let e=za(n,"beforeSnapshot");if(!e){for(let l=Oy(n);l;l=Oy(l))if(l.endTime<=n.startTime&&l.afterSnapshot){e=za(l,"afterSnapshot");break}}let i=za(n,"afterSnapshot");if(!i){let l;for(let o=Ry(n);o&&o.startTime<=n.endTime;o=Ry(o))o.endTime>n.endTime||!o.afterSnapshot||l&&l.endTime>o.endTime||(l=o);l?i=za(l,"afterSnapshot"):i=e}const s=za(n,"inputSnapshot",!0)??i;return s&&(s.point=n.point),{action:s,before:e,after:i}}const pS=new URLSearchParams(window.location.search).has("isUnderTest");function DN(n,e,i){const s=new URLSearchParams;s.set("trace",n),s.set("name",e.snapshotName),pS&&s.set("isUnderTest","true"),e.point&&(s.set("pointX",String(e.point.x)),s.set("pointY",String(e.point.y)),e.hasInputTarget&&s.set("hasInputTarget","1")),i&&s.set("shouldPopulateCanvasFromScreenshot","1");const l=new URL(`snapshot/${e.pageId}?${s.toString()}`,window.location.href).toString(),o=new URL(`snapshotInfo/${e.pageId}?${s.toString()}`,window.location.href).toString(),u=new URLSearchParams;u.set("r",l),u.set("trace",n);const f=new URL(`snapshot.html?${u.toString()}`,window.location.href).toString();return{snapshotInfoUrl:o,snapshotUrl:l,popoutUrl:f}}async function BN(n){const e={url:"",viewport:gS,timestamp:void 0,wallTime:void 0};if(n){const s=await(await fetch(n)).json();s.error||(e.url=s.url,e.viewport=s.viewport,e.timestamp=s.timestamp,e.wallTime=s.wallTime)}return e}const gS={width:1280,height:720},UN='data:text/html,<body style="background: #ddd"></body>',mS={width:200,height:45},ur=2.5,zN=mS.height+ur*2,HN=({boundaries:n,previewPoint:e})=>{var m,y;const i=Ci(),[s,l]=cs(),o=H.useRef(null);let u=0;if(o.current&&e){const v=o.current.getBoundingClientRect();u=(e.clientY-v.top+o.current.scrollTop)/zN|0}const f=(y=(m=i==null?void 0:i.pages)==null?void 0:m[u])==null?void 0:y.screencastFrames;let d,p;if(e!==void 0&&f&&f.length){const v=n.minimum+(n.maximum-n.minimum)*e.x/s.width;d=f[Ab(f,v,yS)-1];const S={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};p=d?bS({width:d.width,height:d.height},S):void 0}return b.jsxs("div",{className:"film-strip",ref:l,children:[b.jsx("div",{className:"film-strip-lanes",ref:o,children:i==null?void 0:i.pages.map((v,S)=>v.screencastFrames.length?b.jsx(qN,{boundaries:n,page:v,width:s.width},S):null)}),i&&(e==null?void 0:e.x)!==void 0&&b.jsxs("div",{className:"film-strip-hover",style:{top:s.bottom+5,left:Math.min(e.x,s.width-(p?p.width:0)-10)},children:[e.action&&b.jsx("div",{className:"film-strip-hover-title",children:Ih(e.action,e)}),d&&p&&b.jsx("div",{style:{width:p.width,height:p.height},children:b.jsx("img",{src:i.createRelativeUrl(`sha1/${d.sha1}`),width:p.width,height:p.height})})]})]})},qN=({boundaries:n,page:e,width:i})=>{const s=Ci(),l={width:0,height:0},o=e.screencastFrames;for(const T of o)l.width=Math.max(l.width,T.width),l.height=Math.max(l.height,T.height);const u=bS(l,mS),f=o[0].timestamp,d=o[o.length-1].timestamp,p=n.maximum-n.minimum,m=(f-n.minimum)/p*i,y=(n.maximum-d)/p*i,S=(d-f)/p*i/(u.width+2*ur)|0,E=(d-f)/S,x=[];for(let T=0;f&&E&&T<S;++T){const C=f+E*T,k=Ab(o,C,yS)-1;x.push(b.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+o[k].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:ur,marginRight:ur}},T))}return x.push(b.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+o[o.length-1].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:ur,marginRight:ur}},x.length)),b.jsx("div",{className:"film-strip-lane",style:{marginLeft:m+"px",marginRight:y+"px"},children:x})};function yS(n,e){return n-e.timestamp}function bS(n,e){const i=Math.max(n.width/e.width,n.height/e.height);return{width:n.width/i|0,height:n.height/i|0}}const $N=({model:n,boundaries:e,consoleEntries:i,networkResources:s,onSelected:l,highlightedAction:o,highlightedResourceOrdinal:u,highlightedConsoleEntryOrdinal:f,selectedTime:d,setSelectedTime:p,sdkLanguage:m})=>{const[y,v]=cs(),[S,E]=H.useState(),[x,T]=H.useState(),[C]=rn("actionsFilter",[]),{offsets:k,curtainLeft:$,curtainRight:V}=H.useMemo(()=>{let F=d||e;if(S&&S.startX!==S.endX){const Q=xn(y.width,e,S.startX),se=xn(y.width,e,S.endX);F={minimum:Math.min(Q,se),maximum:Math.max(Q,se)}}const ee=nn(y.width,e,F.minimum),z=nn(y.width,e,e.maximum)-nn(y.width,e,F.maximum);return{offsets:IN(y.width,e),curtainLeft:ee,curtainRight:z}},[d,e,S,y]),R=H.useMemo(()=>n==null?void 0:n.filteredActions(C),[n,C]),G=H.useMemo(()=>{const F=[];for(const ee of R||[])F.push({action:ee,leftTime:ee.startTime,rightTime:ee.endTime||e.maximum,leftPosition:nn(y.width,e,ee.startTime),rightPosition:nn(y.width,e,ee.endTime||e.maximum),active:!1,error:!!ee.error});for(const ee of(n==null?void 0:n.resources)||[]){const ve=ee._monotonicTime,z=ee._monotonicTime+ee.time;F.push({resource:ee,leftTime:ve,rightTime:z,leftPosition:nn(y.width,e,ve),rightPosition:nn(y.width,e,z),active:!1,error:!1})}for(const ee of i||[])F.push({consoleMessage:ee,leftTime:ee.timestamp,rightTime:ee.timestamp,leftPosition:nn(y.width,e,ee.timestamp),rightPosition:nn(y.width,e,ee.timestamp),active:!1,error:ee.isError});return F},[n,R,i,e,y]);H.useMemo(()=>{for(const F of G)o?F.active=F.action===o:u!==void 0?F.active=F.resource===(s==null?void 0:s[u]):f!==void 0?F.active=F.consoleMessage===(i==null?void 0:i[f]):F.active=!1},[G,o,u,f,i,s]);const Z=H.useCallback(F=>{if(T(void 0),!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=d?nn(y.width,e,d.minimum):0,Q=d?nn(y.width,e,d.maximum):0;d&&Math.abs(ee-z)<10?E({startX:Q,endX:ee,type:"resize"}):d&&Math.abs(ee-Q)<10?E({startX:z,endX:ee,type:"resize"}):d&&ve>d.minimum&&ve<d.maximum&&F.clientY-v.current.getBoundingClientRect().top<20?E({startX:z,endX:Q,pivot:ee,type:"move"}):E({startX:ee,endX:ee,type:"resize"})},[e,y,v,d]),q=H.useCallback(F=>{if(!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=R==null?void 0:R.findLast(N=>N.startTime<=ve);if(!F.buttons){E(void 0);return}if(z&&l(z),!S)return;let Q=S;if(S.type==="resize")Q={...S,endX:ee};else{const N=ee-S.pivot;let P=S.startX+N,W=S.endX+N;P<0&&(P=0,W=P+(S.endX-S.startX)),W>y.width&&(W=y.width,P=W-(S.endX-S.startX)),Q={...S,startX:P,endX:W,pivot:ee}}E(Q);const se=xn(y.width,e,Q.startX),we=xn(y.width,e,Q.endX);se!==we&&p({minimum:Math.min(se,we),maximum:Math.max(se,we)})},[e,S,y,R,l,v,p]),j=H.useCallback(()=>{if(T(void 0),!!S){if(S.startX!==S.endX){const F=xn(y.width,e,S.startX),ee=xn(y.width,e,S.endX);p({minimum:Math.min(F,ee),maximum:Math.max(F,ee)})}else{const F=xn(y.width,e,S.startX),ee=R==null?void 0:R.findLast(ve=>ve.startTime<=F);ee&&l(ee),p(void 0)}E(void 0)}},[e,S,y,R,p,l]),ie=H.useCallback(F=>{if(!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=R==null?void 0:R.findLast(Q=>Q.startTime<=ve);T({x:ee,clientY:F.clientY,action:z,sdkLanguage:m})},[e,y,R,v,m]),le=H.useCallback(()=>{T(void 0)},[]),I=H.useCallback(()=>{p(void 0)},[p]);return b.jsxs("div",{className:"timeline-view-container",children:[!!S&&b.jsx(l0,{cursor:(S==null?void 0:S.type)==="resize"?"ew-resize":"grab",onPaneMouseUp:j,onPaneMouseMove:q,onPaneDoubleClick:I}),b.jsxs("div",{ref:v,className:"timeline-view",onMouseDown:Z,onMouseMove:ie,onMouseLeave:le,children:[b.jsx("div",{className:"timeline-grid",children:k.map((F,ee)=>b.jsx("div",{className:"timeline-divider",style:{left:F.position+"px"},children:b.jsx("div",{className:"timeline-time",children:_t(F.time-e.minimum)})},ee))}),b.jsx("div",{style:{height:8}}),b.jsx(HN,{boundaries:e,previewPoint:x}),b.jsx("div",{className:"timeline-bars",children:G.filter(F=>!F.action||F.action.class!=="Test").map((F,ee)=>b.jsx("div",{className:Ye("timeline-bar",F.action&&"action",F.resource&&"network",F.consoleMessage&&"console-message",F.active&&"active",F.error&&"error"),style:{left:F.leftPosition,width:Math.max(5,F.rightPosition-F.leftPosition),top:VN(F),bottom:0}},ee))}),b.jsx("div",{className:"timeline-marker",style:{display:x!==void 0?"block":"none",left:((x==null?void 0:x.x)||0)+"px"}}),d&&b.jsxs("div",{className:"timeline-window",children:[b.jsx("div",{className:"timeline-window-curtain left",style:{width:$}}),b.jsx("div",{className:"timeline-window-resizer",style:{left:-5}}),b.jsx("div",{className:"timeline-window-center",children:b.jsx("div",{className:"timeline-window-drag"})}),b.jsx("div",{className:"timeline-window-resizer",style:{left:5}}),b.jsx("div",{className:"timeline-window-curtain right",style:{width:V}})]})]})]})};function IN(n,e){let s=n/64;const l=e.maximum-e.minimum,o=n/l;let u=l/s;const f=Math.ceil(Math.log(u)/Math.LN10);u=Math.pow(10,f),u*o>=320&&(u=u/5),u*o>=128&&(u=u/2);const d=e.minimum;let p=e.maximum;p+=64/o,s=Math.ceil((p-d)/u),u||(s=0);const m=[];for(let y=0;y<s;++y){const v=d+u*y;m.push({position:nn(n,e,v),time:v})}return m}function nn(n,e,i){return(i-e.minimum)/(e.maximum-e.minimum)*n}function xn(n,e,i){return i/n*(e.maximum-e.minimum)+e.minimum}function VN(n){return n.resource?25:20}const GN=({model:n})=>{var i,s;if(!n)return b.jsx(b.Fragment,{});const e=n.wallTime!==void 0?new Date(n.wallTime).toLocaleString(void 0,{timeZoneName:"short"}):void 0;return b.jsxs("div",{style:{flex:"auto",display:"block",overflow:"hidden auto"},children:[b.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Time"}),!!e&&b.jsxs("div",{className:"call-line",children:["start time:",b.jsx("span",{className:"call-value datetime",title:e,children:e})]}),b.jsxs("div",{className:"call-line",children:["duration:",b.jsx("span",{className:"call-value number",title:_t(n.endTime-n.startTime),children:_t(n.endTime-n.startTime)})]}),b.jsx("div",{className:"call-section",children:"Browser"}),b.jsxs("div",{className:"call-line",children:["engine:",b.jsx("span",{className:"call-value string",title:n.browserName,children:n.browserName})]}),n.channel&&b.jsxs("div",{className:"call-line",children:["channel:",b.jsx("span",{className:"call-value string",title:n.channel,children:n.channel})]}),n.platform&&b.jsxs("div",{className:"call-line",children:["platform:",b.jsx("span",{className:"call-value string",title:n.platform,children:n.platform})]}),n.playwrightVersion&&b.jsxs("div",{className:"call-line",children:["playwright version:",b.jsx("span",{className:"call-value string",title:n.playwrightVersion,children:n.playwrightVersion})]}),n.options.userAgent&&b.jsxs("div",{className:"call-line",children:["user agent:",b.jsx("span",{className:"call-value datetime",title:n.options.userAgent,children:n.options.userAgent})]}),n.options.baseURL&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Config"}),b.jsxs("div",{className:"call-line",children:["baseURL:",b.jsx("a",{className:"call-value string",href:n.options.baseURL,title:n.options.baseURL,target:"_blank",rel:"noopener noreferrer",children:n.options.baseURL})]})]}),b.jsx("div",{className:"call-section",children:"Viewport"}),n.options.viewport&&b.jsxs("div",{className:"call-line",children:["width:",b.jsx("span",{className:"call-value number",title:String(!!((i=n.options.viewport)!=null&&i.width)),children:n.options.viewport.width})]}),n.options.viewport&&b.jsxs("div",{className:"call-line",children:["height:",b.jsx("span",{className:"call-value number",title:String(!!((s=n.options.viewport)!=null&&s.height)),children:n.options.viewport.height})]}),b.jsxs("div",{className:"call-line",children:["is mobile:",b.jsx("span",{className:"call-value boolean",title:String(!!n.options.isMobile),children:String(!!n.options.isMobile)})]}),n.options.deviceScaleFactor&&b.jsxs("div",{className:"call-line",children:["device scale:",b.jsx("span",{className:"call-value number",title:String(n.options.deviceScaleFactor),children:String(n.options.deviceScaleFactor)})]}),b.jsx("div",{className:"call-section",children:"Counts"}),b.jsxs("div",{className:"call-line",children:["pages:",b.jsx("span",{className:"call-value number",children:n.pages.length})]}),b.jsxs("div",{className:"call-line",children:["actions:",b.jsx("span",{className:"call-value number",children:n.actions.length})]}),b.jsxs("div",{className:"call-line",children:["events:",b.jsx("span",{className:"call-value number",children:n.events.length})]})]})},KN=({annotations:n})=>n.length?b.jsx("div",{className:"annotations-tab",children:n.map((e,i)=>b.jsxs("div",{className:"annotation-item",children:[b.jsx("span",{style:{fontWeight:"bold"},children:e.type}),e.description&&b.jsxs("span",{children:[": ",u0(e.description)]})]},`annotation-${i}`))}):b.jsx(us,{text:"No annotations"}),YN=({sdkLanguage:n,isInspecting:e,setIsInspecting:i,highlightedElement:s,setHighlightedElement:l})=>{const[o,u]=H.useState(),f=H.useCallback(d=>{const{errors:p}=Kh(hS,d,{prettyErrors:!1}),m=p.map(y=>({message:y.message,line:y.range[1].line,column:y.range[1].col,type:"subtle-error"}));u(m),l({...s,ariaSnapshot:d,lastEdited:"ariaSnapshot"}),i(!1)},[s,l,i]);return b.jsxs("div",{style:{flex:"auto",backgroundColor:"var(--vscode-sideBar-background)",padding:"0 10px 10px 10px",overflow:"auto"},children:[b.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[b.jsx("div",{children:"Locator"}),b.jsx(Dt,{style:{margin:"0 4px"},title:"Pick locator",icon:"target",toggled:e,onClick:()=>i(!e)}),b.jsx("div",{style:{flex:"auto"}}),b.jsx(Dt,{icon:"files",title:"Copy locator",onClick:()=>{wy(s.locator||"")}})]}),b.jsx("div",{style:{height:50},children:b.jsx(Sr,{text:s.locator||"",highlighter:n,isFocused:!0,wrapLines:!0,onChange:d=>{l({...s,locator:d,lastEdited:"locator"}),i(!1)}})}),b.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[b.jsx("div",{style:{flex:"auto"},children:"Aria snapshot"}),b.jsx(Dt,{icon:"files",title:"Copy snapshot",onClick:()=>{wy(s.ariaSnapshot||"")}})]}),b.jsx("div",{style:{height:150},children:b.jsx(Sr,{text:s.ariaSnapshot||"",highlighter:"yaml",wrapLines:!1,highlight:o,onChange:f})})]})},XN=({className:n,style:e,open:i,isModal:s,minWidth:l,verticalOffset:o,requestClose:u,anchor:f,dataTestId:d,children:p})=>{const m=H.useRef(null),[y,v]=H.useState(0),[S]=mh(m),[E,x]=mh(f),T=PN(S,E,o);return H.useEffect(()=>{const C=$=>{!m.current||!($.target instanceof Node)||m.current.contains($.target)||u==null||u()},k=$=>{$.key==="Escape"&&(u==null||u())};return i?(document.addEventListener("mousedown",C),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",k)}):()=>{}},[i,u]),H.useLayoutEffect(()=>x(),[i,x]),H.useEffect(()=>{const C=()=>v(k=>k+1);return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[]),H.useLayoutEffect(()=>{m.current&&(i?s?m.current.showModal():m.current.show():m.current.close())},[i,s]),b.jsx("dialog",{ref:m,style:{position:"fixed",margin:0,zIndex:110,top:T.top,left:T.left,minWidth:l||0,...e},className:n,"data-testid":d,children:p})};function PN(n,e,i=4,s=4){let l=Math.max(s,e.left);l+n.width>window.innerWidth-s&&(l=window.innerWidth-n.width-s);let o=Math.max(0,e.bottom)+i;return o+n.height>window.innerHeight-i&&(Math.max(0,e.top)>n.height+i?o=Math.max(0,e.top)-n.height-i:o=window.innerHeight-i-n.height),{left:l,top:o}}const FN=({title:n,icon:e,buttonChildren:i,anchorRef:s,dialogDataTestId:l,children:o})=>{const u=H.useRef(null),f=s??u,[d,p]=H.useState(!1);return b.jsxs(b.Fragment,{children:[b.jsx(Dt,{ref:u,icon:e,title:n,onClick:()=>p(m=>!m),children:i}),b.jsx(XN,{style:{backgroundColor:"var(--vscode-sideBar-background)",padding:"4px 8px"},open:d,verticalOffset:8,requestClose:()=>p(!1),anchor:f,dataTestId:l,children:o})]})},vS=({settings:n})=>b.jsx("div",{className:"vbox settings-view",children:n.map(e=>{const i=`setting-${e.name.replaceAll(/\s+/g,"-")}`;return b.jsx("div",{className:`setting setting-${e.type}`,title:e.title,children:QN(e,i)},e.name)})}),QN=(n,e)=>{switch(n.type){case"check":return b.jsxs(b.Fragment,{children:[b.jsx("input",{type:"checkbox",id:e,checked:n.value,onChange:()=>n.set(!n.value)}),b.jsxs("label",{htmlFor:e,children:[n.name,!!n.count&&b.jsx("span",{className:"setting-counter",children:n.count})]})]});case"select":return b.jsxs(b.Fragment,{children:[b.jsxs("label",{htmlFor:e,children:[n.name,":",!!n.count&&b.jsx("span",{className:"setting-counter",children:n.count})]}),b.jsx("select",{id:e,value:n.value,onChange:i=>n.set(i.target.value),children:n.options.map(i=>b.jsx("option",{value:i.value,children:i.label},i.value))})]});default:return null}},l2=n=>{var i;const e=((i=n.model)==null?void 0:i.traceUrl)??"default";return b.jsx(f0.Provider,{value:n.model,children:b.jsx(ZN,{partition:e,...n})})},ZN=n=>{var dl;const{partition:e,model:i,showSourcesFirst:s,rootDir:l,fallbackLocation:o,isLive:u,hideTimeline:f,status:d,annotations:p,inert:m,onOpenExternally:y,revealSource:v,testRunMetadata:S}=n,[E,x]=rn("navigatorTab","actions"),[T,C]=rn("propertiesTab",s?"source":"call"),[k,$]=rn("propertiesSidebarLocation","bottom"),[V]=rn("actionsFilter",[]),[R,G]=xi("selectedCallId"),[Z,q]=xi("selectedTime"),[j,ie]=xi("highlightedCallId"),[le,I]=xi("revealedErrorKey"),[F,ee]=xi("highlightedConsoleMessageOrdinal"),[ve,z]=xi("revealedAttachmentCallId"),[Q,se]=xi("highlightedResourceOrdinal"),[we,N]=xi("treeState",{expandedItems:new Map});H1(e);const[P,W]=H.useState({lastEdited:"none"}),[J,ae]=H.useState(!1),be=H.useCallback(ce=>{G(ce==null?void 0:ce.callId),I(void 0)},[G,I]),te=H.useMemo(()=>i==null?void 0:i.filteredActions(V),[i,V]),yt=((i==null?void 0:i.actions.length)??0)-((te==null?void 0:te.length)??0),Ne=H.useMemo(()=>te==null?void 0:te.find(ce=>ce.callId===j),[te,j]),Gt=H.useCallback(ce=>{ie(ce==null?void 0:ce.callId)},[ie]),jr=H.useMemo(()=>(i==null?void 0:i.sources)||new Map,[i]);H.useEffect(()=>{q(void 0),I(void 0)},[i,q,I]);const En=H.useMemo(()=>{if(R){const Jn=te==null?void 0:te.find(un=>un.callId===R);if(Jn)return Jn}const ce=i==null?void 0:i.failedAction();if(ce)return ce;if(te!=null&&te.length){let Jn=te.length-1;for(let un=0;un<te.length;++un)if(te[un].title==="After Hooks"&&un){Jn=un-1;break}return te[Jn]}},[i,te,R]),cn=H.useMemo(()=>Ne||En,[En,Ne]),ds=H.useCallback(ce=>{be(ce),Gt(void 0)},[be,Gt]),bt=H.useCallback(ce=>{C(ce),ce!=="inspector"&&ae(!1)},[C]),fl=H.useCallback(ce=>{!J&&ce&&bt("inspector"),ae(ce)},[ae,bt,J]),Mc=H.useCallback(ce=>{W(ce),bt("inspector")},[bt]),Kt=H.useCallback(ce=>{bt("attachments"),z({callId:ce})},[bt,z]);H.useEffect(()=>{v&&bt("source")},[v,bt]);const Lr=k_(i,Z),ps=eT(i,Z),Mi=T_(i),gs=H.useMemo(()=>{var ce;return le!==void 0?(ce=Mi.errors.get(le))==null?void 0:ce.stack:cn==null?void 0:cn.stack},[cn,le,Mi]),Qn=(i==null?void 0:i.sdkLanguage)||"javascript",hl={id:"inspector",title:"Locator",render:()=>b.jsx(YN,{sdkLanguage:Qn,isInspecting:J,setIsInspecting:fl,highlightedElement:P,setHighlightedElement:W})},Oc={id:"call",title:"Call",render:()=>b.jsx(Yx,{action:cn,startTimeOffset:(i==null?void 0:i.startTime)??0,sdkLanguage:Qn})},Rc={id:"log",title:"Log",render:()=>b.jsx(Fx,{action:cn,isLive:u})},Oi={id:"errors",title:"Errors",errorCount:Mi.errors.size,render:()=>b.jsx(A_,{errorsModel:Mi,testRunMetadata:S,sdkLanguage:Qn,revealInSource:ce=>{ce.action?be(ce.action):I(ce.message),bt("source")},wallTime:(i==null?void 0:i.wallTime)??0})};let ut;!En&&o&&(ut=(dl=o.source)==null?void 0:dl.errors.length);const Yt={id:"source",title:"Source",errorCount:ut,render:()=>b.jsx(w_,{stack:gs,sources:jr,rootDir:l,stackFrameLocation:k==="bottom"?"right":"bottom",fallbackLocation:o,onOpenExternally:y})},vt={id:"console",title:"Console",count:Lr.entries.length,render:()=>b.jsx(M_,{consoleModel:Lr,boundaries:Zn,selectedTime:Z,onAccepted:ce=>q({minimum:ce.timestamp,maximum:ce.timestamp}),onEntryHovered:ee})},jc={id:"network",title:"Network",count:ps.resources.length,render:()=>b.jsx(tT,{boundaries:Zn,networkModel:ps,onResourceHovered:se,sdkLanguage:(i==null?void 0:i.sdkLanguage)??"javascript"})},Lc={id:"attachments",title:"Attachments",count:i==null?void 0:i.visibleAttachments.length,render:()=>b.jsx(d_,{revealedAttachmentCallId:ve})},Ri=[hl,Oc,Rc,Oi,vt,jc,Yt,Lc];if(p!==void 0){const ce={id:"annotations",title:"Annotations",count:p.length,render:()=>b.jsx(KN,{annotations:p})};Ri.push(ce)}if(s){const ce=Ri.indexOf(Yt);Ri.splice(ce,1),Ri.splice(1,0,Yt)}const{boundaries:Zn}=H.useMemo(()=>{const ce={minimum:(i==null?void 0:i.startTime)||0,maximum:(i==null?void 0:i.endTime)||3e4};return ce.minimum>ce.maximum&&(ce.minimum=0,ce.maximum=3e4),ce.maximum+=(ce.maximum-ce.minimum)/20,{boundaries:ce}},[i]);let An=0;!u&&i&&i.endTime>=0?An=i.endTime-i.startTime:i&&i.wallTime&&(An=Date.now()-i.wallTime);const Nn={id:"actions",title:"Actions",component:b.jsxs("div",{className:"vbox",children:[d&&b.jsxs("div",{className:"workbench-run-status",children:[b.jsx("span",{className:Ye("codicon",r0(d))}),b.jsx("div",{children:Vx(d)}),b.jsx("div",{className:"spacer"}),b.jsx("div",{className:"workbench-run-duration",children:An?_t(An):""})]}),b.jsx(Kx,{sdkLanguage:Qn,actions:te||[],selectedAction:i?En:void 0,selectedTime:Z,setSelectedTime:q,treeState:we,setTreeState:N,onSelected:ds,onHighlighted:Gt,revealActionAttachment:Kt,revealConsole:()=>bt("console"),isLive:u})]})},ms={id:"metadata",title:"Metadata",component:b.jsx(GN,{model:i})},ji=E==="actions"&&b.jsx(JN,{counters:i==null?void 0:i.actionCounters,hiddenActionsCount:yt});return b.jsxs("div",{className:"vbox workbench",...m?{inert:!0}:{},children:[!f&&b.jsx($N,{model:i,consoleEntries:Lr.entries,networkResources:ps.resources,boundaries:Zn,highlightedAction:Ne,highlightedResourceOrdinal:Q,highlightedConsoleEntryOrdinal:F,onSelected:ds,sdkLanguage:Qn,selectedTime:Z,setSelectedTime:q}),b.jsx(Qo,{sidebarSize:250,orientation:k==="bottom"?"vertical":"horizontal",settingName:"propertiesSidebar",main:b.jsx(Qo,{sidebarSize:250,orientation:"horizontal",sidebarIsFirst:!0,settingName:"actionListSidebar",main:b.jsx(MN,{action:cn,model:i,sdkLanguage:Qn,testIdAttributeName:(i==null?void 0:i.testIdAttributeName)||"data-testid",isInspecting:J,setIsInspecting:fl,highlightedElement:P,setHighlightedElement:Mc}),sidebar:b.jsx(xh,{tabs:[Nn,ms],rightToolbar:[ji],selectedTab:E,setSelectedTab:x})}),sidebar:b.jsx(xh,{tabs:Ri,selectedTab:T,setSelectedTab:bt,rightToolbar:[k==="bottom"?b.jsx(Dt,{title:"Dock to right",icon:"layout-sidebar-right-off",onClick:()=>{$("right")}}):b.jsx(Dt,{title:"Dock to bottom",icon:"layout-panel-off",onClick:()=>{$("bottom")}})],mode:k==="bottom"?"default":"select"})})]})},JN=({counters:n,hiddenActionsCount:e})=>{const[i,s]=rn("actionsFilter",[]),l=H.useRef(null),o=b.jsxs(b.Fragment,{children:[e>0&&b.jsxs("span",{className:"workbench-actions-hidden-count",title:e+" actions hidden by filters",children:[e," hidden"]}),b.jsx("span",{ref:l,className:"codicon codicon-filter"})]});return b.jsx(FN,{title:"Filter actions",dialogDataTestId:"actions-filter-dialog",buttonChildren:o,anchorRef:l,children:b.jsx(vS,{settings:[{type:"check",value:i.includes("getter"),set:u=>s(u?[...i,"getter"]:i.filter(f=>f!=="getter")),name:"Getters",count:n==null?void 0:n.get("getter")},{type:"check",value:i.includes("route"),set:u=>s(u?[...i,"route"]:i.filter(f=>f!=="route")),name:"Network routes",count:n==null?void 0:n.get("route")},{type:"check",value:i.includes("configuration"),set:u=>s(u?[...i,"configuration"]:i.filter(f=>f!=="configuration")),name:"Configuration",count:n==null?void 0:n.get("configuration")}]})})};var Eb;(n=>{function e(i){for(const s of i.splice(0))s.dispose()}n.disposeAll=e})(Eb||(Eb={}));class lr{constructor(){this._listeners=new Set,this.event=(e,i)=>{this._listeners.add(e);let s=!1;const l=this,o={dispose(){s||(s=!0,l._listeners.delete(e))}};return i&&i.push(o),o}}fire(e){const i=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const s of this._listeners)this._deliveryQueue.push({listener:s,event:e});if(i){for(let s=0;s<this._deliveryQueue.length;s++){const{listener:l,event:o}=this._deliveryQueue[s];l.call(null,o)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}class WN extends Error{constructor(){super("Test server connection closed")}}class o2{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener("message",i=>e(i.data.toString()))}onopen(e){this._ws.addEventListener("open",e)}onerror(e){this._ws.addEventListener("error",e)}onclose(e){this._ws.addEventListener("close",e)}send(e){this._ws.send(e)}close(){this._ws.close()}}class c2{constructor(e){this._onCloseEmitter=new lr,this._onReportEmitter=new lr,this._onStdioEmitter=new lr,this._onTestFilesChangedEmitter=new lr,this._onLoadTraceRequestedEmitter=new lr,this._onTestPausedEmitter=new lr,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(s=>{const l=JSON.parse(s),{id:o,result:u,error:f,method:d,params:p}=l;if(o){const m=this._callbacks.get(o);if(!m)return;this._callbacks.delete(o),f?m.reject(new Error(f)):m.resolve(u)}else this._dispatchEvent(d,p)});const i=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((s,l)=>{this._transport.onopen(s),this._transport.onerror(l)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(i);for(const s of this._callbacks.values())s.reject(new WN);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,i){const s=globalThis.__logForTest;s==null||s({method:e,params:i}),await this._connectedPromise;const l=++this._lastId,o={id:l,method:e,params:i};return this._transport.send(JSON.stringify(o)),new Promise((u,f)=>{this._callbacks.set(l,{resolve:u,reject:f})})}_sendMessageNoReply(e,i){this._sendMessage(e,i).catch(()=>{})}_dispatchEvent(e,i){e==="report"?this._onReportEmitter.fire(i):e==="stdio"?this._onStdioEmitter.fire(i):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(i):e==="loadTraceRequested"?this._onLoadTraceRequestedEmitter.fire(i):e==="testPaused"&&this._onTestPausedEmitter.fire(i)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._transport.close()}catch{}}}const u2=({location:n})=>{const[e,i]=rn("shouldPopulateCanvasFromScreenshot",!1),[s,l]=V1(),[o,u]=rn("mergeFiles",!1);return b.jsx(vS,{settings:[{type:"check",value:s,set:l,name:"Dark mode"},...n==="ui-mode"?[{type:"check",value:o,set:u,name:"Merge files"}]:[],{type:"check",value:e,set:i,name:"Display canvas content",title:"Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate."}]})};export{FN as D,c0 as E,r2 as M,gt as R,Qo as S,c2 as T,o2 as W,s_ as _,u2 as a,l2 as b,XN as c,t2 as d,s2 as e,bh as f,n2 as g,i2 as h,Ye as i,b as j,$x as k,Gh as l,_t as m,Dt as n,rn as o,vS as p,L1 as q,H as r,es as s,r0 as t,cs as u};
266
+ `,i)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){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 i=Lo(e),s=ar(i);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 i=Lo(e),s=ar(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,i){return this.type!=="comment"||this.indent<=i?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){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:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function uS(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new oS||null,prettyErrors:e}}function NN(n,e={}){const{lineCounter:i,prettyErrors:s}=uS(e),l=new kd(i==null?void 0:i.addNewLine),o=new Cd(e),u=Array.from(o.compose(l.parse(n)));if(s&&i)for(const f of u)f.errors.forEach(lc(n,i)),f.warnings.forEach(lc(n,i));return u.length>0?u:Object.assign([],{empty:!0},o.streamInfo())}function fS(n,e={}){const{lineCounter:i,prettyErrors:s}=uS(e),l=new kd(i==null?void 0:i.addNewLine),o=new Cd(e);let u=null;for(const f of o.compose(l.parse(n),!0,n.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new rs(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(u.errors.forEach(lc(n,i)),u.warnings.forEach(lc(n,i))),u}function CN(n,e,i){let s;typeof e=="function"?s=e:i===void 0&&e&&typeof e=="object"&&(i=e);const l=fS(n,i);if(!l)return null;if(l.warnings.forEach(o=>Ov(l.options.logLevel,o)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:s},i))}function kN(n,e,i){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:i===void 0&&e&&(i=e),typeof i=="string"&&(i=i.length),typeof i=="number"){const l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(n===void 0){const{keepUndefined:l}=i??e??{};if(!l)return}return hs(n)&&!s?n.toString(i):new Rr(n,s,i).toString(i)}const hS=Object.freeze(Object.defineProperty({__proto__:null,Alias:yc,CST:TN,Composer:Cd,Document:Rr,Lexer:lS,LineCounter:oS,Pair:mt,Parser:kd,Scalar:he,Schema:Ac,YAMLError:Ad,YAMLMap:Vt,YAMLParseError:rs,YAMLSeq:Ni,YAMLWarning:Qv,isAlias:fs,isCollection:He,isDocument:hs,isMap:Cr,isNode:qe,isPair:Be,isScalar:Re,isSeq:kr,parse:CN,parseAllDocuments:NN,parseDocument:fS,stringify:kN,visit:Ai,visitAsync:mc},Symbol.toStringTag,{value:"Module"})),MN=({action:n,model:e,sdkLanguage:i,testIdAttributeName:s,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})=>{const[d,p]=H.useState("action"),[m]=rn("shouldPopulateCanvasFromScreenshot",!1),y=H.useMemo(()=>LN(n),[n]),{snapshotInfoUrl:v,snapshotUrl:S,popoutUrl:E}=H.useMemo(()=>{const T=y[d];return e&&T?DN(e.traceUri,T,m):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[y,d,m,e]),x=H.useMemo(()=>v!==void 0?{snapshotInfoUrl:v,snapshotUrl:S,popoutUrl:E}:void 0,[v,S,E]);return b.jsxs("div",{className:"snapshot-tab vbox",children:[b.jsxs(Gh,{children:[b.jsx(Dt,{className:"pick-locator",title:"Pick locator",icon:"target",toggled:l,onClick:()=>o(!l)}),b.jsx("div",{className:"hbox",style:{height:"100%"},role:"tablist",children:["action","before","after"].map(T=>b.jsx(p0,{id:T,title:jN(T),selected:d===T,onSelect:()=>p(T)},T))}),b.jsx("div",{style:{flex:"auto"}}),b.jsx(Dt,{icon:"link-external",title:"Open snapshot in a new tab",disabled:!(x!=null&&x.popoutUrl),onClick:()=>{const T=window.open((x==null?void 0:x.popoutUrl)||"","_blank");T==null||T.addEventListener("DOMContentLoaded",()=>{new pv(T,{isUnderTest:pS,sdkLanguage:i,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}).consoleApi.install()})}})]}),b.jsx(ON,{snapshotUrls:x,sdkLanguage:i,testIdAttributeName:s,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})]})},ON=({snapshotUrls:n,sdkLanguage:e,testIdAttributeName:i,isInspecting:s,setIsInspecting:l,highlightedElement:o,setHighlightedElement:u})=>{const f=H.useRef(null),d=H.useRef(null),[p,m]=H.useState({viewport:gS,url:""}),y=H.useRef({iteration:0,visibleIframe:0});return H.useEffect(()=>{(async()=>{const v=y.current.iteration+1,S=1-y.current.visibleIframe;y.current.iteration=v;const E=await BN(n==null?void 0:n.snapshotInfoUrl);if(y.current.iteration!==v)return;const x=[f,d][S].current;if(x){let T=()=>{};const C=new Promise(k=>T=k);try{x.addEventListener("load",T),x.addEventListener("error",T);const k=(n==null?void 0:n.snapshotUrl)||UN;x.contentWindow?x.contentWindow.location.replace(k):x.src=k,await C}catch{}finally{x.removeEventListener("load",T),x.removeEventListener("error",T)}}y.current.iteration===v&&(y.current.visibleIframe=S,m(E))})()},[n]),b.jsxs("div",{className:"vbox",tabIndex:0,onKeyDown:v=>{v.key==="Escape"&&s&&l(!1)},children:[b.jsx(Tb,{isInspecting:s,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:f.current,iteration:y.current.iteration}),b.jsx(Tb,{isInspecting:s,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:d.current,iteration:y.current.iteration}),b.jsx(RN,{snapshotInfo:p,children:b.jsxs("div",{className:"snapshot-switcher",children:[b.jsx("iframe",{ref:f,name:"snapshot",title:"DOM Snapshot",className:Ye(y.current.visibleIframe===0&&"snapshot-visible")}),b.jsx("iframe",{ref:d,name:"snapshot",title:"DOM Snapshot",className:Ye(y.current.visibleIframe===1&&"snapshot-visible")})]})})]})},RN=({snapshotInfo:n,children:e})=>{const[i,s]=cs(),l=40,o={width:n.viewport.width,height:n.viewport.height},u={width:Math.max(o.width,480),height:Math.max(o.height+l,320)},f=Math.min(i.width/u.width,i.height/u.height,1),d={x:(i.width-u.width)/2,y:(i.height-u.height)/2};return b.jsx("div",{ref:s,className:"snapshot-wrapper",children:b.jsxs("div",{className:"snapshot-container",style:{width:u.width+"px",height:u.height+"px",transform:`translate(${d.x}px, ${d.y}px) scale(${f})`},children:[b.jsx(SA,{url:n.url}),b.jsx("div",{className:"snapshot-browser-body",children:b.jsx("div",{style:{width:o.width+"px",height:o.height+"px"},children:e})})]})})};function jN(n){return n==="before"?"Before":n==="after"?"After":n==="action"?"Action":n}const Tb=({iframe:n,isInspecting:e,sdkLanguage:i,testIdAttributeName:s,highlightedElement:l,setHighlightedElement:o,iteration:u})=>(H.useEffect(()=>{const f=l.lastEdited==="ariaSnapshot"?l.ariaSnapshot:void 0,d=l.lastEdited==="locator"?l.locator:void 0,p=!!f||!!d||e,m=[],y=new URLSearchParams(window.location.search).get("isUnderTest")==="true";try{dS(m,p,i,s,y,"",n==null?void 0:n.contentWindow)}catch{}const v=f?Kh(hS,f):void 0,S=d?bA(i,d,s):void 0;for(const{recorder:E,frameSelector:x}of m){const T=S!=null&&S.startsWith(x)?S.substring(x.length).trim():void 0,C=(v==null?void 0:v.errors.length)===0?v.fragment:void 0;E.setUIState({mode:e?"inspecting":"none",actionSelector:T,ariaTemplate:C,language:i,testIdAttributeName:s,overlay:{offsetX:0}},{async elementPicked(k){o({locator:ls(i,x+k.selector),ariaSnapshot:k.ariaSnapshot,lastEdited:"none"})},highlightUpdated(){for(const k of m)k.recorder!==E&&k.recorder.clearHighlight()}})}},[n,e,l,o,i,s,u]),b.jsx(b.Fragment,{}));function dS(n,e,i,s,l,o,u){if(!u)return;const f=u;if(!f._recorder&&e){const d=new pv(u,{isUnderTest:l,sdkLanguage:i,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}),p=new hA(d);f._injectedScript=d,f._recorder={recorder:p,frameSelector:o},l&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(p)))}f._recorder&&n.push(f._recorder);for(let d=0;d<u.frames.length;++d){const p=u.frames[d],m=p.frameElement?f._injectedScript.generateSelectorSimple(p.frameElement,{omitInternalEngines:!0,testIdAttributeName:s})+" >> internal:control=enter-frame >> ":"";dS(n,e,i,s,l,o+m,p)}}const za=(n,e,i=!1)=>{if(!n)return;const s=n[e];if(s){if(!n.pageId){console.error("snapshot action must have a pageId");return}return{action:n,snapshotName:s,pageId:n.pageId,point:n.point,hasInputTarget:i}}};function LN(n){if(!n)return{};let e=za(n,"beforeSnapshot");if(!e){for(let l=Oy(n);l;l=Oy(l))if(l.endTime<=n.startTime&&l.afterSnapshot){e=za(l,"afterSnapshot");break}}let i=za(n,"afterSnapshot");if(!i){let l;for(let o=Ry(n);o&&o.startTime<=n.endTime;o=Ry(o))o.endTime>n.endTime||!o.afterSnapshot||l&&l.endTime>o.endTime||(l=o);l?i=za(l,"afterSnapshot"):i=e}const s=za(n,"inputSnapshot",!0)??i;return s&&(s.point=n.point),{action:s,before:e,after:i}}const pS=new URLSearchParams(window.location.search).has("isUnderTest");function DN(n,e,i){const s=new URLSearchParams;s.set("trace",n),s.set("name",e.snapshotName),pS&&s.set("isUnderTest","true"),e.point&&(s.set("pointX",String(e.point.x)),s.set("pointY",String(e.point.y)),e.hasInputTarget&&s.set("hasInputTarget","1")),i&&s.set("shouldPopulateCanvasFromScreenshot","1");const l=new URL(`snapshot/${e.pageId}?${s.toString()}`,window.location.href).toString(),o=new URL(`snapshotInfo/${e.pageId}?${s.toString()}`,window.location.href).toString(),u=new URLSearchParams;u.set("r",l),u.set("trace",n);const f=new URL(`snapshot.html?${u.toString()}`,window.location.href).toString();return{snapshotInfoUrl:o,snapshotUrl:l,popoutUrl:f}}async function BN(n){const e={url:"",viewport:gS,timestamp:void 0,wallTime:void 0};if(n){const s=await(await fetch(n)).json();s.error||(e.url=s.url,e.viewport=s.viewport,e.timestamp=s.timestamp,e.wallTime=s.wallTime)}return e}const gS={width:1280,height:720},UN='data:text/html,<body style="background: #ddd"></body>',mS={width:200,height:45},ur=2.5,zN=mS.height+ur*2,HN=({boundaries:n,previewPoint:e})=>{var m,y;const i=Ci(),[s,l]=cs(),o=H.useRef(null);let u=0;if(o.current&&e){const v=o.current.getBoundingClientRect();u=(e.clientY-v.top+o.current.scrollTop)/zN|0}const f=(y=(m=i==null?void 0:i.pages)==null?void 0:m[u])==null?void 0:y.screencastFrames;let d,p;if(e!==void 0&&f&&f.length){const v=n.minimum+(n.maximum-n.minimum)*e.x/s.width;d=f[Ab(f,v,yS)-1];const S={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};p=d?bS({width:d.width,height:d.height},S):void 0}return b.jsxs("div",{className:"film-strip",ref:l,children:[b.jsx("div",{className:"film-strip-lanes",ref:o,children:i==null?void 0:i.pages.map((v,S)=>v.screencastFrames.length?b.jsx(qN,{boundaries:n,page:v,width:s.width},S):null)}),i&&(e==null?void 0:e.x)!==void 0&&b.jsxs("div",{className:"film-strip-hover",style:{top:s.bottom+5,left:Math.min(e.x,s.width-(p?p.width:0)-10)},children:[e.action&&b.jsx("div",{className:"film-strip-hover-title",children:Ih(e.action,e)}),d&&p&&b.jsx("div",{style:{width:p.width,height:p.height},children:b.jsx("img",{src:i.createRelativeUrl(`sha1/${d.sha1}`),width:p.width,height:p.height})})]})]})},qN=({boundaries:n,page:e,width:i})=>{const s=Ci(),l={width:0,height:0},o=e.screencastFrames;for(const T of o)l.width=Math.max(l.width,T.width),l.height=Math.max(l.height,T.height);const u=bS(l,mS),f=o[0].timestamp,d=o[o.length-1].timestamp,p=n.maximum-n.minimum,m=(f-n.minimum)/p*i,y=(n.maximum-d)/p*i,S=(d-f)/p*i/(u.width+2*ur)|0,E=(d-f)/S,x=[];for(let T=0;f&&E&&T<S;++T){const C=f+E*T,k=Ab(o,C,yS)-1;x.push(b.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+o[k].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:ur,marginRight:ur}},T))}return x.push(b.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+o[o.length-1].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:ur,marginRight:ur}},x.length)),b.jsx("div",{className:"film-strip-lane",style:{marginLeft:m+"px",marginRight:y+"px"},children:x})};function yS(n,e){return n-e.timestamp}function bS(n,e){const i=Math.max(n.width/e.width,n.height/e.height);return{width:n.width/i|0,height:n.height/i|0}}const $N=({model:n,boundaries:e,consoleEntries:i,networkResources:s,onSelected:l,highlightedAction:o,highlightedResourceOrdinal:u,highlightedConsoleEntryOrdinal:f,selectedTime:d,setSelectedTime:p,sdkLanguage:m})=>{const[y,v]=cs(),[S,E]=H.useState(),[x,T]=H.useState(),[C]=rn("actionsFilter",[]),{offsets:k,curtainLeft:$,curtainRight:V}=H.useMemo(()=>{let F=d||e;if(S&&S.startX!==S.endX){const Q=xn(y.width,e,S.startX),se=xn(y.width,e,S.endX);F={minimum:Math.min(Q,se),maximum:Math.max(Q,se)}}const ee=nn(y.width,e,F.minimum),z=nn(y.width,e,e.maximum)-nn(y.width,e,F.maximum);return{offsets:IN(y.width,e),curtainLeft:ee,curtainRight:z}},[d,e,S,y]),R=H.useMemo(()=>n==null?void 0:n.filteredActions(C),[n,C]),G=H.useMemo(()=>{const F=[];for(const ee of R||[])F.push({action:ee,leftTime:ee.startTime,rightTime:ee.endTime||e.maximum,leftPosition:nn(y.width,e,ee.startTime),rightPosition:nn(y.width,e,ee.endTime||e.maximum),active:!1,error:!!ee.error});for(const ee of(n==null?void 0:n.resources)||[]){const ve=ee._monotonicTime,z=ee._monotonicTime+ee.time;F.push({resource:ee,leftTime:ve,rightTime:z,leftPosition:nn(y.width,e,ve),rightPosition:nn(y.width,e,z),active:!1,error:!1})}for(const ee of i||[])F.push({consoleMessage:ee,leftTime:ee.timestamp,rightTime:ee.timestamp,leftPosition:nn(y.width,e,ee.timestamp),rightPosition:nn(y.width,e,ee.timestamp),active:!1,error:ee.isError});return F},[n,R,i,e,y]);H.useMemo(()=>{for(const F of G)o?F.active=F.action===o:u!==void 0?F.active=F.resource===(s==null?void 0:s[u]):f!==void 0?F.active=F.consoleMessage===(i==null?void 0:i[f]):F.active=!1},[G,o,u,f,i,s]);const Z=H.useCallback(F=>{if(T(void 0),!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=d?nn(y.width,e,d.minimum):0,Q=d?nn(y.width,e,d.maximum):0;d&&Math.abs(ee-z)<10?E({startX:Q,endX:ee,type:"resize"}):d&&Math.abs(ee-Q)<10?E({startX:z,endX:ee,type:"resize"}):d&&ve>d.minimum&&ve<d.maximum&&F.clientY-v.current.getBoundingClientRect().top<20?E({startX:z,endX:Q,pivot:ee,type:"move"}):E({startX:ee,endX:ee,type:"resize"})},[e,y,v,d]),q=H.useCallback(F=>{if(!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=R==null?void 0:R.findLast(N=>N.startTime<=ve);if(!F.buttons){E(void 0);return}if(z&&l(z),!S)return;let Q=S;if(S.type==="resize")Q={...S,endX:ee};else{const N=ee-S.pivot;let P=S.startX+N,W=S.endX+N;P<0&&(P=0,W=P+(S.endX-S.startX)),W>y.width&&(W=y.width,P=W-(S.endX-S.startX)),Q={...S,startX:P,endX:W,pivot:ee}}E(Q);const se=xn(y.width,e,Q.startX),we=xn(y.width,e,Q.endX);se!==we&&p({minimum:Math.min(se,we),maximum:Math.max(se,we)})},[e,S,y,R,l,v,p]),j=H.useCallback(()=>{if(T(void 0),!!S){if(S.startX!==S.endX){const F=xn(y.width,e,S.startX),ee=xn(y.width,e,S.endX);p({minimum:Math.min(F,ee),maximum:Math.max(F,ee)})}else{const F=xn(y.width,e,S.startX),ee=R==null?void 0:R.findLast(ve=>ve.startTime<=F);ee&&l(ee),p(void 0)}E(void 0)}},[e,S,y,R,p,l]),ie=H.useCallback(F=>{if(!v.current)return;const ee=F.clientX-v.current.getBoundingClientRect().left,ve=xn(y.width,e,ee),z=R==null?void 0:R.findLast(Q=>Q.startTime<=ve);T({x:ee,clientY:F.clientY,action:z,sdkLanguage:m})},[e,y,R,v,m]),le=H.useCallback(()=>{T(void 0)},[]),I=H.useCallback(()=>{p(void 0)},[p]);return b.jsxs("div",{className:"timeline-view-container",children:[!!S&&b.jsx(l0,{cursor:(S==null?void 0:S.type)==="resize"?"ew-resize":"grab",onPaneMouseUp:j,onPaneMouseMove:q,onPaneDoubleClick:I}),b.jsxs("div",{ref:v,className:"timeline-view",onMouseDown:Z,onMouseMove:ie,onMouseLeave:le,children:[b.jsx("div",{className:"timeline-grid",children:k.map((F,ee)=>b.jsx("div",{className:"timeline-divider",style:{left:F.position+"px"},children:b.jsx("div",{className:"timeline-time",children:_t(F.time-e.minimum)})},ee))}),b.jsx("div",{style:{height:8}}),b.jsx(HN,{boundaries:e,previewPoint:x}),b.jsx("div",{className:"timeline-bars",children:G.filter(F=>!F.action||F.action.class!=="Test").map((F,ee)=>b.jsx("div",{className:Ye("timeline-bar",F.action&&"action",F.resource&&"network",F.consoleMessage&&"console-message",F.active&&"active",F.error&&"error"),style:{left:F.leftPosition,width:Math.max(5,F.rightPosition-F.leftPosition),top:VN(F),bottom:0}},ee))}),b.jsx("div",{className:"timeline-marker",style:{display:x!==void 0?"block":"none",left:((x==null?void 0:x.x)||0)+"px"}}),d&&b.jsxs("div",{className:"timeline-window",children:[b.jsx("div",{className:"timeline-window-curtain left",style:{width:$}}),b.jsx("div",{className:"timeline-window-resizer",style:{left:-5}}),b.jsx("div",{className:"timeline-window-center",children:b.jsx("div",{className:"timeline-window-drag"})}),b.jsx("div",{className:"timeline-window-resizer",style:{left:5}}),b.jsx("div",{className:"timeline-window-curtain right",style:{width:V}})]})]})]})};function IN(n,e){let s=n/64;const l=e.maximum-e.minimum,o=n/l;let u=l/s;const f=Math.ceil(Math.log(u)/Math.LN10);u=Math.pow(10,f),u*o>=320&&(u=u/5),u*o>=128&&(u=u/2);const d=e.minimum;let p=e.maximum;p+=64/o,s=Math.ceil((p-d)/u),u||(s=0);const m=[];for(let y=0;y<s;++y){const v=d+u*y;m.push({position:nn(n,e,v),time:v})}return m}function nn(n,e,i){return(i-e.minimum)/(e.maximum-e.minimum)*n}function xn(n,e,i){return i/n*(e.maximum-e.minimum)+e.minimum}function VN(n){return n.resource?25:20}const GN=({model:n})=>{var i,s;if(!n)return b.jsx(b.Fragment,{});const e=n.wallTime!==void 0?new Date(n.wallTime).toLocaleString(void 0,{timeZoneName:"short"}):void 0;return b.jsxs("div",{style:{flex:"auto",display:"block",overflow:"hidden auto"},children:[b.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Time"}),!!e&&b.jsxs("div",{className:"call-line",children:["start time:",b.jsx("span",{className:"call-value datetime",title:e,children:e})]}),b.jsxs("div",{className:"call-line",children:["duration:",b.jsx("span",{className:"call-value number",title:_t(n.endTime-n.startTime),children:_t(n.endTime-n.startTime)})]}),b.jsx("div",{className:"call-section",children:"Browser"}),b.jsxs("div",{className:"call-line",children:["engine:",b.jsx("span",{className:"call-value string",title:n.browserName,children:n.browserName})]}),n.channel&&b.jsxs("div",{className:"call-line",children:["channel:",b.jsx("span",{className:"call-value string",title:n.channel,children:n.channel})]}),n.platform&&b.jsxs("div",{className:"call-line",children:["platform:",b.jsx("span",{className:"call-value string",title:n.platform,children:n.platform})]}),n.playwrightVersion&&b.jsxs("div",{className:"call-line",children:["playwright version:",b.jsx("span",{className:"call-value string",title:n.playwrightVersion,children:n.playwrightVersion})]}),n.options.userAgent&&b.jsxs("div",{className:"call-line",children:["user agent:",b.jsx("span",{className:"call-value datetime",title:n.options.userAgent,children:n.options.userAgent})]}),n.options.baseURL&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Config"}),b.jsxs("div",{className:"call-line",children:["baseURL:",b.jsx("a",{className:"call-value string",href:n.options.baseURL,title:n.options.baseURL,target:"_blank",rel:"noopener noreferrer",children:n.options.baseURL})]})]}),b.jsx("div",{className:"call-section",children:"Viewport"}),n.options.viewport&&b.jsxs("div",{className:"call-line",children:["width:",b.jsx("span",{className:"call-value number",title:String(!!((i=n.options.viewport)!=null&&i.width)),children:n.options.viewport.width})]}),n.options.viewport&&b.jsxs("div",{className:"call-line",children:["height:",b.jsx("span",{className:"call-value number",title:String(!!((s=n.options.viewport)!=null&&s.height)),children:n.options.viewport.height})]}),b.jsxs("div",{className:"call-line",children:["is mobile:",b.jsx("span",{className:"call-value boolean",title:String(!!n.options.isMobile),children:String(!!n.options.isMobile)})]}),n.options.deviceScaleFactor&&b.jsxs("div",{className:"call-line",children:["device scale:",b.jsx("span",{className:"call-value number",title:String(n.options.deviceScaleFactor),children:String(n.options.deviceScaleFactor)})]}),b.jsx("div",{className:"call-section",children:"Counts"}),b.jsxs("div",{className:"call-line",children:["pages:",b.jsx("span",{className:"call-value number",children:n.pages.length})]}),b.jsxs("div",{className:"call-line",children:["actions:",b.jsx("span",{className:"call-value number",children:n.actions.length})]}),b.jsxs("div",{className:"call-line",children:["events:",b.jsx("span",{className:"call-value number",children:n.events.length})]})]})},KN=({annotations:n})=>n.length?b.jsx("div",{className:"annotations-tab",children:n.map((e,i)=>b.jsxs("div",{className:"annotation-item",children:[b.jsx("span",{style:{fontWeight:"bold"},children:e.type}),e.description&&b.jsxs("span",{children:[": ",u0(e.description)]})]},`annotation-${i}`))}):b.jsx(us,{text:"No annotations"}),YN=({sdkLanguage:n,isInspecting:e,setIsInspecting:i,highlightedElement:s,setHighlightedElement:l})=>{const[o,u]=H.useState(),f=H.useCallback(d=>{const{errors:p}=Kh(hS,d,{prettyErrors:!1}),m=p.map(y=>({message:y.message,line:y.range[1].line,column:y.range[1].col,type:"subtle-error"}));u(m),l({...s,ariaSnapshot:d,lastEdited:"ariaSnapshot"}),i(!1)},[s,l,i]);return b.jsxs("div",{style:{flex:"auto",backgroundColor:"var(--vscode-sideBar-background)",padding:"0 10px 10px 10px",overflow:"auto"},children:[b.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[b.jsx("div",{children:"Locator"}),b.jsx(Dt,{style:{margin:"0 4px"},title:"Pick locator",icon:"target",toggled:e,onClick:()=>i(!e)}),b.jsx("div",{style:{flex:"auto"}}),b.jsx(Dt,{icon:"files",title:"Copy locator",onClick:()=>{wy(s.locator||"")}})]}),b.jsx("div",{style:{height:50},children:b.jsx(Sr,{text:s.locator||"",highlighter:n,isFocused:!0,wrapLines:!0,onChange:d=>{l({...s,locator:d,lastEdited:"locator"}),i(!1)}})}),b.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[b.jsx("div",{style:{flex:"auto"},children:"Aria snapshot"}),b.jsx(Dt,{icon:"files",title:"Copy snapshot",onClick:()=>{wy(s.ariaSnapshot||"")}})]}),b.jsx("div",{style:{height:150},children:b.jsx(Sr,{text:s.ariaSnapshot||"",highlighter:"yaml",wrapLines:!1,highlight:o,onChange:f})})]})},XN=({className:n,style:e,open:i,isModal:s,minWidth:l,verticalOffset:o,requestClose:u,anchor:f,dataTestId:d,children:p})=>{const m=H.useRef(null),[y,v]=H.useState(0),[S]=mh(m),[E,x]=mh(f),T=PN(S,E,o);return H.useEffect(()=>{const C=$=>{!m.current||!($.target instanceof Node)||m.current.contains($.target)||u==null||u()},k=$=>{$.key==="Escape"&&(u==null||u())};return i?(document.addEventListener("mousedown",C),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",k)}):()=>{}},[i,u]),H.useLayoutEffect(()=>x(),[i,x]),H.useEffect(()=>{const C=()=>v(k=>k+1);return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[]),H.useLayoutEffect(()=>{m.current&&(i?s?m.current.showModal():m.current.show():m.current.close())},[i,s]),b.jsx("dialog",{ref:m,style:{position:"fixed",margin:0,zIndex:110,top:T.top,left:T.left,minWidth:l||0,...e},className:n,"data-testid":d,children:p})};function PN(n,e,i=4,s=4){let l=Math.max(s,e.left);l+n.width>window.innerWidth-s&&(l=window.innerWidth-n.width-s);let o=Math.max(0,e.bottom)+i;return o+n.height>window.innerHeight-i&&(Math.max(0,e.top)>n.height+i?o=Math.max(0,e.top)-n.height-i:o=window.innerHeight-i-n.height),{left:l,top:o}}const FN=({title:n,icon:e,buttonChildren:i,anchorRef:s,dialogDataTestId:l,children:o})=>{const u=H.useRef(null),f=s??u,[d,p]=H.useState(!1);return b.jsxs(b.Fragment,{children:[b.jsx(Dt,{ref:u,icon:e,title:n,onClick:()=>p(m=>!m),children:i}),b.jsx(XN,{style:{backgroundColor:"var(--vscode-sideBar-background)",padding:"4px 8px"},open:d,verticalOffset:8,requestClose:()=>p(!1),anchor:f,dataTestId:l,children:o})]})},vS=({settings:n})=>b.jsx("div",{className:"vbox settings-view",children:n.map(e=>{const i=`setting-${e.name.replaceAll(/\s+/g,"-")}`;return b.jsx("div",{className:`setting setting-${e.type}`,title:e.title,children:QN(e,i)},e.name)})}),QN=(n,e)=>{switch(n.type){case"check":return b.jsxs(b.Fragment,{children:[b.jsx("input",{type:"checkbox",id:e,checked:n.value,onChange:()=>n.set(!n.value)}),b.jsxs("label",{htmlFor:e,children:[n.name,!!n.count&&b.jsx("span",{className:"setting-counter",children:n.count})]})]});case"select":return b.jsxs(b.Fragment,{children:[b.jsxs("label",{htmlFor:e,children:[n.name,":",!!n.count&&b.jsx("span",{className:"setting-counter",children:n.count})]}),b.jsx("select",{id:e,value:n.value,onChange:i=>n.set(i.target.value),children:n.options.map(i=>b.jsx("option",{value:i.value,children:i.label},i.value))})]});default:return null}},o2=n=>{var i;const e=WN((i=n.model)==null?void 0:i.traceUri);return b.jsx(f0.Provider,{value:n.model,children:b.jsx(ZN,{partition:e,...n})})},ZN=n=>{var dl;const{partition:e,model:i,showSourcesFirst:s,rootDir:l,fallbackLocation:o,isLive:u,hideTimeline:f,status:d,annotations:p,inert:m,onOpenExternally:y,revealSource:v,testRunMetadata:S}=n,[E,x]=rn("navigatorTab","actions"),[T,C]=rn("propertiesTab",s?"source":"call"),[k,$]=rn("propertiesSidebarLocation","bottom"),[V]=rn("actionsFilter",[]),[R,G]=xi("selectedCallId"),[Z,q]=xi("selectedTime"),[j,ie]=xi("highlightedCallId"),[le,I]=xi("revealedErrorKey"),[F,ee]=xi("highlightedConsoleMessageOrdinal"),[ve,z]=xi("revealedAttachmentCallId"),[Q,se]=xi("highlightedResourceOrdinal"),[we,N]=xi("treeState",{expandedItems:new Map});H1(e);const[P,W]=H.useState({lastEdited:"none"}),[J,ae]=H.useState(!1),be=H.useCallback(ce=>{G(ce==null?void 0:ce.callId),I(void 0)},[G,I]),te=H.useMemo(()=>i==null?void 0:i.filteredActions(V),[i,V]),yt=((i==null?void 0:i.actions.length)??0)-((te==null?void 0:te.length)??0),Ne=H.useMemo(()=>te==null?void 0:te.find(ce=>ce.callId===j),[te,j]),Gt=H.useCallback(ce=>{ie(ce==null?void 0:ce.callId)},[ie]),jr=H.useMemo(()=>(i==null?void 0:i.sources)||new Map,[i]);H.useEffect(()=>{q(void 0),I(void 0)},[i,q,I]);const En=H.useMemo(()=>{if(R){const Jn=te==null?void 0:te.find(un=>un.callId===R);if(Jn)return Jn}const ce=i==null?void 0:i.failedAction();if(ce)return ce;if(te!=null&&te.length){let Jn=te.length-1;for(let un=0;un<te.length;++un)if(te[un].title==="After Hooks"&&un){Jn=un-1;break}return te[Jn]}},[i,te,R]),cn=H.useMemo(()=>Ne||En,[En,Ne]),ds=H.useCallback(ce=>{be(ce),Gt(void 0)},[be,Gt]),bt=H.useCallback(ce=>{C(ce),ce!=="inspector"&&ae(!1)},[C]),fl=H.useCallback(ce=>{!J&&ce&&bt("inspector"),ae(ce)},[ae,bt,J]),Mc=H.useCallback(ce=>{W(ce),bt("inspector")},[bt]),Kt=H.useCallback(ce=>{bt("attachments"),z({callId:ce})},[bt,z]);H.useEffect(()=>{v&&bt("source")},[v,bt]);const Lr=k_(i,Z),ps=eT(i,Z),Mi=T_(i),gs=H.useMemo(()=>{var ce;return le!==void 0?(ce=Mi.errors.get(le))==null?void 0:ce.stack:cn==null?void 0:cn.stack},[cn,le,Mi]),Qn=(i==null?void 0:i.sdkLanguage)||"javascript",hl={id:"inspector",title:"Locator",render:()=>b.jsx(YN,{sdkLanguage:Qn,isInspecting:J,setIsInspecting:fl,highlightedElement:P,setHighlightedElement:W})},Oc={id:"call",title:"Call",render:()=>b.jsx(Yx,{action:cn,startTimeOffset:(i==null?void 0:i.startTime)??0,sdkLanguage:Qn})},Rc={id:"log",title:"Log",render:()=>b.jsx(Fx,{action:cn,isLive:u})},Oi={id:"errors",title:"Errors",errorCount:Mi.errors.size,render:()=>b.jsx(A_,{errorsModel:Mi,testRunMetadata:S,sdkLanguage:Qn,revealInSource:ce=>{ce.action?be(ce.action):I(ce.message),bt("source")},wallTime:(i==null?void 0:i.wallTime)??0})};let ut;!En&&o&&(ut=(dl=o.source)==null?void 0:dl.errors.length);const Yt={id:"source",title:"Source",errorCount:ut,render:()=>b.jsx(w_,{stack:gs,sources:jr,rootDir:l,stackFrameLocation:k==="bottom"?"right":"bottom",fallbackLocation:o,onOpenExternally:y})},vt={id:"console",title:"Console",count:Lr.entries.length,render:()=>b.jsx(M_,{consoleModel:Lr,boundaries:Zn,selectedTime:Z,onAccepted:ce=>q({minimum:ce.timestamp,maximum:ce.timestamp}),onEntryHovered:ee})},jc={id:"network",title:"Network",count:ps.resources.length,render:()=>b.jsx(tT,{boundaries:Zn,networkModel:ps,onResourceHovered:se,sdkLanguage:(i==null?void 0:i.sdkLanguage)??"javascript"})},Lc={id:"attachments",title:"Attachments",count:i==null?void 0:i.visibleAttachments.length,render:()=>b.jsx(d_,{revealedAttachmentCallId:ve})},Ri=[hl,Oc,Rc,Oi,vt,jc,Yt,Lc];if(p!==void 0){const ce={id:"annotations",title:"Annotations",count:p.length,render:()=>b.jsx(KN,{annotations:p})};Ri.push(ce)}if(s){const ce=Ri.indexOf(Yt);Ri.splice(ce,1),Ri.splice(1,0,Yt)}const{boundaries:Zn}=H.useMemo(()=>{const ce={minimum:(i==null?void 0:i.startTime)||0,maximum:(i==null?void 0:i.endTime)||3e4};return ce.minimum>ce.maximum&&(ce.minimum=0,ce.maximum=3e4),ce.maximum+=(ce.maximum-ce.minimum)/20,{boundaries:ce}},[i]);let An=0;!u&&i&&i.endTime>=0?An=i.endTime-i.startTime:i&&i.wallTime&&(An=Date.now()-i.wallTime);const Nn={id:"actions",title:"Actions",component:b.jsxs("div",{className:"vbox",children:[d&&b.jsxs("div",{className:"workbench-run-status",children:[b.jsx("span",{className:Ye("codicon",r0(d))}),b.jsx("div",{children:Vx(d)}),b.jsx("div",{className:"spacer"}),b.jsx("div",{className:"workbench-run-duration",children:An?_t(An):""})]}),b.jsx(Kx,{sdkLanguage:Qn,actions:te||[],selectedAction:i?En:void 0,selectedTime:Z,setSelectedTime:q,treeState:we,setTreeState:N,onSelected:ds,onHighlighted:Gt,revealActionAttachment:Kt,revealConsole:()=>bt("console"),isLive:u})]})},ms={id:"metadata",title:"Metadata",component:b.jsx(GN,{model:i})},ji=E==="actions"&&b.jsx(JN,{counters:i==null?void 0:i.actionCounters,hiddenActionsCount:yt});return b.jsxs("div",{className:"vbox workbench",...m?{inert:!0}:{},children:[!f&&b.jsx($N,{model:i,consoleEntries:Lr.entries,networkResources:ps.resources,boundaries:Zn,highlightedAction:Ne,highlightedResourceOrdinal:Q,highlightedConsoleEntryOrdinal:F,onSelected:ds,sdkLanguage:Qn,selectedTime:Z,setSelectedTime:q}),b.jsx(Qo,{sidebarSize:250,orientation:k==="bottom"?"vertical":"horizontal",settingName:"propertiesSidebar",main:b.jsx(Qo,{sidebarSize:250,orientation:"horizontal",sidebarIsFirst:!0,settingName:"actionListSidebar",main:b.jsx(MN,{action:cn,model:i,sdkLanguage:Qn,testIdAttributeName:(i==null?void 0:i.testIdAttributeName)||"data-testid",isInspecting:J,setIsInspecting:fl,highlightedElement:P,setHighlightedElement:Mc}),sidebar:b.jsx(xh,{tabs:[Nn,ms],rightToolbar:[ji],selectedTab:E,setSelectedTab:x})}),sidebar:b.jsx(xh,{tabs:Ri,selectedTab:T,setSelectedTab:bt,rightToolbar:[k==="bottom"?b.jsx(Dt,{title:"Dock to right",icon:"layout-sidebar-right-off",onClick:()=>{$("right")}}):b.jsx(Dt,{title:"Dock to bottom",icon:"layout-panel-off",onClick:()=>{$("bottom")}})],mode:k==="bottom"?"default":"select"})})]})},JN=({counters:n,hiddenActionsCount:e})=>{const[i,s]=rn("actionsFilter",[]),l=H.useRef(null),o=b.jsxs(b.Fragment,{children:[e>0&&b.jsxs("span",{className:"workbench-actions-hidden-count",title:e+" actions hidden by filters",children:[e," hidden"]}),b.jsx("span",{ref:l,className:"codicon codicon-filter"})]});return b.jsx(FN,{title:"Filter actions",dialogDataTestId:"actions-filter-dialog",buttonChildren:o,anchorRef:l,children:b.jsx(vS,{settings:[{type:"check",value:i.includes("getter"),set:u=>s(u?[...i,"getter"]:i.filter(f=>f!=="getter")),name:"Getters",count:n==null?void 0:n.get("getter")},{type:"check",value:i.includes("route"),set:u=>s(u?[...i,"route"]:i.filter(f=>f!=="route")),name:"Network routes",count:n==null?void 0:n.get("route")},{type:"check",value:i.includes("configuration"),set:u=>s(u?[...i,"configuration"]:i.filter(f=>f!=="configuration")),name:"Configuration",count:n==null?void 0:n.get("configuration")}]})})};function WN(n){if(!n)return"default";const e=new URL(n,"http://localhost");return e.searchParams.delete("timestamp"),e.toString()}var Eb;(n=>{function e(i){for(const s of i.splice(0))s.dispose()}n.disposeAll=e})(Eb||(Eb={}));class lr{constructor(){this._listeners=new Set,this.event=(e,i)=>{this._listeners.add(e);let s=!1;const l=this,o={dispose(){s||(s=!0,l._listeners.delete(e))}};return i&&i.push(o),o}}fire(e){const i=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const s of this._listeners)this._deliveryQueue.push({listener:s,event:e});if(i){for(let s=0;s<this._deliveryQueue.length;s++){const{listener:l,event:o}=this._deliveryQueue[s];l.call(null,o)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}class e2 extends Error{constructor(){super("Test server connection closed")}}class c2{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener("message",i=>e(i.data.toString()))}onopen(e){this._ws.addEventListener("open",e)}onerror(e){this._ws.addEventListener("error",e)}onclose(e){this._ws.addEventListener("close",e)}send(e){this._ws.send(e)}close(){this._ws.close()}}class u2{constructor(e){this._onCloseEmitter=new lr,this._onReportEmitter=new lr,this._onStdioEmitter=new lr,this._onTestFilesChangedEmitter=new lr,this._onLoadTraceRequestedEmitter=new lr,this._onTestPausedEmitter=new lr,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(s=>{const l=JSON.parse(s),{id:o,result:u,error:f,method:d,params:p}=l;if(o){const m=this._callbacks.get(o);if(!m)return;this._callbacks.delete(o),f?m.reject(new Error(f)):m.resolve(u)}else this._dispatchEvent(d,p)});const i=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((s,l)=>{this._transport.onopen(s),this._transport.onerror(l)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(i);for(const s of this._callbacks.values())s.reject(new e2);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,i){const s=globalThis.__logForTest;s==null||s({method:e,params:i}),await this._connectedPromise;const l=++this._lastId,o={id:l,method:e,params:i};return this._transport.send(JSON.stringify(o)),new Promise((u,f)=>{this._callbacks.set(l,{resolve:u,reject:f})})}_sendMessageNoReply(e,i){this._sendMessage(e,i).catch(()=>{})}_dispatchEvent(e,i){e==="report"?this._onReportEmitter.fire(i):e==="stdio"?this._onStdioEmitter.fire(i):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(i):e==="loadTraceRequested"?this._onLoadTraceRequestedEmitter.fire(i):e==="testPaused"&&this._onTestPausedEmitter.fire(i)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._transport.close()}catch{}}}const f2=({location:n})=>{const[e,i]=rn("shouldPopulateCanvasFromScreenshot",!1),[s,l]=V1(),[o,u]=rn("mergeFiles",!1);return b.jsx(vS,{settings:[{type:"check",value:s,set:l,name:"Dark mode"},...n==="ui-mode"?[{type:"check",value:o,set:u,name:"Merge files"}]:[],{type:"check",value:e,set:i,name:"Display canvas content",title:"Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate."}]})};export{FN as D,c0 as E,a2 as M,gt as R,Qo as S,u2 as T,c2 as W,s_ as _,f2 as a,o2 as b,XN as c,n2 as d,r2 as e,bh as f,i2 as g,s2 as h,Ye as i,b as j,$x as k,Gh as l,_t as m,Dt as n,rn as o,vS as p,L1 as q,H as r,es as s,r0 as t,cs as u};