flowstride 1.0.20-rc.2 → 1.0.20
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_CI.md +88 -145
- package/README.md +46 -221
- package/dist/adapters/web/playwright.d.ts +4 -1
- package/dist/adapters/web/playwright.js +75 -6
- package/dist/ci/config.js +6 -5
- package/dist/ci/runtime.js +27 -14
- package/dist/cli/commands/run.js +2 -1
- package/dist/cli/index.js +35 -50
- package/dist/cli/manual_server/workspace_server.js +44 -32
- package/dist/cli/utils/cloudSession.d.ts +7 -0
- package/dist/cli/utils/cloudSession.js +37 -0
- package/dist/cli/utils/proInstaller.d.ts +5 -0
- package/dist/cli/utils/proInstaller.js +141 -0
- package/dist/game/sdk.js +3 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -0
- package/dist/manual/security.d.ts +183 -0
- package/dist/manual/security.js +106 -0
- package/dist/runner/data_generators.d.ts +1 -0
- package/dist/runner/data_generators.js +3 -0
- package/dist/runner/dom_stripper.js +3 -0
- package/dist/runner/flow_orchestrator.js +13 -22
- package/dist/runner/flow_worker.d.ts +1 -0
- package/dist/runner/flow_worker.js +68 -47
- package/dist/runner/persistent_vault.js +2 -1
- package/dist/runner/plugin_manager.js +3 -1
- package/dist/security/localDashboard.d.ts +2 -0
- package/dist/security/localDashboard.js +22 -0
- package/dist/security/redaction.d.ts +4 -0
- package/dist/security/redaction.js +51 -0
- package/dist/sessions/manager.js +3 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/utils/cloud.d.ts +6 -0
- package/dist/utils/cloud.js +33 -0
- package/dist/utils/projectPaths.d.ts +11 -0
- package/dist/utils/projectPaths.js +90 -0
- package/dist/utils/replayRequest.d.ts +8 -0
- package/dist/utils/replayRequest.js +77 -0
- package/package.json +23 -14
- package/src/ui/dist/assets/index-B7MuBTWm.js +460 -0
- package/src/ui/dist/index.html +1 -1
- package/RELEASE_NOTES.md +0 -40
- package/src/ui/dist/assets/index-DIC22ZK_.js +0 -638
|
@@ -1,638 +0,0 @@
|
|
|
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 vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _d={exports:{}},ul={},wd={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"),kg=Symbol.for("react.portal"),bg=Symbol.for("react.fragment"),Eg=Symbol.for("react.strict_mode"),Cg=Symbol.for("react.profiler"),jg=Symbol.for("react.provider"),Tg=Symbol.for("react.context"),Rg=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),Ig=Symbol.for("react.memo"),Lg=Symbol.for("react.lazy"),Fc=Symbol.iterator;function Ag(e){return e===null||typeof e!="object"?null:(e=Fc&&e[Fc]||e["@@iterator"],typeof e=="function"?e:null)}var Sd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kd=Object.assign,bd={};function Or(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Sd}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 Ed(){}Ed.prototype=Or.prototype;function Sa(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Sd}var ka=Sa.prototype=new Ed;ka.constructor=Sa;kd(ka,Or.prototype);ka.isPureReactComponent=!0;var Wc=Array.isArray,Cd=Object.prototype.hasOwnProperty,ba={current:null},jd={key:!0,ref:!0,__self:!0,__source:!0};function Td(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)Cd.call(t,r)&&!jd.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),d=0;d<a;d++)c[d]=arguments[d+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:ba.current}}function Ng(e,t){return{$$typeof:Oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ea(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oo}function Dg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bc=/\/+/g;function Ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dg(""+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 kg:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ul(s,0):r,Wc(o)?(n="",e!=null&&(n=e.replace(Bc,"$&/")+"/"),Si(o,t,n,"",function(d){return d})):o!=null&&(Ea(o)&&(o=Ng(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Bc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Wc(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=Ag(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 Pg(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},ki={transition:null},Og={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:ki,ReactCurrentOwner:ba};function Rd(){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(!Ea(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Or;ce.Fragment=bg;ce.Profiler=Cg;ce.PureComponent=Sa;ce.StrictMode=Eg;ce.Suspense=zg;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Og;ce.act=Rd;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=kd({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ba.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Cd.call(t,c)&&!jd.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 d=0;d<c;d++)a[d]=arguments[d+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:Tg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jg,_context:e},e.Consumer=e};ce.createElement=Td;ce.createFactory=function(e){var t=Td.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:Rg,render:e}};ce.isValidElement=Ea;ce.lazy=function(e){return{$$typeof:Lg,_payload:{_status:-1,_result:e},_init:Pg}};ce.memo=function(e,t){return{$$typeof:Ig,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=ki.transition;ki.transition={};try{e()}finally{ki.transition=t}};ce.unstable_act=Rd;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";wd.exports=ce;var k=wd.exports;const Mg=vd(k);/**
|
|
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 Fg=k,Wg=Symbol.for("react.element"),Bg=Symbol.for("react.fragment"),Ug=Object.prototype.hasOwnProperty,$g=Fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hg={key:!0,ref:!0,__self:!0,__source:!0};function zd(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)Ug.call(t,r)&&!Hg.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:Wg,type:e,key:i,ref:s,props:o,_owner:$g.current}}ul.Fragment=Bg;ul.jsx=zd;ul.jsxs=zd;_d.exports=ul;var l=_d.exports,Es={},Id={exports:{}},_t={},Ld={exports:{}},Ad={};/**
|
|
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,L){var b=F.length;F.push(L);e:for(;0<b;){var A=b-1>>>1,R=F[A];if(0<o(R,L))F[A]=L,F[b]=R,b=A;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var L=F[0],b=F.pop();if(b!==L){F[0]=b;e:for(var A=0,R=F.length,Q=R>>>1;A<Q;){var ee=2*(A+1)-1,ve=F[ee],ie=ee+1,de=F[ie];if(0>o(ve,b))ie<R&&0>o(de,ve)?(F[A]=de,F[ie]=b,A=ie):(F[A]=ve,F[ee]=b,A=ee);else if(ie<R&&0>o(de,b))F[A]=de,F[ie]=b,A=ie;else break e}}return L}function o(F,L){var b=F.sortIndex-L.sortIndex;return b!==0?b:F.id-L.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=[],d=[],m=1,h=null,x=3,y=!1,_=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,u=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 L=n(d);L!==null;){if(L.callback===null)r(d);else if(L.startTime<=F)r(d),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(d)}}function v(F){if(w=!1,g(F),!_)if(n(c)!==null)_=!0,he(z);else{var L=n(d);L!==null&&P(v,L.startTime-F)}}function z(F,L){_=!1,w&&(w=!1,p(E),E=-1),y=!0;var b=x;try{for(g(L),h=n(c);h!==null&&(!(h.expirationTime>L)||F&&!re());){var A=h.callback;if(typeof A=="function"){h.callback=null,x=h.priorityLevel;var R=A(h.expirationTime<=L);L=e.unstable_now(),typeof R=="function"?h.callback=R:h===n(c)&&r(c),g(L)}else r(c);h=n(c)}if(h!==null)var Q=!0;else{var ee=n(d);ee!==null&&P(v,ee.startTime-L),Q=!1}return Q}finally{h=null,x=b,y=!1}}var D=!1,O=null,E=-1,V=5,H=-1;function re(){return!(e.unstable_now()-H<V)}function ae(){if(O!==null){var F=e.unstable_now();H=F;var L=!0;try{L=O(!0,F)}finally{L?B():(D=!1,O=null)}}else D=!1}var B;if(typeof u=="function")B=function(){u(ae)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ne=oe.port2;oe.port1.onmessage=ae,B=function(){ne.postMessage(null)}}else B=function(){T(ae,0)};function he(F){O=F,D||(D=!0,B())}function P(F,L){E=T(function(){F(e.unstable_now())},L)}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(){_||y||(_=!0,he(z))},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 L=3;break;default:L=x}var b=x;x=L;try{return F()}finally{x=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,L){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var b=x;x=F;try{return L()}finally{x=b}},e.unstable_scheduleCallback=function(F,L,b){var A=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?A+b:A):b=A,F){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=b+R,F={id:m++,callback:L,priorityLevel:F,startTime:b,expirationTime:R,sortIndex:-1},b>A?(F.sortIndex=b,t(d,F),n(c)===null&&F===n(d)&&(w?(p(E),E=-1):w=!0,P(v,b-A))):(F.sortIndex=R,t(c,F),_||y||(_=!0,he(z))),F},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(F){var L=x;return function(){var b=x;x=L;try{return F.apply(this,arguments)}finally{x=b}}}})(Ad);Ld.exports=Ad;var Vg=Ld.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 Gg=k,vt=Vg;function W(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 Nd=new Set,_o={};function Kn(e,t){jr(e,t),jr(e+"Capture",t)}function jr(e,t){for(_o[e]=t,e=0;e<t.length;e++)Nd.add(t[e])}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,Yg=/^[: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]*$/,Uc={},$c={};function Xg(e){return Cs.call($c,e)?!0:Cs.call(Uc,e)?!1:Yg.test(e)?$c[e]=!0:(Uc[e]=!0,!1)}function Qg(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 Kg(e,t,n,r){if(t===null||typeof t>"u"||Qg(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 Ca=/[\-:]([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(Ca,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(Ca,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(Ca,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 Ta(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")&&(Kg(t,n,o,r)&&(n=null),r||o===null?Xg(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=Gg.__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"),Ra=Symbol.for("react.strict_mode"),js=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),Pd=Symbol.for("react.context"),za=Symbol.for("react.forward_ref"),Ts=Symbol.for("react.suspense"),Rs=Symbol.for("react.suspense_list"),Ia=Symbol.for("react.memo"),dn=Symbol.for("react.lazy"),Od=Symbol.for("react.offscreen"),Hc=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=Hc&&e[Hc]||e["@@iterator"],typeof e=="function"?e:null)}var ze=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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.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 Zg(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 zs(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 js:return"Profiler";case Ra:return"StrictMode";case Ts:return"Suspense";case Rs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pd:return(e.displayName||"Context")+".Consumer";case Dd: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 Ia:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function qg(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 zs(t);case 8:return t===Ra?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Md(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jg(e){var t=Md(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=Jg(e))}function Fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Md(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 Is(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(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 Wd(e,t){t=t.checked,t!=null&&Ta(e,"checked",t,!1)}function Ls(e,t){Wd(e,t);var n=jn(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,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gc(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=""+jn(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(W(91));return ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(no(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function Bd(e,t){var n=jn(t.value),r=jn(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 Xc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ud(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"?Ud(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,$d=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},eh=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(e){eh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ao[t]=ao[e]})});function Hd(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 Vd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Hd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var th=ze({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(th[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(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 La(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 Qc(e){if(e=Wo(e)){if(typeof Fs!="function")throw Error(W(280));var t=e.stateNode;t&&(t=hl(t),Fs(e.stateNode,e.type,t))}}function Gd(e){wr?Sr?Sr.push(e):Sr=[e]:wr=e}function Yd(){if(wr){var e=wr,t=Sr;if(Sr=wr=null,Qc(e),t)for(e=0;e<t.length;e++)Qc(t[e])}}function Xd(e,t){return e(t)}function Qd(){}var Gl=!1;function Kd(e,t,n){if(Gl)return e(t,n);Gl=!0;try{return Xd(e,t,n)}finally{Gl=!1,(wr!==null||Sr!==null)&&(Qd(),Yd())}}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(W(231,t,typeof n));return n}var Ws=!1;if(Zt)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 nh(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var co=!1,Mi=null,Fi=!1,Bs=null,rh={onError:function(e){co=!0,Mi=e}};function oh(e,t,n,r,o,i,s,a,c){co=!1,Mi=null,nh.apply(rh,arguments)}function ih(e,t,n,r,o,i,s,a,c){if(oh.apply(this,arguments),co){if(co){var d=Mi;co=!1,Mi=null}else throw Error(W(198));Fi||(Fi=!0,Bs=d)}}function Zn(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 Zd(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 Kc(e){if(Zn(e)!==e)throw Error(W(188))}function lh(e){var t=e.alternate;if(!t){if(t=Zn(e),t===null)throw Error(W(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 Kc(o),e;if(i===r)return Kc(o),t;i=i.sibling}throw Error(W(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(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function qd(e){return e=lh(e),e!==null?Jd(e):null}function Jd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jd(e);if(t!==null)return t;e=e.sibling}return null}var ef=vt.unstable_scheduleCallback,Zc=vt.unstable_cancelCallback,sh=vt.unstable_shouldYield,ah=vt.unstable_requestPaint,Ae=vt.unstable_now,ch=vt.unstable_getCurrentPriorityLevel,Aa=vt.unstable_ImmediatePriority,tf=vt.unstable_UserBlockingPriority,Wi=vt.unstable_NormalPriority,uh=vt.unstable_LowPriority,nf=vt.unstable_IdlePriority,dl=null,$t=null;function dh(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:gh,fh=Math.log,ph=Math.LN2;function gh(e){return e>>>=0,e===0?32:31-(fh(e)/ph|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 hh(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 xh(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]=hh(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 rf(){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 mh(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 Na(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 me=0;function of(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lf,Da,sf,af,cf,$s=!1,ai=[],vn=null,_n=null,wn=null,ko=new Map,bo=new Map,pn=[],yh="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 qc(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":ko.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.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&&Da(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function vh(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 ko.set(i,Gr(ko.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,bo.set(i,Gr(bo.get(i)||null,e,t,n,r,o)),!0}return!1}function uf(e){var t=Wn(e.target);if(t!==null){var n=Zn(t);if(n!==null){if(t=n.tag,t===13){if(t=Zd(n),t!==null){e.blockedOn=t,cf(e.priority,function(){sf(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 bi(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&&Da(t),e.blockedOn=n,!1;t.shift()}return!0}function Jc(e,t,n){bi(e)&&n.delete(t)}function _h(){$s=!1,vn!==null&&bi(vn)&&(vn=null),_n!==null&&bi(_n)&&(_n=null),wn!==null&&bi(wn)&&(wn=null),ko.forEach(Jc),bo.forEach(Jc)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,$s||($s=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,_h)))}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),ko.forEach(t),bo.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);)uf(n),n.blockedOn===null&&pn.shift()}var kr=nn.ReactCurrentBatchConfig,Ui=!0;function wh(e,t,n,r){var o=me,i=kr.transition;kr.transition=null;try{me=1,Pa(e,t,n,r)}finally{me=o,kr.transition=i}}function Sh(e,t,n,r){var o=me,i=kr.transition;kr.transition=null;try{me=4,Pa(e,t,n,r)}finally{me=o,kr.transition=i}}function Pa(e,t,n,r){if(Ui){var o=Hs(e,t,n,r);if(o===null)rs(e,t,r,$i,n),qc(e,r);else if(vh(o,e,t,n,r))r.stopPropagation();else if(qc(e,r),t&4&&-1<yh.indexOf(e)){for(;o!==null;){var i=Wo(o);if(i!==null&&lf(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=La(r),e=Wn(e),e!==null)if(t=Zn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zd(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 df(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(ch()){case Aa:return 1;case tf:return 4;case Wi:case uh:return 16;case nf:return 536870912;default:return 16}default:return 16}}var mn=null,Oa=null,Ei=null;function ff(){if(Ei)return Ei;var e,t=Oa,n=t.length,r,o="value"in mn?mn.value:mn.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 eu(){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:eu,this.isPropagationStopped=eu,this}return ze(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},Ma=wt(Mr),Fo=ze({},Mr,{view:0,detail:0}),kh=wt(Fo),Xl,Ql,Xr,fl=ze({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fa,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}}),tu=wt(fl),bh=ze({},fl,{dataTransfer:0}),Eh=wt(bh),Ch=ze({},Fo,{relatedTarget:0}),Kl=wt(Ch),jh=ze({},Mr,{animationName:0,elapsedTime:0,pseudoElement:0}),Th=wt(jh),Rh=ze({},Mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zh=wt(Rh),Ih=ze({},Mr,{data:0}),nu=wt(Ih),Lh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ah={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"},Nh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nh[e])?!!t[e]:!1}function Fa(){return Dh}var Ph=ze({},Fo,{key:function(e){if(e.key){var t=Lh[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"?Ah[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fa,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}}),Oh=wt(Ph),Mh=ze({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ru=wt(Mh),Fh=ze({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa}),Wh=wt(Fh),Bh=ze({},Mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uh=wt(Bh),$h=ze({},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}),Hh=wt($h),Vh=[9,13,27,32],Wa=Zt&&"CompositionEvent"in window,uo=null;Zt&&"documentMode"in document&&(uo=document.documentMode);var Gh=Zt&&"TextEvent"in window&&!uo,pf=Zt&&(!Wa||uo&&8<uo&&11>=uo),ou=" ",iu=!1;function gf(e,t){switch(e){case"keyup":return Vh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function Yh(e,t){switch(e){case"compositionend":return hf(t);case"keypress":return t.which!==32?null:(iu=!0,ou);case"textInput":return e=t.data,e===ou&&iu?null:e;default:return null}}function Xh(e,t){if(ur)return e==="compositionend"||!Wa&&gf(e,t)?(e=ff(),Ei=Oa=mn=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 pf&&t.locale!=="ko"?null:t.data;default:return null}}var Qh={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 lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qh[e.type]:t==="textarea"}function xf(e,t,n,r){Gd(r),t=Hi(t,"onChange"),0<t.length&&(n=new Ma("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fo=null,Co=null;function Kh(e){jf(e,0)}function pl(e){var t=pr(e);if(Fd(t))return e}function Zh(e,t){if(e==="change")return t}var mf=!1;if(Zt){var Zl;if(Zt){var ql="oninput"in document;if(!ql){var su=document.createElement("div");su.setAttribute("oninput","return;"),ql=typeof su.oninput=="function"}Zl=ql}else Zl=!1;mf=Zl&&(!document.documentMode||9<document.documentMode)}function au(){fo&&(fo.detachEvent("onpropertychange",yf),Co=fo=null)}function yf(e){if(e.propertyName==="value"&&pl(Co)){var t=[];xf(t,Co,e,La(e)),Kd(Kh,t)}}function qh(e,t,n){e==="focusin"?(au(),fo=t,Co=n,fo.attachEvent("onpropertychange",yf)):e==="focusout"&&au()}function Jh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Co)}function e0(e,t){if(e==="click")return pl(t)}function t0(e,t){if(e==="input"||e==="change")return pl(t)}function n0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:n0;function jo(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 cu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uu(e,t){var n=cu(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=cu(n)}}function vf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(){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 Ba(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 r0(e){var t=_f(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vf(n.ownerDocument.documentElement,n)){if(r!==null&&Ba(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=uu(n,i);var s=uu(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 o0=Zt&&"documentMode"in document&&11>=document.documentMode,dr=null,Vs=null,po=null,Gs=!1;function du(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&&Ba(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&&jo(po,r)||(po=r,r=Hi(Vs,"onSelect"),0<r.length&&(t=new Ma("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={},wf={};Zt&&(wf=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 wf)return Jl[e]=t[n];return e}var Sf=gl("animationend"),kf=gl("animationiteration"),bf=gl("animationstart"),Ef=gl("transitionend"),Cf=new Map,fu="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 zn(e,t){Cf.set(e,t),Kn(t,[e])}for(var es=0;es<fu.length;es++){var ts=fu[es],i0=ts.toLowerCase(),l0=ts[0].toUpperCase()+ts.slice(1);zn(i0,"on"+l0)}zn(Sf,"onAnimationEnd");zn(kf,"onAnimationIteration");zn(bf,"onAnimationStart");zn("dblclick","onDoubleClick");zn("focusin","onFocus");zn("focusout","onBlur");zn(Ef,"onTransitionEnd");jr("onMouseEnter",["mouseout","mouseover"]);jr("onMouseLeave",["mouseout","mouseover"]);jr("onPointerEnter",["pointerout","pointerover"]);jr("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(" "),s0=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function pu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ih(r,t,void 0,e),e.currentTarget=null}function jf(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,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;pu(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;pu(o,a,d),i=c}}}if(Fi)throw e=Bs,Fi=!1,Bs=null,e}function Se(e,t){var n=t[Zs];n===void 0&&(n=t[Zs]=new Set);var r=e+"__bubble";n.has(r)||(Tf(t,e,2,!1),n.add(r))}function ns(e,t,n){var r=0;t&&(r|=4),Tf(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[di]){e[di]=!0,Nd.forEach(function(n){n!=="selectionchange"&&(s0.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 Tf(e,t,n,r){switch(df(t)){case 1:var o=wh;break;case 4:o=Sh;break;default:o=Pa}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}Kd(function(){var d=i,m=La(n),h=[];e:{var x=Cf.get(e);if(x!==void 0){var y=Ma,_=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":y=Oh;break;case"focusin":_="focus",y=Kl;break;case"focusout":_="blur",y=Kl;break;case"beforeblur":case"afterblur":y=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":y=tu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Eh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Wh;break;case Sf:case kf:case bf:y=Th;break;case Ef:y=Uh;break;case"scroll":y=kh;break;case"wheel":y=Hh;break;case"copy":case"cut":case"paste":y=zh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=ru}var w=(t&4)!==0,T=!w&&e==="scroll",p=w?x!==null?x+"Capture":null:x;w=[];for(var u=d,g;u!==null;){g=u;var v=g.stateNode;if(g.tag===5&&v!==null&&(g=v,p!==null&&(v=So(u,p),v!=null&&w.push(Ro(u,v,g)))),T)break;u=u.return}0<w.length&&(x=new y(x,_,null,n,m),h.push({event:x,listeners:w}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",x&&n!==Ms&&(_=n.relatedTarget||n.fromElement)&&(Wn(_)||_[qt]))break e;if((y||x)&&(x=m.window===m?m:(x=m.ownerDocument)?x.defaultView||x.parentWindow:window,y?(_=n.relatedTarget||n.toElement,y=d,_=_?Wn(_):null,_!==null&&(T=Zn(_),_!==T||_.tag!==5&&_.tag!==6)&&(_=null)):(y=null,_=d),y!==_)){if(w=tu,v="onMouseLeave",p="onMouseEnter",u="mouse",(e==="pointerout"||e==="pointerover")&&(w=ru,v="onPointerLeave",p="onPointerEnter",u="pointer"),T=y==null?x:pr(y),g=_==null?x:pr(_),x=new w(v,u+"leave",y,n,m),x.target=T,x.relatedTarget=g,v=null,Wn(m)===d&&(w=new w(p,u+"enter",_,n,m),w.target=g,w.relatedTarget=T,v=w),T=v,y&&_)t:{for(w=y,p=_,u=0,g=w;g;g=rr(g))u++;for(g=0,v=p;v;v=rr(v))g++;for(;0<u-g;)w=rr(w),u--;for(;0<g-u;)p=rr(p),g--;for(;u--;){if(w===p||p!==null&&w===p.alternate)break t;w=rr(w),p=rr(p)}w=null}else w=null;y!==null&&gu(h,x,y,w,!1),_!==null&&T!==null&&gu(h,T,_,w,!0)}}e:{if(x=d?pr(d):window,y=x.nodeName&&x.nodeName.toLowerCase(),y==="select"||y==="input"&&x.type==="file")var z=Zh;else if(lu(x))if(mf)z=t0;else{z=Jh;var D=qh}else(y=x.nodeName)&&y.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(z=e0);if(z&&(z=z(e,d))){xf(h,z,n,m);break e}D&&D(e,x,d),e==="focusout"&&(D=x._wrapperState)&&D.controlled&&x.type==="number"&&As(x,"number",x.value)}switch(D=d?pr(d):window,e){case"focusin":(lu(D)||D.contentEditable==="true")&&(dr=D,Vs=d,po=null);break;case"focusout":po=Vs=dr=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,du(h,n,m);break;case"selectionchange":if(o0)break;case"keydown":case"keyup":du(h,n,m)}var O;if(Wa)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ur?gf(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(pf&&n.locale!=="ko"&&(ur||E!=="onCompositionStart"?E==="onCompositionEnd"&&ur&&(O=ff()):(mn=m,Oa="value"in mn?mn.value:mn.textContent,ur=!0)),D=Hi(d,E),0<D.length&&(E=new nu(E,e,null,n,m),h.push({event:E,listeners:D}),O?E.data=O:(O=hf(n),O!==null&&(E.data=O)))),(O=Gh?Yh(e,n):Xh(e,n))&&(d=Hi(d,"onBeforeInput"),0<d.length&&(m=new nu("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:d}),m.data=O))}jf(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 gu(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,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 a0=/\r\n?/g,c0=/\u0000|\uFFFD/g;function hu(e){return(typeof e=="string"?e:""+e).replace(a0,`
|
|
38
|
-
`).replace(c0,"")}function fi(e,t,n){if(t=hu(t),hu(e)!==t&&n)throw Error(W(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,u0=typeof clearTimeout=="function"?clearTimeout:void 0,xu=typeof Promise=="function"?Promise:void 0,d0=typeof queueMicrotask=="function"?queueMicrotask:typeof xu<"u"?function(e){return xu.resolve(null).then(e).catch(f0)}:Ks;function f0(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 mu(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,zo="__reactProps$"+Fr,qt="__reactContainer$"+Fr,Zs="__reactEvents$"+Fr,p0="__reactListeners$"+Fr,g0="__reactHandles$"+Fr;function Wn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qt]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mu(e);e!==null;){if(n=e[Bt])return n;e=mu(e)}return t}e=n,n=e.parentNode}return null}function Wo(e){return e=e[Bt]||e[qt],!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(W(33))}function hl(e){return e[zo]||null}var qs=[],gr=-1;function In(e){return{current:e}}function ke(e){0>gr||(e.current=qs[gr],qs[gr]=null,gr--)}function we(e,t){gr++,qs[gr]=e.current,e.current=t}var Tn={},et=In(Tn),dt=In(!1),Vn=Tn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return Tn;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(){ke(dt),ke(et)}function yu(e,t,n){if(et.current!==Tn)throw Error(W(168));we(et,t),we(dt,n)}function Rf(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(W(108,qg(e)||"Unknown",o));return ze({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,Vn=et.current,we(et,e),we(dt,dt.current),!0}function vu(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=Rf(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ke(dt),ke(et),we(et,e)):ke(dt),we(dt,n)}var Yt=null,xl=!1,is=!1;function zf(e){Yt===null?Yt=[e]:Yt.push(e)}function h0(e){xl=!0,zf(e)}function Ln(){if(!is&&Yt!==null){is=!0;var e=0,t=me;try{var n=Yt;for(me=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)),ef(Aa,Ln),o}finally{me=t,is=!1}}return null}var hr=[],xr=0,Xi=null,Qi=0,St=[],kt=0,Gn=null,Xt=1,Qt="";function Mn(e,t){hr[xr++]=Qi,hr[xr++]=Xi,Xi=e,Qi=t}function If(e,t,n){St[kt++]=Xt,St[kt++]=Qt,St[kt++]=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 Ua(e){e.return!==null&&(Mn(e,1),If(e,1,0))}function $a(e){for(;e===Xi;)Xi=hr[--xr],hr[xr]=null,Qi=hr[--xr],hr[xr]=null;for(;e===Gn;)Gn=St[--kt],St[kt]=null,Qt=St[--kt],St[kt]=null,Xt=St[--kt],St[kt]=null}var yt=null,mt=null,Ee=!1,Lt=null;function Lf(e,t){var n=bt(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 _u(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,yt=e,mt=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,mt=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=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,mt=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=mt;if(t){var n=t;if(!_u(e,t)){if(Js(e))throw Error(W(418));t=Sn(n.nextSibling);var r=yt;t&&_u(e,t)?Lf(r,n):(e.flags=e.flags&-4097|2,Ee=!1,yt=e)}}else{if(Js(e))throw Error(W(418));e.flags=e.flags&-4097|2,Ee=!1,yt=e}}}function wu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function pi(e){if(e!==yt)return!1;if(!Ee)return wu(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=mt)){if(Js(e))throw Af(),Error(W(418));for(;t;)Lf(e,t),t=Sn(t.nextSibling)}if(wu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mt=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=yt?Sn(e.stateNode.nextSibling):null;return!0}function Af(){for(var e=mt;e;)e=Sn(e.nextSibling)}function Rr(){mt=yt=null,Ee=!1}function Ha(e){Lt===null?Lt=[e]:Lt.push(e)}var x0=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(W(309));var r=n.stateNode}if(!r)throw Error(W(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(W(284));if(!n._owner)throw Error(W(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Su(e){var t=e._init;return t(e._payload)}function Nf(e){function t(p,u){if(e){var g=p.deletions;g===null?(p.deletions=[u],p.flags|=16):g.push(u)}}function n(p,u){if(!e)return null;for(;u!==null;)t(p,u),u=u.sibling;return null}function r(p,u){for(p=new Map;u!==null;)u.key!==null?p.set(u.key,u):p.set(u.index,u),u=u.sibling;return p}function o(p,u){return p=Cn(p,u),p.index=0,p.sibling=null,p}function i(p,u,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<u?(p.flags|=2,u):g):(p.flags|=2,u)):(p.flags|=1048576,u)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,u,g,v){return u===null||u.tag!==6?(u=fs(g,p.mode,v),u.return=p,u):(u=o(u,g),u.return=p,u)}function c(p,u,g,v){var z=g.type;return z===cr?m(p,u,g.props.children,v,g.key):u!==null&&(u.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===dn&&Su(z)===u.type)?(v=o(u,g.props),v.ref=Qr(p,u,g),v.return=p,v):(v=Ai(g.type,g.key,g.props,null,p.mode,v),v.ref=Qr(p,u,g),v.return=p,v)}function d(p,u,g,v){return u===null||u.tag!==4||u.stateNode.containerInfo!==g.containerInfo||u.stateNode.implementation!==g.implementation?(u=ps(g,p.mode,v),u.return=p,u):(u=o(u,g.children||[]),u.return=p,u)}function m(p,u,g,v,z){return u===null||u.tag!==7?(u=Hn(g,p.mode,v,z),u.return=p,u):(u=o(u,g),u.return=p,u)}function h(p,u,g){if(typeof u=="string"&&u!==""||typeof u=="number")return u=fs(""+u,p.mode,g),u.return=p,u;if(typeof u=="object"&&u!==null){switch(u.$$typeof){case ri:return g=Ai(u.type,u.key,u.props,null,p.mode,g),g.ref=Qr(p,null,u),g.return=p,g;case ar:return u=ps(u,p.mode,g),u.return=p,u;case dn:var v=u._init;return h(p,v(u._payload),g)}if(no(u)||Hr(u))return u=Hn(u,p.mode,g,null),u.return=p,u;gi(p,u)}return null}function x(p,u,g,v){var z=u!==null?u.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return z!==null?null:a(p,u,""+g,v);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ri:return g.key===z?c(p,u,g,v):null;case ar:return g.key===z?d(p,u,g,v):null;case dn:return z=g._init,x(p,u,z(g._payload),v)}if(no(g)||Hr(g))return z!==null?null:m(p,u,g,v,null);gi(p,g)}return null}function y(p,u,g,v,z){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(g)||null,a(u,p,""+v,z);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:return p=p.get(v.key===null?g:v.key)||null,c(u,p,v,z);case ar:return p=p.get(v.key===null?g:v.key)||null,d(u,p,v,z);case dn:var D=v._init;return y(p,u,g,D(v._payload),z)}if(no(v)||Hr(v))return p=p.get(g)||null,m(u,p,v,z,null);gi(u,v)}return null}function _(p,u,g,v){for(var z=null,D=null,O=u,E=u=0,V=null;O!==null&&E<g.length;E++){O.index>E?(V=O,O=null):V=O.sibling;var H=x(p,O,g[E],v);if(H===null){O===null&&(O=V);break}e&&O&&H.alternate===null&&t(p,O),u=i(H,u,E),D===null?z=H:D.sibling=H,D=H,O=V}if(E===g.length)return n(p,O),Ee&&Mn(p,E),z;if(O===null){for(;E<g.length;E++)O=h(p,g[E],v),O!==null&&(u=i(O,u,E),D===null?z=O:D.sibling=O,D=O);return Ee&&Mn(p,E),z}for(O=r(p,O);E<g.length;E++)V=y(O,p,E,g[E],v),V!==null&&(e&&V.alternate!==null&&O.delete(V.key===null?E:V.key),u=i(V,u,E),D===null?z=V:D.sibling=V,D=V);return e&&O.forEach(function(re){return t(p,re)}),Ee&&Mn(p,E),z}function w(p,u,g,v){var z=Hr(g);if(typeof z!="function")throw Error(W(150));if(g=z.call(g),g==null)throw Error(W(151));for(var D=z=null,O=u,E=u=0,V=null,H=g.next();O!==null&&!H.done;E++,H=g.next()){O.index>E?(V=O,O=null):V=O.sibling;var re=x(p,O,H.value,v);if(re===null){O===null&&(O=V);break}e&&O&&re.alternate===null&&t(p,O),u=i(re,u,E),D===null?z=re:D.sibling=re,D=re,O=V}if(H.done)return n(p,O),Ee&&Mn(p,E),z;if(O===null){for(;!H.done;E++,H=g.next())H=h(p,H.value,v),H!==null&&(u=i(H,u,E),D===null?z=H:D.sibling=H,D=H);return Ee&&Mn(p,E),z}for(O=r(p,O);!H.done;E++,H=g.next())H=y(O,p,E,H.value,v),H!==null&&(e&&H.alternate!==null&&O.delete(H.key===null?E:H.key),u=i(H,u,E),D===null?z=H:D.sibling=H,D=H);return e&&O.forEach(function(ae){return t(p,ae)}),Ee&&Mn(p,E),z}function T(p,u,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 z=g.key,D=u;D!==null;){if(D.key===z){if(z=g.type,z===cr){if(D.tag===7){n(p,D.sibling),u=o(D,g.props.children),u.return=p,p=u;break e}}else if(D.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===dn&&Su(z)===D.type){n(p,D.sibling),u=o(D,g.props),u.ref=Qr(p,D,g),u.return=p,p=u;break e}n(p,D);break}else t(p,D);D=D.sibling}g.type===cr?(u=Hn(g.props.children,p.mode,v,g.key),u.return=p,p=u):(v=Ai(g.type,g.key,g.props,null,p.mode,v),v.ref=Qr(p,u,g),v.return=p,p=v)}return s(p);case ar:e:{for(D=g.key;u!==null;){if(u.key===D)if(u.tag===4&&u.stateNode.containerInfo===g.containerInfo&&u.stateNode.implementation===g.implementation){n(p,u.sibling),u=o(u,g.children||[]),u.return=p,p=u;break e}else{n(p,u);break}else t(p,u);u=u.sibling}u=ps(g,p.mode,v),u.return=p,p=u}return s(p);case dn:return D=g._init,T(p,u,D(g._payload),v)}if(no(g))return _(p,u,g,v);if(Hr(g))return w(p,u,g,v);gi(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,u!==null&&u.tag===6?(n(p,u.sibling),u=o(u,g),u.return=p,p=u):(n(p,u),u=fs(g,p.mode,v),u.return=p,p=u),s(p)):n(p,u)}return T}var zr=Nf(!0),Df=Nf(!1),Ki=In(null),Zi=null,mr=null,Va=null;function Ga(){Va=mr=Zi=null}function Ya(e){var t=Ki.current;ke(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 br(e,t){Zi=e,Va=mr=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(Va!==e)if(e={context:e,memoizedValue:t,next:null},mr===null){if(Zi===null)throw Error(W(308));mr=e,Zi.dependencies={lanes:0,firstContext:e}}else mr=mr.next=e;return t}var Bn=null;function Xa(e){Bn===null?Bn=[e]:Bn.push(e)}function Pf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Xa(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 Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Of(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 kn(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,Xa(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jt(e,n)}function ji(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,Na(e,n)}}function ku(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 qi(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,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==s&&(a===null?m.firstBaseUpdate=d:a.next=d,m.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,m=d=c=null,a=i;do{var x=a.lane,y=a.eventTime;if((r&x)===x){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,w=a;switch(x=t,y=n,w.tag){case 1:if(_=w.payload,typeof _=="function"){h=_.call(y,h,x);break e}h=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=w.payload,x=typeof _=="function"?_.call(y,h,x):_,x==null)break e;h=ze({},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 y={eventTime:y,lane:x,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=y,c=h):m=m.next=y,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(m===null&&(c=h),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=m,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 bu(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(W(191,o));o.call(r)}}}var Bo={},Ht=In(Bo),Io=In(Bo),Lo=In(Bo);function Un(e){if(e===Bo)throw Error(W(174));return e}function Ka(e,t){switch(we(Lo,t),we(Io,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)}ke(Ht),we(Ht,t)}function Ir(){ke(Ht),ke(Io),ke(Lo)}function Mf(e){Un(Lo.current);var t=Un(Ht.current),n=Ds(t,e.type);t!==n&&(we(Io,e),we(Ht,n))}function Za(e){Io.current===e&&(ke(Ht),ke(Io))}var Te=In(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 qa(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var Ti=nn.ReactCurrentDispatcher,ss=nn.ReactCurrentBatchConfig,Yn=0,Re=null,Oe=null,Ue=null,el=!1,go=!1,Ao=0,m0=0;function Qe(){throw Error(W(321))}function Ja(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 ec(e,t,n,r,o,i){if(Yn=i,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ti.current=e===null||e.memoizedState===null?w0:S0,e=n(r,o),go){i=0;do{if(go=!1,Ao=0,25<=i)throw Error(W(301));i+=1,Ue=Oe=null,t.updateQueue=null,Ti.current=k0,e=n(r,o)}while(go)}if(Ti.current=tl,t=Oe!==null&&Oe.next!==null,Yn=0,Ue=Oe=Re=null,el=!1,t)throw Error(W(300));return e}function tc(){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 jt(){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(W(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=jt(),n=t.queue;if(n===null)throw Error(W(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,d=i;do{var m=d.lane;if((Yn&m)===m)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Re.lanes|=m,Xn|=m}d=d.next}while(d!==null&&d!==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=jt(),n=t.queue;if(n===null)throw Error(W(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 Ff(){}function Wf(e,t){var n=Re,r=jt(),o=t(),i=!Dt(r.memoizedState,o);if(i&&(r.memoizedState=o,ut=!0),r=r.queue,nc($f.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Do(9,Uf.bind(null,n,r,o,t),void 0,null),$e===null)throw Error(W(349));Yn&30||Bf(n,t,o)}return o}function Bf(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 Uf(e,t,n,r){t.value=n,t.getSnapshot=r,Hf(t)&&Vf(e)}function $f(e,t,n){return n(function(){Hf(t)&&Vf(e)})}function Hf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Vf(e){var t=Jt(e,1);t!==null&&Nt(t,e,1,-1)}function Eu(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=_0.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 Gf(){return jt().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 ml(e,t,n,r){var o=jt();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var s=Oe.memoizedState;if(i=s.destroy,r!==null&&Ja(r,s.deps)){o.memoizedState=Do(t,n,i,r);return}}Re.flags|=e,o.memoizedState=Do(1|t,n,i,r)}function Cu(e,t){return Ri(8390656,8,e,t)}function nc(e,t){return ml(2048,8,e,t)}function Yf(e,t){return ml(4,2,e,t)}function Xf(e,t){return ml(4,4,e,t)}function Qf(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 Kf(e,t,n){return n=n!=null?n.concat([e]):null,ml(4,4,Qf.bind(null,t,e),n)}function rc(){}function Zf(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ja(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qf(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ja(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jf(e,t,n){return Yn&21?(Dt(n,t)||(n=rf(),Re.lanes|=n,Xn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function y0(e,t){var n=me;me=n!==0&&4>n?n:4,e(!0);var r=ss.transition;ss.transition={};try{e(!1),t()}finally{me=n,ss.transition=r}}function ep(){return jt().memoizedState}function v0(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tp(e))np(t,n);else if(n=Pf(e,t,n,r),n!==null){var o=rt();Nt(n,e,r,o),rp(n,t,r)}}function _0(e,t,n){var r=En(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tp(e))np(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,Xa(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Pf(e,t,o,r),n!==null&&(o=rt(),Nt(n,e,r,o),rp(n,t,r))}}function tp(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function np(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 rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Na(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},w0={readContext:Ct,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Cu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,Qf.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=v0.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Eu,useDebugValue:rc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Eu(!1),t=e[0];return e=y0.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(W(407));n=n()}else{if(n=t(),$e===null)throw Error(W(349));Yn&30||Bf(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Cu($f.bind(null,r,i,e),[e]),r.flags|=2048,Do(9,Uf.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=m0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},S0={readContext:Ct,useCallback:Zf,useContext:Ct,useEffect:nc,useImperativeHandle:Kf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:qf,useReducer:as,useRef:Gf,useState:function(){return as(No)},useDebugValue:rc,useDeferredValue:function(e){var t=jt();return Jf(t,Oe.memoizedState,e)},useTransition:function(){var e=as(No)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Ff,useSyncExternalStore:Wf,useId:ep,unstable_isNewReconciler:!1},k0={readContext:Ct,useCallback:Zf,useContext:Ct,useEffect:nc,useImperativeHandle:Kf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:qf,useReducer:cs,useRef:Gf,useState:function(){return cs(No)},useDebugValue:rc,useDeferredValue:function(e){var t=jt();return Oe===null?t.memoizedState=e:Jf(t,Oe.memoizedState,e)},useTransition:function(){var e=cs(No)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Ff,useSyncExternalStore:Wf,useId:ep,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=ze({},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:ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yl={isMounted:function(e){return(e=e._reactInternals)?Zn(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=kn(e,i,o),t!==null&&(Nt(t,e,o,r),ji(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=kn(e,i,o),t!==null&&(Nt(t,e,o,r),ji(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=kn(e,o,r),t!==null&&(Nt(t,e,r,n),ji(t,e,r))}};function ju(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?!jo(n,r)||!jo(o,i):!0}function op(e,t,n){var r=!1,o=Tn,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)?Tr(e,o):Tn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Tu(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&&yl.enqueueReplaceState(t,t.state,null)}function ra(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Qa(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ct(i):(i=ft(t)?Vn:et.current,o.context=Tr(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&&yl.enqueueReplaceState(o,o.state,null),qi(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+=Zg(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 b0=typeof WeakMap=="function"?WeakMap:Map;function ip(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 lp(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"&&(bn===null?bn=new Set([this]):bn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ru(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new b0;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=M0.bind(null,e,t,n),t.then(e,e))}function zu(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 Iu(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,kn(n,t,1))),n.lanes|=1),e)}var E0=nn.ReactCurrentOwner,ut=!1;function nt(e,t,n,r){t.child=e===null?Df(t,null,n,r):zr(t,e.child,n,r)}function Lu(e,t,n,r,o){n=n.render;var i=t.ref;return br(t,o),r=ec(e,t,n,r,i,o),n=tc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&n&&Ua(t),t.flags|=1,nt(e,t,r,o),t.child)}function Au(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!dc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,sp(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:jo,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 sp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(jo(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 ap(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 cp(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=Tr(t,i),br(t,o),n=ec(e,t,n,r,i,o),r=tc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&r&&Ua(t),t.flags|=1,nt(e,t,n,o),t.child)}function Nu(e,t,n,r,o){if(ft(n)){var i=!0;Yi(t)}else i=!1;if(br(t,o),t.stateNode===null)zi(e,t),op(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,d=n.contextType;typeof d=="object"&&d!==null?d=Ct(d):(d=ft(n)?Vn:et.current,d=Tr(t,d));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==d)&&Tu(t,s,r,d),fn=!1;var x=t.memoizedState;s.state=x,qi(t,r,s,o),c=t.memoizedState,a!==r||x!==c||dt.current||fn?(typeof m=="function"&&(na(t,n,m,r),c=t.memoizedState),(a=fn||ju(t,n,a,r,x,c,d))?(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=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Of(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:zt(t.type,a),s.props=d,h=t.pendingProps,x=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ct(c):(c=ft(n)?Vn:et.current,c=Tr(t,c));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||x!==c)&&Tu(t,s,r,c),fn=!1,x=t.memoizedState,s.state=x,qi(t,r,s,o);var _=t.memoizedState;a!==h||x!==_||dt.current||fn?(typeof y=="function"&&(na(t,n,y,r),_=t.memoizedState),(d=fn||ju(t,n,d,r,x,_,c)||!1)?(m||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=d):(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){cp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&vu(t,n,!1),en(e,t,i);r=t.stateNode,E0.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=zr(t,e.child,null,i),t.child=zr(t,null,a,i)):nt(e,t,a,i),t.memoizedState=r.state,o&&vu(t,n,!0),t.child}function up(e){var t=e.stateNode;t.pendingContext?yu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yu(e,t.context,!1),Ka(e,t.containerInfo)}function Du(e,t,n,r,o){return Rr(),Ha(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 dp(e,t,n){var r=t.pendingProps,o=Te.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(Te,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):oc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return C0(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 oc(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&&Ha(r),zr(t,e.child,null,n),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C0(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=us(Error(W(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&&zr(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(W(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 uc(),r=us(Error(W(421))),hi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=F0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,mt=Sn(o.nextSibling),yt=t,Ee=!0,Lt=null,e!==null&&(St[kt++]=Xt,St[kt++]=Qt,St[kt++]=Gn,Xt=e.id,Qt=e.overflow,Gn=t),t=oc(t,r.children),t.flags|=4096,t)}function Pu(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 fp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(nt(e,t,r.children,n),r=Te.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&&Pu(e,n,t);else if(e.tag===19)Pu(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(Te,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 zi(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(W(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 j0(e,t,n){switch(t.tag){case 3:up(t),Rr();break;case 5:Mf(t);break;case 1:ft(t.type)&&Yi(t);break;case 4:Ka(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(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?dp(e,t,n):(we(Te,Te.current&1),e=en(e,t,n),e!==null?e.sibling:null);we(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,n)}return en(e,t,n)}var pp,ca,gp,hp;pp=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(){};gp=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=Is(e,o),r=Is(e,r),i=[];break;case"select":o=ze({},o,{value:void 0}),r=ze({},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(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(_o.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="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(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(_o.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Se("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};hp=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 T0(e,t,n){var r=t.pendingProps;switch($a(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,Ir(),ke(dt),ke(et),qa(),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&&(ma(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)gp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(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[zo]=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":Vc(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":Yc(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),Gc(r,i,!0);break;case"textarea":oi(r),Xc(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=Ud(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[zo]=r,pp(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":Vc(e,r),o=Is(e,r),Se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ze({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Yc(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"?Vd(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&$d(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&&Ta(e,i,c,s))}switch(n){case"input":oi(e),Gc(e,r,!1);break;case"textarea":oi(e),Xc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(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)hp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(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=yt,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(ke(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&mt!==null&&t.mode&1&&!(t.flags&128))Af(),Rr(),t.flags|=98560,i=!1;else if(i=pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(W(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(W(317));i[Bt]=t}else Rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Lt!==null&&(ma(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||Te.current&1?Fe===0&&(Fe=3):uc())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Ir(),ca(e,t),e===null&&To(t.stateNode.containerInfo),Ke(t),null;case 10:return Ya(t.type._context),Ke(t),null;case 17:return ft(t.type)&&Gi(),Ke(t),null;case 19:if(ke(Te),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(Te,Te.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=Te.current,we(Te,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return cc(),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(W(156,t.tag))}function R0(e,t){switch($a(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 Ir(),ke(dt),ke(et),qa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Za(t),null;case 13:if(ke(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Te),null;case 4:return Ir(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return cc(),null;case 24:return null;default:return null}}var xi=!1,qe=!1,z0=typeof WeakSet=="function"?WeakSet:Set,X=null;function yr(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 Ou=!1;function I0(e,t){if(Ys=Ui,e=_f(),Ba(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,d=0,m=0,h=e,x=null;t:for(;;){for(var y;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),(y=h.firstChild)!==null;)x=h,h=y;for(;;){if(h===e)break t;if(x===n&&++d===o&&(a=s),x===i&&++m===r&&(c=s),(y=h.nextSibling)!==null)break;h=x,x=h.parentNode}h=y}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,T=_.memoizedState,p=t.stateNode,u=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:zt(t.type,w),T);p.__reactInternalSnapshotBeforeUpdate=u}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(W(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 _=Ou,Ou=!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 xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[zo],delete t[Zs],delete t[p0],delete t[g0])),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 mp(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mp(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,It=!1;function sn(e,t,n){for(n=n.child;n!==null;)yp(e,t,n),n=n.sibling}function yp(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:qe||yr(n,t);case 6:var r=He,o=It;He=null,sn(e,t,n),He=r,It=o,He!==null&&(It?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(It?(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=It,He=n.stateNode.containerInfo,It=!0,sn(e,t,n),He=r,It=o;break;case 0:case 11:case 14:case 15:if(!qe&&(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(!qe&&(yr(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?(qe=(r=qe)||n.memoizedState!==null,sn(e,t,n),qe=r):sn(e,t,n);break;default:sn(e,t,n)}}function Fu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new z0),t.forEach(function(r){var o=W0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(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,It=!1;break e;case 3:He=a.stateNode.containerInfo,It=!0;break e;case 4:He=a.stateNode.containerInfo,It=!0;break e}a=a.return}if(He===null)throw Error(W(160));yp(i,s,o),He=null,It=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Le(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vp(t,e),t=t.sibling}function vp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(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:Tt(t,e),Ft(e),r&512&&n!==null&&yr(n,n.return);break;case 5:if(Tt(t,e),Ft(e),r&512&&n!==null&&yr(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&&Wd(o,i),Os(a,s);var d=Os(a,i);for(s=0;s<c.length;s+=2){var m=c[s],h=c[s+1];m==="style"?Vd(o,h):m==="dangerouslySetInnerHTML"?$d(o,h):m==="children"?wo(o,h):Ta(o,m,h,d)}switch(a){case"input":Ls(o,i);break;case"textarea":Bd(o,i);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?_r(o,!!i.multiple,y,!1):x!==!!i.multiple&&(i.defaultValue!=null?_r(o,!!i.multiple,i.defaultValue,!0):_r(o,!!i.multiple,i.multiple?[]:"",!1))}o[zo]=i}catch(w){Le(e,e.return,w)}}break;case 6:if(Tt(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(W(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){Le(e,e.return,w)}}break;case 3:if(Tt(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:Tt(t,e),Ft(e);break;case 13:Tt(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||(sc=Ae())),r&4&&Fu(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(d=qe)||m,Tt(t,e),qe=d):Tt(t,e),Ft(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(X=e,m=e.child;m!==null;){for(h=X=m;X!==null;){switch(x=X,y=x.child,x.tag){case 0:case 11:case 14:case 15:ho(4,x,x.return);break;case 1:yr(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:yr(x,x.return);break;case 22:if(x.memoizedState!==null){Bu(h);continue}}y!==null?(y.return=x,X=y):Bu(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{o=h.stateNode,d?(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=Hd("display",s))}catch(w){Le(e,e.return,w)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=d?"":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;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Tt(t,e),Ft(e),r&4&&Fu(e);break;case 21:break;default:Tt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mp(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wo(o,""),r.flags&=-33);var i=Mu(e);pa(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Mu(e);fa(e,a,s);break;default:throw Error(W(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function L0(e,t,n){X=e,_p(e)}function _p(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||qe;a=xi;var d=qe;if(xi=s,(qe=c)&&!d)for(X=o;X!==null;)s=X,c=s.child,s.tag===22&&s.memoizedState!==null?Uu(o):c!==null?(c.return=s,X=c):Uu(o);for(;i!==null;)X=i,_p(i),i=i.sibling;X=o,xi=a,qe=d}Wu(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,X=i):Wu(e)}}function Wu(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:qe||vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&bu(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}bu(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 d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Eo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}qe||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 Bu(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 Uu(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 A0=Math.ceil,nl=nn.ReactCurrentDispatcher,ic=nn.ReactCurrentOwner,Et=nn.ReactCurrentBatchConfig,pe=0,$e=null,Ne=null,Ge=0,ht=0,vr=In(0),Fe=0,Po=null,Xn=0,_l=0,lc=0,xo=null,ct=null,sc=0,Ar=1/0,Gt=null,rl=!1,ga=null,bn=null,mi=!1,yn=null,ol=0,mo=0,ha=null,Ii=-1,Li=0;function rt(){return pe&6?Ae():Ii!==-1?Ii:Ii=Ae()}function En(e){return e.mode&1?pe&2&&Ge!==0?Ge&-Ge:x0.transition!==null?(Li===0&&(Li=rf()),Li):(e=me,e!==0||(e=window.event,e=e===void 0?16:df(e.type)),e):1}function Nt(e,t,n,r){if(50<mo)throw mo=0,ha=null,Error(W(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;xh(e,t);var r=Bi(e,e===$e?Ge:0);if(r===0)n!==null&&Zc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zc(n),t===1)e.tag===0?h0($u.bind(null,e)):zf($u.bind(null,e)),d0(function(){!(pe&6)&&Ln()}),n=null;else{switch(of(r)){case 1:n=Aa;break;case 4:n=tf;break;case 16:n=Wi;break;case 536870912:n=nf;break;default:n=Wi}n=Tp(n,wp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wp(e,t){if(Ii=-1,Li=0,pe&6)throw Error(W(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=kp();($e!==e||Ge!==t)&&(Gt=null,Ar=Ae()+500,$n(e,t));do try{P0();break}catch(a){Sp(e,a)}while(!0);Ga(),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)&&!N0(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(W(345));case 2:Fn(e,ct,Gt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=sc+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*A0(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(W(329))}}}return pt(e,Ae()),e.callbackNode===n?wp.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&&ma(t)),e}function ma(e){ct===null?ct=e:ct.push.apply(ct,e)}function N0(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&=~lc,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 $u(e){if(pe&6)throw Error(W(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(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fn(e,ct,Gt),pt(e,Ae()),null}function ac(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Ar=Ae()+500,xl&&Ln())}}function Qn(e){yn!==null&&yn.tag===0&&!(pe&6)&&Er();var t=pe;pe|=1;var n=Et.transition,r=me;try{if(Et.transition=null,me=1,e)return e()}finally{me=r,Et.transition=n,pe=t,!(pe&6)&&Ln()}}function cc(){ht=vr.current,ke(vr)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,u0(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch($a(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:Ir(),ke(dt),ke(et),qa();break;case 5:Za(r);break;case 4:Ir();break;case 13:ke(Te);break;case 19:ke(Te);break;case 10:Ya(r.type._context);break;case 22:case 23:cc()}n=n.return}if($e=e,Ne=e=Cn(e.current,null),Ge=ht=t,Fe=0,Po=null,lc=_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 Sp(e,t){do{var n=Ne;try{if(Ga(),Ti.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,ic.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 d=c,m=a,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var x=m.alternate;x?(m.updateQueue=x.updateQueue,m.memoizedState=x.memoizedState,m.lanes=x.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=zu(s);if(y!==null){y.flags&=-257,Iu(y,s,a,i,t),y.mode&1&&Ru(i,d,t),t=y,c=d;var _=t.updateQueue;if(_===null){var w=new Set;w.add(c),t.updateQueue=w}else _.add(c);break e}else{if(!(t&1)){Ru(i,d,t),uc();break e}c=Error(W(426))}}else if(Ee&&a.mode&1){var T=zu(s);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Iu(T,s,a,i,t),Ha(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=ip(i,c,t);ku(i,p);break e;case 1:a=c;var u=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof u.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(bn===null||!bn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var v=lp(i,a,t);ku(i,v);break e}}i=i.return}while(i!==null)}Ep(n)}catch(z){t=z,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function kp(){var e=nl.current;return nl.current=tl,e===null?tl:e}function uc(){(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=kp();($e!==e||Ge!==t)&&(Gt=null,$n(e,t));do try{D0();break}catch(o){Sp(e,o)}while(!0);if(Ga(),pe=n,nl.current=r,Ne!==null)throw Error(W(261));return $e=null,Ge=0,Fe}function D0(){for(;Ne!==null;)bp(Ne)}function P0(){for(;Ne!==null&&!sh();)bp(Ne)}function bp(e){var t=jp(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Ep(e):Ne=t,ic.current=null}function Ep(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=R0(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=T0(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=me,o=Et.transition;try{Et.transition=null,me=1,O0(e,t,n,r)}finally{Et.transition=o,me=r}return null}function O0(e,t,n,r){do Er();while(yn!==null);if(pe&6)throw Error(W(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(W(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(mh(e,i),e===$e&&(Ne=$e=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||mi||(mi=!0,Tp(Wi,function(){return Er(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Et.transition,Et.transition=null;var s=me;me=1;var a=pe;pe|=4,ic.current=null,I0(e,n),vp(n,e),r0(Xs),Ui=!!Ys,Xs=Ys=null,e.current=n,L0(n),ah(),pe=a,me=s,Et.transition=i}else e.current=n;if(mi&&(mi=!1,yn=e,ol=o),i=e.pendingLanes,i===0&&(bn=null),dh(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?mo++:(mo=0,ha=e):mo=0,Ln(),null}function Er(){if(yn!==null){var e=of(ol),t=Et.transition,n=me;try{if(Et.transition=null,me=16>e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ol=0,pe&6)throw Error(W(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 d=a[c];for(X=d;X!==null;){var m=X;switch(m.tag){case 0:case 11:case 15:ho(8,m,i)}var h=m.child;if(h!==null)h.return=m,X=h;else for(;X!==null;){m=X;var x=m.sibling,y=m.return;if(xp(m),m===d){X=null;break}if(x!==null){x.return=y,X=x;break}X=y}}}var _=i.alternate;if(_!==null){var w=_.child;if(w!==null){_.child=null;do{var T=w.sibling;w.sibling=null,w=T}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 u=e.current;for(X=u;X!==null;){s=X;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,X=g;else e:for(s=u;X!==null;){if(a=X,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:vl(9,a)}}catch(z){Le(a,a.return,z)}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{me=n,Et.transition=t}}return!1}function Hu(e,t,n){t=Lr(n,t),t=ip(e,t,1),e=kn(e,t,1),t=rt(),e!==null&&(Mo(e,1,t),pt(e,t))}function Le(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bn===null||!bn.has(r))){e=Lr(n,e),e=lp(t,e,1),t=kn(t,e,1),e=rt(),t!==null&&(Mo(t,1,e),pt(t,e));break}}t=t.return}}function M0(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()-sc?$n(e,0):lc|=n),pt(e,t)}function Cp(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 F0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cp(e,n)}function W0(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(W(314))}r!==null&&r.delete(t),Cp(e,n)}var jp;jp=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,j0(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Ee&&t.flags&1048576&&If(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zi(e,t),e=t.pendingProps;var o=Tr(t,et.current);br(t,n),o=ec(null,t,r,e,o,n);var i=tc();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,Qa(t),o.updater=yl,t.stateNode=o,o._reactInternals=t,ra(t,r,e,n),t=la(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Ua(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=U0(r),e=zt(r,e),o){case 0:t=ia(null,t,r,e,n);break e;case 1:t=Nu(null,t,r,e,n);break e;case 11:t=Lu(null,t,r,e,n);break e;case 14:t=Au(null,t,r,zt(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),ia(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Nu(e,t,r,o,n);case 3:e:{if(up(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Of(e,t),qi(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(W(423)),t),t=Du(e,t,r,n,o);break e}else if(r!==o){o=Lr(Error(W(424)),t),t=Du(e,t,r,n,o);break e}else for(mt=Sn(t.stateNode.containerInfo.firstChild),yt=t,Ee=!0,Lt=null,n=Df(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 Mf(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),cp(e,t),nt(e,t,s,n),t.child;case 6:return e===null&&ea(t),null;case 13:return dp(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zr(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:zt(r,o),Lu(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 d=i.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?c.next=c:(c.next=m.next,m.next=c),d.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(W(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,br(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=zt(r,t.pendingProps),o=zt(r.type,o),Au(e,t,r,o,n);case 15:return sp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),zi(e,t),t.tag=1,ft(r)?(e=!0,Yi(t)):e=!1,br(t,n),op(t,r,o),ra(t,r,o,n),la(null,t,r,!0,e,n);case 19:return fp(e,t,n);case 22:return ap(e,t,n)}throw Error(W(156,t.tag))};function Tp(e,t){return ef(e,t)}function B0(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 bt(e,t,n,r){return new B0(e,t,n,r)}function dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function U0(e){if(typeof e=="function")return dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=bt(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")dc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case cr:return Hn(n.children,o,i,t);case Ra:s=8,o|=8;break;case js:return e=bt(12,n,t,o|2),e.elementType=js,e.lanes=i,e;case Ts:return e=bt(13,n,t,o),e.elementType=Ts,e.lanes=i,e;case Rs:return e=bt(19,n,t,o),e.elementType=Rs,e.lanes=i,e;case Od:return wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dd:s=10;break e;case Pd:s=9;break e;case za:s=11;break e;case Ia:s=14;break e;case dn:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=bt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=bt(22,e,r,t),e.elementType=Od,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function ps(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $0(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 fc(e,t,n,r,o,i,s,a,c){return e=new $0(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qa(i),e}function H0(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 Rp(e){if(!e)return Tn;e=e._reactInternals;e:{if(Zn(e)!==e||e.tag!==1)throw Error(W(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(W(171))}if(e.tag===1){var n=e.type;if(ft(n))return Rf(e,n,t)}return t}function zp(e,t,n,r,o,i,s,a,c){return e=fc(n,r,!0,e,o,i,s,a,c),e.context=Rp(null),n=e.current,r=rt(),o=En(n),i=Kt(r,o),i.callback=t??null,kn(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=Rp(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=kn(o,t,s),e!==null&&(Nt(e,o,s,i),ji(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 Vu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pc(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}function V0(){return null}var Ip=typeof reportError=="function"?reportError:function(e){console.error(e)};function gc(e){this._internalRoot=e}kl.prototype.render=gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Sl(e,t,null,null)};kl.prototype.unmount=gc.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[qt]=null}};function kl(e){this._internalRoot=e}kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();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&&uf(e)}};function hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gu(){}function G0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=ll(s);i.call(d)}}var s=zp(t,r,e,0,null,!1,!1,"",Gu);return e._reactRootContainer=s,e[qt]=s.current,To(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 d=ll(c);a.call(d)}}var c=fc(e,0,!1,null,null,!1,!1,"",Gu);return e._reactRootContainer=c,e[qt]=c.current,To(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=G0(n,t,e,o,r);return ll(s)}lf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(Na(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)}}),pc(e,1)}};Da=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=rt();Nt(t,e,134217728,n)}pc(e,134217728)}};sf=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)}pc(e,t)}};af=function(){return me};cf=function(e,t){var n=me;try{return me=e,t()}finally{me=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(W(90));Fd(r),Ls(r,o)}}}break;case"textarea":Bd(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};Xd=ac;Qd=Qn;var Y0={usingClientEntryPoint:!1,Events:[Wo,pr,hl,Gd,Yd,ac]},Zr={findFiberByHostInstance:Wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X0={bundleType:Zr.bundleType,version:Zr.version,rendererPackageName:Zr.rendererPackageName,rendererConfig:Zr.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=qd(e),e===null?null:e.stateNode},findFiberByHostInstance:Zr.findFiberByHostInstance||V0,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 yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yi.isDisabled&&yi.supportsFiber)try{dl=yi.inject(X0),$t=yi}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y0;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hc(t))throw Error(W(200));return H0(e,t,null,n)};_t.createRoot=function(e,t){if(!hc(e))throw Error(W(299));var n=!1,r="",o=Ip;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=fc(e,1,!1,null,null,n,!1,r,o),e[qt]=t.current,To(e.nodeType===8?e.parentNode:e),new gc(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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=qd(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return Qn(e)};_t.hydrate=function(e,t,n){if(!bl(t))throw Error(W(200));return El(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!hc(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Ip;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=zp(t,null,e,1,n??null,o,!1,i,s),e[qt]=t.current,To(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 kl(t)};_t.render=function(e,t,n){if(!bl(t))throw Error(W(200));return El(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!bl(e))throw Error(W(40));return e._reactRootContainer?(Qn(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[qt]=null})}),!0):!1};_t.unstable_batchedUpdates=ac;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bl(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return El(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Lp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lp)}catch(e){console.error(e)}}Lp(),Id.exports=_t;var Q0=Id.exports,Yu=Q0;Es.createRoot=Yu.createRoot,Es.hydrateRoot=Yu.hydrateRoot;const K0={},Xu=e=>{let t;const n=new Set,r=(m,h)=>{const x=typeof m=="function"?m(t):m;if(!Object.is(x,t)){const y=t;t=h??(typeof x!="object"||x===null)?x:Object.assign({},t,x),n.forEach(_=>_(t,y))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>d,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(K0?"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()}},d=t=e(r,o,c);return c},Z0=e=>e?Xu(e):Xu;var Ap={exports:{}},Np={},Dp={exports:{}},Pp={};/**
|
|
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=k;function q0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var J0=typeof Object.is=="function"?Object.is:q0,ex=Nr.useState,tx=Nr.useEffect,nx=Nr.useLayoutEffect,rx=Nr.useDebugValue;function ox(e,t){var n=t(),r=ex({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return nx(function(){o.value=n,o.getSnapshot=t,gs(o)&&i({inst:o})},[e,n,t]),tx(function(){return gs(o)&&i({inst:o}),e(function(){gs(o)&&i({inst:o})})},[e]),rx(n),n}function gs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!J0(e,n)}catch{return!0}}function ix(e,t){return t()}var lx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ix:ox;Pp.useSyncExternalStore=Nr.useSyncExternalStore!==void 0?Nr.useSyncExternalStore:lx;Dp.exports=Pp;var sx=Dp.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=k,ax=sx;function cx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ux=typeof Object.is=="function"?Object.is:cx,dx=ax.useSyncExternalStore,fx=Cl.useRef,px=Cl.useEffect,gx=Cl.useMemo,hx=Cl.useDebugValue;Np.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=fx(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=gx(function(){function c(y){if(!d){if(d=!0,m=y,y=r(y),o!==void 0&&s.hasValue){var _=s.value;if(o(_,y))return h=_}return h=y}if(_=h,ux(m,y))return _;var w=r(y);return o!==void 0&&o(_,w)?(m=y,_):(m=y,h=w)}var d=!1,m,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=dx(e,i[0],i[1]);return px(function(){s.hasValue=!0,s.value=a},[a]),hx(a),a};Ap.exports=Np;var xx=Ap.exports;const mx=vd(xx),Op={},{useDebugValue:yx}=Mg,{useSyncExternalStoreWithSelector:vx}=mx;let Qu=!1;const _x=e=>e;function wx(e,t=_x,n){(Op?"production":void 0)!=="production"&&n&&!Qu&&(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"),Qu=!0);const r=vx(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return yx(r),r}const Ku=e=>{(Op?"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"?Z0(e):e,n=(r,o)=>wx(t,r,o);return Object.assign(n,t),n},Sx=e=>e?Ku(e):Ku,Je=Sx(e=>({isRunning:!1,timer:0,completedSteps:[],activeStepId:null,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({activeStepId:t}),setActiveTestFile:t=>e({activeTestFile:t}),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||{};return{selectedLogId:t,activeReplay:{method:o.method||"GET",url:o.url||"",headers:o.requestHeaders?JSON.stringify(o.requestHeaders,null,2):`{
|
|
57
|
-
|
|
58
|
-
}`,body:typeof o.requestBody=="object"?JSON.stringify(o.requestBody,null,2):o.requestBody||"",response:null,status: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,logs:[],networkLogs:[],assertions:[],testScenarios:[],browserFrames:{},currentUrls:{},pageTitles:{},selectedLogId:null,activeReplay:null,activeTestFile:""}),stopExecution:()=>e(t=>({isRunning:!1,activeStepId:null,testScenarios: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}})})),startRun:(t,n)=>e(r=>{const o=t;if(!o)return r;const i=n||"Default Scenario",s=r.activeTestFile===""?o:r.activeTestFile,a=r.testScenarios.findIndex(d=>d.fileName===o&&d.name===i),c=[...r.testScenarios];return a!==-1?c[a]={...c[a],status:"running",steps:[]}:c.push({fileName:o,name:i,status:"running",steps:[]}),{activeTestFile:s,testScenarios:c}}),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)=>e(i=>{if(!o)return i;let s=!1;const a=i.testScenarios.map(d=>{if(d.fileName!==o)return d;const m=d.steps.findIndex(w=>w.id===t);if(m===-1)return d;s=!0;const h=[...d.steps];h[m]={...h[m],status:n||"pending",screenshot:r||h[m].screenshot};const x=h.some(w=>w.status==="failed"),y=h.every(w=>["pass","passed","success"].includes(w.status));let _=d.status;return x?_="failed":y&&(_="pass"),{...d,status:_,steps:h}});if(!s)return i;const c=["pass","passed","success"].includes(n);return{testScenarios:a,completedSteps:c&&!i.completedSteps.includes(t)?[...i.completedSteps,t]:i.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)=>e(r=>({activeReplay:r.activeReplay?{...r.activeReplay,response:t,status:n,isLoading:!1}:null}))}));/**
|
|
59
|
-
* @license lucide-react v0.400.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const kx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
64
|
-
* @license lucide-react v0.400.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var bx={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"};/**
|
|
69
|
-
* @license lucide-react v0.400.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const Ex=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>k.createElement("svg",{ref:c,...bx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mp("lucide",o),...a},[...s.map(([d,m])=>k.createElement(d,m)),...Array.isArray(i)?i:[i]]));/**
|
|
74
|
-
* @license lucide-react v0.400.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const Z=(e,t)=>{const n=k.forwardRef(({className:r,...o},i)=>k.createElement(Ex,{ref:i,iconNode:t,className:Mp(`lucide-${kx(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
79
|
-
* @license lucide-react v0.400.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const Cx=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
84
|
-
* @license lucide-react v0.400.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const jx=Z("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"}]]);/**
|
|
89
|
-
* @license lucide-react v0.400.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const Tx=Z("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"}]]);/**
|
|
94
|
-
* @license lucide-react v0.400.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const Fp=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
99
|
-
* @license lucide-react v0.400.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const Dr=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
104
|
-
* @license lucide-react v0.400.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const xc=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
109
|
-
* @license lucide-react v0.400.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const Rn=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
114
|
-
* @license lucide-react v0.400.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const Rx=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
119
|
-
* @license lucide-react v0.400.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const mc=Z("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
124
|
-
* @license lucide-react v0.400.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const Zu=Z("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"}]]);/**
|
|
129
|
-
* @license lucide-react v0.400.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const Wp=Z("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"}]]);/**
|
|
134
|
-
* @license lucide-react v0.400.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const yc=Z("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"}]]);/**
|
|
139
|
-
* @license lucide-react v0.400.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const zx=Z("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
144
|
-
* @license lucide-react v0.400.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const Ix=Z("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"}]]);/**
|
|
149
|
-
* @license lucide-react v0.400.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const Lx=Z("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"}]]);/**
|
|
154
|
-
* @license lucide-react v0.400.0 - ISC
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the ISC license.
|
|
157
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const Ax=Z("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"}]]);/**
|
|
159
|
-
* @license lucide-react v0.400.0 - ISC
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the ISC license.
|
|
162
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const Bp=Z("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"}]]);/**
|
|
164
|
-
* @license lucide-react v0.400.0 - ISC
|
|
165
|
-
*
|
|
166
|
-
* This source code is licensed under the ISC license.
|
|
167
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const yo=Z("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"}]]);/**
|
|
169
|
-
* @license lucide-react v0.400.0 - ISC
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the ISC license.
|
|
172
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const qu=Z("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"}]]);/**
|
|
174
|
-
* @license lucide-react v0.400.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const Nx=Z("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
179
|
-
* @license lucide-react v0.400.0 - ISC
|
|
180
|
-
*
|
|
181
|
-
* This source code is licensed under the ISC license.
|
|
182
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const Dx=Z("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"}]]);/**
|
|
184
|
-
* @license lucide-react v0.400.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const hs=Z("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"}]]);/**
|
|
189
|
-
* @license lucide-react v0.400.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const Px=Z("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"}]]);/**
|
|
194
|
-
* @license lucide-react v0.400.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const Ox=Z("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"}]]);/**
|
|
199
|
-
* @license lucide-react v0.400.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const Mx=Z("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"}]]);/**
|
|
204
|
-
* @license lucide-react v0.400.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const xs=Z("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"}]]);/**
|
|
209
|
-
* @license lucide-react v0.400.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const Fx=Z("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"}]]);/**
|
|
214
|
-
* @license lucide-react v0.400.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const Wx=Z("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"}]]);/**
|
|
219
|
-
* @license lucide-react v0.400.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const Bx=Z("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"}]]);/**
|
|
224
|
-
* @license lucide-react v0.400.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const Up=Z("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"}]]);/**
|
|
229
|
-
* @license lucide-react v0.400.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const Ux=Z("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"}]]);/**
|
|
234
|
-
* @license lucide-react v0.400.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const Pr=Z("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
239
|
-
* @license lucide-react v0.400.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const $x=Z("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"}]]);/**
|
|
244
|
-
* @license lucide-react v0.400.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const $p=Z("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"}]]);/**
|
|
249
|
-
* @license lucide-react v0.400.0 - ISC
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the ISC license.
|
|
252
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const Hx=Z("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]);/**
|
|
254
|
-
* @license lucide-react v0.400.0 - ISC
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the ISC license.
|
|
257
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const Vx=Z("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"}]]);/**
|
|
259
|
-
* @license lucide-react v0.400.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const Gx=Z("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
264
|
-
* @license lucide-react v0.400.0 - ISC
|
|
265
|
-
*
|
|
266
|
-
* This source code is licensed under the ISC license.
|
|
267
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const Yx=Z("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"}]]);/**
|
|
269
|
-
* @license lucide-react v0.400.0 - ISC
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/const Hp=Z("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
274
|
-
* @license lucide-react v0.400.0 - ISC
|
|
275
|
-
*
|
|
276
|
-
* This source code is licensed under the ISC license.
|
|
277
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
-
*/const Vp=Z("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
279
|
-
* @license lucide-react v0.400.0 - ISC
|
|
280
|
-
*
|
|
281
|
-
* This source code is licensed under the ISC license.
|
|
282
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
-
*/const Xx=Z("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"}]]);/**
|
|
284
|
-
* @license lucide-react v0.400.0 - ISC
|
|
285
|
-
*
|
|
286
|
-
* This source code is licensed under the ISC license.
|
|
287
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/const Gp=Z("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"}]]);/**
|
|
289
|
-
* @license lucide-react v0.400.0 - ISC
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the ISC license.
|
|
292
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/const Qx=Z("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"}]]);/**
|
|
294
|
-
* @license lucide-react v0.400.0 - ISC
|
|
295
|
-
*
|
|
296
|
-
* This source code is licensed under the ISC license.
|
|
297
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
-
*/const Kx=Z("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"}]]);/**
|
|
299
|
-
* @license lucide-react v0.400.0 - ISC
|
|
300
|
-
*
|
|
301
|
-
* This source code is licensed under the ISC license.
|
|
302
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
-
*/const vc=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
304
|
-
* @license lucide-react v0.400.0 - ISC
|
|
305
|
-
*
|
|
306
|
-
* This source code is licensed under the ISC license.
|
|
307
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
-
*/const Zx=Z("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
309
|
-
* @license lucide-react v0.400.0 - ISC
|
|
310
|
-
*
|
|
311
|
-
* This source code is licensed under the ISC license.
|
|
312
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
-
*/const qx=Z("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
314
|
-
* @license lucide-react v0.400.0 - ISC
|
|
315
|
-
*
|
|
316
|
-
* This source code is licensed under the ISC license.
|
|
317
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
-
*/const Jx=Z("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"}]]);/**
|
|
319
|
-
* @license lucide-react v0.400.0 - ISC
|
|
320
|
-
*
|
|
321
|
-
* This source code is licensed under the ISC license.
|
|
322
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
-
*/const em=Z("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
324
|
-
* @license lucide-react v0.400.0 - ISC
|
|
325
|
-
*
|
|
326
|
-
* This source code is licensed under the ISC license.
|
|
327
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
-
*/const tm=Z("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"}]]);/**
|
|
329
|
-
* @license lucide-react v0.400.0 - ISC
|
|
330
|
-
*
|
|
331
|
-
* This source code is licensed under the ISC license.
|
|
332
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
-
*/const nm=Z("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"}]]);/**
|
|
334
|
-
* @license lucide-react v0.400.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/const rm=Z("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"}]]);/**
|
|
339
|
-
* @license lucide-react v0.400.0 - ISC
|
|
340
|
-
*
|
|
341
|
-
* This source code is licensed under the ISC license.
|
|
342
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
-
*/const om=Z("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"}]]);/**
|
|
344
|
-
* @license lucide-react v0.400.0 - ISC
|
|
345
|
-
*
|
|
346
|
-
* This source code is licensed under the ISC license.
|
|
347
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
-
*/const Ju=Z("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"}]]);/**
|
|
349
|
-
* @license lucide-react v0.400.0 - ISC
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the ISC license.
|
|
352
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
-
*/const ms=Z("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"}]]);/**
|
|
354
|
-
* @license lucide-react v0.400.0 - ISC
|
|
355
|
-
*
|
|
356
|
-
* This source code is licensed under the ISC license.
|
|
357
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
-
*/const Cr=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
359
|
-
* @license lucide-react v0.400.0 - ISC
|
|
360
|
-
*
|
|
361
|
-
* This source code is licensed under the ISC license.
|
|
362
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
-
*/const im=Z("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"}]]);/**
|
|
364
|
-
* @license lucide-react v0.400.0 - ISC
|
|
365
|
-
*
|
|
366
|
-
* This source code is licensed under the ISC license.
|
|
367
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
-
*/const lm=Z("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"}]]),sm=""+new URL("flow_logo-CjiL4Lvy.png",import.meta.url).href,am=({isTestFlowsOpen:e,setTestFlowsOpen:t})=>{const{activeView:n,setActiveView:r}=Je(),o=[{id:"Flows",icon:Dx,label:"Flows"},{id:"Workspace",icon:$p,label:"Workspace"},{id:"Runs",icon:zx,label:"Runs"},{id:"Logs",icon:Kx,label:"Logs"},{id:"Reports",icon:yo,label:"Reports"},{id:"TestCase",icon:yc,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:sm,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(Up,{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"})]})]})})},cm=()=>{const{currentUrls:e,pageTitles:t,browserFrames:n,testScenarios:r,activeStepId:o,setActiveStepId:i,isRunning:s,activeTestFile:a,setActiveTestFile:c}=Je();k.useEffect(()=>{if(s){const u=r.find(g=>g.steps.some(v=>v.status==="running"));u&&u.fileName!==a&&c(u.fileName)}},[r,s,a,c]);let d=s?a:null,m=o;if(o&&o.includes(":::")){const u=o.split(":::");d=u[0],m=u[1]}const h=r.filter(u=>!d||u.fileName===d).flatMap(u=>u.steps).find(u=>u.id===m),x=!s&&!!(h&&h.screenshot),y=e[a]||"about:blank",_=t[a]||"New Tab",w=n[a]||null,T=x?h.screenshot:w,p=Array.from(new Set(r.map(u=>u.fileName)));return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#1c2128"},children:[l.jsxs("div",{onWheel:u=>{u.currentTarget.scrollLeft+=u.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:`
|
|
369
|
-
div::-webkit-scrollbar { display: none; }
|
|
370
|
-
`}),p.length>0?p.map((u,g)=>{const v=a===u;return l.jsxs("div",{onClick:()=>c(u),style:{backgroundColor:v?"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:v?"1px solid var(--fs-border)":"1px solid transparent",borderBottom:"none",minWidth:"130px",maxWidth:"200px",flexShrink:0,cursor:"pointer",opacity:v?1:.6},children:[l.jsx(hs,{size:12,color:v?"var(--fs-accent-purple)":"#8b949e",style:{flexShrink:0}}),l.jsx("span",{style:{fontSize:"10px",color:v?"white":"#8b949e",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:v?"bold":"normal"},children:u})]},g)}):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:_})]})]}),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(xc,{size:14}),l.jsx(Rn,{size:14}),l.jsx(Gp,{size:14}),l.jsx(Mx,{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($x,{size:10,color:"#22c55e"}),l.jsx("span",{style:{fontSize:"10px",color:"#8b949e",whiteSpace:"nowrap",overflow:"hidden"},children:y})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",color:"#444",borderLeft:"1px solid #333",paddingLeft:"12px"},children:[l.jsx($p,{size:14,color:"var(--fs-accent-purple)"}),l.jsx(Jx,{size:14}),l.jsx(Zx,{size:14}),l.jsx(Tx,{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:[x&&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(Ax,{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.jsx("div",{style:{fontSize:"12px",color:"#e2e8f0",fontFamily:"monospace",marginTop:"2px"},children:h==null?void 0:h.command})]})]}),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:u=>u.currentTarget.style.backgroundColor="#6d28d9",onMouseLeave:u=>u.currentTarget.style.backgroundColor="#7c3aed",children:"Return to Live"})]}),T?l.jsx("img",{src:`data:image/png;base64,${T}`,style:{width:"100%",height:"100%",objectFit:"contain",opacity:x?.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:"WAITING FOR RENDER..."})]})]})]})},um=()=>{const{networkLogs:e,activeNetworkTab:t,setNetworkTab:n,setSelectedLogId:r,setActiveView:o}=Je(),i=["REST","GraphQL","Network","WS"],s=e.filter(c=>t==="GraphQL"?c.url.includes("graphql"):t==="REST"?!c.url.includes("graphql")&&!c.url.includes("ws"):!0),a=c=>{r(c),o("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:i.map(c=>l.jsx("button",{onClick:()=>n(c),style:{padding:"10px 16px",fontSize:"11px",fontWeight:"600",background:"none",border:"none",color:t===c?"#a78bfa":"#444",borderBottom:t===c?"2px solid #7c3aed":"2px solid transparent",cursor:"pointer",transition:"all 0.2s"},children:c},c))}),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(vc,{size:12,style:{position:"absolute",left:"8px",top:"50%",transform:"translateY(-50%)",color:"#444"}}),l.jsx("input",{type:"text",placeholder:`Filter ${t}...`,style:{width:"100%",background:"#05070a",border:"1px solid #30363d",borderRadius:"4px",padding:"4px 8px 4px 28px",fontSize:"10px",color:"white"}})]}),l.jsx(Nx,{size:14,color:"#444"})]}),l.jsx("div",{style:{flex:1,overflowY:"auto"},children:s.length===0?l.jsxs("div",{style:{padding:"40px",textAlign:"center",color:"#444",fontSize:"11px"},children:["No ",t," traffic detected"]}):s.map((c,d)=>l.jsx("div",{onClick:()=>a(c.id),style:{borderBottom:"1px solid #161b22",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:m=>m.currentTarget.style.backgroundColor="#161b22",onMouseLeave:m=>m.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:c.status<400?"#34d399":"#f87171",fontWeight:"bold",width:"25px"},children:c.status}),l.jsx("span",{style:{fontWeight:"bold",width:"35px",color:"#8b949e"},children:c.method}),l.jsx("span",{style:{flex:1,color:"white",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.name||c.url}),l.jsx("span",{style:{color:"#444",fontSize:"10px"},children:c.time})]})},d))})]})},dm=()=>{const{logs:e}=Je(),t=k.useRef(null);return k.useEffect(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[e]),l.jsxs("div",{ref:t,style:{flex:1,backgroundColor:"#0d1117",padding:"10px 15px",fontFamily:"monospace",fontSize:"12px",overflowY:"auto",color:"#d1d5db",lineHeight:"1.5"},children:[e.length===0&&l.jsx("div",{style:{color:"#4b5563",fontStyle:"italic"},children:"System ready. Awaiting execution..."}),e.map((n,r)=>{const o=(n.type||n.status||"INFO").toUpperCase();let i="#34d399";return(n.status==="error"||n.type==="ERROR")&&(i="#f87171"),n.status==="warning"&&(i="#fbbf24"),n.type==="ACTION"&&(i="#60a5fa"),l.jsxs("div",{style:{marginBottom:"4px",display:"flex",gap:"8px"},children:[l.jsxs("span",{style:{color:"#6e7681",flexShrink:0},children:["[",n.timestamp||"--:--:--","]"]}),l.jsx("span",{style:{color:i,fontWeight:"bold",flexShrink:0,width:"55px"},children:o}),l.jsx("span",{style:{color:"#c9d1d9",wordBreak:"break-all"},children:n.summary})]},n.id||r)})]})},fm=({isRightPanelOpen:e})=>{const{logs:t,pageTitles:n,activeTestFile:r}=Je(),o=t[t.length-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(cm,{})}),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(um,{})}),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(dm,{})})]})]})]})]})},pm=()=>{var x,y;const[e,t]=k.useState(null),{testScenarios:n,logs:r}=Je(),o=n.reduce((_,w)=>_+w.steps.length,0),i=n.reduce((_,w)=>_+w.steps.filter(T=>["pass","passed","success"].includes(T.status)).length,0),s=n.reduce((_,w)=>_+w.steps.filter(T=>T.status==="failed").length,0),a=n.reduce((_,w)=>{const T=w.fileName||"General";return _[T]||(_[T]=[]),_[T].push(w),_},{});let c="Verified.",d=null,m=null,h=null;if(e){const _=e.status==="failed",w=["pass","passed","success"].includes(e.status);if(m=e.screenshot,_){const p=`${e.type} ${e.description}`,u=r.slice().reverse().find(g=>g.type==="ERROR"&&g.fileName===e.fileName&&g.stepContext===p);c=u?u.summary:"Validation Failed.",!m&&((x=u==null?void 0:u.details)!=null&&x.screenshot)&&(m=u.details.screenshot),(y=u==null?void 0:u.details)!=null&&y.boundingBox&&(h=u.details.boundingBox)}else e.status==="running"?c="Executing...":w&&(c="Action verified successfully.");const T=r.slice().reverse().find(p=>(p.type==="REST"||p.type==="GRAPHQL")&&p.fileName===e.fileName);d=T?T.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(ys,{label:"PASSED",value:i,color:"#10b981",icon:l.jsx(mc,{size:20})}),l.jsx(ys,{label:"FAILED",value:s,color:"#ef4444",icon:l.jsx(Wp,{size:20})}),l.jsx(ys,{label:"TOTAL",value:o,color:"#3b82f6",icon:l.jsx(yo,{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(Bp,{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,T)=>l.jsx("th",{style:{padding:"16px 24px",fontSize:"10px",fontWeight:"800",color:"#64748b",textTransform:"uppercase"},children:w},T))})}),l.jsx("tbody",{children:a[_].flatMap(w=>w.steps.map((T,p)=>l.jsxs("tr",{onClick:()=>t({...T,scenarioName:w.name,fileName:_}),style:{cursor:"pointer",borderBottom:"1px solid #f1f5f9",backgroundColor:(e==null?void 0:e.id)===T.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:T.type})," ",T.description]}),l.jsx("td",{style:{padding:"18px 24px"},children:l.jsx(hm,{status:T.status})}),l.jsx("td",{style:{padding:"18px 24px",textAlign:"right"},children:l.jsx(Rn,{size:16,color:(e==null?void 0:e.id)===T.id?"#3b82f6":"#cbd5e1",style:{transform:(e==null?void 0:e.id)===T.id?"rotate(90deg)":"none",transition:"0.2s"}})})]},T.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(em,{size:18,color:"#3b82f6"})," Step Diagnostics"]}),l.jsx(Cr,{onClick:()=>t(null),style:{cursor:"pointer",color:"#94a3b8"}})]}),m&&l.jsx(qr,{label:`Visual State (${(e.status||"").toUpperCase()})`,children:l.jsx(gm,{screenshot:m,boundingBox:h})}),l.jsx(qr,{label:"Context",children:l.jsx("div",{style:{fontWeight:"bold",color:"#1e293b"},children:e.scenarioName})}),l.jsx(qr,{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(qr,{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})}),d&&l.jsx(qr,{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:d.responseStatus,url:d.url},null,2)})})})]})})]})},gm=({screenshot:e,boundingBox:t})=>{const[n,r]=k.useState({w:0,h:0}),[o,i]=k.useState(!1),s=()=>{const a=window.open();a&&(a.document.write(`
|
|
371
|
-
<html>
|
|
372
|
-
<head><title>Step Screenshot</title></head>
|
|
373
|
-
<body style="margin: 0; background-color: #0f172a; display: flex; justify-content: center; padding: 40px; font-family: sans-serif;">
|
|
374
|
-
<div style="position: relative; display: inline-block;">
|
|
375
|
-
<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);" />
|
|
376
|
-
${t?`<div style="
|
|
377
|
-
position: absolute;
|
|
378
|
-
border: 3px solid #ef4444;
|
|
379
|
-
background-color: rgba(239, 68, 68, 0.2);
|
|
380
|
-
left: ${t.x/n.w*100}%;
|
|
381
|
-
top: ${t.y/n.h*100}%;
|
|
382
|
-
width: ${t.width/n.w*100}%;
|
|
383
|
-
height: ${t.height/n.h*100}%;
|
|
384
|
-
box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
|
|
385
|
-
pointer-events: none;
|
|
386
|
-
"></div>`:""}
|
|
387
|
-
</div>
|
|
388
|
-
</body>
|
|
389
|
-
</html>
|
|
390
|
-
`),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"})]})},ys=({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})]})]}),hm=({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()})},qr=({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 Yp=()=>{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_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);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);break;case"EXPORT_PDF_RES":{const c=i.payload.base64,d=document.createElement("a");d.href=`data:application/pdf;base64,${c}`,d.download=`Flowstride_Test_Report_${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(d),d.click(),document.body.removeChild(d);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(Yp,3e3)},xm=()=>{xt&&(xt.close(),xt=null)},sl=(e,t)=>{xt&&xt.readyState===WebSocket.OPEN&&xt.send(JSON.stringify({type:e,payload:t}))},mm=()=>{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(yc,{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(Xx,{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(Bp,{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]=k.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?"]":"}"})]})},ym=e=>{var a,c,d,m,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=((m=(d=e.details)==null?void 0:d.responseStatus)==null?void 0:m.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}},vm=()=>{var ae;const{logs:e,selectedLogId:t,setSelectedLogId:n,activeReplay:r,updateReplay:o}=Je(),[i,s]=k.useState("ALL"),[a,c]=k.useState("Overview"),[d,m]=k.useState(null),[h,x]=k.useState(!1),y=k.useRef(null),[_,w]=k.useState(380),[T,p]=k.useState(!1);k.useEffect(()=>{const B=ne=>{if(!T||!y.current)return;const he=y.current.getBoundingClientRect().left,P=ne.clientX-he;P>=250&&P<=800&&w(P)},oe=()=>p(!1);return T&&(document.addEventListener("mousemove",B),document.addEventListener("mouseup",oe)),()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",oe)}},[T]),k.useEffect(()=>{t&&(!e||!e.find(B=>B.id===t))&&n(null)},[e,t,n]);const u=Array.isArray(e)?e:[],g=u.find(B=>B.id===t),v={},z=[];u.forEach(B=>{if(!B)return;if(B.type==="FILE_HEADER"){z.includes(B.summary)||z.push(B.summary);return}const oe=B.fileName||"System Initialization";v[oe]||(v[oe]=[],z.includes(oe)||z.push(oe)),(i==="ALL"||B.type===i)&&v[oe].push(B)});const D=z.map(B=>({fileName:B,items:v[B]||[]})).filter(B=>B.items.length>0),O=(g==null?void 0:g.type)==="REST"||(g==null?void 0:g.type)==="GRAPHQL",E=["Overview","Headers","Payload"];O&&((ae=g==null?void 0:g.details)!=null&&ae.curlString)&&E.push("cURL"),E.push("Response","Step Context"),O&&E.push("Replay");const V=()=>{r&&(o("isLoading",!0),o("response",null),o("status",null),sl("REPLAY_REQ",{method:r.method,url:r.url,headers:r.headers,body:r.body}))},H=async B=>{try{await navigator.clipboard.writeText(B),x(!0),setTimeout(()=>x(!1),2e3)}catch(oe){console.error("Failed to copy text: ",oe)}},re=()=>{if(!g)return null;const B=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:"})," ",B.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:B.responseStatus||g.status.toUpperCase()})]})]})});case"Headers":return l.jsx(io,{label:"Headers",value:{request:B.requestHeaders||{},response:B.responseHeaders||{}},isRoot:!0});case"Payload":return l.jsx(io,{label:"Payload",value:B.requestBody||B,isRoot:!0});case"cURL":return l.jsxs("div",{style:{position:"relative"},children:[l.jsx("button",{onClick:()=>H(B.curlString),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(Fp,{size:12})," Copied!"]}):l.jsxs(l.Fragment,{children:[l.jsx(Ix,{size:12})," Copy"]})}),l.jsx("pre",{style:{background:"#05070a",padding:"20px 15px",paddingRight:"90px",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:B.curlString})})]});case"Response":return l.jsx(io,{label:"Response",value:B.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(Hp,{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&&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:"LIVE RESPONSE:"}),l.jsx("span",{style:{backgroundColor:r.status<400?"rgba(52, 211, 153, 0.1)":"rgba(248, 113, 113, 0.1)",color:r.status<400?"#34d399":"#f87171",border:`1px solid ${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.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:y,style:{display:"flex",width:"100%",height:"100%",backgroundColor:"#0d1117",color:"#c9d1d9",overflow:"hidden",userSelect:T?"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(B=>l.jsx("button",{onClick:()=>s(B),style:{background:i===B?"rgba(124, 58, 237, 0.1)":"transparent",border:"1px solid #30363d",color:i===B?"#a78bfa":"#8b949e",padding:"3px 8px",borderRadius:"4px",fontSize:"10px",cursor:"pointer"},children:B},B))})}),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:[D.map((B,oe)=>{const ne=B.items.some(P=>P.status==="error"),he=B.items.filter(P=>P.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:B.fileName})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("button",{onClick:P=>{P.stopPropagation(),m(B.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:P=>P.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.2)",onMouseLeave:P=>P.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.1)",children:[l.jsx(qu,{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":""]})]})]}),B.items.map(P=>{const{name:F,methodLabel:L,methodColor:b,typeLabel:A,statusLabel:R,statusColor:Q}=ym(P);return l.jsxs("div",{onClick:()=>{n(P.id),m(null),c("Overview")},style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 25px",cursor:"pointer",backgroundColor:t===P.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===P.id?"bold":"500"},children:F}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:b,fontWeight:"bold"},children:L}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:Q,fontWeight:"bold"},children:R}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:"#8b949e"},children:A}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right",color:"#6e7681",fontFamily:"monospace"},children:P.timestamp})]},P.id)})]},B.fileName+oe)}),D.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})]})]}),l.jsx("div",{onMouseDown:()=>p(!0),onMouseEnter:B=>{B.currentTarget.style.backgroundColor="#7c3aed"},onMouseLeave:B=>{T||(B.currentTarget.style.backgroundColor="transparent")},style:{width:"5px",cursor:"col-resize",backgroundColor:T?"#7c3aed":"transparent",borderRight:T?"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:d?"#000":"#0d1117"},children:d?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(qu,{size:14,color:"#34d399"}),l.jsxs("span",{style:{color:"white",fontWeight:"bold",fontSize:"12px"},children:["Session Replay: ",d]})]}),l.jsx("button",{onClick:()=>m(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/${d.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"}},d)})]}):g?l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid #30363d",backgroundColor:"#0d1117"},children:E.map(B=>l.jsx("div",{onClick:()=>c(B),style:{padding:"12px 15px",fontSize:"11px",cursor:"pointer",color:a===B?"#a78bfa":"#8b949e",borderBottom:a===B?"2px solid #a78bfa":"none",fontWeight:B==="Replay"?"bold":"normal"},children:B==="Replay"?"▶ Replay":B},B))}),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(vc,{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,ed.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=Ie(r,C.__wbindgen_malloc,C.__wbindgen_realloc),c=be,d=Ie(o,C.__wbindgen_malloc,C.__wbindgen_realloc),m=be,h=Ie(i,C.__wbindgen_malloc,C.__wbindgen_realloc),x=be;return C.workspaceengine_add_node(this.__wbg_ptr,t,n,a,c,d,m,h,x,s)>>>0}add_text(t,n,r,o){const i=Ie(r,C.__wbindgen_malloc,C.__wbindgen_realloc),s=be;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=Ie(r,C.__wbindgen_malloc,C.__wbindgen_realloc),i=be;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=Ie(t,C.__wbindgen_malloc,C.__wbindgen_realloc),i=be,s=C.workspaceengine_new(o,i,n,r);return this.__wbg_ptr=s,ed.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 Sm(t[0])}restore_connection_packed(t,n,r,o,i,s,a,c,d){const m=Ie(c,C.__wbindgen_malloc,C.__wbindgen_realloc),h=be;C.workspaceengine_restore_connection_packed(this.__wbg_ptr,t,n,r,o,i,s,a,m,h,d)}restore_group(t,n,r,o,i,s,a){const c=Ie(s,C.__wbindgen_malloc,C.__wbindgen_realloc),d=be;C.workspaceengine_restore_group(this.__wbg_ptr,t,n,r,o,i,c,d,a)}restore_node_packed(t,n,r,o,i,s,a){const c=Ie(s,C.__wbindgen_malloc,C.__wbindgen_realloc),d=be;C.workspaceengine_restore_node_packed(this.__wbg_ptr,t,n,r,o,i,c,d,a)}restore_text(t,n,r,o,i,s,a){const c=Ie(s,C.__wbindgen_malloc,C.__wbindgen_realloc),d=be;C.workspaceengine_restore_text(this.__wbg_ptr,t,n,r,o,i,c,d,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=Ie(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=be;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=Ie(n,C.__wbindgen_malloc,C.__wbindgen_realloc),d=be,m=Ie(r,C.__wbindgen_malloc,C.__wbindgen_realloc),h=be,x=Ie(o,C.__wbindgen_malloc,C.__wbindgen_realloc),y=be,_=Ie(i,C.__wbindgen_malloc,C.__wbindgen_realloc),w=be,T=Ie(s,C.__wbindgen_malloc,C.__wbindgen_realloc),p=be,u=Ie(a,C.__wbindgen_malloc,C.__wbindgen_realloc),g=be;C.workspaceengine_update_node_data(this.__wbg_ptr,t,c,d,m,h,x,y,_,w,T,p,u,g)}update_node_defect_data(t,n,r,o){const i=Ie(n,C.__wbindgen_malloc,C.__wbindgen_realloc),s=be,a=Ie(r,C.__wbindgen_malloc,C.__wbindgen_realloc),c=be,d=Ie(o,C.__wbindgen_malloc,C.__wbindgen_realloc),m=be;C.workspaceengine_update_node_defect_data(this.__wbg_ptr,t,i,s,a,c,d,m)}update_node_drag(t,n){C.workspaceengine_update_node_drag(this.__wbg_ptr,t,n)}update_node_visual_step(t,n){const r=Ie(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=be;return C.workspaceengine_update_node_visual_step(this.__wbg_ptr,t,r,o)!==0}update_text_content(t,n){const r=Ie(n,C.__wbindgen_malloc,C.__wbindgen_realloc),o=be;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 _m(){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 wm(){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 ed=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 bm(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 Ie(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),be=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 be=s,o}function Sm(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 km=2146435072;let vs=0;function bm(e,t){return vs+=t,vs>=km&&(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 be=0,C;function Em(e,t){return C=e.exports,lo=null,C.__wbindgen_start(),C}async function Cm(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 Xp(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=wm();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await Cm(await e,t);return Em(n)}let jm={data:""},Tm=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||jm},Rm=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,zm=/\/\*[^]*?\*\/| +/g,td=/\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={},Qp=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Qp(e[n]);return t}return e},Im=(e,t,n,r,o)=>{let i=Qp(e),s=an[i]||(an[i]=(c=>{let d=0,m=11;for(;d<c.length;)m=101*m+c.charCodeAt(d++)>>>0;return"go"+m})(i));if(!an[s]){let c=i!==e?e:(d=>{let m,h,x=[{}];for(;m=Rm.exec(d.replace(zm,""));)m[4]?x.shift():m[3]?(h=m[3].replace(td," ").trim(),x.unshift(x[0][h]=x[0][h]||{})):x[0][m[1]]=m[2].replace(td," ").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,d,m,h)=>{h?d.data=d.data.replace(h,c):d.data.indexOf(c)===-1&&(d.data=m?c+d.data:d.data+c)})(an[s],t,r,a),s},Lm=(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 jl(e){let t=this||{},n=e.call?e(t.p):e;return Im(n.unshift?n.raw?Lm(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Tm(t.target),t.g,t.o,t.k)}let Kp,ya,va;jl.bind({g:1});let tn=jl.bind({k:1});function Am(e,t,n,r){hn.p=t,Kp=e,ya=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:ya&&ya()},a),n.o=/go\d/.test(c),a.className=jl.apply(n,r)+(c?" "+c:"");let d=e;return e[0]&&(d=a.as||e,delete a.as),va&&d[0]&&va(a),Kp(d,a)}return o}}var Nm=e=>typeof e=="function",cl=(e,t)=>Nm(e)?e(t):e,Dm=(()=>{let e=0;return()=>(++e).toString()})(),Zp=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Pm=20,_c="default",qp=(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 qp(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=[],Jp={toasts:[],pausedAt:void 0,settings:{toastLimit:Pm}},Ut={},eg=(e,t=_c)=>{Ut[t]=qp(Ut[t]||Jp,e),Pi.forEach(([n,r])=>{n===t&&r(Ut[t])})},tg=e=>Object.keys(Ut).forEach(t=>eg(e,t)),Om=e=>Object.keys(Ut).find(t=>Ut[t].toasts.some(n=>n.id===e)),Tl=(e=_c)=>t=>{eg(t,e)},Mm={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Fm=(e={},t=_c)=>{let[n,r]=k.useState(Ut[t]||Jp),o=k.useRef(Ut[t]);k.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,d;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)||Mm[s.type],style:{...e.style,...(d=e[s.type])==null?void 0:d.style,...s.style}}});return{...n,toasts:i}},Wm=(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)||Dm()}),Uo=e=>(t,n)=>{let r=Wm(t,e,n);return Tl(r.toasterId||Om(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?Tl(t)(n):tg(n)};Me.dismissAll=e=>Me.dismiss(void 0,e);Me.remove=(e,t)=>{let n={type:4,toastId:e};t?Tl(t)(n):tg(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 Bm=1e3,Um=(e,t="default")=>{let{toasts:n,pausedAt:r}=Fm(e,t),o=k.useRef(new Map).current,i=k.useCallback((h,x=Bm)=>{if(o.has(h))return;let y=setTimeout(()=>{o.delete(h),s({type:4,toastId:h})},x);o.set(h,y)},[]);k.useEffect(()=>{if(r)return;let h=Date.now(),x=n.map(y=>{if(y.duration===1/0)return;let _=(y.duration||0)+y.pauseDuration-(h-y.createdAt);if(_<0){y.visible&&Me.dismiss(y.id);return}return setTimeout(()=>Me.dismiss(y.id,t),_)});return()=>{x.forEach(y=>y&&clearTimeout(y))}},[n,r,t]);let s=k.useCallback(Tl(t),[t]),a=k.useCallback(()=>{s({type:5,time:Date.now()})},[s]),c=k.useCallback((h,x)=>{s({type:1,toast:{id:h,height:x}})},[s]),d=k.useCallback(()=>{r&&s({type:6,time:Date.now()})},[r,s]),m=k.useCallback((h,x)=>{let{reverseOrder:y=!1,gutter:_=8,defaultPosition:w}=x||{},T=n.filter(g=>(g.position||w)===(h.position||w)&&g.height),p=T.findIndex(g=>g.id===h.id),u=T.filter((g,v)=>v<p&&g.visible).length;return T.filter(g=>g.visible).slice(...y?[u+1]:[0,u]).reduce((g,v)=>g+(v.height||0)+_,0)},[n]);return k.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:d,calculateOffset:m}}},$m=tn`
|
|
391
|
-
from {
|
|
392
|
-
transform: scale(0) rotate(45deg);
|
|
393
|
-
opacity: 0;
|
|
394
|
-
}
|
|
395
|
-
to {
|
|
396
|
-
transform: scale(1) rotate(45deg);
|
|
397
|
-
opacity: 1;
|
|
398
|
-
}`,Hm=tn`
|
|
399
|
-
from {
|
|
400
|
-
transform: scale(0);
|
|
401
|
-
opacity: 0;
|
|
402
|
-
}
|
|
403
|
-
to {
|
|
404
|
-
transform: scale(1);
|
|
405
|
-
opacity: 1;
|
|
406
|
-
}`,Vm=tn`
|
|
407
|
-
from {
|
|
408
|
-
transform: scale(0) rotate(90deg);
|
|
409
|
-
opacity: 0;
|
|
410
|
-
}
|
|
411
|
-
to {
|
|
412
|
-
transform: scale(1) rotate(90deg);
|
|
413
|
-
opacity: 1;
|
|
414
|
-
}`,Gm=An("div")`
|
|
415
|
-
width: 20px;
|
|
416
|
-
opacity: 0;
|
|
417
|
-
height: 20px;
|
|
418
|
-
border-radius: 10px;
|
|
419
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
420
|
-
position: relative;
|
|
421
|
-
transform: rotate(45deg);
|
|
422
|
-
|
|
423
|
-
animation: ${$m} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
424
|
-
forwards;
|
|
425
|
-
animation-delay: 100ms;
|
|
426
|
-
|
|
427
|
-
&:after,
|
|
428
|
-
&:before {
|
|
429
|
-
content: '';
|
|
430
|
-
animation: ${Hm} 0.15s ease-out forwards;
|
|
431
|
-
animation-delay: 150ms;
|
|
432
|
-
position: absolute;
|
|
433
|
-
border-radius: 3px;
|
|
434
|
-
opacity: 0;
|
|
435
|
-
background: ${e=>e.secondary||"#fff"};
|
|
436
|
-
bottom: 9px;
|
|
437
|
-
left: 4px;
|
|
438
|
-
height: 2px;
|
|
439
|
-
width: 12px;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
&:before {
|
|
443
|
-
animation: ${Vm} 0.15s ease-out forwards;
|
|
444
|
-
animation-delay: 180ms;
|
|
445
|
-
transform: rotate(90deg);
|
|
446
|
-
}
|
|
447
|
-
`,Ym=tn`
|
|
448
|
-
from {
|
|
449
|
-
transform: rotate(0deg);
|
|
450
|
-
}
|
|
451
|
-
to {
|
|
452
|
-
transform: rotate(360deg);
|
|
453
|
-
}
|
|
454
|
-
`,Xm=An("div")`
|
|
455
|
-
width: 12px;
|
|
456
|
-
height: 12px;
|
|
457
|
-
box-sizing: border-box;
|
|
458
|
-
border: 2px solid;
|
|
459
|
-
border-radius: 100%;
|
|
460
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
461
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
462
|
-
animation: ${Ym} 1s linear infinite;
|
|
463
|
-
`,Qm=tn`
|
|
464
|
-
from {
|
|
465
|
-
transform: scale(0) rotate(45deg);
|
|
466
|
-
opacity: 0;
|
|
467
|
-
}
|
|
468
|
-
to {
|
|
469
|
-
transform: scale(1) rotate(45deg);
|
|
470
|
-
opacity: 1;
|
|
471
|
-
}`,Km=tn`
|
|
472
|
-
0% {
|
|
473
|
-
height: 0;
|
|
474
|
-
width: 0;
|
|
475
|
-
opacity: 0;
|
|
476
|
-
}
|
|
477
|
-
40% {
|
|
478
|
-
height: 0;
|
|
479
|
-
width: 6px;
|
|
480
|
-
opacity: 1;
|
|
481
|
-
}
|
|
482
|
-
100% {
|
|
483
|
-
opacity: 1;
|
|
484
|
-
height: 10px;
|
|
485
|
-
}`,Zm=An("div")`
|
|
486
|
-
width: 20px;
|
|
487
|
-
opacity: 0;
|
|
488
|
-
height: 20px;
|
|
489
|
-
border-radius: 10px;
|
|
490
|
-
background: ${e=>e.primary||"#61d345"};
|
|
491
|
-
position: relative;
|
|
492
|
-
transform: rotate(45deg);
|
|
493
|
-
|
|
494
|
-
animation: ${Qm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
495
|
-
forwards;
|
|
496
|
-
animation-delay: 100ms;
|
|
497
|
-
&:after {
|
|
498
|
-
content: '';
|
|
499
|
-
box-sizing: border-box;
|
|
500
|
-
animation: ${Km} 0.2s ease-out forwards;
|
|
501
|
-
opacity: 0;
|
|
502
|
-
animation-delay: 200ms;
|
|
503
|
-
position: absolute;
|
|
504
|
-
border-right: 2px solid;
|
|
505
|
-
border-bottom: 2px solid;
|
|
506
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
507
|
-
bottom: 6px;
|
|
508
|
-
left: 6px;
|
|
509
|
-
height: 10px;
|
|
510
|
-
width: 6px;
|
|
511
|
-
}
|
|
512
|
-
`,qm=An("div")`
|
|
513
|
-
position: absolute;
|
|
514
|
-
`,Jm=An("div")`
|
|
515
|
-
position: relative;
|
|
516
|
-
display: flex;
|
|
517
|
-
justify-content: center;
|
|
518
|
-
align-items: center;
|
|
519
|
-
min-width: 20px;
|
|
520
|
-
min-height: 20px;
|
|
521
|
-
`,ey=tn`
|
|
522
|
-
from {
|
|
523
|
-
transform: scale(0.6);
|
|
524
|
-
opacity: 0.4;
|
|
525
|
-
}
|
|
526
|
-
to {
|
|
527
|
-
transform: scale(1);
|
|
528
|
-
opacity: 1;
|
|
529
|
-
}`,ty=An("div")`
|
|
530
|
-
position: relative;
|
|
531
|
-
transform: scale(0.6);
|
|
532
|
-
opacity: 0.4;
|
|
533
|
-
min-width: 20px;
|
|
534
|
-
animation: ${ey} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
535
|
-
forwards;
|
|
536
|
-
`,ny=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?k.createElement(ty,null,t):t:n==="blank"?null:k.createElement(Jm,null,k.createElement(Xm,{...r}),n!=="loading"&&k.createElement(qm,null,n==="error"?k.createElement(Gm,{...r}):k.createElement(Zm,{...r})))},ry=e=>`
|
|
537
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
538
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
539
|
-
`,oy=e=>`
|
|
540
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
541
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
542
|
-
`,iy="0%{opacity:0;} 100%{opacity:1;}",ly="0%{opacity:1;} 100%{opacity:0;}",sy=An("div")`
|
|
543
|
-
display: flex;
|
|
544
|
-
align-items: center;
|
|
545
|
-
background: #fff;
|
|
546
|
-
color: #363636;
|
|
547
|
-
line-height: 1.3;
|
|
548
|
-
will-change: transform;
|
|
549
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
550
|
-
max-width: 350px;
|
|
551
|
-
pointer-events: auto;
|
|
552
|
-
padding: 8px 10px;
|
|
553
|
-
border-radius: 8px;
|
|
554
|
-
`,ay=An("div")`
|
|
555
|
-
display: flex;
|
|
556
|
-
justify-content: center;
|
|
557
|
-
margin: 4px 10px;
|
|
558
|
-
color: inherit;
|
|
559
|
-
flex: 1 1 auto;
|
|
560
|
-
white-space: pre-line;
|
|
561
|
-
`,cy=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Zp()?[iy,ly]:[ry(n),oy(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)`}},uy=k.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?cy(e.position||t||"top-center",e.visible):{opacity:0},i=k.createElement(ny,{toast:e}),s=k.createElement(ay,{...e.ariaProps},cl(e.message,e));return k.createElement(sy,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):k.createElement(k.Fragment,null,i,s))});Am(k.createElement);var dy=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=k.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 k.createElement("div",{ref:i,className:t,style:n},o)},fy=(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:Zp()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},py=jl`
|
|
562
|
-
z-index: 9999;
|
|
563
|
-
> * {
|
|
564
|
-
pointer-events: auto;
|
|
565
|
-
}
|
|
566
|
-
`,_i=16,gy=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:a})=>{let{toasts:c,handlers:d}=Um(n,i);return k.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:d.startPause,onMouseLeave:d.endPause},c.map(m=>{let h=m.position||t,x=d.calculateOffset(m,{reverseOrder:e,gutter:r,defaultPosition:t}),y=fy(h,x);return k.createElement(dy,{id:m.id,key:m.id,onHeightUpdate:d.updateHeight,className:m.visible?py:"",style:y},m.type==="custom"?cl(m.message,m):o?o(m):k.createElement(uy,{toast:m,position:h}))}))},at=Me;const ng=k.forwardRef(({activeMode:e,activeTool:t,onNodeSelected:n,nodeUpdateTrigger:r,defectUpdateTrigger:o,onGroupSelected:i,groupUpdateTrigger:s,onTextSelected:a,textUpdateTrigger:c,onExecutionReportChange:d,zoomLevel:m,recenterTrigger:h,onToolChange:x},y)=>{const _=k.useRef(null),[w,T]=k.useState(!1),p=k.useRef(null),u=()=>!_.current||!_.current.contentWindow?null:_.current.contentWindow.flowstrideEngineAPI||null;return k.useImperativeHandle(y,()=>({exportDesignState:()=>{const g=u();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=>{const v=u();v&&w?v.importDesignState(g):p.current=g}})),k.useEffect(()=>{const g=v=>{if(v.origin!==window.location.origin)return;const{type:z,payload:D}=v.data;if(z)switch(z){case"ENGINE_READY":T(!0);const O=u();O&&p.current&&(O.importDesignState(p.current),p.current=null);break;case"NODE_SELECTED":n==null||n(D.id,D.title,D.description,D.visualStep,D.stepsContent,D.expectedResult,D.references,D.priority);break;case"GROUP_SELECTED":i==null||i(D.id,D.title);break;case"TEXT_SELECTED":a==null||a(D.id,D.content);break;case"TOOL_CHANGED":x==null||x(D);break;case"EXECUTION_REPORT_CHANGED":d==null||d(D);break}};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[n,i,a,x,d]),k.useEffect(()=>{var g;w&&((g=u())==null||g.setMode(e))},[e,w]),k.useEffect(()=>{var g;w&&t&&((g=u())==null||g.setTool(t))},[t,w]),k.useEffect(()=>{var g;w&&m!==void 0&&((g=u())==null||g.setZoom(m))},[m,w]),k.useEffect(()=>{var g;w&&h!==void 0&&h>0&&((g=u())==null||g.recenterView())},[h,w]),k.useEffect(()=>{var g;w&&r&&((g=u())==null||g.updateNodeData(r.stepNumber,r.title,r.description,r.stepsContent,r.expectedResult,r.references,r.priority))},[r,w]),k.useEffect(()=>{var g;w&&o&&((g=u())==null||g.updateNodeDefectData(o.stepNumber,o.defectReport,o.defectMedia,o.assignedTo))},[o,w]),k.useEffect(()=>{var g;w&&s&&((g=u())==null||g.updateGroupTitle(s.groupId,s.title))},[s,w]),k.useEffect(()=>{var g;w&&c&&((g=u())==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"}})]})});ng.displayName="FlowCanvas";const hy=({activeMode:e,onModeChange:t,onSave:n,flows:r=[],activeFlowId:o,onSelectFlow:i,onCreateFlow:s,onDeleteFlow:a,onRenameFlow:c,zoomLevel:d=1,onZoomIn:m,onZoomOut:h,onZoomReset:x,metadata:y,onMetadataChange:_})=>{const[w,T]=k.useState(!1),[p,u]=k.useState(!1),[g,v]=k.useState(!1),[z,D]=k.useState(""),O=k.useRef(null),E=k.useRef(!1),V=e===xe.Execution,H=r.find(P=>P.id===o),re=H?H.name:"New Local Flow",ae=P=>{if(!P)return"Just now";const F=Math.floor((Date.now()-P)/1e3);if(F<60)return"Just now";const L=Math.floor(F/60);if(L<60)return`${L} minute${L>1?"s":""} ago`;const b=Math.floor(L/60);if(b<24)return`${b} hour${b>1?"s":""} ago`;const A=Math.floor(b/24);return`${A} day${A>1?"s":""} ago`};k.useEffect(()=>{const P=F=>{O.current&&!O.current.contains(F.target)&&u(!1)};return p&&document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[p]);const B=async()=>{T(!0);try{const P=window.flowstrideEngineAPI;if(P){const F=P.exportDesignState(),L={metadata:{flowName:re,version:(y==null?void 0:y.version)||"1.0",testPlan:(y==null?void 0:y.testPlan)||"",environment:(y==null?void 0:y.environment)||"Local",lastUpdatedBy:(y==null?void 0:y.lastUpdatedBy)||"Local User",lastUpdatedAt:Date.now()},canvas:F},b=new Blob([JSON.stringify(L,null,2)],{type:"application/json"}),A=URL.createObjectURL(b),R=document.createElement("a");R.href=A;const Q=re.replace(/[^a-z0-9]/gi,"_").toLowerCase();R.download=`${Q||"local_workspace"}.json`,document.body.appendChild(R),R.click(),document.body.removeChild(R),URL.revokeObjectURL(A)}n&&await n()}catch(P){console.error("[Flowstride Telemetry Error]: Failed to generate local export file",P)}finally{T(!1)}},oe=(P,F,L)=>{P.stopPropagation(),window.confirm(`Are you sure you want to delete the flow: "${L}"?`)&&a&&a(F)},ne=()=>{V||(D(re),v(!0))},he=async()=>{if(E.current||V)return;E.current=!0;const P=z.trim();if(v(!1),P!==""&&o&&c&&(c(o,P),n)){T(!0);try{await n(P)}finally{T(!1)}}E.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:O,style:{position:"relative"},children:[l.jsxs("button",{onClick:()=>{V||u(!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(Rx,{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(P=>l.jsxs("div",{onClick:()=>{i==null||i(P.id),u(!1)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",cursor:"pointer",backgroundColor:o===P.id?"#f0f7ff":"transparent",color:o===P.id?"#0969da":"#24292f",fontSize:"13px",fontWeight:"500"},onMouseEnter:F=>{o!==P.id&&(F.currentTarget.style.backgroundColor="#f6f8fa")},onMouseLeave:F=>{o!==P.id&&(F.currentTarget.style.backgroundColor="transparent")},children:[l.jsx("span",{children:P.name}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o===P.id&&l.jsx(Fp,{size:14,color:"#0969da"}),o!==P.id&&l.jsx("button",{onClick:F=>oe(F,P.id,P.name),style:{background:"transparent",border:"none",padding:"4px",cursor:"pointer",color:"#8c959f",display:"flex",alignItems:"center",justifyContent:"center"},title:"Delete Flow",children:l.jsx(tm,{size:14})})]})]},P.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(Vp,{size:16})})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g&&!V?l.jsx("input",{autoFocus:!0,value:z,onChange:P=>D(P.target.value),onBlur:he,onKeyDown:P=>{P.key==="Enter"&&(P.preventDefault(),he()),P.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(Yx,{size:16})})]}),V?l.jsxs("span",{style:{fontSize:"11px",fontWeight:"600",color:"#0969da",backgroundColor:"#ddf4ff",padding:"4px 10px",borderRadius:"12px"},children:["Version ",(y==null?void 0:y.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:P=>P.currentTarget.style.border="1px solid #0969da",onBlur:P=>P.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:(y==null?void 0:y.version)||"",onChange:P=>_==null?void 0:_({...y,version:P.target.value}),placeholder:"1.0",style:{border:"none",background:"transparent",color:"#0969da",fontWeight:"600",fontSize:"11px",outline:"none",padding:0,margin:0,width:y!=null&&y.version?`${y.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:(y==null?void 0:y.testPlan)||"N/A"}):l.jsx("input",{type:"text",placeholder:"Click to add",value:(y==null?void 0:y.testPlan)||"",onChange:P=>_==null?void 0:_({...y,testPlan:P.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:P=>P.target.style.borderBottom="1px solid #0969da",onBlur:P=>P.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:(y==null?void 0:y.environment)||"Local"}):l.jsxs("select",{value:(y==null?void 0:y.environment)||"Local",onChange:P=>_==null?void 0:_({...y,environment:P.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(y==null?void 0:y.lastUpdatedAt)," by"," ",l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(y==null?void 0:y.lastUpdatedBy)||"Local User"})]}),(y==null?void 0:y.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:y.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(lm,{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(d*100),"%"]}),l.jsx("button",{onClick:m,title:"Zoom In",style:{background:"transparent",border:"none",cursor:"pointer",padding:"6px",display:"flex",color:"#57606a",borderRadius:"4px"},children:l.jsx(im,{size:16})})]}),l.jsx("button",{onClick:B,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(Lx,{size:16})," Save"]})})]})]})},xy=["Hand","Select","Step","Group","Arrow","Text","Requirement"],my={Hand:Ox,Select:Hx,Step:Up,Group:Px,Arrow:Cx,Text:rm,Requirement:yc},yy=({activeTool:e,onToolSelect:t})=>{const[n,r]=k.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(xc,{size:18}):l.jsx(Rn,{size:18})}),xy.map(o=>{const i=e===o,s=my[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)})]})})};/*! @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 nd(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 vy(e){if(Array.isArray(e))return e}function _y(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,d=!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(m){d=!0,o=m}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}function wy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
575
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sy(e,t){return vy(e)||_y(e,t)||ky(e,t)||wy()}function ky(e,t){if(e){if(typeof e=="string")return nd(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)?nd(e,t):void 0}}const rg=Object.entries,rd=Object.setPrototypeOf,by=Object.isFrozen,Ey=Object.getPrototypeOf,Cy=Object.getOwnPropertyDescriptor;let Ve=Object.freeze,Xe=Object.seal,sr=Object.create,og=typeof Reflect<"u"&&Reflect,_a=og.apply,wa=og.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),jy=De(Array.prototype.lastIndexOf),od=De(Array.prototype.pop),lr=De(Array.prototype.push),Ty=De(Array.prototype.splice),xn=Array.isArray,so=De(String.prototype.toLowerCase),_s=De(String.prototype.toString),id=De(String.prototype.match),Jr=De(String.prototype.replace),ld=De(String.prototype.indexOf),Ry=De(String.prototype.trim),zy=De(Number.prototype.toString),Iy=De(Boolean.prototype.toString),sd=typeof BigInt>"u"?null:De(BigInt.prototype.toString),ad=typeof Symbol>"u"?null:De(Symbol.prototype.toString),Be=De(Object.prototype.hasOwnProperty),eo=De(Object.prototype.toString),We=De(RegExp.prototype.test),On=Ly(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 Ly(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(rd&&rd(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&&(by(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Ay(e){for(let t=0;t<e.length;t++)Be(e,t)||(e[t]=null);return e}function Ze(e){const t=sr(null);for(const r of rg(e)){var n=Sy(r,2);const o=n[0],i=n[1];Be(e,o)&&(xn(i)?t[o]=Ay(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=Ze(i):t[o]=i)}return t}function Ny(e){switch(typeof e){case"string":return e;case"number":return zy(e);case"boolean":return Iy(e);case"bigint":return sd?sd(e):"0";case"symbol":return ad?ad(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=Cy(e,t);if(r){if(r.get)return De(r.get);if(typeof r.value=="function")return De(r.value)}e=Ey(e)}function n(){return null}return n}function Dy(e){try{return We(e,""),!0}catch{return!1}}const cd=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"]),Py=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"]),ks=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"]),Oy=Ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ud=Ve(["#text"]),dd=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"]),bs=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"]),fd=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"]),My=Xe(/{{[\w\W]*|^[\w\W]*}}/g),Fy=Xe(/<%[\w\W]*|^[\w\W]*%>/g),Wy=Xe(/\${[\w\W]*/g),By=Xe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uy=Xe(/^aria-[\-\w]+$/),pd=Xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$y=Xe(/^(?:\w+script|data):/i),Hy=Xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vy=Xe(/^html$/i),Gy=Xe(/^[a-z][.\w]*(-[.\w]+)+$/i),gd=Xe(/<[/\w!]/g),hd=Xe(/<[/\w]/g),Yy=Xe(/<\/no(script|embed|frames)/i),Xy=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},Qy=function(){return typeof window>"u"?null:window},Ky=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}},xd=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?Ze(o.base):{},t[n],o.transform):r};function ig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qy();const t=U=>ig(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,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,h=e.trustedTypes,x=a.prototype,y=Rt(x,"cloneNode"),_=Rt(x,"remove"),w=Rt(x,"nextSibling"),T=Rt(x,"childNodes"),p=Rt(x,"parentNode"),u=Rt(x,"shadowRoot"),g=Rt(x,"attributes"),v=s&&s.prototype?Rt(s.prototype,"nodeType"):null,z=s&&s.prototype?Rt(s.prototype,"nodeName"):null,D=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 O,E="",V,H=!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.')},B=function(f){ae(),re++;try{return O.createHTML(f)}finally{re--}},oe=function(f){ae(),re++;try{return O.createScriptURL(f)}finally{re--}},ne=function(){return H||(V=Ky(h,o),H=!0),V},he=n,P=he.implementation,F=he.createNodeIterator,L=he.createDocumentFragment,b=he.getElementsByTagName,A=r.importNode;let R=xd();t.isSupported=typeof rg=="function"&&typeof p=="function"&&P&&P.createHTMLDocument!==void 0;const Q=My,ee=Fy,ve=Wy,ie=By,de=Uy,I=$y,j=Hy,G=Gy;let Y=pd,$=null;const J=fe({},[...cd,...ws,...Ss,...ks,...ud]);let N=null;const le=fe({},[...dd,...bs,...fd,...wi]);let q=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,zl=!1,qn=!1,Yo=!1,Xo=!1,wc=!0,Sc=!1;const kc="user-content-";let Il=!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 bc=null;const Ec=fe({},["audio","video","img","source","image","track"]);let Al=null;const Cc=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ko="http://www.w3.org/1998/Math/MathML",Zo="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let er=Ot,Nl=!1,Dl=null;const sg=fe({},[Ko,Zo,Ot],_s),jc=Ve(["mi","mo","mn","ms","mtext"]);let Pl=fe({},jc);const Tc=Ve(["annotation-xml"]);let Ol=fe({},Tc);const ag=fe({},["title","style","font","a","script"]);let Br=null;const cg=["application/xhtml+xml","text/html"],ug="text/html";let Ce=null,tr=null;const dg=n.createElement("form"),Rc=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=Ze(f),Br=cg.indexOf(f.PARSER_MEDIA_TYPE)===-1?ug:f.PARSER_MEDIA_TYPE,Ce=Br==="application/xhtml+xml"?_s:so,$=cn(f,"ALLOWED_TAGS",J,{transform:Ce}),N=cn(f,"ALLOWED_ATTR",le,{transform:Ce}),Dl=cn(f,"ALLOWED_NAMESPACES",sg,{transform:_s}),Al=cn(f,"ADD_URI_SAFE_ATTR",Cc,{transform:Ce,base:Cc}),bc=cn(f,"ADD_DATA_URI_TAGS",Ec,{transform:Ce,base:Ec}),Pt=cn(f,"FORBID_CONTENTS",Ll,{transform:Ce}),ue=cn(f,"FORBID_TAGS",Ze({}),{transform:Ce}),ge=cn(f,"FORBID_ATTR",Ze({}),{transform:Ce}),Jn=Be(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?Ze(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,qn=f.RETURN_DOM||!1,Yo=f.RETURN_DOM_FRAGMENT||!1,Xo=f.RETURN_TRUSTED_TYPE||!1,zl=f.FORCE_BODY||!1,wc=f.SANITIZE_DOM!==!1,Sc=f.SANITIZE_NAMED_PROPS||!1,Il=f.KEEP_CONTENT!==!1,Qo=f.IN_PLACE||!1,Y=Dy(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:pd,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"?Ze(f.MATHML_TEXT_INTEGRATION_POINTS):fe({},jc),Ol=Be(f,"HTML_INTEGRATION_POINTS")&&f.HTML_INTEGRATION_POINTS&&typeof f.HTML_INTEGRATION_POINTS=="object"?Ze(f.HTML_INTEGRATION_POINTS):fe({},Tc);const S=Be(f,"CUSTOM_ELEMENT_HANDLING")&&f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING=="object"?Ze(f.CUSTOM_ELEMENT_HANDLING):sr(null);if(q=sr(null),Be(S,"tagNameCheck")&&Rc(S.tagNameCheck)&&(q.tagNameCheck=S.tagNameCheck),Be(S,"attributeNameCheck")&&Rc(S.attributeNameCheck)&&(q.attributeNameCheck=S.attributeNameCheck),Be(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Xe(q),rn&&(Wr=!1),Yo&&(qn=!0),Jn&&($=fe({},ud),N=sr(null),Jn.html===!0&&(fe($,cd),fe(N,dd)),Jn.svg===!0&&(fe($,ws),fe(N,bs),fe(N,wi)),Jn.svgFilters===!0&&(fe($,Ss),fe(N,bs),fe(N,wi)),Jn.mathMl===!0&&(fe($,ks),fe(N,fd),fe(N,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)&&($===J&&($=Ze($)),fe($,f.ADD_TAGS,Ce))),Be(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?Pe.attributeCheck=f.ADD_ATTR:xn(f.ADD_ATTR)&&(N===le&&(N=Ze(N)),fe(N,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=Ze(Pt)),fe(Pt,f.FORBID_CONTENTS,Ce)),Be(f,"ADD_FORBID_CONTENTS")&&xn(f.ADD_FORBID_CONTENTS)&&(Pt===Ll&&(Pt=Ze(Pt)),fe(Pt,f.ADD_FORBID_CONTENTS,Ce)),Il&&($["#text"]=!0),Nn&&fe($,["html","head","body"]),$.table&&(fe($,["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=O;O=f.TRUSTED_TYPES_POLICY;try{E=B("")}catch(K){throw O=M,K}}else f.TRUSTED_TYPES_POLICY===null?(O=void 0,E=""):(O===void 0&&(O=ne()),O&&typeof E=="string"&&(E=B("")));Ve&&Ve(f),tr=f},zc=fe({},[...ws,...Ss,...Py]),Ic=fe({},[...ks,...Oy]),fg=function(f,S,M){return S.namespaceURI===Ot?f==="svg":S.namespaceURI===Ko?f==="svg"&&(M==="annotation-xml"||Pl[M]):!!zc[f]},pg=function(f,S,M){return S.namespaceURI===Ot?f==="math":S.namespaceURI===Zo?f==="math"&&Ol[M]:!!Ic[f]},gg=function(f,S,M){return S.namespaceURI===Zo&&!Ol[M]||S.namespaceURI===Ko&&!Pl[M]?!1:!Ic[f]&&(ag[f]||!zc[f])},hg=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===Zo?fg(M,S,K):f.namespaceURI===Ko?pg(M,S,K):f.namespaceURI===Ot?gg(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")}},qo=function(f){Ur(f);const S=T(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(qn||Yo)try{ln(S)}catch{}else try{S.setAttribute(f,"")}catch{}},xg=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"||N[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&&xg(M);const te=T(M);if(te)for(let se=te.length-1;se>=0;--se)S.push(te[se])}},mg=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(hd,M.data)){try{_(M)}catch{}continue}if(K===gt.element){const se=M,ye=Ce(z?z(M):M.nodeName);try{se.hasAttribute&&se.hasAttribute("patchsrc")&&se.removeAttribute("patchsrc"),se.hasAttribute&&se.hasAttribute("for")&&ye!=="label"&&ye!=="output"&&se.removeAttribute("for")}catch{}}const te=T(M);if(te)for(let se=te.length-1;se>=0;--se)S.push(te[se])}},Lc=function(f){let S=null,M=null;if(zl)f="<remove></remove>"+f;else{const se=id(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=O?B(f):f;if(er===Ot)try{S=new m().parseFromString(K,Br)}catch{}if(!S||!S.documentElement){S=P.createDocument(er,"template",null);try{S.documentElement.innerHTML=Nl?E:K}catch{}}const te=S.body||S.documentElement;return f&&M&&te.insertBefore(n.createTextNode(M),te.childNodes[0]||null),er===Ot?b.call(S,Nn?"html":"body")[0]:Nn?S.documentElement:te},Ac=function(f){const S=D?D(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=D?D(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,ye=>{nr(ye.content)&&Fl(ye.content)})},ei=function(f){const S=z?z(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!==T(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 yg=function(f,S){return!!(on&&f.hasChildNodes()&&!$r(f.firstElementChild)&&We(gd,f.textContent)&&We(gd,f.innerHTML)||on&&f.namespaceURI===Ot&&S==="style"&&$r(f.firstElementChild)||f.nodeType===gt.processingInstruction||on&&f.nodeType===gt.comment&&We(hd,f.data))},vg=function(f,S,M){if(!ue[S]&&Oc(S)&&(q.tagNameCheck instanceof RegExp&&We(q.tagNameCheck,S)||q.tagNameCheck instanceof Function&&q.tagNameCheck(S)))return!1;if(Il&&!Pt[S]){const K=p(f),te=T(f);if(te&&K){const se=te.length;for(let ye=se-1;ye>=0;--ye){const je=f===M?y(te[ye],!0):te[ye];K.insertBefore(je,w(f))}}}return ln(f),!0},Nc=function(f,S,M,K){return f.length===0?S:S===M||S===K?Ze(S):S},Dc=function(f,S){if(Mt(R.beforeSanitizeElements,f,null),f!==S&&p(f)===null)return Qo&&Ur(f),!0;if(ei(f))return ln(f),!0;const M=Ce(z?z(f):f.nodeName);if($=Nc(R.uponSanitizeElement,$,J,Vo),Mt(R.uponSanitizeElement,f,{tagName:M,allowedTags:$}),f!==S&&p(f)===null)return Qo&&Ur(f),!0;if(yg(f,M))return ln(f),!0;if(ue[M]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(M))&&!$[M]){const te=vg(f,M,S);return te===!1&&Mt(R.afterSanitizeElements,f,null),te}if((v?v(f):f.nodeType)===gt.element&&!hg(f)||(M==="noscript"||M==="noembed"||M==="noframes")&&We(Yy,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(R.afterSanitizeElements,f,null),!1},Pc=function(f,S,M){if(ge[S]||on&&S==="patchsrc"||on&&S==="for"&&f!=="label"&&f!=="output"||wc&&(S==="id"||S==="name")&&(M in n||M in dg))return!1;const K=N[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,j,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&f!=="script"&&ld(M,"data:")===0&&bc[f])){if(!($o&&!We(I,Jr(M,j,"")))){if(M)return!1}}}}}else if(!(Oc(f)&&(q.tagNameCheck instanceof RegExp&&We(q.tagNameCheck,f)||q.tagNameCheck instanceof Function&&q.tagNameCheck(f))&&(q.attributeNameCheck instanceof RegExp&&We(q.attributeNameCheck,S)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(S,f))||S==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&We(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))))return!1}}return!0},_g=fe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Oc=function(f){return!_g[so(f)]&&We(G,f)},wg=function(f,S,M,K){if(O&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!M)switch(h.getAttributeType(f,S)){case"TrustedHTML":return B(K);case"TrustedScriptURL":return oe(K)}return K},Sg=function(f,S,M,K){try{M?f.setAttributeNS(M,S,K):f.setAttribute(S,K),ei(f)?ln(f):od(t.removed)}catch{Dn(S,f)}},Mc=function(f){Mt(R.beforeSanitizeAttributes,f,null);const S=f.attributes;if(!S||ei(f))return;N=Nc(R.uponSanitizeAttribute,N,le,Go);const M={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0};let K=S.length;const te=Ce(f.nodeName);for(;K--;){const se=S[K],ye=se.name,je=se.namespaceURI,lt=se.value,st=Ce(ye),Bl=lt;let tt=ye==="value"?Bl:Ry(Bl);if(M.attrName=st,M.attrValue=tt,M.keepAttr=!0,M.forceKeepAttr=void 0,Mt(R.uponSanitizeAttribute,f,M),tt=M.attrValue,Sc&&(st==="id"||st==="name")&&ld(tt,kc)!==0&&(Dn(ye,f),tt=kc+tt),on&&We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tt)){Dn(ye,f);continue}if(st==="attributename"&&id(tt,"href")){Dn(ye,f);continue}if(!M.forceKeepAttr){if(!M.keepAttr){Dn(ye,f);continue}if(!Ho&&We(Xy,tt)){Dn(ye,f);continue}if(rn&&(tt=Jo(tt)),!Pc(te,st,tt)){Dn(ye,f);continue}tt=wg(te,st,je,tt),tt!==Bl&&Sg(f,ye,je,tt)}}Mt(R.afterSanitizeAttributes,f,null)},ti=function(f){let S=null;const M=Ac(f);for(Mt(R.beforeSanitizeShadowDOM,f,null);S=M.nextNode();)if(Mt(R.uponSanitizeShadowNode,S,null),Dc(S,f),Mc(S),nr(S.content)&&ti(S.content),(v?v(S):S.nodeType)===gt.element){const te=u(S);nr(te)&&(Wl(te),ti(te))}Mt(R.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,ye=T(K);if(ye)for(let je=ye.length-1;je>=0;--je)S.push({node:ye[je],shadow:null});if(se){const je=z?z(K):null;if(typeof je=="string"&&Ce(je)==="template"){const lt=K.content;nr(lt)&&S.push({node:lt,shadow:null})}}if(se){const je=u(K);nr(je)&&S.push({node:null,shadow:je},{node:je,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=Ny(U),typeof U!="string"))throw On("dirty is not a string, aborting");if(!t.isSupported)return U;Rl?($=Vo,N=Go):Ml(f),(R.uponSanitizeElement.length>0||R.uponSanitizeAttribute.length>0)&&($=Ze($)),R.uponSanitizeAttribute.length>0&&(N=Ze(N)),t.removed=[];const se=Qo&&typeof U!="string"&&$r(U);if(se){mg(U);const lt=z?z(U):U.nodeName;if(typeof lt=="string"){const st=Ce(lt);if(!$[st]||ue[st])throw qo(U),On("root node is forbidden and cannot be sanitized in-place")}if(ei(U))throw qo(U),On("root node is clobbered and cannot be sanitized in-place");try{Wl(U)}catch(st){throw qo(U),st}}else if($r(U))S=Lc("<!---->"),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(!qn&&!rn&&!Nn&&U.indexOf("<")===-1)return O&&Xo?B(U):U;if(S=Lc(U),!S)return qn?null:Xo?E:""}S&&zl&&ln(S.firstChild);const ye=se?U:S;try{const lt=Ac(ye);for(;K=lt.nextNode();)Dc(K,ye),Mc(K),nr(K.content)&&ti(K.content)}catch(lt){throw se&&(qo(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(qn){if(rn&&Fl(S),Yo)for(te=L.call(S.ownerDocument);S.firstChild;)te.appendChild(S.firstChild);else te=S;return(N.shadowroot||N.shadowrootmode)&&(te=A.call(r,te,!0)),te}let je=Nn?S.outerHTML:S.innerHTML;return Nn&&$["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&We(Vy,S.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
|
|
576
|
-
`+je),rn&&(je=Jo(je)),O&&Xo?B(je):je},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ml(U),Rl=!0,Vo=$,Go=N},t.clearConfig=function(){tr=null,Rl=!1,Vo=null,Go=null,O=V,E=""},t.isValidAttribute=function(U,f,S){tr||Ml({});const M=Ce(U),K=Ce(f);return Pc(M,K,S)},t.addHook=function(U,f){typeof f=="function"&&Be(R,U)&&lr(R[U],f)},t.removeHook=function(U,f){if(Be(R,U)){if(f!==void 0){const S=jy(R[U],f);return S===-1?void 0:Ty(R[U],S,1)[0]}return od(R[U])}},t.removeHooks=function(U){Be(R,U)&&(R[U]=[])},t.removeAllHooks=function(){R=xd()},t}var lg=ig();const md=({label:e,value:t,onChange:n,placeholder:r,minHeight:o,maxLength:i})=>{const s=k.useRef(null);k.useEffect(()=>{s.current&&t!==s.current.innerHTML&&(s.current.innerHTML=t)},[t]);const a=()=>{if(s.current&&n){const h=s.current.innerHTML,x=lg.sanitize(h,{ALLOWED_TAGS:["b","i","em","strong","a","ul","ol","li","br","div","p","font"],ALLOWED_ATTR:["href","target","rel","size"]});n(x)}},c=(h,x,y)=>{h.preventDefault(),document.execCommand(x,!1,y),a()},d=h=>{h.preventDefault();const x=window.prompt("Enter link URL (e.g., https://example.com):");x&&(document.execCommand("createLink",!1,x),a())},m=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:m,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(jx,{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(Fx,{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(Ux,{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(Bx,{size:14})}),l.jsx("button",{onPointerDown:d,style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Link",children:l.jsx(Wx,{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]})]})]})]})},Zy=({entityType:e="Node",entityId:t=2,visualStep:n,title:r="Enter Email",description:o="",stepsContent:i="",expectedResult:s="",referencesContent:a="",priority:c="",onTitleChange:d,onDescriptionChange:m,onStepsContentChange:h,onExpectedResultChange:x,onReferencesChange:y,onPriorityChange:_})=>{const[w,T]=k.useState("Details"),[p,u]=k.useState(!0),[g,v]=k.useState(320),[z,D]=k.useState(!1),O=k.useRef(0),E=k.useRef(320),V=k.useRef(null),[H,re]=k.useState(!1),[ae,B]=k.useState(!1),[oe,ne]=k.useState(!1),[he,P]=k.useState(null),F=a.split(",").filter(Boolean),L=F.filter(j=>j.endsWith(".mp4")||j.endsWith(".webm")).length,b=F.filter(j=>!j.endsWith(".mp4")&&!j.endsWith(".webm")).length,A=j=>{j.preventDefault(),j.currentTarget.setPointerCapture(j.pointerId),D(!0),O.current=j.clientX,E.current=g},R=j=>{if(!z)return;const G=O.current-j.clientX;let Y=E.current+G;Y<260&&(Y=260),Y>800&&(Y=800),v(Y)},Q=j=>{z&&(D(!1),j.currentTarget.releasePointerCapture(j.pointerId))},ee=async j=>{var N;const G=Array.from(j.target.files||[]);if(G.length===0)return;let Y=L,$=b;const J=[];re(!0);for(const le of G){const q="."+(((N=le.name.split(".").pop())==null?void 0:N.toLowerCase())||""),ue=q===".mp4"||q===".webm",ge=[".png",".jpg",".jpeg",".gif"].includes(q);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($>=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}$++}else{window.alert(`Security Block: Unsupported file format ${q}.`);continue}try{const Pe=await fetch("/api/upload",{method:"POST",headers:{"X-File-Extension":q},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(",");y==null||y(le)}re(!1),V.current&&(V.current.value="")},ve=async j=>{if(ae)return;const G=F[j];if(G){B(!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 $=[...F];$.splice(j,1),y==null||y($.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{B(!1)}}},ie={Low:"#2da44e",Medium:"#bf8700",High:"#cf222e",Critical:"#8250df"},de=c||"Low",I=ie[de]||ie.Low;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
577
|
-
.rich-text-editor:empty::before {
|
|
578
|
-
content: attr(data-placeholder);
|
|
579
|
-
color: #8c959f;
|
|
580
|
-
pointer-events: none;
|
|
581
|
-
}
|
|
582
|
-
.rich-text-editor a {
|
|
583
|
-
color: #0969da;
|
|
584
|
-
text-decoration: underline;
|
|
585
|
-
}
|
|
586
|
-
.rich-text-editor ul, .rich-text-editor ol {
|
|
587
|
-
padding-left: 24px;
|
|
588
|
-
margin: 4px 0;
|
|
589
|
-
}
|
|
590
|
-
.rich-text-editor p {
|
|
591
|
-
margin: 0 0 4px 0;
|
|
592
|
-
}
|
|
593
|
-
.rich-text-editor div {
|
|
594
|
-
margin: 0;
|
|
595
|
-
}
|
|
596
|
-
.rich-text-editor font[size="1"] { font-size: 10px; }
|
|
597
|
-
.rich-text-editor font[size="3"] { font-size: 13px; }
|
|
598
|
-
.rich-text-editor font[size="4"] { font-size: 18px; }
|
|
599
|
-
.rich-text-editor font[size="5"] { font-size: 24px; }
|
|
600
|
-
|
|
601
|
-
.rich-text-editor li:has(font[size="1"]) { font-size: 10px; }
|
|
602
|
-
.rich-text-editor li:has(font[size="3"]) { font-size: 13px; }
|
|
603
|
-
.rich-text-editor li:has(font[size="4"]) { font-size: 18px; }
|
|
604
|
-
.rich-text-editor li:has(font[size="5"]) { font-size: 24px; }
|
|
605
|
-
|
|
606
|
-
.flowstride-spin {
|
|
607
|
-
animation: flowstride-spin-anim 1s linear infinite;
|
|
608
|
-
}
|
|
609
|
-
@keyframes flowstride-spin-anim {
|
|
610
|
-
100% { transform: rotate(360deg); }
|
|
611
|
-
}
|
|
612
|
-
`}),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:()=>P(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:j=>j.stopPropagation(),children:[l.jsx("button",{onClick:()=>P(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:j=>j.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:j=>j.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:z?"none":"width 0.2s ease",display:"flex",flexDirection:"column",position:"relative"},children:[p&&l.jsx("div",{onPointerDown:A,onPointerMove:R,onPointerUp:Q,onPointerCancel:Q,style:{position:"absolute",left:"-3px",top:0,bottom:0,width:"6px",cursor:"col-resize",zIndex:50,backgroundColor:z?"#0969da":"transparent",transition:"background-color 0.2s ease"},onMouseEnter:j=>{z||(j.currentTarget.style.backgroundColor="#0969da")},onMouseLeave:j=>{z||(j.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:()=>u(!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:j=>j.currentTarget.style.color="#24292f",onMouseLeave:j=>j.currentTarget.style.color="#8c959f",title:p?"Collapse Property Editor":"Expand Property Editor",children:p?l.jsx(Rn,{size:18}):l.jsx(xc,{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:()=>T("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:()=>T("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:j=>d==null?void 0:d(j.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:j=>d==null?void 0:d(j.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:j=>m==null?void 0:m(j.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(md,{label:"Steps",value:i,onChange:h,placeholder:"Enter steps to reproduce...",minHeight:"80px"}),l.jsx(md,{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: ",L,"/1 • Images: ",b,"/1"]})]}),l.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:[F.map((j,G)=>{const Y=j.endsWith(".mp4")||j.endsWith(".webm");return l.jsxs("div",{onClick:()=>P({url:j,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:j,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:$=>$.currentTarget.play().catch(()=>{}),onMouseLeave:$=>{$.currentTarget.pause(),$.currentTarget.currentTime=0}}):l.jsx("img",{src:j,alt:`Reference ${G}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),l.jsx("button",{onClick:$=>{$.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})})]},`${j}-${G}`)}),(L<1||b<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 j;return(j=V.current)==null?void 0:j.click()},disabled:H,style:{width:"80px",height:"60px",backgroundColor:H?"#f6f8fa":"#ffffff",border:"1px dashed #0969da",borderRadius:"6px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:H?"not-allowed":"pointer",color:H?"#8c959f":"#0969da",transition:"all 0.2s ease"},children:[H?l.jsx(Pr,{size:16,className:"flowstride-spin",style:{marginBottom:"4px"}}):l.jsx(Vp,{size:16,style:{marginBottom:"4px"}}),l.jsx("span",{style:{fontSize:"11px",fontWeight:"500"},children:H?"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:I}}),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(j=>l.jsxs("button",{onClick:()=>{_==null||_(j),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[j]}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f"},children:j})]},j))})]})]})]})}):l.jsx("div",{style:{display:"flex",flexDirection:"column"},children:l.jsx("p",{style:{fontSize:"12px",color:"#57606a",fontFamily:"monospace"},children:"CONNECTIONS UI SCAFFOLD"})})]})]})]})]})},qy=({report:e=[],onDefectSubmit:t,isReadOnly:n=!1})=>{const[r,o]=k.useState(null),[i,s]=k.useState(null),[a,c]=k.useState(null),[d,m]=k.useState(null),[h,x]=k.useState({report:"",media:"",assignedTo:""}),y=k.useRef(null),[_,w]=k.useState(!1),[T,p]=k.useState(!1),u=e.length,g=e.filter(L=>L.status==="Passed").length,v=e.filter(L=>L.status==="Failed").length,z=e.filter(L=>L.status==="Blocked").length,D=e.filter(L=>L.status==="Skipped").length,O=u===0?0:g/u*100,E=u===0?0:v/u*100,V=u===0?0:z/u*100,H=u===0?0:D/u*100,re=100-O-E-V-H;k.useEffect(()=>{const L=e.find(b=>b.status==="Current");L&&L.group_title&&s(L.group_title)},[e]);const ae=[];e.forEach(L=>{const b=L.group_title||"";let A=ae.find(R=>R.groupName===b);A||(A={groupName:b,steps:[]},ae.push(A)),A.steps.push(L)});const B=L=>{switch(L){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=(L,b)=>{const A=e.find(R=>R.id===L);x({report:(A==null?void 0:A.defect_report)||"",media:(A==null?void 0:A.defect_media)||"",assignedTo:(A==null?void 0:A.assigned_to)||""}),c({stepId:L,type:b})},ne=()=>{c(null)},he=()=>{!a||n||(t==null||t(a.stepId,h.report,h.media,h.assignedTo),ne())},P=async L=>{var ve;if(n)return;const b=Array.from(L.target.files||[]);if(b.length===0)return;const A=h.media.split(",").filter(Boolean);let R=A.filter(ie=>ie.endsWith(".mp4")||ie.endsWith(".webm")).length,Q=A.filter(ie=>!ie.endsWith(".mp4")&&!ie.endsWith(".webm")).length;const ee=[];w(!0);for(const ie of b){const de="."+(((ve=ie.name.split(".").pop())==null?void 0:ve.toLowerCase())||""),I=de===".mp4"||de===".webm",j=[".png",".jpg",".jpeg",".gif"].includes(de);if(I){if(R>=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}R++}else if(j){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=[...A,...ee].join(",");x({...h,media:ie})}w(!1),y.current&&(y.current.value="")},F=async L=>{if(T||n)return;const b=h.media.split(",").filter(Boolean),A=b[L];if(A){p(!0);try{const R=await fetch(`/api/defect-media?filepath=${encodeURIComponent(A)}`,{method:"DELETE"});if(!R.ok&&R.status!==404)throw new Error(`Server returned ${R.status}`);const Q=[...b];Q.splice(L,1),x({...h,media:Q.join(",")})}catch(R){console.error("[Flowstride Security Alert]: Physical deletion of defect media failed.",R),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:`
|
|
613
|
-
.flowstride-spin {
|
|
614
|
-
animation: flowstride-spin-anim 1s linear infinite;
|
|
615
|
-
}
|
|
616
|
-
@keyframes flowstride-spin-anim {
|
|
617
|
-
100% { transform: rotate(360deg); }
|
|
618
|
-
}
|
|
619
|
-
`}),d&&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:()=>m(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:L=>L.stopPropagation(),children:[l.jsx("button",{onClick:()=>m(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:L=>L.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:L=>L.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(Cr,{size:20})}),d.type==="video"?l.jsx("video",{src:d.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:d.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(mc,{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:u}),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:z}),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:D}),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:`${O}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#ef4444",width:`${E}%`,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:`${H}%`,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((L,b)=>{const A=L.groupName==="",R=A||i===L.groupName;return l.jsxs("div",{style:{marginBottom:A?"0":"8px"},children:[!A&&l.jsxs("button",{onClick:()=>s(R?null:L.groupName),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:R?"#f8fafc":"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",outline:"none",boxShadow:R?"none":"0 1px 2px rgba(0,0,0,0.02)"},children:[l.jsx("span",{style:{fontSize:"12px",fontWeight:"bold",color:R?"#0f172a":"#475569",textTransform:"uppercase",letterSpacing:"0.05em"},children:L.groupName}),l.jsx(Dr,{size:16,color:"#94a3b8",style:{transform:R?"rotate(180deg)":"none",transition:"transform 0.2s ease"}})]}),R&&l.jsx("div",{style:{position:"relative",borderLeft:"2px solid #e2e8f0",marginLeft:A?"11px":"27px",paddingBottom:"8px",marginTop:A?"0":"16px",transition:"all 0.3s ease"},children:L.steps.map(Q=>{const ee=B(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(nm,{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(yo,{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(ms,{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(Ju,{size:14,color:"#f59e0b",style:{marginRight:"8px"}})," ","Assigned To"]})]})]})]})]},Q.id)})})]},L.groupName||`ungrouped-${b}`)})})})]}),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(ms,{size:20,color:"#10b981"}),a.type==="Failed Report"&&l.jsx(yo,{size:20,color:"#ef4444"}),a.type==="Blocked Report"&&l.jsx(yo,{size:20,color:"#f59e0b"}),a.type==="Assigned To"&&l.jsx(Ju,{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:L=>!n&&x({...h,report:L.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:L=>!n&&x({...h,assignedTo:L.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((L,b)=>{const A=L.endsWith(".mp4")||L.endsWith(".webm");return l.jsxs("div",{onClick:()=>m({url:L,type:A?"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:[A?l.jsx("video",{src:L,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:R=>R.currentTarget.play().catch(()=>{}),onMouseLeave:R=>{R.currentTarget.pause(),R.currentTarget.currentTime=0}}):l.jsx("img",{src:L,alt:`Defect Evidence ${b}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),!n&&l.jsx("button",{onClick:R=>{R.stopPropagation(),F(b)},disabled:T,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:T?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:T?.5:1,transition:"background 0.2s ease"},children:T?l.jsx(Pr,{size:14,className:"flowstride-spin"}):l.jsx(Cr,{size:14})})]},`${L}-${b}`)})}),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(ms,{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:y,onChange:P,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var L;return(L=y.current)==null?void 0:L.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(om,{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(Qx,{size:16})," Save Data"]})]})]})]})]})]})},Jy=()=>{const[e,t]=k.useState(xe.Design),[n,r]=k.useState("Hand"),[o,i]=k.useState(null),[s,a]=k.useState([]),[c,d]=k.useState(1),[m,h]=k.useState(0),[x,y]=k.useState([]),[_,w]=k.useState(void 0),[T,p]=k.useState({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),{activeHistoricalRunId:u,setActiveHistoricalRunId:g}=Je(),v=k.useRef(null),[z,D]=k.useState(null),O=k.useCallback((b,A,R,Q)=>{D({stepNumber:b,defectReport:A,defectMedia:R,assignedTo:Q})},[]),E=async()=>{try{const b=await fetch("/api/templates");if(b.ok){const A=await b.json();y(A.templates||[])}}catch(b){console.error("[Flowstride Telemetry Error]: Failed to fetch local templates",b),at.error("Failed to connect to local file vault.")}};k.useEffect(()=>{let b=!0;return(async()=>{if(await E(),!b||u)return;let R=null;try{const Q=await fetch("/api/state");Q.ok&&(R=(await Q.json()).activeFlowId)}catch(Q){console.warn("[Flowstride Telemetry]: Failed to read physical state vault.",Q)}if(b){if(R&&v.current)try{const Q=await fetch(`/api/template?filename=${encodeURIComponent(R)}`);if(Q.ok){const ee=await Q.json();if(!b)return;v.current.importDesignState(ee),ee.metadata&&p(ee.metadata),w(R);return}}catch{console.warn("[Flowstride Telemetry]: Persisted flow missing, reverting to default.")}if(b&&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()}`;y(ee=>[...ee.filter(ve=>!ve.id.startsWith("unsaved-temp")),{id:Q,name:"New Local Flow"}]),w(Q)}}})(),()=>{b=!1}},[]),k.useEffect(()=>{if(_===void 0)return;(async()=>{const A=_&&!_.startsWith("unsaved-temp")?_:null;try{await fetch("/api/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeFlowId:A})})}catch(R){console.warn("[Flowstride Telemetry]: Failed to sync physical state vault.",R)}})()},[_]),k.useEffect(()=>{if(!u)return;(async()=>{try{const A=await fetch(`/api/run?filename=${encodeURIComponent(u)}`);if(!A.ok)throw new Error("Failed to fetch historical run payload");const R=await A.json();v.current&&(v.current.importDesignState(R),R.executionReport?a(R.executionReport):a([]),R.metadata&&p(R.metadata),w(void 0),i(null),t(xe.Execution),at.success("Historical record loaded successfully."))}catch(A){console.error("[Flowstride Telemetry Error]: Historical load failed",A),at.error("Failed to load the historical run.")}})()},[u]);const V=()=>{d(b=>Math.min(b+.1,3))},H=()=>{d(b=>Math.max(b-.1,.25))},re=()=>{d(1),h(b=>b+1)},ae=(b,A,R,Q="Node",ee,ve,ie,de,I)=>{i(b===null?null:{type:Q,id:b,title:A,description:R,visualStep:ee,stepsContent:ve,expectedResult:ie,references:de,priority:I})},B=async b=>{if(u&&g(null),y(A=>A.filter(R=>!R.id.startsWith("unsaved-temp")||R.id===b)),b.startsWith("unsaved-temp")){v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),w(b),i(null));return}try{const A=await fetch(`/api/template?filename=${encodeURIComponent(b)}`);if(!A.ok)throw new Error("Failed to fetch template payload");const R=await A.json();v.current&&(v.current.importDesignState(R),R.metadata?p(R.metadata):p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),w(b),i(null),at.success(`Loaded ${b.replace(".json","")}`))}catch(A){console.error("[Flowstride Telemetry Error]: Blueprint load failed",A),at.error("Failed to load the selected flow.")}},oe=()=>{if(u&&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 b=`unsaved-temp-${Date.now()}`;y(A=>[...A.filter(R=>!R.id.startsWith("unsaved-temp")),{id:b,name:"New Local Flow"}]),w(b),i(null)}},ne=async b=>{try{if(b.startsWith("unsaved-temp")){y(R=>R.filter(Q=>Q.id!==b)),_===b&&(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 A=await fetch(`/api/template?filename=${encodeURIComponent(b)}`,{method:"DELETE"});if(!A.ok)throw new Error(`Local backend rejected deletion with status: ${A.status}`);at.success(`Deleted ${b.replace(".json","")}`),await E(),_===b&&(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(A){console.error("[Flowstride Telemetry Error]: Failed to delete flow",A),at.error("Failed to delete flow securely.")}},he=(b,A)=>{y(R=>R.map(Q=>Q.id===b?{...Q,name:A}:Q))},P=async b=>{if(!v.current){console.warn("[Flowstride Telemetry]: Canvas bridge is not yet established."),at.error("System not fully initialized.");return}try{const A=v.current.exportDesignState(),R=Date.now(),Q="Local User";let ee="New Local Flow",ve=null;if(b)ee=b,_&&!_.startsWith("unsaved-temp")&&_!==`${b}.json`&&(ve=_);else if(_)if(_.startsWith("unsaved-temp")){const de=x.find(I=>I.id===_);de&&(ee=de.name)}else ee=_.replace(".json","");let ie;if(e===xe.Execution){const de={...T,flowName:ee,testedBy:Q,lastUpdatedAt:R};ie={...A,metadata:de,executionReport:s}}else{const de={...T,flowName:ee,lastUpdatedBy:Q,lastUpdatedAt:R};p(de),ie={...A,metadata:de}}if(e===xe.Execution){const de=`Run_${ee}_${Date.now()}.json`,I=await fetch("/api/save-run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:ie,filename:de})});if(!I.ok)throw new Error(`Local server rejected the run payload with status: ${I.status}`);console.log(`[Flowstride Telemetry]: Execution Run securely vaulted as ${de}`),at.success("Run successfully submitted and vaulted locally.")}else{const de=`${ee}.json`,I=await fetch("/api/save-design",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:ie,filename:de})});if(!I.ok)throw new Error(`Local server rejected the template payload with status: ${I.status}`);const j=await I.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")&&y(G=>G.filter(Y=>Y.id!==_)),await E(),j.filename&&w(j.filename),at.success(`Successfully vaulted ${ee} locally`)}}catch(A){throw console.error("[Flowstride Telemetry Error]: Failed to vault data locally:",A.message),at.error("Failed to vault data securely."),A}},F=async b=>{if(b===xe.Execution&&e===xe.Design)try{await P()}catch{console.warn("[Flowstride Telemetry Error]: Aborting mode switch due to auto save failure.");return}t(b)},L=k.useCallback(b=>{u||a(b)},[u]);return l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",backgroundColor:"#ffffff",color:"#24292f",height:"100%",overflow:"hidden",position:"relative"},children:[l.jsx(gy,{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(hy,{activeMode:e,onModeChange:F,onSave:P,flows:x,activeFlowId:_,onSelectFlow:B,onCreateFlow:oe,onDeleteFlow:ne,onRenameFlow:he,zoomLevel:c,onZoomIn:V,onZoomOut:H,onZoomReset:re,metadata:T,onMetadataChange:p}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[e===xe.Design&&l.jsx(yy,{activeTool:n,onToolSelect:r}),l.jsx(ng,{ref:v,activeMode:e,activeTool:n,onNodeSelected:(b,A,R,Q,ee,ve,ie,de)=>ae(b,A,R,"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:z,onGroupSelected:(b,A)=>ae(b,A,"","Group"),groupUpdateTrigger:(o==null?void 0:o.type)==="Group"?{groupId:o.id,title:o.title}:null,onTextSelected:(b,A)=>ae(b,A,"","Text"),textUpdateTrigger:(o==null?void 0:o.type)==="Text"?{textId:o.id,content:o.title}:null,onExecutionReportChange:L,zoomLevel:c,recenterTrigger:m,onToolChange:r},u?`historical-run-${u}`:"persistent-design-canvas"),e===xe.Design?o?l.jsx(Zy,{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:b=>i({...o,title:b}),onDescriptionChange:b=>i({...o,description:b}),onStepsContentChange:b=>i({...o,stepsContent:b}),onExpectedResultChange:b=>i({...o,expectedResult:b}),onReferencesChange:b=>i({...o,references:b}),onPriorityChange:b=>i({...o,priority:b})}):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(qy,{report:s,onDefectSubmit:O,isReadOnly:!!u})]})]})},e1=()=>{const[e,t]=k.useState([]),[n,r]=k.useState(!0),[o,i]=k.useState(""),{setActiveView:s,setActiveHistoricalRunId:a}=Je();k.useEffect(()=>{(async()=>{try{const x=await fetch("/api/runs");if(x.ok){const _=((await x.json()).runs||[]).sort((w,T)=>T.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)),d=h=>h==="PASS"?"#3fb950":h==="FAIL"?"#f85149":"#d2a8ff",m=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,z,D;const x=h.id.split("/"),y=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",T=((v=h.metrics)==null?void 0:v.passed)||0,p=((z=h.metrics)==null?void 0:z.failed)||0,u=((D=h.metrics)==null?void 0:D.total)||0;return l.jsxs("tr",{style:{borderBottom:"1px solid #21262d",transition:"background-color 0.2s",cursor:"pointer"},onMouseEnter:O=>O.currentTarget.style.backgroundColor="#1c2128",onMouseLeave:O=>O.currentTarget.style.backgroundColor="transparent",onClick:()=>{a(h.id),s("Workspace")},children:[l.jsx("td",{style:{padding:"12px 16px",color:"#c9d1d9"},children:y}),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:d(w),backgroundColor:m(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:u===0?"No steps recorded":l.jsxs(l.Fragment,{children:[l.jsxs("span",{style:{color:T>0?"#3fb950":"#8b949e",fontWeight:T>0?"500":"normal"},children:[T," 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."})]})]})},t1=()=>{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]=k.useState(null),[c,d]=k.useState({}),m=k.useRef(null);k.useEffect(()=>{if(n){const p=setTimeout(()=>{const u=document.querySelector('[data-active-step="true"]');u&&u.scrollIntoView({behavior:"smooth",block:"nearest"})},60);return()=>clearTimeout(p)}},[n,t]),k.useEffect(()=>{var p;if(o){const u=(p=e.find(g=>g.steps.some(v=>v.status==="running")))==null?void 0:p.fileName;u&&u!==s&&a(u)}},[e,o,s]);const h=i.length;let x=0,y=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")?y++:g.every(v=>["pass","passed","success"].includes(v.status))&&x++)});const _=p=>{a(s===p?null:p)},w=(p,u)=>{u.stopPropagation(),d(g=>({...g,[p]:!g[p]}))},T=(p,u=14)=>{switch(p){case"pass":case"passed":case"success":return l.jsx(mc,{size:u,color:"#34d399"});case"failed":return l.jsx(Wp,{size:u,color:"#f87171"});case"running":return l.jsx(Pr,{size:u,color:"#60a5fa",className:"animate-spin"});case"skipped":return l.jsx(Zu,{size:u,color:"#6e7681"});default:return l.jsx(Zu,{size:u,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:y}),l.jsx("div",{style:{fontSize:"10px",color:"#f87171",marginTop:"2px"},children:"FAILED"})]})]}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx(vc,{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:m,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 u=s===p,g=e.filter(E=>E.fileName===p),v=g.flatMap(E=>E.steps);let z="pending";v.length>0?v.some(E=>E.status==="failed")?z="failed":v.some(E=>E.status==="running")?z="running":v.every(E=>["pass","passed","success"].includes(E.status))&&(z="pass"):g.some(E=>E.status==="running")&&(z="running");const D=[];let O=null;return v.forEach(E=>{const V=`${E.type}-${E.description||"Action"}`;!O||O.id!==V?(O={id:V,type:E.type,desc:E.description,status:E.status,steps:[E]},D.push(O)):O.steps.push(E)}),D.forEach(E=>{E.steps.some(V=>V.status==="failed")?E.status="failed":E.steps.some(V=>V.status==="running")?E.status="running":E.steps.every(V=>["pass","passed","success"].includes(V.status))?E.status="pass":E.status="pending"}),l.jsxs("div",{style:{borderBottom:"1px solid #21262d"},children:[l.jsxs("div",{onClick:()=>_(p),onMouseEnter:E=>E.currentTarget.style.backgroundColor="rgba(124, 58, 237, 0.05)",onMouseLeave:E=>E.currentTarget.style.backgroundColor=u?"rgba(124, 58, 237, 0.05)":"transparent",style:{display:"flex",alignItems:"center",padding:"12px 15px",cursor:"pointer",backgroundColor:u?"rgba(124, 58, 237, 0.05)":"transparent",transition:"background 0.2s"},children:[u?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:T(z,16)}),l.jsx("span",{style:{marginLeft:"8px",fontSize:"13px",fontWeight:u?"bold":"600",color:u?"white":"#c9d1d9",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:p})]}),u&&l.jsx("div",{style:{backgroundColor:"#05070a",padding:"5px 0"},children:D.length>0?D.map(E=>{const V=c[E.id]!==!1;return l.jsxs("div",{children:[l.jsxs("div",{onClick:H=>w(E.id,H),onMouseEnter:H=>H.currentTarget.style.backgroundColor="#161b22",onMouseLeave:H=>H.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:T(E.status,12)}),l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold",fontSize:"11px",marginLeft:"6px",flexShrink:0},children:E.type}),E.desc&&l.jsxs("span",{style:{color:"#c9d1d9",fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:"4px"},children:['- "',E.desc,'"']})]}),V&&l.jsx("div",{style:{paddingBottom:"8px"},children:E.steps.map(H=>{const re=n===`${p}:::${H.id}`||o&&n===H.id&&t===p;return l.jsxs("div",{onClick:()=>r(`${p}:::${H.id}`),"data-active-step":re?"true":"false",style:{display:"flex",alignItems:"center",padding:"6px 15px 6px 65px",opacity:H.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:T(H.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:H.command})]},H.id)})})]},E.id)}):l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})})]},p)})]})]})},n1=({isRightPanelOpen:e,onToggleRightPanel:t})=>{const{isRunning:n,timer:r,startExecution:o,stopExecution:i,incrementTimer:s,activeTestFile:a}=Je();k.useEffect(()=>{let h;return n?h=setInterval(()=>{s()},1e3):clearInterval(h),()=>clearInterval(h)},[n,s]);const c=()=>{o(),sl("RERUN_REQ",{filePath:a})},d=()=>{i(),sl("STOP_REQ",{})},m=h=>{const x=Math.floor(h/60).toString().padStart(2,"0"),y=(h%60).toString().padStart(2,"0");return`00:${x}:${y}`};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})]}),(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:m(r)})]})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[l.jsx("button",{onClick:t,style:{background:"none",border:"1px solid #30363d",color:e?"#a78bfa":"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer"},children:e?l.jsx(Gx,{size:16}):l.jsx(Vx,{size:16})}),l.jsx("div",{style:{width:"1px",height:"20px",backgroundColor:"#30363d",margin:"0 5px"}}),n?l.jsxs("button",{onClick:d,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(qx,{size:14,fill:"currentColor"})," Stop"]}):l.jsxs("button",{onClick:c,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(Hp,{size:14,fill:"currentColor"})," Run"]}),l.jsxs("button",{onClick:c,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(Gp,{size:14})," Rerun"]})]})]})};function r1(){const{activeView:e}=Je(),[t,n]=k.useState(!0),[r,o]=k.useState(!1),i=()=>{switch(e){case"Workspace":return l.jsx(Jy,{});case"Runs":return l.jsx(e1,{});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(t1,{})})}),l.jsxs("main",{style:{flex:1,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[l.jsx(n1,{isRightPanelOpen:r,onToggleRightPanel:()=>o(!r)}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(fm,{isRightPanelOpen:r})})]})]});case"Logs":return l.jsx(vm,{});case"Reports":return l.jsx(pm,{});case"TestCase":return l.jsx(mm,{});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(am,{isTestFlowsOpen:t,setTestFlowsOpen:n}),l.jsx("div",{style:{flex:1,display:"flex",height:"100vh",overflow:"hidden"},children:i()})]})}function o1(){const[e,t]=k.useState("Initialising Native Engine...");return k.useEffect(()=>(Yp(),(async()=>{try{await Xp();const r=_m();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")}})(),()=>{xm()}),[]),l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{backgroundColor:"#1e1e1e",color:"#00ff00",padding:"8px",textAlign:"center",fontFamily:"monospace"},children:e}),l.jsx(r1,{})]})}function i1(){const e="flowstride-isolated-engine-canvas",t=k.useRef(null),n=k.useRef(null),r=k.useRef(null),o=k.useRef(!1),[i,s]=k.useState(!1),[a,c]=k.useState(xe.Design),[d,m]=k.useState("Hand"),[h,x]=k.useState(!1),[y,_]=k.useState(null),w=k.useRef(xe.Design),T=k.useRef("Hand"),p=k.useRef(1),u=k.useRef(1),[g,v]=k.useState(null),[z,D]=k.useState(null),O=k.useRef({x:0,y:0}),E=k.useRef({x:0,y:0}),V=k.useRef(!1),H=k.useRef(!1),re=k.useRef(!1),ae=k.useRef(!1),B=k.useRef(!1),oe=k.useRef(!1),ne=k.useRef({dx:0,dy:0,rafId:0}),he=k.useRef({x:0,y:0}),P=(I,j)=>{window.parent.postMessage({type:I,payload:j},window.location.origin)},F=I=>{if(!(!n.current||!document.getElementById(e))&&!o.current){o.current=!0;try{n.current.clear_canvas(),u.current=1;const j=Array.isArray(I.nodes)?I.nodes:[],G=Array.isArray(I.groups)?I.groups:[],Y=Array.isArray(I.texts)?I.texts:[],$=Array.isArray(I.connections)?I.connections:[];j.forEach(N=>{var ue;const le=[N.visual_step||String(N.id),N.title||"",N.description||"",N.steps||"",N.expected_result||"",N.references||"",N.defect_report||"",N.defect_media||"",N.assigned_to||"",N.priority||""].join("|||FLOWSTRIDE|||");(ue=n.current)==null||ue.restore_node_packed(N.id,N.x,N.y,N.width,N.height,le,!1);const q=parseInt(N.visual_step,10);!isNaN(q)&&q>=u.current&&(u.current=q+1)}),G.forEach(N=>{var le;(le=n.current)==null||le.restore_group(N.id,N.x,N.y,N.width,N.height,N.title||"",!1)}),Y.forEach(N=>{var le;(le=n.current)==null||le.restore_text(N.id,N.x,N.y,N.width,N.height,N.content||"",!1)}),$.forEach(N=>{var q;const le=[N.start_anchor||"Center",N.end_anchor||"Center"].join("|||FLOWSTRIDE|||");(q=n.current)==null||q.restore_connection_packed(N.id,N.start_x,N.start_y,N.end_x,N.end_y,N.start_node_id||0,N.end_node_id||0,le,!1)}),j.length+G.length+Y.length>0?(n.current.recenter_view(),E.current.x=n.current.get_pan_offset_x(),E.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),E.current.x=0,E.current.y=0),n.current.render_diagnostic_grid(),console.log("[Flowstride Telemetry]: Blueprint securely restored to WebAssembly memory.")}catch(j){console.error("[Flowstride Telemetry Error]: Failed to safely inject parsed state",j)}finally{o.current=!1}}};k.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(I){throw console.error("[Flowstride Telemetry Error]: Failed to parse state from Wasm",I),I}},importDesignState:I=>{if(!document.getElementById(e)){r.current=I;return}if(n.current)try{n.current.free()}catch{console.warn("[Flowstride Telemetry]: Bypassing poisoned Wasm lock during Hard Reset.")}const j=document.getElementById(e),G=Math.max(1,j.clientWidth),Y=Math.max(1,j.clientHeight);n.current=new al(e,G,Y),n.current.set_mode(w.current);const $=window.devicePixelRatio||1;n.current.update_dimensions(G,Y,$,p.current),F(I)},setMode:I=>{w.current=I,c(I),n.current&&document.getElementById(e)&&(n.current.set_mode(I),n.current.render_diagnostic_grid(),I!==xe.Execution&&D(null))},setTool:I=>{T.current=I,m(I)},setZoom:I=>{if(p.current=I,n.current&&document.getElementById(e)){const j=document.getElementById(e),G=Math.max(1,j.clientWidth),Y=Math.max(1,j.clientHeight),$=window.devicePixelRatio||1;n.current.update_dimensions(G,Y,$,p.current),n.current.render_diagnostic_grid()}},recenterView:()=>{var I,j,G;if(n.current&&document.getElementById(e))try{const Y=n.current.export_design_state(),$=JSON.parse(Y);(((I=$.nodes)==null?void 0:I.length)||0)+(((j=$.groups)==null?void 0:j.length)||0)+(((G=$.texts)==null?void 0:G.length)||0)>0?(n.current.recenter_view(),E.current.x=n.current.get_pan_offset_x(),E.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),E.current.x=0,E.current.y=0),n.current.render_diagnostic_grid()}catch(Y){console.error("[Flowstride Telemetry Error]: Failed to structurally recenter view safely.",Y)}},updateNodeData:(I,j,G,Y,$,J,N)=>{n.current&&document.getElementById(e)&&(n.current.update_node_data(I,j,G,Y,$,J,N),n.current.render_diagnostic_grid())},updateNodeDefectData:(I,j,G,Y)=>{if(n.current&&document.getElementById(e)){n.current.update_node_defect_data(I,j,G,Y);try{const $=n.current.get_execution_report(),J=JSON.parse($);P("EXECUTION_REPORT_CHANGED",J)}catch($){console.error("Security Alert: Failed to safely parse Wasm execution report after defect mutation",$)}}},updateGroupTitle:(I,j)=>{n.current&&document.getElementById(e)&&(n.current.update_group_title(I,j),n.current.render_diagnostic_grid())},updateTextContent:(I,j)=>{n.current&&document.getElementById(e)&&(n.current.update_text_content(I,j),n.current.render_diagnostic_grid())}},()=>{if(delete window.flowstrideEngineAPI,n.current){try{n.current.free()}catch{}n.current=null}}),[]),k.useEffect(()=>{let I=!0;return(async()=>{try{await Xp(),I&&s(!0)}catch(G){console.error("[Flowstride Telemetry Error]: Failed to allocate WebAssembly memory",G)}})(),()=>{I=!1}},[]),k.useEffect(()=>{if(!i)return;let I,j=null;const G=()=>{if(t.current&&n.current&&document.getElementById(e)){const $=Math.max(1,t.current.clientWidth),J=Math.max(1,t.current.clientHeight),N=window.devicePixelRatio||1;n.current.update_dimensions($,J,N,p.current),n.current.render_diagnostic_grid()}},Y=()=>{const $=document.getElementById(e);if(!$){I=requestAnimationFrame(Y);return}if(!n.current){const J=Math.max(1,$.clientWidth),N=Math.max(1,$.clientHeight);n.current=new al(e,J,N),n.current.set_mode(w.current)}G(),r.current?(F(r.current),r.current=null):n.current&&n.current.render_diagnostic_grid(),P("ENGINE_READY"),j=new ResizeObserver(()=>{G()}),j.observe($),window.addEventListener("resize",G)};return I=requestAnimationFrame(Y),()=>{cancelAnimationFrame(I),j&&j.disconnect(),window.removeEventListener("resize",G)}},[i]),k.useEffect(()=>{const I=j=>{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=j.metaKey||j.ctrlKey,$=j.shiftKey,J=j.key.toLowerCase();if(Y&&J==="z"){j.preventDefault(),n.current&&($?n.current.trigger_redo()&&n.current.render_diagnostic_grid():n.current.trigger_undo()&&n.current.render_diagnostic_grid());return}if(Y&&J==="y"){j.preventDefault(),n.current&&n.current.trigger_redo()&&n.current.render_diagnostic_grid();return}if(Y&&J==="c"){j.preventDefault(),n.current&&n.current.copy_to_clipboard();return}if(Y&&J==="v"){j.preventDefault(),n.current&&n.current.paste_from_clipboard()&&n.current.render_diagnostic_grid();return}if(Y&&J==="d"){j.preventDefault(),n.current&&n.current.duplicate_selected()&&n.current.render_diagnostic_grid();return}(j.key==="Backspace"||j.key==="Delete")&&n.current&&n.current.delete_selected_entities()&&(n.current.render_diagnostic_grid(),P("NODE_SELECTED",{id:null,title:"",description:""}),P("GROUP_SELECTED",{id:null,title:""}),P("TEXT_SELECTED",{id:null,content:""}))}else if(w.current===xe.Execution&&["Enter","Delete","Backspace","Tab","Escape"].includes(j.key)&&(j.preventDefault(),n.current)){let Y;if(j.key==="Enter"?Y=vi.Passed:j.key==="Delete"||j.key==="Backspace"?Y=vi.Failed:j.key==="Tab"?Y=vi.Blocked:j.key==="Escape"&&(Y=vi.Skipped),Y!==void 0){n.current.evaluate_current_step(Y)&&(n.current.render_diagnostic_grid(),D(null));try{const J=n.current.get_execution_report(),N=JSON.parse(J);P("EXECUTION_REPORT_CHANGED",N)}catch(J){console.error("Security Alert: Failed to safely parse Wasm report",J)}}}}};return window.addEventListener("keydown",I),()=>{window.removeEventListener("keydown",I)}},[]),k.useEffect(()=>{const I=t.current;if(!I)return;const j=G=>{if(G.preventDefault(),!document.getElementById(e))return;const Y=p.current;E.current.x-=G.deltaX/Y,E.current.y-=G.deltaY/Y,n.current&&(n.current.set_pan_offset(E.current.x,E.current.y),n.current.render_diagnostic_grid())};return I.addEventListener("wheel",j,{passive:!1}),()=>{I.removeEventListener("wheel",j)}},[]);const L=(I,j)=>{if(j.trim()!==""&&n.current&&document.getElementById(e)&&n.current.update_node_visual_step(I,j.trim())){n.current.render_diagnostic_grid();const Y=n.current.get_node_title(I),$=n.current.get_node_description(I),J=n.current.get_node_visual_step(I),N=n.current.get_node_steps(I),le=n.current.get_node_expected_result(I),q=n.current.get_node_references(I),ue=n.current.get_node_priority(I);P("NODE_SELECTED",{id:I,title:Y,description:$,visualStep:J,stepsContent:N,expectedResult:le,references:q,priority:ue});const ge=parseInt(j.trim(),10);isNaN(ge)||(u.current=ge+1)}v(null)},b=()=>{ne.current.rafId&&(cancelAnimationFrame(ne.current.rafId),ne.current.rafId=0),ne.current.dx=0,ne.current.dy=0},A=()=>{if(!n.current||!document.getElementById(e)||ne.current.dx===0&&ne.current.dy===0){ne.current.rafId=0;return}const I=p.current;E.current.x-=ne.current.dx/I,E.current.y-=ne.current.dy/I,n.current.set_pan_offset(E.current.x,E.current.y);const j=he.current.x,G=he.current.y;re.current?n.current.update_group_draw(j,G):V.current?n.current.update_connection_cursor(j,G):H.current?n.current.update_node_drag(j,G):ae.current?n.current.update_group_drag(j,G):B.current?n.current.update_text_drag(j,G):oe.current&&n.current.update_text_resize(j,G),n.current.render_diagnostic_grid(),ne.current.rafId=requestAnimationFrame(A)},R=I=>{if(!n.current||!t.current||!document.getElementById(e))return;const j=t.current.getBoundingClientRect(),G=I.clientX-j.left,Y=I.clientY-j.top,$=p.current,J=G/$,N=Y/$;if(w.current===xe.Execution){const le=J-E.current.x,q=N-E.current.y;try{const ue=n.current.get_active_execution_hover_data(le,q);if(ue){const ge=JSON.parse(ue);D({x:ge.x,y:ge.y,width:ge.width,height:ge.height,stepsHtml:ge.steps})}else z&&D(null)}catch{z&&D(null)}return}if(w.current===xe.Design){if(I.currentTarget.setPointerCapture(I.pointerId),b(),g&&v(null),he.current={x:J,y:N},n.current.check_group_delete_click(J,N)){n.current.render_diagnostic_grid();return}if(T.current==="Hand")x(!0),O.current={x:I.clientX-E.current.x*$,y:I.clientY-E.current.y*$};else if(T.current==="Group")n.current.begin_group_draw(J,N)&&(re.current=!0,n.current.render_diagnostic_grid());else if(T.current==="Arrow")n.current.begin_connection(J,N)&&(V.current=!0,n.current.render_diagnostic_grid());else if(T.current==="Select"){const le=n.current.check_node_menu_click(J,N);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,N)){oe.current=!0,n.current.render_diagnostic_grid();return}const q=n.current.begin_node_drag(J,N);if(q>0){H.current=!0;const ue=n.current.get_node_title(q),ge=n.current.get_node_description(q),Pe=n.current.get_node_visual_step(q),Vt=n.current.get_node_steps(q),Wr=n.current.get_node_expected_result(q),$o=n.current.get_node_references(q),Ho=n.current.get_node_priority(q);P("NODE_SELECTED",{id:q,title:ue,description:ge,visualStep:Pe,stepsContent:Vt,expectedResult:Wr,references:$o,priority:Ho})}else{const ue=n.current.begin_group_drag(J,N);if(ue>0){ae.current=!0;const ge=n.current.get_group_title(ue);P("GROUP_SELECTED",{id:ue,title:ge})}else{const ge=n.current.begin_text_drag(J,N);if(ge>0){B.current=!0;const Pe=n.current.get_text_content(ge);P("TEXT_SELECTED",{id:ge,content:Pe})}else P("NODE_SELECTED",{id:null,title:"",description:""}),P("GROUP_SELECTED",{id:null,title:""}),P("TEXT_SELECTED",{id:null,content:""})}}n.current.render_diagnostic_grid()}}},Q=I=>{if(w.current!==xe.Design||!n.current||!t.current||!document.getElementById(e))return;const j=t.current.getBoundingClientRect(),G=I.clientX-j.left,Y=I.clientY-j.top,$=p.current,J=G/$,N=Y/$;if(he.current={x:J,y:N},h){const le=(I.clientX-O.current.x)/$,q=(I.clientY-O.current.y)/$;E.current={x:le,y:q},n.current.set_pan_offset(le,q),n.current.render_diagnostic_grid()}else if(T.current==="Select"&&!h&&!re.current&&!V.current&&!H.current&&!ae.current&&!B.current&&!oe.current&&n.current.check_text_resize_handle(J,N)>0?y!=="ew-resize"&&_("ew-resize"):y!==null&&_(null),oe.current&&T.current==="Select"?(n.current.update_text_resize(J,N),n.current.render_diagnostic_grid()):re.current&&T.current==="Group"?(n.current.update_group_draw(J,N),n.current.render_diagnostic_grid()):V.current&&T.current==="Arrow"?(n.current.update_connection_cursor(J,N),n.current.render_diagnostic_grid()):H.current&&T.current==="Select"?(n.current.update_node_drag(J,N),n.current.render_diagnostic_grid()):ae.current&&T.current==="Select"?(n.current.update_group_drag(J,N),n.current.render_diagnostic_grid()):B.current&&T.current==="Select"&&(n.current.update_text_drag(J,N),n.current.render_diagnostic_grid()),re.current||V.current||H.current||ae.current||B.current||oe.current){let ue=0,ge=0;G<40?ue=-12*(1-Math.max(0,G)/40):G>j.width-40&&(ue=12*(1-Math.max(0,j.width-G)/40)),Y<40?ge=-12*(1-Math.max(0,Y)/40):Y>j.height-40&&(ge=12*(1-Math.max(0,j.height-Y)/40)),ne.current.dx=ue,ne.current.dy=ge,(ue!==0||ge!==0)&&!ne.current.rafId?ne.current.rafId=requestAnimationFrame(A):ue===0&&ge===0&&ne.current.rafId&&b()}},ee=I=>{var le;I.currentTarget.hasPointerCapture(I.pointerId)&&I.currentTarget.releasePointerCapture(I.pointerId),b(),h&&x(!1);const j=(le=t.current)==null?void 0:le.getBoundingClientRect();if(!j||!n.current||!document.getElementById(e))return;const G=I.clientX-j.left,Y=I.clientY-j.top,$=p.current,J=G/$,N=Y/$;oe.current&&T.current==="Select"&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),oe.current=!1),re.current&&T.current==="Group"&&(n.current.complete_group_draw(J,N,"NEW TEST GROUP"),n.current.render_diagnostic_grid(),re.current=!1),V.current&&T.current==="Arrow"&&(n.current.complete_connection(J,N),n.current.render_diagnostic_grid(),V.current=!1),H.current&&T.current==="Select"&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),H.current=!1),ae.current&&T.current==="Select"&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),B.current&&T.current==="Select"&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),B.current=!1)},ve=I=>{I.currentTarget.hasPointerCapture(I.pointerId)&&I.currentTarget.releasePointerCapture(I.pointerId),b(),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),H.current&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),H.current=!1),ae.current&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),B.current&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),B.current=!1))},ie=I=>{if(w.current===xe.Design&&n.current&&t.current&&document.getElementById(e)){const j=t.current.getBoundingClientRect(),G=I.clientX-j.left,Y=I.clientY-j.top,$=p.current,J=G/$,N=Y/$,le=J-E.current.x,q=N-E.current.y;if(T.current==="Step"){const ue="New Step",ge="Enter description here",Pe=u.current.toString(),Vt=n.current.add_node(le,q,Pe,ue,ge,!0);u.current+=1,n.current.render_diagnostic_grid(),P("NODE_SELECTED",{id:Vt,title:ue,description:ge,visualStep:Pe,stepsContent:"",expectedResult:"",references:"",priority:""})}else if(T.current==="Text"){const ue="New Text Block",ge=n.current.add_text(le,q,ue,!0);n.current.render_diagnostic_grid(),P("TEXT_SELECTED",{id:ge,content:ue}),P("TOOL_CHANGED","Select")}}},de=()=>a===xe.Execution?"pointer":oe.current?"ew-resize":y||(d==="Step"||d==="Group"?"crosshair":d==="Text"?"text":d==="Select"?H.current||ae.current||B.current?"grabbing":"pointer":d==="Hand"?h?"grabbing":"grab":d==="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:`
|
|
620
|
-
body { margin: 0; padding: 0; overflow: hidden; }
|
|
621
|
-
.flowstride-tooltip-fade-in {
|
|
622
|
-
animation: flowstride-tooltip-fade-in-anim 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
623
|
-
}
|
|
624
|
-
@keyframes flowstride-tooltip-fade-in-anim {
|
|
625
|
-
0% { opacity: 0; transform: translateY(5px) scale(0.98); }
|
|
626
|
-
100% { opacity: 1; transform: translateY(0) scale(1); }
|
|
627
|
-
}
|
|
628
|
-
.rich-text-preview font[size="1"] { font-size: 10px; }
|
|
629
|
-
.rich-text-preview font[size="3"] { font-size: 13px; }
|
|
630
|
-
.rich-text-preview font[size="4"] { font-size: 18px; }
|
|
631
|
-
.rich-text-preview font[size="5"] { font-size: 24px; }
|
|
632
|
-
.rich-text-preview li:has(font[size="1"]) { font-size: 10px; }
|
|
633
|
-
.rich-text-preview li:has(font[size="3"]) { font-size: 13px; }
|
|
634
|
-
.rich-text-preview li:has(font[size="4"]) { font-size: 18px; }
|
|
635
|
-
.rich-text-preview li:has(font[size="5"]) { font-size: 24px; }
|
|
636
|
-
.rich-text-preview ul, .rich-text-preview ol { padding-left: 20px; margin: 4px 0; }
|
|
637
|
-
.rich-text-preview p { margin: 0 0 4px 0; }
|
|
638
|
-
`}),l.jsx("canvas",{id:e,ref:t,onClick:ie,onPointerDown:R,onPointerMove:Q,onPointerUp:ee,onPointerCancel:ve,style:{width:"100%",height:"100%",display:"block",cursor:de(),touchAction:"none"}}),z&&l.jsxs("div",{className:"flowstride-tooltip-fade-in",style:{position:"absolute",left:(z.x+E.current.x)*p.current+z.width*p.current+24,top:(z.y+E.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:lg.sanitize(z.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:I=>I.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:I=>v({...g,value:I.target.value}),onKeyDown:I=>{I.key==="Enter"&&L(g.nodeId,g.value),I.key==="Escape"&&v(null)},style:{width:"120px",padding:"6px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",fontSize:"13px",color:"#24292f"}})]})]})}const yd=Es.createRoot(document.getElementById("root"));window.location.search.includes("frame=engine")?yd.render(l.jsx(i1,{})):yd.render(l.jsx(o1,{}));
|