flowstride 1.0.20-rc.6 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NATIVE_BROWSER.md +341 -0
- package/NATIVE_CI.md +88 -169
- package/README.md +46 -214
- package/dist/adapters/api/undici.d.ts +8 -0
- package/dist/adapters/api/undici.js +11 -0
- package/dist/adapters/web/playwright.d.ts +25 -2
- package/dist/adapters/web/playwright.js +285 -21
- package/dist/ci/config.js +14 -1
- package/dist/ci/distribution.d.ts +38 -0
- package/dist/ci/distribution.js +134 -0
- package/dist/ci/init.d.ts +4 -1
- package/dist/ci/init.js +13 -2
- package/dist/ci/runtime.js +24 -5
- package/dist/cli/commands/run.js +3 -0
- package/dist/cli/index.js +24 -5
- package/dist/manual/security.d.ts +2 -2
- package/dist/native/accessibility.d.ts +3 -0
- package/dist/native/accessibility.js +68 -0
- package/dist/native/assertions.d.ts +2 -0
- package/dist/native/assertions.js +140 -0
- package/dist/native/compatibility.d.ts +3 -0
- package/dist/native/compatibility.js +16 -0
- package/dist/native/components.d.ts +12 -0
- package/dist/native/components.js +122 -0
- package/dist/native/dashboard.d.ts +7 -0
- package/dist/native/dashboard.js +32 -0
- package/dist/native/events.d.ts +34 -0
- package/dist/native/events.js +281 -0
- package/dist/native/evidence.d.ts +3 -0
- package/dist/native/evidence.js +31 -0
- package/dist/native/functions.d.ts +9 -0
- package/dist/native/functions.js +103 -0
- package/dist/native/runtime.d.ts +14 -0
- package/dist/native/runtime.js +154 -0
- package/dist/native/validation.d.ts +107 -0
- package/dist/native/validation.js +84 -0
- package/dist/parser/lexer.js +15 -4
- package/dist/parser/parser.js +1 -1
- package/dist/runner/flow_orchestrator.d.ts +4 -0
- package/dist/runner/flow_orchestrator.js +22 -5
- package/dist/runner/flow_worker.d.ts +7 -0
- package/dist/runner/flow_worker.js +141 -37
- package/dist/security/redaction.js +3 -1
- package/dist/sessions/manager.js +3 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/utils/replayRequest.d.ts +8 -0
- package/dist/utils/replayRequest.js +77 -0
- package/package.json +22 -9
- package/src/ui/dist/assets/index-DglsL_J2.js +636 -0
- package/src/ui/dist/index.html +1 -1
- package/src/ui/dist/assets/index-DVwp0K-J.js +0 -462
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kd={exports:{}},ul={},Ed={exports:{}},ce={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Oo=Symbol.for("react.element"),Rg=Symbol.for("react.portal"),Ig=Symbol.for("react.fragment"),zg=Symbol.for("react.strict_mode"),Lg=Symbol.for("react.profiler"),Ag=Symbol.for("react.provider"),Ng=Symbol.for("react.context"),Dg=Symbol.for("react.forward_ref"),Pg=Symbol.for("react.suspense"),Og=Symbol.for("react.memo"),Mg=Symbol.for("react.lazy"),Uc=Symbol.iterator;function Fg(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}var Cd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Td=Object.assign,jd={};function Or(e,t,n){this.props=e,this.context=t,this.refs=jd,this.updater=n||Cd}Or.prototype.isReactComponent={};Or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rd(){}Rd.prototype=Or.prototype;function ba(e,t,n){this.props=e,this.context=t,this.refs=jd,this.updater=n||Cd}var ka=ba.prototype=new Rd;ka.constructor=ba;Td(ka,Or.prototype);ka.isPureReactComponent=!0;var $c=Array.isArray,Id=Object.prototype.hasOwnProperty,Ea={current:null},zd={key:!0,ref:!0,__self:!0,__source:!0};function Ld(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Id.call(t,r)&&!zd.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Oo,type:e,key:i,ref:s,props:o,_owner:Ea.current}}function Wg(e,t){return{$$typeof:Oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ca(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oo}function Bg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hc=/\/+/g;function Ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Bg(""+e.key):t.toString(36)}function Si(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Oo:case Rg:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ul(s,0):r,$c(o)?(n="",e!=null&&(n=e.replace(Hc,"$&/")+"/"),Si(o,t,n,"",function(u){return u})):o!=null&&(Ca(o)&&(o=Wg(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Hc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",$c(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Ul(i,a);s+=Si(i,t,n,c,o)}else if(c=Fg(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Ul(i,a++),s+=Si(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ni(e,t,n){if(e==null)return e;var r=[],o=0;return Si(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Ug(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},bi={transition:null},$g={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:bi,ReactCurrentOwner:Ea};function Ad(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:ni,forEach:function(e,t,n){ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ni(e,function(){t++}),t},toArray:function(e){return ni(e,function(t){return t})||[]},only:function(e){if(!Ca(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Or;ce.Fragment=Ig;ce.Profiler=Lg;ce.PureComponent=ba;ce.StrictMode=zg;ce.Suspense=Pg;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$g;ce.act=Ad;ce.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Td({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ea.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Id.call(t,c)&&!zd.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Oo,type:e.type,key:o,ref:i,props:r,_owner:s}};ce.createContext=function(e){return e={$$typeof:Ng,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ag,_context:e},e.Consumer=e};ce.createElement=Ld;ce.createFactory=function(e){var t=Ld.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:Dg,render:e}};ce.isValidElement=Ca;ce.lazy=function(e){return{$$typeof:Mg,_payload:{_status:-1,_result:e},_init:Ug}};ce.memo=function(e,t){return{$$typeof:Og,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};ce.unstable_act=Ad;ce.useCallback=function(e,t){return ot.current.useCallback(e,t)};ce.useContext=function(e){return ot.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};ce.useEffect=function(e,t){return ot.current.useEffect(e,t)};ce.useId=function(){return ot.current.useId()};ce.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return ot.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};ce.useRef=function(e){return ot.current.useRef(e)};ce.useState=function(e){return ot.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return ot.current.useTransition()};ce.version="18.3.1";Ed.exports=ce;var b=Ed.exports;const Hg=bd(b);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Vg=b,Gg=Symbol.for("react.element"),Yg=Symbol.for("react.fragment"),Xg=Object.prototype.hasOwnProperty,Qg=Vg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kg={key:!0,ref:!0,__self:!0,__source:!0};function Nd(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Xg.call(t,r)&&!Kg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Gg,type:e,key:i,ref:s,props:o,_owner:Qg.current}}ul.Fragment=Yg;ul.jsx=Nd;ul.jsxs=Nd;kd.exports=ul;var l=kd.exports,Es={},Dd={exports:{}},_t={},Pd={exports:{}},Od={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(F,A){var E=F.length;F.push(A);e:for(;0<E;){var D=E-1>>>1,L=F[D];if(0<o(L,A))F[D]=A,F[E]=L,E=D;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var A=F[0],E=F.pop();if(E!==A){F[0]=E;e:for(var D=0,L=F.length,Q=L>>>1;D<Q;){var ee=2*(D+1)-1,ve=F[ee],ie=ee+1,de=F[ie];if(0>o(ve,E))ie<L&&0>o(de,ve)?(F[D]=de,F[ie]=E,D=ie):(F[D]=ve,F[ee]=E,D=ee);else if(ie<L&&0>o(de,E))F[D]=de,F[ie]=E,D=ie;else break e}}return A}function o(F,A){var E=F.sortIndex-A.sortIndex;return E!==0?E:F.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],y=1,h=null,x=3,m=!1,_=!1,w=!1,I=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(F){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=F)r(u),A.sortIndex=A.expirationTime,t(c,A);else break;A=n(u)}}function v(F){if(w=!1,g(F),!_)if(n(c)!==null)_=!0,he(R);else{var A=n(u);A!==null&&O(v,A.startTime-F)}}function R(F,A){_=!1,w&&(w=!1,p(k),k=-1),m=!0;var E=x;try{for(g(A),h=n(c);h!==null&&(!(h.expirationTime>A)||F&&!re());){var D=h.callback;if(typeof D=="function"){h.callback=null,x=h.priorityLevel;var L=D(h.expirationTime<=A);A=e.unstable_now(),typeof L=="function"?h.callback=L:h===n(c)&&r(c),g(A)}else r(c);h=n(c)}if(h!==null)var Q=!0;else{var ee=n(u);ee!==null&&O(v,ee.startTime-A),Q=!1}return Q}finally{h=null,x=E,m=!1}}var j=!1,N=null,k=-1,V=5,$=-1;function re(){return!(e.unstable_now()-$<V)}function ae(){if(N!==null){var F=e.unstable_now();$=F;var A=!0;try{A=N(!0,F)}finally{A?W():(j=!1,N=null)}}else j=!1}var W;if(typeof d=="function")W=function(){d(ae)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ne=oe.port2;oe.port1.onmessage=ae,W=function(){ne.postMessage(null)}}else W=function(){I(ae,0)};function he(F){N=F,j||(j=!0,W())}function O(F,A){k=I(function(){F(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){_||m||(_=!0,he(R))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(F){switch(x){case 1:case 2:case 3:var A=3;break;default:A=x}var E=x;x=A;try{return F()}finally{x=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,A){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var E=x;x=F;try{return A()}finally{x=E}},e.unstable_scheduleCallback=function(F,A,E){var D=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?D+E:D):E=D,F){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=E+L,F={id:y++,callback:A,priorityLevel:F,startTime:E,expirationTime:L,sortIndex:-1},E>D?(F.sortIndex=E,t(u,F),n(c)===null&&F===n(u)&&(w?(p(k),k=-1):w=!0,O(v,E-D))):(F.sortIndex=L,t(c,F),_||m||(_=!0,he(R))),F},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(F){var A=x;return function(){var E=x;x=A;try{return F.apply(this,arguments)}finally{x=E}}}})(Od);Pd.exports=Od;var qg=Pd.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Zg=b,vt=qg;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Md=new Set,_o={};function Kn(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(_o[e]=t,e=0;e<t.length;e++)Md.add(t[e])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,Jg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vc={},Gc={};function eh(e){return Cs.call(Gc,e)?!0:Cs.call(Vc,e)?!1:Jg.test(e)?Gc[e]=!0:(Vc[e]=!0,!1)}function th(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nh(e,t,n,r){if(t===null||typeof t>"u"||th(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ye[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ye[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ye[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ye[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ye[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ye[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ye[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ye[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ye[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([a-z])/g;function ja(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ta,ja);Ye[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ta,ja);Ye[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ta,ja);Ye[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ye[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ye.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ye[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ra(e,t,n,r){var o=Ye.hasOwnProperty(t)?Ye[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nh(t,n,o,r)&&(n=null),r||o===null?eh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=Zg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ri=Symbol.for("react.element"),ar=Symbol.for("react.portal"),cr=Symbol.for("react.fragment"),Ia=Symbol.for("react.strict_mode"),Ts=Symbol.for("react.profiler"),Fd=Symbol.for("react.provider"),Wd=Symbol.for("react.context"),za=Symbol.for("react.forward_ref"),js=Symbol.for("react.suspense"),Rs=Symbol.for("react.suspense_list"),La=Symbol.for("react.memo"),dn=Symbol.for("react.lazy"),Bd=Symbol.for("react.offscreen"),Yc=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=Yc&&e[Yc]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,$l;function to(e){if($l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$l=t&&t[1]||""}return`
|
|
34
|
+
`+$l+e}var Hl=!1;function Vl(e,t){if(!e||Hl)return"";Hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
37
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?to(e):""}function rh(e){switch(e.tag){case 5:return to(e.type);case 16:return to("Lazy");case 13:return to("Suspense");case 19:return to("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function Is(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cr:return"Fragment";case ar:return"Portal";case Ts:return"Profiler";case Ia:return"StrictMode";case js:return"Suspense";case Rs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wd:return(e.displayName||"Context")+".Consumer";case Fd:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case La:return t=e.displayName||null,t!==null?t:Is(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return Is(e(t))}catch{}}return null}function oh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Is(t);case 8:return t===Ia?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e){var t=Ud(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=ih(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ud(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zs(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hd(e,t){t=t.checked,t!=null&&Ra(e,"checked",t,!1)}function Ls(e,t){Hd(e,t);var n=Tn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?As(e,t.type,n):t.hasOwnProperty("defaultValue")&&As(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function As(e,t,n){(t!=="number"||Oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var no=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ns(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(B(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(B(92));if(no(n)){if(1<n.length)throw Error(B(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function Vd(e,t){var n=Tn(t.value),r=Tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function qc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ds(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,Yd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ao={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lh=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(e){lh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ao[t]=ao[e]})});function Xd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ao.hasOwnProperty(e)&&ao[e]?(""+t).trim():t+"px"}function Qd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sh=Ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ps(e,t){if(t){if(sh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function Os(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ms=null;function Aa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fs=null,wr=null,Sr=null;function Zc(e){if(e=Wo(e)){if(typeof Fs!="function")throw Error(B(280));var t=e.stateNode;t&&(t=hl(t),Fs(e.stateNode,e.type,t))}}function Kd(e){wr?Sr?Sr.push(e):Sr=[e]:wr=e}function qd(){if(wr){var e=wr,t=Sr;if(Sr=wr=null,Zc(e),t)for(e=0;e<t.length;e++)Zc(t[e])}}function Zd(e,t){return e(t)}function Jd(){}var Gl=!1;function ef(e,t,n){if(Gl)return e(t,n);Gl=!0;try{return Zd(e,t,n)}finally{Gl=!1,(wr!==null||Sr!==null)&&(Jd(),qd())}}function So(e,t){var n=e.stateNode;if(n===null)return null;var r=hl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(B(231,t,typeof n));return n}var Ws=!1;if(qt)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Ws=!1}function ah(e,t,n,r,o,i,s,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(y){this.onError(y)}}var co=!1,Mi=null,Fi=!1,Bs=null,ch={onError:function(e){co=!0,Mi=e}};function uh(e,t,n,r,o,i,s,a,c){co=!1,Mi=null,ah.apply(ch,arguments)}function dh(e,t,n,r,o,i,s,a,c){if(uh.apply(this,arguments),co){if(co){var u=Mi;co=!1,Mi=null}else throw Error(B(198));Fi||(Fi=!0,Bs=u)}}function qn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jc(e){if(qn(e)!==e)throw Error(B(188))}function fh(e){var t=e.alternate;if(!t){if(t=qn(e),t===null)throw Error(B(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jc(o),e;if(i===r)return Jc(o),t;i=i.sibling}throw Error(B(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(B(189))}}if(n.alternate!==r)throw Error(B(190))}if(n.tag!==3)throw Error(B(188));return n.stateNode.current===n?e:t}function nf(e){return e=fh(e),e!==null?rf(e):null}function rf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rf(e);if(t!==null)return t;e=e.sibling}return null}var of=vt.unstable_scheduleCallback,eu=vt.unstable_cancelCallback,ph=vt.unstable_shouldYield,gh=vt.unstable_requestPaint,Ae=vt.unstable_now,hh=vt.unstable_getCurrentPriorityLevel,Na=vt.unstable_ImmediatePriority,lf=vt.unstable_UserBlockingPriority,Wi=vt.unstable_NormalPriority,xh=vt.unstable_LowPriority,sf=vt.unstable_IdlePriority,dl=null,$t=null;function yh(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(dl,e,void 0,(e.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:_h,mh=Math.log,vh=Math.LN2;function _h(e){return e>>>=0,e===0?32:31-(mh(e)/vh|0)|0}var li=64,si=4194304;function ro(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ro(a):(i&=s,i!==0&&(r=ro(i)))}else s=n&~o,s!==0?r=ro(s):i!==0&&(r=ro(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-At(t),o=1<<n,r|=e[n],t&=~o;return r}function wh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-At(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=wh(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function Us(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function af(){var e=li;return li<<=1,!(li&4194240)&&(li=64),e}function Yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function bh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-At(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Da(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ye=0;function cf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uf,Pa,df,ff,pf,$s=!1,ai=[],vn=null,_n=null,wn=null,bo=new Map,ko=new Map,pn=[],kh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tu(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":_n=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ko.delete(t.pointerId)}}function Gr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Wo(t),t!==null&&Pa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Eh(e,t,n,r,o){switch(t){case"focusin":return vn=Gr(vn,e,t,n,r,o),!0;case"dragenter":return _n=Gr(_n,e,t,n,r,o),!0;case"mouseover":return wn=Gr(wn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return bo.set(i,Gr(bo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ko.set(i,Gr(ko.get(i)||null,e,t,n,r,o)),!0}return!1}function gf(e){var t=Wn(e.target);if(t!==null){var n=qn(t);if(n!==null){if(t=n.tag,t===13){if(t=tf(n),t!==null){e.blockedOn=t,pf(e.priority,function(){df(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ms=r,n.target.dispatchEvent(r),Ms=null}else return t=Wo(n),t!==null&&Pa(t),e.blockedOn=n,!1;t.shift()}return!0}function nu(e,t,n){ki(e)&&n.delete(t)}function Ch(){$s=!1,vn!==null&&ki(vn)&&(vn=null),_n!==null&&ki(_n)&&(_n=null),wn!==null&&ki(wn)&&(wn=null),bo.forEach(nu),ko.forEach(nu)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,$s||($s=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,Ch)))}function Eo(e){function t(o){return Yr(o,e)}if(0<ai.length){Yr(ai[0],e);for(var n=1;n<ai.length;n++){var r=ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&Yr(vn,e),_n!==null&&Yr(_n,e),wn!==null&&Yr(wn,e),bo.forEach(t),ko.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)gf(n),n.blockedOn===null&&pn.shift()}var br=nn.ReactCurrentBatchConfig,Ui=!0;function Th(e,t,n,r){var o=ye,i=br.transition;br.transition=null;try{ye=1,Oa(e,t,n,r)}finally{ye=o,br.transition=i}}function jh(e,t,n,r){var o=ye,i=br.transition;br.transition=null;try{ye=4,Oa(e,t,n,r)}finally{ye=o,br.transition=i}}function Oa(e,t,n,r){if(Ui){var o=Hs(e,t,n,r);if(o===null)rs(e,t,r,$i,n),tu(e,r);else if(Eh(o,e,t,n,r))r.stopPropagation();else if(tu(e,r),t&4&&-1<kh.indexOf(e)){for(;o!==null;){var i=Wo(o);if(i!==null&&uf(i),i=Hs(e,t,n,r),i===null&&rs(e,t,r,$i,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else rs(e,t,r,null,n)}}var $i=null;function Hs(e,t,n,r){if($i=null,e=Aa(r),e=Wn(e),e!==null)if(t=qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $i=e,null}function hf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hh()){case Na:return 1;case lf:return 4;case Wi:case xh:return 16;case sf:return 536870912;default:return 16}default:return 16}}var yn=null,Ma=null,Ei=null;function xf(){if(Ei)return Ei;var e,t=Ma,n=t.length,r,o="value"in yn?yn.value:yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Ei=o.slice(e,1<r?1-r:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ci(){return!0}function ru(){return!1}function wt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:ru,this.isPropagationStopped=ru,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=wt(Mr),Fo=Ie({},Mr,{view:0,detail:0}),Rh=wt(Fo),Xl,Ql,Xr,fl=Ie({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(Xl=e.screenX-Xr.screenX,Ql=e.screenY-Xr.screenY):Ql=Xl=0,Xr=e),Xl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),ou=wt(fl),Ih=Ie({},fl,{dataTransfer:0}),zh=wt(Ih),Lh=Ie({},Fo,{relatedTarget:0}),Kl=wt(Lh),Ah=Ie({},Mr,{animationName:0,elapsedTime:0,pseudoElement:0}),Nh=wt(Ah),Dh=Ie({},Mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ph=wt(Dh),Oh=Ie({},Mr,{data:0}),iu=wt(Oh),Mh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fh={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"},Wh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wh[e])?!!t[e]:!1}function Wa(){return Bh}var Uh=Ie({},Fo,{key:function(e){if(e.key){var t=Mh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$h=wt(Uh),Hh=Ie({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lu=wt(Hh),Vh=Ie({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Gh=wt(Vh),Yh=Ie({},Mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xh=wt(Yh),Qh=Ie({},fl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kh=wt(Qh),qh=[9,13,27,32],Ba=qt&&"CompositionEvent"in window,uo=null;qt&&"documentMode"in document&&(uo=document.documentMode);var Zh=qt&&"TextEvent"in window&&!uo,yf=qt&&(!Ba||uo&&8<uo&&11>=uo),su=" ",au=!1;function mf(e,t){switch(e){case"keyup":return qh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function Jh(e,t){switch(e){case"compositionend":return vf(t);case"keypress":return t.which!==32?null:(au=!0,su);case"textInput":return e=t.data,e===su&&au?null:e;default:return null}}function e0(e,t){if(ur)return e==="compositionend"||!Ba&&mf(e,t)?(e=xf(),Ei=Ma=yn=null,ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yf&&t.locale!=="ko"?null:t.data;default:return null}}var t0={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 cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!t0[e.type]:t==="textarea"}function _f(e,t,n,r){Kd(r),t=Hi(t,"onChange"),0<t.length&&(n=new Fa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fo=null,Co=null;function n0(e){zf(e,0)}function pl(e){var t=pr(e);if($d(t))return e}function r0(e,t){if(e==="change")return t}var wf=!1;if(qt){var ql;if(qt){var Zl="oninput"in document;if(!Zl){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),Zl=typeof uu.oninput=="function"}ql=Zl}else ql=!1;wf=ql&&(!document.documentMode||9<document.documentMode)}function du(){fo&&(fo.detachEvent("onpropertychange",Sf),Co=fo=null)}function Sf(e){if(e.propertyName==="value"&&pl(Co)){var t=[];_f(t,Co,e,Aa(e)),ef(n0,t)}}function o0(e,t,n){e==="focusin"?(du(),fo=t,Co=n,fo.attachEvent("onpropertychange",Sf)):e==="focusout"&&du()}function i0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Co)}function l0(e,t){if(e==="click")return pl(t)}function s0(e,t){if(e==="input"||e==="change")return pl(t)}function a0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:a0;function To(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Cs.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pu(e,t){var n=fu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fu(n)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kf(){for(var e=window,t=Oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oi(e.document)}return t}function Ua(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c0(e){var t=kf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bf(n.ownerDocument.documentElement,n)){if(r!==null&&Ua(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=pu(n,i);var s=pu(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var u0=qt&&"documentMode"in document&&11>=document.documentMode,dr=null,Vs=null,po=null,Gs=!1;function gu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gs||dr==null||dr!==Oi(r)||(r=dr,"selectionStart"in r&&Ua(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),po&&To(po,r)||(po=r,r=Hi(Vs,"onSelect"),0<r.length&&(t=new Fa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:ui("Animation","AnimationEnd"),animationiteration:ui("Animation","AnimationIteration"),animationstart:ui("Animation","AnimationStart"),transitionend:ui("Transition","TransitionEnd")},Jl={},Ef={};qt&&(Ef=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);function gl(e){if(Jl[e])return Jl[e];if(!fr[e])return e;var t=fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ef)return Jl[e]=t[n];return e}var Cf=gl("animationend"),Tf=gl("animationiteration"),jf=gl("animationstart"),Rf=gl("transitionend"),If=new Map,hu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function In(e,t){If.set(e,t),Kn(t,[e])}for(var es=0;es<hu.length;es++){var ts=hu[es],d0=ts.toLowerCase(),f0=ts[0].toUpperCase()+ts.slice(1);In(d0,"on"+f0)}In(Cf,"onAnimationEnd");In(Tf,"onAnimationIteration");In(jf,"onAnimationStart");In("dblclick","onDoubleClick");In("focusin","onFocus");In("focusout","onBlur");In(Rf,"onTransitionEnd");Tr("onMouseEnter",["mouseout","mouseover"]);Tr("onMouseLeave",["mouseout","mouseover"]);Tr("onPointerEnter",["pointerout","pointerover"]);Tr("onPointerLeave",["pointerout","pointerover"]);Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),p0=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function xu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dh(r,t,void 0,e),e.currentTarget=null}function zf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;xu(o,a,u),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,u=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;xu(o,a,u),i=c}}}if(Fi)throw e=Bs,Fi=!1,Bs=null,e}function Se(e,t){var n=t[qs];n===void 0&&(n=t[qs]=new Set);var r=e+"__bubble";n.has(r)||(Lf(t,e,2,!1),n.add(r))}function ns(e,t,n){var r=0;t&&(r|=4),Lf(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[di]){e[di]=!0,Md.forEach(function(n){n!=="selectionchange"&&(p0.has(n)||ns(n,!1,e),ns(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,ns("selectionchange",!1,t))}}function Lf(e,t,n,r){switch(hf(t)){case 1:var o=Th;break;case 4:o=jh;break;default:o=Oa}n=o.bind(null,t,n,e),o=void 0,!Ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rs(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Wn(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}ef(function(){var u=i,y=Aa(n),h=[];e:{var x=If.get(e);if(x!==void 0){var m=Fa,_=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":m=$h;break;case"focusin":_="focus",m=Kl;break;case"focusout":_="blur",m=Kl;break;case"beforeblur":case"afterblur":m=Kl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=ou;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=zh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Gh;break;case Cf:case Tf:case jf:m=Nh;break;case Rf:m=Xh;break;case"scroll":m=Rh;break;case"wheel":m=Kh;break;case"copy":case"cut":case"paste":m=Ph;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=lu}var w=(t&4)!==0,I=!w&&e==="scroll",p=w?x!==null?x+"Capture":null:x;w=[];for(var d=u,g;d!==null;){g=d;var v=g.stateNode;if(g.tag===5&&v!==null&&(g=v,p!==null&&(v=So(d,p),v!=null&&w.push(Ro(d,v,g)))),I)break;d=d.return}0<w.length&&(x=new m(x,_,null,n,y),h.push({event:x,listeners:w}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",x&&n!==Ms&&(_=n.relatedTarget||n.fromElement)&&(Wn(_)||_[Zt]))break e;if((m||x)&&(x=y.window===y?y:(x=y.ownerDocument)?x.defaultView||x.parentWindow:window,m?(_=n.relatedTarget||n.toElement,m=u,_=_?Wn(_):null,_!==null&&(I=qn(_),_!==I||_.tag!==5&&_.tag!==6)&&(_=null)):(m=null,_=u),m!==_)){if(w=ou,v="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=lu,v="onPointerLeave",p="onPointerEnter",d="pointer"),I=m==null?x:pr(m),g=_==null?x:pr(_),x=new w(v,d+"leave",m,n,y),x.target=I,x.relatedTarget=g,v=null,Wn(y)===u&&(w=new w(p,d+"enter",_,n,y),w.target=g,w.relatedTarget=I,v=w),I=v,m&&_)t:{for(w=m,p=_,d=0,g=w;g;g=rr(g))d++;for(g=0,v=p;v;v=rr(v))g++;for(;0<d-g;)w=rr(w),d--;for(;0<g-d;)p=rr(p),g--;for(;d--;){if(w===p||p!==null&&w===p.alternate)break t;w=rr(w),p=rr(p)}w=null}else w=null;m!==null&&yu(h,x,m,w,!1),_!==null&&I!==null&&yu(h,I,_,w,!0)}}e:{if(x=u?pr(u):window,m=x.nodeName&&x.nodeName.toLowerCase(),m==="select"||m==="input"&&x.type==="file")var R=r0;else if(cu(x))if(wf)R=s0;else{R=i0;var j=o0}else(m=x.nodeName)&&m.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(R=l0);if(R&&(R=R(e,u))){_f(h,R,n,y);break e}j&&j(e,x,u),e==="focusout"&&(j=x._wrapperState)&&j.controlled&&x.type==="number"&&As(x,"number",x.value)}switch(j=u?pr(u):window,e){case"focusin":(cu(j)||j.contentEditable==="true")&&(dr=j,Vs=u,po=null);break;case"focusout":po=Vs=dr=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,gu(h,n,y);break;case"selectionchange":if(u0)break;case"keydown":case"keyup":gu(h,n,y)}var N;if(Ba)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ur?mf(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(yf&&n.locale!=="ko"&&(ur||k!=="onCompositionStart"?k==="onCompositionEnd"&&ur&&(N=xf()):(yn=y,Ma="value"in yn?yn.value:yn.textContent,ur=!0)),j=Hi(u,k),0<j.length&&(k=new iu(k,e,null,n,y),h.push({event:k,listeners:j}),N?k.data=N:(N=vf(n),N!==null&&(k.data=N)))),(N=Zh?Jh(e,n):e0(e,n))&&(u=Hi(u,"onBeforeInput"),0<u.length&&(y=new iu("onBeforeInput","beforeinput",null,n,y),h.push({event:y,listeners:u}),y.data=N))}zf(h,t)})}function Ro(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=So(e,n),i!=null&&r.unshift(Ro(e,i,o)),i=So(e,t),i!=null&&r.push(Ro(e,i,o))),e=e.return}return r}function rr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yu(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,o?(c=So(n,i),c!=null&&s.unshift(Ro(n,c,a))):o||(c=So(n,i),c!=null&&s.push(Ro(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var g0=/\r\n?/g,h0=/\u0000|\uFFFD/g;function mu(e){return(typeof e=="string"?e:""+e).replace(g0,`
|
|
38
|
+
`).replace(h0,"")}function fi(e,t,n){if(t=mu(t),mu(e)!==t&&n)throw Error(B(425))}function Vi(){}var Ys=null,Xs=null;function Qs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ks=typeof setTimeout=="function"?setTimeout:void 0,x0=typeof clearTimeout=="function"?clearTimeout:void 0,vu=typeof Promise=="function"?Promise:void 0,y0=typeof queueMicrotask=="function"?queueMicrotask:typeof vu<"u"?function(e){return vu.resolve(null).then(e).catch(m0)}:Ks;function m0(e){setTimeout(function(){throw e})}function os(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Eo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Eo(t)}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _u(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Fr,Io="__reactProps$"+Fr,Zt="__reactContainer$"+Fr,qs="__reactEvents$"+Fr,v0="__reactListeners$"+Fr,_0="__reactHandles$"+Fr;function Wn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zt]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_u(e);e!==null;){if(n=e[Bt])return n;e=_u(e)}return t}e=n,n=e.parentNode}return null}function Wo(e){return e=e[Bt]||e[Zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function hl(e){return e[Io]||null}var Zs=[],gr=-1;function zn(e){return{current:e}}function be(e){0>gr||(e.current=Zs[gr],Zs[gr]=null,gr--)}function we(e,t){gr++,Zs[gr]=e.current,e.current=t}var jn={},et=zn(jn),dt=zn(!1),Vn=jn;function jr(e,t){var n=e.type.contextTypes;if(!n)return jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function Gi(){be(dt),be(et)}function wu(e,t,n){if(et.current!==jn)throw Error(B(168));we(et,t),we(dt,n)}function Af(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(B(108,oh(e)||"Unknown",o));return Ie({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,Vn=et.current,we(et,e),we(dt,dt.current),!0}function Su(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Af(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,be(dt),be(et),we(et,e)):be(dt),we(dt,n)}var Yt=null,xl=!1,is=!1;function Nf(e){Yt===null?Yt=[e]:Yt.push(e)}function w0(e){xl=!0,Nf(e)}function Ln(){if(!is&&Yt!==null){is=!0;var e=0,t=ye;try{var n=Yt;for(ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,xl=!1}catch(o){throw Yt!==null&&(Yt=Yt.slice(e+1)),of(Na,Ln),o}finally{ye=t,is=!1}}return null}var hr=[],xr=0,Xi=null,Qi=0,St=[],bt=0,Gn=null,Xt=1,Qt="";function Mn(e,t){hr[xr++]=Qi,hr[xr++]=Xi,Xi=e,Qi=t}function Df(e,t,n){St[bt++]=Xt,St[bt++]=Qt,St[bt++]=Gn,Gn=e;var r=Xt;e=Qt;var o=32-At(r)-1;r&=~(1<<o),n+=1;var i=32-At(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Xt=1<<32-At(t)+o|n<<o|r,Qt=i+e}else Xt=1<<i|n<<o|r,Qt=e}function $a(e){e.return!==null&&(Mn(e,1),Df(e,1,0))}function Ha(e){for(;e===Xi;)Xi=hr[--xr],hr[xr]=null,Qi=hr[--xr],hr[xr]=null;for(;e===Gn;)Gn=St[--bt],St[bt]=null,Qt=St[--bt],St[bt]=null,Xt=St[--bt],St[bt]=null}var mt=null,yt=null,Ee=!1,Lt=null;function Pf(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,yt=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gn!==null?{id:Xt,overflow:Qt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,yt=null,!0):!1;default:return!1}}function Js(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ea(e){if(Ee){var t=yt;if(t){var n=t;if(!bu(e,t)){if(Js(e))throw Error(B(418));t=Sn(n.nextSibling);var r=mt;t&&bu(e,t)?Pf(r,n):(e.flags=e.flags&-4097|2,Ee=!1,mt=e)}}else{if(Js(e))throw Error(B(418));e.flags=e.flags&-4097|2,Ee=!1,mt=e}}}function ku(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function pi(e){if(e!==mt)return!1;if(!Ee)return ku(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Qs(e.type,e.memoizedProps)),t&&(t=yt)){if(Js(e))throw Of(),Error(B(418));for(;t;)Pf(e,t),t=Sn(t.nextSibling)}if(ku(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=mt?Sn(e.stateNode.nextSibling):null;return!0}function Of(){for(var e=yt;e;)e=Sn(e.nextSibling)}function Rr(){yt=mt=null,Ee=!1}function Va(e){Lt===null?Lt=[e]:Lt.push(e)}var S0=nn.ReactCurrentBatchConfig;function Qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(B(309));var r=n.stateNode}if(!r)throw Error(B(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(B(284));if(!n._owner)throw Error(B(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Eu(e){var t=e._init;return t(e._payload)}function Mf(e){function t(p,d){if(e){var g=p.deletions;g===null?(p.deletions=[d],p.flags|=16):g.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function o(p,d){return p=Cn(p,d),p.index=0,p.sibling=null,p}function i(p,d,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<d?(p.flags|=2,d):g):(p.flags|=2,d)):(p.flags|=1048576,d)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,d,g,v){return d===null||d.tag!==6?(d=fs(g,p.mode,v),d.return=p,d):(d=o(d,g),d.return=p,d)}function c(p,d,g,v){var R=g.type;return R===cr?y(p,d,g.props.children,v,g.key):d!==null&&(d.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===dn&&Eu(R)===d.type)?(v=o(d,g.props),v.ref=Qr(p,d,g),v.return=p,v):(v=Ai(g.type,g.key,g.props,null,p.mode,v),v.ref=Qr(p,d,g),v.return=p,v)}function u(p,d,g,v){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=ps(g,p.mode,v),d.return=p,d):(d=o(d,g.children||[]),d.return=p,d)}function y(p,d,g,v,R){return d===null||d.tag!==7?(d=Hn(g,p.mode,v,R),d.return=p,d):(d=o(d,g),d.return=p,d)}function h(p,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=fs(""+d,p.mode,g),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ri:return g=Ai(d.type,d.key,d.props,null,p.mode,g),g.ref=Qr(p,null,d),g.return=p,g;case ar:return d=ps(d,p.mode,g),d.return=p,d;case dn:var v=d._init;return h(p,v(d._payload),g)}if(no(d)||Hr(d))return d=Hn(d,p.mode,g,null),d.return=p,d;gi(p,d)}return null}function x(p,d,g,v){var R=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return R!==null?null:a(p,d,""+g,v);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ri:return g.key===R?c(p,d,g,v):null;case ar:return g.key===R?u(p,d,g,v):null;case dn:return R=g._init,x(p,d,R(g._payload),v)}if(no(g)||Hr(g))return R!==null?null:y(p,d,g,v,null);gi(p,g)}return null}function m(p,d,g,v,R){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(g)||null,a(d,p,""+v,R);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:return p=p.get(v.key===null?g:v.key)||null,c(d,p,v,R);case ar:return p=p.get(v.key===null?g:v.key)||null,u(d,p,v,R);case dn:var j=v._init;return m(p,d,g,j(v._payload),R)}if(no(v)||Hr(v))return p=p.get(g)||null,y(d,p,v,R,null);gi(d,v)}return null}function _(p,d,g,v){for(var R=null,j=null,N=d,k=d=0,V=null;N!==null&&k<g.length;k++){N.index>k?(V=N,N=null):V=N.sibling;var $=x(p,N,g[k],v);if($===null){N===null&&(N=V);break}e&&N&&$.alternate===null&&t(p,N),d=i($,d,k),j===null?R=$:j.sibling=$,j=$,N=V}if(k===g.length)return n(p,N),Ee&&Mn(p,k),R;if(N===null){for(;k<g.length;k++)N=h(p,g[k],v),N!==null&&(d=i(N,d,k),j===null?R=N:j.sibling=N,j=N);return Ee&&Mn(p,k),R}for(N=r(p,N);k<g.length;k++)V=m(N,p,k,g[k],v),V!==null&&(e&&V.alternate!==null&&N.delete(V.key===null?k:V.key),d=i(V,d,k),j===null?R=V:j.sibling=V,j=V);return e&&N.forEach(function(re){return t(p,re)}),Ee&&Mn(p,k),R}function w(p,d,g,v){var R=Hr(g);if(typeof R!="function")throw Error(B(150));if(g=R.call(g),g==null)throw Error(B(151));for(var j=R=null,N=d,k=d=0,V=null,$=g.next();N!==null&&!$.done;k++,$=g.next()){N.index>k?(V=N,N=null):V=N.sibling;var re=x(p,N,$.value,v);if(re===null){N===null&&(N=V);break}e&&N&&re.alternate===null&&t(p,N),d=i(re,d,k),j===null?R=re:j.sibling=re,j=re,N=V}if($.done)return n(p,N),Ee&&Mn(p,k),R;if(N===null){for(;!$.done;k++,$=g.next())$=h(p,$.value,v),$!==null&&(d=i($,d,k),j===null?R=$:j.sibling=$,j=$);return Ee&&Mn(p,k),R}for(N=r(p,N);!$.done;k++,$=g.next())$=m(N,p,k,$.value,v),$!==null&&(e&&$.alternate!==null&&N.delete($.key===null?k:$.key),d=i($,d,k),j===null?R=$:j.sibling=$,j=$);return e&&N.forEach(function(ae){return t(p,ae)}),Ee&&Mn(p,k),R}function I(p,d,g,v){if(typeof g=="object"&&g!==null&&g.type===cr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ri:e:{for(var R=g.key,j=d;j!==null;){if(j.key===R){if(R=g.type,R===cr){if(j.tag===7){n(p,j.sibling),d=o(j,g.props.children),d.return=p,p=d;break e}}else if(j.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===dn&&Eu(R)===j.type){n(p,j.sibling),d=o(j,g.props),d.ref=Qr(p,j,g),d.return=p,p=d;break e}n(p,j);break}else t(p,j);j=j.sibling}g.type===cr?(d=Hn(g.props.children,p.mode,v,g.key),d.return=p,p=d):(v=Ai(g.type,g.key,g.props,null,p.mode,v),v.ref=Qr(p,d,g),v.return=p,p=v)}return s(p);case ar:e:{for(j=g.key;d!==null;){if(d.key===j)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(p,d.sibling),d=o(d,g.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=ps(g,p.mode,v),d.return=p,p=d}return s(p);case dn:return j=g._init,I(p,d,j(g._payload),v)}if(no(g))return _(p,d,g,v);if(Hr(g))return w(p,d,g,v);gi(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,g),d.return=p,p=d):(n(p,d),d=fs(g,p.mode,v),d.return=p,p=d),s(p)):n(p,d)}return I}var Ir=Mf(!0),Ff=Mf(!1),Ki=zn(null),qi=null,yr=null,Ga=null;function Ya(){Ga=yr=qi=null}function Xa(e){var t=Ki.current;be(Ki),e._currentValue=t}function ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){qi=e,Ga=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ga!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(qi===null)throw Error(B(308));yr=e,qi.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Bn=null;function Qa(e){Bn===null?Bn=[e]:Bn.push(e)}function Wf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Qa(t)):(n.next=o.next,o.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fn=!1;function Ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Jt(e,n)}return o=r.interleaved,o===null?(t.next=t,Qa(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jt(e,n)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Da(e,n)}}function Cu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zi(e,t,n,r){var o=e.updateQueue;fn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,u=c.next;c.next=null,s===null?i=u:s.next=u,s=c;var y=e.alternate;y!==null&&(y=y.updateQueue,a=y.lastBaseUpdate,a!==s&&(a===null?y.firstBaseUpdate=u:a.next=u,y.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,y=u=c=null,a=i;do{var x=a.lane,m=a.eventTime;if((r&x)===x){y!==null&&(y=y.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,w=a;switch(x=t,m=n,w.tag){case 1:if(_=w.payload,typeof _=="function"){h=_.call(m,h,x);break e}h=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=w.payload,x=typeof _=="function"?_.call(m,h,x):_,x==null)break e;h=Ie({},h,x);break e;case 2:fn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,x=o.effects,x===null?o.effects=[a]:x.push(a))}else m={eventTime:m,lane:x,tag:a.tag,payload:a.payload,callback:a.callback,next:null},y===null?(u=y=m,c=h):y=y.next=m,s|=x;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;x=a,a=x.next,x.next=null,o.lastBaseUpdate=x,o.shared.pending=null}}while(!0);if(y===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=y,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Xn|=s,e.lanes=s,e.memoizedState=h}}function Tu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(B(191,o));o.call(r)}}}var Bo={},Ht=zn(Bo),zo=zn(Bo),Lo=zn(Bo);function Un(e){if(e===Bo)throw Error(B(174));return e}function qa(e,t){switch(we(Lo,t),we(zo,e),we(Ht,Bo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ds(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ds(t,e)}be(Ht),we(Ht,t)}function zr(){be(Ht),be(zo),be(Lo)}function Uf(e){Un(Lo.current);var t=Un(Ht.current),n=Ds(t,e.type);t!==n&&(we(zo,e),we(Ht,n))}function Za(e){zo.current===e&&(be(Ht),be(zo))}var je=zn(0);function Ji(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ls=[];function Ja(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var ji=nn.ReactCurrentDispatcher,ss=nn.ReactCurrentBatchConfig,Yn=0,Re=null,Oe=null,Ue=null,el=!1,go=!1,Ao=0,b0=0;function Qe(){throw Error(B(321))}function ec(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function tc(e,t,n,r,o,i){if(Yn=i,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ji.current=e===null||e.memoizedState===null?T0:j0,e=n(r,o),go){i=0;do{if(go=!1,Ao=0,25<=i)throw Error(B(301));i+=1,Ue=Oe=null,t.updateQueue=null,ji.current=R0,e=n(r,o)}while(go)}if(ji.current=tl,t=Oe!==null&&Oe.next!==null,Yn=0,Ue=Oe=Re=null,el=!1,t)throw Error(B(300));return e}function nc(){var e=Ao!==0;return Ao=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Re.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Tt(){if(Oe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ue===null?Re.memoizedState:Ue.next;if(t!==null)Ue=t,Oe=e;else{if(e===null)throw Error(B(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ue===null?Re.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function No(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Tt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=Oe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,u=i;do{var y=u.lane;if((Yn&y)===y)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:y,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Re.lanes|=y,Xn|=y}u=u.next}while(u!==null&&u!==i);c===null?s=r:c.next=a,Dt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Re.lanes|=i,Xn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cs(e){var t=Tt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Dt(i,t.memoizedState)||(ut=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $f(){}function Hf(e,t){var n=Re,r=Tt(),o=t(),i=!Dt(r.memoizedState,o);if(i&&(r.memoizedState=o,ut=!0),r=r.queue,rc(Yf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Do(9,Gf.bind(null,n,r,o,t),void 0,null),$e===null)throw Error(B(349));Yn&30||Vf(n,t,o)}return o}function Vf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gf(e,t,n,r){t.value=n,t.getSnapshot=r,Xf(t)&&Qf(e)}function Yf(e,t,n){return n(function(){Xf(t)&&Qf(e)})}function Xf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Qf(e){var t=Jt(e,1);t!==null&&Nt(t,e,1,-1)}function ju(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=C0.bind(null,Re,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Kf(){return Tt().memoizedState}function Ri(e,t,n,r){var o=Wt();Re.flags|=e,o.memoizedState=Do(1|t,n,void 0,r===void 0?null:r)}function yl(e,t,n,r){var o=Tt();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var s=Oe.memoizedState;if(i=s.destroy,r!==null&&ec(r,s.deps)){o.memoizedState=Do(t,n,i,r);return}}Re.flags|=e,o.memoizedState=Do(1|t,n,i,r)}function Ru(e,t){return Ri(8390656,8,e,t)}function rc(e,t){return yl(2048,8,e,t)}function qf(e,t){return yl(4,2,e,t)}function Zf(e,t){return yl(4,4,e,t)}function Jf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ep(e,t,n){return n=n!=null?n.concat([e]):null,yl(4,4,Jf.bind(null,t,e),n)}function oc(){}function tp(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ec(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function np(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ec(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rp(e,t,n){return Yn&21?(Dt(n,t)||(n=af(),Re.lanes|=n,Xn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function k0(e,t){var n=ye;ye=n!==0&&4>n?n:4,e(!0);var r=ss.transition;ss.transition={};try{e(!1),t()}finally{ye=n,ss.transition=r}}function op(){return Tt().memoizedState}function E0(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ip(e))lp(t,n);else if(n=Wf(e,t,n,r),n!==null){var o=rt();Nt(n,e,r,o),sp(n,t,r)}}function C0(e,t,n){var r=En(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ip(e))lp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,s)){var c=t.interleaved;c===null?(o.next=o,Qa(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Wf(e,t,o,r),n!==null&&(o=rt(),Nt(n,e,r,o),sp(n,t,r))}}function ip(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function lp(e,t){go=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Da(e,n)}}var tl={readContext:Ct,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},T0={readContext:Ct,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ru,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,Jf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=E0.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:ju,useDebugValue:oc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=ju(!1),t=e[0];return e=k0.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=Wt();if(Ee){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),$e===null)throw Error(B(349));Yn&30||Vf(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ru(Yf.bind(null,r,i,e),[e]),r.flags|=2048,Do(9,Gf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=$e.identifierPrefix;if(Ee){var n=Qt,r=Xt;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ao++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=b0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},j0={readContext:Ct,useCallback:tp,useContext:Ct,useEffect:rc,useImperativeHandle:ep,useInsertionEffect:qf,useLayoutEffect:Zf,useMemo:np,useReducer:as,useRef:Kf,useState:function(){return as(No)},useDebugValue:oc,useDeferredValue:function(e){var t=Tt();return rp(t,Oe.memoizedState,e)},useTransition:function(){var e=as(No)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Hf,useId:op,unstable_isNewReconciler:!1},R0={readContext:Ct,useCallback:tp,useContext:Ct,useEffect:rc,useImperativeHandle:ep,useInsertionEffect:qf,useLayoutEffect:Zf,useMemo:np,useReducer:cs,useRef:Kf,useState:function(){return cs(No)},useDebugValue:oc,useDeferredValue:function(e){var t=Tt();return Oe===null?t.memoizedState=e:rp(t,Oe.memoizedState,e)},useTransition:function(){var e=cs(No)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Hf,useId:op,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function na(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ml={isMounted:function(e){return(e=e._reactInternals)?qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),o=En(e),i=Kt(r,o);i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Nt(t,e,o,r),Ti(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),o=En(e),i=Kt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Nt(t,e,o,r),Ti(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=En(e),o=Kt(n,r);o.tag=2,t!=null&&(o.callback=t),t=bn(e,o,r),t!==null&&(Nt(t,e,r,n),Ti(t,e,r))}};function Iu(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!To(n,r)||!To(o,i):!0}function ap(e,t,n){var r=!1,o=jn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ct(i):(o=ft(t)?Vn:et.current,r=t.contextTypes,i=(r=r!=null)?jr(e,o):jn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function zu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ml.enqueueReplaceState(t,t.state,null)}function ra(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ka(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ct(i):(i=ft(t)?Vn:et.current,o.context=jr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(na(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ml.enqueueReplaceState(o,o.state,null),Zi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lr(e,t){try{var n="",r=t;do n+=rh(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function oa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I0=typeof WeakMap=="function"?WeakMap:Map;function cp(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,ga=r),oa(e,t)},n}function up(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){oa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){oa(e,t),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=H0.bind(null,e,t,n),t.then(e,e))}function Au(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nu(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var z0=nn.ReactCurrentOwner,ut=!1;function nt(e,t,n,r){t.child=e===null?Ff(t,null,n,r):Ir(t,e.child,n,r)}function Du(e,t,n,r,o){n=n.render;var i=t.ref;return kr(t,o),r=tc(e,t,n,r,i,o),n=nc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&n&&$a(t),t.flags|=1,nt(e,t,r,o),t.child)}function Pu(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!fc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,dp(e,t,i,r,o)):(e=Ai(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:To,n(s,r)&&e.ref===t.ref)return en(e,t,o)}return t.flags|=1,e=Cn(i,r),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(To(i,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,en(e,t,o)}return ia(e,t,n,r,o)}function fp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(vr,ht),ht|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(vr,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(vr,ht),ht|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(vr,ht),ht|=r;return nt(e,t,o,n),t.child}function pp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ia(e,t,n,r,o){var i=ft(n)?Vn:et.current;return i=jr(t,i),kr(t,o),n=tc(e,t,n,r,i,o),r=nc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&r&&$a(t),t.flags|=1,nt(e,t,n,o),t.child)}function Ou(e,t,n,r,o){if(ft(n)){var i=!0;Yi(t)}else i=!1;if(kr(t,o),t.stateNode===null)Ii(e,t),ap(t,n,r),ra(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ct(u):(u=ft(n)?Vn:et.current,u=jr(t,u));var y=n.getDerivedStateFromProps,h=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==u)&&zu(t,s,r,u),fn=!1;var x=t.memoizedState;s.state=x,Zi(t,r,s,o),c=t.memoizedState,a!==r||x!==c||dt.current||fn?(typeof y=="function"&&(na(t,n,y,r),c=t.memoizedState),(a=fn||Iu(t,n,a,r,x,c,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Bf(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:It(t.type,a),s.props=u,h=t.pendingProps,x=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ct(c):(c=ft(n)?Vn:et.current,c=jr(t,c));var m=n.getDerivedStateFromProps;(y=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||x!==c)&&zu(t,s,r,c),fn=!1,x=t.memoizedState,s.state=x,Zi(t,r,s,o);var _=t.memoizedState;a!==h||x!==_||dt.current||fn?(typeof m=="function"&&(na(t,n,m,r),_=t.memoizedState),(u=fn||Iu(t,n,u,r,x,_,c)||!1)?(y||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),s.props=r,s.state=_,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),r=!1)}return la(e,t,n,r,i,o)}function la(e,t,n,r,o,i){pp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Su(t,n,!1),en(e,t,i);r=t.stateNode,z0.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ir(t,e.child,null,i),t.child=Ir(t,null,a,i)):nt(e,t,a,i),t.memoizedState=r.state,o&&Su(t,n,!0),t.child}function gp(e){var t=e.stateNode;t.pendingContext?wu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wu(e,t.context,!1),qa(e,t.containerInfo)}function Mu(e,t,n,r,o){return Rr(),Va(o),t.flags|=256,nt(e,t,n,r),t.child}var sa={dehydrated:null,treeContext:null,retryLane:0};function aa(e){return{baseLanes:e,cachePool:null,transitions:null}}function hp(e,t,n){var r=t.pendingProps,o=je.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),we(je,o&1),e===null)return ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=wl(s,r,0,null),e=Hn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=aa(n),t.memoizedState=sa,e):ic(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return L0(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Cn(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Cn(a,i):(i=Hn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?aa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=sa,r}return i=e.child,e=i.sibling,r=Cn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ic(e,t){return t=wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hi(e,t,n,r){return r!==null&&Va(r),Ir(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function L0(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=us(Error(B(422))),hi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=wl({mode:"visible",children:r.children},o,0,null),i=Hn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ir(t,e.child,null,s),t.child.memoizedState=aa(s),t.memoizedState=sa,i);if(!(t.mode&1))return hi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(B(419)),r=us(i,r,void 0),hi(e,t,s,r)}if(a=(s&e.childLanes)!==0,ut||a){if(r=$e,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Jt(e,o),Nt(r,e,o,-1))}return dc(),r=us(Error(B(421))),hi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=V0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yt=Sn(o.nextSibling),mt=t,Ee=!0,Lt=null,e!==null&&(St[bt++]=Xt,St[bt++]=Qt,St[bt++]=Gn,Xt=e.id,Qt=e.overflow,Gn=t),t=ic(t,r.children),t.flags|=4096,t)}function Fu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ta(e.return,t,n)}function ds(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function xp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(nt(e,t,r.children,n),r=je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fu(e,n,t);else if(e.tag===19)Fu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(je,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ji(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ds(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ji(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ds(t,!0,n,null,i);break;case"together":ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function en(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function A0(e,t,n){switch(t.tag){case 3:gp(t),Rr();break;case 5:Uf(t);break;case 1:ft(t.type)&&Yi(t);break;case 4:qa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;we(Ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?hp(e,t,n):(we(je,je.current&1),e=en(e,t,n),e!==null?e.sibling:null);we(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,fp(e,t,n)}return en(e,t,n)}var yp,ca,mp,vp;yp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ca=function(){};mp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Un(Ht.current);var i=null;switch(n){case"input":o=zs(e,o),r=zs(e,r),i=[];break;case"select":o=Ie({},o,{value:void 0}),r=Ie({},r,{value:void 0}),i=[];break;case"textarea":o=Ns(e,o),r=Ns(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vi)}Ps(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_o.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_o.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Se("scroll",e),i||a===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};vp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kr(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function N0(e,t,n){var r=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ft(t.type)&&Gi(),Ke(t),null;case 3:return r=t.stateNode,zr(),be(dt),be(et),Ja(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(ya(Lt),Lt=null))),ca(e,t),Ke(t),null;case 5:Za(t);var o=Un(Lo.current);if(n=t.type,e!==null&&t.stateNode!=null)mp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(B(166));return Ke(t),null}if(e=Un(Ht.current),pi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Bt]=t,r[Io]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(o=0;o<oo.length;o++)Se(oo[o],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Xc(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":Kc(r,i),Se("invalid",r)}Ps(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&fi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&fi(r.textContent,a,e),o=["children",""+a]):_o.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Se("scroll",r)}switch(n){case"input":oi(r),Qc(r,i,!0);break;case"textarea":oi(r),qc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Vi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Bt]=t,e[Io]=r,yp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Os(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o<oo.length;o++)Se(oo[o],e);o=r;break;case"source":Se("error",e),o=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),o=r;break;case"details":Se("toggle",e),o=r;break;case"input":Xc(e,r),o=zs(e,r),Se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ie({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Kc(e,r),o=Ns(e,r),Se("invalid",e);break;default:o=r}Ps(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?Qd(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Yd(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&wo(e,c):typeof c=="number"&&wo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(_o.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Se("scroll",e):c!=null&&Ra(e,i,c,s))}switch(n){case"input":oi(e),Qc(e,r,!1);break;case"textarea":oi(e),qc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_r(e,!!r.multiple,i,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Vi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)vp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(B(166));if(n=Un(Lo.current),Un(Ht.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(i=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:fi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Ke(t),null;case 13:if(be(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&yt!==null&&t.mode&1&&!(t.flags&128))Of(),Rr(),t.flags|=98560,i=!1;else if(i=pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(B(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(B(317));i[Bt]=t}else Rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Lt!==null&&(ya(Lt),Lt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||je.current&1?Fe===0&&(Fe=3):dc())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return zr(),ca(e,t),e===null&&jo(t.stateNode.containerInfo),Ke(t),null;case 10:return Xa(t.type._context),Ke(t),null;case 17:return ft(t.type)&&Gi(),Ke(t),null;case 19:if(be(je),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Kr(i,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ji(e),s!==null){for(t.flags|=128,Kr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Ar&&(t.flags|=128,r=!0,Kr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ji(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ee)return Ke(t),null}else 2*Ae()-i.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,r=!0,Kr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=je.current,we(je,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return uc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function D0(e,t){switch(Ha(t),t.tag){case 1:return ft(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zr(),be(dt),be(et),Ja(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Za(t),null;case 13:if(be(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(je),null;case 4:return zr(),null;case 10:return Xa(t.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var xi=!1,Ze=!1,P0=typeof WeakSet=="function"?WeakSet:Set,X=null;function mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function ua(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Wu=!1;function O0(e,t){if(Ys=Ui,e=kf(),Ua(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,y=0,h=e,x=null;t:for(;;){for(var m;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)x=h,h=m;for(;;){if(h===e)break t;if(x===n&&++u===o&&(a=s),x===i&&++y===r&&(c=s),(m=h.nextSibling)!==null)break;h=x,x=h.parentNode}h=m}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xs={focusedElem:e,selectionRange:n},Ui=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var w=_.memoizedProps,I=_.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:It(t.type,w),I);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(v){Le(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return _=Wu,Wu=!1,_}function ho(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ua(t,n,i)}o=o.next}while(o!==r)}}function vl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[Io],delete t[qs],delete t[v0],delete t[_0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wp(e){return e.tag===5||e.tag===3||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vi));else if(r!==4&&(e=e.child,e!==null))for(fa(e,t,n),e=e.sibling;e!==null;)fa(e,t,n),e=e.sibling}function pa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}var He=null,zt=!1;function sn(e,t,n){for(n=n.child;n!==null;)Sp(e,t,n),n=n.sibling}function Sp(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:Ze||mr(n,t);case 6:var r=He,o=zt;He=null,sn(e,t,n),He=r,zt=o,He!==null&&(zt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(zt?(e=He,n=n.stateNode,e.nodeType===8?os(e.parentNode,n):e.nodeType===1&&os(e,n),Eo(e)):os(He,n.stateNode));break;case 4:r=He,o=zt,He=n.stateNode.containerInfo,zt=!0,sn(e,t,n),He=r,zt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ua(n,t,s),o=o.next}while(o!==r)}sn(e,t,n);break;case 1:if(!Ze&&(mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,sn(e,t,n),Ze=r):sn(e,t,n);break;default:sn(e,t,n)}}function Uu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new P0),t.forEach(function(r){var o=G0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,zt=!1;break e;case 3:He=a.stateNode.containerInfo,zt=!0;break e;case 4:He=a.stateNode.containerInfo,zt=!0;break e}a=a.return}if(He===null)throw Error(B(160));Sp(i,s,o),He=null,zt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Le(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bp(t,e),t=t.sibling}function bp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Ft(e),r&4){try{ho(3,e,e.return),vl(3,e)}catch(w){Le(e,e.return,w)}try{ho(5,e,e.return)}catch(w){Le(e,e.return,w)}}break;case 1:jt(t,e),Ft(e),r&512&&n!==null&&mr(n,n.return);break;case 5:if(jt(t,e),Ft(e),r&512&&n!==null&&mr(n,n.return),e.flags&32){var o=e.stateNode;try{wo(o,"")}catch(w){Le(e,e.return,w)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Hd(o,i),Os(a,s);var u=Os(a,i);for(s=0;s<c.length;s+=2){var y=c[s],h=c[s+1];y==="style"?Qd(o,h):y==="dangerouslySetInnerHTML"?Yd(o,h):y==="children"?wo(o,h):Ra(o,y,h,u)}switch(a){case"input":Ls(o,i);break;case"textarea":Vd(o,i);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?_r(o,!!i.multiple,m,!1):x!==!!i.multiple&&(i.defaultValue!=null?_r(o,!!i.multiple,i.defaultValue,!0):_r(o,!!i.multiple,i.multiple?[]:"",!1))}o[Io]=i}catch(w){Le(e,e.return,w)}}break;case 6:if(jt(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(B(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){Le(e,e.return,w)}}break;case 3:if(jt(t,e),Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Eo(t.containerInfo)}catch(w){Le(e,e.return,w)}break;case 4:jt(t,e),Ft(e);break;case 13:jt(t,e),Ft(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ac=Ae())),r&4&&Uu(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(u=Ze)||y,jt(t,e),Ze=u):jt(t,e),Ft(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!y&&e.mode&1)for(X=e,y=e.child;y!==null;){for(h=X=y;X!==null;){switch(x=X,m=x.child,x.tag){case 0:case 11:case 14:case 15:ho(4,x,x.return);break;case 1:mr(x,x.return);var _=x.stateNode;if(typeof _.componentWillUnmount=="function"){r=x,n=x.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(w){Le(r,n,w)}}break;case 5:mr(x,x.return);break;case 22:if(x.memoizedState!==null){Hu(h);continue}}m!==null?(m.return=x,X=m):Hu(h)}y=y.sibling}e:for(y=null,h=e;;){if(h.tag===5){if(y===null){y=h;try{o=h.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=Xd("display",s))}catch(w){Le(e,e.return,w)}}}else if(h.tag===6){if(y===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(w){Le(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;y===h&&(y=null),h=h.return}y===h&&(y=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:jt(t,e),Ft(e),r&4&&Uu(e);break;case 21:break;default:jt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wp(n)){var r=n;break e}n=n.return}throw Error(B(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wo(o,""),r.flags&=-33);var i=Bu(e);pa(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Bu(e);fa(e,a,s);break;default:throw Error(B(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function M0(e,t,n){X=e,kp(e)}function kp(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var o=X,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xi;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Ze;a=xi;var u=Ze;if(xi=s,(Ze=c)&&!u)for(X=o;X!==null;)s=X,c=s.child,s.tag===22&&s.memoizedState!==null?Vu(o):c!==null?(c.return=s,X=c):Vu(o);for(;i!==null;)X=i,kp(i),i=i.sibling;X=o,xi=a,Ze=u}$u(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,X=i):$u(e)}}function $u(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Tu(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tu(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var y=u.memoizedState;if(y!==null){var h=y.dehydrated;h!==null&&Eo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(B(163))}Ze||t.flags&512&&da(t)}catch(x){Le(t,t.return,x)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Hu(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Vu(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vl(4,t)}catch(c){Le(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Le(t,o,c)}}var i=t.return;try{da(t)}catch(c){Le(t,i,c)}break;case 5:var s=t.return;try{da(t)}catch(c){Le(t,s,c)}}}catch(c){Le(t,t.return,c)}if(t===e){X=null;break}var a=t.sibling;if(a!==null){a.return=t.return,X=a;break}X=t.return}}var F0=Math.ceil,nl=nn.ReactCurrentDispatcher,lc=nn.ReactCurrentOwner,Et=nn.ReactCurrentBatchConfig,pe=0,$e=null,Ne=null,Ge=0,ht=0,vr=zn(0),Fe=0,Po=null,Xn=0,_l=0,sc=0,xo=null,ct=null,ac=0,Ar=1/0,Gt=null,rl=!1,ga=null,kn=null,yi=!1,mn=null,ol=0,yo=0,ha=null,zi=-1,Li=0;function rt(){return pe&6?Ae():zi!==-1?zi:zi=Ae()}function En(e){return e.mode&1?pe&2&&Ge!==0?Ge&-Ge:S0.transition!==null?(Li===0&&(Li=af()),Li):(e=ye,e!==0||(e=window.event,e=e===void 0?16:hf(e.type)),e):1}function Nt(e,t,n,r){if(50<yo)throw yo=0,ha=null,Error(B(185));Mo(e,n,r),(!(pe&2)||e!==$e)&&(e===$e&&(!(pe&2)&&(_l|=n),Fe===4&&gn(e,Ge)),pt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Ar=Ae()+500,xl&&Ln()))}function pt(e,t){var n=e.callbackNode;Sh(e,t);var r=Bi(e,e===$e?Ge:0);if(r===0)n!==null&&eu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&eu(n),t===1)e.tag===0?w0(Gu.bind(null,e)):Nf(Gu.bind(null,e)),y0(function(){!(pe&6)&&Ln()}),n=null;else{switch(cf(r)){case 1:n=Na;break;case 4:n=lf;break;case 16:n=Wi;break;case 536870912:n=sf;break;default:n=Wi}n=Lp(n,Ep.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ep(e,t){if(zi=-1,Li=0,pe&6)throw Error(B(327));var n=e.callbackNode;if(Er()&&e.callbackNode!==n)return null;var r=Bi(e,e===$e?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=il(e,r);else{t=r;var o=pe;pe|=2;var i=Tp();($e!==e||Ge!==t)&&(Gt=null,Ar=Ae()+500,$n(e,t));do try{U0();break}catch(a){Cp(e,a)}while(!0);Ya(),nl.current=i,pe=o,Ne!==null?t=0:($e=null,Ge=0,t=Fe)}if(t!==0){if(t===2&&(o=Us(e),o!==0&&(r=o,t=xa(e,o))),t===1)throw n=Po,$n(e,0),gn(e,r),pt(e,Ae()),n;if(t===6)gn(e,r);else{if(o=e.current.alternate,!(r&30)&&!W0(o)&&(t=il(e,r),t===2&&(i=Us(e),i!==0&&(r=i,t=xa(e,i))),t===1))throw n=Po,$n(e,0),gn(e,r),pt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(B(345));case 2:Fn(e,ct,Gt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=ac+500-Ae(),10<t)){if(Bi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ks(Fn.bind(null,e,ct,Gt),t);break}Fn(e,ct,Gt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-At(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*F0(r/1960))-r,10<r){e.timeoutHandle=Ks(Fn.bind(null,e,ct,Gt),r);break}Fn(e,ct,Gt);break;case 5:Fn(e,ct,Gt);break;default:throw Error(B(329))}}}return pt(e,Ae()),e.callbackNode===n?Ep.bind(null,e):null}function xa(e,t){var n=xo;return e.current.memoizedState.isDehydrated&&($n(e,t).flags|=256),e=il(e,t),e!==2&&(t=ct,ct=n,t!==null&&ya(t)),e}function ya(e){ct===null?ct=e:ct.push.apply(ct,e)}function W0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Dt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gn(e,t){for(t&=~sc,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Gu(e){if(pe&6)throw Error(B(327));Er();var t=Bi(e,0);if(!(t&1))return pt(e,Ae()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=Us(e);r!==0&&(t=r,n=xa(e,r))}if(n===1)throw n=Po,$n(e,0),gn(e,t),pt(e,Ae()),n;if(n===6)throw Error(B(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fn(e,ct,Gt),pt(e,Ae()),null}function cc(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Ar=Ae()+500,xl&&Ln())}}function Qn(e){mn!==null&&mn.tag===0&&!(pe&6)&&Er();var t=pe;pe|=1;var n=Et.transition,r=ye;try{if(Et.transition=null,ye=1,e)return e()}finally{ye=r,Et.transition=n,pe=t,!(pe&6)&&Ln()}}function uc(){ht=vr.current,be(vr)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x0(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:zr(),be(dt),be(et),Ja();break;case 5:Za(r);break;case 4:zr();break;case 13:be(je);break;case 19:be(je);break;case 10:Xa(r.type._context);break;case 22:case 23:uc()}n=n.return}if($e=e,Ne=e=Cn(e.current,null),Ge=ht=t,Fe=0,Po=null,sc=_l=Xn=0,ct=xo=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Bn=null}return e}function Cp(e,t){do{var n=Ne;try{if(Ya(),ji.current=tl,el){for(var r=Re.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}el=!1}if(Yn=0,Ue=Oe=Re=null,go=!1,Ao=0,lc.current=null,n===null||n.return===null){Fe=1,Po=t,Ne=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=Ge,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,y=a,h=y.tag;if(!(y.mode&1)&&(h===0||h===11||h===15)){var x=y.alternate;x?(y.updateQueue=x.updateQueue,y.memoizedState=x.memoizedState,y.lanes=x.lanes):(y.updateQueue=null,y.memoizedState=null)}var m=Au(s);if(m!==null){m.flags&=-257,Nu(m,s,a,i,t),m.mode&1&&Lu(i,u,t),t=m,c=u;var _=t.updateQueue;if(_===null){var w=new Set;w.add(c),t.updateQueue=w}else _.add(c);break e}else{if(!(t&1)){Lu(i,u,t),dc();break e}c=Error(B(426))}}else if(Ee&&a.mode&1){var I=Au(s);if(I!==null){!(I.flags&65536)&&(I.flags|=256),Nu(I,s,a,i,t),Va(Lr(c,a));break e}}i=c=Lr(c,a),Fe!==4&&(Fe=2),xo===null?xo=[i]:xo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=cp(i,c,t);Cu(i,p);break e;case 1:a=c;var d=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(kn===null||!kn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var v=up(i,a,t);Cu(i,v);break e}}i=i.return}while(i!==null)}Rp(n)}catch(R){t=R,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Tp(){var e=nl.current;return nl.current=tl,e===null?tl:e}function dc(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),$e===null||!(Xn&268435455)&&!(_l&268435455)||gn($e,Ge)}function il(e,t){var n=pe;pe|=2;var r=Tp();($e!==e||Ge!==t)&&(Gt=null,$n(e,t));do try{B0();break}catch(o){Cp(e,o)}while(!0);if(Ya(),pe=n,nl.current=r,Ne!==null)throw Error(B(261));return $e=null,Ge=0,Fe}function B0(){for(;Ne!==null;)jp(Ne)}function U0(){for(;Ne!==null&&!ph();)jp(Ne)}function jp(e){var t=zp(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Rp(e):Ne=t,lc.current=null}function Rp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=D0(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Ne=null;return}}else if(n=N0(n,t,ht),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Fe===0&&(Fe=5)}function Fn(e,t,n){var r=ye,o=Et.transition;try{Et.transition=null,ye=1,$0(e,t,n,r)}finally{Et.transition=o,ye=r}return null}function $0(e,t,n,r){do Er();while(mn!==null);if(pe&6)throw Error(B(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(B(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(bh(e,i),e===$e&&(Ne=$e=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yi||(yi=!0,Lp(Wi,function(){return Er(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Et.transition,Et.transition=null;var s=ye;ye=1;var a=pe;pe|=4,lc.current=null,O0(e,n),bp(n,e),c0(Xs),Ui=!!Ys,Xs=Ys=null,e.current=n,M0(n),gh(),pe=a,ye=s,Et.transition=i}else e.current=n;if(yi&&(yi=!1,mn=e,ol=o),i=e.pendingLanes,i===0&&(kn=null),yh(n.stateNode),pt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(rl)throw rl=!1,e=ga,ga=null,e;return ol&1&&e.tag!==0&&Er(),i=e.pendingLanes,i&1?e===ha?yo++:(yo=0,ha=e):yo=0,Ln(),null}function Er(){if(mn!==null){var e=cf(ol),t=Et.transition,n=ye;try{if(Et.transition=null,ye=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,ol=0,pe&6)throw Error(B(331));var o=pe;for(pe|=4,X=e.current;X!==null;){var i=X,s=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(X=u;X!==null;){var y=X;switch(y.tag){case 0:case 11:case 15:ho(8,y,i)}var h=y.child;if(h!==null)h.return=y,X=h;else for(;X!==null;){y=X;var x=y.sibling,m=y.return;if(_p(y),y===u){X=null;break}if(x!==null){x.return=m,X=x;break}X=m}}}var _=i.alternate;if(_!==null){var w=_.child;if(w!==null){_.child=null;do{var I=w.sibling;w.sibling=null,w=I}while(w!==null)}}X=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,X=s;else e:for(;X!==null;){if(i=X,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ho(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,X=p;break e}X=i.return}}var d=e.current;for(X=d;X!==null;){s=X;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,X=g;else e:for(s=d;X!==null;){if(a=X,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:vl(9,a)}}catch(R){Le(a,a.return,R)}if(a===s){X=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,X=v;break e}X=a.return}}if(pe=o,Ln(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(dl,e)}catch{}r=!0}return r}finally{ye=n,Et.transition=t}}return!1}function Yu(e,t,n){t=Lr(n,t),t=cp(e,t,1),e=bn(e,t,1),t=rt(),e!==null&&(Mo(e,1,t),pt(e,t))}function Le(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kn===null||!kn.has(r))){e=Lr(n,e),e=up(t,e,1),t=bn(t,e,1),e=rt(),t!==null&&(Mo(t,1,e),pt(t,e));break}}t=t.return}}function H0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Ge&n)===n&&(Fe===4||Fe===3&&(Ge&130023424)===Ge&&500>Ae()-ac?$n(e,0):sc|=n),pt(e,t)}function Ip(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=rt();e=Jt(e,t),e!==null&&(Mo(e,t,n),pt(e,n))}function V0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ip(e,n)}function G0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(B(314))}r!==null&&r.delete(t),Ip(e,n)}var zp;zp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,A0(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Ee&&t.flags&1048576&&Df(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var o=jr(t,et.current);kr(t,n),o=tc(null,t,r,e,o,n);var i=nc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ka(t),o.updater=ml,t.stateNode=o,o._reactInternals=t,ra(t,r,e,n),t=la(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&$a(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=X0(r),e=It(r,e),o){case 0:t=ia(null,t,r,e,n);break e;case 1:t=Ou(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Pu(null,t,r,It(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),ia(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Ou(e,t,r,o,n);case 3:e:{if(gp(t),e===null)throw Error(B(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bf(e,t),Zi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lr(Error(B(423)),t),t=Mu(e,t,r,n,o);break e}else if(r!==o){o=Lr(Error(B(424)),t),t=Mu(e,t,r,n,o);break e}else for(yt=Sn(t.stateNode.containerInfo.firstChild),mt=t,Ee=!0,Lt=null,n=Ff(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rr(),r===o){t=en(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return Uf(t),e===null&&ea(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Qs(r,o)?s=null:i!==null&&Qs(r,i)&&(t.flags|=32),pp(e,t),nt(e,t,s,n),t.child;case 6:return e===null&&ea(t),null;case 13:return hp(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Du(e,t,r,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,we(Ki,r._currentValue),r._currentValue=s,i!==null)if(Dt(i.value,s)){if(i.children===o.children&&!dt.current){t=en(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Kt(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var y=u.pending;y===null?c.next=c:(c.next=y.next,y.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),ta(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(B(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ta(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,kr(t,n),o=Ct(o),r=r(o),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,o=It(r,t.pendingProps),o=It(r.type,o),Pu(e,t,r,o,n);case 15:return dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Ii(e,t),t.tag=1,ft(r)?(e=!0,Yi(t)):e=!1,kr(t,n),ap(t,r,o),ra(t,r,o,n),la(null,t,r,!0,e,n);case 19:return xp(e,t,n);case 22:return fp(e,t,n)}throw Error(B(156,t.tag))};function Lp(e,t){return of(e,t)}function Y0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,r){return new Y0(e,t,n,r)}function fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X0(e){if(typeof e=="function")return fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===La)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ai(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")fc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case cr:return Hn(n.children,o,i,t);case Ia:s=8,o|=8;break;case Ts:return e=kt(12,n,t,o|2),e.elementType=Ts,e.lanes=i,e;case js:return e=kt(13,n,t,o),e.elementType=js,e.lanes=i,e;case Rs:return e=kt(19,n,t,o),e.elementType=Rs,e.lanes=i,e;case Bd:return wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fd:s=10;break e;case Wd:s=9;break e;case za:s=11;break e;case La:s=14;break e;case dn:s=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=kt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=kt(22,e,r,t),e.elementType=Bd,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function ps(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pc(e,t,n,r,o,i,s,a,c){return e=new Q0(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ka(i),e}function K0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ap(e){if(!e)return jn;e=e._reactInternals;e:{if(qn(e)!==e||e.tag!==1)throw Error(B(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(B(171))}if(e.tag===1){var n=e.type;if(ft(n))return Af(e,n,t)}return t}function Np(e,t,n,r,o,i,s,a,c){return e=pc(n,r,!0,e,o,i,s,a,c),e.context=Ap(null),n=e.current,r=rt(),o=En(n),i=Kt(r,o),i.callback=t??null,bn(n,i,o),e.current.lanes=o,Mo(e,o,r),pt(e,r),e}function Sl(e,t,n,r){var o=t.current,i=rt(),s=En(o);return n=Ap(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bn(o,t,s),e!==null&&(Nt(e,o,s,i),Ti(e,o,s)),s}function ll(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gc(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function q0(){return null}var Dp=typeof reportError=="function"?reportError:function(e){console.error(e)};function hc(e){this._internalRoot=e}bl.prototype.render=hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));Sl(e,t,null,null)};bl.prototype.unmount=hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qn(function(){Sl(null,e,null,null)}),t[Zt]=null}};function bl(e){this._internalRoot=e}bl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ff();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&gf(e)}};function xc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qu(){}function Z0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ll(s);i.call(u)}}var s=Np(t,r,e,0,null,!1,!1,"",Qu);return e._reactRootContainer=s,e[Zt]=s.current,jo(e.nodeType===8?e.parentNode:e),Qn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=ll(c);a.call(u)}}var c=pc(e,0,!1,null,null,!1,!1,"",Qu);return e._reactRootContainer=c,e[Zt]=c.current,jo(e.nodeType===8?e.parentNode:e),Qn(function(){Sl(t,c,n,r)}),c}function El(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=ll(s);a.call(c)}}Sl(t,s,e,o)}else s=Z0(n,t,e,o,r);return ll(s)}uf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(Da(t,n|1),pt(t,Ae()),!(pe&6)&&(Ar=Ae()+500,Ln()))}break;case 13:Qn(function(){var r=Jt(e,1);if(r!==null){var o=rt();Nt(r,e,1,o)}}),gc(e,1)}};Pa=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=rt();Nt(t,e,134217728,n)}gc(e,134217728)}};df=function(e){if(e.tag===13){var t=En(e),n=Jt(e,t);if(n!==null){var r=rt();Nt(n,e,t,r)}gc(e,t)}};ff=function(){return ye};pf=function(e,t){var n=ye;try{return ye=e,t()}finally{ye=n}};Fs=function(e,t,n){switch(t){case"input":if(Ls(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=hl(r);if(!o)throw Error(B(90));$d(r),Ls(r,o)}}}break;case"textarea":Vd(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};Zd=cc;Jd=Qn;var J0={usingClientEntryPoint:!1,Events:[Wo,pr,hl,Kd,qd,cc]},qr={findFiberByHostInstance:Wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ex={bundleType:qr.bundleType,version:qr.version,rendererPackageName:qr.rendererPackageName,rendererConfig:qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nf(e),e===null?null:e.stateNode},findFiberByHostInstance:qr.findFiberByHostInstance||q0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{dl=mi.inject(ex),$t=mi}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J0;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xc(t))throw Error(B(200));return K0(e,t,null,n)};_t.createRoot=function(e,t){if(!xc(e))throw Error(B(299));var n=!1,r="",o=Dp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=pc(e,1,!1,null,null,n,!1,r,o),e[Zt]=t.current,jo(e.nodeType===8?e.parentNode:e),new hc(t)};_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=nf(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return Qn(e)};_t.hydrate=function(e,t,n){if(!kl(t))throw Error(B(200));return El(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!xc(e))throw Error(B(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Dp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Np(t,null,e,1,n??null,o,!1,i,s),e[Zt]=t.current,jo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new bl(t)};_t.render=function(e,t,n){if(!kl(t))throw Error(B(200));return El(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!kl(e))throw Error(B(40));return e._reactRootContainer?(Qn(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[Zt]=null})}),!0):!1};_t.unstable_batchedUpdates=cc;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!kl(n))throw Error(B(200));if(e==null||e._reactInternals===void 0)throw Error(B(38));return El(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Pp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pp)}catch(e){console.error(e)}}Pp(),Dd.exports=_t;var tx=Dd.exports,Ku=tx;Es.createRoot=Ku.createRoot,Es.hydrateRoot=Ku.hydrateRoot;function yc(e,t,n){if(!t||!n)return;const r=n.lastIndexOf(":::");if(r!==-1&&n.slice(0,r)!==t)return;const o=r===-1?n:n.slice(r+3);return e.filter(i=>i.fileName===t).flatMap(i=>i.steps).find(i=>i.id===o)}function Op(e,t){return e.filter(r=>r.fileName===t).flatMap(r=>r.steps).findLast(r=>!!r.screenshot)}function qu(e,t){var o;const r=Object.hasOwn(e.historicalStepIds,t)?e.historicalStepIds[t]:e.isRunning?null:(o=Op(e.testScenarios,t))==null?void 0:o.id;return r&&yc(e.testScenarios,t,r)?`${t}:::${r}`:null}function mc(e,t){return t?e.filter(n=>n.fileName===t):e}const nx={},Zu=e=>{let t;const n=new Set,r=(y,h)=>{const x=typeof y=="function"?y(t):y;if(!Object.is(x,t)){const m=t;t=h??(typeof x!="object"||x===null)?x:Object.assign({},t,x),n.forEach(_=>_(t,m))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:y=>(n.add(y),()=>n.delete(y)),destroy:()=>{(nx?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},rx=e=>e?Zu(e):Zu;var Mp={exports:{}},Fp={},Wp={exports:{}},Bp={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* use-sync-external-store-shim.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var Nr=b;function ox(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ix=typeof Object.is=="function"?Object.is:ox,lx=Nr.useState,sx=Nr.useEffect,ax=Nr.useLayoutEffect,cx=Nr.useDebugValue;function ux(e,t){var n=t(),r=lx({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ax(function(){o.value=n,o.getSnapshot=t,gs(o)&&i({inst:o})},[e,n,t]),sx(function(){return gs(o)&&i({inst:o}),e(function(){gs(o)&&i({inst:o})})},[e]),cx(n),n}function gs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ix(e,n)}catch{return!0}}function dx(e,t){return t()}var fx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dx:ux;Bp.useSyncExternalStore=Nr.useSyncExternalStore!==void 0?Nr.useSyncExternalStore:fx;Wp.exports=Bp;var px=Wp.exports;/**
|
|
49
|
+
* @license React
|
|
50
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var Cl=b,gx=px;function hx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xx=typeof Object.is=="function"?Object.is:hx,yx=gx.useSyncExternalStore,mx=Cl.useRef,vx=Cl.useEffect,_x=Cl.useMemo,wx=Cl.useDebugValue;Fp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=mx(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=_x(function(){function c(m){if(!u){if(u=!0,y=m,m=r(m),o!==void 0&&s.hasValue){var _=s.value;if(o(_,m))return h=_}return h=m}if(_=h,xx(y,m))return _;var w=r(m);return o!==void 0&&o(_,w)?(y=m,_):(y=m,h=w)}var u=!1,y,h,x=n===void 0?null:n;return[function(){return c(t())},x===null?void 0:function(){return c(x())}]},[t,n,r,o]);var a=yx(e,i[0],i[1]);return vx(function(){s.hasValue=!0,s.value=a},[a]),wx(a),a};Mp.exports=Fp;var Sx=Mp.exports;const bx=bd(Sx),Up={},{useDebugValue:kx}=Hg,{useSyncExternalStoreWithSelector:Ex}=bx;let Ju=!1;const Cx=e=>e;function Tx(e,t=Cx,n){(Up?"production":void 0)!=="production"&&n&&!Ju&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ju=!0);const r=Ex(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return kx(r),r}const ed=e=>{(Up?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?rx(e):e,n=(r,o)=>Tx(t,r,o);return Object.assign(n,t),n},jx=e=>e?ed(e):ed,Je=jx(e=>({browserInfo:{},setBrowserInfo:(t,n)=>e(r=>({activeTestFile:r.activeTestFile||t,browserInfo:{...r.browserInfo,[t]:n}})),isRunning:!1,timer:0,completedSteps:[],activeStepId:null,historicalStepIds:{},activeView:"Flows",activeTestFile:"",activeHistoricalRunId:null,browserFrames:{},currentUrls:{},pageTitles:{},activeNetworkTab:"REST",selectedLogId:null,logs:[],networkLogs:[],assertions:[],activeReplay:null,testScenarios:[],setActiveView:t=>e({activeView:t}),setNetworkTab:t=>e({activeNetworkTab:t}),setStepComplete:t=>e(n=>({completedSteps:[...n.completedSteps,t]})),setActiveStepId:t=>e(n=>{const r=(t==null?void 0:t.lastIndexOf(":::"))??-1,o=r===-1?n.activeTestFile:t.slice(0,r),i=yc(n.testScenarios,o,t);if(t&&!i)return n;const s=(i==null?void 0:i.id)||null;return{activeTestFile:o,activeStepId:s?`${o}:::${s}`:null,historicalStepIds:{...n.historicalStepIds,[o]:s},...o!==n.activeTestFile?{selectedLogId:null,activeReplay:null}:{}}}),setActiveTestFile:t=>e(n=>t===n.activeTestFile?n:{activeTestFile:t,activeStepId:qu(n,t),selectedLogId:null,activeReplay:null}),setActiveHistoricalRunId:t=>e({activeHistoricalRunId:t}),setSelectedLogId:t=>e(n=>{const r=n.logs.find(o=>o.id===t);if(r&&(r.type==="REST"||r.type==="GRAPHQL")){const o=r.details||{},i=o.rawReplayRequest&&typeof o.rawReplayRequest=="object"?o.rawReplayRequest:void 0;return{selectedLogId:t,activeReplay:{method:(i==null?void 0:i.method)||o.method||"GET",url:(i==null?void 0:i.url)||o.url||"",headers:JSON.stringify((i==null?void 0:i.headers)||o.requestHeaders||{},null,2),body:i?i.body??"":typeof o.requestBody=="object"?JSON.stringify(o.requestBody,null,2):o.requestBody||"",response:null,status:null,error:null,requestId:null,isLoading:!1}}}return{selectedLogId:t,activeReplay:null}}),setPageMetadata:(t,n,r)=>e(o=>({currentUrls:{...o.currentUrls,[t]:n},pageTitles:{...o.pageTitles,[t]:r}})),setBrowserFrame:(t,n)=>e(r=>({browserFrames:{...r.browserFrames,[t]:n}})),incrementTimer:()=>e(t=>({timer:t.timer+1})),startExecution:()=>e({isRunning:!0,timer:0,completedSteps:[],activeStepId:null,historicalStepIds:{},logs:[],networkLogs:[],assertions:[],testScenarios:[],browserFrames:{},browserInfo:{},currentUrls:{},pageTitles:{},selectedLogId:null,activeReplay:null,activeTestFile:""}),stopExecution:()=>e(t=>{const n=t.testScenarios.map(r=>{const o=r.steps.map(s=>s.status==="running"?{...s,status:"failed"}:s);let i=r.status;if(r.status==="running"){const s=o.some(c=>c.status==="failed"),a=o.every(c=>["pass","passed","success"].includes(c.status));i=s?"failed":a?"pass":"failed"}return{...r,status:i,steps:o}});return{isRunning:!1,activeStepId:qu({...t,isRunning:!1,testScenarios:n},t.activeTestFile),testScenarios:n}}),startRun:(t,n)=>e(r=>{const o=t;if(!o)return r;const i=n||"Default Scenario",s=r.testScenarios.filter(y=>y.status==="running"&&y.fileName!==o).length,a=r.activeTestFile===""||s===0?o:r.activeTestFile,c=r.testScenarios.findIndex(y=>y.fileName===o&&y.name===i),u=[...r.testScenarios];return c!==-1?u[c]={...u[c],status:"running",steps:[]}:u.push({fileName:o,name:i,status:"running",steps:[]}),{activeTestFile:a,testScenarios:u,...a!==r.activeTestFile?{activeStepId:null,selectedLogId:null,activeReplay:null}:{}}}),addStep:t=>e(n=>{const r=t.fileName;if(!r)return n;let o=[...n.testScenarios],i=-1;for(let c=o.length-1;c>=0;c--)if(o[c].fileName===r){i=c;break}i===-1&&(o.push({fileName:r,name:"Scenario",status:"running",steps:[]}),i=o.length-1);const s=o[i];if(s.steps.some(c=>c.id===t.id))return n;const a={id:t.id,type:t.type||"ACTION",description:t.description||"",command:t.command||"",status:t.status||"running"};return o[i]={...s,steps:[...s.steps,a]},{testScenarios:o}}),updateStepStatus:(t,n,r,o,i)=>e(s=>{if(!o)return s;let a=!1;const c=s.testScenarios.map(y=>{if(y.fileName!==o)return y;const h=y.steps.findIndex(R=>R.id===t);if(h===-1)return y;a=!0;const x=[...y.steps],m=x[h],_=(i==null?void 0:i.attempt)||m.attempt||1,w=[...m.attemptHistory||[]],I={attempt:_,status:n,screenshot:r,domSnapshot:i==null?void 0:i.domSnapshot,profile:i==null?void 0:i.profile},p=w.findIndex(R=>R.attempt===_);p===-1?w.push(I):w[p]={...w[p],...I,screenshot:r||w[p].screenshot},x[h]={...x[h],status:n||"pending",screenshot:r||(_===(m.attempt||1)?m.screenshot:void 0),attempt:_,profile:(i==null?void 0:i.profile)||m.profile,domSnapshot:(i==null?void 0:i.domSnapshot)||(_===(m.attempt||1)?m.domSnapshot:void 0),attemptHistory:w};const d=x.some(R=>R.status==="failed"),g=x.every(R=>["pass","passed","success"].includes(R.status));let v=y.status;return d?v="failed":g&&(v="pass"),{...y,status:v,steps:x}});if(!a)return s;const u=["pass","passed","success"].includes(n);return{testScenarios:c,completedSteps:u&&!s.completedSteps.includes(t)?[...s.completedSteps,t]:s.completedSteps}}),addLog:t=>e(n=>({logs:[...n.logs,{...t,summary:t.summary||"Log entry",status:t.status||"info"}]})),addNetworkLog:t=>e(n=>({networkLogs:[t,...n.networkLogs]})),addAssertion:t=>e(n=>({assertions:[...n.assertions,t]})),setSession:t=>console.log("Session context updated:",t),updateReplay:(t,n)=>e(r=>({activeReplay:r.activeReplay?{...r.activeReplay,[t]:n}:null})),setReplayResponse:(t,n,r=null,o)=>e(i=>({activeReplay:i.activeReplay&&(!o||o===i.activeReplay.requestId)?{...i.activeReplay,response:t,status:n,error:r,isLoading:!1}:i.activeReplay}))}));/**
|
|
57
|
+
* @license lucide-react v0.400.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const Rx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$p=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
62
|
+
* @license lucide-react v0.400.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var Ix={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
67
|
+
* @license lucide-react v0.400.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const zx=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>b.createElement("svg",{ref:c,...Ix,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$p("lucide",o),...a},[...s.map(([u,y])=>b.createElement(u,y)),...Array.isArray(i)?i:[i]]));/**
|
|
72
|
+
* @license lucide-react v0.400.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const q=(e,t)=>{const n=b.forwardRef(({className:r,...o},i)=>b.createElement(zx,{ref:i,iconNode:t,className:$p(`lucide-${Rx(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
77
|
+
* @license lucide-react v0.400.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Lx=q("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
82
|
+
* @license lucide-react v0.400.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Ax=q("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
87
|
+
* @license lucide-react v0.400.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Nx=q("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
92
|
+
* @license lucide-react v0.400.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Hp=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
97
|
+
* @license lucide-react v0.400.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Dr=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
102
|
+
* @license lucide-react v0.400.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const vc=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
107
|
+
* @license lucide-react v0.400.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Rn=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
112
|
+
* @license lucide-react v0.400.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Dx=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
117
|
+
* @license lucide-react v0.400.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const _c=q("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
122
|
+
* @license lucide-react v0.400.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const td=q("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
127
|
+
* @license lucide-react v0.400.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const Vp=q("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
132
|
+
* @license lucide-react v0.400.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const wc=q("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|
137
|
+
* @license lucide-react v0.400.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Px=q("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
142
|
+
* @license lucide-react v0.400.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const Ox=q("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
147
|
+
* @license lucide-react v0.400.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const Mx=q("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
152
|
+
* @license lucide-react v0.400.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Fx=q("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
157
|
+
* @license lucide-react v0.400.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Gp=q("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
162
|
+
* @license lucide-react v0.400.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const mo=q("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
167
|
+
* @license lucide-react v0.400.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const nd=q("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
|
172
|
+
* @license lucide-react v0.400.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const Wx=q("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
177
|
+
* @license lucide-react v0.400.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Bx=q("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);/**
|
|
182
|
+
* @license lucide-react v0.400.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const hs=q("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
187
|
+
* @license lucide-react v0.400.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Ux=q("Group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]);/**
|
|
192
|
+
* @license lucide-react v0.400.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const $x=q("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
|
|
197
|
+
* @license lucide-react v0.400.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Hx=q("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
202
|
+
* @license lucide-react v0.400.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const xs=q("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
207
|
+
* @license lucide-react v0.400.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const Vx=q("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
212
|
+
* @license lucide-react v0.400.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const Gx=q("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
217
|
+
* @license lucide-react v0.400.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const Yx=q("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
222
|
+
* @license lucide-react v0.400.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const Yp=q("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
|
|
227
|
+
* @license lucide-react v0.400.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const Xx=q("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
|
|
232
|
+
* @license lucide-react v0.400.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Pr=q("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
237
|
+
* @license lucide-react v0.400.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const Qx=q("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
242
|
+
* @license lucide-react v0.400.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const Xp=q("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
247
|
+
* @license lucide-react v0.400.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Kx=q("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]);/**
|
|
252
|
+
* @license lucide-react v0.400.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const qx=q("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/**
|
|
257
|
+
* @license lucide-react v0.400.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Zx=q("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
262
|
+
* @license lucide-react v0.400.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const Jx=q("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
267
|
+
* @license lucide-react v0.400.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const Qp=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
272
|
+
* @license lucide-react v0.400.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const Kp=q("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
277
|
+
* @license lucide-react v0.400.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const ey=q("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
|
|
282
|
+
* @license lucide-react v0.400.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const qp=q("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
287
|
+
* @license lucide-react v0.400.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const ty=q("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
292
|
+
* @license lucide-react v0.400.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const ny=q("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
297
|
+
* @license lucide-react v0.400.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const Sc=q("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
302
|
+
* @license lucide-react v0.400.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const ry=q("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
307
|
+
* @license lucide-react v0.400.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const oy=q("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
312
|
+
* @license lucide-react v0.400.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const iy=q("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
|
|
317
|
+
* @license lucide-react v0.400.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const ly=q("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
322
|
+
* @license lucide-react v0.400.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const sy=q("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
327
|
+
* @license lucide-react v0.400.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const ay=q("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
332
|
+
* @license lucide-react v0.400.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const cy=q("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
337
|
+
* @license lucide-react v0.400.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const uy=q("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
342
|
+
* @license lucide-react v0.400.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const rd=q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
347
|
+
* @license lucide-react v0.400.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const ys=q("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
352
|
+
* @license lucide-react v0.400.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const Cr=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
357
|
+
* @license lucide-react v0.400.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const dy=q("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
362
|
+
* @license lucide-react v0.400.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const fy=q("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),py=""+new URL("flow_logo-CjiL4Lvy.png",import.meta.url).href,gy=({isTestFlowsOpen:e,setTestFlowsOpen:t})=>{const{activeView:n,setActiveView:r}=Je(),o=[{id:"Flows",icon:Bx,label:"Flows"},{id:"Workspace",icon:Xp,label:"Workspace"},{id:"Runs",icon:Px,label:"Runs"},{id:"Logs",icon:ny,label:"Logs"},{id:"Reports",icon:mo,label:"Reports"},{id:"TestCase",icon:wc,label:"TestCase"}];return l.jsx("nav",{style:{width:"75px",backgroundColor:"#0d1117",borderRight:"1px solid #30363d",overflowY:"auto",flexShrink:0},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:"100%",paddingBottom:"24px"},children:[l.jsx("div",{style:{padding:"25px 0",cursor:"pointer"},onClick:()=>r("Flows"),children:l.jsx("img",{src:py,alt:"Flowstride",style:{width:"42px",height:"auto"}})}),n==="Flows"&&l.jsxs("div",{onClick:()=>t(!e),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"12px 0",cursor:"pointer",color:e?"#a78bfa":"#8b949e",borderBottom:"1px solid #21262d",marginBottom:"10px"},children:[l.jsx(Yp,{size:22}),l.jsx("span",{style:{fontSize:"10px",marginTop:"4px",fontWeight:"bold"},children:e?"Hide":"Show"})]}),l.jsx("div",{style:{flex:1,width:"100%"},children:o.map(i=>{const s=n===i.id;return l.jsxs("div",{onClick:()=>r(i.id),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"18px 0",cursor:"pointer",backgroundColor:s?"rgba(124, 58, 237, 0.08)":"transparent",borderLeft:s?"3px solid #7c3aed":"3px solid transparent",color:s?"#a78bfa":"#8b949e",transition:"color 0.2s ease"},children:[l.jsx(i.icon,{size:22,strokeWidth:s?2.5:2}),l.jsx("span",{style:{fontSize:"10px",marginTop:"6px",fontWeight:s?"600":"400"},children:i.label})]},i.id)})}),l.jsxs("a",{href:"https://cloud.flowstride.io/register",target:"_blank",rel:"noopener noreferrer",style:{padding:"25px 0",width:"100%",borderTop:"1px solid #30363d",display:"flex",flexDirection:"column",alignItems:"center",textDecoration:"none"},children:[l.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"50%",border:"2px solid #30363d",backgroundColor:"#1f2937",display:"flex",alignItems:"center",justifyContent:"center",color:"#a78bfa",fontWeight:"bold",fontSize:"14px"},children:"OS"}),l.jsx("span",{style:{fontSize:"11px",marginTop:"10px",fontWeight:"bold",color:"#ffffff"},children:"Open Source"}),l.jsx("span",{style:{fontSize:"9px",color:"#8b949e",marginTop:"2px",textAlign:"center",padding:"0 4px"},children:"COMMUNITY EDITION"})]})]})})},hy=()=>{var g,v,R;const{currentUrls:e,pageTitles:t,browserFrames:n,testScenarios:r,activeStepId:o,setActiveStepId:i,isRunning:s,activeTestFile:a,setActiveTestFile:c}=Je(),u=yc(r,a,o),[y,h]=b.useState(null);b.useEffect(()=>{h(null)},[a,o,s]);const x=((g=u==null?void 0:u.attemptHistory)==null?void 0:g.find(j=>j.attempt===(y||u.attempt)))||u,m=!s&&!!(x!=null&&x.screenshot),_=e[a]||"about:blank",w=t[a]||"New Tab",I=n[a]||null,p=!s&&u?x==null?void 0:x.screenshot:I||(s?null:(v=Op(r,a))==null?void 0:v.screenshot),d=Array.from(new Set(r.map(j=>j.fileName)));return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#1c2128"},children:[l.jsxs("div",{onWheel:j=>{j.currentTarget.scrollLeft+=j.deltaY},style:{display:"flex",alignItems:"center",padding:"8px 8px 0 8px",gap:"4px",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none"},children:[l.jsx("style",{children:`
|
|
367
|
+
div::-webkit-scrollbar { display: none; }
|
|
368
|
+
`}),d.length>0?d.map(j=>{const N=a===j;return l.jsxs("div",{role:"tab","aria-selected":N,"aria-label":j,tabIndex:0,onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(j))},onClick:()=>c(j),style:{backgroundColor:N?"var(--fs-bg-base)":"rgba(255,255,255,0.05)",padding:"6px 15px",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",gap:"8px",border:N?"1px solid var(--fs-border)":"1px solid transparent",borderBottom:"none",minWidth:"130px",maxWidth:"200px",flexShrink:0,cursor:"pointer",opacity:N?1:.6},children:[l.jsx(hs,{size:12,color:N?"var(--fs-accent-purple)":"#8b949e",style:{flexShrink:0}}),l.jsx("span",{style:{fontSize:"10px",color:N?"white":"#8b949e",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:N?"bold":"normal"},children:j})]},j)}):l.jsxs("div",{style:{backgroundColor:"var(--fs-bg-base)",padding:"6px 15px",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",gap:"8px",border:"1px solid var(--fs-border)",borderBottom:"none",minWidth:"140px",flexShrink:0},children:[l.jsx(hs,{size:12,color:"var(--fs-accent-purple)"}),l.jsx("span",{style:{fontSize:"10px",color:"white"},children:w})]})]}),l.jsxs("div",{style:{backgroundColor:"var(--fs-bg-base)",borderTop:"1px solid var(--fs-border)",padding:"6px 12px",display:"flex",alignItems:"center",gap:"12px"},children:[l.jsxs("div",{style:{display:"flex",gap:"8px",color:"#8b949e"},children:[l.jsx(vc,{size:14}),l.jsx(Rn,{size:14}),l.jsx(qp,{size:14}),l.jsx(Hx,{size:14})]}),l.jsxs("div",{style:{flex:1,backgroundColor:"#05070a",border:"1px solid var(--fs-border)",borderRadius:"15px",padding:"3px 12px",display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx(Qx,{size:10,color:"#22c55e"}),l.jsx("span",{style:{fontSize:"10px",color:"#8b949e",whiteSpace:"nowrap",overflow:"hidden"},children:_})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",color:"#444",borderLeft:"1px solid #333",paddingLeft:"12px"},children:[l.jsx(Xp,{size:14,color:"var(--fs-accent-purple)"}),l.jsx(iy,{size:14}),l.jsx(ry,{size:14}),l.jsx(Nx,{size:14})]})]}),l.jsxs("div",{style:{flex:1,margin:"10px",backgroundColor:"white",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",position:"relative"},children:[m&&l.jsxs("div",{style:{position:"absolute",top:"12px",left:"12px",right:"12px",backgroundColor:"rgba(15, 23, 42, 0.95)",border:"1px solid rgba(167, 139, 250, 0.3)",padding:"10px 16px",borderRadius:"6px",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:30,boxShadow:"0 4px 20px rgba(0,0,0,0.4)",backdropFilter:"blur(4px)"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[l.jsx("div",{style:{backgroundColor:"rgba(167, 139, 250, 0.1)",padding:"6px",borderRadius:"4px"},children:l.jsx(Fx,{size:14,color:"#a78bfa"})}),l.jsxs("div",{children:[l.jsx("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#a78bfa",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Viewing Historical State"}),l.jsxs("div",{style:{fontSize:"12px",color:"#e2e8f0",fontFamily:"monospace",marginTop:"2px"},children:[u==null?void 0:u.command,(x==null?void 0:x.profile)&&l.jsxs("span",{children:[" · Profile: ",x.profile]}),(((R=u==null?void 0:u.attemptHistory)==null?void 0:R.length)||0)>1&&l.jsx("select",{"aria-label":"History attempt",value:y||(u==null?void 0:u.attempt)||1,onChange:j=>h(Number(j.target.value)),style:{marginLeft:10,color:"white",background:"#1e293b"},children:u.attemptHistory.map(j=>l.jsxs("option",{value:j.attempt,children:["Attempt ",j.attempt," · ",j.status]},j.attempt))}),(x==null?void 0:x.domSnapshot)&&l.jsx("a",{href:`/evidence?file=${encodeURIComponent(x.domSnapshot)}`,target:"_blank",rel:"noopener noreferrer",style:{marginLeft:10,color:"#c4b5fd"},children:"Read DOM snapshot"})]})]})]}),l.jsx("button",{onClick:()=>i(null),style:{backgroundColor:"#7c3aed",color:"white",border:"none",padding:"6px 14px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:j=>j.currentTarget.style.backgroundColor="#6d28d9",onMouseLeave:j=>j.currentTarget.style.backgroundColor="#7c3aed",children:"Return to Live"})]}),p?l.jsx("img",{src:`data:image/png;base64,${p}`,style:{width:"100%",height:"100%",objectFit:"contain",opacity:m?.95:1},alt:"Browser frame"}):l.jsxs("div",{style:{textAlign:"center",color:"#ccc"},children:[l.jsx(hs,{size:40,style:{marginBottom:"8px",opacity:.1}}),l.jsx("div",{style:{fontSize:"11px",fontWeight:500,opacity:.3},children:s?"WAITING FOR RENDER...":u?"No captured screen for this step.":"No browser screen captured for this test."})]})]})]})},xy=()=>{const{networkLogs:e,activeTestFile:t,activeNetworkTab:n,setNetworkTab:r,setSelectedLogId:o,setActiveView:i}=Je(),s=["REST","GraphQL","Network","WS"],a=mc(e,t).filter(u=>n==="GraphQL"?u.url.includes("graphql"):n==="REST"?!u.url.includes("graphql")&&!u.url.includes("ws"):!0),c=u=>{o(u),i("Logs")};return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#0d1117"},children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid var(--fs-border)",backgroundColor:"#05070a"},children:s.map(u=>l.jsx("button",{onClick:()=>r(u),style:{padding:"10px 16px",fontSize:"11px",fontWeight:"600",background:"none",border:"none",color:n===u?"#a78bfa":"#444",borderBottom:n===u?"2px solid #7c3aed":"2px solid transparent",cursor:"pointer",transition:"all 0.2s"},children:u},u))}),l.jsxs("div",{style:{padding:"8px 12px",display:"flex",gap:"10px",alignItems:"center",borderBottom:"1px solid #161b22"},children:[l.jsxs("div",{style:{flex:1,position:"relative"},children:[l.jsx(Sc,{size:12,style:{position:"absolute",left:"8px",top:"50%",transform:"translateY(-50%)",color:"#444"}}),l.jsx("input",{type:"text",placeholder:`Filter ${n}...`,style:{width:"100%",background:"#05070a",border:"1px solid #30363d",borderRadius:"4px",padding:"4px 8px 4px 28px",fontSize:"10px",color:"white"}})]}),l.jsx(Wx,{size:14,color:"#444"})]}),l.jsx("div",{style:{flex:1,overflowY:"auto"},children:a.length===0?l.jsxs("div",{style:{padding:"40px",textAlign:"center",color:"#444",fontSize:"11px"},children:["No ",n," traffic detected"]}):a.map((u,y)=>l.jsx("div",{onClick:()=>c(u.id),style:{borderBottom:"1px solid #161b22",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:h=>h.currentTarget.style.backgroundColor="#161b22",onMouseLeave:h=>h.currentTarget.style.backgroundColor="transparent",children:l.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"8px 12px",fontSize:"11px",gap:"10px"},children:[l.jsx("span",{style:{color:u.status<400?"#34d399":"#f87171",fontWeight:"bold",width:"25px"},children:u.status}),l.jsx("span",{style:{fontWeight:"bold",width:"35px",color:"#8b949e"},children:u.method}),l.jsx("span",{style:{flex:1,color:"white",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name||u.url}),l.jsx("span",{style:{color:"#444",fontSize:"10px"},children:u.time})]})},y))})]})},yy=()=>{const{logs:e,activeTestFile:t}=Je(),n=mc(e,t),r=b.useRef(null);return b.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[n]),l.jsxs("div",{ref:r,style:{flex:1,backgroundColor:"#0d1117",padding:"10px 15px",fontFamily:"monospace",fontSize:"12px",overflowY:"auto",color:"#d1d5db",lineHeight:"1.5"},children:[n.length===0&&l.jsx("div",{style:{color:"#4b5563",fontStyle:"italic"},children:"System ready. Awaiting execution..."}),n.map((o,i)=>{const s=(o.type||o.status||"INFO").toUpperCase();let a="#34d399";return(o.status==="error"||o.type==="ERROR")&&(a="#f87171"),o.status==="warning"&&(a="#fbbf24"),o.type==="ACTION"&&(a="#60a5fa"),l.jsxs("div",{style:{marginBottom:"4px",display:"flex",gap:"8px"},children:[l.jsxs("span",{style:{color:"#6e7681",flexShrink:0},children:["[",o.timestamp||"--:--:--","]"]}),l.jsx("span",{style:{color:a,fontWeight:"bold",flexShrink:0,width:"55px"},children:s}),l.jsx("span",{style:{color:"#c9d1d9",wordBreak:"break-all"},children:o.summary})]},o.id||i)})]})},my=({isRightPanelOpen:e})=>{const{logs:t,pageTitles:n,activeTestFile:r}=Je(),o=mc(t,r).at(-1),i=n[r]||"New Tab";return l.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",backgroundColor:"var(--fs-bg-base)",overflow:"hidden"},children:[l.jsxs("div",{style:{height:"35px",backgroundColor:"#161b22",borderBottom:"1px solid var(--fs-border)",display:"flex",alignItems:"center",padding:"0 15px",fontSize:"11px",color:"#8b949e",flexShrink:0},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1},children:[l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold"},children:"LOG:"}),l.jsx("span",{style:{color:"#c9d1d9",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(o==null?void 0:o.summary)||"System ready. Awaiting connection..."})]}),l.jsx("div",{style:{opacity:.5,fontStyle:"italic"},children:i})]}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[l.jsx("div",{style:{flex:1,borderRight:"1px solid var(--fs-border)",height:"100%",overflow:"hidden"},children:l.jsx(hy,{})}),l.jsxs("div",{style:{width:e?"400px":"0px",transition:"width 0.2s ease",display:"flex",flexDirection:"column",height:"100%",backgroundColor:"#0d1117",overflow:"hidden",flexShrink:0},children:[l.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:l.jsx(xy,{})}),l.jsxs("div",{style:{flex:1,borderTop:"1px solid var(--fs-border)",backgroundColor:"#0d1117",overflow:"hidden",display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"8px 15px",fontSize:"11px",fontWeight:"bold",color:"#8b949e",borderBottom:"1px solid var(--fs-border)",flexShrink:0},children:"LIVE INFO"}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(yy,{})})]})]})]})]})},vy=()=>{var x,m;const[e,t]=b.useState(null),{testScenarios:n,logs:r}=Je(),o=n.reduce((_,w)=>_+w.steps.length,0),i=n.reduce((_,w)=>_+w.steps.filter(I=>["pass","passed","success"].includes(I.status)).length,0),s=n.reduce((_,w)=>_+w.steps.filter(I=>I.status==="failed").length,0),a=n.reduce((_,w)=>{const I=w.fileName||"General";return _[I]||(_[I]=[]),_[I].push(w),_},{});let c="Verified.",u=null,y=null,h=null;if(e){const _=e.status==="failed",w=["pass","passed","success"].includes(e.status);if(y=e.screenshot,_){const p=`${e.type} ${e.description}`,d=r.slice().reverse().find(g=>g.type==="ERROR"&&g.fileName===e.fileName&&g.stepContext===p);c=d?d.summary:"Validation Failed.",!y&&((x=d==null?void 0:d.details)!=null&&x.screenshot)&&(y=d.details.screenshot),(m=d==null?void 0:d.details)!=null&&m.boundingBox&&(h=d.details.boundingBox)}else e.status==="running"?c="Executing...":w&&(c="Action verified successfully.");const I=r.slice().reverse().find(p=>(p.type==="REST"||p.type==="GRAPHQL")&&p.fileName===e.fileName);u=I?I.details:null}return l.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"#f8fafc",overflowY:"auto",position:"relative",color:"#0f172a"},children:[l.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"40px 20px",marginRight:e?"450px":"auto",transition:"margin-right 0.3s"},children:[l.jsxs("header",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",borderBottom:"1px solid #e2e8f0",paddingBottom:"24px",marginBottom:"40px"},children:[l.jsxs("div",{children:[l.jsx("h1",{style:{fontSize:"30px",fontWeight:"800",margin:0,color:"#1e293b"},children:"Flowstride Reports"}),l.jsx("p",{style:{color:"#64748b",margin:"4px 0 0 0",fontWeight:"500"},children:"Multi-Flow Execution Analysis"})]}),l.jsxs("div",{style:{display:"flex",gap:"16px"},children:[l.jsx(ms,{label:"PASSED",value:i,color:"#10b981",icon:l.jsx(_c,{size:20})}),l.jsx(ms,{label:"FAILED",value:s,color:"#ef4444",icon:l.jsx(Vp,{size:20})}),l.jsx(ms,{label:"TOTAL",value:o,color:"#3b82f6",icon:l.jsx(mo,{size:20})})]})]}),Object.keys(a).map(_=>l.jsxs("div",{style:{marginBottom:"60px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"20px",marginBottom:"24px"},children:[l.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",color:"#7c3aed",fontWeight:"900",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.1em",backgroundColor:"rgba(124, 58, 237, 0.05)",padding:"6px 16px",borderRadius:"20px",border:"1px solid rgba(124, 58, 237, 0.1)"},children:[l.jsx(Gp,{size:14})," ",_]}),l.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}})]}),l.jsx("div",{style:{backgroundColor:"white",borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 1px 3px rgba(0,0,0,0.05)",overflow:"hidden"},children:l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",textAlign:"left"},children:[l.jsx("thead",{style:{backgroundColor:"#f1f5f9",borderBottom:"1px solid #e2e8f0"},children:l.jsx("tr",{children:["S/N","Scenario","Action","Status",""].map((w,I)=>l.jsx("th",{style:{padding:"16px 24px",fontSize:"10px",fontWeight:"800",color:"#64748b",textTransform:"uppercase"},children:w},I))})}),l.jsx("tbody",{children:a[_].flatMap(w=>w.steps.map((I,p)=>l.jsxs("tr",{onClick:()=>t({...I,scenarioName:w.name,fileName:_}),style:{cursor:"pointer",borderBottom:"1px solid #f1f5f9",backgroundColor:(e==null?void 0:e.id)===I.id?"#eff6ff":"transparent"},children:[l.jsx("td",{style:{padding:"18px 24px",fontSize:"12px",color:"#94a3b8",fontFamily:"monospace",fontWeight:"bold"},children:p+1}),l.jsx("td",{style:{padding:"18px 24px",fontWeight:"600",color:"#334155"},children:w.name}),l.jsxs("td",{style:{padding:"18px 24px",fontSize:"14px",color:"#475569"},children:[l.jsx("b",{style:{color:"#7c3aed",marginRight:"8px"},children:I.type})," ",I.description]}),l.jsx("td",{style:{padding:"18px 24px"},children:l.jsx(wy,{status:I.status})}),l.jsx("td",{style:{padding:"18px 24px",textAlign:"right"},children:l.jsx(Rn,{size:16,color:(e==null?void 0:e.id)===I.id?"#3b82f6":"#cbd5e1",style:{transform:(e==null?void 0:e.id)===I.id?"rotate(90deg)":"none",transition:"0.2s"}})})]},I.id)))})]})})]},_))]}),l.jsx("aside",{style:{position:"fixed",top:0,right:0,height:"100%",width:"450px",backgroundColor:"white",boxShadow:"-10px 0 40px rgba(0,0,0,0.1)",borderLeft:"1px solid #e2e8f0",zIndex:100,transform:e?"translateX(0)":"translateX(100%)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",padding:"30px",overflowY:"auto"},children:e&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px"},children:[l.jsxs("h2",{style:{fontSize:"18px",fontWeight:"700",display:"flex",alignItems:"center",gap:"10px"},children:[l.jsx(ly,{size:18,color:"#3b82f6"})," Step Diagnostics"]}),l.jsx(Cr,{onClick:()=>t(null),style:{cursor:"pointer",color:"#94a3b8"}})]}),y&&l.jsx(Zr,{label:`Visual State (${(e.status||"").toUpperCase()})`,children:l.jsx(_y,{screenshot:y,boundingBox:h})}),l.jsx(Zr,{label:"Context",children:l.jsx("div",{style:{fontWeight:"bold",color:"#1e293b"},children:e.scenarioName})}),l.jsx(Zr,{label:"Requirement Proof",children:l.jsxs("div",{style:{padding:"16px",backgroundColor:"#f8fafc",borderRadius:"8px",fontSize:"14px",fontStyle:"italic",color:"#475569",border:"1px solid #f1f5f9"},children:['"',e.type," ",e.description,'"']})}),l.jsx(Zr,{label:"Runtime Outcome",children:l.jsx("div",{style:{padding:"16px",borderRadius:"8px",fontSize:"14px",fontWeight:"500",backgroundColor:["pass","success","passed"].includes(e.status)?"#ecfdf5":"#fef2f2",color:["pass","success","passed"].includes(e.status)?"#065f46":"#991b1b",border:`1px solid ${["pass","success","passed"].includes(e.status)?"#d1fae5":"#fee2e2"}`},children:c})}),u&&l.jsx(Zr,{label:"Network Activity",children:l.jsx("div",{style:{backgroundColor:"#0f172a",padding:"16px",borderRadius:"8px",color:"#7dd3fc",fontFamily:"monospace",fontSize:"11px",overflowX:"auto"},children:l.jsx("pre",{children:JSON.stringify({status:u.responseStatus,url:u.url},null,2)})})})]})})]})},_y=({screenshot:e,boundingBox:t})=>{const[n,r]=b.useState({w:0,h:0}),[o,i]=b.useState(!1),s=()=>{const a=window.open();a&&(a.document.write(`
|
|
369
|
+
<html>
|
|
370
|
+
<head><title>Step Screenshot</title></head>
|
|
371
|
+
<body style="margin: 0; background-color: #0f172a; display: flex; justify-content: center; padding: 40px; font-family: sans-serif;">
|
|
372
|
+
<div style="position: relative; display: inline-block;">
|
|
373
|
+
<img src="data:image/jpeg;base64,${e}" style="max-width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);" />
|
|
374
|
+
${t?`<div style="
|
|
375
|
+
position: absolute;
|
|
376
|
+
border: 3px solid #ef4444;
|
|
377
|
+
background-color: rgba(239, 68, 68, 0.2);
|
|
378
|
+
left: ${t.x/n.w*100}%;
|
|
379
|
+
top: ${t.y/n.h*100}%;
|
|
380
|
+
width: ${t.width/n.w*100}%;
|
|
381
|
+
height: ${t.height/n.h*100}%;
|
|
382
|
+
box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
"></div>`:""}
|
|
385
|
+
</div>
|
|
386
|
+
</body>
|
|
387
|
+
</html>
|
|
388
|
+
`),a.document.close())};return l.jsxs("div",{onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{position:"relative",width:"100%",borderRadius:"8px",overflow:"hidden",border:"1px solid #e2e8f0",backgroundColor:"#0f172a",cursor:"zoom-in"},children:[l.jsx("img",{src:`data:image/jpeg;base64,${e}`,style:{width:"100%",display:"block",opacity:o?.6:1,transition:"opacity 0.2s ease"},onLoad:a=>r({w:a.currentTarget.naturalWidth,h:a.currentTarget.naturalHeight}),alt:"Step snapshot"}),t&&n.w>0&&l.jsx("div",{style:{position:"absolute",border:"2px solid #ef4444",backgroundColor:"rgba(239, 68, 68, 0.2)",left:`${t.x/n.w*100}%`,top:`${t.y/n.h*100}%`,width:`${t.width/n.w*100}%`,height:`${t.height/n.h*100}%`,boxShadow:"0 0 0 9999px rgba(15, 23, 42, 0.5)",zIndex:10,pointerEvents:"none"}}),o&&l.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"rgba(15, 23, 42, 0.9)",color:"white",padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:"bold",pointerEvents:"none",zIndex:20},children:"Click to Enlarge"})]})},ms=({label:e,value:t,color:n,icon:r})=>l.jsxs("div",{style:{backgroundColor:"white",padding:"16px 24px",borderRadius:"10px",border:"1px solid #e2e8f0",minWidth:"140px",display:"flex",alignItems:"center",gap:"12px"},children:[l.jsx("div",{style:{color:n,backgroundColor:`${n}15`,padding:"8px",borderRadius:"8px"},children:r}),l.jsxs("div",{children:[l.jsx("div",{style:{fontSize:"20px",fontWeight:"800"},children:t}),l.jsx("div",{style:{fontSize:"9px",fontWeight:"800",color:"#94a3b8"},children:e})]})]}),wy=({status:e})=>{const t=["pass","passed","success"].includes(e),n=e==="failed";return l.jsx("span",{style:{padding:"4px 10px",borderRadius:"20px",fontSize:"10px",fontWeight:"800",border:"1px solid",backgroundColor:t?"#dcfce7":n?"#fee2e2":"#dbeafe",color:t?"#15803d":n?"#b91c1c":"#1d4ed8",borderColor:t?"#bbf7d0":n?"#fecaca":"#bfdbfe"},children:(e||"PENDING").toUpperCase()})},Zr=({label:e,children:t})=>l.jsxs("div",{style:{marginBottom:"24px"},children:[l.jsx("h3",{style:{fontSize:"11px",fontWeight:"800",color:"#94a3b8",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.05em"},children:e}),t]});let xt=null;const Zp=()=>{if(xt&&(xt.readyState===WebSocket.OPEN||xt.readyState===WebSocket.CONNECTING))return;const e=window.location.protocol==="https:"?"wss:":"ws:",t=window.location.host;xt=new WebSocket(`${e}//${t}`),xt.onopen=()=>console.log("[Flowstride] Connected to Execution Engine"),xt.onmessage=n=>{var r,o;try{const i=JSON.parse(n.data),s=Je.getState();switch(i.type){case"CLI_CONTEXT":((r=i.payload)==null?void 0:r.command)==="run"?s.setActiveView("Flows"):((o=i.payload)==null?void 0:o.command)==="open"&&s.setActiveView("Workspace");break;case"SUITE_START":s.startExecution();break;case"RUN_START":{Je.getState().isRunning||Je.setState({isRunning:!0}),s.startRun(i.payload.fileName,i.payload.scenarioName);break}case"RUN_COMPLETE":s.stopExecution();break;case"LOG_EVENT":s.addLog(i.payload);break;case"BROWSER_INFO":s.setBrowserInfo(i.payload.fileName,i.payload);break;case"BROWSER_FRAME":s.setBrowserFrame(i.payload.fileName||"General",i.payload.base64);break;case"NETWORK_REQ":s.addNetworkLog(i.payload);break;case"STEP_ADD":s.addStep(i.payload);break;case"STEP_UPDATE":const a=i.payload.status==="passed"?"pass":i.payload.status;s.updateStepStatus(i.payload.id,a,i.payload.screenshot,i.payload.fileName,{attempt:i.payload.attempt,profile:i.payload.profile,domSnapshot:i.payload.domSnapshot});break;case"URL_CHANGE":s.setPageMetadata(i.payload.fileName||"General",i.payload.url,i.payload.title);break;case"REPLAY_RES":s.setReplayResponse(i.payload.responseBody,i.payload.status,i.payload.error,i.payload.requestId);break;case"EXPORT_PDF_RES":{const c=i.payload.base64,u=document.createElement("a");u.href=`data:application/pdf;base64,${c}`,u.download=`Flowstride_Test_Report_${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(u),u.click(),document.body.removeChild(u);break}case"EXPORT_PDF_SUCCESS":console.log("[Flowstride] PDF safely archived at:",i.payload.path);break;case"EXPORT_PDF_ERROR":window.alert(`Report Error: Failed to generate PDF - ${i.payload.error}`);break;default:console.warn("Unknown event:",i.type)}}catch(i){console.error("Socket error:",i)}},xt.onclose=()=>setTimeout(Zp,3e3)},Sy=()=>{xt&&(xt.close(),xt=null)},sl=(e,t)=>{xt&&xt.readyState===WebSocket.OPEN&&xt.send(JSON.stringify({type:e,payload:t}))},by=()=>{const{testScenarios:e}=Je(),t=e.reduce((r,o)=>{const i=o.fileName||"General";return r[i]||(r[i]=[]),r[i].push(o),r},{});if(e.length===0)return l.jsx("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"center",color:"#64748b"},children:"Awaiting test data..."});const n=()=>{sl("EXPORT_PDF_REQ",e)};return l.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"white",overflowY:"auto",color:"#1e293b"},children:[l.jsxs("div",{style:{position:"sticky",top:0,backgroundColor:"#f8fafc",borderBottom:"1px solid #e2e8f0",padding:"16px 40px",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:10},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",fontWeight:"700"},children:[l.jsx(wc,{color:"#7c3aed"})," Test Case Documentation"]}),l.jsxs("button",{onClick:n,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #cbd5e1",backgroundColor:"white",fontSize:"13px",fontWeight:"600",cursor:"pointer"},children:[l.jsx(ey,{size:14,style:{verticalAlign:"middle",marginRight:"8px"}})," ","Export PDF"]})]}),l.jsxs("div",{style:{maxWidth:"900px",margin:"40px auto",padding:"0 20px"},children:[l.jsxs("div",{style:{borderBottom:"4px solid #0f172a",paddingBottom:"24px",marginBottom:"40px"},children:[l.jsx("h2",{style:{fontSize:"36px",fontWeight:"900",textTransform:"uppercase",margin:0},children:"Test Case Log"}),l.jsx("p",{style:{color:"#64748b",fontWeight:"500",margin:"8px 0 0 0"},children:"Project: Flowstride Community Edition"})]}),Object.keys(t).map(r=>{const o=t[r].flatMap(i=>i.steps);return l.jsxs("div",{style:{marginBottom:"60px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"15px",marginBottom:"25px"},children:[l.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#7c3aed",fontWeight:"900",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.1em"},children:[l.jsx(Gp,{size:14})," ",r]}),l.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}})]}),l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},children:[l.jsx("thead",{style:{backgroundColor:"#0f172a",color:"white"},children:l.jsx("tr",{children:["S/N","Action","Expected Result","Actual Result","Status"].map((i,s)=>l.jsx("th",{style:{padding:"14px",fontSize:"11px",textAlign:"left"},children:i},s))})}),l.jsx("tbody",{children:o.map((i,s)=>{const a=i.status==="failed",c=s+1;return l.jsxs("tr",{style:{borderBottom:"1px solid #e2e8f0"},children:[l.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#64748b",fontWeight:"500",width:"50px"},children:c}),l.jsx("td",{style:{padding:"16px 14px",fontWeight:"700",fontSize:"13px"},children:i.command}),l.jsxs("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#475569",fontStyle:"italic"},children:[i.type," ",i.description]}),l.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:a?"#ef4444":"#64748b"},children:a?"Validation Failed":"Action verified successfully."}),l.jsx("td",{style:{padding:"16px 14px",textAlign:"left"},children:l.jsx("span",{style:{fontSize:"10px",fontWeight:"900",color:a?"#ef4444":"#10b981"},children:(i.status||"PENDING").toUpperCase()})})]},i.id)})})]})]},r)})]})]})},io=({label:e,value:t,isRoot:n=!1})=>{const[r,o]=b.useState(!0);if(t===null||typeof t!="object"){let c="#79c0ff";return typeof t=="string"&&(c="#a5d6ff"),(typeof t=="boolean"||t===null)&&(c="#ff7b72"),l.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[e&&l.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),l.jsx("span",{style:{color:c},children:t===null?"null":typeof t=="string"?`"${t}"`:String(t)})]})}const i=Array.isArray(t),s=Object.keys(t||{}),a=s.length===0;return l.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[l.jsxs("div",{onClick:()=>!a&&o(!r),style:{cursor:a?"default":"display",display:"flex",alignItems:"center"},children:[l.jsx("span",{style:{width:"14px",color:"#8b949e",cursor:"pointer"},children:!a&&(r?"▼":"▶")}),e&&l.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),l.jsx("span",{style:{color:"#8b949e"},children:i?r?"[":"[...]":r?"{":"{...}"})]}),r&&!a&&l.jsx("div",{style:{paddingLeft:"8px",borderLeft:"1px solid #30363d",marginLeft:"6px"},children:s.map(c=>l.jsx(io,{label:i?null:c,value:t[c]},c))}),r&&!a&&l.jsx("div",{style:{color:"#8b949e"},children:i?"]":"}"})]})},ky=e=>{var a,c,u,y,h;let t=e.summary,n="-",r=e.type.toLowerCase(),o=e.status==="error"?"ERR":"OK",i=e.status==="error"?"#f87171":"#8b949e";if(e.type==="REST"||e.type==="GRAPHQL"){if(r="fetch",n=((a=e.details)==null?void 0:a.method)||"GET",(c=e.details)!=null&&c.url)try{const x=new URL(e.details.url);t=x.pathname.split("/").pop()||x.pathname,(!t||t==="/")&&(t=x.hostname)}catch{const x=e.details.url.split("/");t=x[x.length-1]||e.summary}o=((y=(u=e.details)==null?void 0:u.responseStatus)==null?void 0:y.toString())||(e.status==="error"?"ERR":"200"),i=e.status==="error"?"#f87171":"#34d399"}else if(e.type==="ACTION")t=((h=e.details)==null?void 0:h.command)||e.summary.split(":")[0],r="action",i=e.status==="error"?"#f87171":"#60a5fa";else if(e.type==="ASSERT")r="assert",i=e.status==="error"?"#f87171":"#a78bfa";else if(e.type==="ERROR"){i="#f87171";const x=e.summary||"";x.includes("waited for")?t="Element Not Found":x.includes("covering it up")?t="Element Blocked":x.includes("multiple elements matching")?t="Multiple Elements":x.includes("couldn't reach")?t="Network Error":t="Execution Failed"}else e.type==="CONSOLE"&&(r="console");let s="#8b949e";return n==="GET"&&(s="#60a5fa"),n==="POST"&&(s="#34d399"),(n==="PUT"||n==="PATCH")&&(s="#fbbf24"),n==="DELETE"&&(s="#f87171"),{name:t,methodLabel:n,methodColor:s,typeLabel:r,statusLabel:o,statusColor:i}},Ey=()=>{var ae;const{logs:e,selectedLogId:t,setSelectedLogId:n,activeReplay:r,updateReplay:o}=Je(),[i,s]=b.useState("ALL"),[a,c]=b.useState("Overview"),[u,y]=b.useState(null),[h,x]=b.useState(!1),m=b.useRef(null),[_,w]=b.useState(380),[I,p]=b.useState(!1);b.useEffect(()=>{const W=ne=>{if(!I||!m.current)return;const he=m.current.getBoundingClientRect().left,O=ne.clientX-he;O>=250&&O<=800&&w(O)},oe=()=>p(!1);return I&&(document.addEventListener("mousemove",W),document.addEventListener("mouseup",oe)),()=>{document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",oe)}},[I]),b.useEffect(()=>{t&&(!e||!e.find(W=>W.id===t))&&n(null)},[e,t,n]);const d=Array.isArray(e)?e:[],g=d.find(W=>W.id===t),v={},R=[];d.forEach(W=>{if(!W)return;if(W.type==="FILE_HEADER"){R.includes(W.summary)||R.push(W.summary);return}const oe=W.fileName||"System Initialization";v[oe]||(v[oe]=[],R.includes(oe)||R.push(oe)),(i==="ALL"||W.type===i)&&v[oe].push(W)});const j=R.map(W=>({fileName:W,items:v[W]||[]})).filter(W=>W.items.length>0),N=(g==null?void 0:g.type)==="REST"||(g==null?void 0:g.type)==="GRAPHQL",k=["Overview","Headers","Payload"];N&&((ae=g==null?void 0:g.details)!=null&&ae.curlString)&&k.push("cURL"),k.push("Response","Step Context"),N&&k.push("Replay");const V=()=>{if(!r)return;o("isLoading",!0),o("response",null),o("status",null),o("error",null);const W=crypto.randomUUID();o("requestId",W),sl("REPLAY_REQ",{requestId:W,method:r.method,url:r.url,headers:r.headers,body:r.body})},$=async W=>{try{await navigator.clipboard.writeText(W),x(!0),setTimeout(()=>x(!1),2e3)}catch(oe){console.error("Failed to copy text: ",oe)}},re=()=>{if(!g)return null;const W=g.details||{};switch(a){case"Overview":return l.jsx("div",{style:{padding:"15px",backgroundColor:"#161b22",borderRadius:"8px",border:"1px solid #30363d"},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",fontSize:"13px"},children:[l.jsxs("div",{style:{paddingBottom:"12px",marginBottom:"4px",borderBottom:"1px solid #30363d"},children:[l.jsx("span",{style:{color:g.status==="error"?"#f87171":"#a78bfa",fontWeight:"bold",display:"block",marginBottom:"6px"},children:g.status==="error"?"Error Message:":"Summary:"}),l.jsx("span",{style:{color:"#c9d1d9",lineHeight:"1.6",fontSize:"14px"},children:g.summary})]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Context:"})," ",g.stepContext||"System"]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"URL:"})," ",W.url||"N/A"]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Status:"})," ",l.jsx("span",{style:{color:g.status==="error"?"#f87171":"#34d399",fontWeight:"bold"},children:W.responseStatus||g.status.toUpperCase()})]})]})});case"Headers":return l.jsx(io,{label:"Headers",value:{request:W.requestHeaders||{},response:W.responseHeaders||{}},isRoot:!0});case"Payload":return l.jsx(io,{label:"Payload",value:W.requestBody||W,isRoot:!0});case"cURL":return l.jsxs("div",{style:{position:"relative"},children:[l.jsx("button",{onClick:()=>$(W.rawCurlString||W.curlString),disabled:!W.rawCurlString&&W.curlString==="[REDACTED]",title:!W.rawCurlString&&W.curlString==="[REDACTED]"?"This command was redacted. Rerun the flow locally to capture a new command.":"Copy the original local request, including its headers and body.",style:{position:"absolute",top:"10px",right:"10px",background:"rgba(124, 58, 237, 0.1)",border:"1px solid rgba(124, 58, 237, 0.3)",color:"#a78bfa",padding:"6px 12px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",transition:"all 0.2s",zIndex:10},onMouseEnter:ne=>{ne.currentTarget.style.background="rgba(124, 58, 237, 0.2)"},onMouseLeave:ne=>{ne.currentTarget.style.background="rgba(124, 58, 237, 0.1)"},children:h?l.jsxs(l.Fragment,{children:[l.jsx(Hp,{size:12})," Copied!"]}):l.jsxs(l.Fragment,{children:[l.jsx(Ox,{size:12})," Copy raw cURL"]})}),l.jsx("pre",{style:{background:"#05070a",padding:"20px 15px",paddingRight:"160px",borderRadius:"8px",border:"1px solid #30363d",color:"#a5d6ff",fontFamily:"monospace",fontSize:"12px",whiteSpace:"pre-wrap",wordBreak:"break-all",overflowX:"auto",lineHeight:"1.5"},children:l.jsx("code",{children:W.curlString})})]});case"Response":return l.jsx(io,{label:"Response",value:W.responseBody||{message:"No body captured"},isRoot:!0});case"Step Context":return l.jsx("div",{style:{padding:"15px",borderLeft:"4px solid #a78bfa",backgroundColor:"rgba(167, 139, 250, 0.05)"},children:g.stepContext});case"Replay":if(!r)return null;const oe={background:"#05070a",border:"1px solid #30363d",color:"white",padding:"8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace"};return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"15px"},children:[l.jsxs("div",{style:{display:"flex",gap:"10px"},children:[l.jsx("input",{value:r.method,onChange:ne=>o("method",ne.target.value.toUpperCase()),style:{...oe,width:"80px",fontWeight:"bold",color:"#a78bfa"},placeholder:"GET"}),l.jsx("input",{value:r.url,onChange:ne=>o("url",ne.target.value),style:{...oe,flex:1},placeholder:"https://api..."}),l.jsx("button",{onClick:V,disabled:r.isLoading,style:{background:r.isLoading?"#30363d":"#7c3aed",color:"white",border:"none",borderRadius:"4px",padding:"0 20px",cursor:r.isLoading?"wait":"pointer",display:"flex",alignItems:"center",gap:"5px",fontWeight:"bold"},children:r.isLoading?"Sending...":l.jsxs(l.Fragment,{children:[l.jsx(Qp,{size:14,fill:"currentColor"})," Send"]})})]}),l.jsxs("div",{style:{display:"flex",gap:"15px"},children:[l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"HEADERS (JSON)"}),l.jsx("textarea",{value:r.headers,onChange:ne=>o("headers",ne.target.value),style:{...oe,height:"120px",resize:"vertical"}})]}),l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"BODY (JSON)"}),l.jsx("textarea",{value:r.body,onChange:ne=>o("body",ne.target.value),style:{...oe,height:"120px",resize:"vertical"}})]})]}),(r.status!==null||r.error)&&l.jsxs("div",{style:{marginTop:"10px",paddingTop:"15px",borderTop:"1px solid #30363d"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"15px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:r.error?"REPLAY ERROR:":"LIVE RESPONSE:"}),l.jsx("span",{style:{backgroundColor:r.status!==null&&r.status<400?"rgba(52, 211, 153, 0.1)":"rgba(248, 113, 113, 0.1)",color:r.status!==null&&r.status<400?"#34d399":"#f87171",border:`1px solid ${r.status!==null&&r.status<400?"rgba(52, 211, 153, 0.2)":"rgba(248, 113, 113, 0.2)"}`,fontSize:"10px",padding:"2px 6px",borderRadius:"4px",fontWeight:"bold"},children:r.error?"Request error":r.status})]}),l.jsx("div",{style:{padding:"15px",backgroundColor:"#05070a",borderRadius:"4px",border:"1px solid #30363d"},children:l.jsx(io,{label:null,value:r.response,isRoot:!0})})]})]});default:return null}};return l.jsxs("div",{ref:m,style:{display:"flex",width:"100%",height:"100%",backgroundColor:"#0d1117",color:"#c9d1d9",overflow:"hidden",userSelect:I?"none":"auto"},children:[l.jsxs("div",{style:{width:_,flexShrink:0,display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"15px 15px 10px 15px"},children:l.jsx("div",{style:{display:"flex",gap:"5px",overflowX:"auto",paddingBottom:"5px",scrollbarWidth:"none"},children:["ALL","REST","ACTION","ASSERT","ERROR"].map(W=>l.jsx("button",{onClick:()=>s(W),style:{background:i===W?"rgba(124, 58, 237, 0.1)":"transparent",border:"1px solid #30363d",color:i===W?"#a78bfa":"#8b949e",padding:"3px 8px",borderRadius:"4px",fontSize:"10px",cursor:"pointer"},children:W},W))})}),l.jsxs("div",{style:{display:"flex",padding:"6px 15px",borderTop:"1px solid #30363d",borderBottom:"1px solid #30363d",fontSize:"10px",fontWeight:"bold",color:"#8b949e",backgroundColor:"#161b22"},children:[l.jsx("div",{style:{flex:"1 1 auto",paddingRight:"8px"},children:"Name"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Method"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Status"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Type"}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right"},children:"Time"})]}),l.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[j.map((W,oe)=>{const ne=W.items.some(O=>O.status==="error"),he=W.items.filter(O=>O.status==="error").length;return l.jsxs("div",{children:[l.jsxs("div",{style:{padding:"6px 15px",backgroundColor:ne?"rgba(248, 113, 113, 0.1)":"#161b22",borderBottom:ne?"1px solid rgba(248, 113, 113, 0.3)":"1px solid #30363d",fontSize:"11px",fontWeight:"bold",color:ne?"#f87171":"#a78bfa",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx("span",{style:{opacity:.7},children:"📄"}),l.jsx("span",{children:W.fileName})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("button",{onClick:O=>{O.stopPropagation(),y(W.fileName),n(null)},style:{display:"flex",alignItems:"center",gap:"4px",backgroundColor:"rgba(52, 211, 153, 0.1)",color:"#34d399",border:"1px solid rgba(52, 211, 153, 0.3)",padding:"2px 8px",borderRadius:"4px",fontSize:"9px",fontWeight:"bold",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:O=>O.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.2)",onMouseLeave:O=>O.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.1)",children:[l.jsx(nd,{size:10})," Watch"]}),ne&&l.jsxs("span",{style:{backgroundColor:"#f87171",color:"white",padding:"2px 6px",borderRadius:"10px",fontSize:"9px",fontWeight:"900"},children:[he," ERROR",he>1?"S":""]})]})]}),W.items.map(O=>{const{name:F,methodLabel:A,methodColor:E,typeLabel:D,statusLabel:L,statusColor:Q}=ky(O);return l.jsxs("div",{onClick:()=>{n(O.id),y(null),c("Overview")},style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 25px",cursor:"pointer",backgroundColor:t===O.id?"rgba(124, 58, 237, 0.15)":"transparent",borderBottom:"1px solid #21262d",fontSize:"11px",transition:"background 0.1s"},children:[l.jsx("div",{style:{flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingRight:"8px",color:"#c9d1d9",fontWeight:t===O.id?"bold":"500"},children:F}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:E,fontWeight:"bold"},children:A}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:Q,fontWeight:"bold"},children:L}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:"#8b949e"},children:D}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right",color:"#6e7681",fontFamily:"monospace"},children:O.timestamp})]},O.id)})]},W.fileName+oe)}),j.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})]})]}),l.jsx("div",{onMouseDown:()=>p(!0),onMouseEnter:W=>{W.currentTarget.style.backgroundColor="#7c3aed"},onMouseLeave:W=>{I||(W.currentTarget.style.backgroundColor="transparent")},style:{width:"5px",cursor:"col-resize",backgroundColor:I?"#7c3aed":"transparent",borderRight:I?"none":"1px solid #30363d",zIndex:10,transition:"background-color 0.2s ease"}}),l.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:u?"#000":"#0d1117"},children:u?l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[l.jsxs("div",{style:{padding:"12px 15px",borderBottom:"1px solid #30363d",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx(nd,{size:14,color:"#34d399"}),l.jsxs("span",{style:{color:"white",fontWeight:"bold",fontSize:"12px"},children:["Session Replay: ",u]})]}),l.jsx("button",{onClick:()=>y(null),style:{background:"transparent",border:"none",color:"#8b949e",cursor:"pointer",fontSize:"12px"},children:"✕ Close"})]}),l.jsx("div",{style:{flex:1,padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"radial-gradient(circle at center, #161b22 0%, #000 100%)"},children:l.jsx("video",{src:`http://${window.location.host}/videos/${u.replace(".flow","")}.webm`,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"100%",boxShadow:"0 10px 30px rgba(0,0,0,0.5)",borderRadius:"8px",border:"1px solid #30363d"}},u)})]}):g?l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid #30363d",backgroundColor:"#0d1117"},children:k.map(W=>l.jsx("div",{onClick:()=>c(W),style:{padding:"12px 15px",fontSize:"11px",cursor:"pointer",color:a===W?"#a78bfa":"#8b949e",borderBottom:a===W?"2px solid #a78bfa":"none",fontWeight:W==="Replay"?"bold":"normal"},children:W==="Replay"?"▶ Replay":W},W))}),l.jsx("div",{style:{flex:1,padding:"20px",overflow:"auto"},children:l.jsx("div",{style:{minWidth:"fit-content"},children:re()})})]}):l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.2},children:[l.jsx(Sc,{size:48}),l.jsx("p",{style:{marginTop:"10px"},children:"Select a log to inspect"})]})})]})},vi=Object.freeze({Pending:0,0:"Pending",Current:1,1:"Current",Passed:2,2:"Passed",Failed:3,3:"Failed",Blocked:4,4:"Blocked",Skipped:5,5:"Skipped"});class al{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,od.unregister(this),t}free(){const t=this.__destroy_into_raw();C.__wbg_workspaceengine_free(t,0)}add_node(t,n,r,o,i,s){const a=ze(r,C.__wbindgen_malloc,C.__wbindgen_realloc),c=ke,u=ze(o,C.__wbindgen_malloc,C.__wbindgen_realloc),y=ke,h=ze(i,C.__wbindgen_malloc,C.__wbindgen_realloc),x=ke;return C.workspaceengine_add_node(this.__wbg_ptr,t,n,a,c,u,y,h,x,s)>>>0}add_text(t,n,r,o){const i=ze(r,C.__wbindgen_malloc,C.__wbindgen_realloc),s=ke;return C.workspaceengine_add_text(this.__wbg_ptr,t,n,i,s,o)>>>0}begin_connection(t,n){return C.workspaceengine_begin_connection(this.__wbg_ptr,t,n)!==0}begin_group_drag(t,n){return C.workspaceengine_begin_group_drag(this.__wbg_ptr,t,n)>>>0}begin_group_draw(t,n){return C.workspaceengine_begin_group_draw(this.__wbg_ptr,t,n)!==0}begin_node_drag(t,n){return C.workspaceengine_begin_node_drag(this.__wbg_ptr,t,n)>>>0}begin_text_drag(t,n){return C.workspaceengine_begin_text_drag(this.__wbg_ptr,t,n)>>>0}begin_text_resize(t,n){return C.workspaceengine_begin_text_resize(this.__wbg_ptr,t,n)!==0}cancel_connection(){C.workspaceengine_cancel_connection(this.__wbg_ptr)}cancel_group_draw(){C.workspaceengine_cancel_group_draw(this.__wbg_ptr)}check_group_delete_click(t,n){return C.workspaceengine_check_group_delete_click(this.__wbg_ptr,t,n)!==0}check_node_menu_click(t,n){return C.workspaceengine_check_node_menu_click(this.__wbg_ptr,t,n)>>>0}check_text_resize_handle(t,n){return C.workspaceengine_check_text_resize_handle(this.__wbg_ptr,t,n)}clear_canvas(){C.workspaceengine_clear_canvas(this.__wbg_ptr)}complete_connection(t,n){return C.workspaceengine_complete_connection(this.__wbg_ptr,t,n)!==0}complete_group_draw(t,n,r){const o=ze(r,C.__wbindgen_malloc,C.__wbindgen_realloc),i=ke;return C.workspaceengine_complete_group_draw(this.__wbg_ptr,t,n,o,i)>>>0}copy_to_clipboard(){return C.workspaceengine_copy_to_clipboard(this.__wbg_ptr)!==0}delete_selected_entities(){return C.workspaceengine_delete_selected_entities(this.__wbg_ptr)!==0}duplicate_selected(){return C.workspaceengine_duplicate_selected(this.__wbg_ptr)!==0}end_group_drag(){C.workspaceengine_end_group_drag(this.__wbg_ptr)}end_node_drag(){C.workspaceengine_end_node_drag(this.__wbg_ptr)}end_text_drag(){C.workspaceengine_end_text_drag(this.__wbg_ptr)}end_text_resize(){C.workspaceengine_end_text_resize(this.__wbg_ptr)}evaluate_current_step(t){return C.workspaceengine_evaluate_current_step(this.__wbg_ptr,t)!==0}export_design_state(){let t,n;try{const r=C.workspaceengine_export_design_state(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{C.__wbindgen_free(t,n,1)}}get_active_execution_hover_data(t,n){let r,o;try{const i=C.workspaceengine_get_active_execution_hover_data(this.__wbg_ptr,t,n);return r=i[0],o=i[1],_e(i[0],i[1])}finally{C.__wbindgen_free(r,o,1)}}get_dimensions(){let t,n;try{const r=C.workspaceengine_get_dimensions(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{C.__wbindgen_free(t,n,1)}}get_execution_report(){let t,n;try{const r=C.workspaceengine_get_execution_report(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{C.__wbindgen_free(t,n,1)}}get_group_title(t){let n,r;try{const o=C.workspaceengine_get_group_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_assigned_to(t){let n,r;try{const o=C.workspaceengine_get_node_assigned_to(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_defect_media(t){let n,r;try{const o=C.workspaceengine_get_node_defect_media(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_defect_report(t){let n,r;try{const o=C.workspaceengine_get_node_defect_report(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_description(t){let n,r;try{const o=C.workspaceengine_get_node_description(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_expected_result(t){let n,r;try{const o=C.workspaceengine_get_node_expected_result(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_priority(t){let n,r;try{const o=C.workspaceengine_get_node_priority(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_references(t){let n,r;try{const o=C.workspaceengine_get_node_references(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_steps(t){let n,r;try{const o=C.workspaceengine_get_node_steps(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_title(t){let n,r;try{const o=C.workspaceengine_get_node_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_node_visual_step(t){let n,r;try{const o=C.workspaceengine_get_node_visual_step(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}get_pan_offset_x(){return C.workspaceengine_get_pan_offset_x(this.__wbg_ptr)}get_pan_offset_y(){return C.workspaceengine_get_pan_offset_y(this.__wbg_ptr)}get_text_content(t){let n,r;try{const o=C.workspaceengine_get_text_content(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{C.__wbindgen_free(n,r,1)}}constructor(t,n,r){const o=ze(t,C.__wbindgen_malloc,C.__wbindgen_realloc),i=ke,s=C.workspaceengine_new(o,i,n,r);return this.__wbg_ptr=s,od.register(this,this.__wbg_ptr,this),this}paste_from_clipboard(){return C.workspaceengine_paste_from_clipboard(this.__wbg_ptr)!==0}recenter_view(){C.workspaceengine_recenter_view(this.__wbg_ptr)}render_diagnostic_grid(){const t=C.workspaceengine_render_diagnostic_grid(this.__wbg_ptr);if(t[1])throw jy(t[0])}restore_connection_packed(t,n,r,o,i,s,a,c,u){const y=ze(c,C.__wbindgen_malloc,C.__wbindgen_realloc),h=ke;C.workspaceengine_restore_connection_packed(this.__wbg_ptr,t,n,r,o,i,s,a,y,h,u)}restore_group(t,n,r,o,i,s,a){const c=ze(s,C.__wbindgen_malloc,C.__wbindgen_realloc),u=ke;C.workspaceengine_restore_group(this.__wbg_ptr,t,n,r,o,i,c,u,a)}restore_node_packed(t,n,r,o,i,s,a){const c=ze(s,C.__wbindgen_malloc,C.__wbindgen_realloc),u=ke;C.workspaceengine_restore_node_packed(this.__wbg_ptr,t,n,r,o,i,c,u,a)}restore_text(t,n,r,o,i,s,a){const c=ze(s,C.__wbindgen_malloc,C.__wbindgen_realloc),u=ke;C.workspaceengine_restore_text(this.__wbg_ptr,t,n,r,o,i,c,u,a)}set_mode(t){C.workspaceengine_set_mode(this.__wbg_ptr,t)}set_pan_offset(t,n){C.workspaceengine_set_pan_offset(this.__wbg_ptr,t,n)}trigger_redo(){return C.workspaceengine_trigger_redo(this.__wbg_ptr)!==0}trigger_undo(){return C.workspaceengine_trigger_undo(this.__wbg_ptr)!==0}update_connection_cursor(t,n){C.workspaceengine_update_connection_cursor(this.__wbg_ptr,t,n)}update_dimensions(t,n,r,o){C.workspaceengine_update_dimensions(this.__wbg_ptr,t,n,r,o)}update_group_drag(t,n){C.workspaceengine_update_group_drag(this.__wbg_ptr,t,n)}update_group_draw(t,n){C.workspaceengine_update_group_draw(this.__wbg_ptr,t,n)}update_group_title(t,n){const r=ze(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=ke;C.workspaceengine_update_group_title(this.__wbg_ptr,t,r,o)}update_hover_cursor(t,n){C.workspaceengine_update_hover_cursor(this.__wbg_ptr,t,n)}update_node_data(t,n,r,o,i,s,a){const c=ze(n,C.__wbindgen_malloc,C.__wbindgen_realloc),u=ke,y=ze(r,C.__wbindgen_malloc,C.__wbindgen_realloc),h=ke,x=ze(o,C.__wbindgen_malloc,C.__wbindgen_realloc),m=ke,_=ze(i,C.__wbindgen_malloc,C.__wbindgen_realloc),w=ke,I=ze(s,C.__wbindgen_malloc,C.__wbindgen_realloc),p=ke,d=ze(a,C.__wbindgen_malloc,C.__wbindgen_realloc),g=ke;C.workspaceengine_update_node_data(this.__wbg_ptr,t,c,u,y,h,x,m,_,w,I,p,d,g)}update_node_defect_data(t,n,r,o){const i=ze(n,C.__wbindgen_malloc,C.__wbindgen_realloc),s=ke,a=ze(r,C.__wbindgen_malloc,C.__wbindgen_realloc),c=ke,u=ze(o,C.__wbindgen_malloc,C.__wbindgen_realloc),y=ke;C.workspaceengine_update_node_defect_data(this.__wbg_ptr,t,i,s,a,c,u,y)}update_node_drag(t,n){C.workspaceengine_update_node_drag(this.__wbg_ptr,t,n)}update_node_visual_step(t,n){const r=ze(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=ke;return C.workspaceengine_update_node_visual_step(this.__wbg_ptr,t,r,o)!==0}update_text_content(t,n){const r=ze(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=ke;C.workspaceengine_update_text_content(this.__wbg_ptr,t,r,o)}update_text_drag(t,n){C.workspaceengine_update_text_drag(this.__wbg_ptr,t,n)}update_text_resize(t,n){C.workspaceengine_update_text_resize(this.__wbg_ptr,t,n)}}Symbol.dispose&&(al.prototype[Symbol.dispose]=al.prototype.free);const xe=Object.freeze({Design:0,0:"Design",Execution:1,1:"Execution"});function Cy(){let e,t;try{const n=C.get_engine_version();return e=n[0],t=n[1],_e(n[0],n[1])}finally{C.__wbindgen_free(e,t,1)}}function Ty(){return{__proto__:null,"./workspace_engine_bg.js":{__proto__:null,__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return t===void 0},__wbg___wbindgen_throw_344f42d3211c4765:function(t,n){throw new Error(_e(t,n))},__wbg_arc_61372d0a8f0a988c:function(){return or(function(t,n,r,o,i,s){t.arc(n,r,o,i,s)},arguments)},__wbg_beginPath_ca2dfce389ff20d2:function(t){t.beginPath()},__wbg_closePath_0e752092e41e1e22:function(t){t.closePath()},__wbg_document_179650d6cb13c263:function(t){const n=t.document;return Pn(n)?0:un(n)},__wbg_fillRect_97b1f503e30148c3:function(t,n,r,o,i){t.fillRect(n,r,o,i)},__wbg_fillText_e462ba58cec15054:function(){return or(function(t,n,r,o,i){t.fillText(_e(n,r),o,i)},arguments)},__wbg_fill_7e2406c195723006:function(t){t.fill()},__wbg_getContext_e79ddf6a9cb3cc76:function(){return or(function(t,n,r){const o=t.getContext(_e(n,r));return Pn(o)?0:un(o)},arguments)},__wbg_getElementById_1cbd8f06dbe8eb8e:function(t,n,r){const o=t.getElementById(_e(n,r));return Pn(o)?0:un(o)},__wbg_instanceof_CanvasRenderingContext2d_2284b703b7023dcc:function(t){let n;try{n=t instanceof CanvasRenderingContext2D}catch{n=!1}return n},__wbg_instanceof_HtmlCanvasElement_ed02ed9136056019:function(t){let n;try{n=t instanceof HTMLCanvasElement}catch{n=!1}return n},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let n;try{n=t instanceof Window}catch{n=!1}return n},__wbg_lineTo_1aeefd30328165b5:function(t,n,r){t.lineTo(n,r)},__wbg_measureText_c54a480a20a73a31:function(){return or(function(t,n,r){return t.measureText(_e(n,r))},arguments)},__wbg_moveTo_2618bed6b5b25622:function(t,n,r){t.moveTo(n,r)},__wbg_new_32b398fb48b6d94a:function(){return new Array},__wbg_push_d2ae3af0c1217ae6:function(t,n){return t.push(n)},__wbg_quadraticCurveTo_c461b48b1c826818:function(t,n,r,o,i){t.quadraticCurveTo(n,r,o,i)},__wbg_scale_c1f36b23e39bf061:function(){return or(function(t,n,r){t.scale(n,r)},arguments)},__wbg_setLineDash_63ce60143e4d578a:function(){return or(function(t,n){t.setLineDash(n)},arguments)},__wbg_set_fillStyle_50280bb4932b89d2:function(t,n){t.fillStyle=n},__wbg_set_font_33fee74f2c82cb6f:function(t,n,r){t.font=_e(n,r)},__wbg_set_height_7d9d8f892e6964c6:function(t,n){t.height=n>>>0},__wbg_set_lineWidth_beb3d05e36f4cc53:function(t,n){t.lineWidth=n},__wbg_set_shadowBlur_3f8fd92fc17ae584:function(t,n){t.shadowBlur=n},__wbg_set_shadowColor_f84336148c00ebf9:function(t,n,r){t.shadowColor=_e(n,r)},__wbg_set_shadowOffsetY_311ddd1a2761697f:function(t,n){t.shadowOffsetY=n},__wbg_set_strokeStyle_8877ef451272f3e2:function(t,n){t.strokeStyle=n},__wbg_set_textAlign_75f93b22c0415d5d:function(t,n,r){t.textAlign=_e(n,r)},__wbg_set_textBaseline_edb08ba62ac0d3ac:function(t,n,r){t.textBaseline=_e(n,r)},__wbg_set_width_8e30d010cd66830d:function(t,n){t.width=n>>>0},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){const t=typeof global>"u"?null:global;return Pn(t)?0:un(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return Pn(t)?0:un(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return Pn(t)?0:un(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return Pn(t)?0:un(t)},__wbg_strokeRect_74c74060d04c703b:function(t,n,r,o,i){t.strokeRect(n,r,o,i)},__wbg_stroke_cf809e69aae41b03:function(t){t.stroke()},__wbg_width_84477c442af415ce:function(t){return t.width},__wbindgen_cast_0000000000000001:function(t){return t},__wbindgen_cast_0000000000000002:function(t,n){return _e(t,n)},__wbindgen_init_externref_table:function(){const t=C.__wbindgen_externrefs,n=t.grow(4);t.set(0,void 0),t.set(n+0,void 0),t.set(n+1,null),t.set(n+2,!0),t.set(n+3,!1)}}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>C.__wbg_qaarrow_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>C.__wbg_qagroup_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>C.__wbg_qanode_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>C.__wbg_qatext_free(e,1));const od=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>C.__wbg_workspaceengine_free(e,1));function un(e){const t=C.__externref_table_alloc();return C.__wbindgen_externrefs.set(t,e),t}function _e(e,t){return Iy(e>>>0,t)}let lo=null;function Ni(){return(lo===null||lo.byteLength===0)&&(lo=new Uint8Array(C.memory.buffer)),lo}function or(e,t){try{return e.apply(this,t)}catch(n){const r=un(n);C.__wbindgen_exn_store(r)}}function Pn(e){return e==null}function ze(e,t,n){if(n===void 0){const a=vo.encode(e),c=t(a.length,1)>>>0;return Ni().subarray(c,c+a.length).set(a),ke=a.length,c}let r=e.length,o=t(r,1)>>>0;const i=Ni();let s=0;for(;s<r;s++){const a=e.charCodeAt(s);if(a>127)break;i[o+s]=a}if(s!==r){s!==0&&(e=e.slice(s)),o=n(o,r,r=s+e.length*3,1)>>>0;const a=Ni().subarray(o+s,o+r),c=vo.encodeInto(e,a);s+=c.written,o=n(o,r,s,1)>>>0}return ke=s,o}function jy(e){const t=C.__wbindgen_externrefs.get(e);return C.__externref_table_dealloc(e),t}let Di=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Di.decode();const Ry=2146435072;let vs=0;function Iy(e,t){return vs+=t,vs>=Ry&&(Di=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Di.decode(),vs=t),Di.decode(Ni().subarray(e,e+t))}const vo=new TextEncoder;"encodeInto"in vo||(vo.encodeInto=function(e,t){const n=vo.encode(e);return t.set(n),{read:e.length,written:n.length}});let ke=0,C;function zy(e,t){return C=e.exports,lo=null,C.__wbindgen_start(),C}async function Ly(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&n(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function Jp(e){if(C!==void 0)return C;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL(""+new URL("workspace_engine_bg-BVlpAZ1H.wasm",import.meta.url).href,import.meta.url));const t=Ty();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await Ly(await e,t);return zy(n)}let Ay={data:""},Ny=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Ay},Dy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Py=/\/\*[^]*?\*\/| +/g,id=/\n+/g,hn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?hn(s,i):i+"{"+hn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=hn(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=i[1]=="-"?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=hn.p?hn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},an={},eg=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+eg(e[n]);return t}return e},Oy=(e,t,n,r,o)=>{let i=eg(e),s=an[i]||(an[i]=(c=>{let u=0,y=11;for(;u<c.length;)y=101*y+c.charCodeAt(u++)>>>0;return"go"+y})(i));if(!an[s]){let c=i!==e?e:(u=>{let y,h,x=[{}];for(;y=Dy.exec(u.replace(Py,""));)y[4]?x.shift():y[3]?(h=y[3].replace(id," ").trim(),x.unshift(x[0][h]=x[0][h]||{})):x[0][y[1]]=y[2].replace(id," ").trim();return x[0]})(e);an[s]=hn(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&an.g;return n&&(an.g=an[s]),((c,u,y,h)=>{h?u.data=u.data.replace(h,c):u.data.indexOf(c)===-1&&(u.data=y?c+u.data:u.data+c)})(an[s],t,r,a),s},My=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":hn(a,""):a===!1?"":a}return r+o+(s??"")},"");function Tl(e){let t=this||{},n=e.call?e(t.p):e;return Oy(n.unshift?n.raw?My(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Ny(t.target),t.g,t.o,t.k)}let tg,ma,va;Tl.bind({g:1});let tn=Tl.bind({k:1});function Fy(e,t,n,r){hn.p=t,tg=e,ma=n,va=r}function An(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:ma&&ma()},a),n.o=/go\d/.test(c),a.className=Tl.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),va&&u[0]&&va(a),tg(u,a)}return o}}var Wy=e=>typeof e=="function",cl=(e,t)=>Wy(e)?e(t):e,By=(()=>{let e=0;return()=>(++e).toString()})(),ng=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Uy=20,bc="default",rg=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return rg(e,{type:e.toasts.find(s=>s.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Pi=[],og={toasts:[],pausedAt:void 0,settings:{toastLimit:Uy}},Ut={},ig=(e,t=bc)=>{Ut[t]=rg(Ut[t]||og,e),Pi.forEach(([n,r])=>{n===t&&r(Ut[t])})},lg=e=>Object.keys(Ut).forEach(t=>ig(e,t)),$y=e=>Object.keys(Ut).find(t=>Ut[t].toasts.some(n=>n.id===e)),jl=(e=bc)=>t=>{ig(t,e)},Hy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Vy=(e={},t=bc)=>{let[n,r]=b.useState(Ut[t]||og),o=b.useRef(Ut[t]);b.useEffect(()=>(o.current!==Ut[t]&&r(Ut[t]),Pi.push([t,r]),()=>{let s=Pi.findIndex(([a])=>a===t);s>-1&&Pi.splice(s,1)}),[t]);let i=n.toasts.map(s=>{var a,c,u;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((a=e[s.type])==null?void 0:a.removeDelay)||(e==null?void 0:e.removeDelay),duration:s.duration||((c=e[s.type])==null?void 0:c.duration)||(e==null?void 0:e.duration)||Hy[s.type],style:{...e.style,...(u=e[s.type])==null?void 0:u.style,...s.style}}});return{...n,toasts:i}},Gy=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||By()}),Uo=e=>(t,n)=>{let r=Gy(t,e,n);return jl(r.toasterId||$y(r.id))({type:2,toast:r}),r.id},Me=(e,t)=>Uo("blank")(e,t);Me.error=Uo("error");Me.success=Uo("success");Me.loading=Uo("loading");Me.custom=Uo("custom");Me.dismiss=(e,t)=>{let n={type:3,toastId:e};t?jl(t)(n):lg(n)};Me.dismissAll=e=>Me.dismiss(void 0,e);Me.remove=(e,t)=>{let n={type:4,toastId:e};t?jl(t)(n):lg(n)};Me.removeAll=e=>Me.remove(void 0,e);Me.promise=(e,t,n)=>{let r=Me.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let i=t.success?cl(t.success,o):void 0;return i?Me.success(i,{id:r,...n,...n==null?void 0:n.success}):Me.dismiss(r),o}).catch(o=>{let i=t.error?cl(t.error,o):void 0;i?Me.error(i,{id:r,...n,...n==null?void 0:n.error}):Me.dismiss(r)}),e};var Yy=1e3,Xy=(e,t="default")=>{let{toasts:n,pausedAt:r}=Vy(e,t),o=b.useRef(new Map).current,i=b.useCallback((h,x=Yy)=>{if(o.has(h))return;let m=setTimeout(()=>{o.delete(h),s({type:4,toastId:h})},x);o.set(h,m)},[]);b.useEffect(()=>{if(r)return;let h=Date.now(),x=n.map(m=>{if(m.duration===1/0)return;let _=(m.duration||0)+m.pauseDuration-(h-m.createdAt);if(_<0){m.visible&&Me.dismiss(m.id);return}return setTimeout(()=>Me.dismiss(m.id,t),_)});return()=>{x.forEach(m=>m&&clearTimeout(m))}},[n,r,t]);let s=b.useCallback(jl(t),[t]),a=b.useCallback(()=>{s({type:5,time:Date.now()})},[s]),c=b.useCallback((h,x)=>{s({type:1,toast:{id:h,height:x}})},[s]),u=b.useCallback(()=>{r&&s({type:6,time:Date.now()})},[r,s]),y=b.useCallback((h,x)=>{let{reverseOrder:m=!1,gutter:_=8,defaultPosition:w}=x||{},I=n.filter(g=>(g.position||w)===(h.position||w)&&g.height),p=I.findIndex(g=>g.id===h.id),d=I.filter((g,v)=>v<p&&g.visible).length;return I.filter(g=>g.visible).slice(...m?[d+1]:[0,d]).reduce((g,v)=>g+(v.height||0)+_,0)},[n]);return b.useEffect(()=>{n.forEach(h=>{if(h.dismissed)i(h.id,h.removeDelay);else{let x=o.get(h.id);x&&(clearTimeout(x),o.delete(h.id))}})},[n,i]),{toasts:n,handlers:{updateHeight:c,startPause:a,endPause:u,calculateOffset:y}}},Qy=tn`
|
|
389
|
+
from {
|
|
390
|
+
transform: scale(0) rotate(45deg);
|
|
391
|
+
opacity: 0;
|
|
392
|
+
}
|
|
393
|
+
to {
|
|
394
|
+
transform: scale(1) rotate(45deg);
|
|
395
|
+
opacity: 1;
|
|
396
|
+
}`,Ky=tn`
|
|
397
|
+
from {
|
|
398
|
+
transform: scale(0);
|
|
399
|
+
opacity: 0;
|
|
400
|
+
}
|
|
401
|
+
to {
|
|
402
|
+
transform: scale(1);
|
|
403
|
+
opacity: 1;
|
|
404
|
+
}`,qy=tn`
|
|
405
|
+
from {
|
|
406
|
+
transform: scale(0) rotate(90deg);
|
|
407
|
+
opacity: 0;
|
|
408
|
+
}
|
|
409
|
+
to {
|
|
410
|
+
transform: scale(1) rotate(90deg);
|
|
411
|
+
opacity: 1;
|
|
412
|
+
}`,Zy=An("div")`
|
|
413
|
+
width: 20px;
|
|
414
|
+
opacity: 0;
|
|
415
|
+
height: 20px;
|
|
416
|
+
border-radius: 10px;
|
|
417
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
418
|
+
position: relative;
|
|
419
|
+
transform: rotate(45deg);
|
|
420
|
+
|
|
421
|
+
animation: ${Qy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
422
|
+
forwards;
|
|
423
|
+
animation-delay: 100ms;
|
|
424
|
+
|
|
425
|
+
&:after,
|
|
426
|
+
&:before {
|
|
427
|
+
content: '';
|
|
428
|
+
animation: ${Ky} 0.15s ease-out forwards;
|
|
429
|
+
animation-delay: 150ms;
|
|
430
|
+
position: absolute;
|
|
431
|
+
border-radius: 3px;
|
|
432
|
+
opacity: 0;
|
|
433
|
+
background: ${e=>e.secondary||"#fff"};
|
|
434
|
+
bottom: 9px;
|
|
435
|
+
left: 4px;
|
|
436
|
+
height: 2px;
|
|
437
|
+
width: 12px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&:before {
|
|
441
|
+
animation: ${qy} 0.15s ease-out forwards;
|
|
442
|
+
animation-delay: 180ms;
|
|
443
|
+
transform: rotate(90deg);
|
|
444
|
+
}
|
|
445
|
+
`,Jy=tn`
|
|
446
|
+
from {
|
|
447
|
+
transform: rotate(0deg);
|
|
448
|
+
}
|
|
449
|
+
to {
|
|
450
|
+
transform: rotate(360deg);
|
|
451
|
+
}
|
|
452
|
+
`,em=An("div")`
|
|
453
|
+
width: 12px;
|
|
454
|
+
height: 12px;
|
|
455
|
+
box-sizing: border-box;
|
|
456
|
+
border: 2px solid;
|
|
457
|
+
border-radius: 100%;
|
|
458
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
459
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
460
|
+
animation: ${Jy} 1s linear infinite;
|
|
461
|
+
`,tm=tn`
|
|
462
|
+
from {
|
|
463
|
+
transform: scale(0) rotate(45deg);
|
|
464
|
+
opacity: 0;
|
|
465
|
+
}
|
|
466
|
+
to {
|
|
467
|
+
transform: scale(1) rotate(45deg);
|
|
468
|
+
opacity: 1;
|
|
469
|
+
}`,nm=tn`
|
|
470
|
+
0% {
|
|
471
|
+
height: 0;
|
|
472
|
+
width: 0;
|
|
473
|
+
opacity: 0;
|
|
474
|
+
}
|
|
475
|
+
40% {
|
|
476
|
+
height: 0;
|
|
477
|
+
width: 6px;
|
|
478
|
+
opacity: 1;
|
|
479
|
+
}
|
|
480
|
+
100% {
|
|
481
|
+
opacity: 1;
|
|
482
|
+
height: 10px;
|
|
483
|
+
}`,rm=An("div")`
|
|
484
|
+
width: 20px;
|
|
485
|
+
opacity: 0;
|
|
486
|
+
height: 20px;
|
|
487
|
+
border-radius: 10px;
|
|
488
|
+
background: ${e=>e.primary||"#61d345"};
|
|
489
|
+
position: relative;
|
|
490
|
+
transform: rotate(45deg);
|
|
491
|
+
|
|
492
|
+
animation: ${tm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
493
|
+
forwards;
|
|
494
|
+
animation-delay: 100ms;
|
|
495
|
+
&:after {
|
|
496
|
+
content: '';
|
|
497
|
+
box-sizing: border-box;
|
|
498
|
+
animation: ${nm} 0.2s ease-out forwards;
|
|
499
|
+
opacity: 0;
|
|
500
|
+
animation-delay: 200ms;
|
|
501
|
+
position: absolute;
|
|
502
|
+
border-right: 2px solid;
|
|
503
|
+
border-bottom: 2px solid;
|
|
504
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
505
|
+
bottom: 6px;
|
|
506
|
+
left: 6px;
|
|
507
|
+
height: 10px;
|
|
508
|
+
width: 6px;
|
|
509
|
+
}
|
|
510
|
+
`,om=An("div")`
|
|
511
|
+
position: absolute;
|
|
512
|
+
`,im=An("div")`
|
|
513
|
+
position: relative;
|
|
514
|
+
display: flex;
|
|
515
|
+
justify-content: center;
|
|
516
|
+
align-items: center;
|
|
517
|
+
min-width: 20px;
|
|
518
|
+
min-height: 20px;
|
|
519
|
+
`,lm=tn`
|
|
520
|
+
from {
|
|
521
|
+
transform: scale(0.6);
|
|
522
|
+
opacity: 0.4;
|
|
523
|
+
}
|
|
524
|
+
to {
|
|
525
|
+
transform: scale(1);
|
|
526
|
+
opacity: 1;
|
|
527
|
+
}`,sm=An("div")`
|
|
528
|
+
position: relative;
|
|
529
|
+
transform: scale(0.6);
|
|
530
|
+
opacity: 0.4;
|
|
531
|
+
min-width: 20px;
|
|
532
|
+
animation: ${lm} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
533
|
+
forwards;
|
|
534
|
+
`,am=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(sm,null,t):t:n==="blank"?null:b.createElement(im,null,b.createElement(em,{...r}),n!=="loading"&&b.createElement(om,null,n==="error"?b.createElement(Zy,{...r}):b.createElement(rm,{...r})))},cm=e=>`
|
|
535
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
536
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
537
|
+
`,um=e=>`
|
|
538
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
539
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
540
|
+
`,dm="0%{opacity:0;} 100%{opacity:1;}",fm="0%{opacity:1;} 100%{opacity:0;}",pm=An("div")`
|
|
541
|
+
display: flex;
|
|
542
|
+
align-items: center;
|
|
543
|
+
background: #fff;
|
|
544
|
+
color: #363636;
|
|
545
|
+
line-height: 1.3;
|
|
546
|
+
will-change: transform;
|
|
547
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
548
|
+
max-width: 350px;
|
|
549
|
+
pointer-events: auto;
|
|
550
|
+
padding: 8px 10px;
|
|
551
|
+
border-radius: 8px;
|
|
552
|
+
`,gm=An("div")`
|
|
553
|
+
display: flex;
|
|
554
|
+
justify-content: center;
|
|
555
|
+
margin: 4px 10px;
|
|
556
|
+
color: inherit;
|
|
557
|
+
flex: 1 1 auto;
|
|
558
|
+
white-space: pre-line;
|
|
559
|
+
`,hm=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=ng()?[dm,fm]:[cm(n),um(n)];return{animation:t?`${tn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${tn(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},xm=b.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?hm(e.position||t||"top-center",e.visible):{opacity:0},i=b.createElement(am,{toast:e}),s=b.createElement(gm,{...e.ariaProps},cl(e.message,e));return b.createElement(pm,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):b.createElement(b.Fragment,null,i,s))});Fy(b.createElement);var ym=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=b.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:i,className:t,style:n},o)},mm=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ng()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},vm=Tl`
|
|
560
|
+
z-index: 9999;
|
|
561
|
+
> * {
|
|
562
|
+
pointer-events: auto;
|
|
563
|
+
}
|
|
564
|
+
`,_i=16,_m=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:a})=>{let{toasts:c,handlers:u}=Xy(n,i);return b.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:_i,left:_i,right:_i,bottom:_i,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(y=>{let h=y.position||t,x=u.calculateOffset(y,{reverseOrder:e,gutter:r,defaultPosition:t}),m=mm(h,x);return b.createElement(ym,{id:y.id,key:y.id,onHeightUpdate:u.updateHeight,className:y.visible?vm:"",style:m},y.type==="custom"?cl(y.message,y):o?o(y):b.createElement(xm,{toast:y,position:h}))}))},at=Me;/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function ld(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wm(e){if(Array.isArray(e))return e}function Sm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(y){u=!0,o=y}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function bm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
565
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function km(e,t){return wm(e)||Sm(e,t)||Em(e,t)||bm()}function Em(e,t){if(e){if(typeof e=="string")return ld(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ld(e,t):void 0}}const sg=Object.entries,sd=Object.setPrototypeOf,Cm=Object.isFrozen,Tm=Object.getPrototypeOf,jm=Object.getOwnPropertyDescriptor;let Ve=Object.freeze,Xe=Object.seal,sr=Object.create,ag=typeof Reflect<"u"&&Reflect,_a=ag.apply,wa=ag.construct;Ve||(Ve=function(t){return t});Xe||(Xe=function(t){return t});_a||(_a=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});wa||(wa=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const ir=De(Array.prototype.forEach),Rm=De(Array.prototype.lastIndexOf),ad=De(Array.prototype.pop),lr=De(Array.prototype.push),Im=De(Array.prototype.splice),xn=Array.isArray,so=De(String.prototype.toLowerCase),_s=De(String.prototype.toString),cd=De(String.prototype.match),Jr=De(String.prototype.replace),ud=De(String.prototype.indexOf),zm=De(String.prototype.trim),Lm=De(Number.prototype.toString),Am=De(Boolean.prototype.toString),dd=typeof BigInt>"u"?null:De(BigInt.prototype.toString),fd=typeof Symbol>"u"?null:De(Symbol.prototype.toString),Be=De(Object.prototype.hasOwnProperty),eo=De(Object.prototype.toString),We=De(RegExp.prototype.test),On=Nm(TypeError);function De(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return _a(e,t,r)}}function Nm(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wa(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:so;if(sd&&sd(e,null),!xn(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(Cm(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Dm(e){for(let t=0;t<e.length;t++)Be(e,t)||(e[t]=null);return e}function qe(e){const t=sr(null);for(const r of sg(e)){var n=km(r,2);const o=n[0],i=n[1];Be(e,o)&&(xn(i)?t[o]=Dm(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=qe(i):t[o]=i)}return t}function Pm(e){switch(typeof e){case"string":return e;case"number":return Lm(e);case"boolean":return Am(e);case"bigint":return dd?dd(e):"0";case"symbol":return fd?fd(e):"Symbol()";case"undefined":return eo(e);case"function":case"object":{if(e===null)return eo(e);const t=e,n=Rt(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:eo(r)}return eo(e)}default:return eo(e)}}function Rt(e,t){for(;e!==null;){const r=jm(e,t);if(r){if(r.get)return De(r.get);if(typeof r.value=="function")return De(r.value)}e=Tm(e)}function n(){return null}return n}function Om(e){try{return We(e,""),!0}catch{return!1}}const pd=Ve(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ws=Ve(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ss=Ve(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mm=Ve(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),bs=Ve(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fm=Ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gd=Ve(["#text"]),hd=Ve(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ks=Ve(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xd=Ve(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wi=Ve(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Wm=Xe(/{{[\w\W]*|^[\w\W]*}}/g),Bm=Xe(/<%[\w\W]*|^[\w\W]*%>/g),Um=Xe(/\${[\w\W]*/g),$m=Xe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hm=Xe(/^aria-[\-\w]+$/),yd=Xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vm=Xe(/^(?:\w+script|data):/i),Gm=Xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ym=Xe(/^html$/i),Xm=Xe(/^[a-z][.\w]*(-[.\w]+)+$/i),md=Xe(/<[/\w!]/g),vd=Xe(/<[/\w]/g),Qm=Xe(/<\/no(script|embed|frames)/i),Km=Xe(/\/>/i),gt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qm=function(){return typeof window>"u"?null:window},Zm=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},_d=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(t,n,r,o){return Be(t,n)&&xn(t[n])?fe(o.base?qe(o.base):{},t[n],o.transform):r};function cg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qm();const t=U=>cg(U);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==gt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const y=e.DOMParser,h=e.trustedTypes,x=a.prototype,m=Rt(x,"cloneNode"),_=Rt(x,"remove"),w=Rt(x,"nextSibling"),I=Rt(x,"childNodes"),p=Rt(x,"parentNode"),d=Rt(x,"shadowRoot"),g=Rt(x,"attributes"),v=s&&s.prototype?Rt(s.prototype,"nodeType"):null,R=s&&s.prototype?Rt(s.prototype,"nodeName"):null,j=s&&s.prototype?Rt(s.prototype,"ownerDocument"):null;if(typeof i=="function"){const U=n.createElement("template");U.content&&U.content.ownerDocument&&(n=U.content.ownerDocument)}let N,k="",V,$=!1,re=0;const ae=function(){if(re>0)throw On('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},W=function(f){ae(),re++;try{return N.createHTML(f)}finally{re--}},oe=function(f){ae(),re++;try{return N.createScriptURL(f)}finally{re--}},ne=function(){return $||(V=Zm(h,o),$=!0),V},he=n,O=he.implementation,F=he.createNodeIterator,A=he.createDocumentFragment,E=he.getElementsByTagName,D=r.importNode;let L=_d();t.isSupported=typeof sg=="function"&&typeof p=="function"&&O&&O.createHTMLDocument!==void 0;const Q=Wm,ee=Bm,ve=Um,ie=$m,de=Hm,z=Vm,T=Gm,G=Xm;let Y=yd,H=null;const J=fe({},[...pd,...ws,...Ss,...bs,...gd]);let P=null;const le=fe({},[...hd,...ks,...xd,...wi]);let Z=Object.seal(sr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,ge=null;const Pe=Object.seal(sr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Vt=!0,Wr=!0,$o=!1,Ho=!0,rn=!1,on=!0,Nn=!1,Rl=!1,Vo=null,Go=null,Il=!1,Zn=!1,Yo=!1,Xo=!1,kc=!0,Ec=!1;const Cc="user-content-";let zl=!0,Qo=!1,Jn={},Pt=null;const Ll=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Tc=null;const jc=fe({},["audio","video","img","source","image","track"]);let Al=null;const Rc=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ko="http://www.w3.org/1998/Math/MathML",qo="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let er=Ot,Nl=!1,Dl=null;const pg=fe({},[Ko,qo,Ot],_s),Ic=Ve(["mi","mo","mn","ms","mtext"]);let Pl=fe({},Ic);const zc=Ve(["annotation-xml"]);let Ol=fe({},zc);const gg=fe({},["title","style","font","a","script"]);let Br=null;const hg=["application/xhtml+xml","text/html"],xg="text/html";let Ce=null,tr=null;const yg=n.createElement("form"),Lc=function(f){return f instanceof RegExp||f instanceof Function},Ml=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tr&&tr===f)return;(!f||typeof f!="object")&&(f={}),f=qe(f),Br=hg.indexOf(f.PARSER_MEDIA_TYPE)===-1?xg:f.PARSER_MEDIA_TYPE,Ce=Br==="application/xhtml+xml"?_s:so,H=cn(f,"ALLOWED_TAGS",J,{transform:Ce}),P=cn(f,"ALLOWED_ATTR",le,{transform:Ce}),Dl=cn(f,"ALLOWED_NAMESPACES",pg,{transform:_s}),Al=cn(f,"ADD_URI_SAFE_ATTR",Rc,{transform:Ce,base:Rc}),Tc=cn(f,"ADD_DATA_URI_TAGS",jc,{transform:Ce,base:jc}),Pt=cn(f,"FORBID_CONTENTS",Ll,{transform:Ce}),ue=cn(f,"FORBID_TAGS",qe({}),{transform:Ce}),ge=cn(f,"FORBID_ATTR",qe({}),{transform:Ce}),Jn=Be(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?qe(f.USE_PROFILES):f.USE_PROFILES:!1,Vt=f.ALLOW_ARIA_ATTR!==!1,Wr=f.ALLOW_DATA_ATTR!==!1,$o=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Ho=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,rn=f.SAFE_FOR_TEMPLATES||!1,on=f.SAFE_FOR_XML!==!1,Nn=f.WHOLE_DOCUMENT||!1,Zn=f.RETURN_DOM||!1,Yo=f.RETURN_DOM_FRAGMENT||!1,Xo=f.RETURN_TRUSTED_TYPE||!1,Il=f.FORCE_BODY||!1,kc=f.SANITIZE_DOM!==!1,Ec=f.SANITIZE_NAMED_PROPS||!1,zl=f.KEEP_CONTENT!==!1,Qo=f.IN_PLACE||!1,Y=Om(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:yd,er=typeof f.NAMESPACE=="string"?f.NAMESPACE:Ot,Pl=Be(f,"MATHML_TEXT_INTEGRATION_POINTS")&&f.MATHML_TEXT_INTEGRATION_POINTS&&typeof f.MATHML_TEXT_INTEGRATION_POINTS=="object"?qe(f.MATHML_TEXT_INTEGRATION_POINTS):fe({},Ic),Ol=Be(f,"HTML_INTEGRATION_POINTS")&&f.HTML_INTEGRATION_POINTS&&typeof f.HTML_INTEGRATION_POINTS=="object"?qe(f.HTML_INTEGRATION_POINTS):fe({},zc);const S=Be(f,"CUSTOM_ELEMENT_HANDLING")&&f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING=="object"?qe(f.CUSTOM_ELEMENT_HANDLING):sr(null);if(Z=sr(null),Be(S,"tagNameCheck")&&Lc(S.tagNameCheck)&&(Z.tagNameCheck=S.tagNameCheck),Be(S,"attributeNameCheck")&&Lc(S.attributeNameCheck)&&(Z.attributeNameCheck=S.attributeNameCheck),Be(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Xe(Z),rn&&(Wr=!1),Yo&&(Zn=!0),Jn&&(H=fe({},gd),P=sr(null),Jn.html===!0&&(fe(H,pd),fe(P,hd)),Jn.svg===!0&&(fe(H,ws),fe(P,ks),fe(P,wi)),Jn.svgFilters===!0&&(fe(H,Ss),fe(P,ks),fe(P,wi)),Jn.mathMl===!0&&(fe(H,bs),fe(P,xd),fe(P,wi))),Pe.tagCheck=null,Pe.attributeCheck=null,Be(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?Pe.tagCheck=f.ADD_TAGS:xn(f.ADD_TAGS)&&(H===J&&(H=qe(H)),fe(H,f.ADD_TAGS,Ce))),Be(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?Pe.attributeCheck=f.ADD_ATTR:xn(f.ADD_ATTR)&&(P===le&&(P=qe(P)),fe(P,f.ADD_ATTR,Ce))),Be(f,"ADD_URI_SAFE_ATTR")&&xn(f.ADD_URI_SAFE_ATTR)&&fe(Al,f.ADD_URI_SAFE_ATTR,Ce),Be(f,"FORBID_CONTENTS")&&xn(f.FORBID_CONTENTS)&&(Pt===Ll&&(Pt=qe(Pt)),fe(Pt,f.FORBID_CONTENTS,Ce)),Be(f,"ADD_FORBID_CONTENTS")&&xn(f.ADD_FORBID_CONTENTS)&&(Pt===Ll&&(Pt=qe(Pt)),fe(Pt,f.ADD_FORBID_CONTENTS,Ce)),zl&&(H["#text"]=!0),Nn&&fe(H,["html","head","body"]),H.table&&(fe(H,["tbody"]),delete ue.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const M=N;N=f.TRUSTED_TYPES_POLICY;try{k=W("")}catch(K){throw N=M,K}}else f.TRUSTED_TYPES_POLICY===null?(N=void 0,k=""):(N===void 0&&(N=ne()),N&&typeof k=="string"&&(k=W("")));Ve&&Ve(f),tr=f},Ac=fe({},[...ws,...Ss,...Mm]),Nc=fe({},[...bs,...Fm]),mg=function(f,S,M){return S.namespaceURI===Ot?f==="svg":S.namespaceURI===Ko?f==="svg"&&(M==="annotation-xml"||Pl[M]):!!Ac[f]},vg=function(f,S,M){return S.namespaceURI===Ot?f==="math":S.namespaceURI===qo?f==="math"&&Ol[M]:!!Nc[f]},_g=function(f,S,M){return S.namespaceURI===qo&&!Ol[M]||S.namespaceURI===Ko&&!Pl[M]?!1:!Nc[f]&&(gg[f]||!Ac[f])},wg=function(f){let S=p(f);(!S||!S.tagName)&&(S={namespaceURI:er,tagName:"template"});const M=so(f.tagName),K=so(S.tagName);return Dl[f.namespaceURI]?f.namespaceURI===qo?mg(M,S,K):f.namespaceURI===Ko?vg(M,S,K):f.namespaceURI===Ot?_g(M,S,K):!!(Br==="application/xhtml+xml"&&Dl[f.namespaceURI]):!1},ln=function(f){lr(t.removed,{element:f});try{p(f).removeChild(f)}catch{if(_(f),!p(f))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zo=function(f){Ur(f);const S=I(f);if(S){const K=[];ir(S,te=>{lr(K,te)}),ir(K,te=>{try{_(te)}catch{}})}const M=g(f);if(M)for(let K=M.length-1;K>=0;--K){const te=M[K],se=te&&te.name;if(typeof se=="string")try{f.removeAttribute(se)}catch{}}},Dn=function(f,S){try{lr(t.removed,{attribute:S.getAttributeNode(f),from:S})}catch{lr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(f),f==="is")if(Zn||Yo)try{ln(S)}catch{}else try{S.setAttribute(f,"")}catch{}},Sg=function(f){const S=g(f);if(S)for(let M=S.length-1;M>=0;--M){const K=S[M],te=K&&K.name;if(!(typeof te!="string"||P[Ce(te)]))try{f.removeAttribute(te)}catch{}}},Ur=function(f){const S=[f];for(;S.length>0;){const M=S.pop();(v?v(M):M.nodeType)===gt.element&&Sg(M);const te=I(M);if(te)for(let se=te.length-1;se>=0;--se)S.push(te[se])}},bg=function(f){if(!on)return;const S=[f];for(;S.length>0;){const M=S.pop(),K=v?v(M):M.nodeType;if(K===gt.processingInstruction||K===gt.comment&&We(vd,M.data)){try{_(M)}catch{}continue}if(K===gt.element){const se=M,me=Ce(R?R(M):M.nodeName);try{se.hasAttribute&&se.hasAttribute("patchsrc")&&se.removeAttribute("patchsrc"),se.hasAttribute&&se.hasAttribute("for")&&me!=="label"&&me!=="output"&&se.removeAttribute("for")}catch{}}const te=I(M);if(te)for(let se=te.length-1;se>=0;--se)S.push(te[se])}},Dc=function(f){let S=null,M=null;if(Il)f="<remove></remove>"+f;else{const se=cd(f,/^[\r\n\t ]+/);M=se&&se[0]}Br==="application/xhtml+xml"&&er===Ot&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const K=N?W(f):f;if(er===Ot)try{S=new y().parseFromString(K,Br)}catch{}if(!S||!S.documentElement){S=O.createDocument(er,"template",null);try{S.documentElement.innerHTML=Nl?k:K}catch{}}const te=S.body||S.documentElement;return f&&M&&te.insertBefore(n.createTextNode(M),te.childNodes[0]||null),er===Ot?E.call(S,Nn?"html":"body")[0]:Nn?S.documentElement:te},Pc=function(f){const S=j?j(f):f.ownerDocument;return F.call(S||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jo=function(f){return f=Jr(f,Q," "),f=Jr(f,ee," "),f=Jr(f,ve," "),f},Fl=function(f){var S;f.normalize();const M=j?j(f):f.ownerDocument,K=F.call(M||f,f,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let te=K.nextNode();for(;te;)te.data=Jo(te.data),te=K.nextNode();const se=(S=f.querySelectorAll)===null||S===void 0?void 0:S.call(f,"template");se&&ir(se,me=>{nr(me.content)&&Fl(me.content)})},ei=function(f){const S=R?R(f):null;return typeof S!="string"||Ce(S)!=="form"?!1:typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||f.attributes!==g(f)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function"||f.nodeType!==v(f)||f.childNodes!==I(f)},nr=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return v(f)===gt.documentFragment}catch{return!1}},$r=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return typeof v(f)=="number"}catch{return!1}};function Mt(U,f,S){U.length!==0&&ir(U,M=>{M.call(t,f,S,tr)})}const kg=function(f,S){return!!(on&&f.hasChildNodes()&&!$r(f.firstElementChild)&&We(md,f.textContent)&&We(md,f.innerHTML)||on&&f.namespaceURI===Ot&&S==="style"&&$r(f.firstElementChild)||f.nodeType===gt.processingInstruction||on&&f.nodeType===gt.comment&&We(vd,f.data))},Eg=function(f,S,M){if(!ue[S]&&Wc(S)&&(Z.tagNameCheck instanceof RegExp&&We(Z.tagNameCheck,S)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(S)))return!1;if(zl&&!Pt[S]){const K=p(f),te=I(f);if(te&&K){const se=te.length;for(let me=se-1;me>=0;--me){const Te=f===M?m(te[me],!0):te[me];K.insertBefore(Te,w(f))}}}return ln(f),!0},Oc=function(f,S,M,K){return f.length===0?S:S===M||S===K?qe(S):S},Mc=function(f,S){if(Mt(L.beforeSanitizeElements,f,null),f!==S&&p(f)===null)return Qo&&Ur(f),!0;if(ei(f))return ln(f),!0;const M=Ce(R?R(f):f.nodeName);if(H=Oc(L.uponSanitizeElement,H,J,Vo),Mt(L.uponSanitizeElement,f,{tagName:M,allowedTags:H}),f!==S&&p(f)===null)return Qo&&Ur(f),!0;if(kg(f,M))return ln(f),!0;if(ue[M]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(M))&&!H[M]){const te=Eg(f,M,S);return te===!1&&Mt(L.afterSanitizeElements,f,null),te}if((v?v(f):f.nodeType)===gt.element&&!wg(f)||(M==="noscript"||M==="noembed"||M==="noframes")&&We(Qm,f.innerHTML))return ln(f),!0;if(rn&&f.nodeType===gt.text){const te=Jo(f.textContent);f.textContent!==te&&(lr(t.removed,{element:f.cloneNode()}),f.textContent=te)}return Mt(L.afterSanitizeElements,f,null),!1},Fc=function(f,S,M){if(ge[S]||on&&S==="patchsrc"||on&&S==="for"&&f!=="label"&&f!=="output"||kc&&(S==="id"||S==="name")&&(M in n||M in yg))return!1;const K=P[S]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(S,f);if(!(Wr&&We(ie,S))){if(!(Vt&&We(de,S))){if(K){if(!Al[S]){if(!We(Y,Jr(M,T,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&f!=="script"&&ud(M,"data:")===0&&Tc[f])){if(!($o&&!We(z,Jr(M,T,"")))){if(M)return!1}}}}}else if(!(Wc(f)&&(Z.tagNameCheck instanceof RegExp&&We(Z.tagNameCheck,f)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(f))&&(Z.attributeNameCheck instanceof RegExp&&We(Z.attributeNameCheck,S)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(S,f))||S==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&We(Z.tagNameCheck,M)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(M))))return!1}}return!0},Cg=fe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wc=function(f){return!Cg[so(f)]&&We(G,f)},Tg=function(f,S,M,K){if(N&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!M)switch(h.getAttributeType(f,S)){case"TrustedHTML":return W(K);case"TrustedScriptURL":return oe(K)}return K},jg=function(f,S,M,K){try{M?f.setAttributeNS(M,S,K):f.setAttribute(S,K),ei(f)?ln(f):ad(t.removed)}catch{Dn(S,f)}},Bc=function(f){Mt(L.beforeSanitizeAttributes,f,null);const S=f.attributes;if(!S||ei(f))return;P=Oc(L.uponSanitizeAttribute,P,le,Go);const M={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let K=S.length;const te=Ce(f.nodeName);for(;K--;){const se=S[K],me=se.name,Te=se.namespaceURI,lt=se.value,st=Ce(me),Bl=lt;let tt=me==="value"?Bl:zm(Bl);if(M.attrName=st,M.attrValue=tt,M.keepAttr=!0,M.forceKeepAttr=void 0,Mt(L.uponSanitizeAttribute,f,M),tt=M.attrValue,Ec&&(st==="id"||st==="name")&&ud(tt,Cc)!==0&&(Dn(me,f),tt=Cc+tt),on&&We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tt)){Dn(me,f);continue}if(st==="attributename"&&cd(tt,"href")){Dn(me,f);continue}if(!M.forceKeepAttr){if(!M.keepAttr){Dn(me,f);continue}if(!Ho&&We(Km,tt)){Dn(me,f);continue}if(rn&&(tt=Jo(tt)),!Fc(te,st,tt)){Dn(me,f);continue}tt=Tg(te,st,Te,tt),tt!==Bl&&jg(f,me,Te,tt)}}Mt(L.afterSanitizeAttributes,f,null)},ti=function(f){let S=null;const M=Pc(f);for(Mt(L.beforeSanitizeShadowDOM,f,null);S=M.nextNode();)if(Mt(L.uponSanitizeShadowNode,S,null),Mc(S,f),Bc(S),nr(S.content)&&ti(S.content),(v?v(S):S.nodeType)===gt.element){const te=d(S);nr(te)&&(Wl(te),ti(te))}Mt(L.afterSanitizeShadowDOM,f,null)},Wl=function(f){const S=[{node:f,shadow:null}];for(;S.length>0;){const M=S.pop();if(M.shadow){ti(M.shadow);continue}const K=M.node,se=(v?v(K):K.nodeType)===gt.element,me=I(K);if(me)for(let Te=me.length-1;Te>=0;--Te)S.push({node:me[Te],shadow:null});if(se){const Te=R?R(K):null;if(typeof Te=="string"&&Ce(Te)==="template"){const lt=K.content;nr(lt)&&S.push({node:lt,shadow:null})}}if(se){const Te=d(K);nr(Te)&&S.push({node:null,shadow:Te},{node:Te,shadow:null})}}};return t.sanitize=function(U){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,M=null,K=null,te=null;if(Nl=!U,Nl&&(U="<!-->"),typeof U!="string"&&!$r(U)&&(U=Pm(U),typeof U!="string"))throw On("dirty is not a string, aborting");if(!t.isSupported)return U;Rl?(H=Vo,P=Go):Ml(f),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(H=qe(H)),L.uponSanitizeAttribute.length>0&&(P=qe(P)),t.removed=[];const se=Qo&&typeof U!="string"&&$r(U);if(se){bg(U);const lt=R?R(U):U.nodeName;if(typeof lt=="string"){const st=Ce(lt);if(!H[st]||ue[st])throw Zo(U),On("root node is forbidden and cannot be sanitized in-place")}if(ei(U))throw Zo(U),On("root node is clobbered and cannot be sanitized in-place");try{Wl(U)}catch(st){throw Zo(U),st}}else if($r(U))S=Dc("<!---->"),M=S.ownerDocument.importNode(U,!0),M.nodeType===gt.element&&M.nodeName==="BODY"||M.nodeName==="HTML"?S=M:S.appendChild(M),Wl(M);else{if(!Zn&&!rn&&!Nn&&U.indexOf("<")===-1)return N&&Xo?W(U):U;if(S=Dc(U),!S)return Zn?null:Xo?k:""}S&&Il&&ln(S.firstChild);const me=se?U:S;try{const lt=Pc(me);for(;K=lt.nextNode();)Mc(K,me),Bc(K),nr(K.content)&&ti(K.content)}catch(lt){throw se&&(Zo(U),ir(t.removed,st=>{st.element&&Ur(st.element)})),lt}if(se)return ir(t.removed,lt=>{lt.element&&Ur(lt.element)}),rn&&Fl(U),U;if(Zn){if(rn&&Fl(S),Yo)for(te=A.call(S.ownerDocument);S.firstChild;)te.appendChild(S.firstChild);else te=S;return(P.shadowroot||P.shadowrootmode)&&(te=D.call(r,te,!0)),te}let Te=Nn?S.outerHTML:S.innerHTML;return Nn&&H["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&We(Ym,S.ownerDocument.doctype.name)&&(Te="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
|
|
566
|
+
`+Te),rn&&(Te=Jo(Te)),N&&Xo?W(Te):Te},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ml(U),Rl=!0,Vo=H,Go=P},t.clearConfig=function(){tr=null,Rl=!1,Vo=null,Go=null,N=V,k=""},t.isValidAttribute=function(U,f,S){tr||Ml({});const M=Ce(U),K=Ce(f);return Fc(M,K,S)},t.addHook=function(U,f){typeof f=="function"&&Be(L,U)&&lr(L[U],f)},t.removeHook=function(U,f){if(Be(L,U)){if(f!==void 0){const S=Rm(L[U],f);return S===-1?void 0:Im(L[U],S,1)[0]}return ad(L[U])}},t.removeHooks=function(U){Be(L,U)&&(L[U]=[])},t.removeAllHooks=function(){L=_d()},t}var ug=cg();function Sa(e){const t=ug.sanitize(typeof e=="string"?e:"",{ALLOWED_TAGS:["b","i","em","strong","a","ul","ol","li","br","div","p","font"],ALLOWED_ATTR:["href","target","rel","size"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1}),n=document.createElement("template");n.innerHTML=t;for(const r of n.content.querySelectorAll("a")){const o=r.getAttribute("href");if(o)try{(/^[\s]*[\\/]{2}/.test(o)||!["http:","https:","mailto:"].includes(new URL(o,window.location.href).protocol))&&r.removeAttribute("href")}catch{r.removeAttribute("href")}r.getAttribute("target")!=="_blank"&&r.removeAttribute("target"),r.setAttribute("rel","noopener noreferrer")}return n.innerHTML}function dg(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid manual canvas");const t={...e};for(const n of["nodes","groups","texts","connections","executionReport"]){const r=t[n]??[];if(!Array.isArray(r)||r.length>2e4)throw new Error("Invalid manual canvas collection");t[n]=r.map(o=>{if(!o||typeof o!="object"||Array.isArray(o)||!Number.isSafeInteger(o.id)||o.id<0)throw new Error("Invalid manual canvas entry");const i={...o};for(const s of["x","y","width","height"])if(s in i&&(typeof i[s]!="number"||!Number.isFinite(i[s])))throw new Error("Invalid canvas geometry");for(const s of["description","steps","expected_result","references","defect_report"])if(s in i){if(typeof i[s]!="string"||i[s].length>1e5)throw new Error("Invalid manual rich text");i[s]=Sa(i[s])}for(const s of["title","visual_step","status","group_title","assigned_to","content"])if(s in i&&(typeof i[s]!="string"||i[s].length>1e5))throw new Error("Invalid manual text");return i})}return t}const fg=b.forwardRef(({activeMode:e,activeTool:t,onNodeSelected:n,nodeUpdateTrigger:r,defectUpdateTrigger:o,onGroupSelected:i,groupUpdateTrigger:s,onTextSelected:a,textUpdateTrigger:c,onExecutionReportChange:u,zoomLevel:y,recenterTrigger:h,onToolChange:x},m)=>{const _=b.useRef(null),[w,I]=b.useState(!1),p=b.useRef(null),d=()=>!_.current||!_.current.contentWindow?null:_.current.contentWindow.flowstrideEngineAPI||null;return b.useImperativeHandle(m,()=>({exportDesignState:()=>{const g=d();if(g)try{return g.exportDesignState()}catch(v){return console.error("[Flowstride Telemetry Error]: Failed to pull state from EngineFrame",v),{nodes:[],groups:[],texts:[],connections:[]}}return console.warn("[Flowstride Telemetry]: Iframe engine missing. Cannot export state."),{nodes:[],groups:[],texts:[],connections:[]}},importDesignState:g=>{g=dg(g);const v=d();v&&w?v.importDesignState(g):p.current=g}})),b.useEffect(()=>{const g=v=>{if(v.origin!==window.location.origin)return;const{type:R,payload:j}=v.data;if(R)switch(R){case"ENGINE_READY":I(!0);const N=d();N&&p.current&&(N.importDesignState(p.current),p.current=null);break;case"NODE_SELECTED":n==null||n(j.id,j.title,j.description,j.visualStep,j.stepsContent,j.expectedResult,j.references,j.priority);break;case"GROUP_SELECTED":i==null||i(j.id,j.title);break;case"TEXT_SELECTED":a==null||a(j.id,j.content);break;case"TOOL_CHANGED":x==null||x(j);break;case"EXECUTION_REPORT_CHANGED":u==null||u(j);break}};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[n,i,a,x,u]),b.useEffect(()=>{var g;w&&((g=d())==null||g.setMode(e))},[e,w]),b.useEffect(()=>{var g;w&&t&&((g=d())==null||g.setTool(t))},[t,w]),b.useEffect(()=>{var g;w&&y!==void 0&&((g=d())==null||g.setZoom(y))},[y,w]),b.useEffect(()=>{var g;w&&h!==void 0&&h>0&&((g=d())==null||g.recenterView())},[h,w]),b.useEffect(()=>{var g;w&&r&&((g=d())==null||g.updateNodeData(r.stepNumber,r.title,r.description,r.stepsContent,r.expectedResult,r.references,r.priority))},[r,w]),b.useEffect(()=>{var g;w&&o&&((g=d())==null||g.updateNodeDefectData(o.stepNumber,o.defectReport,o.defectMedia,o.assignedTo))},[o,w]),b.useEffect(()=>{var g;w&&s&&((g=d())==null||g.updateGroupTitle(s.groupId,s.title))},[s,w]),b.useEffect(()=>{var g;w&&c&&((g=d())==null||g.updateTextContent(c.textId,c.content))},[c,w]),l.jsxs("main",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f8f9fa",overflow:"hidden",position:"relative",outline:"none"},tabIndex:-1,children:[l.jsx("style",{children:`
|
|
567
|
+
.flowstride-spin-circle {
|
|
568
|
+
animation: flowstride-spin-anim 0.8s linear infinite;
|
|
569
|
+
}
|
|
570
|
+
@keyframes flowstride-spin-anim {
|
|
571
|
+
0% { transform: rotate(0deg); }
|
|
572
|
+
100% { transform: rotate(360deg); }
|
|
573
|
+
}
|
|
574
|
+
`}),!w&&l.jsxs("div",{style:{position:"absolute",inset:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(248, 249, 250, 1)"},children:[l.jsx("div",{className:"flowstride-spin-circle",style:{width:"36px",height:"36px",border:"3px solid #e2e8f0",borderTopColor:"#4f46e5",borderRadius:"50%",marginBottom:"16px"}}),l.jsx("span",{style:{fontSize:"13px",fontWeight:"bold",color:"#475569",letterSpacing:"0.05em"},children:"ALLOCATING ISOLATED ENGINE CORE..."})]}),l.jsx("iframe",{ref:_,src:"?frame=engine",title:"Flowstride Isolated Workspace Engine",style:{width:"100%",height:"100%",border:"none",display:"block",backgroundColor:"#f8f9fa",opacity:w?1:0,transition:"opacity 0.2s ease-in-out"}})]})});fg.displayName="FlowCanvas";const Jm=({activeMode:e,onModeChange:t,onSave:n,flows:r=[],activeFlowId:o,onSelectFlow:i,onCreateFlow:s,onDeleteFlow:a,onRenameFlow:c,zoomLevel:u=1,onZoomIn:y,onZoomOut:h,onZoomReset:x,metadata:m,onMetadataChange:_})=>{const[w,I]=b.useState(!1),[p,d]=b.useState(!1),[g,v]=b.useState(!1),[R,j]=b.useState(""),N=b.useRef(null),k=b.useRef(!1),V=e===xe.Execution,$=r.find(O=>O.id===o),re=$?$.name:"New Local Flow",ae=O=>{if(!O)return"Just now";const F=Math.floor((Date.now()-O)/1e3);if(F<60)return"Just now";const A=Math.floor(F/60);if(A<60)return`${A} minute${A>1?"s":""} ago`;const E=Math.floor(A/60);if(E<24)return`${E} hour${E>1?"s":""} ago`;const D=Math.floor(E/24);return`${D} day${D>1?"s":""} ago`};b.useEffect(()=>{const O=F=>{N.current&&!N.current.contains(F.target)&&d(!1)};return p&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[p]);const W=async()=>{I(!0);try{const O=window.flowstrideEngineAPI;if(O){const F=O.exportDesignState(),A={metadata:{flowName:re,version:(m==null?void 0:m.version)||"1.0",testPlan:(m==null?void 0:m.testPlan)||"",environment:(m==null?void 0:m.environment)||"Local",lastUpdatedBy:(m==null?void 0:m.lastUpdatedBy)||"Local User",lastUpdatedAt:Date.now()},canvas:F},E=new Blob([JSON.stringify(A,null,2)],{type:"application/json"}),D=URL.createObjectURL(E),L=document.createElement("a");L.href=D;const Q=re.replace(/[^a-z0-9]/gi,"_").toLowerCase();L.download=`${Q||"local_workspace"}.json`,document.body.appendChild(L),L.click(),document.body.removeChild(L),URL.revokeObjectURL(D)}n&&await n()}catch(O){console.error("[Flowstride Telemetry Error]: Failed to generate local export file",O)}finally{I(!1)}},oe=(O,F,A)=>{O.stopPropagation(),window.confirm(`Are you sure you want to delete the flow: "${A}"?`)&&a&&a(F)},ne=()=>{V||(j(re),v(!0))},he=async()=>{if(k.current||V)return;k.current=!0;const O=R.trim();if(v(!1),O!==""&&o&&c&&(c(o,O),n)){I(!0);try{await n(O)}finally{I(!1)}}k.current=!1};return l.jsxs("div",{style:{padding:"16px 24px",borderBottom:"1px solid #e1e4e8",backgroundColor:"#ffffff",flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"flex-start",position:"relative"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px",flex:1},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:"13px",color:"#57606a"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx("span",{children:"Local Workspaces"}),l.jsx(Rn,{size:14})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("div",{ref:N,style:{position:"relative"},children:[l.jsxs("button",{onClick:()=>{V||d(!p)},disabled:V,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",border:p?"1px solid #0969da":"1px solid #d0d7de",backgroundColor:V?"#f6f8fa":"#ffffff",borderRadius:"6px",cursor:V?"not-allowed":"pointer",fontSize:"13px",fontWeight:"600",color:p?"#0969da":V?"#8c959f":"#24292f",transition:"all 0.2s ease",opacity:V?.7:1},children:[re,p?l.jsx(Dx,{size:14}):l.jsx(Dr,{size:14})]}),p&&!V&&l.jsxs("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",width:"240px",backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",zIndex:50,display:"flex",flexDirection:"column",padding:"8px 0"},children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"bold",color:"#8c959f",padding:"4px 16px 8px 16px",letterSpacing:"0.5px"},children:"YOUR LOCAL FLOWS"}),r.map(O=>l.jsxs("div",{onClick:()=>{i==null||i(O.id),d(!1)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",cursor:"pointer",backgroundColor:o===O.id?"#f0f7ff":"transparent",color:o===O.id?"#0969da":"#24292f",fontSize:"13px",fontWeight:"500"},onMouseEnter:F=>{o!==O.id&&(F.currentTarget.style.backgroundColor="#f6f8fa")},onMouseLeave:F=>{o!==O.id&&(F.currentTarget.style.backgroundColor="transparent")},children:[l.jsx("span",{children:O.name}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o===O.id&&l.jsx(Hp,{size:14,color:"#0969da"}),o!==O.id&&l.jsx("button",{onClick:F=>oe(F,O.id,O.name),style:{background:"transparent",border:"none",padding:"4px",cursor:"pointer",color:"#8c959f",display:"flex",alignItems:"center",justifyContent:"center"},title:"Delete Flow",children:l.jsx(sy,{size:14})})]})]},O.id))]})]}),!V&&l.jsx("button",{onClick:s,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",border:"1px solid #d0d7de",backgroundColor:"#f6f8fa",borderRadius:"6px",cursor:"pointer",color:"#0969da",transition:"all 0.2s ease"},children:l.jsx(Kp,{size:16})})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g&&!V?l.jsx("input",{autoFocus:!0,value:R,onChange:O=>j(O.target.value),onBlur:he,onKeyDown:O=>{O.key==="Enter"&&(O.preventDefault(),he()),O.key==="Escape"&&v(!1)},style:{fontSize:"24px",fontWeight:"bold",color:"#24292f",margin:0,padding:"0 4px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",width:"300px"}}):l.jsxs("h1",{style:{fontSize:"24px",fontWeight:"bold",color:"#24292f",margin:0,display:"flex",alignItems:"center",gap:"8px"},children:[re,!V&&l.jsx("button",{onClick:ne,style:{background:"transparent",border:"none",cursor:"pointer",color:"#8c959f",display:"flex",padding:0},children:l.jsx(Jx,{size:16})})]}),V?l.jsxs("span",{style:{fontSize:"11px",fontWeight:"600",color:"#0969da",backgroundColor:"#ddf4ff",padding:"4px 10px",borderRadius:"12px"},children:["Version ",(m==null?void 0:m.version)||"1.0"]}):l.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#ddf4ff",padding:"4px 10px",borderRadius:"12px",border:"1px solid transparent",transition:"border-color 0.2s ease"},onFocus:O=>O.currentTarget.style.border="1px solid #0969da",onBlur:O=>O.currentTarget.style.border="1px solid transparent",children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"600",color:"#0969da",marginRight:"4px"},children:"Version"}),l.jsx("input",{type:"text",value:(m==null?void 0:m.version)||"",onChange:O=>_==null?void 0:_({...m,version:O.target.value}),placeholder:"1.0",style:{border:"none",background:"transparent",color:"#0969da",fontWeight:"600",fontSize:"11px",outline:"none",padding:0,margin:0,width:m!=null&&m.version?`${m.version.length+1}ch`:"4ch",minWidth:"20px"}})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",fontSize:"12px",color:"#8c959f"},children:[l.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["Test Plan:",V?l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(m==null?void 0:m.testPlan)||"N/A"}):l.jsx("input",{type:"text",placeholder:"Click to add",value:(m==null?void 0:m.testPlan)||"",onChange:O=>_==null?void 0:_({...m,testPlan:O.target.value}),style:{border:"none",background:"transparent",color:"#24292f",fontWeight:"600",fontSize:"12px",outline:"none",padding:"0 0 2px 0",width:"140px",borderBottom:"1px dashed #d0d7de",transition:"border-color 0.2s ease"},onFocus:O=>O.target.style.borderBottom="1px solid #0969da",onBlur:O=>O.target.style.borderBottom="1px dashed #d0d7de"})]}),l.jsx("span",{style:{color:"#0969da",fontSize:"16px",lineHeight:"10px"},children:"•"}),l.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["Environment:",V?l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(m==null?void 0:m.environment)||"Local"}):l.jsxs("select",{value:(m==null?void 0:m.environment)||"Local",onChange:O=>_==null?void 0:_({...m,environment:O.target.value}),style:{border:"none",background:"transparent",color:"#24292f",fontWeight:"600",fontSize:"12px",outline:"none",cursor:"pointer",padding:"0 0 2px 0",borderBottom:"1px dashed #d0d7de"},children:[l.jsx("option",{value:"Local",children:"Local"}),l.jsx("option",{value:"Dev",children:"Dev"}),l.jsx("option",{value:"Staging",children:"Staging"}),l.jsx("option",{value:"Prod",children:"Prod"})]})]}),l.jsx("span",{style:{color:"#2da44e",fontSize:"16px",lineHeight:"10px"},children:"•"}),l.jsxs("span",{children:["Last exported: ",ae(m==null?void 0:m.lastUpdatedAt)," by"," ",l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(m==null?void 0:m.lastUpdatedBy)||"Local User"})]}),(m==null?void 0:m.testedBy)&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{color:"#d0d7de",fontSize:"16px",lineHeight:"10px"},children:"|"}),l.jsxs("span",{children:["Tested by:"," ",l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:m.testedBy})]})]})]})]}),l.jsxs("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",display:"flex",backgroundColor:"#f6f8fa",borderRadius:"8px",padding:"4px",border:"1px solid #e1e4e8",top:"16px"},children:[l.jsx("button",{onClick:()=>t(xe.Design),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===xe.Design?"bold":"normal",backgroundColor:e===xe.Design?"#ffffff":"transparent",color:e===xe.Design?"#0969da":"#57606a",boxShadow:e===xe.Design?"0 1px 3px rgba(0,0,0,0.1)":"none",cursor:"pointer",transition:"all 0.2s ease"},children:"Design Mode"}),l.jsx("button",{onClick:()=>t(xe.Execution),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===xe.Execution?"bold":"normal",backgroundColor:e===xe.Execution?"#ffffff":"transparent",color:e===xe.Execution?"#0969da":"#57606a",boxShadow:e===xe.Execution?"0 1px 3px rgba(0,0,0,0.1)":"none",cursor:"pointer",transition:"all 0.2s ease"},children:"Execution Mode"})]}),l.jsxs("div",{style:{display:"flex",gap:"12px",flex:1,justifyContent:"flex-end",alignItems:"flex-start"},children:[e===xe.Design&&l.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#f6f8fa",borderRadius:"6px",border:"1px solid #d0d7de",padding:"2px"},children:[l.jsx("button",{onClick:h,title:"Zoom Out",style:{background:"transparent",border:"none",cursor:"pointer",padding:"6px",display:"flex",color:"#57606a",borderRadius:"4px"},children:l.jsx(fy,{size:16})}),l.jsxs("button",{onClick:x,title:"Reset Zoom",style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:"600",color:"#24292f",padding:"0 8px"},children:[Math.round(u*100),"%"]}),l.jsx("button",{onClick:y,title:"Zoom In",style:{background:"transparent",border:"none",cursor:"pointer",padding:"6px",display:"flex",color:"#57606a",borderRadius:"4px"},children:l.jsx(dy,{size:16})})]}),l.jsx("button",{onClick:W,disabled:w,style:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 16px",backgroundColor:w?"#f6f8fa":"#ffffff",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",fontWeight:"600",color:w?"#8c959f":"#24292f",cursor:w?"not-allowed":"pointer",transition:"all 0.2s ease"},children:w?l.jsxs(l.Fragment,{children:[l.jsx(Pr,{size:16})," Exporting..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Mx,{size:16})," Save"]})})]})]})},e1=["Hand","Select","Step","Group","Arrow","Text","Requirement"],t1={Hand:$x,Select:Kx,Step:Yp,Group:Ux,Arrow:Lx,Text:cy,Requirement:wc},n1=({activeTool:e,onToolSelect:t})=>{const[n,r]=b.useState(!0);return l.jsx("aside",{style:{width:n?"240px":"64px",backgroundColor:"#ffffff",borderRight:"1px solid #e1e4e8",overflowY:"auto",flexShrink:0,transition:"width 0.2s ease",display:"flex",flexDirection:"column"},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100%",padding:n?"16px 16px 16px 16px":"16px 8px 16px 8px",gap:"8px",flex:1},children:[l.jsx("button",{onClick:()=>r(!n),style:{display:"flex",alignItems:"center",justifyContent:n?"flex-end":"center",padding:"4px 0",marginBottom:"16px",background:"transparent",border:"none",color:"#8c959f",cursor:"pointer",transition:"color 0.2s ease",width:"100%"},onMouseEnter:o=>o.currentTarget.style.color="#24292f",onMouseLeave:o=>o.currentTarget.style.color="#8c959f",title:n?"Collapse Palette":"Expand Palette",children:n?l.jsx(vc,{size:18}):l.jsx(Rn,{size:18})}),e1.map(o=>{const i=e===o,s=t1[o];return o==="Requirement"?l.jsxs("div",{style:{marginTop:"auto"},children:[l.jsx("div",{style:{height:"1px",backgroundColor:"#e1e4e8",margin:"16px 0"}}),l.jsxs("button",{onClick:()=>t(o),title:n?void 0:o,style:{display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",width:"100%",padding:n?"10px 12px":"10px 0",backgroundColor:i?"#eef3fa":"transparent",color:i?"#0969da":"#24292f",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:i?"600":"500",transition:"all 0.2s ease"},children:[l.jsx(s,{size:18,style:{marginRight:n?"12px":"0",color:i?"#0969da":"#57606a"}}),n&&o]})]},o):l.jsxs("button",{onClick:()=>t(o),title:n?void 0:o,style:{display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",padding:n?"10px 12px":"10px 0",backgroundColor:i?"#eef3fa":"transparent",color:i?"#0969da":"#24292f",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:i?"600":"500",transition:"all 0.2s ease"},children:[l.jsx(s,{size:18,style:{marginRight:n?"12px":"0",color:i?"#0969da":"#57606a"}}),n&&o]},o)})]})})},wd=({label:e,value:t,onChange:n,placeholder:r,minHeight:o,maxLength:i})=>{const s=b.useRef(null);b.useEffect(()=>{const h=Sa(t);s.current&&h!==s.current.innerHTML&&(s.current.innerHTML=h)},[t]);const a=()=>{if(s.current&&n){const h=s.current.innerHTML,x=Sa(h);n(x)}},c=(h,x,m)=>{h.preventDefault(),document.execCommand(x,!1,m),a()},u=h=>{h.preventDefault();const x=window.prompt("Enter link URL (e.g., https://example.com):");x&&(document.execCommand("createLink",!1,x),a())},y=h=>{c(h,"fontSize",h.target.value),s.current&&s.current.focus()};return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:e}),l.jsxs("div",{style:{border:"1px solid #d0d7de",borderRadius:"6px",overflow:"hidden"},children:[l.jsxs("div",{style:{display:"flex",gap:"4px",padding:"6px 8px",borderBottom:"1px solid #d0d7de",backgroundColor:"#f6f8fa",alignItems:"center"},children:[l.jsxs("select",{onChange:y,defaultValue:"3",style:{background:"#ffffff",border:"1px solid #d0d7de",color:"#24292f",borderRadius:"4px",padding:"2px 4px",fontSize:"12px",cursor:"pointer",outline:"none",marginRight:"4px"},title:"Font Size",children:[l.jsx("option",{value:"1",children:"Small"}),l.jsx("option",{value:"3",children:"Normal"}),l.jsx("option",{value:"4",children:"Large"}),l.jsx("option",{value:"5",children:"Huge"})]}),l.jsx("div",{style:{width:"1px",height:"16px",backgroundColor:"#d0d7de",margin:"0 4px"}}),l.jsx("button",{onPointerDown:h=>c(h,"bold"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Bold",children:l.jsx(Ax,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"italic"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Italic",children:l.jsx(Vx,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"insertUnorderedList"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Bulleted List",children:l.jsx(Xx,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"insertOrderedList"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Numbered List",children:l.jsx(Yx,{size:14})}),l.jsx("button",{onPointerDown:u,style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Link",children:l.jsx(Gx,{size:14})})]}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx("div",{ref:s,className:"rich-text-editor",contentEditable:!0,onInput:a,onBlur:a,"data-placeholder":r,style:{width:"100%",padding:"8px 12px",border:"none",fontSize:"13px",color:"#24292f",minHeight:o,outline:"none",boxSizing:"border-box",backgroundColor:"#ffffff",overflowY:"auto",resize:"vertical",lineHeight:"1.5"}}),i&&l.jsxs("span",{style:{position:"absolute",bottom:"8px",right:"12px",fontSize:"10px",color:"#8c959f",pointerEvents:"none"},children:[t.replace(/<[^>]*>?/gm,"").length,"/",i]})]})]})]})},r1=({entityType:e="Node",entityId:t=2,visualStep:n,title:r="Enter Email",description:o="",stepsContent:i="",expectedResult:s="",referencesContent:a="",priority:c="",onTitleChange:u,onDescriptionChange:y,onStepsContentChange:h,onExpectedResultChange:x,onReferencesChange:m,onPriorityChange:_})=>{const[w,I]=b.useState("Details"),[p,d]=b.useState(!0),[g,v]=b.useState(320),[R,j]=b.useState(!1),N=b.useRef(0),k=b.useRef(320),V=b.useRef(null),[$,re]=b.useState(!1),[ae,W]=b.useState(!1),[oe,ne]=b.useState(!1),[he,O]=b.useState(null),F=a.split(",").filter(Boolean),A=F.filter(T=>T.endsWith(".mp4")||T.endsWith(".webm")).length,E=F.filter(T=>!T.endsWith(".mp4")&&!T.endsWith(".webm")).length,D=T=>{T.preventDefault(),T.currentTarget.setPointerCapture(T.pointerId),j(!0),N.current=T.clientX,k.current=g},L=T=>{if(!R)return;const G=N.current-T.clientX;let Y=k.current+G;Y<260&&(Y=260),Y>800&&(Y=800),v(Y)},Q=T=>{R&&(j(!1),T.currentTarget.releasePointerCapture(T.pointerId))},ee=async T=>{var P;const G=Array.from(T.target.files||[]);if(G.length===0)return;let Y=A,H=E;const J=[];re(!0);for(const le of G){const Z="."+(((P=le.name.split(".").pop())==null?void 0:P.toLowerCase())||""),ue=Z===".mp4"||Z===".webm",ge=[".png",".jpg",".jpeg",".gif"].includes(Z);if(ue){if(Y>=1){window.alert("Architectural Limit Reached: Maximum 1 video clip allowed per step.");continue}if(le.size>41943040){window.alert(`Security Block: Video ${le.name} exceeds 40MB physical limit.`);continue}Y++}else if(ge){if(H>=1){window.alert("Architectural Limit Reached: Maximum 1 image allowed per step.");continue}if(le.size>5242880){window.alert(`Security Block: Image ${le.name} exceeds 5MB physical limit.`);continue}H++}else{window.alert(`Security Block: Unsupported file format ${Z}.`);continue}try{const Pe=await fetch("/api/upload",{method:"POST",headers:{"X-File-Extension":Z},body:le});if(!Pe.ok)throw new Error("Network response was not ok");const Vt=await Pe.json();Vt.url&&J.push(Vt.url)}catch{window.alert(`Network Error: Failed to vault ${le.name}.`)}}if(J.length>0){const le=[...F,...J].join(",");m==null||m(le)}re(!1),V.current&&(V.current.value="")},ve=async T=>{if(ae)return;const G=F[T];if(G){W(!0);try{const Y=await fetch(`/api/media?filepath=${encodeURIComponent(G)}`,{method:"DELETE"});if(!Y.ok&&Y.status!==404)throw new Error(`Server returned ${Y.status}`);const H=[...F];H.splice(T,1),m==null||m(H.join(","))}catch(Y){console.error("[Flowstride Security Alert]: Physical deletion failed.",Y),window.alert("Security Block: Failed to physically remove media from local hard drive. Please try again.")}finally{W(!1)}}},ie={Low:"#2da44e",Medium:"#bf8700",High:"#cf222e",Critical:"#8250df"},de=c||"Low",z=ie[de]||ie.Low;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
575
|
+
.rich-text-editor:empty::before {
|
|
576
|
+
content: attr(data-placeholder);
|
|
577
|
+
color: #8c959f;
|
|
578
|
+
pointer-events: none;
|
|
579
|
+
}
|
|
580
|
+
.rich-text-editor a {
|
|
581
|
+
color: #0969da;
|
|
582
|
+
text-decoration: underline;
|
|
583
|
+
}
|
|
584
|
+
.rich-text-editor ul, .rich-text-editor ol {
|
|
585
|
+
padding-left: 24px;
|
|
586
|
+
margin: 4px 0;
|
|
587
|
+
}
|
|
588
|
+
.rich-text-editor p {
|
|
589
|
+
margin: 0 0 4px 0;
|
|
590
|
+
}
|
|
591
|
+
.rich-text-editor div {
|
|
592
|
+
margin: 0;
|
|
593
|
+
}
|
|
594
|
+
.rich-text-editor font[size="1"] { font-size: 10px; }
|
|
595
|
+
.rich-text-editor font[size="3"] { font-size: 13px; }
|
|
596
|
+
.rich-text-editor font[size="4"] { font-size: 18px; }
|
|
597
|
+
.rich-text-editor font[size="5"] { font-size: 24px; }
|
|
598
|
+
|
|
599
|
+
.rich-text-editor li:has(font[size="1"]) { font-size: 10px; }
|
|
600
|
+
.rich-text-editor li:has(font[size="3"]) { font-size: 13px; }
|
|
601
|
+
.rich-text-editor li:has(font[size="4"]) { font-size: 18px; }
|
|
602
|
+
.rich-text-editor li:has(font[size="5"]) { font-size: 24px; }
|
|
603
|
+
|
|
604
|
+
.flowstride-spin {
|
|
605
|
+
animation: flowstride-spin-anim 1s linear infinite;
|
|
606
|
+
}
|
|
607
|
+
@keyframes flowstride-spin-anim {
|
|
608
|
+
100% { transform: rotate(360deg); }
|
|
609
|
+
}
|
|
610
|
+
`}),he&&l.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.85)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},onClick:()=>O(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:T=>T.stopPropagation(),children:[l.jsx("button",{onClick:()=>O(null),title:"Close Preview",style:{position:"absolute",top:"-40px",right:"0",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",color:"#ffffff",borderRadius:"50%",padding:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s ease"},onMouseEnter:T=>T.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:T=>T.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(Cr,{size:20})}),he.type==="video"?l.jsx("video",{src:he.url,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)"}}):l.jsx("img",{src:he.url,alt:"Preview",style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)",objectFit:"contain"}})]})}),l.jsxs("aside",{style:{width:p?`${g}px`:"64px",backgroundColor:"#ffffff",borderLeft:"1px solid #e1e4e8",flexShrink:0,transition:R?"none":"width 0.2s ease",display:"flex",flexDirection:"column",position:"relative"},children:[p&&l.jsx("div",{onPointerDown:D,onPointerMove:L,onPointerUp:Q,onPointerCancel:Q,style:{position:"absolute",left:"-3px",top:0,bottom:0,width:"6px",cursor:"col-resize",zIndex:50,backgroundColor:R?"#0969da":"transparent",transition:"background-color 0.2s ease"},onMouseEnter:T=>{R||(T.currentTarget.style.backgroundColor="#0969da")},onMouseLeave:T=>{R||(T.currentTarget.style.backgroundColor="transparent")}}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflowY:"auto",padding:p?"24px 20px 80px 20px":"16px 8px 16px 8px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:p?"flex-start":"center",gap:"12px",marginBottom:p?"24px":"16px",flexShrink:0},children:[l.jsx("button",{onClick:()=>d(!p),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"4px",marginTop:p?"4px":"0",background:"transparent",border:"none",color:"#8c959f",cursor:"pointer",transition:"color 0.2s ease",flexShrink:0},onMouseEnter:T=>T.currentTarget.style.color="#24292f",onMouseLeave:T=>T.currentTarget.style.color="#8c959f",title:p?"Collapse Property Editor":"Expand Property Editor",children:p?l.jsx(Rn,{size:18}):l.jsx(vc,{size:18})}),p&&l.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1},children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"bold",color:"#57606a",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"2px"},children:e==="Group"?`Group ${t}`:e==="Text"?`Text Block ${t}`:`Step ${n||t}`}),l.jsx("span",{style:{fontSize:"16px",fontWeight:"600",color:"#24292f",wordBreak:"break-word"},children:e==="Text"?"Edit Text":r})]})]}),p&&l.jsxs(l.Fragment,{children:[e!=="Text"&&l.jsxs("div",{style:{display:"flex",borderBottom:"1px solid #e1e4e8",marginBottom:"24px",flexShrink:0},children:[l.jsx("button",{onClick:()=>I("Details"),style:{padding:"8px 0",marginRight:"24px",background:"transparent",border:"none",borderBottom:w==="Details"?"2px solid #0969da":"2px solid transparent",color:w==="Details"?"#0969da":"#57606a",fontWeight:w==="Details"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Details"}),l.jsx("button",{onClick:()=>I("Connections"),style:{padding:"8px 0",background:"transparent",border:"none",borderBottom:w==="Connections"?"2px solid #0969da":"2px solid transparent",color:w==="Connections"?"#0969da":"#57606a",fontWeight:w==="Connections"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Connections"})]}),w==="Details"||e==="Text"?l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"20px",flex:1},children:e==="Text"?l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Text Content"}),l.jsx("textarea",{value:r,onChange:T=>u==null?void 0:u(T.target.value),placeholder:"Type your text here...",style:{width:"100%",padding:"12px",border:"1px solid #0969da",borderRadius:"6px",fontSize:"14px",color:"#24292f",minHeight:"120px",resize:"vertical",outline:"none",boxShadow:"0 0 0 3px rgba(9, 105, 218, 0.3)",boxSizing:"border-box",lineHeight:"1.5"}})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:[e==="Group"?"Group Name":"Step Name"," ",l.jsx("span",{style:{color:"#cf222e"},children:"*"})]}),l.jsx("input",{type:"text",value:r,onChange:T=>u==null?void 0:u(T.target.value),style:{padding:"8px 12px",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",color:"#24292f",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.04)"}})]}),e==="Node"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Description"}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx("textarea",{value:o,onChange:T=>y==null?void 0:y(T.target.value),placeholder:"Enter description here...",style:{width:"100%",padding:"8px 12px",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",color:"#24292f",minHeight:"70px",resize:"vertical",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.04)",boxSizing:"border-box"}}),l.jsxs("span",{style:{position:"absolute",bottom:"8px",right:"12px",fontSize:"10px",color:"#8c959f"},children:[o.length,"/500"]})]})]}),l.jsx(wd,{label:"Steps",value:i,onChange:h,placeholder:"Enter steps to reproduce...",minHeight:"80px"}),l.jsx(wd,{label:"Expected Result",value:s,onChange:x,placeholder:"e.g., The system securely processes the valid input and proceeds.",minHeight:"80px",maxLength:500}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"References"}),l.jsxs("span",{style:{fontSize:"10px",color:"#8c959f",fontWeight:"500"},children:["Videos: ",A,"/1 • Images: ",E,"/1"]})]}),l.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:[F.map((T,G)=>{const Y=T.endsWith(".mp4")||T.endsWith(".webm");return l.jsxs("div",{onClick:()=>O({url:T,type:Y?"video":"image"}),style:{position:"relative",width:"80px",height:"60px",borderRadius:"6px",border:"1px solid #d0d7de",overflow:"hidden",backgroundColor:"#f6f8fa",cursor:"pointer"},children:[Y?l.jsx("video",{src:T,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:H=>H.currentTarget.play().catch(()=>{}),onMouseLeave:H=>{H.currentTarget.pause(),H.currentTarget.currentTime=0}}):l.jsx("img",{src:T,alt:`Reference ${G}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),l.jsx("button",{onClick:H=>{H.stopPropagation(),ve(G)},disabled:ae,title:"Remove Reference",style:{position:"absolute",top:"4px",right:"4px",background:"rgba(36, 41, 47, 0.7)",color:"#ffffff",border:"none",borderRadius:"50%",padding:"2px",cursor:ae?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:ae?.5:1},children:ae?l.jsx(Pr,{size:12,className:"flowstride-spin"}):l.jsx(Cr,{size:12})})]},`${T}-${G}`)}),(A<1||E<1)&&l.jsxs(l.Fragment,{children:[l.jsx("input",{type:"file",ref:V,onChange:ee,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var T;return(T=V.current)==null?void 0:T.click()},disabled:$,style:{width:"80px",height:"60px",backgroundColor:$?"#f6f8fa":"#ffffff",border:"1px dashed #0969da",borderRadius:"6px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:$?"not-allowed":"pointer",color:$?"#8c959f":"#0969da",transition:"all 0.2s ease"},children:[$?l.jsx(Pr,{size:16,className:"flowstride-spin",style:{marginBottom:"4px"}}):l.jsx(Kp,{size:16,style:{marginBottom:"4px"}}),l.jsx("span",{style:{fontSize:"11px",fontWeight:"500"},children:$?"Vaulting...":"Upload"})]})]})]})]}),l.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"6px",marginBottom:"20px",marginTop:"8px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Priority"}),l.jsxs("button",{onClick:()=>ne(!oe),style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",border:oe?"1px solid #0969da":"1px solid #d0d7de",borderRadius:"6px",backgroundColor:"#ffffff",cursor:"pointer",outline:"none",boxShadow:oe?"0 0 0 3px rgba(9, 105, 218, 0.3)":"0 1px 2px rgba(0,0,0,0.04)",transition:"all 0.2s ease"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:z}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f",fontWeight:"500"},children:de})]}),l.jsx(Dr,{size:14,color:"#57606a",style:{transform:oe?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),oe&&l.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,marginTop:"4px",backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"6px",boxShadow:"0 8px 24px rgba(140, 149, 159, 0.2)",zIndex:100,display:"flex",flexDirection:"column",padding:"4px"},children:["Low","Medium","High","Critical"].map(T=>l.jsxs("button",{onClick:()=>{_==null||_(T),ne(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px",border:"none",backgroundColor:"transparent",cursor:"pointer",borderRadius:"4px",textAlign:"left"},onMouseEnter:G=>G.currentTarget.style.backgroundColor="#f6f8fa",onMouseLeave:G=>G.currentTarget.style.backgroundColor="transparent",children:[l.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:ie[T]}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f"},children:T})]},T))})]})]})]})}):l.jsx("div",{style:{display:"flex",flexDirection:"column"},children:l.jsx("p",{style:{fontSize:"12px",color:"#57606a",fontFamily:"monospace"},children:"CONNECTIONS UI SCAFFOLD"})})]})]})]})]})},o1=({report:e=[],onDefectSubmit:t,isReadOnly:n=!1})=>{const[r,o]=b.useState(null),[i,s]=b.useState(null),[a,c]=b.useState(null),[u,y]=b.useState(null),[h,x]=b.useState({report:"",media:"",assignedTo:""}),m=b.useRef(null),[_,w]=b.useState(!1),[I,p]=b.useState(!1),d=e.length,g=e.filter(A=>A.status==="Passed").length,v=e.filter(A=>A.status==="Failed").length,R=e.filter(A=>A.status==="Blocked").length,j=e.filter(A=>A.status==="Skipped").length,N=d===0?0:g/d*100,k=d===0?0:v/d*100,V=d===0?0:R/d*100,$=d===0?0:j/d*100,re=100-N-k-V-$;b.useEffect(()=>{const A=e.find(E=>E.status==="Current");A&&A.group_title&&s(A.group_title)},[e]);const ae=[];e.forEach(A=>{const E=A.group_title||"";let D=ae.find(L=>L.groupName===E);D||(D={groupName:E,steps:[]},ae.push(D)),D.steps.push(A)});const W=A=>{switch(A){case"Passed":return{dotBg:"#10b981",dotRing:"#d1fae5",cardBorder:"#a7f3d0",cardBg:"rgba(236, 253, 245, 0.5)",badgeBg:"#d1fae5",badgeText:"#047857",label:"PASSED"};case"Failed":return{dotBg:"#ef4444",dotRing:"#fee2e2",cardBorder:"#fecaca",cardBg:"rgba(254, 242, 242, 0.5)",badgeBg:"#fee2e2",badgeText:"#b91c1c",label:"FAILED"};case"Blocked":return{dotBg:"#f59e0b",dotRing:"#fef3c7",cardBorder:"#fde68a",cardBg:"rgba(255, 251, 235, 0.5)",badgeBg:"#fef3c7",badgeText:"#b45309",label:"BLOCKED"};case"Skipped":return{dotBg:"#a855f7",dotRing:"#f3e8ff",cardBorder:"#e9d5ff",cardBg:"rgba(250, 245, 255, 0.5)",badgeBg:"#f3e8ff",badgeText:"#7e22ce",label:"SKIPPED"};case"Current":return{dotBg:"#3b82f6",dotRing:"#dbeafe",cardBorder:"#bfdbfe",cardBg:"#ffffff",badgeBg:"#dbeafe",badgeText:"#1d4ed8",label:"CURRENT"};default:return{dotBg:"#cbd5e1",dotRing:"#f1f5f9",cardBorder:"#e2e8f0",cardBg:"#ffffff",badgeBg:"#f1f5f9",badgeText:"#475569",label:"PENDING"}}},oe=(A,E)=>{const D=e.find(L=>L.id===A);x({report:(D==null?void 0:D.defect_report)||"",media:(D==null?void 0:D.defect_media)||"",assignedTo:(D==null?void 0:D.assigned_to)||""}),c({stepId:A,type:E})},ne=()=>{c(null)},he=()=>{!a||n||(t==null||t(a.stepId,h.report,h.media,h.assignedTo),ne())},O=async A=>{var ve;if(n)return;const E=Array.from(A.target.files||[]);if(E.length===0)return;const D=h.media.split(",").filter(Boolean);let L=D.filter(ie=>ie.endsWith(".mp4")||ie.endsWith(".webm")).length,Q=D.filter(ie=>!ie.endsWith(".mp4")&&!ie.endsWith(".webm")).length;const ee=[];w(!0);for(const ie of E){const de="."+(((ve=ie.name.split(".").pop())==null?void 0:ve.toLowerCase())||""),z=de===".mp4"||de===".webm",T=[".png",".jpg",".jpeg",".gif"].includes(de);if(z){if(L>=4){window.alert("Architectural Limit Reached: Maximum 4 defect video clips allowed.");continue}if(ie.size>104857600){window.alert(`Security Block: Video ${ie.name} exceeds 100MB physical limit.`);continue}L++}else if(T){if(Q>=6){window.alert("Architectural Limit Reached: Maximum 6 defect images allowed.");continue}if(ie.size>5242880){window.alert(`Security Block: Image ${ie.name} exceeds 5MB physical limit.`);continue}Q++}else{window.alert(`Security Block: Unsupported file format ${de}.`);continue}try{const G=await fetch("/api/upload-defect",{method:"POST",headers:{"X-File-Extension":de},body:ie});if(!G.ok)throw new Error("Network response was not ok");const Y=await G.json();Y.url&&ee.push(Y.url)}catch{window.alert(`Network Error: Failed to vault defect evidence ${ie.name}.`)}}if(ee.length>0){const ie=[...D,...ee].join(",");x({...h,media:ie})}w(!1),m.current&&(m.current.value="")},F=async A=>{if(I||n)return;const E=h.media.split(",").filter(Boolean),D=E[A];if(D){p(!0);try{const L=await fetch(`/api/defect-media?filepath=${encodeURIComponent(D)}`,{method:"DELETE"});if(!L.ok&&L.status!==404)throw new Error(`Server returned ${L.status}`);const Q=[...E];Q.splice(A,1),x({...h,media:Q.join(",")})}catch(L){console.error("[Flowstride Security Alert]: Physical deletion of defect media failed.",L),window.alert("Security Block: Failed to physically remove defect media. Please try again.")}finally{p(!1)}}};return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
611
|
+
.flowstride-spin {
|
|
612
|
+
animation: flowstride-spin-anim 1s linear infinite;
|
|
613
|
+
}
|
|
614
|
+
@keyframes flowstride-spin-anim {
|
|
615
|
+
100% { transform: rotate(360deg); }
|
|
616
|
+
}
|
|
617
|
+
`}),u&&l.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.9)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},onClick:()=>y(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:A=>A.stopPropagation(),children:[l.jsx("button",{onClick:()=>y(null),title:"Close Preview",style:{position:"absolute",top:"-40px",right:"0",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",color:"#ffffff",borderRadius:"50%",padding:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s ease"},onMouseEnter:A=>A.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:A=>A.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(Cr,{size:20})}),u.type==="video"?l.jsx("video",{src:u.url,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)"}}):l.jsx("img",{src:u.url,alt:"Defect Preview",style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)",objectFit:"contain"}})]})}),l.jsxs("aside",{style:{width:"340px",backgroundColor:"#ffffff",borderLeft:"1px solid #e2e8f0",display:"flex",flexDirection:"column",flexShrink:0,zIndex:20,boxShadow:"-4px 0 15px -3px rgba(0,0,0,0.02)"},children:[l.jsxs("div",{style:{padding:"20px",borderBottom:"1px solid #e2e8f0",flexShrink:0,display:"flex",flexDirection:"column",gap:"20px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[l.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",backgroundColor:"#ecfdf5",color:"#059669",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #d1fae5",flexShrink:0},children:l.jsx(_c,{size:16,strokeWidth:2.5})}),l.jsxs("div",{children:[l.jsx("h2",{style:{fontSize:"15px",fontWeight:"bold",color:"#0f172a",margin:0,lineHeight:"1.2"},children:"Test Execution"}),l.jsx("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#94a3b8",marginTop:"2px",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Live Report"})]})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[l.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 0"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#334155"},children:d}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Total"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#ecfdf5",border:"1px solid #a7f3d0",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#047857"},children:g}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#059669",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Passed"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#b91c1c"},children:v}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#dc2626",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Failed"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#fffbeb",border:"1px solid #fde68a",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#d97706"},children:R}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#b45309",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Blocked"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#faf5ff",border:"1px solid #e9d5ff",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#7e22ce"},children:j}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#9333ea",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Skip"})]})]}),l.jsxs("div",{style:{width:"100%",height:"6px",backgroundColor:"#f1f5f9",borderRadius:"9999px",overflow:"hidden",display:"flex",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.05)"},children:[l.jsx("div",{style:{height:"100%",backgroundColor:"#10b981",width:`${N}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#ef4444",width:`${k}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#f59e0b",width:`${V}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#a855f7",width:`${$}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#cbd5e1",width:`${re}%`,transition:"width 0.3s ease"}})]})]})]}),l.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px",backgroundColor:"#fafafa"},children:e.length===0?l.jsx("div",{style:{textAlign:"center",color:"#94a3b8",fontSize:"13px",marginTop:"20px"},children:"Waiting for execution layout..."}):l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:ae.map((A,E)=>{const D=A.groupName==="",L=D||i===A.groupName;return l.jsxs("div",{style:{marginBottom:D?"0":"8px"},children:[!D&&l.jsxs("button",{onClick:()=>s(L?null:A.groupName),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:L?"#f8fafc":"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",outline:"none",boxShadow:L?"none":"0 1px 2px rgba(0,0,0,0.02)"},children:[l.jsx("span",{style:{fontSize:"12px",fontWeight:"bold",color:L?"#0f172a":"#475569",textTransform:"uppercase",letterSpacing:"0.05em"},children:A.groupName}),l.jsx(Dr,{size:16,color:"#94a3b8",style:{transform:L?"rotate(180deg)":"none",transition:"transform 0.2s ease"}})]}),L&&l.jsx("div",{style:{position:"relative",borderLeft:"2px solid #e2e8f0",marginLeft:D?"11px":"27px",paddingBottom:"8px",marginTop:D?"0":"16px",transition:"all 0.3s ease"},children:A.steps.map(Q=>{const ee=W(Q.status),ve=r===Q.id,ie=ee.label==="FAILED"||ee.label==="BLOCKED";return l.jsxs("div",{style:{position:"relative",paddingLeft:"24px",marginBottom:"24px"},children:[l.jsx("div",{style:{position:"absolute",left:"-7px",top:"6px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:ee.dotBg,boxShadow:`0 0 0 4px ${ee.dotRing}`,zIndex:10,transition:"background-color 0.3s ease, box-shadow 0.3s ease"}}),l.jsxs("div",{style:{border:`1px solid ${ee.cardBorder}`,borderRadius:"8px",padding:"14px",backgroundColor:ee.cardBg,transition:"all 0.3s ease"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",marginBottom:"6px"},children:[l.jsxs("div",{style:{fontSize:"10px",fontWeight:"bold",color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em"},children:["Step ",Q.id]}),l.jsx("span",{style:{padding:"2px 8px",borderRadius:"4px",fontSize:"9px",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"0.05em",backgroundColor:ee.badgeBg,color:ee.badgeText,transition:"all 0.3s ease"},children:ee.label})]}),l.jsx("h3",{style:{fontSize:"13px",fontWeight:"bold",color:"#0f172a",lineHeight:"1.4",margin:"0 0 4px 0"},children:Q.title}),l.jsx("p",{style:{fontSize:"11px",color:"#64748b",lineHeight:"1.6",margin:0},children:Q.description}),ie&&l.jsxs("div",{style:{marginTop:"12px"},children:[l.jsxs("button",{onClick:()=>o(ve?null:Q.id),style:{width:"100%",padding:"6px 12px",backgroundColor:"#ffffff",border:`1px solid ${ee.label==="FAILED"?"#fecaca":"#fde68a"}`,color:ee.label==="FAILED"?"#dc2626":"#d97706",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",outline:"none"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(ay,{size:14,strokeWidth:2.5}),ee.label==="FAILED"?"Failure Details":"Blocked Details"]}),l.jsx(Dr,{size:14,strokeWidth:2.5,style:{transform:ve?"rotate(180deg)":"none",transition:"transform 0.2s"}})]}),ve&&l.jsxs("div",{style:{marginTop:"8px",paddingTop:"8px",borderTop:`1px solid ${ee.label==="FAILED"?"rgba(254, 202, 202, 0.6)":"rgba(253, 230, 138, 0.6)"}`,display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("button",{onClick:()=>oe(Q.id,ee.label==="FAILED"?"Failed Report":"Blocked Report"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(mo,{size:14,color:ee.label==="FAILED"?"#ef4444":"#f59e0b",style:{marginRight:"8px"}})," ",ee.label==="FAILED"?"Failed Report":"Blocked Report"]}),l.jsxs("button",{onClick:()=>oe(Q.id,"Screenshot"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(xs,{size:14,color:"#6366f1",style:{marginRight:"8px"}})," ","Screenshot"]}),l.jsxs("button",{onClick:()=>oe(Q.id,"Video Clip"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(ys,{size:14,color:"#10b981",style:{marginRight:"8px"}})," ","Video Clip"]}),l.jsxs("button",{onClick:()=>oe(Q.id,"Assigned To"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(rd,{size:14,color:"#f59e0b",style:{marginRight:"8px"}})," ","Assigned To"]})]})]})]})]},Q.id)})})]},A.groupName||`ungrouped-${E}`)})})})]}),a&&l.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},children:[l.jsx("div",{onClick:ne,style:{position:"absolute",inset:0,backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(2px)",cursor:"pointer"}}),l.jsxs("div",{style:{position:"relative",width:"600px",backgroundColor:"#ffffff",borderRadius:"12px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px",borderBottom:"1px solid #f1f5f9"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[l.jsxs("div",{style:{width:"40px",height:"40px",borderRadius:"8px",backgroundColor:"#eef2ff",display:"flex",alignItems:"center",justifyContent:"center"},children:[a.type==="Screenshot"&&l.jsx(xs,{size:20,color:"#6366f1"}),a.type==="Video Clip"&&l.jsx(ys,{size:20,color:"#10b981"}),a.type==="Failed Report"&&l.jsx(mo,{size:20,color:"#ef4444"}),a.type==="Blocked Report"&&l.jsx(mo,{size:20,color:"#f59e0b"}),a.type==="Assigned To"&&l.jsx(rd,{size:20,color:"#f59e0b"})]}),l.jsxs("div",{children:[l.jsx("h3",{style:{fontSize:"18px",fontWeight:"bold",color:"#0f172a",margin:"0 0 4px 0"},children:a.type}),l.jsxs("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:["Step ",a.stepId,": DEFECT DATA"]})]})]}),l.jsx("button",{onClick:ne,style:{background:"transparent",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},children:l.jsx(Cr,{size:20})})]}),l.jsxs("div",{style:{padding:"40px 24px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#f8fafc"},children:[(a.type==="Failed Report"||a.type==="Blocked Report")&&l.jsx("textarea",{autoFocus:!0,readOnly:n,value:h.report,onChange:A=>!n&&x({...h,report:A.target.value}),placeholder:`Enter detailed ${a.type.toLowerCase()}...`,style:{width:"100%",maxWidth:"500px",minHeight:"150px",padding:"12px",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",color:"#334155",marginBottom:"24px",resize:"vertical",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.05)",backgroundColor:n?"#f1f5f9":"#ffffff",cursor:n?"not-allowed":"text"}}),a.type==="Assigned To"&&l.jsxs("div",{style:{width:"100%",maxWidth:"300px",marginBottom:"24px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"bold",color:"#64748b",marginBottom:"8px",display:"block"},children:"Assign to team member:"}),l.jsx("input",{autoFocus:!0,readOnly:n,type:"text",value:h.assignedTo,onChange:A=>!n&&x({...h,assignedTo:A.target.value}),placeholder:"e.g., Jane Doe",style:{width:"100%",padding:"10px 12px",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",color:"#334155",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.05)",boxSizing:"border-box",backgroundColor:n?"#f1f5f9":"#ffffff",cursor:n?"not-allowed":"text"}})]}),(a.type==="Screenshot"||a.type==="Video Clip")&&l.jsxs("div",{style:{width:"100%",marginBottom:"24px"},children:[l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",justifyContent:"center"},children:h.media.split(",").filter(Boolean).map((A,E)=>{const D=A.endsWith(".mp4")||A.endsWith(".webm");return l.jsxs("div",{onClick:()=>y({url:A,type:D?"video":"image"}),style:{position:"relative",width:"140px",height:"100px",borderRadius:"6px",border:"1px solid #d0d7de",overflow:"hidden",backgroundColor:"#f6f8fa",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",cursor:"pointer"},children:[D?l.jsx("video",{src:A,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:L=>L.currentTarget.play().catch(()=>{}),onMouseLeave:L=>{L.currentTarget.pause(),L.currentTarget.currentTime=0}}):l.jsx("img",{src:A,alt:`Defect Evidence ${E}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),!n&&l.jsx("button",{onClick:L=>{L.stopPropagation(),F(E)},disabled:I,title:"Remove Evidence",style:{position:"absolute",top:"4px",right:"4px",background:"rgba(15, 23, 42, 0.7)",color:"#ffffff",border:"none",borderRadius:"50%",padding:"4px",cursor:I?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:I?.5:1,transition:"background 0.2s ease"},children:I?l.jsx(Pr,{size:14,className:"flowstride-spin"}):l.jsx(Cr,{size:14})})]},`${A}-${E}`)})}),h.media.split(",").filter(Boolean).length===0&&l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[l.jsx("div",{style:{width:"64px",height:"64px",borderRadius:"50%",backgroundColor:"#ffffff",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"16px"},children:a.type==="Screenshot"?l.jsx(xs,{size:28,color:"#cbd5e1"}):l.jsx(ys,{size:28,color:"#cbd5e1"})}),l.jsx("p",{style:{fontSize:"14px",color:"#475569",textAlign:"center",maxWidth:"300px",lineHeight:"1.5",margin:0},children:n?"No evidence vaulted for this historical run.":"No evidence vaulted yet. Upload a file below."})]})]}),!n&&l.jsxs("div",{style:{display:"flex",gap:"12px"},children:[a.type==="Screenshot"||a.type==="Video Clip"?l.jsxs(l.Fragment,{children:[l.jsx("input",{type:"file",ref:m,onChange:O,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var A;return(A=m.current)==null?void 0:A.click()},disabled:_,style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 20px",backgroundColor:"#ffffff",color:"#334155",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",fontWeight:"600",cursor:_?"not-allowed":"pointer",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",opacity:_?.7:1},children:[_?l.jsx(Pr,{size:16,className:"flowstride-spin"}):l.jsx(uy,{size:16}),_?"Vaulting...":"Upload Evidence"]})]}):null,l.jsxs("button",{onClick:he,style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 20px",backgroundColor:"#4f46e5",color:"#ffffff",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:"600",cursor:"pointer",boxShadow:"0 4px 6px -1px rgba(79, 70, 229, 0.2)"},children:[l.jsx(ty,{size:16})," Save Data"]})]})]})]})]})]})},i1=()=>{const[e,t]=b.useState(xe.Design),[n,r]=b.useState("Hand"),[o,i]=b.useState(null),[s,a]=b.useState([]),[c,u]=b.useState(1),[y,h]=b.useState(0),[x,m]=b.useState([]),[_,w]=b.useState(void 0),[I,p]=b.useState({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),{activeHistoricalRunId:d,setActiveHistoricalRunId:g}=Je(),v=b.useRef(null),[R,j]=b.useState(null),N=b.useCallback((E,D,L,Q)=>{j({stepNumber:E,defectReport:D,defectMedia:L,assignedTo:Q})},[]),k=async()=>{try{const E=await fetch("/api/templates");if(E.ok){const D=await E.json();m(D.templates||[])}}catch(E){console.error("[Flowstride Telemetry Error]: Failed to fetch local templates",E),at.error("Failed to connect to local file vault.")}};b.useEffect(()=>{let E=!0;return(async()=>{if(await k(),!E||d)return;let L=null;try{const Q=await fetch("/api/state");Q.ok&&(L=(await Q.json()).activeFlowId)}catch(Q){console.warn("[Flowstride Telemetry]: Failed to read physical state vault.",Q)}if(E){if(L&&v.current)try{const Q=await fetch(`/api/template?filename=${encodeURIComponent(L)}`);if(Q.ok){const ee=await Q.json();if(!E)return;v.current.importDesignState(ee),ee.metadata&&p(ee.metadata),w(L);return}}catch{console.warn("[Flowstride Telemetry]: Persisted flow missing, reverting to default.")}if(E&&v.current){v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const Q=`unsaved-temp-${Date.now()}`;m(ee=>[...ee.filter(ve=>!ve.id.startsWith("unsaved-temp")),{id:Q,name:"New Local Flow"}]),w(Q)}}})(),()=>{E=!1}},[]),b.useEffect(()=>{if(_===void 0)return;(async()=>{const D=_&&!_.startsWith("unsaved-temp")?_:null;try{await fetch("/api/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeFlowId:D})})}catch(L){console.warn("[Flowstride Telemetry]: Failed to sync physical state vault.",L)}})()},[_]),b.useEffect(()=>{if(!d)return;(async()=>{try{const D=await fetch(`/api/run?filename=${encodeURIComponent(d)}`);if(!D.ok)throw new Error("Failed to fetch historical run payload");const L=await D.json();v.current&&(v.current.importDesignState(L),L.executionReport?a(L.executionReport):a([]),L.metadata&&p(L.metadata),w(void 0),i(null),t(xe.Execution),at.success("Historical record loaded successfully."))}catch(D){console.error("[Flowstride Telemetry Error]: Historical load failed",D),at.error("Failed to load the historical run.")}})()},[d]);const V=()=>{u(E=>Math.min(E+.1,3))},$=()=>{u(E=>Math.max(E-.1,.25))},re=()=>{u(1),h(E=>E+1)},ae=(E,D,L,Q="Node",ee,ve,ie,de,z)=>{i(E===null?null:{type:Q,id:E,title:D,description:L,visualStep:ee,stepsContent:ve,expectedResult:ie,references:de,priority:z})},W=async E=>{if(d&&g(null),m(D=>D.filter(L=>!L.id.startsWith("unsaved-temp")||L.id===E)),E.startsWith("unsaved-temp")){v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),w(E),i(null));return}try{const D=await fetch(`/api/template?filename=${encodeURIComponent(E)}`);if(!D.ok)throw new Error("Failed to fetch template payload");const L=await D.json();v.current&&(v.current.importDesignState(L),L.metadata?p(L.metadata):p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),w(E),i(null),at.success(`Loaded ${E.replace(".json","")}`))}catch(D){console.error("[Flowstride Telemetry Error]: Blueprint load failed",D),at.error("Failed to load the selected flow.")}},oe=()=>{if(d&&g(null),v.current){v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const E=`unsaved-temp-${Date.now()}`;m(D=>[...D.filter(L=>!L.id.startsWith("unsaved-temp")),{id:E,name:"New Local Flow"}]),w(E),i(null)}},ne=async E=>{try{if(E.startsWith("unsaved-temp")){m(L=>L.filter(Q=>Q.id!==E)),_===E&&(w(void 0),v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}))),at.success("Temporary flow removed");return}const D=await fetch(`/api/template?filename=${encodeURIComponent(E)}`,{method:"DELETE"});if(!D.ok)throw new Error(`Local backend rejected deletion with status: ${D.status}`);at.success(`Deleted ${E.replace(".json","")}`),await k(),_===E&&(w(void 0),i(null),v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()})))}catch(D){console.error("[Flowstride Telemetry Error]: Failed to delete flow",D),at.error("Failed to delete flow securely.")}},he=(E,D)=>{m(L=>L.map(Q=>Q.id===E?{...Q,name:D}:Q))},O=async E=>{if(!v.current){console.warn("[Flowstride Telemetry]: Canvas bridge is not yet established."),at.error("System not fully initialized.");return}try{const D=v.current.exportDesignState(),L=Date.now(),Q="Local User";let ee="New Local Flow",ve=null;if(E)ee=E,_&&!_.startsWith("unsaved-temp")&&_!==`${E}.json`&&(ve=_);else if(_)if(_.startsWith("unsaved-temp")){const de=x.find(z=>z.id===_);de&&(ee=de.name)}else ee=_.replace(".json","");let ie;if(e===xe.Execution){const de={...I,flowName:ee,testedBy:Q,lastUpdatedAt:L};ie={...D,metadata:de,executionReport:s}}else{const de={...I,flowName:ee,lastUpdatedBy:Q,lastUpdatedAt:L};p(de),ie={...D,metadata:de}}if(e===xe.Execution){const de=`Run_${ee}_${Date.now()}.json`,z=await fetch("/api/save-run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:ie,filename:de})});if(!z.ok)throw new Error(`Local server rejected the run payload with status: ${z.status}`);console.log(`[Flowstride Telemetry]: Execution Run securely vaulted as ${de}`),at.success("Run successfully submitted and vaulted locally.")}else{const de=`${ee}.json`,z=await fetch("/api/save-design",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:ie,filename:de})});if(!z.ok)throw new Error(`Local server rejected the template payload with status: ${z.status}`);const T=await z.json();if(ve)try{await fetch(`/api/template?filename=${encodeURIComponent(ve)}`,{method:"DELETE"}),console.log(`[Flowstride Telemetry]: Old physical file ${ve} securely wiped after rename.`)}catch(G){console.error("[Flowstride Telemetry Error]: Failed to wipe old file during rename",G)}console.log(`[Flowstride Telemetry]: Design securely vaulted locally as ${de}`),_&&_.startsWith("unsaved-temp")&&m(G=>G.filter(Y=>Y.id!==_)),await k(),T.filename&&w(T.filename),at.success(`Successfully vaulted ${ee} locally`)}}catch(D){throw console.error("[Flowstride Telemetry Error]: Failed to vault data locally:",D.message),at.error("Failed to vault data securely."),D}},F=async E=>{if(E===xe.Execution&&e===xe.Design)try{await O()}catch{console.warn("[Flowstride Telemetry Error]: Aborting mode switch due to auto save failure.");return}t(E)},A=b.useCallback(E=>{d||a(E)},[d]);return l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",backgroundColor:"#ffffff",color:"#24292f",height:"100%",overflow:"hidden",position:"relative"},children:[l.jsx(_m,{position:"top-right",toastOptions:{duration:3e3,style:{fontSize:"14px",fontWeight:"500",color:"#57606a",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",padding:"12px 16px"},success:{style:{background:"#ebfdf0",border:"1px solid #bceabf"},iconTheme:{primary:"#34c759",secondary:"#ffffff"}},error:{style:{background:"#ffebe9",border:"1px solid #ff8182"},iconTheme:{primary:"#cf222e",secondary:"#ffffff"}}}}),l.jsx(Jm,{activeMode:e,onModeChange:F,onSave:O,flows:x,activeFlowId:_,onSelectFlow:W,onCreateFlow:oe,onDeleteFlow:ne,onRenameFlow:he,zoomLevel:c,onZoomIn:V,onZoomOut:$,onZoomReset:re,metadata:I,onMetadataChange:p}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[e===xe.Design&&l.jsx(n1,{activeTool:n,onToolSelect:r}),l.jsx(fg,{ref:v,activeMode:e,activeTool:n,onNodeSelected:(E,D,L,Q,ee,ve,ie,de)=>ae(E,D,L,"Node",Q,ee,ve,ie,de),nodeUpdateTrigger:(o==null?void 0:o.type)==="Node"?{stepNumber:o.id,title:o.title,description:o.description,stepsContent:o.stepsContent||"",expectedResult:o.expectedResult||"",references:o.references||"",priority:o.priority||""}:null,defectUpdateTrigger:R,onGroupSelected:(E,D)=>ae(E,D,"","Group"),groupUpdateTrigger:(o==null?void 0:o.type)==="Group"?{groupId:o.id,title:o.title}:null,onTextSelected:(E,D)=>ae(E,D,"","Text"),textUpdateTrigger:(o==null?void 0:o.type)==="Text"?{textId:o.id,content:o.title}:null,onExecutionReportChange:A,zoomLevel:c,recenterTrigger:y,onToolChange:r},d?`historical-run-${d}`:"persistent-design-canvas"),e===xe.Design?o?l.jsx(r1,{entityType:o.type,entityId:o.id,visualStep:o.visualStep,title:o.title,description:o.description,stepsContent:o.stepsContent,expectedResult:o.expectedResult,referencesContent:o.references,priority:o.priority,onTitleChange:E=>i({...o,title:E}),onDescriptionChange:E=>i({...o,description:E}),onStepsContentChange:E=>i({...o,stepsContent:E}),onExpectedResultChange:E=>i({...o,expectedResult:E}),onReferencesChange:E=>i({...o,references:E}),onPriorityChange:E=>i({...o,priority:E})}):l.jsx("aside",{style:{width:"320px",backgroundColor:"#ffffff",borderLeft:"1px solid #e1e4e8",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:l.jsx("span",{style:{fontSize:"13px",color:"#8c959f",fontWeight:"500"},children:"Select an entity on the canvas to view properties"})}):l.jsx(o1,{report:s,onDefectSubmit:N,isReadOnly:!!d})]})]})},l1=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[o,i]=b.useState(""),{setActiveView:s,setActiveHistoricalRunId:a}=Je();b.useEffect(()=>{(async()=>{try{const x=await fetch("/api/runs");if(x.ok){const _=((await x.json()).runs||[]).sort((w,I)=>I.id.localeCompare(w.id));t(_)}else at.error("Failed to fetch runs from local vault.")}catch(x){console.error("[Flowstride Telemetry Error]:",x),at.error("Failed to connect to local backend.")}finally{r(!1)}})()},[]);const c=e.filter(h=>h.name.toLowerCase().includes(o.toLowerCase())||h.id.includes(o)),u=h=>h==="PASS"?"#3fb950":h==="FAIL"?"#f85149":"#d2a8ff",y=h=>h==="PASS"?"rgba(46, 160, 67, 0.15)":h==="FAIL"?"rgba(248, 81, 73, 0.15)":"rgba(210, 168, 255, 0.15)";return l.jsxs("div",{style:{flex:1,backgroundColor:"#0b0e14",color:"#c9d1d9",padding:"32px",overflowY:"auto"},children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[l.jsx("h2",{style:{color:"#ffffff",margin:0,fontSize:"24px",fontWeight:"600"},children:"Test Execution Runs"}),l.jsx("div",{style:{display:"flex",gap:"12px"},children:l.jsx("input",{type:"text",placeholder:"Search runs by name or date...",value:o,onChange:h=>i(h.target.value),style:{backgroundColor:"#0d1117",border:"1px solid #30363d",borderRadius:"6px",padding:"8px 12px",color:"#c9d1d9",fontSize:"13px",width:"280px",outline:"none",transition:"border-color 0.2s"},onFocus:h=>h.target.style.borderColor="#58a6ff",onBlur:h=>h.target.style.borderColor="#30363d"})})]}),n?l.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"40px"},children:l.jsx("p",{style:{color:"#8b949e",fontSize:"14px"},children:"Securely accessing local vault..."})}):e.length===0?l.jsx("div",{style:{padding:"40px",textAlign:"center",border:"1px dashed #30363d",borderRadius:"8px"},children:l.jsx("p",{style:{color:"#8b949e"},children:"No execution runs found in the vault."})}):l.jsxs("div",{style:{border:"1px solid #30363d",borderRadius:"8px",overflow:"hidden",backgroundColor:"#0d1117"},children:[l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",textAlign:"left",fontSize:"13px"},children:[l.jsx("thead",{style:{backgroundColor:"#161b22",borderBottom:"1px solid #30363d"},children:l.jsxs("tr",{children:[l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"15%"},children:"DATE"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"15%"},children:"TIME"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"40%"},children:"RUN NAME"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"10%"},children:"STATUS"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"20%"},children:"METRICS"})]})}),l.jsx("tbody",{children:c.map(h=>{var g,v,R,j;const x=h.id.split("/"),m=x.length>=3?x[0]:"N/A",_=x.length>=3?x[1].replace(/-/g,":"):"N/A",w=((g=h.metrics)==null?void 0:g.status)||"UNKNOWN",I=((v=h.metrics)==null?void 0:v.passed)||0,p=((R=h.metrics)==null?void 0:R.failed)||0,d=((j=h.metrics)==null?void 0:j.total)||0;return l.jsxs("tr",{style:{borderBottom:"1px solid #21262d",transition:"background-color 0.2s",cursor:"pointer"},onMouseEnter:N=>N.currentTarget.style.backgroundColor="#1c2128",onMouseLeave:N=>N.currentTarget.style.backgroundColor="transparent",onClick:()=>{a(h.id),s("Workspace")},children:[l.jsx("td",{style:{padding:"12px 16px",color:"#c9d1d9"},children:m}),l.jsx("td",{style:{padding:"12px 16px",color:"#8b949e"},children:_}),l.jsx("td",{style:{padding:"12px 16px",color:"#58a6ff",fontWeight:"500"},children:h.name}),l.jsx("td",{style:{padding:"12px 16px"},children:l.jsx("span",{style:{color:u(w),backgroundColor:y(w),padding:"4px 8px",borderRadius:"12px",fontSize:"11px",fontWeight:"600",display:"inline-block"},children:w})}),l.jsx("td",{style:{padding:"12px 16px",color:"#8b949e",fontSize:"12px"},children:d===0?"No steps recorded":l.jsxs(l.Fragment,{children:[l.jsxs("span",{style:{color:I>0?"#3fb950":"#8b949e",fontWeight:I>0?"500":"normal"},children:[I," Passed"]}),l.jsx("span",{style:{margin:"0 4px"},children:"•"}),l.jsxs("span",{style:{color:p>0?"#f85149":"#8b949e",fontWeight:p>0?"500":"normal"},children:[p," Failed"]})]})})]},h.id)})})]}),c.length===0&&l.jsx("div",{style:{padding:"32px",textAlign:"center",color:"#8b949e"},children:"No runs match your search query."})]})]})},s1=()=>{const{testScenarios:e,activeTestFile:t,activeStepId:n,setActiveStepId:r,isRunning:o}=Je(),i=Array.from(new Set(e.map(p=>p.fileName))).filter(Boolean),[s,a]=b.useState(null),[c,u]=b.useState({}),y=b.useRef(null);b.useEffect(()=>{if(n){const p=setTimeout(()=>{const d=document.querySelector('[data-active-step="true"]');d&&d.scrollIntoView({behavior:"smooth",block:"nearest"})},60);return()=>clearTimeout(p)}},[n,t]),b.useEffect(()=>{t&&a(t)},[t]);const h=i.length;let x=0,m=0;i.forEach(p=>{const g=e.filter(v=>v.fileName===p).flatMap(v=>v.steps);g.length>0&&(g.some(v=>v.status==="failed")?m++:g.every(v=>["pass","passed","success"].includes(v.status))&&x++)});const _=p=>{a(s===p?null:p)},w=(p,d)=>{d.stopPropagation(),u(g=>({...g,[p]:!g[p]}))},I=(p,d=14)=>{switch(p){case"pass":case"passed":case"success":return l.jsx(_c,{size:d,color:"#34d399"});case"failed":return l.jsx(Vp,{size:d,color:"#f87171"});case"running":return l.jsx(Pr,{size:d,color:"#60a5fa",className:"animate-spin"});case"skipped":return l.jsx(td,{size:d,color:"#6e7681"});default:return l.jsx(td,{size:d,color:"#8b949e"})}};return l.jsxs("div",{style:{height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#0d1117",borderRight:"1px solid #30363d"},children:[l.jsxs("div",{style:{padding:"15px",borderBottom:"1px solid #30363d",flexShrink:0},children:[l.jsx("h2",{style:{fontSize:"12px",fontWeight:"bold",color:"#8b949e",margin:"0 0 12px 0"},children:"TEST FLOWS"}),l.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"8px",marginBottom:"12px"},children:[l.jsxs("div",{style:{backgroundColor:"#161b22",padding:"10px",borderRadius:"6px",border:"1px solid #30363d",textAlign:"center"},children:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#c9d1d9"},children:h}),l.jsx("div",{style:{fontSize:"10px",color:"#8b949e",marginTop:"2px"},children:"TOTAL"})]}),l.jsxs("div",{style:{backgroundColor:"rgba(52, 211, 153, 0.05)",padding:"10px",borderRadius:"6px",border:"1px solid rgba(52, 211, 153, 0.2)",textAlign:"center"},children:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#34d399"},children:x}),l.jsx("div",{style:{fontSize:"10px",color:"#34d399",marginTop:"2px"},children:"PASSED"})]}),l.jsxs("div",{style:{backgroundColor:"rgba(248, 113, 113, 0.05)",padding:"10px",borderRadius:"6px",border:"1px solid rgba(248, 113, 113, 0.2)",textAlign:"center"},children:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#f87171"},children:m}),l.jsx("div",{style:{fontSize:"10px",color:"#f87171",marginTop:"2px"},children:"FAILED"})]})]}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx(Sc,{size:14,style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:"#8b949e"}}),l.jsx("input",{placeholder:"Search flows...",style:{width:"100%",backgroundColor:"#05070a",border:"1px solid #30363d",color:"#c9d1d9",fontSize:"11px",padding:"6px 10px 6px 30px",borderRadius:"4px"}})]})]}),l.jsxs("div",{ref:y,style:{flex:1,overflowY:"auto",padding:"10px 0",scrollbarWidth:"thin"},children:[i.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."}),i.map(p=>{const d=s===p,g=e.filter(k=>k.fileName===p),v=g.flatMap(k=>k.steps);let R="pending";v.length>0?v.some(k=>k.status==="failed")?R="failed":v.some(k=>k.status==="running")?R="running":v.every(k=>["pass","passed","success"].includes(k.status))&&(R="pass"):g.some(k=>k.status==="running")&&(R="running");const j=[];let N=null;return v.forEach(k=>{const V=`${k.type}-${k.description||"Action"}`;!N||N.id!==V?(N={id:V,type:k.type,desc:k.description,status:k.status,steps:[k]},j.push(N)):N.steps.push(k)}),j.forEach(k=>{k.steps.some(V=>V.status==="failed")?k.status="failed":k.steps.some(V=>V.status==="running")?k.status="running":k.steps.every(V=>["pass","passed","success"].includes(V.status))?k.status="pass":k.status="pending"}),l.jsxs("div",{style:{borderBottom:"1px solid #21262d"},children:[l.jsxs("div",{onClick:()=>_(p),onMouseEnter:k=>k.currentTarget.style.backgroundColor="rgba(124, 58, 237, 0.05)",onMouseLeave:k=>k.currentTarget.style.backgroundColor=d?"rgba(124, 58, 237, 0.05)":"transparent",style:{display:"flex",alignItems:"center",padding:"12px 15px",cursor:"pointer",backgroundColor:d?"rgba(124, 58, 237, 0.05)":"transparent",transition:"background 0.2s"},children:[d?l.jsx(Dr,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}):l.jsx(Rn,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:I(R,16)}),l.jsx("span",{style:{marginLeft:"8px",fontSize:"13px",fontWeight:d?"bold":"600",color:d?"white":"#c9d1d9",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:p})]}),d&&l.jsx("div",{style:{backgroundColor:"#05070a",padding:"5px 0"},children:j.length>0?j.map(k=>{const V=c[k.id]!==!1;return l.jsxs("div",{children:[l.jsxs("div",{onClick:$=>w(k.id,$),onMouseEnter:$=>$.currentTarget.style.backgroundColor="#161b22",onMouseLeave:$=>$.currentTarget.style.backgroundColor="transparent",style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 35px",cursor:"pointer",borderLeft:"2px solid transparent",transition:"background-color 0.2s"},children:[V?l.jsx(Dr,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}):l.jsx(Rn,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:I(k.status,12)}),l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold",fontSize:"11px",marginLeft:"6px",flexShrink:0},children:k.type}),k.desc&&l.jsxs("span",{style:{color:"#c9d1d9",fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:"4px"},children:['- "',k.desc,'"']})]}),V&&l.jsx("div",{style:{paddingBottom:"8px"},children:k.steps.map($=>{const re=n===`${p}:::${$.id}`||o&&n===$.id&&t===p;return l.jsxs("div",{onClick:()=>r(`${p}:::${$.id}`),"data-flow-file":p,"data-step-id":$.id,"data-active-step":re?"true":"false",style:{display:"flex",alignItems:"center",padding:"6px 15px 6px 65px",opacity:$.status==="pending"?.5:1,cursor:"pointer",backgroundColor:re?"rgba(124, 58, 237, 0.15)":"transparent",borderLeft:re?"3px solid #a78bfa":"3px solid transparent",transition:"all 0.2s ease"},children:[l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:I($.status,10)}),l.jsx("span",{style:{color:re?"#fff":"#8b949e",fontWeight:re?"bold":"normal",fontFamily:"monospace",fontSize:"11px",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",marginLeft:"8px"},children:$.command})]},$.id)})})]},k.id)}):l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})})]},p)})]})]})},a1=({isRightPanelOpen:e,onToggleRightPanel:t})=>{const{isRunning:n,timer:r,startExecution:o,stopExecution:i,incrementTimer:s,activeTestFile:a,browserInfo:c}=Je();b.useEffect(()=>{let x;return n?x=setInterval(()=>{s()},1e3):clearInterval(x),()=>clearInterval(x)},[n,s]);const u=()=>{o(),sl("RERUN_REQ",{filePath:a})},y=()=>{i(),sl("STOP_REQ",{})},h=x=>{const m=Math.floor(x/60).toString().padStart(2,"0"),_=(x%60).toString().padStart(2,"0");return`00:${m}:${_}`};return l.jsxs("div",{style:{height:"50px",minHeight:"50px",borderBottom:"1px solid #30363d",display:"flex",alignItems:"center",padding:"0 20px",justifyContent:"space-between",backgroundColor:"#0d1117",flexShrink:0,zIndex:10},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[l.jsx("span",{style:{fontWeight:"bold",color:"#7c3aed",fontSize:"14px"},children:"Flowstride"}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#8b949e",fontSize:"12px"},children:[l.jsx("span",{children:"E2E"})," ",l.jsx(Rn,{size:12})," ",l.jsx("span",{style:{color:"white"},children:a})]}),c[a]&&l.jsxs("span",{"data-testid":"test-browser",title:`Verified engine: ${c[a].engine} ${c[a].version}`,style:{color:"#a78bfa",fontSize:"12px"},children:["Test browser: ",{chromium:"Chromium",firefox:"Firefox",webkit:"WebKit"}[c[a].engine]||c[a].engine," · ",c[a].headless?"Headless":"Headed"]}),(n||r>0)&&l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",padding:"4px 10px",backgroundColor:n?"rgba(34, 197, 94, 0.05)":"rgba(167, 139, 250, 0.05)",borderRadius:"20px",border:n?"1px solid rgba(34, 197, 94, 0.2)":"1px solid rgba(167, 139, 250, 0.2)"},children:[l.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:n?"#22c55e":"#a78bfa",borderRadius:"50%",boxShadow:n?"0 0 8px #22c55e":"0 0 8px #a78bfa"}}),l.jsx("span",{style:{fontSize:"11px",color:n?"#22c55e":"#a78bfa",fontWeight:"600"},children:n?"Running":"Complete"}),l.jsx("span",{style:{fontSize:"11px",color:"white",fontFamily:"monospace"},children:h(r)})]})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[l.jsx("button",{"aria-label":"Toggle execution details",onClick:t,style:{background:"none",border:"1px solid #30363d",color:e?"#a78bfa":"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer"},children:e?l.jsx(Zx,{size:16}):l.jsx(qx,{size:16})}),l.jsx("div",{style:{width:"1px",height:"20px",backgroundColor:"#30363d",margin:"0 5px"}}),n?l.jsxs("button",{onClick:y,style:{background:"none",border:"1px solid #30363d",color:"#f87171",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(oy,{size:14,fill:"currentColor"})," Stop"]}):l.jsxs("button",{onClick:u,style:{background:"none",border:"1px solid #30363d",color:"#22c55e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(Qp,{size:14,fill:"currentColor"})," Run"]}),l.jsxs("button",{onClick:u,style:{background:"none",border:"1px solid #30363d",color:"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(qp,{size:14})," Rerun"]})]})]})};function c1(){const{activeView:e}=Je(),[t,n]=b.useState(!0),[r,o]=b.useState(!1),i=()=>{switch(e){case"Workspace":return l.jsx(i1,{});case"Runs":return l.jsx(l1,{});case"Flows":return l.jsxs(l.Fragment,{children:[l.jsx("aside",{style:{width:t?"280px":"0px",transition:"width 0.2s ease",overflow:"hidden",backgroundColor:"#0d1117",borderRight:t?"1px solid #30363d":"none",flexShrink:0},children:l.jsx("div",{style:{width:"280px"},children:l.jsx(s1,{})})}),l.jsxs("main",{style:{flex:1,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[l.jsx(a1,{isRightPanelOpen:r,onToggleRightPanel:()=>o(!r)}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(my,{isRightPanelOpen:r})})]})]});case"Logs":return l.jsx(Ey,{});case"Reports":return l.jsx(vy,{});case"TestCase":return l.jsx(by,{});default:return l.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#0b0e14"},children:l.jsxs("h2",{style:{color:"#8b949e"},children:[e," (Under Construction)"]})})}};return l.jsxs("div",{style:{display:"flex",height:"100vh",width:"100vw",backgroundColor:"#0b0e14",color:"white",overflow:"hidden"},children:[l.jsx(gy,{isTestFlowsOpen:t,setTestFlowsOpen:n}),l.jsx("div",{style:{flex:1,display:"flex",height:"100vh",overflow:"hidden"},children:i()})]})}function u1(){const[e,t]=b.useState("Initialising Native Engine...");return b.useEffect(()=>(Zp(),(async()=>{try{await Jp();const r=Cy();t(`Secure Connection: ${r} | Core memory ready for Workspace allocation`),console.log("Native Engine Core Loaded Successfully")}catch(r){console.error("Failed to load native engine:",r),t("Security Alert: Failed to load Native Engine Core")}})(),()=>{Sy()}),[]),l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{backgroundColor:"#1e1e1e",color:"#00ff00",padding:"8px",textAlign:"center",fontFamily:"monospace"},children:e}),l.jsx(c1,{})]})}function d1(){const e="flowstride-isolated-engine-canvas",t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(!1),[i,s]=b.useState(!1),[a,c]=b.useState(xe.Design),[u,y]=b.useState("Hand"),[h,x]=b.useState(!1),[m,_]=b.useState(null),w=b.useRef(xe.Design),I=b.useRef("Hand"),p=b.useRef(1),d=b.useRef(1),[g,v]=b.useState(null),[R,j]=b.useState(null),N=b.useRef({x:0,y:0}),k=b.useRef({x:0,y:0}),V=b.useRef(!1),$=b.useRef(!1),re=b.useRef(!1),ae=b.useRef(!1),W=b.useRef(!1),oe=b.useRef(!1),ne=b.useRef({dx:0,dy:0,rafId:0}),he=b.useRef({x:0,y:0}),O=(z,T)=>{window.parent.postMessage({type:z,payload:T},window.location.origin)},F=z=>{if(!(!n.current||!document.getElementById(e))&&!o.current){o.current=!0;try{n.current.clear_canvas(),d.current=1;const T=Array.isArray(z.nodes)?z.nodes:[],G=Array.isArray(z.groups)?z.groups:[],Y=Array.isArray(z.texts)?z.texts:[],H=Array.isArray(z.connections)?z.connections:[];T.forEach(P=>{var ue;const le=[P.visual_step||String(P.id),P.title||"",P.description||"",P.steps||"",P.expected_result||"",P.references||"",P.defect_report||"",P.defect_media||"",P.assigned_to||"",P.priority||""].join("|||FLOWSTRIDE|||");(ue=n.current)==null||ue.restore_node_packed(P.id,P.x,P.y,P.width,P.height,le,!1);const Z=parseInt(P.visual_step,10);!isNaN(Z)&&Z>=d.current&&(d.current=Z+1)}),G.forEach(P=>{var le;(le=n.current)==null||le.restore_group(P.id,P.x,P.y,P.width,P.height,P.title||"",!1)}),Y.forEach(P=>{var le;(le=n.current)==null||le.restore_text(P.id,P.x,P.y,P.width,P.height,P.content||"",!1)}),H.forEach(P=>{var Z;const le=[P.start_anchor||"Center",P.end_anchor||"Center"].join("|||FLOWSTRIDE|||");(Z=n.current)==null||Z.restore_connection_packed(P.id,P.start_x,P.start_y,P.end_x,P.end_y,P.start_node_id||0,P.end_node_id||0,le,!1)}),T.length+G.length+Y.length>0?(n.current.recenter_view(),k.current.x=n.current.get_pan_offset_x(),k.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),k.current.x=0,k.current.y=0),n.current.render_diagnostic_grid(),console.log("[Flowstride Telemetry]: Blueprint securely restored to WebAssembly memory.")}catch(T){console.error("[Flowstride Telemetry Error]: Failed to safely inject parsed state",T)}finally{o.current=!1}}};b.useEffect(()=>(window.flowstrideEngineAPI={exportDesignState:()=>{if(!n.current||!document.getElementById(e))return console.warn("[Flowstride Telemetry]: Wasm engine missing. Cannot export state."),{nodes:[],groups:[],texts:[],connections:[]};try{return JSON.parse(n.current.export_design_state())}catch(z){throw console.error("[Flowstride Telemetry Error]: Failed to parse state from Wasm",z),z}},importDesignState:z=>{if(z=dg(z),!document.getElementById(e)){r.current=z;return}if(n.current)try{n.current.free()}catch{console.warn("[Flowstride Telemetry]: Bypassing poisoned Wasm lock during Hard Reset.")}const T=document.getElementById(e),G=Math.max(1,T.clientWidth),Y=Math.max(1,T.clientHeight);n.current=new al(e,G,Y),n.current.set_mode(w.current);const H=window.devicePixelRatio||1;n.current.update_dimensions(G,Y,H,p.current),F(z)},setMode:z=>{w.current=z,c(z),n.current&&document.getElementById(e)&&(n.current.set_mode(z),n.current.render_diagnostic_grid(),z!==xe.Execution&&j(null))},setTool:z=>{I.current=z,y(z)},setZoom:z=>{if(p.current=z,n.current&&document.getElementById(e)){const T=document.getElementById(e),G=Math.max(1,T.clientWidth),Y=Math.max(1,T.clientHeight),H=window.devicePixelRatio||1;n.current.update_dimensions(G,Y,H,p.current),n.current.render_diagnostic_grid()}},recenterView:()=>{var z,T,G;if(n.current&&document.getElementById(e))try{const Y=n.current.export_design_state(),H=JSON.parse(Y);(((z=H.nodes)==null?void 0:z.length)||0)+(((T=H.groups)==null?void 0:T.length)||0)+(((G=H.texts)==null?void 0:G.length)||0)>0?(n.current.recenter_view(),k.current.x=n.current.get_pan_offset_x(),k.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),k.current.x=0,k.current.y=0),n.current.render_diagnostic_grid()}catch(Y){console.error("[Flowstride Telemetry Error]: Failed to structurally recenter view safely.",Y)}},updateNodeData:(z,T,G,Y,H,J,P)=>{n.current&&document.getElementById(e)&&(n.current.update_node_data(z,T,G,Y,H,J,P),n.current.render_diagnostic_grid())},updateNodeDefectData:(z,T,G,Y)=>{if(n.current&&document.getElementById(e)){n.current.update_node_defect_data(z,T,G,Y);try{const H=n.current.get_execution_report(),J=JSON.parse(H);O("EXECUTION_REPORT_CHANGED",J)}catch(H){console.error("Security Alert: Failed to safely parse Wasm execution report after defect mutation",H)}}},updateGroupTitle:(z,T)=>{n.current&&document.getElementById(e)&&(n.current.update_group_title(z,T),n.current.render_diagnostic_grid())},updateTextContent:(z,T)=>{n.current&&document.getElementById(e)&&(n.current.update_text_content(z,T),n.current.render_diagnostic_grid())}},()=>{if(delete window.flowstrideEngineAPI,n.current){try{n.current.free()}catch{}n.current=null}}),[]),b.useEffect(()=>{let z=!0;return(async()=>{try{await Jp(),z&&s(!0)}catch(G){console.error("[Flowstride Telemetry Error]: Failed to allocate WebAssembly memory",G)}})(),()=>{z=!1}},[]),b.useEffect(()=>{if(!i)return;let z,T=null;const G=()=>{if(t.current&&n.current&&document.getElementById(e)){const H=Math.max(1,t.current.clientWidth),J=Math.max(1,t.current.clientHeight),P=window.devicePixelRatio||1;n.current.update_dimensions(H,J,P,p.current),n.current.render_diagnostic_grid()}},Y=()=>{const H=document.getElementById(e);if(!H){z=requestAnimationFrame(Y);return}if(!n.current){const J=Math.max(1,H.clientWidth),P=Math.max(1,H.clientHeight);n.current=new al(e,J,P),n.current.set_mode(w.current)}G(),r.current?(F(r.current),r.current=null):n.current&&n.current.render_diagnostic_grid(),O("ENGINE_READY"),T=new ResizeObserver(()=>{G()}),T.observe(H),window.addEventListener("resize",G)};return z=requestAnimationFrame(Y),()=>{cancelAnimationFrame(z),T&&T.disconnect(),window.removeEventListener("resize",G)}},[i]),b.useEffect(()=>{const z=T=>{var G;if(!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||(G=document.activeElement)!=null&&G.isContentEditable||!document.getElementById(e))){if(w.current===xe.Design){const Y=T.metaKey||T.ctrlKey,H=T.shiftKey,J=T.key.toLowerCase();if(Y&&J==="z"){T.preventDefault(),n.current&&(H?n.current.trigger_redo()&&n.current.render_diagnostic_grid():n.current.trigger_undo()&&n.current.render_diagnostic_grid());return}if(Y&&J==="y"){T.preventDefault(),n.current&&n.current.trigger_redo()&&n.current.render_diagnostic_grid();return}if(Y&&J==="c"){T.preventDefault(),n.current&&n.current.copy_to_clipboard();return}if(Y&&J==="v"){T.preventDefault(),n.current&&n.current.paste_from_clipboard()&&n.current.render_diagnostic_grid();return}if(Y&&J==="d"){T.preventDefault(),n.current&&n.current.duplicate_selected()&&n.current.render_diagnostic_grid();return}(T.key==="Backspace"||T.key==="Delete")&&n.current&&n.current.delete_selected_entities()&&(n.current.render_diagnostic_grid(),O("NODE_SELECTED",{id:null,title:"",description:""}),O("GROUP_SELECTED",{id:null,title:""}),O("TEXT_SELECTED",{id:null,content:""}))}else if(w.current===xe.Execution&&["Enter","Delete","Backspace","Tab","Escape"].includes(T.key)&&(T.preventDefault(),n.current)){let Y;if(T.key==="Enter"?Y=vi.Passed:T.key==="Delete"||T.key==="Backspace"?Y=vi.Failed:T.key==="Tab"?Y=vi.Blocked:T.key==="Escape"&&(Y=vi.Skipped),Y!==void 0){n.current.evaluate_current_step(Y)&&(n.current.render_diagnostic_grid(),j(null));try{const J=n.current.get_execution_report(),P=JSON.parse(J);O("EXECUTION_REPORT_CHANGED",P)}catch(J){console.error("Security Alert: Failed to safely parse Wasm report",J)}}}}};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z)}},[]),b.useEffect(()=>{const z=t.current;if(!z)return;const T=G=>{if(G.preventDefault(),!document.getElementById(e))return;const Y=p.current;k.current.x-=G.deltaX/Y,k.current.y-=G.deltaY/Y,n.current&&(n.current.set_pan_offset(k.current.x,k.current.y),n.current.render_diagnostic_grid())};return z.addEventListener("wheel",T,{passive:!1}),()=>{z.removeEventListener("wheel",T)}},[]);const A=(z,T)=>{if(T.trim()!==""&&n.current&&document.getElementById(e)&&n.current.update_node_visual_step(z,T.trim())){n.current.render_diagnostic_grid();const Y=n.current.get_node_title(z),H=n.current.get_node_description(z),J=n.current.get_node_visual_step(z),P=n.current.get_node_steps(z),le=n.current.get_node_expected_result(z),Z=n.current.get_node_references(z),ue=n.current.get_node_priority(z);O("NODE_SELECTED",{id:z,title:Y,description:H,visualStep:J,stepsContent:P,expectedResult:le,references:Z,priority:ue});const ge=parseInt(T.trim(),10);isNaN(ge)||(d.current=ge+1)}v(null)},E=()=>{ne.current.rafId&&(cancelAnimationFrame(ne.current.rafId),ne.current.rafId=0),ne.current.dx=0,ne.current.dy=0},D=()=>{if(!n.current||!document.getElementById(e)||ne.current.dx===0&&ne.current.dy===0){ne.current.rafId=0;return}const z=p.current;k.current.x-=ne.current.dx/z,k.current.y-=ne.current.dy/z,n.current.set_pan_offset(k.current.x,k.current.y);const T=he.current.x,G=he.current.y;re.current?n.current.update_group_draw(T,G):V.current?n.current.update_connection_cursor(T,G):$.current?n.current.update_node_drag(T,G):ae.current?n.current.update_group_drag(T,G):W.current?n.current.update_text_drag(T,G):oe.current&&n.current.update_text_resize(T,G),n.current.render_diagnostic_grid(),ne.current.rafId=requestAnimationFrame(D)},L=z=>{if(!n.current||!t.current||!document.getElementById(e))return;const T=t.current.getBoundingClientRect(),G=z.clientX-T.left,Y=z.clientY-T.top,H=p.current,J=G/H,P=Y/H;if(w.current===xe.Execution){const le=J-k.current.x,Z=P-k.current.y;try{const ue=n.current.get_active_execution_hover_data(le,Z);if(ue){const ge=JSON.parse(ue);j({x:ge.x,y:ge.y,width:ge.width,height:ge.height,stepsHtml:ge.steps})}else R&&j(null)}catch{R&&j(null)}return}if(w.current===xe.Design){if(z.currentTarget.setPointerCapture(z.pointerId),E(),g&&v(null),he.current={x:J,y:P},n.current.check_group_delete_click(J,P)){n.current.render_diagnostic_grid();return}if(I.current==="Hand")x(!0),N.current={x:z.clientX-k.current.x*H,y:z.clientY-k.current.y*H};else if(I.current==="Group")n.current.begin_group_draw(J,P)&&(re.current=!0,n.current.render_diagnostic_grid());else if(I.current==="Arrow")n.current.begin_connection(J,P)&&(V.current=!0,n.current.render_diagnostic_grid());else if(I.current==="Select"){const le=n.current.check_node_menu_click(J,P);if(le>0){const ue=n.current.get_node_visual_step(le);v({nodeId:le,x:G,y:Y,value:ue});return}if(n.current.begin_text_resize(J,P)){oe.current=!0,n.current.render_diagnostic_grid();return}const Z=n.current.begin_node_drag(J,P);if(Z>0){$.current=!0;const ue=n.current.get_node_title(Z),ge=n.current.get_node_description(Z),Pe=n.current.get_node_visual_step(Z),Vt=n.current.get_node_steps(Z),Wr=n.current.get_node_expected_result(Z),$o=n.current.get_node_references(Z),Ho=n.current.get_node_priority(Z);O("NODE_SELECTED",{id:Z,title:ue,description:ge,visualStep:Pe,stepsContent:Vt,expectedResult:Wr,references:$o,priority:Ho})}else{const ue=n.current.begin_group_drag(J,P);if(ue>0){ae.current=!0;const ge=n.current.get_group_title(ue);O("GROUP_SELECTED",{id:ue,title:ge})}else{const ge=n.current.begin_text_drag(J,P);if(ge>0){W.current=!0;const Pe=n.current.get_text_content(ge);O("TEXT_SELECTED",{id:ge,content:Pe})}else O("NODE_SELECTED",{id:null,title:"",description:""}),O("GROUP_SELECTED",{id:null,title:""}),O("TEXT_SELECTED",{id:null,content:""})}}n.current.render_diagnostic_grid()}}},Q=z=>{if(w.current!==xe.Design||!n.current||!t.current||!document.getElementById(e))return;const T=t.current.getBoundingClientRect(),G=z.clientX-T.left,Y=z.clientY-T.top,H=p.current,J=G/H,P=Y/H;if(he.current={x:J,y:P},h){const le=(z.clientX-N.current.x)/H,Z=(z.clientY-N.current.y)/H;k.current={x:le,y:Z},n.current.set_pan_offset(le,Z),n.current.render_diagnostic_grid()}else if(I.current==="Select"&&!h&&!re.current&&!V.current&&!$.current&&!ae.current&&!W.current&&!oe.current&&n.current.check_text_resize_handle(J,P)>0?m!=="ew-resize"&&_("ew-resize"):m!==null&&_(null),oe.current&&I.current==="Select"?(n.current.update_text_resize(J,P),n.current.render_diagnostic_grid()):re.current&&I.current==="Group"?(n.current.update_group_draw(J,P),n.current.render_diagnostic_grid()):V.current&&I.current==="Arrow"?(n.current.update_connection_cursor(J,P),n.current.render_diagnostic_grid()):$.current&&I.current==="Select"?(n.current.update_node_drag(J,P),n.current.render_diagnostic_grid()):ae.current&&I.current==="Select"?(n.current.update_group_drag(J,P),n.current.render_diagnostic_grid()):W.current&&I.current==="Select"&&(n.current.update_text_drag(J,P),n.current.render_diagnostic_grid()),re.current||V.current||$.current||ae.current||W.current||oe.current){let ue=0,ge=0;G<40?ue=-12*(1-Math.max(0,G)/40):G>T.width-40&&(ue=12*(1-Math.max(0,T.width-G)/40)),Y<40?ge=-12*(1-Math.max(0,Y)/40):Y>T.height-40&&(ge=12*(1-Math.max(0,T.height-Y)/40)),ne.current.dx=ue,ne.current.dy=ge,(ue!==0||ge!==0)&&!ne.current.rafId?ne.current.rafId=requestAnimationFrame(D):ue===0&&ge===0&&ne.current.rafId&&E()}},ee=z=>{var le;z.currentTarget.hasPointerCapture(z.pointerId)&&z.currentTarget.releasePointerCapture(z.pointerId),E(),h&&x(!1);const T=(le=t.current)==null?void 0:le.getBoundingClientRect();if(!T||!n.current||!document.getElementById(e))return;const G=z.clientX-T.left,Y=z.clientY-T.top,H=p.current,J=G/H,P=Y/H;oe.current&&I.current==="Select"&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),oe.current=!1),re.current&&I.current==="Group"&&(n.current.complete_group_draw(J,P,"NEW TEST GROUP"),n.current.render_diagnostic_grid(),re.current=!1),V.current&&I.current==="Arrow"&&(n.current.complete_connection(J,P),n.current.render_diagnostic_grid(),V.current=!1),$.current&&I.current==="Select"&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),$.current=!1),ae.current&&I.current==="Select"&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),W.current&&I.current==="Select"&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),W.current=!1)},ve=z=>{z.currentTarget.hasPointerCapture(z.pointerId)&&z.currentTarget.releasePointerCapture(z.pointerId),E(),x(!1),!(!n.current||!document.getElementById(e))&&(oe.current&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),oe.current=!1),re.current&&(n.current.cancel_group_draw(),n.current.render_diagnostic_grid(),re.current=!1),V.current&&(n.current.cancel_connection(),n.current.render_diagnostic_grid(),V.current=!1),$.current&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),$.current=!1),ae.current&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),W.current&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),W.current=!1))},ie=z=>{if(w.current===xe.Design&&n.current&&t.current&&document.getElementById(e)){const T=t.current.getBoundingClientRect(),G=z.clientX-T.left,Y=z.clientY-T.top,H=p.current,J=G/H,P=Y/H,le=J-k.current.x,Z=P-k.current.y;if(I.current==="Step"){const ue="New Step",ge="Enter description here",Pe=d.current.toString(),Vt=n.current.add_node(le,Z,Pe,ue,ge,!0);d.current+=1,n.current.render_diagnostic_grid(),O("NODE_SELECTED",{id:Vt,title:ue,description:ge,visualStep:Pe,stepsContent:"",expectedResult:"",references:"",priority:""})}else if(I.current==="Text"){const ue="New Text Block",ge=n.current.add_text(le,Z,ue,!0);n.current.render_diagnostic_grid(),O("TEXT_SELECTED",{id:ge,content:ue}),O("TOOL_CHANGED","Select")}}},de=()=>a===xe.Execution?"pointer":oe.current?"ew-resize":m||(u==="Step"||u==="Group"?"crosshair":u==="Text"?"text":u==="Select"?$.current||ae.current||W.current?"grabbing":"pointer":u==="Hand"?h?"grabbing":"grab":u==="Arrow"?"crosshair":"default");return l.jsxs("main",{style:{flex:1,width:"100vw",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f8f9fa",overflow:"hidden",position:"relative",outline:"none",margin:0,padding:0},tabIndex:-1,children:[l.jsx("style",{children:`
|
|
618
|
+
body { margin: 0; padding: 0; overflow: hidden; }
|
|
619
|
+
.flowstride-tooltip-fade-in {
|
|
620
|
+
animation: flowstride-tooltip-fade-in-anim 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
621
|
+
}
|
|
622
|
+
@keyframes flowstride-tooltip-fade-in-anim {
|
|
623
|
+
0% { opacity: 0; transform: translateY(5px) scale(0.98); }
|
|
624
|
+
100% { opacity: 1; transform: translateY(0) scale(1); }
|
|
625
|
+
}
|
|
626
|
+
.rich-text-preview font[size="1"] { font-size: 10px; }
|
|
627
|
+
.rich-text-preview font[size="3"] { font-size: 13px; }
|
|
628
|
+
.rich-text-preview font[size="4"] { font-size: 18px; }
|
|
629
|
+
.rich-text-preview font[size="5"] { font-size: 24px; }
|
|
630
|
+
.rich-text-preview li:has(font[size="1"]) { font-size: 10px; }
|
|
631
|
+
.rich-text-preview li:has(font[size="3"]) { font-size: 13px; }
|
|
632
|
+
.rich-text-preview li:has(font[size="4"]) { font-size: 18px; }
|
|
633
|
+
.rich-text-preview li:has(font[size="5"]) { font-size: 24px; }
|
|
634
|
+
.rich-text-preview ul, .rich-text-preview ol { padding-left: 20px; margin: 4px 0; }
|
|
635
|
+
.rich-text-preview p { margin: 0 0 4px 0; }
|
|
636
|
+
`}),l.jsx("canvas",{id:e,ref:t,onClick:ie,onPointerDown:L,onPointerMove:Q,onPointerUp:ee,onPointerCancel:ve,style:{width:"100%",height:"100%",display:"block",cursor:de(),touchAction:"none"}}),R&&l.jsxs("div",{className:"flowstride-tooltip-fade-in",style:{position:"absolute",left:(R.x+k.current.x)*p.current+R.width*p.current+24,top:(R.y+k.current.y)*p.current,backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"8px",padding:"16px",width:"320px",maxHeight:"400px",overflowY:"auto",boxShadow:"0 12px 36px rgba(0,0,0,0.18)",zIndex:50,pointerEvents:"auto"},children:[l.jsx("h4",{style:{margin:"0 0 10px 0",fontSize:"11px",color:"#57606a",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Execution Test Steps"}),l.jsx("div",{className:"rich-text-preview",dangerouslySetInnerHTML:{__html:ug.sanitize(R.stepsHtml,{ALLOWED_TAGS:["b","i","em","strong","a","ul","ol","li","br","div","p","font"],ALLOWED_ATTR:["href","target","rel","size"]})},style:{fontSize:"13px",color:"#24292f",lineHeight:"1.5"}})]}),g&&l.jsxs("div",{style:{position:"absolute",left:g.x,top:g.y,backgroundColor:"#ffffff",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",borderRadius:"6px",padding:"8px",display:"flex",flexDirection:"column",gap:"6px",zIndex:10,border:"1px solid #d0d7de"},onClick:z=>z.stopPropagation(),children:[l.jsx("label",{style:{fontSize:"10px",fontWeight:"bold",color:"#57606a",letterSpacing:"0.5px"},children:"OVERRIDE LABEL"}),l.jsx("input",{autoFocus:!0,type:"text",value:g.value,onChange:z=>v({...g,value:z.target.value}),onKeyDown:z=>{z.key==="Enter"&&A(g.nodeId,g.value),z.key==="Escape"&&v(null)},style:{width:"120px",padding:"6px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",fontSize:"13px",color:"#24292f"}})]})]})}const Sd=Es.createRoot(document.getElementById("root"));window.location.search.includes("frame=engine")?Sd.render(l.jsx(d1,{})):Sd.render(l.jsx(u1,{}));
|