@bluelibs/runner-dev 4.1.0 → 4.2.0
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/AI.md +40 -43
- package/README.md +70 -0
- package/dist/architect/core/errors.d.ts +39 -0
- package/dist/architect/core/errors.js +143 -0
- package/dist/architect/core/errors.js.map +1 -0
- package/dist/architect/core/index.d.ts +3 -0
- package/dist/architect/core/index.js +21 -0
- package/dist/architect/core/index.js.map +1 -0
- package/dist/architect/core/interfaces.d.ts +158 -0
- package/dist/architect/core/interfaces.js +3 -0
- package/dist/architect/core/interfaces.js.map +1 -0
- package/dist/architect/core/types.d.ts +544 -0
- package/dist/architect/core/types.js +49 -0
- package/dist/architect/core/types.js.map +1 -0
- package/dist/architect/execution/executor.d.ts +23 -0
- package/dist/architect/execution/executor.js +476 -0
- package/dist/architect/execution/executor.js.map +1 -0
- package/dist/architect/execution/index.d.ts +1 -0
- package/dist/architect/execution/index.js +19 -0
- package/dist/architect/execution/index.js.map +1 -0
- package/dist/architect/executor.d.ts +7 -0
- package/dist/architect/executor.js +150 -0
- package/dist/architect/executor.js.map +1 -0
- package/dist/architect/index.d.ts +45 -0
- package/dist/architect/index.js +76 -0
- package/dist/architect/index.js.map +1 -0
- package/dist/architect/llmClient.d.ts +10 -0
- package/dist/architect/llmClient.js +33 -0
- package/dist/architect/llmClient.js.map +1 -0
- package/dist/architect/models/base.d.ts +16 -0
- package/dist/architect/models/base.js +68 -0
- package/dist/architect/models/base.js.map +1 -0
- package/dist/architect/models/factory.d.ts +16 -0
- package/dist/architect/models/factory.js +73 -0
- package/dist/architect/models/factory.js.map +1 -0
- package/dist/architect/models/index.d.ts +3 -0
- package/dist/architect/models/index.js +21 -0
- package/dist/architect/models/index.js.map +1 -0
- package/dist/architect/models/openai.d.ts +7 -0
- package/dist/architect/models/openai.js +71 -0
- package/dist/architect/models/openai.js.map +1 -0
- package/dist/architect/planner.d.ts +9 -0
- package/dist/architect/planner.js +42 -0
- package/dist/architect/planner.js.map +1 -0
- package/dist/architect/planning/index.d.ts +4 -0
- package/dist/architect/planning/index.js +22 -0
- package/dist/architect/planning/index.js.map +1 -0
- package/dist/architect/planning/optimizer.d.ts +14 -0
- package/dist/architect/planning/optimizer.js +275 -0
- package/dist/architect/planning/optimizer.js.map +1 -0
- package/dist/architect/planning/planner.d.ts +15 -0
- package/dist/architect/planning/planner.js +124 -0
- package/dist/architect/planning/planner.js.map +1 -0
- package/dist/architect/planning/prompts.d.ts +6 -0
- package/dist/architect/planning/prompts.js +111 -0
- package/dist/architect/planning/prompts.js.map +1 -0
- package/dist/architect/planning/validator.d.ts +16 -0
- package/dist/architect/planning/validator.js +331 -0
- package/dist/architect/planning/validator.js.map +1 -0
- package/dist/architect/prompt.d.ts +1 -0
- package/dist/architect/prompt.js +13 -0
- package/dist/architect/prompt.js.map +1 -0
- package/dist/architect/types.d.ts +4 -0
- package/dist/architect/types.js +24 -0
- package/dist/architect/types.js.map +1 -0
- package/dist/cli/format.d.ts +19 -0
- package/dist/cli/format.js +62 -0
- package/dist/cli/format.js.map +1 -0
- package/dist/cli/init.d.ts +1 -0
- package/dist/cli/init.js +279 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/query.js +69 -0
- package/dist/cli/query.js.map +1 -1
- package/dist/cli.js +48 -21
- package/dist/cli.js.map +1 -1
- package/dist/code.d.ts +50 -0
- package/dist/code.js +357 -0
- package/dist/code.js.map +1 -0
- package/dist/generated/resolvers-types.d.ts +150 -29
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/cli.config.resource.d.ts +7 -0
- package/dist/resources/cli.config.resource.js +11 -0
- package/dist/resources/cli.config.resource.js.map +1 -0
- package/dist/resources/coverage.resource.d.ts +19 -0
- package/dist/resources/coverage.resource.js +213 -0
- package/dist/resources/coverage.resource.js.map +1 -0
- package/dist/resources/dev.resource.js +0 -2
- package/dist/resources/dev.resource.js.map +1 -1
- package/dist/resources/graphql.cli.resource.d.ts +4 -0
- package/dist/resources/graphql.cli.resource.js +27 -0
- package/dist/resources/graphql.cli.resource.js.map +1 -0
- package/dist/resources/graphql.query.cli.task.d.ts +47 -0
- package/dist/resources/graphql.query.cli.task.js +54 -0
- package/dist/resources/graphql.query.cli.task.js.map +1 -0
- package/dist/resources/introspector.cli.resource.d.ts +6 -0
- package/dist/resources/introspector.cli.resource.js +17 -0
- package/dist/resources/introspector.cli.resource.js.map +1 -0
- package/dist/resources/live.resource.d.ts +2 -1
- package/dist/resources/live.resource.js +4 -2
- package/dist/resources/live.resource.js.map +1 -1
- package/dist/resources/models/Introspector.d.ts +1 -1
- package/dist/resources/models/Introspector.js +5 -34
- package/dist/resources/models/Introspector.js.map +1 -1
- package/dist/resources/models/initializeFromStore.js +26 -34
- package/dist/resources/models/initializeFromStore.js.map +1 -1
- package/dist/resources/models/initializeFromStore.utils.js +25 -6
- package/dist/resources/models/initializeFromStore.utils.js.map +1 -1
- package/dist/resources/models/introspector.tools.js +2 -2
- package/dist/resources/models/introspector.tools.js.map +1 -1
- package/dist/resources/routeHandlers/getDocsData.d.ts +6 -0
- package/dist/resources/routeHandlers/getDocsData.js +106 -0
- package/dist/resources/routeHandlers/getDocsData.js.map +1 -1
- package/dist/resources/routeHandlers/registerHttpRoutes.hook.d.ts +4 -0
- package/dist/resources/routeHandlers/registerHttpRoutes.hook.js +9 -7
- package/dist/resources/routeHandlers/registerHttpRoutes.hook.js.map +1 -1
- package/dist/resources/server.resource.d.ts +3 -0
- package/dist/resources/server.resource.js +8 -1
- package/dist/resources/server.resource.js.map +1 -1
- package/dist/resources/swap.cli.resource.d.ts +11 -0
- package/dist/resources/swap.cli.resource.js +54 -0
- package/dist/resources/swap.cli.resource.js.map +1 -0
- package/dist/schema/context.d.ts +2 -0
- package/dist/schema/model.d.ts +4 -1
- package/dist/schema/model.js.map +1 -1
- package/dist/schema/mutation.js +38 -0
- package/dist/schema/mutation.js.map +1 -1
- package/dist/schema/query.js +22 -18
- package/dist/schema/query.js.map +1 -1
- package/dist/schema/types/BaseElementCommon.d.ts +2 -4
- package/dist/schema/types/BaseElementCommon.js +28 -0
- package/dist/schema/types/BaseElementCommon.js.map +1 -1
- package/dist/schema/types/CoverageType.d.ts +7 -0
- package/dist/schema/types/CoverageType.js +54 -0
- package/dist/schema/types/CoverageType.js.map +1 -0
- package/dist/schema/types/LiveType.js +4 -0
- package/dist/schema/types/LiveType.js.map +1 -1
- package/dist/schema/types/ResourceType.js +6 -0
- package/dist/schema/types/ResourceType.js.map +1 -1
- package/dist/schema/types/TagType.js +4 -3
- package/dist/schema/types/TagType.js.map +1 -1
- package/dist/schema/types/index.d.ts +1 -0
- package/dist/schema/types/index.js +3 -1
- package/dist/schema/types/index.js.map +1 -1
- package/dist/ui/.vite/manifest.json +2 -2
- package/dist/ui/assets/docs-DR80KoAA.js +416 -0
- package/dist/ui/assets/docs-DR80KoAA.js.map +1 -0
- package/dist/ui/assets/docs-WKK9Zcu5.css +1 -0
- package/dist/utils/path.js +10 -0
- package/dist/utils/path.js.map +1 -1
- package/package.json +12 -8
- package/dist/ui/assets/docs-DVEzFAJo.css +0 -1
- package/dist/ui/assets/docs-l9XdmrRL.js +0 -174
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
var Dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Pi={exports:{}},he={};/**
|
|
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 Uc;function hf(){if(Uc)return he;Uc=1;var o=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),F=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),U=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),A=Symbol.iterator;function T(g){return g===null||typeof g!="object"?null:(g=A&&g[A]||g["@@iterator"],typeof g=="function"?g:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,p={};function S(g,E,oe){this.props=g,this.context=E,this.refs=p,this.updater=oe||Y}S.prototype.isReactComponent={},S.prototype.setState=function(g,E){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,E,"setState")},S.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function $(){}$.prototype=S.prototype;function j(g,E,oe){this.props=g,this.context=E,this.refs=p,this.updater=oe||Y}var N=j.prototype=new $;N.constructor=j,D(N,S.prototype),N.isPureReactComponent=!0;var C=Array.isArray,L=Object.prototype.hasOwnProperty,R={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function te(g,E,oe){var se,ce={},de=null,ge=null;if(E!=null)for(se in E.ref!==void 0&&(ge=E.ref),E.key!==void 0&&(de=""+E.key),E)L.call(E,se)&&!W.hasOwnProperty(se)&&(ce[se]=E[se]);var pe=arguments.length-2;if(pe===1)ce.children=oe;else if(1<pe){for(var xe=Array(pe),Oe=0;Oe<pe;Oe++)xe[Oe]=arguments[Oe+2];ce.children=xe}if(g&&g.defaultProps)for(se in pe=g.defaultProps,pe)ce[se]===void 0&&(ce[se]=pe[se]);return{$$typeof:o,type:g,key:de,ref:ge,props:ce,_owner:R.current}}function G(g,E){return{$$typeof:o,type:g.type,key:E,ref:g.ref,props:g.props,_owner:g._owner}}function ae(g){return typeof g=="object"&&g!==null&&g.$$typeof===o}function ve(g){var E={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(oe){return E[oe]})}var Ne=/\/+/g;function Te(g,E){return typeof g=="object"&&g!==null&&g.key!=null?ve(""+g.key):E.toString(36)}function De(g,E,oe,se,ce){var de=typeof g;(de==="undefined"||de==="boolean")&&(g=null);var ge=!1;if(g===null)ge=!0;else switch(de){case"string":case"number":ge=!0;break;case"object":switch(g.$$typeof){case o:case u:ge=!0}}if(ge)return ge=g,ce=ce(ge),g=se===""?"."+Te(ge,0):se,C(ce)?(oe="",g!=null&&(oe=g.replace(Ne,"$&/")+"/"),De(ce,E,oe,"",function(Oe){return Oe})):ce!=null&&(ae(ce)&&(ce=G(ce,oe+(!ce.key||ge&&ge.key===ce.key?"":(""+ce.key).replace(Ne,"$&/")+"/")+g)),E.push(ce)),1;if(ge=0,se=se===""?".":se+":",C(g))for(var pe=0;pe<g.length;pe++){de=g[pe];var xe=se+Te(de,pe);ge+=De(de,E,oe,xe,ce)}else if(xe=T(g),typeof xe=="function")for(g=xe.call(g),pe=0;!(de=g.next()).done;)de=de.value,xe=se+Te(de,pe++),ge+=De(de,E,oe,xe,ce);else if(de==="object")throw E=String(g),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.");return ge}function Q(g,E,oe){if(g==null)return g;var se=[],ce=0;return De(g,se,"","",function(de){return E.call(oe,de,ce++)}),se}function fe(g){if(g._status===-1){var E=g._result;E=E(),E.then(function(oe){(g._status===0||g._status===-1)&&(g._status=1,g._result=oe)},function(oe){(g._status===0||g._status===-1)&&(g._status=2,g._result=oe)}),g._status===-1&&(g._status=0,g._result=E)}if(g._status===1)return g._result.default;throw g._result}var me={current:null},z={transition:null},J={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:z,ReactCurrentOwner:R};function H(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:Q,forEach:function(g,E,oe){Q(g,function(){E.apply(this,arguments)},oe)},count:function(g){var E=0;return Q(g,function(){E++}),E},toArray:function(g){return Q(g,function(E){return E})||[]},only:function(g){if(!ae(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},he.Component=S,he.Fragment=a,he.Profiler=f,he.PureComponent=j,he.StrictMode=m,he.Suspense=I,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,he.act=H,he.cloneElement=function(g,E,oe){if(g==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var se=D({},g.props),ce=g.key,de=g.ref,ge=g._owner;if(E!=null){if(E.ref!==void 0&&(de=E.ref,ge=R.current),E.key!==void 0&&(ce=""+E.key),g.type&&g.type.defaultProps)var pe=g.type.defaultProps;for(xe in E)L.call(E,xe)&&!W.hasOwnProperty(xe)&&(se[xe]=E[xe]===void 0&&pe!==void 0?pe[xe]:E[xe])}var xe=arguments.length-2;if(xe===1)se.children=oe;else if(1<xe){pe=Array(xe);for(var Oe=0;Oe<xe;Oe++)pe[Oe]=arguments[Oe+2];se.children=pe}return{$$typeof:o,type:g.type,key:ce,ref:de,props:se,_owner:ge}},he.createContext=function(g){return g={$$typeof:F,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},g.Provider={$$typeof:x,_context:g},g.Consumer=g},he.createElement=te,he.createFactory=function(g){var E=te.bind(null,g);return E.type=g,E},he.createRef=function(){return{current:null}},he.forwardRef=function(g){return{$$typeof:_,render:g}},he.isValidElement=ae,he.lazy=function(g){return{$$typeof:V,_payload:{_status:-1,_result:g},_init:fe}},he.memo=function(g,E){return{$$typeof:U,type:g,compare:E===void 0?null:E}},he.startTransition=function(g){var E=z.transition;z.transition={};try{g()}finally{z.transition=E}},he.unstable_act=H,he.useCallback=function(g,E){return me.current.useCallback(g,E)},he.useContext=function(g){return me.current.useContext(g)},he.useDebugValue=function(){},he.useDeferredValue=function(g){return me.current.useDeferredValue(g)},he.useEffect=function(g,E){return me.current.useEffect(g,E)},he.useId=function(){return me.current.useId()},he.useImperativeHandle=function(g,E,oe){return me.current.useImperativeHandle(g,E,oe)},he.useInsertionEffect=function(g,E){return me.current.useInsertionEffect(g,E)},he.useLayoutEffect=function(g,E){return me.current.useLayoutEffect(g,E)},he.useMemo=function(g,E){return me.current.useMemo(g,E)},he.useReducer=function(g,E,oe){return me.current.useReducer(g,E,oe)},he.useRef=function(g){return me.current.useRef(g)},he.useState=function(g){return me.current.useState(g)},he.useSyncExternalStore=function(g,E,oe){return me.current.useSyncExternalStore(g,E,oe)},he.useTransition=function(){return me.current.useTransition()},he.version="18.3.1",he}var Bc;function Hi(){return Bc||(Bc=1,Pi.exports=hf()),Pi.exports}var b=Hi();const Ce=ru(b);var Ds={},Mi={exports:{}},rt={},$i={exports:{}},Oi={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.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 Vc;function mf(){return Vc||(Vc=1,(function(o){function u(z,J){var H=z.length;z.push(J);e:for(;0<H;){var g=H-1>>>1,E=z[g];if(0<f(E,J))z[g]=J,z[H]=E,H=g;else break e}}function a(z){return z.length===0?null:z[0]}function m(z){if(z.length===0)return null;var J=z[0],H=z.pop();if(H!==J){z[0]=H;e:for(var g=0,E=z.length,oe=E>>>1;g<oe;){var se=2*(g+1)-1,ce=z[se],de=se+1,ge=z[de];if(0>f(ce,H))de<E&&0>f(ge,ce)?(z[g]=ge,z[de]=H,g=de):(z[g]=ce,z[se]=H,g=se);else if(de<E&&0>f(ge,H))z[g]=ge,z[de]=H,g=de;else break e}}return J}function f(z,J){var H=z.sortIndex-J.sortIndex;return H!==0?H:z.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var x=performance;o.unstable_now=function(){return x.now()}}else{var F=Date,_=F.now();o.unstable_now=function(){return F.now()-_}}var I=[],U=[],V=1,A=null,T=3,Y=!1,D=!1,p=!1,S=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(z){for(var J=a(U);J!==null;){if(J.callback===null)m(U);else if(J.startTime<=z)m(U),J.sortIndex=J.expirationTime,u(I,J);else break;J=a(U)}}function C(z){if(p=!1,N(z),!D)if(a(I)!==null)D=!0,fe(L);else{var J=a(U);J!==null&&me(C,J.startTime-z)}}function L(z,J){D=!1,p&&(p=!1,$(te),te=-1),Y=!0;var H=T;try{for(N(J),A=a(I);A!==null&&(!(A.expirationTime>J)||z&&!ve());){var g=A.callback;if(typeof g=="function"){A.callback=null,T=A.priorityLevel;var E=g(A.expirationTime<=J);J=o.unstable_now(),typeof E=="function"?A.callback=E:A===a(I)&&m(I),N(J)}else m(I);A=a(I)}if(A!==null)var oe=!0;else{var se=a(U);se!==null&&me(C,se.startTime-J),oe=!1}return oe}finally{A=null,T=H,Y=!1}}var R=!1,W=null,te=-1,G=5,ae=-1;function ve(){return!(o.unstable_now()-ae<G)}function Ne(){if(W!==null){var z=o.unstable_now();ae=z;var J=!0;try{J=W(!0,z)}finally{J?Te():(R=!1,W=null)}}else R=!1}var Te;if(typeof j=="function")Te=function(){j(Ne)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,Q=De.port2;De.port1.onmessage=Ne,Te=function(){Q.postMessage(null)}}else Te=function(){S(Ne,0)};function fe(z){W=z,R||(R=!0,Te())}function me(z,J){te=S(function(){z(o.unstable_now())},J)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(z){z.callback=null},o.unstable_continueExecution=function(){D||Y||(D=!0,fe(L))},o.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<z?Math.floor(1e3/z):5},o.unstable_getCurrentPriorityLevel=function(){return T},o.unstable_getFirstCallbackNode=function(){return a(I)},o.unstable_next=function(z){switch(T){case 1:case 2:case 3:var J=3;break;default:J=T}var H=T;T=J;try{return z()}finally{T=H}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var H=T;T=z;try{return J()}finally{T=H}},o.unstable_scheduleCallback=function(z,J,H){var g=o.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?g+H:g):H=g,z){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=H+E,z={id:V++,callback:J,priorityLevel:z,startTime:H,expirationTime:E,sortIndex:-1},H>g?(z.sortIndex=H,u(U,z),a(I)===null&&z===a(U)&&(p?($(te),te=-1):p=!0,me(C,H-g))):(z.sortIndex=E,u(I,z),D||Y||(D=!0,fe(L))),z},o.unstable_shouldYield=ve,o.unstable_wrapCallback=function(z){var J=T;return function(){var H=T;T=J;try{return z.apply(this,arguments)}finally{T=H}}}})(Oi)),Oi}var Hc;function pf(){return Hc||(Hc=1,$i.exports=mf()),$i.exports}/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.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
|
-
*/var Wc;function vf(){if(Wc)return rt;Wc=1;var o=Hi(),u=pf();function a(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 m=new Set,f={};function x(e,t){F(e,t),F(e+"Capture",t)}function F(e,t){for(f[e]=t,e=0;e<t.length;e++)m.add(t[e])}var _=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),I=Object.prototype.hasOwnProperty,U=/^[: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]*$/,V={},A={};function T(e){return I.call(A,e)?!0:I.call(V,e)?!1:U.test(e)?A[e]=!0:(V[e]=!0,!1)}function Y(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 D(e,t,n,r){if(t===null||typeof t>"u"||Y(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 p(e,t,n,r,l,i,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=c}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new p(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){S[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function j(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($,j);S[t]=new p(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($,j);S[t]=new p(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($,j);S[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});function N(e,t,n,r){var l=S.hasOwnProperty(t)?S[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D(t,n,l,r)&&(n=null),r||l===null?T(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),R=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),ve=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),me=Symbol.for("react.offscreen"),z=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,g;function E(e){if(g===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);g=t&&t[1]||""}return`
|
|
26
|
-
`+g+e}var oe=!1;function se(e,t){if(!e||oe)return"";oe=!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(w){var r=w}Reflect.construct(e,[],t)}else{try{t.call()}catch(w){r=w}e.call(t.prototype)}else{try{throw Error()}catch(w){r=w}e()}}catch(w){if(w&&r&&typeof w.stack=="string"){for(var l=w.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),c=l.length-1,d=i.length-1;1<=c&&0<=d&&l[c]!==i[d];)d--;for(;1<=c&&0<=d;c--,d--)if(l[c]!==i[d]){if(c!==1||d!==1)do if(c--,d--,0>d||l[c]!==i[d]){var h=`
|
|
29
|
-
`+l[c].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=c&&0<=d);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?E(e):""}function ce(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function de(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 W:return"Fragment";case R:return"Portal";case G:return"Profiler";case te:return"StrictMode";case Te:return"Suspense";case De:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ve:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case Ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function ge(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 de(t);case 8:return t===te?"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 pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oe(e){var t=xe(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(c){r=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ue(e){e._valueTracker||(e._valueTracker=Oe(e))}function Qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ot(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 Us(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pe(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 Ki(e,t){t=t.checked,t!=null&&N(e,"checked",t,!1)}function Bs(e,t){Ki(e,t);var n=pe(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")?Vs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vs(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gi(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 Vs(e,t,n){(t!=="number"||ot(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pe(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Hs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Hn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pe(n)}}function Xi(e,t){var n=pe(t.value),r=pe(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 Ji(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zi(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 Ws(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lr,qi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lr=Lr||document.createElement("div"),Lr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qn={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},vu=["Webkit","ms","Moz","O"];Object.keys(Qn).forEach(function(e){vu.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]})});function bi(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qn.hasOwnProperty(e)&&Qn[e]?(""+t).trim():t+"px"}function ea(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=bi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var gu=H({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 Qs(e,t){if(t){if(gu[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function Ks(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 Gs=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xs=null,_n=null,yn=null;function ta(e){if(e=hr(e)){if(typeof Xs!="function")throw Error(a(280));var t=e.stateNode;t&&(t=es(t),Xs(e.stateNode,e.type,t))}}function na(e){_n?yn?yn.push(e):yn=[e]:_n=e}function ra(){if(_n){var e=_n,t=yn;if(yn=_n=null,ta(e),t)for(e=0;e<t.length;e++)ta(t[e])}}function sa(e,t){return e(t)}function la(){}var Js=!1;function ia(e,t,n){if(Js)return e(t,n);Js=!0;try{return sa(e,t,n)}finally{Js=!1,(_n!==null||yn!==null)&&(la(),ra())}}function Kn(e,t){var n=e.stateNode;if(n===null)return null;var r=es(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(a(231,t,typeof n));return n}var Zs=!1;if(_)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Zs=!1}function _u(e,t,n,r,l,i,c,d,h){var w=Array.prototype.slice.call(arguments,3);try{t.apply(n,w)}catch(M){this.onError(M)}}var Yn=!1,Rr=null,Pr=!1,qs=null,yu={onError:function(e){Yn=!0,Rr=e}};function xu(e,t,n,r,l,i,c,d,h){Yn=!1,Rr=null,_u.apply(yu,arguments)}function ku(e,t,n,r,l,i,c,d,h){if(xu.apply(this,arguments),Yn){if(Yn){var w=Rr;Yn=!1,Rr=null}else throw Error(a(198));Pr||(Pr=!0,qs=w)}}function rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function aa(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 oa(e){if(rn(e)!==e)throw Error(a(188))}function Nu(e){var t=e.alternate;if(!t){if(t=rn(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return oa(l),e;if(i===r)return oa(l),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=l,r=i;else{for(var c=!1,d=l.child;d;){if(d===n){c=!0,n=l,r=i;break}if(d===r){c=!0,r=l,n=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===n){c=!0,n=i,r=l;break}if(d===r){c=!0,r=i,n=l;break}d=d.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function ca(e){return e=Nu(e),e!==null?ua(e):null}function ua(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ua(e);if(t!==null)return t;e=e.sibling}return null}var da=u.unstable_scheduleCallback,fa=u.unstable_cancelCallback,ju=u.unstable_shouldYield,wu=u.unstable_requestPaint,Pe=u.unstable_now,Su=u.unstable_getCurrentPriorityLevel,bs=u.unstable_ImmediatePriority,ha=u.unstable_UserBlockingPriority,Mr=u.unstable_NormalPriority,Eu=u.unstable_LowPriority,ma=u.unstable_IdlePriority,$r=null,jt=null;function Cu(e){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot($r,e,void 0,(e.current.flags&128)===128)}catch{}}var pt=Math.clz32?Math.clz32:Fu,Tu=Math.log,Iu=Math.LN2;function Fu(e){return e>>>=0,e===0?32:31-(Tu(e)/Iu|0)|0}var Or=64,Ar=4194304;function Xn(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 zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,c=n&268435455;if(c!==0){var d=c&~l;d!==0?r=Xn(d):(i&=c,i!==0&&(r=Xn(i)))}else c=n&~l,c!==0?r=Xn(c):i!==0&&(r=Xn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pt(t),l=1<<n,r|=e[n],t&=~l;return r}function Lu(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 Ru(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var c=31-pt(i),d=1<<c,h=l[c];h===-1?((d&n)===0||(d&r)!==0)&&(l[c]=Lu(d,t)):h<=t&&(e.expiredLanes|=d),i&=~d}}function el(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pa(){var e=Or;return Or<<=1,(Or&4194240)===0&&(Or=64),e}function tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function Pu(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 l=31-pt(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function nl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pt(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ke=0;function va(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ga,rl,_a,ya,xa,sl=!1,Dr=[],zt=null,Dt=null,Ut=null,Zn=new Map,qn=new Map,Bt=[],Mu="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 ka(e,t){switch(e){case"focusin":case"focusout":zt=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":Zn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function bn(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=hr(t),t!==null&&rl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function $u(e,t,n,r,l){switch(t){case"focusin":return zt=bn(zt,e,t,n,r,l),!0;case"dragenter":return Dt=bn(Dt,e,t,n,r,l),!0;case"mouseover":return Ut=bn(Ut,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Zn.set(i,bn(Zn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,qn.set(i,bn(qn.get(i)||null,e,t,n,r,l)),!0}return!1}function Na(e){var t=sn(e.target);if(t!==null){var n=rn(t);if(n!==null){if(t=n.tag,t===13){if(t=aa(n),t!==null){e.blockedOn=t,xa(e.priority,function(){_a(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 Ur(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=il(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gs=r,n.target.dispatchEvent(r),Gs=null}else return t=hr(n),t!==null&&rl(t),e.blockedOn=n,!1;t.shift()}return!0}function ja(e,t,n){Ur(e)&&n.delete(t)}function Ou(){sl=!1,zt!==null&&Ur(zt)&&(zt=null),Dt!==null&&Ur(Dt)&&(Dt=null),Ut!==null&&Ur(Ut)&&(Ut=null),Zn.forEach(ja),qn.forEach(ja)}function er(e,t){e.blockedOn===t&&(e.blockedOn=null,sl||(sl=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Ou)))}function tr(e){function t(l){return er(l,e)}if(0<Dr.length){er(Dr[0],e);for(var n=1;n<Dr.length;n++){var r=Dr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zt!==null&&er(zt,e),Dt!==null&&er(Dt,e),Ut!==null&&er(Ut,e),Zn.forEach(t),qn.forEach(t),n=0;n<Bt.length;n++)r=Bt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Bt.length&&(n=Bt[0],n.blockedOn===null);)Na(n),n.blockedOn===null&&Bt.shift()}var xn=C.ReactCurrentBatchConfig,Br=!0;function Au(e,t,n,r){var l=ke,i=xn.transition;xn.transition=null;try{ke=1,ll(e,t,n,r)}finally{ke=l,xn.transition=i}}function zu(e,t,n,r){var l=ke,i=xn.transition;xn.transition=null;try{ke=4,ll(e,t,n,r)}finally{ke=l,xn.transition=i}}function ll(e,t,n,r){if(Br){var l=il(e,t,n,r);if(l===null)jl(e,t,r,Vr,n),ka(e,r);else if($u(l,e,t,n,r))r.stopPropagation();else if(ka(e,r),t&4&&-1<Mu.indexOf(e)){for(;l!==null;){var i=hr(l);if(i!==null&&ga(i),i=il(e,t,n,r),i===null&&jl(e,t,r,Vr,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else jl(e,t,r,null,n)}}var Vr=null;function il(e,t,n,r){if(Vr=null,e=Ys(r),e=sn(e),e!==null)if(t=rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=aa(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 Vr=e,null}function wa(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(Su()){case bs:return 1;case ha:return 4;case Mr:case Eu:return 16;case ma:return 536870912;default:return 16}default:return 16}}var Vt=null,al=null,Hr=null;function Sa(){if(Hr)return Hr;var e,t=al,n=t.length,r,l="value"in Vt?Vt.value:Vt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var c=n-e;for(r=1;r<=c&&t[n-r]===l[i-r];r++);return Hr=l.slice(e,1<r?1-r:void 0)}function Wr(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 Qr(){return!0}function Ea(){return!1}function st(e){function t(n,r,l,i,c){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qr:Ea,this.isPropagationStopped=Ea,this}return H(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=Qr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=st(kn),nr=H({},kn,{view:0,detail:0}),Du=st(nr),cl,ul,rr,Kr=H({},nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fl,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!==rr&&(rr&&e.type==="mousemove"?(cl=e.screenX-rr.screenX,ul=e.screenY-rr.screenY):ul=cl=0,rr=e),cl)},movementY:function(e){return"movementY"in e?e.movementY:ul}}),Ca=st(Kr),Uu=H({},Kr,{dataTransfer:0}),Bu=st(Uu),Vu=H({},nr,{relatedTarget:0}),dl=st(Vu),Hu=H({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wu=st(Hu),Qu=H({},kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ku=st(Qu),Gu=H({},kn,{data:0}),Ta=st(Gu),Yu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xu={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"},Ju={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zu(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ju[e])?!!t[e]:!1}function fl(){return Zu}var qu=H({},nr,{key:function(e){if(e.key){var t=Yu[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xu[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fl,charCode:function(e){return e.type==="keypress"?Wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bu=st(qu),ed=H({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ia=st(ed),td=H({},nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fl}),nd=st(td),rd=H({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),sd=st(rd),ld=H({},Kr,{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}),id=st(ld),ad=[9,13,27,32],hl=_&&"CompositionEvent"in window,sr=null;_&&"documentMode"in document&&(sr=document.documentMode);var od=_&&"TextEvent"in window&&!sr,Fa=_&&(!hl||sr&&8<sr&&11>=sr),La=" ",Ra=!1;function Pa(e,t){switch(e){case"keyup":return ad.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ma(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function cd(e,t){switch(e){case"compositionend":return Ma(t);case"keypress":return t.which!==32?null:(Ra=!0,La);case"textInput":return e=t.data,e===La&&Ra?null:e;default:return null}}function ud(e,t){if(Nn)return e==="compositionend"||!hl&&Pa(e,t)?(e=Sa(),Hr=al=Vt=null,Nn=!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 Fa&&t.locale!=="ko"?null:t.data;default:return null}}var dd={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 $a(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dd[e.type]:t==="textarea"}function Oa(e,t,n,r){na(r),t=Zr(t,"onChange"),0<t.length&&(n=new ol("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lr=null,ir=null;function fd(e){eo(e,0)}function Gr(e){var t=Cn(e);if(Qe(t))return e}function hd(e,t){if(e==="change")return t}var Aa=!1;if(_){var ml;if(_){var pl="oninput"in document;if(!pl){var za=document.createElement("div");za.setAttribute("oninput","return;"),pl=typeof za.oninput=="function"}ml=pl}else ml=!1;Aa=ml&&(!document.documentMode||9<document.documentMode)}function Da(){lr&&(lr.detachEvent("onpropertychange",Ua),ir=lr=null)}function Ua(e){if(e.propertyName==="value"&&Gr(ir)){var t=[];Oa(t,ir,e,Ys(e)),ia(fd,t)}}function md(e,t,n){e==="focusin"?(Da(),lr=t,ir=n,lr.attachEvent("onpropertychange",Ua)):e==="focusout"&&Da()}function pd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gr(ir)}function vd(e,t){if(e==="click")return Gr(t)}function gd(e,t){if(e==="input"||e==="change")return Gr(t)}function _d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:_d;function ar(e,t){if(vt(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 l=n[r];if(!I.call(t,l)||!vt(e[l],t[l]))return!1}return!0}function Ba(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Va(e,t){var n=Ba(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=Ba(n)}}function Ha(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ha(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wa(){for(var e=window,t=ot();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ot(e.document)}return t}function vl(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 yd(e){var t=Wa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ha(n.ownerDocument.documentElement,n)){if(r!==null&&vl(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Va(n,i);var c=Va(n,r);l&&c&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.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 xd=_&&"documentMode"in document&&11>=document.documentMode,jn=null,gl=null,or=null,_l=!1;function Qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_l||jn==null||jn!==ot(r)||(r=jn,"selectionStart"in r&&vl(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}),or&&ar(or,r)||(or=r,r=Zr(gl,"onSelect"),0<r.length&&(t=new ol("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wn={animationend:Yr("Animation","AnimationEnd"),animationiteration:Yr("Animation","AnimationIteration"),animationstart:Yr("Animation","AnimationStart"),transitionend:Yr("Transition","TransitionEnd")},yl={},Ka={};_&&(Ka=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);function Xr(e){if(yl[e])return yl[e];if(!wn[e])return e;var t=wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ka)return yl[e]=t[n];return e}var Ga=Xr("animationend"),Ya=Xr("animationiteration"),Xa=Xr("animationstart"),Ja=Xr("transitionend"),Za=new Map,qa="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 Ht(e,t){Za.set(e,t),x(t,[e])}for(var xl=0;xl<qa.length;xl++){var kl=qa[xl],kd=kl.toLowerCase(),Nd=kl[0].toUpperCase()+kl.slice(1);Ht(kd,"on"+Nd)}Ht(Ga,"onAnimationEnd"),Ht(Ya,"onAnimationIteration"),Ht(Xa,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Ja,"onTransitionEnd"),F("onMouseEnter",["mouseout","mouseover"]),F("onMouseLeave",["mouseout","mouseover"]),F("onPointerEnter",["pointerout","pointerover"]),F("onPointerLeave",["pointerout","pointerover"]),x("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),x("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),x("onBeforeInput",["compositionend","keypress","textInput","paste"]),x("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),x("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),x("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cr="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(" "),jd=new Set("cancel close invalid load scroll toggle".split(" ").concat(cr));function ba(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ku(r,t,void 0,e),e.currentTarget=null}function eo(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var c=r.length-1;0<=c;c--){var d=r[c],h=d.instance,w=d.currentTarget;if(d=d.listener,h!==i&&l.isPropagationStopped())break e;ba(l,d,w),i=h}else for(c=0;c<r.length;c++){if(d=r[c],h=d.instance,w=d.currentTarget,d=d.listener,h!==i&&l.isPropagationStopped())break e;ba(l,d,w),i=h}}}if(Pr)throw e=qs,Pr=!1,qs=null,e}function we(e,t){var n=t[Il];n===void 0&&(n=t[Il]=new Set);var r=e+"__bubble";n.has(r)||(to(t,e,2,!1),n.add(r))}function Nl(e,t,n){var r=0;t&&(r|=4),to(n,e,r,t)}var Jr="_reactListening"+Math.random().toString(36).slice(2);function ur(e){if(!e[Jr]){e[Jr]=!0,m.forEach(function(n){n!=="selectionchange"&&(jd.has(n)||Nl(n,!1,e),Nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jr]||(t[Jr]=!0,Nl("selectionchange",!1,t))}}function to(e,t,n,r){switch(wa(t)){case 1:var l=Au;break;case 4:l=zu;break;default:l=ll}n=l.bind(null,t,n,e),l=void 0,!Zs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function jl(e,t,n,r,l){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var c=r.tag;if(c===3||c===4){var d=r.stateNode.containerInfo;if(d===l||d.nodeType===8&&d.parentNode===l)break;if(c===4)for(c=r.return;c!==null;){var h=c.tag;if((h===3||h===4)&&(h=c.stateNode.containerInfo,h===l||h.nodeType===8&&h.parentNode===l))return;c=c.return}for(;d!==null;){if(c=sn(d),c===null)return;if(h=c.tag,h===5||h===6){r=i=c;continue e}d=d.parentNode}}r=r.return}ia(function(){var w=i,M=Ys(n),O=[];e:{var P=Za.get(e);if(P!==void 0){var K=ol,Z=e;switch(e){case"keypress":if(Wr(n)===0)break e;case"keydown":case"keyup":K=bu;break;case"focusin":Z="focus",K=dl;break;case"focusout":Z="blur",K=dl;break;case"beforeblur":case"afterblur":K=dl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Ca;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Bu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=nd;break;case Ga:case Ya:case Xa:K=Wu;break;case Ja:K=sd;break;case"scroll":K=Du;break;case"wheel":K=id;break;case"copy":case"cut":case"paste":K=Ku;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Ia}var q=(t&4)!==0,Me=!q&&e==="scroll",y=q?P!==null?P+"Capture":null:P;q=[];for(var v=w,k;v!==null;){k=v;var B=k.stateNode;if(k.tag===5&&B!==null&&(k=B,y!==null&&(B=Kn(v,y),B!=null&&q.push(dr(v,B,k)))),Me)break;v=v.return}0<q.length&&(P=new K(P,Z,null,n,M),O.push({event:P,listeners:q}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",P&&n!==Gs&&(Z=n.relatedTarget||n.fromElement)&&(sn(Z)||Z[Tt]))break e;if((K||P)&&(P=M.window===M?M:(P=M.ownerDocument)?P.defaultView||P.parentWindow:window,K?(Z=n.relatedTarget||n.toElement,K=w,Z=Z?sn(Z):null,Z!==null&&(Me=rn(Z),Z!==Me||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(K=null,Z=w),K!==Z)){if(q=Ca,B="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(q=Ia,B="onPointerLeave",y="onPointerEnter",v="pointer"),Me=K==null?P:Cn(K),k=Z==null?P:Cn(Z),P=new q(B,v+"leave",K,n,M),P.target=Me,P.relatedTarget=k,B=null,sn(M)===w&&(q=new q(y,v+"enter",Z,n,M),q.target=k,q.relatedTarget=Me,B=q),Me=B,K&&Z)t:{for(q=K,y=Z,v=0,k=q;k;k=Sn(k))v++;for(k=0,B=y;B;B=Sn(B))k++;for(;0<v-k;)q=Sn(q),v--;for(;0<k-v;)y=Sn(y),k--;for(;v--;){if(q===y||y!==null&&q===y.alternate)break t;q=Sn(q),y=Sn(y)}q=null}else q=null;K!==null&&no(O,P,K,q,!1),Z!==null&&Me!==null&&no(O,Me,Z,q,!0)}}e:{if(P=w?Cn(w):window,K=P.nodeName&&P.nodeName.toLowerCase(),K==="select"||K==="input"&&P.type==="file")var ee=hd;else if($a(P))if(Aa)ee=gd;else{ee=pd;var ne=md}else(K=P.nodeName)&&K.toLowerCase()==="input"&&(P.type==="checkbox"||P.type==="radio")&&(ee=vd);if(ee&&(ee=ee(e,w))){Oa(O,ee,n,M);break e}ne&&ne(e,P,w),e==="focusout"&&(ne=P._wrapperState)&&ne.controlled&&P.type==="number"&&Vs(P,"number",P.value)}switch(ne=w?Cn(w):window,e){case"focusin":($a(ne)||ne.contentEditable==="true")&&(jn=ne,gl=w,or=null);break;case"focusout":or=gl=jn=null;break;case"mousedown":_l=!0;break;case"contextmenu":case"mouseup":case"dragend":_l=!1,Qa(O,n,M);break;case"selectionchange":if(xd)break;case"keydown":case"keyup":Qa(O,n,M)}var re;if(hl)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Nn?Pa(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(Fa&&n.locale!=="ko"&&(Nn||le!=="onCompositionStart"?le==="onCompositionEnd"&&Nn&&(re=Sa()):(Vt=M,al="value"in Vt?Vt.value:Vt.textContent,Nn=!0)),ne=Zr(w,le),0<ne.length&&(le=new Ta(le,e,null,n,M),O.push({event:le,listeners:ne}),re?le.data=re:(re=Ma(n),re!==null&&(le.data=re)))),(re=od?cd(e,n):ud(e,n))&&(w=Zr(w,"onBeforeInput"),0<w.length&&(M=new Ta("onBeforeInput","beforeinput",null,n,M),O.push({event:M,listeners:w}),M.data=re))}eo(O,t)})}function dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Kn(e,n),i!=null&&r.unshift(dr(e,i,l)),i=Kn(e,t),i!=null&&r.push(dr(e,i,l))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function no(e,t,n,r,l){for(var i=t._reactName,c=[];n!==null&&n!==r;){var d=n,h=d.alternate,w=d.stateNode;if(h!==null&&h===r)break;d.tag===5&&w!==null&&(d=w,l?(h=Kn(n,i),h!=null&&c.unshift(dr(n,h,d))):l||(h=Kn(n,i),h!=null&&c.push(dr(n,h,d)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var wd=/\r\n?/g,Sd=/\u0000|\uFFFD/g;function ro(e){return(typeof e=="string"?e:""+e).replace(wd,`
|
|
30
|
-
`).replace(Sd,"")}function qr(e,t,n){if(t=ro(t),ro(e)!==t&&n)throw Error(a(425))}function br(){}var wl=null,Sl=null;function El(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 Cl=typeof setTimeout=="function"?setTimeout:void 0,Ed=typeof clearTimeout=="function"?clearTimeout:void 0,so=typeof Promise=="function"?Promise:void 0,Cd=typeof queueMicrotask=="function"?queueMicrotask:typeof so<"u"?function(e){return so.resolve(null).then(e).catch(Td)}:Cl;function Td(e){setTimeout(function(){throw e})}function Tl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);tr(t)}function Wt(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 lo(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 En=Math.random().toString(36).slice(2),wt="__reactFiber$"+En,fr="__reactProps$"+En,Tt="__reactContainer$"+En,Il="__reactEvents$"+En,Id="__reactListeners$"+En,Fd="__reactHandles$"+En;function sn(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lo(e);e!==null;){if(n=e[wt])return n;e=lo(e)}return t}e=n,n=e.parentNode}return null}function hr(e){return e=e[wt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function es(e){return e[fr]||null}var Fl=[],Tn=-1;function Qt(e){return{current:e}}function Se(e){0>Tn||(e.current=Fl[Tn],Fl[Tn]=null,Tn--)}function je(e,t){Tn++,Fl[Tn]=e.current,e.current=t}var Kt={},Ke=Qt(Kt),qe=Qt(!1),ln=Kt;function In(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function ts(){Se(qe),Se(Ke)}function io(e,t,n){if(Ke.current!==Kt)throw Error(a(168));je(Ke,t),je(qe,n)}function ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,ge(e)||"Unknown",l));return H({},n,r)}function ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,ln=Ke.current,je(Ke,e),je(qe,qe.current),!0}function oo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ao(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,Se(qe),Se(Ke),je(Ke,e)):Se(qe),je(qe,n)}var It=null,rs=!1,Ll=!1;function co(e){It===null?It=[e]:It.push(e)}function Ld(e){rs=!0,co(e)}function Gt(){if(!Ll&&It!==null){Ll=!0;var e=0,t=ke;try{var n=It;for(ke=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}It=null,rs=!1}catch(l){throw It!==null&&(It=It.slice(e+1)),da(bs,Gt),l}finally{ke=t,Ll=!1}}return null}var Fn=[],Ln=0,ss=null,ls=0,ct=[],ut=0,an=null,Ft=1,Lt="";function on(e,t){Fn[Ln++]=ls,Fn[Ln++]=ss,ss=e,ls=t}function uo(e,t,n){ct[ut++]=Ft,ct[ut++]=Lt,ct[ut++]=an,an=e;var r=Ft;e=Lt;var l=32-pt(r)-1;r&=~(1<<l),n+=1;var i=32-pt(t)+l;if(30<i){var c=l-l%5;i=(r&(1<<c)-1).toString(32),r>>=c,l-=c,Ft=1<<32-pt(t)+l|n<<l|r,Lt=i+e}else Ft=1<<i|n<<l|r,Lt=e}function Rl(e){e.return!==null&&(on(e,1),uo(e,1,0))}function Pl(e){for(;e===ss;)ss=Fn[--Ln],Fn[Ln]=null,ls=Fn[--Ln],Fn[Ln]=null;for(;e===an;)an=ct[--ut],ct[ut]=null,Lt=ct[--ut],ct[ut]=null,Ft=ct[--ut],ct[ut]=null}var lt=null,it=null,Ee=!1,gt=null;function fo(e,t){var n=mt(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 ho(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,lt=e,it=Wt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,it=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=an!==null?{id:Ft,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,it=null,!0):!1;default:return!1}}function Ml(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $l(e){if(Ee){var t=it;if(t){var n=t;if(!ho(e,t)){if(Ml(e))throw Error(a(418));t=Wt(n.nextSibling);var r=lt;t&&ho(e,t)?fo(r,n):(e.flags=e.flags&-4097|2,Ee=!1,lt=e)}}else{if(Ml(e))throw Error(a(418));e.flags=e.flags&-4097|2,Ee=!1,lt=e}}}function mo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function is(e){if(e!==lt)return!1;if(!Ee)return mo(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!El(e.type,e.memoizedProps)),t&&(t=it)){if(Ml(e))throw po(),Error(a(418));for(;t;)fo(e,t),t=Wt(t.nextSibling)}if(mo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){it=Wt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}it=null}}else it=lt?Wt(e.stateNode.nextSibling):null;return!0}function po(){for(var e=it;e;)e=Wt(e.nextSibling)}function Rn(){it=lt=null,Ee=!1}function Ol(e){gt===null?gt=[e]:gt.push(e)}var Rd=C.ReactCurrentBatchConfig;function mr(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(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(c){var d=l.refs;c===null?delete d[i]:d[i]=c},t._stringRef=i,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function as(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vo(e){var t=e._init;return t(e._payload)}function go(e){function t(y,v){if(e){var k=y.deletions;k===null?(y.deletions=[v],y.flags|=16):k.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function l(y,v){return y=tn(y,v),y.index=0,y.sibling=null,y}function i(y,v,k){return y.index=k,e?(k=y.alternate,k!==null?(k=k.index,k<v?(y.flags|=2,v):k):(y.flags|=2,v)):(y.flags|=1048576,v)}function c(y){return e&&y.alternate===null&&(y.flags|=2),y}function d(y,v,k,B){return v===null||v.tag!==6?(v=Ci(k,y.mode,B),v.return=y,v):(v=l(v,k),v.return=y,v)}function h(y,v,k,B){var ee=k.type;return ee===W?M(y,v,k.props.children,B,k.key):v!==null&&(v.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===fe&&vo(ee)===v.type)?(B=l(v,k.props),B.ref=mr(y,v,k),B.return=y,B):(B=Ls(k.type,k.key,k.props,null,y.mode,B),B.ref=mr(y,v,k),B.return=y,B)}function w(y,v,k,B){return v===null||v.tag!==4||v.stateNode.containerInfo!==k.containerInfo||v.stateNode.implementation!==k.implementation?(v=Ti(k,y.mode,B),v.return=y,v):(v=l(v,k.children||[]),v.return=y,v)}function M(y,v,k,B,ee){return v===null||v.tag!==7?(v=vn(k,y.mode,B,ee),v.return=y,v):(v=l(v,k),v.return=y,v)}function O(y,v,k){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ci(""+v,y.mode,k),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case L:return k=Ls(v.type,v.key,v.props,null,y.mode,k),k.ref=mr(y,null,v),k.return=y,k;case R:return v=Ti(v,y.mode,k),v.return=y,v;case fe:var B=v._init;return O(y,B(v._payload),k)}if(Hn(v)||J(v))return v=vn(v,y.mode,k,null),v.return=y,v;as(y,v)}return null}function P(y,v,k,B){var ee=v!==null?v.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return ee!==null?null:d(y,v,""+k,B);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case L:return k.key===ee?h(y,v,k,B):null;case R:return k.key===ee?w(y,v,k,B):null;case fe:return ee=k._init,P(y,v,ee(k._payload),B)}if(Hn(k)||J(k))return ee!==null?null:M(y,v,k,B,null);as(y,k)}return null}function K(y,v,k,B,ee){if(typeof B=="string"&&B!==""||typeof B=="number")return y=y.get(k)||null,d(v,y,""+B,ee);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case L:return y=y.get(B.key===null?k:B.key)||null,h(v,y,B,ee);case R:return y=y.get(B.key===null?k:B.key)||null,w(v,y,B,ee);case fe:var ne=B._init;return K(y,v,k,ne(B._payload),ee)}if(Hn(B)||J(B))return y=y.get(k)||null,M(v,y,B,ee,null);as(v,B)}return null}function Z(y,v,k,B){for(var ee=null,ne=null,re=v,le=v=0,Ve=null;re!==null&&le<k.length;le++){re.index>le?(Ve=re,re=null):Ve=re.sibling;var ye=P(y,re,k[le],B);if(ye===null){re===null&&(re=Ve);break}e&&re&&ye.alternate===null&&t(y,re),v=i(ye,v,le),ne===null?ee=ye:ne.sibling=ye,ne=ye,re=Ve}if(le===k.length)return n(y,re),Ee&&on(y,le),ee;if(re===null){for(;le<k.length;le++)re=O(y,k[le],B),re!==null&&(v=i(re,v,le),ne===null?ee=re:ne.sibling=re,ne=re);return Ee&&on(y,le),ee}for(re=r(y,re);le<k.length;le++)Ve=K(re,y,le,k[le],B),Ve!==null&&(e&&Ve.alternate!==null&&re.delete(Ve.key===null?le:Ve.key),v=i(Ve,v,le),ne===null?ee=Ve:ne.sibling=Ve,ne=Ve);return e&&re.forEach(function(nn){return t(y,nn)}),Ee&&on(y,le),ee}function q(y,v,k,B){var ee=J(k);if(typeof ee!="function")throw Error(a(150));if(k=ee.call(k),k==null)throw Error(a(151));for(var ne=ee=null,re=v,le=v=0,Ve=null,ye=k.next();re!==null&&!ye.done;le++,ye=k.next()){re.index>le?(Ve=re,re=null):Ve=re.sibling;var nn=P(y,re,ye.value,B);if(nn===null){re===null&&(re=Ve);break}e&&re&&nn.alternate===null&&t(y,re),v=i(nn,v,le),ne===null?ee=nn:ne.sibling=nn,ne=nn,re=Ve}if(ye.done)return n(y,re),Ee&&on(y,le),ee;if(re===null){for(;!ye.done;le++,ye=k.next())ye=O(y,ye.value,B),ye!==null&&(v=i(ye,v,le),ne===null?ee=ye:ne.sibling=ye,ne=ye);return Ee&&on(y,le),ee}for(re=r(y,re);!ye.done;le++,ye=k.next())ye=K(re,y,le,ye.value,B),ye!==null&&(e&&ye.alternate!==null&&re.delete(ye.key===null?le:ye.key),v=i(ye,v,le),ne===null?ee=ye:ne.sibling=ye,ne=ye);return e&&re.forEach(function(ff){return t(y,ff)}),Ee&&on(y,le),ee}function Me(y,v,k,B){if(typeof k=="object"&&k!==null&&k.type===W&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case L:e:{for(var ee=k.key,ne=v;ne!==null;){if(ne.key===ee){if(ee=k.type,ee===W){if(ne.tag===7){n(y,ne.sibling),v=l(ne,k.props.children),v.return=y,y=v;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===fe&&vo(ee)===ne.type){n(y,ne.sibling),v=l(ne,k.props),v.ref=mr(y,ne,k),v.return=y,y=v;break e}n(y,ne);break}else t(y,ne);ne=ne.sibling}k.type===W?(v=vn(k.props.children,y.mode,B,k.key),v.return=y,y=v):(B=Ls(k.type,k.key,k.props,null,y.mode,B),B.ref=mr(y,v,k),B.return=y,y=B)}return c(y);case R:e:{for(ne=k.key;v!==null;){if(v.key===ne)if(v.tag===4&&v.stateNode.containerInfo===k.containerInfo&&v.stateNode.implementation===k.implementation){n(y,v.sibling),v=l(v,k.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=Ti(k,y.mode,B),v.return=y,y=v}return c(y);case fe:return ne=k._init,Me(y,v,ne(k._payload),B)}if(Hn(k))return Z(y,v,k,B);if(J(k))return q(y,v,k,B);as(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,v!==null&&v.tag===6?(n(y,v.sibling),v=l(v,k),v.return=y,y=v):(n(y,v),v=Ci(k,y.mode,B),v.return=y,y=v),c(y)):n(y,v)}return Me}var Pn=go(!0),_o=go(!1),os=Qt(null),cs=null,Mn=null,Al=null;function zl(){Al=Mn=cs=null}function Dl(e){var t=os.current;Se(os),e._currentValue=t}function Ul(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 $n(e,t){cs=e,Al=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(et=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(cs===null)throw Error(a(308));Mn=e,cs.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var cn=null;function Bl(e){cn===null?cn=[e]:cn.push(e)}function yo(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Bl(t)):(n.next=l.next,l.next=n),t.interleaved=n,Rt(e,r)}function Rt(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 Yt=!1;function Vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xo(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 Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(_e&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Rt(e,n)}return l=r.interleaved,l===null?(t.next=t,Bl(r)):(t.next=l.next,l.next=t),r.interleaved=t,Rt(e,n)}function us(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,nl(e,n)}}function ko(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=c:i=i.next=c,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,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 ds(e,t,n,r){var l=e.updateQueue;Yt=!1;var i=l.firstBaseUpdate,c=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var h=d,w=h.next;h.next=null,c===null?i=w:c.next=w,c=h;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==c&&(d===null?M.firstBaseUpdate=w:d.next=w,M.lastBaseUpdate=h))}if(i!==null){var O=l.baseState;c=0,M=w=h=null,d=i;do{var P=d.lane,K=d.eventTime;if((r&P)===P){M!==null&&(M=M.next={eventTime:K,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var Z=e,q=d;switch(P=t,K=n,q.tag){case 1:if(Z=q.payload,typeof Z=="function"){O=Z.call(K,O,P);break e}O=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=q.payload,P=typeof Z=="function"?Z.call(K,O,P):Z,P==null)break e;O=H({},O,P);break e;case 2:Yt=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,P=l.effects,P===null?l.effects=[d]:P.push(d))}else K={eventTime:K,lane:P,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(w=M=K,h=O):M=M.next=K,c|=P;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;P=d,d=P.next,P.next=null,l.lastBaseUpdate=P,l.shared.pending=null}}while(!0);if(M===null&&(h=O),l.baseState=h,l.firstBaseUpdate=w,l.lastBaseUpdate=M,t=l.shared.interleaved,t!==null){l=t;do c|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);fn|=c,e.lanes=c,e.memoizedState=O}}function No(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(a(191,l));l.call(r)}}}var pr={},St=Qt(pr),vr=Qt(pr),gr=Qt(pr);function un(e){if(e===pr)throw Error(a(174));return e}function Hl(e,t){switch(je(gr,t),je(vr,e),je(St,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ws(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ws(t,e)}Se(St),je(St,t)}function On(){Se(St),Se(vr),Se(gr)}function jo(e){un(gr.current);var t=un(St.current),n=Ws(t,e.type);t!==n&&(je(vr,e),je(St,n))}function Wl(e){vr.current===e&&(Se(St),Se(vr))}var Ie=Qt(0);function fs(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ql=[];function Kl(){for(var e=0;e<Ql.length;e++)Ql[e]._workInProgressVersionPrimary=null;Ql.length=0}var hs=C.ReactCurrentDispatcher,Gl=C.ReactCurrentBatchConfig,dn=0,Fe=null,Ae=null,Ue=null,ms=!1,_r=!1,yr=0,Pd=0;function Ge(){throw Error(a(321))}function Yl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vt(e[n],t[n]))return!1;return!0}function Xl(e,t,n,r,l,i){if(dn=i,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=e===null||e.memoizedState===null?Ad:zd,e=n(r,l),_r){i=0;do{if(_r=!1,yr=0,25<=i)throw Error(a(301));i+=1,Ue=Ae=null,t.updateQueue=null,hs.current=Dd,e=n(r,l)}while(_r)}if(hs.current=gs,t=Ae!==null&&Ae.next!==null,dn=0,Ue=Ae=Fe=null,ms=!1,t)throw Error(a(300));return e}function Jl(){var e=yr!==0;return yr=0,e}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Fe.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function ft(){if(Ae===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ue===null?Fe.memoizedState:Ue.next;if(t!==null)Ue=t,Ae=e;else{if(e===null)throw Error(a(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ue===null?Fe.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function xr(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=ft(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Ae,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var c=l.next;l.next=i.next,i.next=c}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var d=c=null,h=null,w=i;do{var M=w.lane;if((dn&M)===M)h!==null&&(h=h.next={lane:0,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),r=w.hasEagerState?w.eagerState:e(r,w.action);else{var O={lane:M,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null};h===null?(d=h=O,c=r):h=h.next=O,Fe.lanes|=M,fn|=M}w=w.next}while(w!==null&&w!==i);h===null?c=r:h.next=d,vt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=c,t.baseQueue=h,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Fe.lanes|=i,fn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ql(e){var t=ft(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var c=l=l.next;do i=e(i,c.action),c=c.next;while(c!==l);vt(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function wo(){}function So(e,t){var n=Fe,r=ft(),l=t(),i=!vt(r.memoizedState,l);if(i&&(r.memoizedState=l,et=!0),r=r.queue,bl(To.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,kr(9,Co.bind(null,n,r,l,t),void 0,null),Be===null)throw Error(a(349));(dn&30)!==0||Eo(n,t,l)}return l}function Eo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Co(e,t,n,r){t.value=n,t.getSnapshot=r,Io(t)&&Fo(e)}function To(e,t,n){return n(function(){Io(t)&&Fo(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vt(e,n)}catch{return!0}}function Fo(e){var t=Rt(e,1);t!==null&&kt(t,e,1,-1)}function Lo(e){var t=Et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:e},t.queue=e,e=e.dispatch=Od.bind(null,Fe,e),[t.memoizedState,e]}function kr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.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 Ro(){return ft().memoizedState}function ps(e,t,n,r){var l=Et();Fe.flags|=e,l.memoizedState=kr(1|t,n,void 0,r===void 0?null:r)}function vs(e,t,n,r){var l=ft();r=r===void 0?null:r;var i=void 0;if(Ae!==null){var c=Ae.memoizedState;if(i=c.destroy,r!==null&&Yl(r,c.deps)){l.memoizedState=kr(t,n,i,r);return}}Fe.flags|=e,l.memoizedState=kr(1|t,n,i,r)}function Po(e,t){return ps(8390656,8,e,t)}function bl(e,t){return vs(2048,8,e,t)}function Mo(e,t){return vs(4,2,e,t)}function $o(e,t){return vs(4,4,e,t)}function Oo(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 Ao(e,t,n){return n=n!=null?n.concat([e]):null,vs(4,4,Oo.bind(null,t,e),n)}function ei(){}function zo(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Do(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Uo(e,t,n){return(dn&21)===0?(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n):(vt(n,t)||(n=pa(),Fe.lanes|=n,fn|=n,e.baseState=!0),t)}function Md(e,t){var n=ke;ke=n!==0&&4>n?n:4,e(!0);var r=Gl.transition;Gl.transition={};try{e(!1),t()}finally{ke=n,Gl.transition=r}}function Bo(){return ft().memoizedState}function $d(e,t,n){var r=bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vo(e))Ho(t,n);else if(n=yo(e,t,n,r),n!==null){var l=Ze();kt(n,e,r,l),Wo(n,t,r)}}function Od(e,t,n){var r=bt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vo(e))Ho(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,n);if(l.hasEagerState=!0,l.eagerState=d,vt(d,c)){var h=t.interleaved;h===null?(l.next=l,Bl(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=yo(e,t,l,r),n!==null&&(l=Ze(),kt(n,e,r,l),Wo(n,t,r))}}function Vo(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Ho(e,t){_r=ms=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wo(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nl(e,n)}}var gs={readContext:dt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Ad={readContext:dt,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Po,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ps(4194308,4,Oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){return ps(4,2,e,t)},useMemo:function(e,t){var n=Et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Et();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=$d.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:Lo,useDebugValue:ei,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=Lo(!1),t=e[0];return e=Md.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,l=Et();if(Ee){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Be===null)throw Error(a(349));(dn&30)!==0||Eo(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Po(To.bind(null,r,i,e),[e]),r.flags|=2048,kr(9,Co.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Et(),t=Be.identifierPrefix;if(Ee){var n=Lt,r=Ft;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zd={readContext:dt,useCallback:zo,useContext:dt,useEffect:bl,useImperativeHandle:Ao,useInsertionEffect:Mo,useLayoutEffect:$o,useMemo:Do,useReducer:Zl,useRef:Ro,useState:function(){return Zl(xr)},useDebugValue:ei,useDeferredValue:function(e){var t=ft();return Uo(t,Ae.memoizedState,e)},useTransition:function(){var e=Zl(xr)[0],t=ft().memoizedState;return[e,t]},useMutableSource:wo,useSyncExternalStore:So,useId:Bo,unstable_isNewReconciler:!1},Dd={readContext:dt,useCallback:zo,useContext:dt,useEffect:bl,useImperativeHandle:Ao,useInsertionEffect:Mo,useLayoutEffect:$o,useMemo:Do,useReducer:ql,useRef:Ro,useState:function(){return ql(xr)},useDebugValue:ei,useDeferredValue:function(e){var t=ft();return Ae===null?t.memoizedState=e:Uo(t,Ae.memoizedState,e)},useTransition:function(){var e=ql(xr)[0],t=ft().memoizedState;return[e,t]},useMutableSource:wo,useSyncExternalStore:So,useId:Bo,unstable_isNewReconciler:!1};function _t(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ti(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:H({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _s={isMounted:function(e){return(e=e._reactInternals)?rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ze(),l=bt(e),i=Pt(r,l);i.payload=t,n!=null&&(i.callback=n),t=Xt(e,i,l),t!==null&&(kt(t,e,l,r),us(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ze(),l=bt(e),i=Pt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Xt(e,i,l),t!==null&&(kt(t,e,l,r),us(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),r=bt(e),l=Pt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Xt(e,l,r),t!==null&&(kt(t,e,r,n),us(t,e,r))}};function Qo(e,t,n,r,l,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,c):t.prototype&&t.prototype.isPureReactComponent?!ar(n,r)||!ar(l,i):!0}function Ko(e,t,n){var r=!1,l=Kt,i=t.contextType;return typeof i=="object"&&i!==null?i=dt(i):(l=be(t)?ln:Ke.current,r=t.contextTypes,i=(r=r!=null)?In(e,l):Kt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_s,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Go(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&&_s.enqueueReplaceState(t,t.state,null)}function ni(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Vl(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=dt(i):(i=be(t)?ln:Ke.current,l.context=In(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ti(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&_s.enqueueReplaceState(l,l.state,null),ds(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function An(e,t){try{var n="",r=t;do n+=ce(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ri(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function si(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ud=typeof WeakMap=="function"?WeakMap:Map;function Yo(e,t,n){n=Pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ss||(Ss=!0,yi=r),si(e,t)},n}function Xo(e,t,n){n=Pt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){si(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){si(e,t),typeof r!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}function Jo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=ef.bind(null,e,t,n),t.then(e,e))}function Zo(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 qo(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pt(-1,1),t.tag=2,Xt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Bd=C.ReactCurrentOwner,et=!1;function Je(e,t,n,r){t.child=e===null?_o(t,null,n,r):Pn(t,e.child,n,r)}function bo(e,t,n,r,l){n=n.render;var i=t.ref;return $n(t,l),r=Xl(e,t,n,r,i,l),n=Jl(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Mt(e,t,l)):(Ee&&n&&Rl(t),t.flags|=1,Je(e,t,r,l),t.child)}function ec(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Ei(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,tc(e,t,i,r,l)):(e=Ls(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var c=i.memoizedProps;if(n=n.compare,n=n!==null?n:ar,n(c,r)&&e.ref===t.ref)return Mt(e,t,l)}return t.flags|=1,e=tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(ar(i,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Mt(e,t,l)}return li(e,t,n,r,l)}function nc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(Dn,at),at|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,je(Dn,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,je(Dn,at),at|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,je(Dn,at),at|=r;return Je(e,t,l,n),t.child}function rc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function li(e,t,n,r,l){var i=be(n)?ln:Ke.current;return i=In(t,i),$n(t,l),n=Xl(e,t,n,r,i,l),r=Jl(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Mt(e,t,l)):(Ee&&r&&Rl(t),t.flags|=1,Je(e,t,n,l),t.child)}function sc(e,t,n,r,l){if(be(n)){var i=!0;ns(t)}else i=!1;if($n(t,l),t.stateNode===null)xs(e,t),Ko(t,n,r),ni(t,n,r,l),r=!0;else if(e===null){var c=t.stateNode,d=t.memoizedProps;c.props=d;var h=c.context,w=n.contextType;typeof w=="object"&&w!==null?w=dt(w):(w=be(n)?ln:Ke.current,w=In(t,w));var M=n.getDerivedStateFromProps,O=typeof M=="function"||typeof c.getSnapshotBeforeUpdate=="function";O||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==r||h!==w)&&Go(t,c,r,w),Yt=!1;var P=t.memoizedState;c.state=P,ds(t,r,c,l),h=t.memoizedState,d!==r||P!==h||qe.current||Yt?(typeof M=="function"&&(ti(t,n,M,r),h=t.memoizedState),(d=Yt||Qo(t,n,d,r,P,h,w))?(O||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),c.props=r,c.state=h,c.context=w,r=d):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,xo(e,t),d=t.memoizedProps,w=t.type===t.elementType?d:_t(t.type,d),c.props=w,O=t.pendingProps,P=c.context,h=n.contextType,typeof h=="object"&&h!==null?h=dt(h):(h=be(n)?ln:Ke.current,h=In(t,h));var K=n.getDerivedStateFromProps;(M=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==O||P!==h)&&Go(t,c,r,h),Yt=!1,P=t.memoizedState,c.state=P,ds(t,r,c,l);var Z=t.memoizedState;d!==O||P!==Z||qe.current||Yt?(typeof K=="function"&&(ti(t,n,K,r),Z=t.memoizedState),(w=Yt||Qo(t,n,w,r,P,Z,h)||!1)?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,Z,h),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,Z,h)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Z),c.props=r,c.state=Z,c.context=h,r=w):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),r=!1)}return ii(e,t,n,r,i,l)}function ii(e,t,n,r,l,i){rc(e,t);var c=(t.flags&128)!==0;if(!r&&!c)return l&&oo(t,n,!1),Mt(e,t,i);r=t.stateNode,Bd.current=t;var d=c&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&c?(t.child=Pn(t,e.child,null,i),t.child=Pn(t,null,d,i)):Je(e,t,d,i),t.memoizedState=r.state,l&&oo(t,n,!0),t.child}function lc(e){var t=e.stateNode;t.pendingContext?io(e,t.pendingContext,t.pendingContext!==t.context):t.context&&io(e,t.context,!1),Hl(e,t.containerInfo)}function ic(e,t,n,r,l){return Rn(),Ol(l),t.flags|=256,Je(e,t,n,r),t.child}var ai={dehydrated:null,treeContext:null,retryLane:0};function oi(e){return{baseLanes:e,cachePool:null,transitions:null}}function ac(e,t,n){var r=t.pendingProps,l=Ie.current,i=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(l&2)!==0),d?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),je(Ie,l&1),e===null)return $l(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,i?(r=t.mode,i=t.child,c={mode:"hidden",children:c},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=c):i=Rs(c,r,0,null),e=vn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=oi(n),t.memoizedState=ai,e):ci(t,c));if(l=e.memoizedState,l!==null&&(d=l.dehydrated,d!==null))return Vd(e,t,c,r,d,l,n);if(i){i=r.fallback,c=t.mode,l=e.child,d=l.sibling;var h={mode:"hidden",children:r.children};return(c&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=h,t.deletions=null):(r=tn(l,h),r.subtreeFlags=l.subtreeFlags&14680064),d!==null?i=tn(d,i):(i=vn(i,c,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,c=e.child.memoizedState,c=c===null?oi(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},i.memoizedState=c,i.childLanes=e.childLanes&~n,t.memoizedState=ai,r}return i=e.child,e=i.sibling,r=tn(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 ci(e,t){return t=Rs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ys(e,t,n,r){return r!==null&&Ol(r),Pn(t,e.child,null,n),e=ci(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vd(e,t,n,r,l,i,c){if(n)return t.flags&256?(t.flags&=-257,r=ri(Error(a(422))),ys(e,t,c,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Rs({mode:"visible",children:r.children},l,0,null),i=vn(i,l,c,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Pn(t,e.child,null,c),t.child.memoizedState=oi(c),t.memoizedState=ai,i);if((t.mode&1)===0)return ys(e,t,c,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var d=r.dgst;return r=d,i=Error(a(419)),r=ri(i,r,void 0),ys(e,t,c,r)}if(d=(c&e.childLanes)!==0,et||d){if(r=Be,r!==null){switch(c&-c){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|c))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Rt(e,l),kt(r,e,l,-1))}return Si(),r=ri(Error(a(421))),ys(e,t,c,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=tf.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,it=Wt(l.nextSibling),lt=t,Ee=!0,gt=null,e!==null&&(ct[ut++]=Ft,ct[ut++]=Lt,ct[ut++]=an,Ft=e.id,Lt=e.overflow,an=t),t=ci(t,r.children),t.flags|=4096,t)}function oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ul(e.return,t,n)}function ui(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function cc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=Ie.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oc(e,n,t);else if(e.tag===19)oc(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(je(Ie,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&fs(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ui(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&fs(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ui(t,!0,n,null,i);break;case"together":ui(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xs(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hd(e,t,n){switch(t.tag){case 3:lc(t),Rn();break;case 5:jo(t);break;case 1:be(t.type)&&ns(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;je(os,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(je(Ie,Ie.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?ac(e,t,n):(je(Ie,Ie.current&1),e=Mt(e,t,n),e!==null?e.sibling:null);je(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return cc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),je(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,nc(e,t,n)}return Mt(e,t,n)}var uc,di,dc,fc;uc=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}},di=function(){},dc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,un(St.current);var i=null;switch(n){case"input":l=Us(e,l),r=Us(e,r),i=[];break;case"select":l=H({},l,{value:void 0}),r=H({},r,{value:void 0}),i=[];break;case"textarea":l=Hs(e,l),r=Hs(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=br)}Qs(n,r);var c;n=null;for(w in l)if(!r.hasOwnProperty(w)&&l.hasOwnProperty(w)&&l[w]!=null)if(w==="style"){var d=l[w];for(c in d)d.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else w!=="dangerouslySetInnerHTML"&&w!=="children"&&w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(f.hasOwnProperty(w)?i||(i=[]):(i=i||[]).push(w,null));for(w in r){var h=r[w];if(d=l?.[w],r.hasOwnProperty(w)&&h!==d&&(h!=null||d!=null))if(w==="style")if(d){for(c in d)!d.hasOwnProperty(c)||h&&h.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in h)h.hasOwnProperty(c)&&d[c]!==h[c]&&(n||(n={}),n[c]=h[c])}else n||(i||(i=[]),i.push(w,n)),n=h;else w==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,d=d?d.__html:void 0,h!=null&&d!==h&&(i=i||[]).push(w,h)):w==="children"?typeof h!="string"&&typeof h!="number"||(i=i||[]).push(w,""+h):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&(f.hasOwnProperty(w)?(h!=null&&w==="onScroll"&&we("scroll",e),i||d===h||(i=[])):(i=i||[]).push(w,h))}n&&(i=i||[]).push("style",n);var w=i;(t.updateQueue=w)&&(t.flags|=4)}},fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nr(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 Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wd(e,t,n){var r=t.pendingProps;switch(Pl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return be(t.type)&&ts(),Ye(t),null;case 3:return r=t.stateNode,On(),Se(qe),Se(Ke),Kl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(is(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gt!==null&&(Ni(gt),gt=null))),di(e,t),Ye(t),null;case 5:Wl(t);var l=un(gr.current);if(n=t.type,e!==null&&t.stateNode!=null)dc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ye(t),null}if(e=un(St.current),is(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[wt]=t,r[fr]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(l=0;l<cr.length;l++)we(cr[l],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":Qi(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":Yi(r,i),we("invalid",r)}Qs(n,i),l=null;for(var c in i)if(i.hasOwnProperty(c)){var d=i[c];c==="children"?typeof d=="string"?r.textContent!==d&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,d,e),l=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,d,e),l=["children",""+d]):f.hasOwnProperty(c)&&d!=null&&c==="onScroll"&&we("scroll",r)}switch(n){case"input":ue(r),Gi(r,i,!0);break;case"textarea":ue(r),Ji(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=br)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{c=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zi(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[wt]=t,e[fr]=r,uc(e,t,!1,!1),t.stateNode=e;e:{switch(c=Ks(n,r),n){case"dialog":we("cancel",e),we("close",e),l=r;break;case"iframe":case"object":case"embed":we("load",e),l=r;break;case"video":case"audio":for(l=0;l<cr.length;l++)we(cr[l],e);l=r;break;case"source":we("error",e),l=r;break;case"img":case"image":case"link":we("error",e),we("load",e),l=r;break;case"details":we("toggle",e),l=r;break;case"input":Qi(e,r),l=Us(e,r),we("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=H({},r,{value:void 0}),we("invalid",e);break;case"textarea":Yi(e,r),l=Hs(e,r),we("invalid",e);break;default:l=r}Qs(n,l),d=l;for(i in d)if(d.hasOwnProperty(i)){var h=d[i];i==="style"?ea(e,h):i==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&qi(e,h)):i==="children"?typeof h=="string"?(n!=="textarea"||h!=="")&&Wn(e,h):typeof h=="number"&&Wn(e,""+h):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?h!=null&&i==="onScroll"&&we("scroll",e):h!=null&&N(e,i,h,c))}switch(n){case"input":ue(e),Gi(e,r,!1);break;case"textarea":ue(e),Ji(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pe(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?gn(e,!!r.multiple,i,!1):r.defaultValue!=null&&gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=br)}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 Ye(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=un(gr.current),un(St.current),is(t)){if(r=t.stateNode,n=t.memoizedProps,r[wt]=t,(i=r.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wt]=t,t.stateNode=r}return Ye(t),null;case 13:if(Se(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&it!==null&&(t.mode&1)!==0&&(t.flags&128)===0)po(),Rn(),t.flags|=98560,i=!1;else if(i=is(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));i[wt]=t}else Rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else gt!==null&&(Ni(gt),gt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ie.current&1)!==0?ze===0&&(ze=3):Si())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return On(),di(e,t),e===null&&ur(t.stateNode.containerInfo),Ye(t),null;case 10:return Dl(t.type._context),Ye(t),null;case 17:return be(t.type)&&ts(),Ye(t),null;case 19:if(Se(Ie),i=t.memoizedState,i===null)return Ye(t),null;if(r=(t.flags&128)!==0,c=i.rendering,c===null)if(r)Nr(i,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fs(e),c!==null){for(t.flags|=128,Nr(i,!1),r=c.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,c=i.alternate,c===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=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,e=c.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return je(Ie,Ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&Pe()>Un&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304)}else{if(!r)if(e=fs(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ee)return Ye(t),null}else 2*Pe()-i.renderingStartTime>Un&&n!==1073741824&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(n=i.last,n!==null?n.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pe(),t.sibling=null,n=Ie.current,je(Ie,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return wi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(at&1073741824)!==0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Qd(e,t){switch(Pl(t),t.tag){case 1:return be(t.type)&&ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),Se(qe),Se(Ke),Kl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Wl(t),null;case 13:if(Se(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ie),null;case 4:return On(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return wi(),null;case 24:return null;default:return null}}var ks=!1,Xe=!1,Kd=typeof WeakSet=="function"?WeakSet:Set,X=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function fi(e,t,n){try{n()}catch(r){Re(e,t,r)}}var hc=!1;function Gd(e,t){if(wl=Br,e=Wa(),vl(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var c=0,d=-1,h=-1,w=0,M=0,O=e,P=null;t:for(;;){for(var K;O!==n||l!==0&&O.nodeType!==3||(d=c+l),O!==i||r!==0&&O.nodeType!==3||(h=c+r),O.nodeType===3&&(c+=O.nodeValue.length),(K=O.firstChild)!==null;)P=O,O=K;for(;;){if(O===e)break t;if(P===n&&++w===l&&(d=c),P===i&&++M===r&&(h=c),(K=O.nextSibling)!==null)break;O=P,P=O.parentNode}O=K}n=d===-1||h===-1?null:{start:d,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sl={focusedElem:e,selectionRange:n},Br=!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 Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var q=Z.memoizedProps,Me=Z.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?q:_t(t.type,q),Me);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(B){Re(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return Z=hc,hc=!1,Z}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&fi(t,n,i)}l=l.next}while(l!==r)}}function Ns(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 hi(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 mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[fr],delete t[Il],delete t[Id],delete t[Fd])),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 pc(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pc(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 mi(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=br));else if(r!==4&&(e=e.child,e!==null))for(mi(e,t,n),e=e.sibling;e!==null;)mi(e,t,n),e=e.sibling}function pi(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(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}var He=null,yt=!1;function Jt(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount($r,n)}catch{}switch(n.tag){case 5:Xe||zn(n,t);case 6:var r=He,l=yt;He=null,Jt(e,t,n),He=r,yt=l,He!==null&&(yt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(yt?(e=He,n=n.stateNode,e.nodeType===8?Tl(e.parentNode,n):e.nodeType===1&&Tl(e,n),tr(e)):Tl(He,n.stateNode));break;case 4:r=He,l=yt,He=n.stateNode.containerInfo,yt=!0,Jt(e,t,n),He=r,yt=l;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,c=i.destroy;i=i.tag,c!==void 0&&((i&2)!==0||(i&4)!==0)&&fi(n,t,c),l=l.next}while(l!==r)}Jt(e,t,n);break;case 1:if(!Xe&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){Re(n,t,d)}Jt(e,t,n);break;case 21:Jt(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Jt(e,t,n),Xe=r):Jt(e,t,n);break;default:Jt(e,t,n)}}function _c(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kd),t.forEach(function(r){var l=nf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 5:He=d.stateNode,yt=!1;break e;case 3:He=d.stateNode.containerInfo,yt=!0;break e;case 4:He=d.stateNode.containerInfo,yt=!0;break e}d=d.return}if(He===null)throw Error(a(160));gc(i,c,l),He=null,yt=!1;var h=l.alternate;h!==null&&(h.return=null),l.return=null}catch(w){Re(l,t,w)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Ct(e),r&4){try{jr(3,e,e.return),Ns(3,e)}catch(q){Re(e,e.return,q)}try{jr(5,e,e.return)}catch(q){Re(e,e.return,q)}}break;case 1:xt(t,e),Ct(e),r&512&&n!==null&&zn(n,n.return);break;case 5:if(xt(t,e),Ct(e),r&512&&n!==null&&zn(n,n.return),e.flags&32){var l=e.stateNode;try{Wn(l,"")}catch(q){Re(e,e.return,q)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,c=n!==null?n.memoizedProps:i,d=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{d==="input"&&i.type==="radio"&&i.name!=null&&Ki(l,i),Ks(d,c);var w=Ks(d,i);for(c=0;c<h.length;c+=2){var M=h[c],O=h[c+1];M==="style"?ea(l,O):M==="dangerouslySetInnerHTML"?qi(l,O):M==="children"?Wn(l,O):N(l,M,O,w)}switch(d){case"input":Bs(l,i);break;case"textarea":Xi(l,i);break;case"select":var P=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var K=i.value;K!=null?gn(l,!!i.multiple,K,!1):P!==!!i.multiple&&(i.defaultValue!=null?gn(l,!!i.multiple,i.defaultValue,!0):gn(l,!!i.multiple,i.multiple?[]:"",!1))}l[fr]=i}catch(q){Re(e,e.return,q)}}break;case 6:if(xt(t,e),Ct(e),r&4){if(e.stateNode===null)throw Error(a(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(q){Re(e,e.return,q)}}break;case 3:if(xt(t,e),Ct(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tr(t.containerInfo)}catch(q){Re(e,e.return,q)}break;case 4:xt(t,e),Ct(e);break;case 13:xt(t,e),Ct(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(_i=Pe())),r&4&&_c(e);break;case 22:if(M=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(w=Xe)||M,xt(t,e),Xe=w):xt(t,e),Ct(e),r&8192){if(w=e.memoizedState!==null,(e.stateNode.isHidden=w)&&!M&&(e.mode&1)!==0)for(X=e,M=e.child;M!==null;){for(O=X=M;X!==null;){switch(P=X,K=P.child,P.tag){case 0:case 11:case 14:case 15:jr(4,P,P.return);break;case 1:zn(P,P.return);var Z=P.stateNode;if(typeof Z.componentWillUnmount=="function"){r=P,n=P.return;try{t=r,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(q){Re(r,n,q)}}break;case 5:zn(P,P.return);break;case 22:if(P.memoizedState!==null){Nc(O);continue}}K!==null?(K.return=P,X=K):Nc(O)}M=M.sibling}e:for(M=null,O=e;;){if(O.tag===5){if(M===null){M=O;try{l=O.stateNode,w?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(d=O.stateNode,h=O.memoizedProps.style,c=h!=null&&h.hasOwnProperty("display")?h.display:null,d.style.display=bi("display",c))}catch(q){Re(e,e.return,q)}}}else if(O.tag===6){if(M===null)try{O.stateNode.nodeValue=w?"":O.memoizedProps}catch(q){Re(e,e.return,q)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;M===O&&(M=null),O=O.return}M===O&&(M=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:xt(t,e),Ct(e),r&4&&_c(e);break;case 21:break;default:xt(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pc(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Wn(l,""),r.flags&=-33);var i=vc(e);pi(e,i,l);break;case 3:case 4:var c=r.stateNode.containerInfo,d=vc(e);mi(e,d,c);break;default:throw Error(a(161))}}catch(h){Re(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yd(e,t,n){X=e,xc(e)}function xc(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var l=X,i=l.child;if(l.tag===22&&r){var c=l.memoizedState!==null||ks;if(!c){var d=l.alternate,h=d!==null&&d.memoizedState!==null||Xe;d=ks;var w=Xe;if(ks=c,(Xe=h)&&!w)for(X=l;X!==null;)c=X,h=c.child,c.tag===22&&c.memoizedState!==null?jc(l):h!==null?(h.return=c,X=h):jc(l);for(;i!==null;)X=i,xc(i),i=i.sibling;X=l,ks=d,Xe=w}kc(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,X=i):kc(e)}}function kc(e){for(;X!==null;){var t=X;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xe||Ns(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:_t(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&No(t,i,r);break;case 3:var c=t.updateQueue;if(c!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}No(t,c,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&n.focus();break;case"img":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var w=t.alternate;if(w!==null){var M=w.memoizedState;if(M!==null){var O=M.dehydrated;O!==null&&tr(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Xe||t.flags&512&&hi(t)}catch(P){Re(t,t.return,P)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Nc(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 jc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ns(4,t)}catch(h){Re(t,n,h)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(h){Re(t,l,h)}}var i=t.return;try{hi(t)}catch(h){Re(t,i,h)}break;case 5:var c=t.return;try{hi(t)}catch(h){Re(t,c,h)}}}catch(h){Re(t,t.return,h)}if(t===e){X=null;break}var d=t.sibling;if(d!==null){d.return=t.return,X=d;break}X=t.return}}var Xd=Math.ceil,js=C.ReactCurrentDispatcher,vi=C.ReactCurrentOwner,ht=C.ReactCurrentBatchConfig,_e=0,Be=null,$e=null,We=0,at=0,Dn=Qt(0),ze=0,wr=null,fn=0,ws=0,gi=0,Sr=null,tt=null,_i=0,Un=1/0,$t=null,Ss=!1,yi=null,Zt=null,Es=!1,qt=null,Cs=0,Er=0,xi=null,Ts=-1,Is=0;function Ze(){return(_e&6)!==0?Pe():Ts!==-1?Ts:Ts=Pe()}function bt(e){return(e.mode&1)===0?1:(_e&2)!==0&&We!==0?We&-We:Rd.transition!==null?(Is===0&&(Is=pa()),Is):(e=ke,e!==0||(e=window.event,e=e===void 0?16:wa(e.type)),e)}function kt(e,t,n,r){if(50<Er)throw Er=0,xi=null,Error(a(185));Jn(e,n,r),((_e&2)===0||e!==Be)&&(e===Be&&((_e&2)===0&&(ws|=n),ze===4&&en(e,We)),nt(e,r),n===1&&_e===0&&(t.mode&1)===0&&(Un=Pe()+500,rs&&Gt()))}function nt(e,t){var n=e.callbackNode;Ru(e,t);var r=zr(e,e===Be?We:0);if(r===0)n!==null&&fa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fa(n),t===1)e.tag===0?Ld(Sc.bind(null,e)):co(Sc.bind(null,e)),Cd(function(){(_e&6)===0&&Gt()}),n=null;else{switch(va(r)){case 1:n=bs;break;case 4:n=ha;break;case 16:n=Mr;break;case 536870912:n=ma;break;default:n=Mr}n=Pc(n,wc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wc(e,t){if(Ts=-1,Is=0,(_e&6)!==0)throw Error(a(327));var n=e.callbackNode;if(Bn()&&e.callbackNode!==n)return null;var r=zr(e,e===Be?We:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Fs(e,r);else{t=r;var l=_e;_e|=2;var i=Cc();(Be!==e||We!==t)&&($t=null,Un=Pe()+500,mn(e,t));do try{qd();break}catch(d){Ec(e,d)}while(!0);zl(),js.current=i,_e=l,$e!==null?t=0:(Be=null,We=0,t=ze)}if(t!==0){if(t===2&&(l=el(e),l!==0&&(r=l,t=ki(e,l))),t===1)throw n=wr,mn(e,0),en(e,r),nt(e,Pe()),n;if(t===6)en(e,r);else{if(l=e.current.alternate,(r&30)===0&&!Jd(l)&&(t=Fs(e,r),t===2&&(i=el(e),i!==0&&(r=i,t=ki(e,i))),t===1))throw n=wr,mn(e,0),en(e,r),nt(e,Pe()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:pn(e,tt,$t);break;case 3:if(en(e,r),(r&130023424)===r&&(t=_i+500-Pe(),10<t)){if(zr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ze(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Cl(pn.bind(null,e,tt,$t),t);break}pn(e,tt,$t);break;case 4:if(en(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var c=31-pt(r);i=1<<c,c=t[c],c>l&&(l=c),r&=~i}if(r=l,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10<r){e.timeoutHandle=Cl(pn.bind(null,e,tt,$t),r);break}pn(e,tt,$t);break;case 5:pn(e,tt,$t);break;default:throw Error(a(329))}}}return nt(e,Pe()),e.callbackNode===n?wc.bind(null,e):null}function ki(e,t){var n=Sr;return e.current.memoizedState.isDehydrated&&(mn(e,t).flags|=256),e=Fs(e,t),e!==2&&(t=tt,tt=n,t!==null&&Ni(t)),e}function Ni(e){tt===null?tt=e:tt.push.apply(tt,e)}function Jd(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 l=n[r],i=l.getSnapshot;l=l.value;try{if(!vt(i(),l))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 en(e,t){for(t&=~gi,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pt(t),r=1<<n;e[n]=-1,t&=~r}}function Sc(e){if((_e&6)!==0)throw Error(a(327));Bn();var t=zr(e,0);if((t&1)===0)return nt(e,Pe()),null;var n=Fs(e,t);if(e.tag!==0&&n===2){var r=el(e);r!==0&&(t=r,n=ki(e,r))}if(n===1)throw n=wr,mn(e,0),en(e,t),nt(e,Pe()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,tt,$t),nt(e,Pe()),null}function ji(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(Un=Pe()+500,rs&&Gt())}}function hn(e){qt!==null&&qt.tag===0&&(_e&6)===0&&Bn();var t=_e;_e|=1;var n=ht.transition,r=ke;try{if(ht.transition=null,ke=1,e)return e()}finally{ke=r,ht.transition=n,_e=t,(_e&6)===0&&Gt()}}function wi(){at=Dn.current,Se(Dn)}function mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ed(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(Pl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ts();break;case 3:On(),Se(qe),Se(Ke),Kl();break;case 5:Wl(r);break;case 4:On();break;case 13:Se(Ie);break;case 19:Se(Ie);break;case 10:Dl(r.type._context);break;case 22:case 23:wi()}n=n.return}if(Be=e,$e=e=tn(e.current,null),We=at=t,ze=0,wr=null,gi=ws=fn=0,tt=Sr=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var c=i.next;i.next=l,r.next=c}n.pending=r}cn=null}return e}function Ec(e,t){do{var n=$e;try{if(zl(),hs.current=gs,ms){for(var r=Fe.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ms=!1}if(dn=0,Ue=Ae=Fe=null,_r=!1,yr=0,vi.current=null,n===null||n.return===null){ze=1,wr=t,$e=null;break}e:{var i=e,c=n.return,d=n,h=t;if(t=We,d.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var w=h,M=d,O=M.tag;if((M.mode&1)===0&&(O===0||O===11||O===15)){var P=M.alternate;P?(M.updateQueue=P.updateQueue,M.memoizedState=P.memoizedState,M.lanes=P.lanes):(M.updateQueue=null,M.memoizedState=null)}var K=Zo(c);if(K!==null){K.flags&=-257,qo(K,c,d,i,t),K.mode&1&&Jo(i,w,t),t=K,h=w;var Z=t.updateQueue;if(Z===null){var q=new Set;q.add(h),t.updateQueue=q}else Z.add(h);break e}else{if((t&1)===0){Jo(i,w,t),Si();break e}h=Error(a(426))}}else if(Ee&&d.mode&1){var Me=Zo(c);if(Me!==null){(Me.flags&65536)===0&&(Me.flags|=256),qo(Me,c,d,i,t),Ol(An(h,d));break e}}i=h=An(h,d),ze!==4&&(ze=2),Sr===null?Sr=[i]:Sr.push(i),i=c;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=Yo(i,h,t);ko(i,y);break e;case 1:d=h;var v=i.type,k=i.stateNode;if((i.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Zt===null||!Zt.has(k)))){i.flags|=65536,t&=-t,i.lanes|=t;var B=Xo(i,d,t);ko(i,B);break e}}i=i.return}while(i!==null)}Ic(n)}catch(ee){t=ee,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function Cc(){var e=js.current;return js.current=gs,e===null?gs:e}function Si(){(ze===0||ze===3||ze===2)&&(ze=4),Be===null||(fn&268435455)===0&&(ws&268435455)===0||en(Be,We)}function Fs(e,t){var n=_e;_e|=2;var r=Cc();(Be!==e||We!==t)&&($t=null,mn(e,t));do try{Zd();break}catch(l){Ec(e,l)}while(!0);if(zl(),_e=n,js.current=r,$e!==null)throw Error(a(261));return Be=null,We=0,ze}function Zd(){for(;$e!==null;)Tc($e)}function qd(){for(;$e!==null&&!ju();)Tc($e)}function Tc(e){var t=Rc(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?Ic(e):$e=t,vi.current=null}function Ic(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Wd(n,t,at),n!==null){$e=n;return}}else{if(n=Qd(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,$e=null;return}}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);ze===0&&(ze=5)}function pn(e,t,n){var r=ke,l=ht.transition;try{ht.transition=null,ke=1,bd(e,t,n,r)}finally{ht.transition=l,ke=r}return null}function bd(e,t,n,r){do Bn();while(qt!==null);if((_e&6)!==0)throw Error(a(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Pu(e,i),e===Be&&($e=Be=null,We=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Es||(Es=!0,Pc(Mr,function(){return Bn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=ht.transition,ht.transition=null;var c=ke;ke=1;var d=_e;_e|=4,vi.current=null,Gd(e,n),yc(n,e),yd(Sl),Br=!!wl,Sl=wl=null,e.current=n,Yd(n),wu(),_e=d,ke=c,ht.transition=i}else e.current=n;if(Es&&(Es=!1,qt=e,Cs=l),i=e.pendingLanes,i===0&&(Zt=null),Cu(n.stateNode),nt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Ss)throw Ss=!1,e=yi,yi=null,e;return(Cs&1)!==0&&e.tag!==0&&Bn(),i=e.pendingLanes,(i&1)!==0?e===xi?Er++:(Er=0,xi=e):Er=0,Gt(),null}function Bn(){if(qt!==null){var e=va(Cs),t=ht.transition,n=ke;try{if(ht.transition=null,ke=16>e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,Cs=0,(_e&6)!==0)throw Error(a(331));var l=_e;for(_e|=4,X=e.current;X!==null;){var i=X,c=i.child;if((X.flags&16)!==0){var d=i.deletions;if(d!==null){for(var h=0;h<d.length;h++){var w=d[h];for(X=w;X!==null;){var M=X;switch(M.tag){case 0:case 11:case 15:jr(8,M,i)}var O=M.child;if(O!==null)O.return=M,X=O;else for(;X!==null;){M=X;var P=M.sibling,K=M.return;if(mc(M),M===w){X=null;break}if(P!==null){P.return=K,X=P;break}X=K}}}var Z=i.alternate;if(Z!==null){var q=Z.child;if(q!==null){Z.child=null;do{var Me=q.sibling;q.sibling=null,q=Me}while(q!==null)}}X=i}}if((i.subtreeFlags&2064)!==0&&c!==null)c.return=i,X=c;else e:for(;X!==null;){if(i=X,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:jr(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,X=y;break e}X=i.return}}var v=e.current;for(X=v;X!==null;){c=X;var k=c.child;if((c.subtreeFlags&2064)!==0&&k!==null)k.return=c,X=k;else e:for(c=v;X!==null;){if(d=X,(d.flags&2048)!==0)try{switch(d.tag){case 0:case 11:case 15:Ns(9,d)}}catch(ee){Re(d,d.return,ee)}if(d===c){X=null;break e}var B=d.sibling;if(B!==null){B.return=d.return,X=B;break e}X=d.return}}if(_e=l,Gt(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot($r,e)}catch{}r=!0}return r}finally{ke=n,ht.transition=t}}return!1}function Fc(e,t,n){t=An(n,t),t=Yo(e,t,1),e=Xt(e,t,1),t=Ze(),e!==null&&(Jn(e,1,t),nt(e,t))}function Re(e,t,n){if(e.tag===3)Fc(e,e,n);else for(;t!==null;){if(t.tag===3){Fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zt===null||!Zt.has(r))){e=An(n,e),e=Xo(t,e,1),t=Xt(t,e,1),e=Ze(),t!==null&&(Jn(t,1,e),nt(t,e));break}}t=t.return}}function ef(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(We&n)===n&&(ze===4||ze===3&&(We&130023424)===We&&500>Pe()-_i?mn(e,0):gi|=n),nt(e,t)}function Lc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ar,Ar<<=1,(Ar&130023424)===0&&(Ar=4194304)));var n=Ze();e=Rt(e,t),e!==null&&(Jn(e,t,n),nt(e,n))}function tf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lc(e,n)}function nf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Lc(e,n)}var Rc;Rc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)et=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return et=!1,Hd(e,t,n);et=(e.flags&131072)!==0}else et=!1,Ee&&(t.flags&1048576)!==0&&uo(t,ls,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xs(e,t),e=t.pendingProps;var l=In(t,Ke.current);$n(t,n),l=Xl(null,t,r,e,l,n);var i=Jl();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(i=!0,ns(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Vl(t),l.updater=_s,t.stateNode=l,l._reactInternals=t,ni(t,r,e,n),t=ii(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Rl(t),Je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=sf(r),e=_t(r,e),l){case 0:t=li(null,t,r,e,n);break e;case 1:t=sc(null,t,r,e,n);break e;case 11:t=bo(null,t,r,e,n);break e;case 14:t=ec(null,t,r,_t(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_t(r,l),li(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_t(r,l),sc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(a(387));r=t.pendingProps,i=t.memoizedState,l=i.element,xo(e,t),ds(t,r,null,n);var c=t.memoizedState;if(r=c.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=An(Error(a(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=An(Error(a(424)),t),t=ic(e,t,r,n,l);break e}else for(it=Wt(t.stateNode.containerInfo.firstChild),lt=t,Ee=!0,gt=null,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===l){t=Mt(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return jo(t),e===null&&$l(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,c=l.children,El(r,l)?c=null:i!==null&&El(r,i)&&(t.flags|=32),rc(e,t),Je(e,t,c,n),t.child;case 6:return e===null&&$l(t),null;case 13:return ac(e,t,n);case 4:return Hl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_t(r,l),bo(e,t,r,l,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,c=l.value,je(os,r._currentValue),r._currentValue=c,i!==null)if(vt(i.value,c)){if(i.children===l.children&&!qe.current){t=Mt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var d=i.dependencies;if(d!==null){c=i.child;for(var h=d.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=Pt(-1,n&-n),h.tag=2;var w=i.updateQueue;if(w!==null){w=w.shared;var M=w.pending;M===null?h.next=h:(h.next=M.next,M.next=h),w.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),Ul(i.return,n,t),d.lanes|=n;break}h=h.next}}else if(i.tag===10)c=i.type===t.type?null:i.child;else if(i.tag===18){if(c=i.return,c===null)throw Error(a(341));c.lanes|=n,d=c.alternate,d!==null&&(d.lanes|=n),Ul(c,n,t),c=i.sibling}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===t){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}Je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,$n(t,n),l=dt(l),r=r(l),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,l=_t(r,t.pendingProps),l=_t(r.type,l),ec(e,t,r,l,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_t(r,l),xs(e,t),t.tag=1,be(r)?(e=!0,ns(t)):e=!1,$n(t,n),Ko(t,r,l),ni(t,r,l,n),ii(null,t,r,!0,e,n);case 19:return cc(e,t,n);case 22:return nc(e,t,n)}throw Error(a(156,t.tag))};function Pc(e,t){return da(e,t)}function rf(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 mt(e,t,n,r){return new rf(e,t,n,r)}function Ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sf(e){if(typeof e=="function")return Ei(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ne)return 11;if(e===Q)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=mt(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 Ls(e,t,n,r,l,i){var c=2;if(r=e,typeof e=="function")Ei(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case W:return vn(n.children,l,i,t);case te:c=8,l|=8;break;case G:return e=mt(12,n,t,l|2),e.elementType=G,e.lanes=i,e;case Te:return e=mt(13,n,t,l),e.elementType=Te,e.lanes=i,e;case De:return e=mt(19,n,t,l),e.elementType=De,e.lanes=i,e;case me:return Rs(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:c=10;break e;case ve:c=9;break e;case Ne:c=11;break e;case Q:c=14;break e;case fe:c=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=mt(c,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function vn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Rs(e,t,n,r){return e=mt(22,e,r,t),e.elementType=me,e.lanes=n,e.stateNode={isHidden:!1},e}function Ci(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lf(e,t,n,r,l){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=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ii(e,t,n,r,l,i,c,d,h){return e=new lf(e,t,n,d,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vl(i),e}function af(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mc(e){if(!e)return Kt;e=e._reactInternals;e:{if(rn(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(be(n))return ao(e,n,t)}return t}function $c(e,t,n,r,l,i,c,d,h){return e=Ii(n,r,!0,e,l,i,c,d,h),e.context=Mc(null),n=e.current,r=Ze(),l=bt(n),i=Pt(r,l),i.callback=t??null,Xt(n,i,l),e.current.lanes=l,Jn(e,l,r),nt(e,r),e}function Ps(e,t,n,r){var l=t.current,i=Ze(),c=bt(l);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Pt(i,c),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xt(l,t,c),e!==null&&(kt(e,l,c,i),us(e,l,c)),c}function Ms(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 Oc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fi(e,t){Oc(e,t),(e=e.alternate)&&Oc(e,t)}function of(){return null}var Ac=typeof reportError=="function"?reportError:function(e){console.error(e)};function Li(e){this._internalRoot=e}$s.prototype.render=Li.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Ps(e,t,null,null)},$s.prototype.unmount=Li.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Ps(null,e,null,null)}),t[Tt]=null}};function $s(e){this._internalRoot=e}$s.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Bt.length&&t!==0&&t<Bt[n].priority;n++);Bt.splice(n,0,e),n===0&&Na(e)}};function Ri(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Os(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zc(){}function cf(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var w=Ms(c);i.call(w)}}var c=$c(t,r,e,0,null,!1,!1,"",zc);return e._reactRootContainer=c,e[Tt]=c.current,ur(e.nodeType===8?e.parentNode:e),hn(),c}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var d=r;r=function(){var w=Ms(h);d.call(w)}}var h=Ii(e,0,!1,null,null,!1,!1,"",zc);return e._reactRootContainer=h,e[Tt]=h.current,ur(e.nodeType===8?e.parentNode:e),hn(function(){Ps(t,h,n,r)}),h}function As(e,t,n,r,l){var i=n._reactRootContainer;if(i){var c=i;if(typeof l=="function"){var d=l;l=function(){var h=Ms(c);d.call(h)}}Ps(t,c,e,l)}else c=cf(n,t,e,l,r);return Ms(c)}ga=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xn(t.pendingLanes);n!==0&&(nl(t,n|1),nt(t,Pe()),(_e&6)===0&&(Un=Pe()+500,Gt()))}break;case 13:hn(function(){var r=Rt(e,1);if(r!==null){var l=Ze();kt(r,e,1,l)}}),Fi(e,1)}},rl=function(e){if(e.tag===13){var t=Rt(e,134217728);if(t!==null){var n=Ze();kt(t,e,134217728,n)}Fi(e,134217728)}},_a=function(e){if(e.tag===13){var t=bt(e),n=Rt(e,t);if(n!==null){var r=Ze();kt(n,e,t,r)}Fi(e,t)}},ya=function(){return ke},xa=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Xs=function(e,t,n){switch(t){case"input":if(Bs(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 l=es(r);if(!l)throw Error(a(90));Qe(r),Bs(r,l)}}}break;case"textarea":Xi(e,n);break;case"select":t=n.value,t!=null&&gn(e,!!n.multiple,t,!1)}},sa=ji,la=hn;var uf={usingClientEntryPoint:!1,Events:[hr,Cn,es,na,ra,ji]},Cr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},df={bundleType:Cr.bundleType,version:Cr.version,rendererPackageName:Cr.rendererPackageName,rendererConfig:Cr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ca(e),e===null?null:e.stateNode},findFiberByHostInstance:Cr.findFiberByHostInstance||of,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 zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zs.isDisabled&&zs.supportsFiber)try{$r=zs.inject(df),jt=zs}catch{}}return rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uf,rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ri(t))throw Error(a(200));return af(e,t,null,n)},rt.createRoot=function(e,t){if(!Ri(e))throw Error(a(299));var n=!1,r="",l=Ac;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ii(e,1,!1,null,null,n,!1,r,l),e[Tt]=t.current,ur(e.nodeType===8?e.parentNode:e),new Li(t)},rt.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(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=ca(t),e=e===null?null:e.stateNode,e},rt.flushSync=function(e){return hn(e)},rt.hydrate=function(e,t,n){if(!Os(t))throw Error(a(200));return As(null,e,t,!0,n)},rt.hydrateRoot=function(e,t,n){if(!Ri(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",c=Ac;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),t=$c(t,null,e,1,n??null,l,!1,i,c),e[Tt]=t.current,ur(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new $s(t)},rt.render=function(e,t,n){if(!Os(t))throw Error(a(200));return As(null,e,t,!1,n)},rt.unmountComponentAtNode=function(e){if(!Os(e))throw Error(a(40));return e._reactRootContainer?(hn(function(){As(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},rt.unstable_batchedUpdates=ji,rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Os(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return As(e,t,n,!1,r)},rt.version="18.3.1-next-f1338f8080-20240426",rt}var Qc;function gf(){if(Qc)return Mi.exports;Qc=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),Mi.exports=vf(),Mi.exports}var Kc;function _f(){if(Kc)return Ds;Kc=1;var o=gf();return Ds.createRoot=o.createRoot,Ds.hydrateRoot=o.hydrateRoot,Ds}var Gc=_f(),Ai={exports:{}},Tr={};/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.production.min.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var Yc;function yf(){if(Yc)return Tr;Yc=1;var o=Hi(),u=Symbol.for("react.element"),a=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function F(_,I,U){var V,A={},T=null,Y=null;U!==void 0&&(T=""+U),I.key!==void 0&&(T=""+I.key),I.ref!==void 0&&(Y=I.ref);for(V in I)m.call(I,V)&&!x.hasOwnProperty(V)&&(A[V]=I[V]);if(_&&_.defaultProps)for(V in I=_.defaultProps,I)A[V]===void 0&&(A[V]=I[V]);return{$$typeof:u,type:_,key:T,ref:Y,props:A,_owner:f.current}}return Tr.Fragment=a,Tr.jsx=F,Tr.jsxs=F,Tr}var Xc;function xf(){return Xc||(Xc=1,Ai.exports=yf()),Ai.exports}var s=xf();const kf=({nodes:o,onNodeClick:u,onToggleExpansion:a,searchTerm:m="",className:f=""})=>{const[x,F]=b.useState(null),_=b.useRef(null);b.useEffect(()=>{const U=V=>{if(!x||!_.current?.contains(document.activeElement))return;const A=jf(o),T=A.findIndex(Y=>Y.id===x);switch(V.key){case"ArrowDown":V.preventDefault(),T<A.length-1&&F(A[T+1].id);break;case"ArrowUp":V.preventDefault(),T>0&&F(A[T-1].id);break;case"ArrowRight":V.preventDefault();const Y=A[T];Y.type==="folder"&&!Y.isExpanded&&Y.children.length>0&&a(Y.id,!0);break;case"ArrowLeft":V.preventDefault();const D=A[T];D.type==="folder"&&D.isExpanded&&a(D.id,!1);break;case"Enter":case" ":V.preventDefault();const p=A[T];p.type==="folder"?a(p.id):u&&u(p);break}};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[x,o,a,u]);const I=(U,V=0)=>{const A=U.children.length>0,T=U.type==="folder",Y=x===U.id,D=S=>{S.stopPropagation(),F(U.id),T?a(U.id):u&&u(U)},p=S=>{S.stopPropagation(),a(U.id)};return s.jsxs("div",{className:"tree-node-container",children:[s.jsxs("div",{className:`tree-node ${Y?"tree-node--focused":""} ${T?"":"tree-node--leaf"}`,style:{paddingLeft:`${V*20+8}px`},onClick:D,tabIndex:0,role:"treeitem","aria-expanded":T?U.isExpanded:void 0,"aria-level":V+1,onFocus:()=>F(U.id),children:[T&&A&&s.jsx("button",{className:`tree-expander ${U.isExpanded?"tree-expander--expanded":""}`,onClick:p,"aria-label":U.isExpanded?"Collapse":"Expand",children:s.jsx("span",{className:"tree-expander-icon",children:"▶"})}),(!T||!A)&&s.jsx("span",{className:"tree-expander tree-expander--placeholder"}),s.jsx("span",{className:"tree-node-icon",children:U.icon}),s.jsx("span",{className:"tree-node-label",children:Nf(U.label,m)}),U.count!==void 0&&s.jsx("span",{className:"tree-node-count",children:U.count})]}),T&&U.isExpanded&&A&&s.jsx("div",{className:"tree-children",role:"group",children:U.children.map(S=>I(S,V+1))})]},U.id)};return s.jsx("div",{ref:_,className:`tree-view ${f}`,role:"tree","aria-label":"Documentation tree",children:o.map(U=>I(U))})};function Nf(o,u){if(!u.trim())return o;const a=u.toLowerCase(),f=o.toLowerCase().indexOf(a);return f===-1?o:s.jsxs(s.Fragment,{children:[o.substring(0,f),s.jsx("mark",{className:"tree-search-highlight",children:o.substring(f,f+a.length)}),o.substring(f+a.length)]})}function jf(o){const u=[],a=m=>{for(const f of m)u.push(f),f.isExpanded&&f.children.length>0&&a(f.children)};return a(o),u}function Ui(o){return o.split(".")}function su(o){const u=Ui(o.id);if(u.length>=2){const a=u[u.length-2];if(["tasks","task"].includes(a))return"task";if(["resources","resource"].includes(a))return"resource";if(["events","event"].includes(a))return"event";if(["hooks","hook"].includes(a))return"hook";if(["middlewares","middleware"].includes(a))return"middleware";if(["tags","tag"].includes(a))return"tag"}return o.type?o.type:"task"}function Bi(o){return{folder:"📁",task:"⚙️",resource:"🔧",event:"📡",hook:"🪝",middleware:"🔗",tag:"🏷️"}[o]||"📄"}function lu(o){const u=new Map;o.forEach(f=>{const x=Ui(f.id),F=su(f);let _="",I=u;for(let U=0;U<x.length;U++){const V=x[U];if(_=_?`${_}.${V}`:V,!I.has(_)){const A=U===x.length-1,T=A?F:"folder",Y={id:_,label:V,type:T,icon:Bi(T),children:[],elementId:A?f.id:void 0,element:A?f:void 0,isExpanded:!1};if(I.set(_,Y),U>0){const D=x.slice(0,U).join("."),p=u.get(D);p&&!p.children.find(S=>S.id===_)&&p.children.push(Y)}}I=u}});const a=Array.from(u.values()).filter(f=>Ui(f.id).length===1),m=f=>f.map(x=>({...x,children:m(x.children),count:x.type==="folder"?iu(x):void 0})).sort((x,F)=>x.type==="folder"&&F.type!=="folder"?-1:x.type!=="folder"&&F.type==="folder"?1:x.label.localeCompare(F.label));return m(a)}function iu(o){return o.children.length===0?1:o.children.reduce((u,a)=>u+iu(a),0)}function wf(o){const u=new Map;o.forEach(m=>{const f=su(m);u.has(f)||u.set(f,[]),u.get(f).push(m)});const a=[];return u.forEach((m,f)=>{const x=lu(m);x.length===1&&x[0].children.length>0?a.push({id:f,label:Jc(f+"s"),type:"folder",icon:Bi(f),children:x[0].children,count:m.length,isExpanded:!1}):a.push({id:f,label:Jc(f+"s"),type:"folder",icon:Bi(f),children:x,count:m.length,isExpanded:!1})}),a.sort((m,f)=>m.label.localeCompare(f.label))}function Sf(o,u){if(!u.trim())return o;const a=u.toLowerCase(),m=f=>{const x=f.label.toLowerCase().includes(a)||f.elementId&&f.elementId.toLowerCase().includes(a),F=f.children.map(m).filter(_=>_!==null);return x||F.length>0?{...f,children:F,isExpanded:F.length>0}:null};return o.map(m).filter(f=>f!==null)}function au(o,u,a){return o.map(m=>m.id===u?{...m,isExpanded:a!==void 0?a:!m.isExpanded}:m.children.length>0?{...m,children:au(m.children,u,a)}:m)}function Jc(o){return o.charAt(0).toUpperCase()+o.slice(1)}const Vn=o=>{if(!o)return"No schema defined";try{const u=JSON.parse(o);return JSON.stringify(u,null,2)}catch{return o}},Ef=o=>{if(!o)return"No configuration";try{const u=JSON.parse(o);return JSON.stringify(u,null,2)}catch{return o}},Ot=o=>{if(!o)return"Unknown location";const u=["workspace","node_modules","home"],a=o.indexOf(":"),m=x=>x.split(/[\\/]+/).filter(Boolean);if(a>0){const x=o.slice(0,a),F=o.slice(a+1);if(u.includes(x)){const _=m(F);if(x==="node_modules"&&_[0]?.startsWith("@"))return _.length<=4?`${x}:${_.join("/")}`:`${x}:/.../${_.slice(-3).join("/")}`;{if(_.length>3)return`${x}:/.../${_.slice(-3).join("/")}`;const I=_.join("/");return`${x}:${I||"."}`}}}const f=m(o);return f.length>3?".../"+f.slice(-3).join("/"):f.join("/")},Cf=o=>{switch(o.toLowerCase()){case"error":return"❌";case"warning":return"⚠️";case"info":return"ℹ️";default:return"📝"}},ie=o=>o.replace(/\./g," › "),Tf=o=>!o||o.length===0?"None":o.length===1?o[0]:o.length<=3?o.join(", "):`${o.slice(0,3).join(", ")} and ${o.length-3} more`;var zi={exports:{}},Zc;function If(){return Zc||(Zc=1,(function(o){var u=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
41
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
42
|
-
*
|
|
43
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
44
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
45
|
-
* @namespace
|
|
46
|
-
* @public
|
|
47
|
-
*/var a=(function(m){var f=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,x=0,F={},_={manual:m.Prism&&m.Prism.manual,disableWorkerMessageHandler:m.Prism&&m.Prism.disableWorkerMessageHandler,util:{encode:function j(N){return N instanceof I?new I(N.type,j(N.content),N.alias):Array.isArray(N)?N.map(j):N.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(j){return Object.prototype.toString.call(j).slice(8,-1)},objId:function(j){return j.__id||Object.defineProperty(j,"__id",{value:++x}),j.__id},clone:function j(N,C){C=C||{};var L,R;switch(_.util.type(N)){case"Object":if(R=_.util.objId(N),C[R])return C[R];L={},C[R]=L;for(var W in N)N.hasOwnProperty(W)&&(L[W]=j(N[W],C));return L;case"Array":return R=_.util.objId(N),C[R]?C[R]:(L=[],C[R]=L,N.forEach(function(te,G){L[G]=j(te,C)}),L);default:return N}},getLanguage:function(j){for(;j;){var N=f.exec(j.className);if(N)return N[1].toLowerCase();j=j.parentElement}return"none"},setLanguage:function(j,N){j.className=j.className.replace(RegExp(f,"gi"),""),j.classList.add("language-"+N)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(L){var j=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(L.stack)||[])[1];if(j){var N=document.getElementsByTagName("script");for(var C in N)if(N[C].src==j)return N[C]}return null}},isActive:function(j,N,C){for(var L="no-"+N;j;){var R=j.classList;if(R.contains(N))return!0;if(R.contains(L))return!1;j=j.parentElement}return!!C}},languages:{plain:F,plaintext:F,text:F,txt:F,extend:function(j,N){var C=_.util.clone(_.languages[j]);for(var L in N)C[L]=N[L];return C},insertBefore:function(j,N,C,L){L=L||_.languages;var R=L[j],W={};for(var te in R)if(R.hasOwnProperty(te)){if(te==N)for(var G in C)C.hasOwnProperty(G)&&(W[G]=C[G]);C.hasOwnProperty(te)||(W[te]=R[te])}var ae=L[j];return L[j]=W,_.languages.DFS(_.languages,function(ve,Ne){Ne===ae&&ve!=j&&(this[ve]=W)}),W},DFS:function j(N,C,L,R){R=R||{};var W=_.util.objId;for(var te in N)if(N.hasOwnProperty(te)){C.call(N,te,N[te],L||te);var G=N[te],ae=_.util.type(G);ae==="Object"&&!R[W(G)]?(R[W(G)]=!0,j(G,C,null,R)):ae==="Array"&&!R[W(G)]&&(R[W(G)]=!0,j(G,C,te,R))}}},plugins:{},highlightAll:function(j,N){_.highlightAllUnder(document,j,N)},highlightAllUnder:function(j,N,C){var L={callback:C,container:j,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",L),L.elements=Array.prototype.slice.apply(L.container.querySelectorAll(L.selector)),_.hooks.run("before-all-elements-highlight",L);for(var R=0,W;W=L.elements[R++];)_.highlightElement(W,N===!0,L.callback)},highlightElement:function(j,N,C){var L=_.util.getLanguage(j),R=_.languages[L];_.util.setLanguage(j,L);var W=j.parentElement;W&&W.nodeName.toLowerCase()==="pre"&&_.util.setLanguage(W,L);var te=j.textContent,G={element:j,language:L,grammar:R,code:te};function ae(Ne){G.highlightedCode=Ne,_.hooks.run("before-insert",G),G.element.innerHTML=G.highlightedCode,_.hooks.run("after-highlight",G),_.hooks.run("complete",G),C&&C.call(G.element)}if(_.hooks.run("before-sanity-check",G),W=G.element.parentElement,W&&W.nodeName.toLowerCase()==="pre"&&!W.hasAttribute("tabindex")&&W.setAttribute("tabindex","0"),!G.code){_.hooks.run("complete",G),C&&C.call(G.element);return}if(_.hooks.run("before-highlight",G),!G.grammar){ae(_.util.encode(G.code));return}if(N&&m.Worker){var ve=new Worker(_.filename);ve.onmessage=function(Ne){ae(Ne.data)},ve.postMessage(JSON.stringify({language:G.language,code:G.code,immediateClose:!0}))}else ae(_.highlight(G.code,G.grammar,G.language))},highlight:function(j,N,C){var L={code:j,grammar:N,language:C};if(_.hooks.run("before-tokenize",L),!L.grammar)throw new Error('The language "'+L.language+'" has no grammar.');return L.tokens=_.tokenize(L.code,L.grammar),_.hooks.run("after-tokenize",L),I.stringify(_.util.encode(L.tokens),L.language)},tokenize:function(j,N){var C=N.rest;if(C){for(var L in C)N[L]=C[L];delete N.rest}var R=new A;return T(R,R.head,j),V(j,R,N,R.head,0),D(R)},hooks:{all:{},add:function(j,N){var C=_.hooks.all;C[j]=C[j]||[],C[j].push(N)},run:function(j,N){var C=_.hooks.all[j];if(!(!C||!C.length))for(var L=0,R;R=C[L++];)R(N)}},Token:I};m.Prism=_;function I(j,N,C,L){this.type=j,this.content=N,this.alias=C,this.length=(L||"").length|0}I.stringify=function j(N,C){if(typeof N=="string")return N;if(Array.isArray(N)){var L="";return N.forEach(function(ae){L+=j(ae,C)}),L}var R={type:N.type,content:j(N.content,C),tag:"span",classes:["token",N.type],attributes:{},language:C},W=N.alias;W&&(Array.isArray(W)?Array.prototype.push.apply(R.classes,W):R.classes.push(W)),_.hooks.run("wrap",R);var te="";for(var G in R.attributes)te+=" "+G+'="'+(R.attributes[G]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+te+">"+R.content+"</"+R.tag+">"};function U(j,N,C,L){j.lastIndex=N;var R=j.exec(C);if(R&&L&&R[1]){var W=R[1].length;R.index+=W,R[0]=R[0].slice(W)}return R}function V(j,N,C,L,R,W){for(var te in C)if(!(!C.hasOwnProperty(te)||!C[te])){var G=C[te];G=Array.isArray(G)?G:[G];for(var ae=0;ae<G.length;++ae){if(W&&W.cause==te+","+ae)return;var ve=G[ae],Ne=ve.inside,Te=!!ve.lookbehind,De=!!ve.greedy,Q=ve.alias;if(De&&!ve.pattern.global){var fe=ve.pattern.toString().match(/[imsuy]*$/)[0];ve.pattern=RegExp(ve.pattern.source,fe+"g")}for(var me=ve.pattern||ve,z=L.next,J=R;z!==N.tail&&!(W&&J>=W.reach);J+=z.value.length,z=z.next){var H=z.value;if(N.length>j.length)return;if(!(H instanceof I)){var g=1,E;if(De){if(E=U(me,J,j,Te),!E||E.index>=j.length)break;var de=E.index,oe=E.index+E[0].length,se=J;for(se+=z.value.length;de>=se;)z=z.next,se+=z.value.length;if(se-=z.value.length,J=se,z.value instanceof I)continue;for(var ce=z;ce!==N.tail&&(se<oe||typeof ce.value=="string");ce=ce.next)g++,se+=ce.value.length;g--,H=j.slice(J,se),E.index-=J}else if(E=U(me,0,H,Te),!E)continue;var de=E.index,ge=E[0],pe=H.slice(0,de),xe=H.slice(de+ge.length),Oe=J+H.length;W&&Oe>W.reach&&(W.reach=Oe);var ue=z.prev;pe&&(ue=T(N,ue,pe),J+=pe.length),Y(N,ue,g);var Qe=new I(te,Ne?_.tokenize(ge,Ne):ge,Q,ge);if(z=T(N,ue,Qe),xe&&T(N,z,xe),g>1){var ot={cause:te+","+ae,reach:Oe};V(j,N,C,z.prev,J,ot),W&&ot.reach>W.reach&&(W.reach=ot.reach)}}}}}}function A(){var j={value:null,prev:null,next:null},N={value:null,prev:j,next:null};j.next=N,this.head=j,this.tail=N,this.length=0}function T(j,N,C){var L=N.next,R={value:C,prev:N,next:L};return N.next=R,L.prev=R,j.length++,R}function Y(j,N,C){for(var L=N.next,R=0;R<C&&L!==j.tail;R++)L=L.next;N.next=L,L.prev=N,j.length-=R}function D(j){for(var N=[],C=j.head.next;C!==j.tail;)N.push(C.value),C=C.next;return N}if(!m.document)return m.addEventListener&&(_.disableWorkerMessageHandler||m.addEventListener("message",function(j){var N=JSON.parse(j.data),C=N.language,L=N.code,R=N.immediateClose;m.postMessage(_.highlight(L,_.languages[C],C)),R&&m.close()},!1)),_;var p=_.util.currentScript();p&&(_.filename=p.src,p.hasAttribute("data-manual")&&(_.manual=!0));function S(){_.manual||_.highlightAll()}if(!_.manual){var $=document.readyState;$==="loading"||$==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return _})(u);o.exports&&(o.exports=a),typeof Dc<"u"&&(Dc.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(m){m.type==="entity"&&(m.attributes.title=m.content.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(f,x){var F={};F["language-"+x]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[x]},F.cdata=/^<!\[CDATA\[|\]\]>$/i;var _={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:F}};_["language-"+x]={pattern:/[\s\S]+/,inside:a.languages[x]};var I={};I[f]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return f}),"i"),lookbehind:!0,greedy:!0,inside:_},a.languages.insertBefore("markup","cdata",I)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(m,f){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+m+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[f,"language-"+f],inside:a.languages[f]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,(function(m){var f=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;m.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+f.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+f.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+f.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+f.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:f,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},m.languages.css.atrule.inside.rest=m.languages.css;var x=m.languages.markup;x&&(x.tag.addInlined("style","css"),x.tag.addAttribute("style","css"))})(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,(function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var m="Loading…",f=function(p,S){return"✖ Error "+p+" while fetching file: "+S},x="✖ Error: File does not exist or is empty",F={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},_="data-src-status",I="loading",U="loaded",V="failed",A="pre[data-src]:not(["+_+'="'+U+'"]):not(['+_+'="'+I+'"])';function T(p,S,$){var j=new XMLHttpRequest;j.open("GET",p,!0),j.onreadystatechange=function(){j.readyState==4&&(j.status<400&&j.responseText?S(j.responseText):j.status>=400?$(f(j.status,j.statusText)):$(x))},j.send(null)}function Y(p){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p||"");if(S){var $=Number(S[1]),j=S[2],N=S[3];return j?N?[$,Number(N)]:[$,void 0]:[$,$]}}a.hooks.add("before-highlightall",function(p){p.selector+=", "+A}),a.hooks.add("before-sanity-check",function(p){var S=p.element;if(S.matches(A)){p.code="",S.setAttribute(_,I);var $=S.appendChild(document.createElement("CODE"));$.textContent=m;var j=S.getAttribute("data-src"),N=p.language;if(N==="none"){var C=(/\.(\w+)$/.exec(j)||[,"none"])[1];N=F[C]||C}a.util.setLanguage($,N),a.util.setLanguage(S,N);var L=a.plugins.autoloader;L&&L.loadLanguages(N),T(j,function(R){S.setAttribute(_,U);var W=Y(S.getAttribute("data-range"));if(W){var te=R.split(/\r\n?|\n/g),G=W[0],ae=W[1]==null?te.length:W[1];G<0&&(G+=te.length),G=Math.max(0,Math.min(G-1,te.length)),ae<0&&(ae+=te.length),ae=Math.max(0,Math.min(ae,te.length)),R=te.slice(G,ae).join(`
|
|
48
|
-
`),S.hasAttribute("data-start")||S.setAttribute("data-start",String(G+1))}$.textContent=R,a.highlightElement($)},function(R){S.setAttribute(_,V),$.textContent=R})}}),a.plugins.fileHighlight={highlight:function(S){for(var $=(S||document).querySelectorAll(A),j=0,N;N=$[j++];)a.highlightElement(N)}};var D=!1;a.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(zi)),zi.exports}var Ff=If();const Lf=ru(Ff);var qc={},bc;function Rf(){return bc||(bc=1,(function(o){o.languages.typescript=o.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),o.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete o.languages.typescript.parameter,delete o.languages.typescript["literal-property"];var u=o.languages.extend("typescript",{});delete u["class-name"],o.languages.typescript["class-name"].inside=u,o.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:u}}}}),o.languages.ts=o.languages.typescript})(Prism)),qc}Rf();const At=({title:o,subtitle:u,isOpen:a,onClose:m,code:f})=>{const x=b.useRef(null),F=b.useRef({overflow:"",paddingRight:""});return b.useEffect(()=>{function _(I){I.key==="Escape"&&m()}if(a){F.current={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight};const I=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",I>0&&(document.body.style.paddingRight=`${I}px`),window.addEventListener("keydown",_)}else document.body.style.overflow=F.current.overflow,document.body.style.paddingRight=F.current.paddingRight,window.removeEventListener("keydown",_);return()=>{window.removeEventListener("keydown",_),a&&(document.body.style.overflow=F.current.overflow,document.body.style.paddingRight=F.current.paddingRight)}},[a]),b.useEffect(()=>{a&&x.current&&f&&Lf.highlightElement(x.current)},[a,f]),a?s.jsx("div",{className:"code-modal__backdrop",onClick:m,children:s.jsxs("div",{className:"code-modal__dialog",onClick:_=>{_.stopPropagation()},children:[s.jsxs("div",{className:"code-modal__header",children:[s.jsxs("div",{className:"code-modal__titles",children:[s.jsx("h3",{className:"code-modal__title",children:o}),u&&s.jsx("div",{className:"code-modal__subtitle",children:u})]}),s.jsxs("div",{className:"code-modal__header-right",children:[s.jsx("div",{className:"code-modal__esc-hint",children:"Press ESC to Close"}),s.jsx("button",{className:"code-modal__close",onClick:m,children:"×"})]})]}),s.jsx("div",{className:"code-modal__content",children:s.jsx("pre",{className:"code-modal__pre",children:s.jsx("code",{ref:x,className:"language-typescript",children:f??"No content"})})})]})}):null};function Pf(){try{const o=__API_URL__;if(o&&typeof o=="string"&&o.length>0)return o}catch{}return typeof window<"u"?window.location.origin:""}async function Nt(o,u){const a=new URL("/graphql",Pf()).toString(),m=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:o,variables:u})}),f=await m.json();if(!m.ok)throw new Error(`GraphQL HTTP ${m.status}`);if(f.errors&&f.errors.length>0)throw new Error(f.errors.map(x=>x.message).join(`
|
|
49
|
-
`));return f.data}const ou=`
|
|
50
|
-
query TaskFile($id: ID!, $startLine: Int, $endLine: Int) {
|
|
51
|
-
task(id: $id) {
|
|
52
|
-
id
|
|
53
|
-
filePath
|
|
54
|
-
fileContents(startLine: $startLine, endLine: $endLine)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`,cu=`
|
|
58
|
-
query ResourceFile($id: ID!, $startLine: Int, $endLine: Int) {
|
|
59
|
-
resource(id: $id) {
|
|
60
|
-
id
|
|
61
|
-
filePath
|
|
62
|
-
fileContents(startLine: $startLine, endLine: $endLine)
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
`,uu=`
|
|
66
|
-
query MiddlewareFile($id: ID!, $startLine: Int, $endLine: Int) {
|
|
67
|
-
middleware(id: $id) {
|
|
68
|
-
id
|
|
69
|
-
filePath
|
|
70
|
-
fileContents(startLine: $startLine, endLine: $endLine)
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
`,du=`
|
|
74
|
-
query EventFile($id: ID!, $startLine: Int, $endLine: Int) {
|
|
75
|
-
event(id: $id) {
|
|
76
|
-
id
|
|
77
|
-
filePath
|
|
78
|
-
fileContents(startLine: $startLine, endLine: $endLine)
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
`,Fr=({element:o,introspector:u,className:a=""})=>{if(!o.tags||o.tags.length===0)return null;const m=u.getTagsByIds(o.tags);return s.jsxs("div",{className:`tags-section ${a}`,children:[s.jsx("h4",{className:"tags-section__title",children:"🏷️ Tags"}),s.jsxs("div",{className:"tags-section__content",children:[s.jsx("div",{className:"tags-section__items",children:m.map(f=>s.jsxs("a",{href:`#element-${f.id}`,className:"tags-section__tag tags-section__tag-link",children:[s.jsx("div",{className:"tags-section__tag__title",children:ie(f.id)}),s.jsx("div",{className:"tags-section__tag__id",children:f.id}),s.jsx("div",{className:"tags-section__tag__stats",children:s.jsxs("span",{className:"stat",children:[f.tasks.length+f.resources.length+f.middlewares.length+f.events.length+f.hooks.length," elements"]})})]},f.id))}),o.tagsDetailed&&o.tagsDetailed.length>0&&s.jsxs("div",{className:"tags-section__detailed",children:[s.jsx("h5",{className:"tags-section__detailed__title",children:"Tag Configurations"}),s.jsx("div",{className:"tags-section__detailed__items",children:o.tagsDetailed.map(f=>{const x=m.find(F=>F.id===f.id);return s.jsxs("div",{className:"tags-section__detailed__item",children:[s.jsx("div",{className:"tag-name",children:s.jsx("a",{href:`#element-${f.id}`,className:"tags-section__tag-link",children:x?ie(x.id):f.id})}),f.config&&s.jsxs("div",{className:"tag-config",children:[s.jsx("div",{className:"config-title",children:"Configuration:"}),s.jsx("pre",{className:"config-block",children:f.config})]})]},f.id)})})]})]})]})},Mf=({task:o,introspector:u})=>{const a=u.getDependencies(o),m=u.getMiddlewareUsagesForTask(o.id),f=u.getEmittedEvents(o),[x,F]=Ce.useState(!1),[_,I]=Ce.useState(null),[U,V]=Ce.useState(!1),[A,T]=Ce.useState(null);async function Y(){if(o?.id){F(!0),V(!0),T(null);try{const D=await Nt(ou,{id:o.id});I(D?.task?.fileContents??null)}catch(D){T(D?.message??"Failed to load file"),I(null)}finally{V(!1)}}}return s.jsxs("div",{id:`element-${o.id}`,className:"task-card",children:[s.jsx("div",{className:"task-card__header",children:s.jsxs("div",{className:"task-card__header-content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"task-card__title",children:["⚙️ ",o.meta?.title||ie(o.id)]}),s.jsx("div",{className:"task-card__id",children:o.id}),o.meta?.description&&s.jsx("p",{className:"task-card__description",children:o.meta.description})]}),o.tags&&o.tags.length>0&&s.jsx("div",{className:"task-card__tags",children:o.tags.map(D=>s.jsx("a",{href:`#element-${D}`,children:s.jsx("span",{className:"task-card__tag",children:D})},D))})]})}),s.jsxs("div",{className:"task-card__content",children:[s.jsxs("div",{className:"task-card__grid",children:[s.jsx("div",{children:s.jsxs("div",{className:"task-card__section",children:[s.jsx("h4",{className:"task-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"task-card__section__content",children:[s.jsxs("div",{className:"task-card__info-block",children:[s.jsx("div",{className:"label",children:"File Path:"}),s.jsx("div",{className:"value",children:o.filePath?s.jsx("button",{type:"button",onClick:Y,style:{background:"transparent",border:"none",color:"#0056b3",cursor:"pointer",textDecoration:"underline",padding:0,fontFamily:"inherit",fontSize:"inherit"},title:"View file contents",children:Ot(o.filePath)}):Ot(o.filePath)})]}),o.registeredBy&&s.jsxs("div",{className:"task-card__info-block",children:[s.jsx("div",{className:"label",children:"Registered By:"}),s.jsx("div",{className:"value",children:s.jsx("a",{href:`#element-${o.registeredBy}`,className:"task-card__registrar-link",children:o.registeredBy})})]}),s.jsxs("div",{className:"task-card__info-block",children:[s.jsx("div",{className:"label",children:"Emits Events:"}),s.jsx("div",{className:"value",children:o.emits&&o.emits.length>0?s.jsx("div",{className:"task-card__emits-events",children:o.emits.map(D=>{const p=u.getEvent(D);return p?s.jsx("a",{href:`#element-${p.id}`,className:"task-card__emit-event-link",children:D},D):s.jsx("span",{className:"task-card__emit-event-text",children:D},D)})}):s.jsx("span",{className:"task-card__no-events",children:"None"})})]}),o.overriddenBy&&s.jsxs("div",{className:"task-card__alert task-card__alert--warning",children:[s.jsx("div",{className:"title",children:"⚠️ Overridden By:"}),s.jsx("div",{className:"content",children:o.overriddenBy})]})]})]})}),s.jsx("div",{children:s.jsxs("div",{className:"task-card__section",children:[s.jsx("h4",{className:"task-card__section__title",children:"📝 Schema"}),s.jsx("pre",{className:"task-card__code-block",children:Vn(o.inputSchema)})]})})]}),(a.tasks.length>0||a.resources.length>0||f.length>0)&&s.jsxs("div",{className:"task-card__relations",children:[s.jsx("h4",{className:"task-card__relations__title",children:"🔗 Dependencies & Relations"}),s.jsxs("div",{className:"task-card__relations__grid",children:[a.tasks.length>0&&s.jsxs("div",{className:"task-card__relations__category",children:[s.jsx("h5",{children:"Task Dependencies"}),s.jsx("div",{className:"task-card__relations__items",children:a.tasks.map(D=>s.jsxs("a",{href:`#element-${D.id}`,className:"task-card__relation-item task-card__relation-item--task task-card__relation-link",children:[s.jsx("div",{className:"title title--task",children:D.meta?.title||ie(D.id)}),s.jsx("div",{className:"id",children:D.id})]},D.id))})]}),a.resources.length>0&&s.jsxs("div",{className:"task-card__relations__category",children:[s.jsx("h5",{children:"Resource Dependencies"}),s.jsx("div",{className:"task-card__relations__items",children:a.resources.map(D=>s.jsxs("a",{href:`#element-${D.id}`,className:"task-card__relation-item task-card__relation-item--resource task-card__relation-link",children:[s.jsx("div",{className:"title title--resource",children:D.meta?.title||ie(D.id)}),s.jsx("div",{className:"id",children:D.id})]},D.id))})]}),f.length>0&&s.jsxs("div",{className:"task-card__relations__category",children:[s.jsx("h5",{children:"Emitted Events"}),s.jsx("div",{className:"task-card__relations__items",children:f.map(D=>s.jsxs("a",{href:`#element-${D.id}`,className:"task-card__relation-item task-card__relation-item--event task-card__relation-link",children:[s.jsx("div",{className:"title title--event",children:D.meta?.title||ie(D.id)}),s.jsx("div",{className:"id",children:D.id})]},D.id))})]})]})]}),m.length>0&&s.jsxs("div",{className:"task-card__middleware",children:[s.jsx("h4",{className:"task-card__middleware__title",children:"🔗 Middleware Configuration"}),s.jsx("div",{className:"task-card__middleware__items",children:m.map(D=>s.jsxs("div",{className:"task-card__middleware__item",children:[s.jsxs("a",{href:`#element-${D.id}`,className:"task-card__middleware-link",children:[s.jsx("div",{className:"title",children:D.node.meta?.title||ie(D.id)}),s.jsx("div",{className:"id",children:D.id})]}),D.config&&s.jsxs("div",{children:[s.jsx("div",{className:"config-title",children:"Configuration:"}),s.jsx("pre",{className:"config-block",children:D.config})]})]},D.id))})]}),s.jsx(Fr,{element:o,introspector:u,className:"task-card__tags-section"})]}),s.jsx(At,{title:o.meta?.title||ie(o.id),subtitle:o.filePath||void 0,isOpen:x,onClose:()=>F(!1),code:U?"Loading...":A?`Error: ${A}`:_})]})},$f=({resource:o,introspector:u})=>{const a=u.getMiddlewareUsagesForResource(o.id),m=u.getTasksUsingResource(o.id),f=u.getResourcesByIds(o.dependsOn),x=[...u.getTasksByIds(o.registers),...u.getResourcesByIds(o.registers),...u.getMiddlewaresByIds(o.registers),...u.getEventsByIds(o.registers),...u.getHooksByIds(o.registers)];u.getResourcesByIds(o.overrides);const[F,_]=Ce.useState(!1),[I,U]=Ce.useState(null),[V,A]=Ce.useState(!1),[T,Y]=Ce.useState(null);async function D(){if(o?.id){_(!0),A(!0),Y(null);try{const p=await Nt(cu,{id:o.id});U(p?.resource?.fileContents??null)}catch(p){Y(p?.message??"Failed to load file"),U(null)}finally{A(!1)}}}return s.jsxs("div",{id:`element-${o.id}`,className:"resource-card",children:[s.jsx("div",{className:"resource-card__header",children:s.jsxs("div",{className:"resource-card__header-content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"resource-card__title",children:["🔧 ",o.meta?.title||ie(o.id)]}),s.jsx("div",{className:"resource-card__id",children:o.id}),o.meta?.description&&s.jsx("p",{className:"resource-card__description",children:o.meta.description})]}),o.tags&&o.tags.length>0&&s.jsx("div",{className:"resource-card__tags",children:o.tags.map(p=>s.jsx("span",{className:"resource-card__tag",children:p},p))})]})}),s.jsxs("div",{className:"resource-card__content",children:[s.jsxs("div",{className:"resource-card__grid",children:[s.jsx("div",{children:s.jsxs("div",{className:"resource-card__section",children:[s.jsx("h4",{className:"resource-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"resource-card__section__content",children:[s.jsxs("div",{className:"resource-card__info-block",children:[s.jsx("div",{className:"label",children:"File Path:"}),s.jsx("div",{className:"value",children:o.filePath?s.jsx("button",{type:"button",onClick:D,style:{background:"transparent",border:"none",color:"#2e7d32",cursor:"pointer",textDecoration:"underline",padding:0,fontFamily:"inherit",fontSize:"inherit"},title:"View file contents",children:Ot(o.filePath)}):Ot(o.filePath)})]}),o.registeredBy&&s.jsxs("div",{className:"resource-card__info-block",children:[s.jsx("div",{className:"label",children:"Registered By:"}),s.jsx("div",{className:"value",children:s.jsx("a",{href:`#element-${o.registeredBy}`,className:"resource-card__registrar-link",children:o.registeredBy})})]}),o.context&&s.jsxs("div",{className:"resource-card__info-block",children:[s.jsx("div",{className:"label",children:"Context:"}),s.jsx("div",{className:"value",children:o.context})]}),s.jsxs("div",{className:"resource-card__info-block",children:[s.jsx("div",{className:"label",children:"Used By Tasks:"}),s.jsxs("div",{className:"value",children:[m.length," task(s)"]})]}),o.overriddenBy&&s.jsxs("div",{className:"resource-card__alert resource-card__alert--warning",children:[s.jsx("div",{className:"title",children:"⚠️ Overridden By:"}),s.jsx("div",{className:"content",children:o.overriddenBy})]})]})]})}),s.jsx("div",{children:s.jsxs("div",{className:"resource-card__section",children:[s.jsx("h4",{className:"resource-card__section__title",children:"⚙️ Configuration"}),s.jsxs("div",{className:"resource-card__config",children:[s.jsxs("div",{className:"resource-card__config__subsection",children:[s.jsx("h5",{children:"Current Configuration"}),s.jsx("pre",{className:"resource-card__config__block",children:Ef(o.config)})]}),s.jsxs("div",{className:"resource-card__config__subsection",children:[s.jsx("h5",{children:"Configuration Schema"}),s.jsx("pre",{className:"resource-card__config__block",children:Vn(o.configSchema)})]})]})]})})]}),(f.length>0||m.length>0||x.length>0)&&s.jsxs("div",{className:"resource-card__relations",children:[s.jsx("h4",{className:"resource-card__relations__title",children:"🔗 Dependencies & Relations"}),s.jsxs("div",{className:"resource-card__relations__grid",children:[f.length>0&&s.jsxs("div",{className:"resource-card__relations__category",children:[s.jsx("h5",{children:"Resource Dependencies"}),s.jsx("div",{className:"resource-card__relations__items",children:f.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"resource-card__relation-item resource-card__relation-item--resource resource-card__relation-link",children:[s.jsx("div",{className:"title title--resource",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]},p.id))})]}),m.length>0&&s.jsxs("div",{className:"resource-card__relations__category",children:[s.jsx("h5",{children:"Used By Tasks"}),s.jsx("div",{className:"resource-card__relations__items",children:m.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"resource-card__relation-item resource-card__relation-item--task resource-card__relation-link",children:[s.jsx("div",{className:"title title--task",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]},p.id))})]}),x.length>0&&s.jsxs("div",{className:"resource-card__relations__category",children:[s.jsx("h5",{children:"Registered Elements"}),s.jsx("div",{className:"resource-card__relations__items",children:x.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"resource-card__relation-item resource-card__relation-item--registered resource-card__relation-link",children:[s.jsx("div",{className:"title title--registered",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]},p.id))})]})]})]}),a.length>0&&s.jsxs("div",{className:"resource-card__middleware",children:[s.jsx("h4",{className:"resource-card__middleware__title",children:"🔗 Middleware Configuration"}),s.jsx("div",{className:"resource-card__middleware__items",children:a.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"resource-card__middleware__item resource-card__middleware-link",children:[s.jsx("div",{className:"title",children:p.node.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id}),p.config&&s.jsxs("div",{children:[s.jsx("div",{className:"config-title",children:"Configuration:"}),s.jsx("pre",{className:"config-block",children:p.config})]})]},p.id))})]}),s.jsx(Fr,{element:o,introspector:u,className:"resource-card__tags-section"})]}),s.jsx(At,{title:o.meta?.title||ie(o.id),subtitle:o.filePath||void 0,isOpen:F,onClose:()=>_(!1),code:V?"Loading...":T?`Error: ${T}`:I})]})},Of=({middleware:o,introspector:u})=>{const a=u.getTasksUsingMiddlewareDetailed(o.id),m=u.getResourcesUsingMiddlewareDetailed(o.id),f=u.getMiddlewareEmittedEvents(o.id),x=()=>o.global?.enabled?"🌐":o.type==="task"?"⚙️":o.type==="resource"?"🔧":"🔗",[F,_]=Ce.useState(!1),[I,U]=Ce.useState(null),[V,A]=Ce.useState(!1),[T,Y]=Ce.useState(null);async function D(){if(o?.id){_(!0),A(!0),Y(null);try{const p=await Nt(uu,{id:o.id});U(p?.middleware?.fileContents??null)}catch(p){Y(p?.message??"Failed to load file"),U(null)}finally{A(!1)}}}return s.jsxs("div",{id:`element-${o.id}`,className:"middleware-card",children:[s.jsx("div",{className:"middleware-card__header",children:s.jsxs("div",{className:"middleware-card__header-content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"middleware-card__title",children:[x()," ",o.meta?.title||ie(o.id)]}),s.jsx("div",{className:"middleware-card__id",children:o.id}),o.meta?.description&&s.jsx("p",{className:"middleware-card__description",children:o.meta.description}),o.global?.enabled&&s.jsxs("div",{className:"middleware-card__global-badges",children:[s.jsx("span",{className:"middleware-card__global-badge",children:"🌐 Global"}),o.global.tasks&&s.jsx("span",{className:"middleware-card__global-badge",children:"Tasks"}),o.global.resources&&s.jsx("span",{className:"middleware-card__global-badge",children:"Resources"})]})]}),s.jsxs("div",{className:"meta",children:[s.jsx("div",{className:`middleware-card__type-badge middleware-card__type-badge--${o.type}`,children:o.type==="task"?"⚙️ Task":"🔧 Resource"}),o.tags&&o.tags.length>0&&s.jsx("div",{className:"middleware-card__tags",children:o.tags.map(p=>s.jsx("span",{className:"middleware-card__tag",children:p},p))})]})]})}),s.jsx("div",{className:"middleware-card__content",children:s.jsxs("div",{className:"middleware-card__grid",children:[s.jsxs("div",{className:"middleware-card__section",children:[s.jsx("h4",{className:"middleware-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"middleware-card__section__content",children:[s.jsxs("div",{className:"middleware-card__info-block",children:[s.jsx("div",{className:"label",children:"File Path:"}),s.jsx("div",{className:"value",children:o.filePath?s.jsx("button",{type:"button",onClick:D,style:{background:"transparent",border:"none",color:"#7b1fa2",cursor:"pointer",textDecoration:"underline",padding:0,fontFamily:"inherit",fontSize:"inherit"},title:"View file contents",children:Ot(o.filePath)}):Ot(o.filePath)})]}),o.registeredBy&&s.jsxs("div",{className:"middleware-card__info-block",children:[s.jsx("div",{className:"label",children:"Registered By:"}),s.jsx("div",{className:"value",children:s.jsx("a",{href:`#element-${o.registeredBy}`,className:"middleware-card__registrar-link",children:o.registeredBy})})]}),s.jsxs("div",{className:"middleware-card__info-block",children:[s.jsx("div",{className:"label",children:"Usage Statistics:"}),s.jsxs("div",{className:"middleware-card__usage-stats",children:[s.jsxs("div",{className:"middleware-card__usage-stat middleware-card__usage-stat--tasks",children:[s.jsx("div",{className:"value value--tasks",children:a.length}),s.jsx("div",{className:"label label--tasks",children:"Tasks"})]}),s.jsxs("div",{className:"middleware-card__usage-stat middleware-card__usage-stat--resources",children:[s.jsx("div",{className:"value value--resources",children:m.length}),s.jsx("div",{className:"label label--resources",children:"Resources"})]}),s.jsxs("div",{className:"middleware-card__usage-stat middleware-card__usage-stat--events",children:[s.jsx("div",{className:"value value--events",children:f.length}),s.jsx("div",{className:"label label--events",children:"Events"})]})]})]}),o.global?.enabled&&s.jsxs("div",{className:"middleware-card__global-config",children:[s.jsx("div",{className:"title",children:"🌐 Global Middleware Configuration"}),s.jsxs("div",{className:"content",children:[s.jsxs("div",{className:"config-item",children:[s.jsx("strong",{children:"Tasks:"})," ",o.global.tasks?"Enabled":"Disabled"]}),s.jsxs("div",{className:"config-item",children:[s.jsx("strong",{children:"Resources:"})," ",o.global.resources?"Enabled":"Disabled"]})]})]}),o.overriddenBy&&s.jsxs("div",{className:"middleware-card__alert middleware-card__alert--warning",children:[s.jsx("div",{className:"title",children:"⚠️ Overridden By:"}),s.jsx("div",{className:"content",children:o.overriddenBy})]})]})]}),s.jsxs("div",{className:"middleware-card__section",children:[s.jsx("h4",{className:"middleware-card__section__title",children:"📝 Configuration Schema"}),s.jsx("pre",{className:"middleware-card__code-block",children:Vn(o.configSchema)})]}),(a.length>0||m.length>0)&&s.jsxs("div",{className:"middleware-card__usage-details",children:[s.jsx("h4",{className:"middleware-card__usage-details__title",children:"🔗 Usage Details"}),s.jsxs("div",{className:"middleware-card__usage-details__grid",children:[a.length>0&&s.jsxs("div",{className:"middleware-card__usage-details__category",children:[s.jsx("h5",{children:"Used by Tasks"}),s.jsx("div",{className:"middleware-card__usage-details__items",children:a.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"middleware-card__usage-item middleware-card__usage-link",children:[s.jsxs("div",{className:"middleware-card__usage-item__header",children:[s.jsxs("div",{className:"main",children:[s.jsx("div",{className:"title",children:p.node.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.config&&s.jsx("span",{className:"configured-badge configured-badge--task",children:"Configured"})]}),p.config&&s.jsxs("div",{className:"middleware-card__usage-item__config",children:[s.jsx("div",{className:"config-title",children:"Configuration:"}),s.jsx("pre",{className:"config-code",children:p.config})]})]},p.id))})]}),m.length>0&&s.jsxs("div",{className:"middleware-card__usage-details__category",children:[s.jsx("h5",{children:"Used by Resources"}),s.jsx("div",{className:"middleware-card__usage-details__items",children:m.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"middleware-card__usage-item middleware-card__usage-link",children:[s.jsxs("div",{className:"middleware-card__usage-item__header",children:[s.jsxs("div",{className:"main",children:[s.jsx("div",{className:"title",children:p.node.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.config&&s.jsx("span",{className:"configured-badge configured-badge--resource",children:"Configured"})]}),p.config&&s.jsxs("div",{className:"middleware-card__usage-item__config",children:[s.jsx("div",{className:"config-title",children:"Configuration:"}),s.jsx("pre",{className:"config-code",children:p.config})]})]},p.id))})]})]})]}),f.length>0&&s.jsxs("div",{className:"middleware-card__events",children:[s.jsx("h4",{className:"middleware-card__events__title",children:"📡 Events Emitted by Usage"}),s.jsx("div",{className:"middleware-card__events__items",children:f.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"middleware-card__event-item middleware-card__event-link",children:[s.jsx("div",{className:"title",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]},p.id))})]}),a.length===0&&m.length===0&&s.jsx("div",{className:"middleware-card__empty-state",children:"This middleware is not currently used by any tasks or resources."}),s.jsx(Fr,{element:o,introspector:u,className:"middleware-card__tags-section"})]})}),s.jsx(At,{title:o.meta?.title||ie(o.id),subtitle:o.filePath||void 0,isOpen:F,onClose:()=>_(!1),code:V?"Loading...":T?`Error: ${T}`:I})]})},Af=({event:o,introspector:u})=>{const a=u.getEmittersOfEvent(o.id),m=u.getHooksOfEvent(o.id),f=o.id==="*",[x,F]=Ce.useState(!1),[_,I]=Ce.useState(null),[U,V]=Ce.useState(!1),[A,T]=Ce.useState(null);async function Y(){if(o?.id){F(!0),V(!0),T(null);try{const $=await Nt(du,{id:o.id});I($?.event?.fileContents??null)}catch($){T($?.message??"Failed to load file"),I(null)}finally{V(!1)}}}const D=()=>f?"🌐":m.length>0&&a.length>0?"📡":a.length>0?"📤":m.length>0?"📥":"📋",S=a.length===0&&m.length===0?{text:"Unused",color:"#6c757d"}:a.length===0?{text:"No Emitters",color:"#dc3545"}:m.length===0?{text:"No Listeners",color:"#fd7e14"}:{text:"Active",color:"#28a745"};return s.jsxs("div",{id:`element-${o.id}`,className:"event-card",children:[s.jsx("div",{className:"event-card__header",children:s.jsxs("div",{className:"event-card__header-content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"event-card__title",children:[D()," ",f?o.meta?.title||"Global Event":o.meta?.title||ie(o.id),f&&s.jsx("span",{className:"event-card__global-badge",children:"GLOBAL"})]}),!f&&s.jsx("div",{className:"event-card__id",children:o.id}),o.meta?.description&&s.jsx("p",{className:"event-card__description",children:o.meta.description})]}),s.jsxs("div",{className:"meta",children:[s.jsxs("div",{className:"event-card__stats",children:[s.jsxs("div",{className:"event-card__stat-badge",children:[s.jsx("span",{className:"icon",children:"📤"}),s.jsxs("span",{className:"count",children:["Emitters: ",a.length]})]}),s.jsxs("div",{className:"event-card__stat-badge",children:[s.jsx("span",{className:"icon",children:"📥"}),s.jsxs("span",{className:"count",children:["Hooks: ",m.length]})]})]}),o.tags&&o.tags.length>0&&s.jsx("div",{className:"event-card__tags",children:o.tags.map($=>s.jsx("span",{className:"event-card__tag",children:$},$))})]})]})}),s.jsxs("div",{className:"event-card__content",children:[s.jsxs("div",{className:"event-card__grid",children:[s.jsx("div",{children:s.jsxs("div",{className:"event-card__section",children:[s.jsx("h4",{className:"event-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"event-card__section__content",children:[f&&s.jsxs("div",{className:"event-card__global-message",children:[s.jsxs("div",{className:"event-card__global-message__header",children:[s.jsx("span",{className:"icon",children:"🌐"}),s.jsx("h5",{className:"title",children:"Global/System Event"})]}),s.jsx("div",{className:"event-card__global-message__content",children:"This event is part of the global/system namespace and can be used across the entire application lifecycle."})]}),s.jsxs("div",{className:"event-card__info-block",children:[s.jsx("div",{className:"label",children:"File Path:"}),s.jsx("div",{className:"value",children:o.filePath?s.jsx("button",{type:"button",onClick:Y,style:{background:"transparent",border:"none",color:"#3498db",cursor:"pointer",textDecoration:"underline",padding:0,fontFamily:"inherit",fontSize:"inherit"},title:"View file contents",children:Ot(o.filePath)}):Ot(o.filePath)})]}),o.registeredBy&&s.jsxs("div",{className:"event-card__info-block",children:[s.jsx("div",{className:"label",children:"Registered By:"}),s.jsx("div",{className:"value",children:s.jsx("a",{href:`#element-${o.registeredBy}`,className:"event-card__registrar-link",children:o.registeredBy})})]}),s.jsxs("div",{className:"event-card__info-block",children:[s.jsx("div",{className:"label",children:"Event Status:"}),s.jsx("div",{className:"value value--status",style:{color:S.color},children:S.text})]}),o.listenedToBy&&o.listenedToBy.length>0&&s.jsxs("div",{className:"event-card__info-block",children:[s.jsx("div",{className:"label",children:"Listened To By:"}),s.jsx("div",{className:"event-card__listeners-list",children:o.listenedToBy.map($=>s.jsx("a",{href:`#element-${$}`,className:"event-card__listener-item",children:s.jsxs("div",{className:"event-card__listener-item__content",children:[s.jsx("div",{className:"title",children:ie($)}),s.jsx("div",{className:"id",children:$})]})},$))})]}),(!f&&a.length===0||m.length===0)&&s.jsxs("div",{className:`event-card__alert ${a.length===0?"event-card__alert--danger":"event-card__alert--warning"}`,children:[s.jsx("div",{className:"title",children:!f&&a.length===0?"⚠️ No Emitters Found":"⚠️ No Listeners Found"}),s.jsx("div",{className:"content",children:!f&&a.length===0?"This event is not emitted by any tasks, hooks, or resources.":"This event has no hooks listening to it."})]})]})]})}),s.jsx("div",{children:s.jsxs("div",{className:"event-card__section",children:[s.jsx("h4",{className:"event-card__section__title",children:"📝 Payload Schema"}),s.jsx("pre",{className:"event-card__code-block",children:Vn(o.payloadSchema)})]})})]}),s.jsxs("div",{className:"event-card__flow",children:[s.jsx("h4",{className:"event-card__flow__title",children:"🔗 Event Flow & Statistics"}),s.jsxs("div",{className:"event-card__metrics",children:[s.jsxs("div",{className:`event-card__metric ${a.length>0?"event-card__metric--active":"event-card__metric--danger"}`,children:[s.jsx("div",{className:"value",children:a.length}),s.jsx("div",{className:"label",children:"Emitters"})]}),s.jsxs("div",{className:`event-card__metric ${m.length>0?"event-card__metric--active":"event-card__metric--warning"}`,children:[s.jsx("div",{className:"value",children:m.length}),s.jsx("div",{className:"label",children:"Listeners"})]})]}),s.jsxs("div",{className:"event-card__participants",children:[a.length>0&&s.jsxs("div",{className:"event-card__participant-section",children:[s.jsx("h5",{children:"Event Emitters"}),s.jsx("div",{className:"event-card__participant-section__items",children:a.map($=>{let j="event-card__emitter",N="📤";return"emits"in $&&Array.isArray($.emits)?"dependsOn"in $&&"middleware"in $?(j+=" event-card__emitter--task",N="⚙️"):"event"in $&&(j+=" event-card__emitter--hook",N="🪝"):"config"in $&&(j+=" event-card__emitter--resource",N="🔧"),s.jsx("a",{href:`#element-${$.id}`,className:`${j} event-card__emitter-link`,children:s.jsxs("div",{className:"event-card__emitter__content",children:[s.jsx("span",{children:N}),s.jsxs("div",{className:"event-card__emitter__info",children:[s.jsx("div",{className:`title ${j.includes("--task")?"title--task":j.includes("--hook")?"title--hook":"title--resource"}`,children:$.meta?.title||ie($.id)}),s.jsx("div",{className:"id",children:$.id})]})]})},$.id)})})]}),m.length>0&&s.jsxs("div",{className:"event-card__participant-section",children:[s.jsx("h5",{children:"Event Listeners"}),s.jsx("div",{className:"event-card__participant-section__items",children:m.map($=>s.jsx("a",{href:`#element-${$.id}`,className:"event-card__listener event-card__listener-link",children:s.jsxs("div",{className:"event-card__listener__content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("div",{className:"event-card__listener__info",children:[s.jsx("span",{children:"🪝"}),s.jsxs("div",{className:"details",children:[s.jsx("div",{className:"title",children:$.meta?.title||ie($.id)}),s.jsx("div",{className:"id",children:$.id})]})]}),$.meta?.description&&s.jsx("div",{className:"event-card__listener__description",children:$.meta.description})]}),$.hookOrder!==null&&$.hookOrder!==void 0&&s.jsxs("span",{className:"event-card__listener__order-badge",children:["Order: ",$.hookOrder]})]})},$.id))})]})]}),a.length===0&&m.length===0&&s.jsx("div",{className:"event-card__empty-state",children:"This event has no emitters or listeners."})]}),s.jsx(Fr,{element:o,introspector:u,className:"event-card__tags-section"})]}),s.jsx(At,{title:f?o.meta?.title||"Global Event":o.meta?.title||ie(o.id),subtitle:o.filePath||void 0,isOpen:x,onClose:()=>F(!1),code:U?"Loading...":A?`Error: ${A}`:_})]})},zf=({hook:o,emittedEventsCount:u,isGlobal:a})=>s.jsx("div",{className:"hook-card__header",children:s.jsxs("div",{className:"hook-card__header-content",children:[s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"hook-card__title",children:[a?"🌐":"🪝"," ",o.meta?.title||ie(o.id),a&&s.jsx("span",{className:"hook-card__global-badge",children:"GLOBAL"})]}),s.jsx("div",{className:"hook-card__id",children:o.id}),o.meta?.description&&s.jsx("p",{className:"hook-card__description",children:o.meta.description})]}),s.jsxs("div",{className:"hook-card__stats",children:[o.hookOrder!==null&&o.hookOrder!==void 0&&s.jsxs("div",{className:"hook-card__order-badge",children:["#",o.hookOrder]}),s.jsxs("div",{className:"hook-card__stat-badge",children:[s.jsx("span",{className:"icon",children:"📤"}),s.jsx("span",{className:"count",children:u})]}),o.tags&&o.tags.length>0&&s.jsx("div",{className:"hook-card__tags",children:o.tags.map(m=>s.jsx("span",{className:"hook-card__tag",children:m},m))})]})]})}),Df=({hook:o,targetEvents:u,isGlobal:a})=>{const m=()=>o.hookOrder===null||o.hookOrder===void 0?"Default":o.hookOrder.toString();return s.jsxs("div",{className:"hook-card__section",children:[s.jsx("h4",{className:"hook-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"hook-card__section__content",children:[s.jsxs("div",{className:"hook-card__info-block",children:[s.jsx("div",{className:"label",children:"File Path:"}),s.jsx("div",{className:"value",children:Ot(o.filePath)})]}),o.registeredBy&&s.jsxs("div",{className:"hook-card__info-block",children:[s.jsx("div",{className:"label",children:"Registered By:"}),s.jsx("div",{className:"value",children:s.jsx("a",{href:`#element-${o.registeredBy}`,className:"hook-card__registrar-link",children:o.registeredBy})})]}),s.jsxs("div",{className:"hook-card__info-block",children:[s.jsx("div",{className:"label",children:"Target Events:"}),s.jsx("div",{className:"value",children:a?s.jsxs("div",{className:"hook-card__global-event",children:[s.jsx("span",{className:"global-indicator",children:"🌐 ALL EVENTS"}),s.jsx("div",{className:"global-description",children:"This hook listens to every event in the system"})]}):s.jsx(s.Fragment,{children:u.map(f=>s.jsxs("div",{children:[s.jsx("a",{href:`#element-${f.id}`,className:"hook-card__event-link",children:ie(f.id)}),f.meta?.title&&s.jsxs("div",{style:{fontSize:"11px",color:"#6c757d",marginTop:"4px",fontStyle:"italic"},children:["(",f.meta.title,")"]})]},f.id))})})]}),s.jsxs("div",{className:"hook-card__info-block",children:[s.jsx("div",{className:"label",children:"Execution Order:"}),s.jsxs("div",{className:"value value--order",children:[m(),s.jsx("div",{className:"order-description",children:o.hookOrder===null||o.hookOrder===void 0?"Uses default ordering":`Priority level ${o.hookOrder}`})]})]}),s.jsxs("div",{className:"hook-card__info-block",children:[s.jsx("div",{className:"label",children:"Emits Events:"}),s.jsx("div",{className:"value",children:Tf(o.emits)})]}),o.overriddenBy&&s.jsxs("div",{className:"hook-card__alert hook-card__alert--warning",children:[s.jsx("div",{className:"title",children:"⚠️ Overridden By:"}),s.jsx("div",{className:"content",children:o.overriddenBy})]})]})]})},Uf=({isGlobal:o,targetEvents:u,introspector:a})=>o?s.jsxs("div",{className:"hook-card__section",children:[s.jsx("h4",{className:"hook-card__section__title",children:"🌐 Global Hook Details"}),s.jsxs("div",{className:"hook-card__global-info",children:[s.jsxs("div",{className:"hook-card__global-message",children:[s.jsxs("div",{className:"hook-card__global-message__header",children:[s.jsx("span",{className:"icon",children:"🌐"}),s.jsx("h5",{className:"title",children:"Universal Event Listener"})]}),s.jsxs("div",{className:"hook-card__global-message__content",children:["This hook is triggered by ",s.jsx("strong",{children:"every event"})," that occurs in the system. It acts as a universal listener that can respond to any event type."]})]}),s.jsxs("div",{className:"hook-card__schema-block",children:[s.jsx("div",{className:"title",children:"Global Hook Benefits"}),s.jsxs("div",{className:"hook-card__global-benefits",children:[s.jsxs("div",{className:"benefit",children:[s.jsx("span",{className:"icon",children:"🔍"}),s.jsx("span",{className:"text",children:"Monitor all system activity"})]}),s.jsxs("div",{className:"benefit",children:[s.jsx("span",{className:"icon",children:"📊"}),s.jsx("span",{className:"text",children:"Collect comprehensive metrics"})]}),s.jsxs("div",{className:"benefit",children:[s.jsx("span",{className:"icon",children:"🛡️"}),s.jsx("span",{className:"text",children:"Implement cross-cutting concerns"})]})]})]})]})]}):!u||u.length===0?s.jsxs("div",{className:"hook-card__section",children:[s.jsx("h4",{className:"hook-card__section__title",children:"📡 Target Event Details"}),s.jsxs("div",{className:"hook-card__not-found",children:[s.jsx("div",{className:"icon",children:"❌"}),s.jsx("h5",{className:"title",children:"Event Not Found"}),s.jsx("p",{className:"message",children:"No target events found for this hook."})]})]}):s.jsxs("div",{className:"hook-card__section",children:[s.jsx("h4",{className:"hook-card__section__title",children:"📡 Target Event Details"}),u.map(m=>s.jsxs("div",{children:[s.jsx("a",{href:`#element-${m.id}`,children:s.jsxs("div",{className:"hook-card__target-event",children:[s.jsxs("div",{className:"hook-card__target-event__header",children:[s.jsx("span",{className:"icon",children:"📡"}),s.jsx("h5",{className:"title",children:m.meta?.title||ie(m.id)})]}),s.jsx("div",{className:"hook-card__target-event__id",children:m.id}),m.meta?.description&&s.jsx("div",{className:"hook-card__target-event__description",children:m.meta.description})]})}),s.jsxs("div",{className:"hook-card__section__content",children:[s.jsxs("div",{className:"hook-card__schema-block",children:[s.jsx("div",{className:"title",children:"Payload Schema"}),s.jsx("pre",{className:"schema",children:Vn(m.payloadSchema)})]}),s.jsxs("div",{className:"hook-card__schema-block",children:[s.jsx("div",{className:"title",children:"Event Statistics"}),s.jsxs("div",{className:"hook-card__event-stats",children:[s.jsxs("div",{className:"hook-card__event-stats__stat",children:[s.jsx("div",{className:"value value--emitters",children:a.getEmittersOfEvent(m.id).length}),s.jsx("div",{className:"label",children:"Emitters"})]}),s.jsxs("div",{className:"hook-card__event-stats__stat",children:[s.jsx("div",{className:"value value--hooks",children:a.getHooksOfEvent(m.id).length}),s.jsx("div",{className:"label",children:"Hooks"})]})]})]})]})]},m.id))]}),Bf=({dependencies:o,emittedEvents:u})=>o.tasks.length===0&&o.resources.length===0&&u.length===0?null:s.jsxs("div",{className:"hook-card__dependencies",children:[s.jsx("h4",{className:"hook-card__dependencies__title",children:"🔗 Dependencies & Relations"}),s.jsxs("div",{className:"hook-card__dependencies__grid",children:[o.tasks.length>0&&s.jsxs("div",{className:"hook-card__dependencies__category",children:[s.jsx("h5",{children:"Task Dependencies"}),s.jsx("div",{className:"hook-card__dependencies__items",children:o.tasks.map(a=>s.jsxs("a",{href:`#element-${a.id}`,className:"hook-card__dependency-item hook-card__dependency-item--task hook-card__dependency-link",children:[s.jsx("div",{className:"title title--task",children:a.meta?.title||ie(a.id)}),s.jsx("div",{className:"id",children:a.id})]},a.id))})]}),o.resources.length>0&&s.jsxs("div",{className:"hook-card__dependencies__category",children:[s.jsx("h5",{children:"Resource Dependencies"}),s.jsx("div",{className:"hook-card__dependencies__items",children:o.resources.map(a=>s.jsxs("a",{href:`#element-${a.id}`,className:"hook-card__dependency-item hook-card__dependency-item--resource hook-card__dependency-link",children:[s.jsx("div",{className:"title title--resource",children:a.meta?.title||ie(a.id)}),s.jsx("div",{className:"id",children:a.id})]},a.id))})]}),u.length>0&&s.jsxs("div",{className:"hook-card__dependencies__category",children:[s.jsx("h5",{children:"Emitted Events"}),s.jsx("div",{className:"hook-card__dependencies__items",children:u.map(a=>s.jsxs("a",{href:`#element-${a.id}`,className:"hook-card__dependency-item hook-card__dependency-item--event hook-card__dependency-link",children:[s.jsx("div",{className:"title title--event",children:a.meta?.title||ie(a.id)}),s.jsx("div",{className:"id",children:a.id})]},a.id))})]})]})]}),Vf=({hook:o,introspector:u})=>{const a=u.getDependencies(o),m=u.getEmittedEvents(o),f=u.getEventsByIds(o.events),x=o.events.includes("*");return s.jsxs("div",{id:`element-${o.id}`,className:"hook-card",children:[s.jsx(zf,{hook:o,emittedEventsCount:m.length,isGlobal:x}),s.jsxs("div",{className:"hook-card__content",children:[s.jsxs("div",{className:"hook-card__grid",children:[s.jsx("div",{children:s.jsx(Df,{hook:o,targetEvents:f,isGlobal:x})}),s.jsx("div",{children:s.jsx(Uf,{isGlobal:x,targetEvents:f,introspector:u})})]}),s.jsx(Bf,{dependencies:a,emittedEvents:m}),s.jsx(Fr,{element:o,introspector:u,className:"hook-card__tags-section"})]})]})},Hf=({tag:o})=>{const u=[...o.tasks,...o.resources,...o.middlewares,...o.events,...o.hooks],[a,m]=Ce.useState(!1),[f,x]=Ce.useState(""),[F,_]=Ce.useState(void 0),[I,U]=Ce.useState(null),[V,A]=Ce.useState(!1),[T,Y]=Ce.useState(null);async function D(p,S,$,j){m(!0),A(!0),Y(null),x($||ie(S)),_(j||void 0);try{let N;p==="task"?(N=await Nt(ou,{id:S}),U(N?.task?.fileContents??null)):p==="resource"?(N=await Nt(cu,{id:S}),U(N?.resource?.fileContents??null)):p==="middleware"?(N=await Nt(uu,{id:S}),U(N?.middleware?.fileContents??null)):p==="event"&&(N=await Nt(du,{id:S}),U(N?.event?.fileContents??null))}catch(N){Y(N?.message??"Failed to load file"),U(null)}finally{A(!1)}}return s.jsxs("div",{id:`element-${o.id}`,className:"tag-card",children:[s.jsx("div",{className:"tag-card__header",children:s.jsx("div",{className:"tag-card__header-content",children:s.jsxs("div",{className:"main",children:[s.jsxs("h3",{className:"tag-card__title",children:["🏷️ ",ie(o.id)]}),s.jsx("div",{className:"tag-card__id",children:o.id})]})})}),s.jsxs("div",{className:"tag-card__content",children:[s.jsxs("div",{className:"tag-card__grid",children:[s.jsx("div",{children:s.jsxs("div",{className:"tag-card__section",children:[s.jsx("h4",{className:"tag-card__section__title",children:"📋 Overview"}),s.jsxs("div",{className:"tag-card__section__content",children:[s.jsx("div",{className:"tag-card__summary",children:s.jsxs("div",{className:"tag-card__total",children:[s.jsx("span",{className:"value",children:u.length}),s.jsx("span",{className:"label",children:"Total Tagged Elements"})]})}),s.jsxs("div",{className:"tag-card__stats",children:[s.jsxs("div",{className:"tag-card__stat tag-card__stat--tasks",children:[s.jsx("div",{className:"tag-card__stat__value",children:o.tasks.length}),s.jsx("div",{className:"tag-card__stat__label",children:"Tasks"})]}),s.jsxs("div",{className:"tag-card__stat tag-card__stat--resources",children:[s.jsx("div",{className:"tag-card__stat__value",children:o.resources.length}),s.jsx("div",{className:"tag-card__stat__label",children:"Resources"})]}),s.jsxs("div",{className:"tag-card__stat tag-card__stat--events",children:[s.jsx("div",{className:"tag-card__stat__value",children:o.events.length}),s.jsx("div",{className:"tag-card__stat__label",children:"Events"})]}),s.jsxs("div",{className:"tag-card__stat tag-card__stat--middlewares",children:[s.jsx("div",{className:"tag-card__stat__value",children:o.middlewares.length}),s.jsx("div",{className:"tag-card__stat__label",children:"Middlewares"})]}),s.jsxs("div",{className:"tag-card__stat tag-card__stat--hooks",children:[s.jsx("div",{className:"tag-card__stat__value",children:o.hooks.length}),s.jsx("div",{className:"tag-card__stat__label",children:"Hooks"})]})]})]})]})}),s.jsx("div",{children:s.jsxs("div",{className:"tag-card__section",children:[s.jsx("h4",{className:"tag-card__section__title",children:"⚙️ Configuration Schema"}),s.jsx("div",{className:"tag-card__config",children:s.jsx("pre",{className:"tag-card__config__block",children:Vn(o.configSchema)})})]})})]}),u.length>0&&s.jsxs("div",{className:"tag-card__relations",children:[s.jsx("h4",{className:"tag-card__relations__title",children:"🔗 Tagged Elements"}),s.jsxs("div",{className:"tag-card__relations__grid",children:[o.tasks.length>0&&s.jsxs("div",{className:"tag-card__relations__category",children:[s.jsx("h5",{children:"Tasks"}),s.jsx("div",{className:"tag-card__relations__items",children:o.tasks.map(p=>s.jsxs("div",{className:"tag-card__relation-item tag-card__relation-item--task",children:[s.jsxs("a",{href:`#element-${p.id}`,className:"tag-card__relation-link",children:[s.jsx("div",{className:"title title--task",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.filePath&&s.jsx("button",{type:"button",title:"View file",onClick:()=>D("task",p.id,p.meta?.title||null,p.filePath),style:{marginLeft:0,paddingLeft:0,background:"transparent",border:"none",color:"#1976d2",cursor:"pointer",textDecoration:"underline"},children:"View file"})]},p.id))})]}),o.resources.length>0&&s.jsxs("div",{className:"tag-card__relations__category",children:[s.jsx("h5",{children:"Resources"}),s.jsx("div",{className:"tag-card__relations__items",children:o.resources.map(p=>s.jsxs("div",{className:"tag-card__relation-item tag-card__relation-item--resource",children:[s.jsxs("a",{href:`#element-${p.id}`,className:"tag-card__relation-link",children:[s.jsx("div",{className:"title title--resource",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.filePath&&s.jsx("button",{type:"button",title:"View file",onClick:()=>D("resource",p.id,p.meta?.title||null,p.filePath),style:{marginLeft:8,background:"transparent",border:"none",color:"#2e7d32",cursor:"pointer",textDecoration:"underline"},children:"View file"})]},p.id))})]}),o.middlewares.length>0&&s.jsxs("div",{className:"tag-card__relations__category",children:[s.jsx("h5",{children:"Middlewares"}),s.jsx("div",{className:"tag-card__relations__items",children:o.middlewares.map(p=>s.jsxs("div",{className:"tag-card__relation-item tag-card__relation-item--middleware",children:[s.jsxs("a",{href:`#element-${p.id}`,className:"tag-card__relation-link",children:[s.jsx("div",{className:"title title--middleware",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.filePath&&s.jsx("button",{type:"button",title:"View file",onClick:()=>D("middleware",p.id,p.meta?.title||null,p.filePath),style:{marginLeft:8,background:"transparent",border:"none",color:"#7b1fa2",cursor:"pointer",textDecoration:"underline"},children:"View file"})]},p.id))})]}),o.events.length>0&&s.jsxs("div",{className:"tag-card__relations__category",children:[s.jsx("h5",{children:"Events"}),s.jsx("div",{className:"tag-card__relations__items",children:o.events.map(p=>s.jsxs("div",{className:"tag-card__relation-item tag-card__relation-item--event",children:[s.jsxs("a",{href:`#element-${p.id}`,className:"tag-card__relation-link",children:[s.jsx("div",{className:"title title--event",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]}),p.filePath&&s.jsx("button",{type:"button",title:"View file",onClick:()=>D("event",p.id,p.meta?.title||null,p.filePath),style:{marginLeft:8,background:"transparent",border:"none",color:"#f57c00",cursor:"pointer",textDecoration:"underline"},children:"View file"})]},p.id))})]}),o.hooks.length>0&&s.jsxs("div",{className:"tag-card__relations__category",children:[s.jsx("h5",{children:"Hooks"}),s.jsx("div",{className:"tag-card__relations__items",children:o.hooks.map(p=>s.jsxs("a",{href:`#element-${p.id}`,className:"tag-card__relation-item tag-card__relation-item--hook tag-card__relation-link",children:[s.jsx("div",{className:"title title--hook",children:p.meta?.title||ie(p.id)}),s.jsx("div",{className:"id",children:p.id})]},p.id))})]})]})]})]}),s.jsx(At,{title:f,subtitle:F,isOpen:a,onClose:()=>m(!1),code:V?"Loading...":T?`Error: ${T}`:I})]})},Wf=({introspector:o,detailed:u=!1})=>{const[a,m]=b.useState("summary"),f=o.getDiagnostics(),x=o.getOrphanEvents(),F=o.getUnemittedEvents(),_=o.getUnusedMiddleware(),I=o.getOverrideConflicts(),U=f.filter(S=>S.severity==="error").length,V=f.filter(S=>S.severity==="warning").length,A=f.filter(S=>S.severity==="info").length,T=[{id:"summary",label:"Summary",count:f.length},{id:"errors",label:"Errors",count:U},{id:"warnings",label:"Warnings",count:V},{id:"orphans",label:"Orphan Events",count:x.length},{id:"unemitted",label:"Unemitted Events",count:F.length},{id:"unused",label:"Unused Middleware",count:_.length},{id:"conflicts",label:"Override Conflicts",count:I.length}],Y=(S,$,j,N,C,L)=>s.jsxs("div",{className:`diagnostics-panel__summary-card ${L||""}`,children:[s.jsxs("div",{className:"diagnostics-panel__summary-card__header",children:[s.jsx("span",{className:"icon",children:N}),s.jsx("h4",{children:S})]}),s.jsx("div",{className:"diagnostics-panel__summary-card__value",children:$}),s.jsx("div",{className:"diagnostics-panel__summary-card__description",children:C})]}),D=S=>{const $=S.nodeId?"a":"div",j=S.nodeId?{href:`#element-${S.nodeId}`,className:`diagnostics-panel__item diagnostics-panel__item--${S.severity} diagnostics-panel__item--clickable`}:{className:`diagnostics-panel__item diagnostics-panel__item--${S.severity}`};return s.jsx($,{...j,children:s.jsxs("div",{className:"diagnostics-panel__item-content",children:[s.jsx("span",{className:"icon",children:Cf(S.severity)}),s.jsxs("div",{className:"main",children:[s.jsxs("div",{className:"diagnostics-panel__item-header",children:[s.jsx("span",{className:`diagnostics-panel__severity-badge diagnostics-panel__severity-badge--${S.severity}`,children:S.severity}),s.jsx("span",{className:"diagnostics-panel__code-badge",children:S.code})]}),s.jsx("div",{className:"diagnostics-panel__message",children:S.message}),S.nodeId&&s.jsxs("div",{className:"diagnostics-panel__node-info",children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Node:"})," ",ie(S.nodeId)]}),S.nodeKind&&s.jsxs("div",{children:[s.jsx("strong",{children:"Type:"})," ",S.nodeKind]})]})]}),S.nodeId&&s.jsx("div",{className:"diagnostics-panel__click-indicator",children:"🔗"})]})},`${S.code}-${S.nodeId||"global"}`)},p=(S,$,j,N,C,L,R)=>s.jsxs("div",{className:"diagnostics-panel__special-section",children:[s.jsxs("h4",{children:[s.jsx("span",{className:"icon",children:j}),$," (",S.length,")"]}),S.length===0?s.jsxs("div",{className:"diagnostics-panel__empty-state",children:[s.jsx("div",{className:"celebration",children:"🎉"}),"No ",$.toLowerCase()," found. Great job!"]}):s.jsx("div",{className:"diagnostics-panel__special-section__items",children:S.map((W,te)=>{const G=C(W),ae=!!(G&&String(G).trim()),ve=ae?String(G):"(unknown)",Ne=ae?"a":"div",Te=ae?{href:`#element-${ve}`,className:`diagnostics-panel__special-section__item diagnostics-panel__special-section__item--clickable ${R||""}`}:{className:`diagnostics-panel__special-section__item ${R||""}`};return s.jsxs(Ne,{...Te,children:[s.jsx("div",{className:"title",children:L?L(W):ie(ve)}),s.jsx("div",{className:"id",children:ve}),ae&&s.jsx("div",{className:"diagnostics-panel__click-indicator",children:"🔗"})]},te)})})]});return u?s.jsxs("div",{children:[s.jsx("div",{className:"diagnostics-panel__tabs",children:T.map(S=>s.jsxs("button",{onClick:()=>m(S.id),className:`diagnostics-panel__tab ${a===S.id?"diagnostics-panel__tab--active":""}`,children:[S.label,S.count>0&&s.jsx("span",{className:"diagnostics-panel__tab-count",children:S.count})]},S.id))}),a==="summary"&&s.jsxs("div",{children:[s.jsxs("div",{className:"diagnostics-panel__detailed-grid",children:[Y("Total Issues",f.length,"#6c757d","📊","All diagnostic items","diagnostics-panel__summary-card--total"),Y("Errors",U,"#dc3545","❌","Critical issues requiring attention","diagnostics-panel__summary-card--errors"),Y("Warnings",V,"#ffc107","⚠️","Potential problems to review","diagnostics-panel__summary-card--warnings"),Y("Information",A,"#17a2b8","ℹ️","Informational messages","diagnostics-panel__summary-card--info")]}),f.length>0&&s.jsxs("div",{children:[s.jsx("h4",{style:{margin:"0 0 15px 0",color:"#495057"},children:"Recent Diagnostics"}),s.jsxs("div",{className:"diagnostics-panel__items",children:[f.slice(0,5).map(D),f.length>5&&s.jsx("div",{className:"diagnostics-panel__view-all",children:s.jsxs("button",{onClick:()=>m("errors"),children:["View All ",f.length," Diagnostics"]})})]})]})]}),a==="errors"&&s.jsx("div",{children:s.jsxs("div",{className:"diagnostics-panel__items",children:[f.filter(S=>S.severity==="error").map(D),U===0&&s.jsxs("div",{className:"diagnostics-panel__success-state",children:[s.jsx("div",{className:"icon",children:"✅"}),s.jsx("h4",{children:"No Errors Found!"}),s.jsx("p",{children:"Your application has no critical errors."})]})]})}),a==="warnings"&&s.jsx("div",{children:s.jsxs("div",{className:"diagnostics-panel__items",children:[f.filter(S=>S.severity==="warning").map(D),V===0&&s.jsxs("div",{className:"diagnostics-panel__success-state",style:{background:"#fff3cd",border:"1px solid #ffeaa7"},children:[s.jsx("div",{className:"icon",children:"👍"}),s.jsx("h4",{style:{color:"#856404"},children:"No Warnings!"}),s.jsx("p",{style:{color:"#856404"},children:"No potential issues detected."})]})]})}),a==="orphans"&&p(x,"Orphan Events","👻","#6f42c1",S=>S.id,S=>`${ie(S.id)} (No listeners)`,"diagnostics-panel__special-section__item--orphan"),a==="unemitted"&&p(F,"Unemitted Events","📤","#fd7e14",S=>S.id,S=>`${ie(S.id)} (No emitters)`,"diagnostics-panel__special-section__item--unused"),a==="unused"&&p(_,"Unused Middleware","🔗","#6c757d",S=>S.id,S=>`${ie(S.id)} (Not used)`,"diagnostics-panel__special-section__item--unused"),a==="conflicts"&&s.jsxs("div",{className:"diagnostics-panel__special-section",children:[s.jsxs("h4",{children:[s.jsx("span",{className:"icon",children:"⚔️"}),"Override Conflicts (",I.length,")"]}),I.length===0?s.jsxs("div",{className:"diagnostics-panel__empty-state",children:[s.jsx("div",{className:"celebration",children:"🎉"}),"No override conflicts found. Great job!"]}):s.jsx("div",{className:"diagnostics-panel__special-section__items",children:I.map((S,$)=>s.jsxs("div",{className:"diagnostics-panel__special-section__item diagnostics-panel__special-section__item--conflict diagnostics-panel__conflict-item",children:[s.jsxs("div",{className:"title",children:[s.jsx("a",{href:`#element-${S.targetId}`,className:"diagnostics-panel__conflict-link",children:ie(S.targetId)})," ← overridden by → ",s.jsx("a",{href:`#element-${S.by}`,className:"diagnostics-panel__conflict-link",children:ie(S.by)})]}),s.jsxs("div",{className:"id",children:["Target: ",S.targetId]})]},$))})]})]}):s.jsxs("div",{className:"diagnostics-panel__summary-grid",children:[Y("Errors",U,"#dc3545","❌","Critical issues","diagnostics-panel__summary-card--errors"),Y("Warnings",V,"#ffc107","⚠️","Potential problems","diagnostics-panel__summary-card--warnings"),Y("Orphan Events",x.length,"#6f42c1","👻","Events with no listeners","diagnostics-panel__summary-card--orphans"),Y("Unused Middleware",_.length,"#fd7e14","🔗","Middleware not in use","diagnostics-panel__summary-card--unused"),Y("Override Conflicts",I.length,"#dc3545","⚔️","Resource override issues","diagnostics-panel__summary-card--conflicts")]})},Qf=({data:o})=>{const[u,a]=b.useState([]),m=x=>{a(F=>F.includes(x)?F.filter(_=>_!==x):[...F,x])},f=(x,F)=>{if(typeof x=="object"&&x!==null){const _=Array.isArray(x),I=Object.keys(x),U=u.includes(F);return s.jsxs("div",{className:`json-node ${U?"expanded":""}`,children:[s.jsx("span",{className:"json-toggle",onClick:()=>m(F),children:U?"▼":"▶"}),s.jsx("span",{children:_?"[":"{"}),U&&s.jsx("div",{className:"json-children",children:I.map((V,A)=>s.jsxs("div",{className:"json-key-value",children:[!_&&s.jsxs("span",{className:"json-key",children:['"',V,'":']}),f(x[V],`${F}.${V}`),A<I.length-1&&s.jsx("span",{children:","})]},A))}),!U&&s.jsx("span",{className:"json-ellipsis",children:"..."}),s.jsx("span",{children:_?"]":"}"})]})}else return s.jsx("span",{className:`json-value json-value--${typeof x}`,children:JSON.stringify(x)})};return s.jsx("div",{className:"json-viewer",children:f(o,"root")})},Kf=({logs:o})=>{const u=f=>new Date(f).toLocaleTimeString(),a=f=>{switch(f.toLowerCase()){case"error":case"fatal":return"#ef4444";case"warn":return"#f59e0b";case"info":return"#3b82f6";case"debug":return"#6b7280";case"trace":return"#9ca3af";default:return"#374151"}},m=f=>{try{const x=JSON.parse(f);return typeof x=="object"&&x!==null?x:null}catch{return null}};return s.jsxs("div",{className:"live-section live-section--logs",style:{marginBottom:"20px"},children:[s.jsxs("h3",{children:["📝 Recent Logs (",o.length,")"]}),s.jsx("div",{className:"live-entries",children:o.slice(-10).reverse().map((f,x)=>s.jsxs("div",{className:"live-entry live-entry--log",children:[s.jsx("span",{className:"entry-time",children:u(f.timestampMs)}),s.jsx("span",{className:"entry-level",style:{color:a(f.level)},children:f.level.toUpperCase()}),s.jsx("span",{className:"entry-message",children:f.message}),f.data&&(()=>{const F=m(f.data);return s.jsxs("details",{className:"entry-data",children:[s.jsx("summary",{children:"Data"}),F?s.jsx(Qf,{data:F}):s.jsx("pre",{children:f.data})]})})()]},`${f.timestampMs}-${x}`))})]})},Gf=({emissions:o,detailed:u=!1})=>{const[a,m]=b.useState(null),[f,x]=b.useState(null),[F,_]=b.useState(!1),I=(A,T)=>{m(A),x(T),_(!0)},U=()=>{_(!1),m(null),x(null)},V=A=>new Date(A).toLocaleTimeString();return o.length===0?null:s.jsxs("div",{className:"live-section",children:[s.jsxs("h4",{children:["📡 Recent Events (",o.length,")"]}),s.jsx("div",{className:"live-entries",children:o.slice(-10).reverse().map((A,T)=>s.jsxs("div",{className:"live-entry live-entry--emission",children:[s.jsx("span",{className:"entry-time",children:V(A.timestampMs)}),s.jsx("span",{className:"entry-event",children:A.eventId}),A.emitterId&&s.jsxs("span",{className:"entry-emitter",children:["from ",A.emitterId]}),A.payload&&s.jsx("button",{className:"entry-payload-button",onClick:()=>I(JSON.stringify(JSON.parse(A.payload),null,2),A.eventId),children:"View Payload"})]},`${A.timestampMs}-${T}`))}),s.jsx(At,{title:"Event Payload",subtitle:f||void 0,isOpen:F,onClose:U,code:a})]})},Yf=({runs:o,errors:u,detailed:a=!1})=>{const[m,f]=b.useState(null),[x,F]=b.useState(null),[_,I]=b.useState(!1),U=(T,Y)=>{f(T),F(Y),I(!0)},V=()=>{I(!1),f(null),F(null)},A=T=>new Date(T).toLocaleTimeString();return s.jsxs("div",{className:"live-section live-section--combined",children:[u.length>0&&s.jsxs("div",{style:{marginBottom:"15px"},children:[s.jsxs("h4",{children:["❌ Recent Errors (",u.length,")"]}),s.jsx("div",{className:"live-entries",children:u.slice(-10).reverse().map((T,Y)=>s.jsxs("div",{className:"live-entry live-entry--error",children:[s.jsx("span",{className:"entry-time",children:A(T.timestampMs)}),s.jsxs("span",{className:"entry-source",children:[T.sourceKind,":",T.sourceId]}),T.stack&&s.jsx("button",{className:"entry-payload-button",onClick:()=>U(T.stack,T.sourceId),children:"View Stack Trace"})]},`${T.timestampMs}-${Y}`))})]}),o.length>0&&s.jsxs("div",{children:[s.jsxs("h4",{children:["🏃 Recent Runs (",o.length,")"]}),s.jsx("div",{className:"live-entries",children:o.slice(-10).reverse().map((T,Y)=>s.jsxs("div",{className:`live-entry live-entry--run ${T.ok?"live-entry--success":"live-entry--failure"}`,children:[s.jsx("span",{className:"entry-time",children:A(T.timestampMs)}),s.jsx("span",{className:"entry-status",children:T.ok?"✅":"❌"}),s.jsxs("span",{className:"entry-node",children:[T.nodeKind,":",T.nodeId]}),T.durationMs&&s.jsxs("span",{className:"entry-duration",children:[T.durationMs.toFixed(1),"ms"]}),T.error&&s.jsx("button",{className:"entry-payload-button",onClick:()=>U(T.error,T.nodeId),children:"View Error"})]},`${T.timestampMs}-${Y}`))})]}),s.jsx(At,{title:"Error Stack Trace",subtitle:x||void 0,isOpen:_,onClose:V,code:m})]})},Vi=b.forwardRef(({placeholder:o,value:u,onChange:a,onFocus:m,onBlur:f,autocompleteItems:x=[],showAutocomplete:F=!1,onSelectItem:_,className:I=""},U)=>{const V=b.useRef(null);b.useImperativeHandle(U,()=>({focus:()=>V.current?.focus()}));const A=T=>{_?.(T)};return s.jsxs("div",{className:`input__autocomplete-container ${I}`,children:[s.jsx("input",{ref:V,type:"text",placeholder:o,value:u,onChange:T=>a(T.target.value),onFocus:m,onBlur:f,className:"input__field"}),F&&x.length>0&&s.jsx("div",{className:"input__autocomplete",children:x.slice(0,5).map(T=>s.jsxs("div",{className:"input__autocomplete-item",onClick:()=>A(T),children:[s.jsx("div",{className:"input__autocomplete-id",children:T.id}),T.meta?.title&&s.jsx("div",{className:"input__autocomplete-title",children:T.meta.title}),T.meta?.description&&s.jsx("div",{className:"input__autocomplete-description",children:T.meta.description})]},T.id))})]})});Vi.displayName="WriteCodeInput";const Xf=({introspector:o})=>{const[u,a]=b.useState(""),[m,f]=b.useState(""),[x,F]=b.useState(!1),[_,I]=b.useState(!1),[U,V]=b.useState(null),[A,T]=b.useState(null),[Y,D]=b.useState(!1),[p,S]=b.useState([]),[$,j]=b.useState(!1),N=b.useRef(null),[C,L]=b.useState(""),[R,W]=b.useState(""),[te,G]=b.useState(!1),[ae,ve]=b.useState(!1),[Ne,Te]=b.useState(null),[De,Q]=b.useState(null),[fe,me]=b.useState(!1),[z,J]=b.useState([]),[H,g]=b.useState(!1),E=b.useRef(null),oe=async()=>{if(u.trim()){I(!0),T(null);try{const Qe=await Nt(`
|
|
82
|
-
mutation InvokeTask($taskId: ID!, $inputJson: String, $evalInput: Boolean) {
|
|
83
|
-
invokeTask(taskId: $taskId, inputJson: $inputJson, evalInput: $evalInput) {
|
|
84
|
-
success
|
|
85
|
-
error
|
|
86
|
-
result
|
|
87
|
-
invocationId
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
`,{taskId:u,inputJson:m.trim()||void 0,evalInput:x});console.log(Qe.invokeTask);const ot=Qe.invokeTask.success?`// ✅ Task executed successfully
|
|
91
|
-
${Qe.invokeTask.result?`${Qe.invokeTask.result}`:""}`:`// ❌ Task failed
|
|
92
|
-
${Qe.invokeTask.error?`${Qe.invokeTask.error}`:""}`;T(ot),V(Qe.invokeTask.error),D(!0)}finally{I(!1)}}};b.useEffect(()=>{const ue=o.getTasks();S(ue)},[o]),b.useEffect(()=>{const ue=o.getEvents();J(ue)},[o]);const se=ue=>{a(ue),j(ue.length>0)},ce=ue=>{L(ue),g(ue.length>0)},de=ue=>{a(ue.id),j(!1),N.current?.focus()},ge=ue=>{L(ue.id),g(!1),E.current?.focus()},pe=p.filter(ue=>ue.id.toLowerCase().includes(u.toLowerCase())),xe=z.filter(ue=>ue.id.toLowerCase().includes(C.toLowerCase())),Oe=async()=>{if(C.trim()){ve(!0),Q(null);try{const Qe=await Nt(`
|
|
93
|
-
mutation InvokeEvent($eventId: ID!, $inputJson: String, $evalInput: Boolean) {
|
|
94
|
-
invokeEvent(eventId: $eventId, inputJson: $inputJson, evalInput: $evalInput) {
|
|
95
|
-
success
|
|
96
|
-
error
|
|
97
|
-
invocationId
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
`,{eventId:C,inputJson:R.trim()||void 0,evalInput:te}),ot=Qe.invokeEvent.success?"✅ Event invoked successfully":`❌ Event failed${Qe.invokeEvent.error?`: ${Qe.invokeEvent.error}`:""}`;Q(ot),me(!0)}catch(ue){Q(`❌ Error: ${ue instanceof Error?ue.message:"Failed to invoke event"}`)}finally{ve(!1)}}};return s.jsxs("div",{className:"live-runs",children:[s.jsx("h3",{className:"live-runs__title",children:"🚀 Live Actions"}),s.jsxs("div",{className:"live-runs__grid",children:[s.jsxs("div",{className:"live-runs__panel",children:[s.jsx("h4",{className:"live-runs__panel-title",children:"🏃 Run a Task"}),s.jsxs("div",{className:"live-runs__form",children:[s.jsx(Vi,{ref:N,placeholder:"Task ID",value:u,onChange:se,onFocus:()=>j(u.length>0),onBlur:()=>setTimeout(()=>j(!1),200),autocompleteItems:pe,showAutocomplete:$,onSelectItem:de,className:"live-runs__input"}),s.jsx("textarea",{placeholder:"Input (optional)",value:m,onChange:ue=>f(ue.target.value),rows:3,className:"live-runs__textarea"}),s.jsxs("label",{className:"live-runs__checkbox",children:[s.jsx("input",{type:"checkbox",checked:x,onChange:ue=>F(ue.target.checked)}),s.jsx("span",{className:"live-runs__checkbox-label",children:"Eval Input"})]}),s.jsx("button",{onClick:oe,disabled:_||!u.trim(),className:`live-runs__button live-runs__button--primary ${_?"live-runs__button--disabled":""}`,children:_?"⏳ Running...":"▶️ Run Task"}),A&&s.jsx("div",{className:`live-runs__result ${A.includes("✅")?"live-runs__result--success":"live-runs__result--error"}`,children:A.includes("✅")?"Last run was successful":"Last run failed"})]})]}),s.jsxs("div",{className:"live-runs__panel",children:[s.jsx("h4",{className:"live-runs__panel-title",children:"📡 Invoke Event"}),s.jsxs("div",{className:"live-runs__form",children:[s.jsx(Vi,{ref:E,placeholder:"Event ID",value:C,onChange:ce,onFocus:()=>g(C.length>0),onBlur:()=>setTimeout(()=>g(!1),200),autocompleteItems:xe,showAutocomplete:H,onSelectItem:ge,className:"live-runs__input"}),s.jsx("textarea",{placeholder:"Payload (JSON, optional)",value:R,onChange:ue=>W(ue.target.value),rows:3,className:"live-runs__textarea"}),s.jsxs("label",{className:"live-runs__checkbox",children:[s.jsx("input",{type:"checkbox",checked:te,onChange:ue=>G(ue.target.checked)}),s.jsx("span",{className:"live-runs__checkbox-label",children:"Eval Input"})]}),s.jsx("button",{onClick:Oe,disabled:ae||!C.trim(),className:`live-runs__button live-runs__button--success ${ae?"live-runs__button--disabled":""}`,children:ae?"⏳ Invoking...":"🚀 Invoke Event"})]})]})]}),s.jsx(At,{title:"Task Result",subtitle:u,isOpen:Y,onClose:()=>D(!1),code:A}),s.jsx(At,{title:"Event Result",subtitle:C,isOpen:fe,onClose:()=>me(!1),code:De})]})},Jf=`
|
|
101
|
-
query LiveData($afterTimestamp: Float, $last: Int) {
|
|
102
|
-
live {
|
|
103
|
-
memory {
|
|
104
|
-
heapUsed
|
|
105
|
-
heapTotal
|
|
106
|
-
rss
|
|
107
|
-
}
|
|
108
|
-
cpu {
|
|
109
|
-
usage
|
|
110
|
-
loadAverage
|
|
111
|
-
}
|
|
112
|
-
eventLoop {
|
|
113
|
-
lag
|
|
114
|
-
}
|
|
115
|
-
gc(windowMs: 30000) {
|
|
116
|
-
collections
|
|
117
|
-
duration
|
|
118
|
-
}
|
|
119
|
-
logs(afterTimestamp: $afterTimestamp, last: $last) {
|
|
120
|
-
timestampMs
|
|
121
|
-
level
|
|
122
|
-
message
|
|
123
|
-
data
|
|
124
|
-
correlationId
|
|
125
|
-
}
|
|
126
|
-
emissions(afterTimestamp: $afterTimestamp, last: $last) {
|
|
127
|
-
timestampMs
|
|
128
|
-
eventId
|
|
129
|
-
emitterId
|
|
130
|
-
payload
|
|
131
|
-
correlationId
|
|
132
|
-
eventResolved {
|
|
133
|
-
id
|
|
134
|
-
meta {
|
|
135
|
-
title
|
|
136
|
-
description
|
|
137
|
-
tags {
|
|
138
|
-
id
|
|
139
|
-
config
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
errors(afterTimestamp: $afterTimestamp, last: $last) {
|
|
145
|
-
timestampMs
|
|
146
|
-
sourceId
|
|
147
|
-
sourceKind
|
|
148
|
-
message
|
|
149
|
-
stack
|
|
150
|
-
data
|
|
151
|
-
correlationId
|
|
152
|
-
sourceResolved {
|
|
153
|
-
id
|
|
154
|
-
meta {
|
|
155
|
-
title
|
|
156
|
-
description
|
|
157
|
-
tags {
|
|
158
|
-
id
|
|
159
|
-
config
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
runs(afterTimestamp: $afterTimestamp, last: $last) {
|
|
165
|
-
timestampMs
|
|
166
|
-
nodeId
|
|
167
|
-
nodeKind
|
|
168
|
-
ok
|
|
169
|
-
durationMs
|
|
170
|
-
error
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
`,Zf=({detailed:o=!1,introspector:u})=>{const[a,m]=b.useState(null),[f,x]=b.useState(!0),[F,_]=b.useState(null),[I,U]=b.useState(Date.now()),V=b.useRef(null),A=async Y=>{try{const D={last:o?50:10};Y&&(D.afterTimestamp=Y);const p=await Nt(Jf,D);if(p.live){m($=>!$||!Y?p.live:{...p.live,logs:[...$.logs,...p.live.logs].slice(-100),emissions:[...$.emissions,...p.live.emissions].slice(-100),errors:[...$.errors,...p.live.errors].slice(-100),runs:[...$.runs,...p.live.runs].slice(-100)});const S=[...p.live.logs,...p.live.emissions,...p.live.errors,...p.live.runs];if(S.length>0){const $=Math.max(...S.map(j=>j.timestampMs));U($)}}_(null)}catch(D){_(D instanceof Error?D.message:"Failed to fetch live data")}};b.useEffect(()=>(A(),f&&(V.current=setInterval(()=>{A(I)},5e3)),()=>{V.current&&clearInterval(V.current)}),[f,I]);const T=Y=>`${(Y/1048576).toFixed(1)} MB`;return F?s.jsx("div",{className:"live-panel live-panel--error",children:s.jsxs("div",{className:"live-error",children:[s.jsxs("span",{children:["❌ Error loading live data: ",F]}),s.jsx("button",{onClick:()=>A(),children:"Retry"})]})}):a?s.jsxs("div",{className:"live-panel",children:[s.jsxs("div",{className:"live-controls",children:[s.jsxs("button",{onClick:()=>x(!f),className:`live-toggle ${f?"live-toggle--active":""}`,children:[f?"⏸️ Pause":"▶️ Resume"," Live Updates"]}),s.jsx("button",{onClick:()=>A(),className:"live-refresh",children:"🔄 Refresh"})]}),s.jsxs("div",{className:"live-main-grid",style:{display:"grid",gridTemplateColumns:"1fr",gap:"20px"},children:[s.jsxs("div",{className:"live-section live-section--health",children:[s.jsx("h3",{children:"🖥️ System Health"}),s.jsxs("div",{className:"health-metrics",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"20px"},children:[s.jsxs("div",{className:"metric",children:[s.jsx("span",{className:"metric-label",children:"Memory"}),s.jsxs("span",{className:"metric-value",children:[T(a.memory.heapUsed)," /"," ",T(a.memory.heapTotal)]}),s.jsxs("div",{className:"metric-detail",children:["RSS: ",T(a.memory.rss)]})]}),s.jsxs("div",{className:"metric",children:[s.jsx("span",{className:"metric-label",children:"CPU Usage"}),s.jsxs("span",{className:"metric-value",children:[(a.cpu.usage*100).toFixed(1),"%"]}),s.jsxs("div",{className:"metric-detail",children:["Load: ",a.cpu.loadAverage.toFixed(2)]})]}),s.jsxs("div",{className:"metric",children:[s.jsx("span",{className:"metric-label",children:"Event Loop"}),s.jsxs("span",{className:"metric-value",children:[a.eventLoop.lag.toFixed(2),"ms"]}),s.jsx("div",{className:"metric-detail",children:"Lag"})]}),s.jsxs("div",{className:"metric",children:[s.jsx("span",{className:"metric-label",children:"GC (30s)"}),s.jsx("span",{className:"metric-value",children:a.gc.collections}),s.jsxs("div",{className:"metric-detail",children:[a.gc.duration.toFixed(1),"ms total"]})]})]})]}),s.jsx("div",{className:"live-logs-section",children:s.jsx(Kf,{logs:a.logs})}),s.jsxs("div",{className:"live-events-runs-grid",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[s.jsx(Gf,{emissions:a.emissions,detailed:o}),s.jsx(Yf,{runs:a.runs,errors:a.errors,detailed:o})]}),s.jsx("div",{className:"live-actions-section",children:s.jsx(Xf,{introspector:u})})]})]}):s.jsx("div",{className:"live-panel live-panel--loading",children:s.jsx("div",{className:"live-loading",children:"📡 Loading live data..."})})},eu=({introspector:o,namespacePrefix:u})=>{const[a,m]=b.useState(u||""),[f,x]=b.useState(()=>{try{return parseInt(localStorage.getItem("docs-sidebar-width")||"280",10)}catch{return 280}}),[F,_]=b.useState(!1),I=b.useRef(null),U=b.useRef(null),[V,A]=b.useState(()=>{try{return localStorage.getItem("docs-view-mode")||"list"}catch{return"list"}}),[T,Y]=b.useState(()=>{try{return localStorage.getItem("docs-tree-type")||"namespace"}catch{return"namespace"}}),[D,p]=b.useState([]);b.useEffect(()=>{m(u||"")},[u]);const S=Q=>a?Q.filter(fe=>fe.id.includes(a)):Q,$=S(o.getTasks()),j=S(o.getResources()),N=S(o.getEvents()),C=S(o.getHooks()),L=S(o.getMiddlewares()),R=S(o.getAllTags());b.useEffect(()=>{const Q=[...$,...j,...N,...C,...L,...R];let fe;T==="namespace"?fe=lu(Q):fe=wf(Q),a&&(fe=Sf(fe,a)),p(fe)},[$,j,N,C,L,R,T,a]);const W=Q=>{if(!Q.elementId)return;const fe=`element-${Q.elementId}`;window.location.hash===`#${fe}`?document.getElementById(fe)?.scrollIntoView({behavior:"smooth",block:"start"}):window.location.hash=`#${fe}`;const me=document.getElementById(fe);me&&(me.classList.add("docs-highlight-target"),setTimeout(()=>{me.classList.remove("docs-highlight-target")},2e3))},te=(Q,fe)=>{p(me=>au(me,Q,fe))},G=Q=>{A(Q);try{localStorage.setItem("docs-view-mode",Q)}catch{}},ae=Q=>{Y(Q);try{localStorage.setItem("docs-tree-type",Q)}catch{}},ve=b.useCallback(Q=>{Q.preventDefault(),_(!0),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),Ne=b.useCallback(Q=>{if(!F)return;const fe=Math.min(Math.max(Q.clientX,200),600);x(fe)},[F]),Te=b.useCallback(()=>{if(F){_(!1),document.body.style.cursor="",document.body.style.userSelect="";try{localStorage.setItem("docs-sidebar-width",f.toString())}catch{}}},[F,f]);b.useEffect(()=>{if(F)return document.addEventListener("mousemove",Ne),document.addEventListener("mouseup",Te),()=>{document.removeEventListener("mousemove",Ne),document.removeEventListener("mouseup",Te)}},[F,Ne,Te]),b.useEffect(()=>{const Q=()=>{const fe=window.location.hash;if(fe.startsWith("#element-")&&a){const me=fe.substring(9),z=o.getAll(),J=[...$,...j,...N,...C,...L,...R],H=z.some(E=>E.id===me),g=J.some(E=>E.id===me);H&&!g&&m("")}};return window.addEventListener("hashchange",Q),Q(),()=>{window.removeEventListener("hashchange",Q)}},[a,$,j,N,C,L,R,o]);const De=[{id:"overview",label:"Overview",icon:"📋",count:null,hasContent:!0},{id:"live",label:"Live",icon:"📡",count:null,hasContent:!0},{id:"diagnostics",label:"Diagnostics",icon:"🔍",count:null,hasContent:!0},{id:"tasks",label:"Tasks",icon:"⚙️",count:$.length,hasContent:$.length>0},{id:"resources",label:"Resources",icon:"🔧",count:j.length,hasContent:j.length>0},{id:"events",label:"Events",icon:"📡",count:N.length,hasContent:N.length>0},{id:"hooks",label:"Hooks",icon:"🪝",count:C.length,hasContent:C.length>0},{id:"middlewares",label:"Middlewares",icon:"🔗",count:L.length,hasContent:L.length>0},{id:"tags",label:"Tags",icon:"🏷️",count:R.length,hasContent:R.length>0}].filter(Q=>Q.hasContent);return window!==void 0&&console.log(o.serialize()),s.jsxs("div",{className:"docs-app",children:[s.jsxs("nav",{ref:I,className:"docs-sidebar",style:{width:`${f}px`},children:[s.jsxs("div",{className:"docs-nav-header",children:[s.jsx("h2",{children:"📚 Documentation"}),s.jsx("p",{children:"Navigate through your application components"})]}),s.jsxs("div",{className:"docs-view-controls",children:[s.jsxs("div",{className:"docs-view-toggle",children:[s.jsx("button",{className:`docs-view-button ${V==="list"?"active":""}`,onClick:()=>G("list"),title:"List View",children:"📄 List"}),s.jsx("button",{className:`docs-view-button ${V==="tree"?"active":""}`,onClick:()=>G("tree"),title:"Tree View",children:"🌳 Tree"})]}),V==="tree"&&s.jsx("div",{className:"docs-tree-controls",children:s.jsxs("select",{value:T,onChange:Q=>ae(Q.target.value),className:"docs-tree-type-select",children:[s.jsx("option",{value:"namespace",children:"By Namespace"}),s.jsx("option",{value:"type",children:"By Type"})]})})]}),s.jsxs("div",{className:"docs-namespace-input",children:[s.jsx("label",{htmlFor:"namespace-input",children:V==="tree"?"Search Tree":"Filter by Namespace"}),s.jsx("input",{id:"namespace-input",type:"text",placeholder:V==="tree"?"Search elements...":"Enter namespace prefix or any key...",value:a,onChange:Q=>m(Q.target.value)})]}),V==="list"?s.jsxs("ul",{className:"docs-nav-list",children:[s.jsx("li",{children:s.jsx("a",{href:"#top",className:"docs-nav-link docs-nav-link--home",children:s.jsxs("div",{className:"docs-nav-content",children:[s.jsx("span",{className:"icon",children:"🏠"}),s.jsx("span",{className:"text",children:"Home"})]})})}),De.map(Q=>s.jsx("li",{children:s.jsxs("a",{href:`#${Q.id}`,className:"docs-nav-link",children:[s.jsxs("div",{className:"docs-nav-content",children:[s.jsx("span",{className:"icon",children:Q.icon}),s.jsx("span",{className:"text",children:Q.label})]}),Q.count!==null&&s.jsx("span",{className:"docs-nav-badge",children:Q.count})]})},Q.id))]}):s.jsx("div",{className:"docs-tree-container",children:s.jsx(kf,{nodes:D,onNodeClick:W,onToggleExpansion:te,searchTerm:a,className:"docs-tree-view"})}),s.jsxs("div",{className:"docs-nav-stats",children:[s.jsx("div",{className:"label",children:"Quick Stats"}),s.jsx("div",{className:"value",children:$.length+j.length+N.length+C.length+L.length}),s.jsx("div",{className:"description",children:"Total Components"})]})]}),s.jsx("div",{ref:U,className:`docs-sidebar-resizer ${F?"docs-sidebar-resizer--active":""}`,style:{left:`${f+40}px`},onMouseDown:ve}),s.jsx("div",{className:"docs-main-content",style:{marginLeft:`${f+40}px`},children:s.jsxs("div",{className:"docs-content-container",children:[s.jsxs("header",{id:"top",className:"docs-header",children:[s.jsx("h1",{children:"Runner Application Documentation"}),s.jsx("p",{children:"Complete overview of your application's architecture and components"})]}),s.jsxs("section",{id:"overview",className:"docs-section",children:[s.jsx("h2",{children:"📋 Overview"}),s.jsxs("div",{className:"overview-grid",children:[s.jsxs("a",{href:"#tasks",className:"card card--tasks",children:[s.jsx("h3",{children:"Tasks"}),s.jsx("div",{className:"count",children:$.length})]}),s.jsxs("a",{href:"#resources",className:"card card--resources",children:[s.jsx("h3",{children:"Resources"}),s.jsx("div",{className:"count",children:j.length})]}),s.jsxs("a",{href:"#events",className:"card card--events",children:[s.jsx("h3",{children:"Events"}),s.jsx("div",{className:"count",children:N.length})]}),s.jsxs("a",{href:"#middlewares",className:"card card--middlewares",children:[s.jsx("h3",{children:"Middlewares"}),s.jsx("div",{className:"count",children:L.length})]}),s.jsxs("a",{href:"#hooks",className:"card card--hooks",children:[s.jsx("h3",{children:"Hooks"}),s.jsx("div",{className:"count",children:C.length})]})]})]}),s.jsxs("section",{id:"live",className:"docs-section",children:[s.jsx("h2",{children:"📡 Live Telemetry"}),s.jsx(Zf,{detailed:!0,introspector:o})]}),s.jsxs("section",{id:"diagnostics",className:"docs-section",children:[s.jsx("h2",{children:"🔍 Diagnostics"}),s.jsx(Wf,{introspector:o,detailed:!0})]}),$.length>0&&s.jsxs("section",{id:"tasks",className:"docs-section",children:[s.jsxs("h2",{children:["⚙️ Tasks (",$.length,")"]}),s.jsx("div",{className:"docs-component-grid",children:$.map(Q=>s.jsx(Mf,{task:Q,introspector:o},Q.id))})]}),j.length>0&&s.jsxs("section",{id:"resources",className:"docs-section",children:[s.jsxs("h2",{children:["🔧 Resources (",j.length,")"]}),s.jsx("div",{className:"docs-component-grid",children:j.map(Q=>s.jsx($f,{resource:Q,introspector:o},Q.id))})]}),N.length>0&&s.jsxs("section",{id:"events",className:"docs-section",children:[s.jsxs("h2",{children:["📡 Events (",N.length,")"]}),s.jsx("div",{className:"docs-component-grid",children:N.map(Q=>s.jsx(Af,{event:Q,introspector:o},Q.id))})]}),C.length>0&&s.jsxs("section",{id:"hooks",className:"docs-section",children:[s.jsxs("h2",{children:["🪝 Hooks (",C.length,")"]}),s.jsx("div",{className:"docs-component-grid",children:C.map(Q=>s.jsx(Vf,{hook:Q,introspector:o},Q.id))})]}),L.length>0&&s.jsxs("section",{id:"middlewares",className:"docs-section",children:[s.jsxs("h2",{children:["🔗 Middlewares (",L.length,")"]}),s.jsx("div",{className:"docs-component-grid",children:L.map(Q=>s.jsx(Of,{middleware:Q,introspector:o},Q.id))})]}),R.length>0&&s.jsxs("section",{id:"tags",className:"docs-section",children:[s.jsxs("h2",{children:["🏷️ Tags (",R.length,")"]}),s.jsx("div",{className:"docs-tags-grid",children:R.map(Q=>s.jsx(Hf,{tag:Q,introspector:o},Q.id))})]})]})})]})},qf=Symbol("runner-dev.elementKind");function Ir(o){return new Map(o.map(u=>[u.id,u]))}function Le(o){return o?Array.isArray(o)?o.map(u=>typeof u=="string"?u:bf(u)).filter(Boolean):typeof o=="string"?[o]:[]:[]}function bf(o){return o?typeof o.id=="string"?o.id:String(o):""}function fu(o){return o.getEvents().filter(a=>(a.listenedToBy??[]).length===0).map(a=>({id:a.id}))}function hu(o){return o.getEvents().filter(a=>o.getEmittersOfEvent(a.id).length===0).filter(a=>a.id!=="globals.events.ready").filter(a=>a.id!=="*").map(a=>({id:a.id}))}function mu(o){return o.getMiddlewares().filter(a=>{const m=(a.usedByTasks?.length??0)>0||(a.usedByResources?.length??0)>0,f=!!a.global?.enabled;return!m&&!f}).map(a=>({id:a.id}))}function pu(o){const u=o.getResources(),a=new Map;for(const f of u)for(const x of f.overrides??[])a.has(x)||a.set(x,new Set),a.get(x).add(f.id);const m=[];for(const[f,x]of a)if(x.size>1)for(const F of x)m.push({targetId:f,by:F});return m.sort((f,x)=>f.targetId===x.targetId?f.by.localeCompare(x.by):f.targetId.localeCompare(x.targetId)),m}function eh(o){const u=[];o.getResources(),o.getTasks(),o.getHooks(),o.getEvents(),o.getMiddlewares();for(const a of fu(o))Di(a.id)||u.push({severity:"warning",code:"ORPHAN_EVENT",message:`Event has no hooks: ${a.id}`,nodeId:a.id,nodeKind:"EVENT"});for(const a of hu(o))Di(a.id)||u.push({severity:"warning",code:"UNEMITTED_EVENT",message:`Event has no emitters: ${a.id}`,nodeId:a.id,nodeKind:"EVENT"});for(const a of mu(o))Di(a.id)||u.push({severity:"info",code:"UNUSED_MIDDLEWARE",message:`Middleware is defined but not used: ${a.id}`,nodeId:a.id,nodeKind:"MIDDLEWARE"});for(const a of pu(o))u.push({severity:"error",code:"OVERRIDE_CONFLICT",message:`Override conflict on ${a.targetId} by ${a.by}`,nodeId:a.targetId});return u.sort((a,m)=>{if(a.code!==m.code)return a.code.localeCompare(m.code);const f=a.nodeId??"",x=m.nodeId??"";return f!==x?f.localeCompare(x):a.message.localeCompare(m.message)}),u}function Di(o){const u=String(o).toLowerCase();return u.startsWith("globals.")||u==="*"}function th(o,u){try{Object.defineProperty(o,qf,{value:u,enumerable:!1,configurable:!1,writable:!1})}catch{}return o}class Wi{tasks=[];hooks=[];resources=[];events=[];taskMiddlewares=[];resourceMiddlewares=[];middlewares=[];allTags=[];store=null;rootId=null;taskMap=new Map;hookMap=new Map;resourceMap=new Map;eventMap=new Map;middlewareMap=new Map;tagMap=new Map;constructor(u){"store"in u||(this.store=null,this.initializeFromData(u.data))}initializeFromData(u){this.tasks=Array.isArray(u.tasks)?u.tasks:[],this.hooks=Array.isArray(u.hooks)?u.hooks:[],this.resources=Array.isArray(u.resources)?u.resources:[],this.events=Array.isArray(u.events)?u.events:[],this.taskMiddlewares=[],this.resourceMiddlewares=[],this.middlewares=Array.isArray(u.middlewares)?u.middlewares:[],this.rootId=u.rootId??null,this.taskMap=Ir(this.tasks),this.hookMap=Ir(this.hooks),this.resourceMap=Ir(this.resources),this.eventMap=Ir(this.events),this.middlewareMap=Ir(this.middlewares);const a=_=>this.tasks.filter(I=>Le(I.tags).includes(_)),m=_=>this.hooks.filter(I=>Le(I.tags).includes(_)),f=_=>this.resources.filter(I=>Le(I.tags).includes(_)),x=_=>this.middlewares.filter(I=>Le(I.tags).includes(_)),F=_=>this.events.filter(I=>Le(I.tags).includes(_));this.allTags=Array.from(u.tags).map(_=>{const I=_.configSchema;return{id:_.id,configSchema:I,get tasks(){return a(_.id)},get hooks(){return m(_.id)},get resources(){return f(_.id)},get middlewares(){return x(_.id)},get events(){return F(_.id)}}}),this.tagMap=new Map;for(const _ of this.allTags)this.tagMap.set(_.id,_)}buildRunsOptions(u,a){const m={};typeof a?.afterTimestamp=="number"&&(m.afterTimestamp=a.afterTimestamp),typeof a?.last=="number"&&(m.last=a.last);const f=a?.filter??{};return m.nodeIds=[String(u)],Array.isArray(f.nodeKinds)&&(m.nodeKinds=f.nodeKinds),typeof f.ok=="boolean"&&(m.ok=f.ok),Array.isArray(f.parentIds)&&(m.parentIds=f.parentIds),Array.isArray(f.rootIds)&&(m.rootIds=f.rootIds),Array.isArray(f.correlationIds)&&(m.correlationIds=f.correlationIds),m}getRoot(){const u=this.store,m=(u?.root?.resource?.id?String(u.root.resource.id):null)??this.rootId??this.resources[0]?.id;return th(this.resourceMap.get(String(m)),"RESOURCE")}getAll(){return[...this.tasks,...this.hooks,...this.resources,...this.events,...this.middlewares]}getEvents(){return this.events}getTasks(){return this.tasks}getHooks(){return this.hooks}getMiddlewares(){return this.middlewares}getTaskMiddlewares(){return this.taskMiddlewares}getResourceMiddlewares(){return this.resourceMiddlewares}getResources(){return this.resources}getEvent(u){return this.eventMap.get(u)??null}getTask(u){return this.taskMap.get(u)??null}getHook(u){return this.hookMap.get(u)??null}getMiddleware(u){return this.middlewareMap.get(u)??null}getResource(u){return this.resourceMap.get(u)??null}getDependencies(u){const a=Le(u.dependsOn),m=this.tasks.filter(I=>a.includes(I.id)),f=this.hooks.filter(I=>a.includes(I.id)),x=this.resources.filter(I=>a.includes(I.id)),F=Le(u.emits),_=this.events.filter(I=>F.includes(I.id));return{tasks:m,hooks:f,resources:x,emitters:_}}getEmittedEvents(u){const a=Le(u.emits);return this.events.filter(m=>a.includes(m.id))}getMiddlewaresByIds(u){const a=new Set(Le(u));return this.middlewares.filter(m=>a.has(m.id))}getResourcesByIds(u){const a=new Set(Le(u));return this.resources.filter(m=>a.has(m.id))}getTasksByIds(u){const a=new Set(Le(u));return this.tasks.filter(m=>a.has(m.id))}getHooksByIds(u){const a=new Set(Le(u));return this.hooks.filter(m=>a.has(m.id))}getEventsByIds(u){const a=new Set(Le(u));return this.events.filter(m=>a.has(m.id))}getTasksUsingResource(u){return[...this.tasks,...this.hooks].filter(a=>Le(a.dependsOn).includes(u))}getTasksUsingMiddleware(u){return this.tasks.filter(a=>Le(a.middleware).includes(u))}getTaskLikesUsingMiddleware(u){return this.getTasksUsingMiddleware(u)}getEmittersOfEvent(u){return[...this.tasks,...this.hooks,...this.resources].filter(a=>Le(a.emits).includes(u))}getHooksOfEvent(u){return this.hooks.filter(a=>a.events.includes(u))}getMiddlewareEmittedEvents(u){const a=this.getTasksUsingMiddleware(u),m=new Set;for(const f of a)for(const x of Le(f.emits))m.add(x);return this.events.filter(f=>m.has(f.id))}getMiddlewareUsagesForTask(u){const a=this.taskMap.get(u);return a?(a.middlewareDetailed??[]).map(f=>({id:f.id,config:f.config??null,node:this.middlewareMap.get(f.id)})).filter(f=>!!f.node):[]}getMiddlewareUsagesForResource(u){const a=this.resourceMap.get(u);return a?(a.middlewareDetailed??[]).map(f=>({id:f.id,config:f.config??null,node:this.middlewareMap.get(f.id)})).filter(f=>!!f.node):[]}getTasksUsingMiddlewareDetailed(u){const a=[];return(f=>{for(const x of f)if((x.middleware||[]).includes(u)){const F=(x.middlewareDetailed||[]).find(_=>_.id===u)?.config??null;a.push({id:x.id,config:F??null,node:x})}})(this.tasks),a}getResourcesUsingMiddlewareDetailed(u){const a=[];for(const m of this.resources)if((m.middleware||[]).includes(u)){const f=(m.middlewareDetailed||[]).find(x=>x.id===u)?.config??null;a.push({id:m.id,config:f??null,node:m})}return a}getEmittedEventsForResource(u){const a=this.getTasksUsingResource(u),m=new Set;for(const f of a)for(const x of Le(f.emits))m.add(x);return this.getEventsByIds(Array.from(m))}getTasksWithTag(u){return this.tasks.filter(a=>Le(a.tags).includes(u))}getHooksWithTag(u){return this.hooks.filter(a=>Le(a.tags).includes(u))}getResourcesWithTag(u){return this.resources.filter(a=>Le(a.tags).includes(u))}getMiddlewaresWithTag(u){return this.middlewares.filter(a=>Le(a.tags).includes(u))}getEventsWithTag(u){return this.events.filter(a=>Le(a.tags).includes(u))}getAllTags(){return this.allTags}getTag(u){return this.tagMap.get(u)??null}getTagsByIds(u){return u.map(a=>this.getTag(a)).filter(a=>a!==null)}getOrphanEvents(){return fu(this)}getUnemittedEvents(){return hu(this)}getUnusedMiddleware(){return mu(this)}getOverrideConflicts(){return pu(this)}getDiagnostics(){return eh(this)}buildRunOptionsForTask(u,a){return this.buildRunsOptions(u,a)}buildRunOptionsForHook(u,a){return this.buildRunsOptions(u,a)}serialize(){return{tasks:this.tasks,hooks:this.hooks,resources:this.resources,events:this.events,middlewares:this.middlewares,tags:this.allTags.map(u=>({id:u.id,configSchema:u.configSchema,tasks:[],hooks:[],resources:[],middlewares:[],events:[]})),diagnostics:this.getDiagnostics(),orphanEvents:this.getOrphanEvents(),unemittedEvents:this.getUnemittedEvents(),unusedMiddleware:this.getUnusedMiddleware(),overrideConflicts:this.getOverrideConflicts(),rootId:this.store?.root?.resource?.id!=null?String(this.store.root.resource.id):this.rootId}}static deserialize(u){return new Wi({data:u})}}function tu(o){return Wi.deserialize(o)}function nu(){const o=window.location.hash;if(!o)return;const u=decodeURIComponent(o.slice(1));requestAnimationFrame(()=>{setTimeout(()=>{const a=document.getElementById(u);a&&a.scrollIntoView({block:"start"})},0)})}async function nh(){const o=document.getElementById("root"),u=window.__DOCS_PROPS__;if(u&&u.introspectorData){const _=tu(u.introspectorData);Gc.hydrateRoot(o,Ce.createElement(eu,{introspector:_,namespacePrefix:u.namespacePrefix})),nu();return}const a=__API_URL__||"",m=new URL("/docs/data",a||window.location.origin),x=await(await fetch(m.toString())).json(),F=tu(x.introspectorData);Gc.createRoot(o).render(Ce.createElement(eu,{introspector:F,namespacePrefix:x.namespacePrefix})),nu()}nh();
|