potatejs 0.22.3 → 0.23.1
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/README.md +5 -5
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Po**wered by **Ta**gged **Te**mplate.
|
|
8
8
|
|
|
9
|
-
**Note**: This project is a fork of [brahmosjs/brahmos](https://github.com/brahmosjs/brahmos).
|
|
9
|
+
> **Note**: This project is a fork of [brahmosjs/brahmos](https://github.com/brahmosjs/brahmos).
|
|
10
10
|
|
|
11
11
|
Supercharged JavaScript library to build user interfaces with modern React API and native templates.
|
|
12
12
|
|
|
@@ -113,7 +113,7 @@ npm install potatejs
|
|
|
113
113
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
> **Note**: Potate
|
|
116
|
+
> **Note**: Potate uses its own JSX runtime. To avoid JSX transformation conflicts, please ensure that `@astrojs/react` or other JSX-based integrations are not enabled in your Astro project.
|
|
117
117
|
|
|
118
118
|
Add the integration in `astro.config.mjs`.
|
|
119
119
|
|
|
@@ -139,7 +139,7 @@ npm install -D esbuild
|
|
|
139
139
|
|
|
140
140
|
Build your app.
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
> **Note**: This CLI is build-only. For watch / dev usage, use esbuild's JS API directly.
|
|
143
143
|
|
|
144
144
|
``` bash
|
|
145
145
|
npx potatejs src/entry-point.js --outdir dist
|
|
@@ -378,12 +378,12 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
|
|
|
378
378
|
- [x] ⭐ [`<Context>` as a provider](https://react.dev/blog/2024/12/05/react-19#context-as-a-provider)
|
|
379
379
|
- [x] ⭐ [ref as a prop](https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop)
|
|
380
380
|
- [x] ⭐ [startTransition(action) for POST request](https://react.dev/blog/2024/12/05/react-19#actions)
|
|
381
|
+
- [x] ⭐ [Cleanup functions for refs](https://react.dev/blog/2024/12/05/react-19#cleanup-functions-for-refs)
|
|
382
|
+
- [x] ⭐ `useImperativeHandle` hook
|
|
381
383
|
- [x] ⭐ Handle server rendering(SSR/SSG/renderToString)
|
|
382
384
|
- [ ] ⭐ `use(context)` API
|
|
383
385
|
- [ ] ⭐ [use(store) API](https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#concurrent-stores)
|
|
384
|
-
- [ ] ⭐ [Cleanup functions for refs](https://react.dev/blog/2024/12/05/react-19#cleanup-functions-for-refs)
|
|
385
386
|
- [ ] ⭐ [useEffectEvent hook](https://react.dev/reference/react/useEffectEvent)
|
|
386
|
-
- [ ] ⭐ `useImperativeHandle` hook
|
|
387
387
|
- [ ] ⭐ `useInsertionEffect` hook
|
|
388
388
|
- [ ] Clean up
|
|
389
389
|
- [ ] Performance improvement
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var Uo=Object.defineProperty;var vo=(e,t)=>{for(var n in t)Uo(e,n,{get:t[n],enumerable:!0})};var Jt={};vo(Jt,{Children:()=>Ro,Component:()=>F,Fragment:()=>Lr,PureComponent:()=>ae,StrictMode:()=>wr,Suspense:()=>Oe,SuspenseList:()=>W,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>jr,cloneElement:()=>Xt,createContext:()=>Ft,createElement:()=>mo,createPortal:()=>So,createRef:()=>eo,createRoot:()=>Io,forwardRef:()=>ct,html:()=>Co,isValidElement:()=>Fo,jsx:()=>Br,jsxDev:()=>Kr,jsxs:()=>Yr,lazy:()=>Eo,memo:()=>Qt,reacty:()=>Hr,render:()=>qt,startTransition:()=>Fe,unmountComponentAtNode:()=>Ao,unstable_batchedUpdates:()=>kr,unstable_deferredUpdates:()=>nt,unstable_syncUpdates:()=>me,use:()=>bo,useCallback:()=>kn,useContext:()=>Yn,useDebugValue:()=>Bn,useDeferredValue:()=>jn,useEffect:()=>Pt,useLayoutEffect:()=>Ot,useMemo:()=>Dt,useReducer:()=>Ln,useRef:()=>wn,useState:()=>bt,useTransition:()=>Kn,watch:()=>dt});var ke=Symbol.for("react.element"),sn=Symbol.for("react.forward_ref"),an="{{brahmos}}",cn={key:1,ref:1},pn={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},Tt={doubleclick:"dblclick"},ln=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,un=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,ht="http://www.w3.org/1999/xlink",fn=100,d="__brahmosData",He="__brahmosLastArrayDom",Be="__rootFiber",A="sync",y="deferred",Ee="js",U="immediate_action",C="transition",Ye=0,Et=1,x=2,mn="initial",q="start",ce="suspended",ye="resolved",yt="completed",K="timedOut";function Tn(e){return e[0]==="o"&&e[1]==="n"}function Ke(e){let t=un.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return pn[e]||t}function gt(e){return e.nodeName.toLowerCase()}function hn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function X(e){return e==null}var Mo=0;function j(){return Mo++}function En(){return Date.now()}function je(e){e.__brahmosData={events:{}}}function pe(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function ge(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function $e(e,t){for(let n in e)t(n,e[n])}function Ce(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function $(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function wo(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function ze(e,t,n){let o=wo(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=$(o.childNodes):r=n,e.insertBefore(o,t),r}function le(e,t){return t?t.nextSibling:e.firstChild}function L(e,t,n){if(e[t])return e[t].apply(e,n)}function yn(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var Ge=Promise.resolve();function Se(e){return Ge.then(e)}function Ae(){return j()+"-"+Math.random()*1e6}function gn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function We(e){return e[d].mounted}function Ct(e){return e.displayName||e.name}function ue({children:e}){return e}var Ve={transitionId:"",tryCount:0,transitionState:K},v={transitionId:Ae(),tryCount:0,transitionState:K};function Lo(e){let{transitionState:t}=e;return t===q||t===ye||t===K}function Ne(e){let{transitionState:t}=e;return t===yt||t===K}function Cn(e){let{transitionState:t}=e;t!==K&&t!==ce&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=yt)}function Q(e,t){return t=t||Ve,e.root.currentTransition||t}function St(e){let{pendingTransitions:t}=e;return t.find(Lo)}var At=Symbol.for("tag"),Z=Symbol.for("tag-element"),D=Symbol.for("class-component"),Nt=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===Z}function J({nodeType:e}){return e===At}function B(e){return G(e)||J(e)}function _({nodeType:e}){return e===D||e===Nt}function Y(e){return typeof e=="string"||typeof e=="number"}function qe(e){return!(X(e)||typeof e=="boolean")}function _t(e,t){let n=e&&e.key;return n===void 0?t:n}function Xe(e,t,n){return{$$typeof:ke,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var An;function _e(e){An=e}function N(){return An}function xe(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ee(e){return e===y?"deferredUpdateTime":"updateTime"}function k(e,t){let n=ee(t),o=j();for(;e;)e[n]=o,e=e.parent}function Nn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function R(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function Qe(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,p=ee(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=j()):(t=de(r,s,a),ko(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[p]=o[p],t.isReactCompat=e.isReactCompat,Nn(t,n,o),t}function _n(e,t){return e===t?e.child:e.sibling}function te(e){let{child:t,root:n}=e;if(n.updateType===A)return;let o;for(;t;){let{alternate:r}=t;o=Qe(t,r,o||e,e),t=t.sibling}}function Ze(e){let t=[];return{updateType:y,updateSource:Ee,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function de(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,isReactCompat:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:Ye}}function ko(e,t){e&&(e.alternate=t),t.alternate=e}function ne(e,t,n,o,r){let{root:s}=o,a=ee(s.updateType),i;n&&!X(n.node)&&!X(e)&&Ho(e,n.node)?(i=Qe(n,n.alternate,o,r),i.node=e,i.part=t):(i=de(s,e,t),n&&oe(n)),Nn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function Ho(e,t){return Y(e)&&Y(t)||e.nodeType===z||Array.isArray(e)&&Array.isArray(t)||(_(e)||G(e))&&e.type===t.type||J(e)&&e.template===t.template}function Bo(e,t,n){return e&&e[n]>=t}function Sn(e,t,n){if(e){for(;e&&!Bo(e,t,n);)e=e.sibling;return e}}function xn(e,t,n,o){let r=Sn(e.child,n,o);if(r)return r;let s;for(;!(s=Sn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function M(e){return e[d].fiber}function Rn(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function oe(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var et=Ee,Je=Ve;function re(){return et}function xt(){return Je}function I(e,t){et=e,t(),et=Ee}function se(e,t){let n=Je;Je=e,I(C,t),Je=n}function Fn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===U||!!t}function Yo(){return et===C}function Re(){return Yo()?y:A}function tt(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function fe(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=tt(t);if(t===A)return o[r];let s=Q(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function nt(e){se(v,e)}function me(e){I(U,e)}function Ko(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function ot(e,t){let n,o,r=!0,s=e[d],a=N();if(a){let{renderCount:p}=s;if(p>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:l}=a;l.retryFiber=Ko(a,e),n=l.updateType,o=l.currentTransition||Ve,r=!1}else s.renderCount=0,n=Re(),o=xt();let i=tt(n),c=t(o.transitionId);return s[i].push(c),r}var jo=1;function Rt(e){return function(t){let n=M(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,k(n,o))}}function Ft(e){let t=`cC${jo++}`;class n extends F{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=Rt(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends F{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function bn(){return N().nodeInstance}function Dn(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function Pn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===A?n:o}function rt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Pn(n,t)}function In(e,t,n){return e===y&&!n.deferredHooks.length&&Dn(n),Pn(e,n)[t]}function On(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function $o(e,t,n){let o=typeof t=="function";(re()===U||o||!Object.is(t,n))&&w(e)}function It(e){return!1}function Un(e){return e}function st(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=rt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function vn(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&Dn(t),fe(e).forEach(r=>r.updater())}function Mn(e,t){let n=bn(),{pointer:o}=n;return st(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=Re(),c=In(A,o,n)[0];ot(n,l=>({transitionId:l,updater(){let f=In(a,o,n);f[0]=t(s,f[0])}}))&&$o(n,s,c)}]),It,Un)}function bt(e){return Mn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function wn(e){return st(()=>({current:e}),It,Un)}function Ln(e,t,n){return Mn(n?()=>n(t):t,(r,s)=>e(s,r))}function Dt(e,t){return st(()=>({value:e(),dependencies:t}),s=>On(t,s.dependencies),s=>s.value)}function kn(e,t){return Dt(()=>e,t)}function Hn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=rt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:On(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function Pt(e,t){Hn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function Ot(e,t){Hn(n=>{n.cleanEffect=e()},t)}function Bn(){}function Yn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return Ot(()=>{if(s){let{subs:i}=s,c=Rt(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Fe(e){let t={transitionId:Ae(),transitionState:q,pendingSuspense:[],tryCount:0},n;se(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function Kn(){let e=bn();return st(()=>{let t={transitionId:Ae(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:mn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{w(e)};o===C?se(t,r):I(o,r)},startTransition(n){let o=re(),{root:r}=M(e);t.transitionState=q,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;se(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,C),ie(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},It,({startTransition:t,isPending:n})=>[n,t])}function jn(e,t){let[n,o]=bt(t!==void 0?t:e);return Pt(()=>{Fe(()=>{o(e)})},[e]),n}function $n(e){let t=rt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function it(e,t){let n=rt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function Ie(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){vn();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}var zo=Object.prototype.hasOwnProperty;function Go(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!zo.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ut=Go;function Wo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof F&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function Vo(e){let t="";for(;e;){let{node:n}=e;n&&_(n)&&n.type!==ue&&(t+=` at ${Ct(n.type)}
|
|
2
|
-
`),e=e.parent}return{componentStack:t}}function
|
|
3
|
-
${O.componentStack}`;console.error(V),P.childFiberError={error:g,errorInfo:O},zn(P)}else throw g;return}finally{_e(null);let g=u[d];if(T&&p){let{committedValues:P}=g;Object.assign(u,P)}}}if(f||l){let{child:m}=e,{nodes:g}=S;!m||m.node!==g?(ne(g,n,m,e,e),R(e,x)):f||te(e)}else te(e)}function Wn(e){let{node:t,alternate:n,isReactCompat:o}=e,r=n&&n.node;(!o||t!==r)&&R(e,x)}function Mt(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return je(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function Qo(e){return!!e&&e.nodeType===8&&e.textContent===an}var be=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=$(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:p,attrIndex:l,refNodeIndex:f,prevChildIndex:T,hasExpressionSibling:u}=c,h=s[f];if(p)c.tagAttrs||(c.tagAttrs=$(h.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:h,attrIndex:l}),je(h);else{h=h||t;let S=T!==-1,E,m=h.childNodes[T+1];S&&Qo(m)&&Ce(m),S?u?E=yn(h,T):E=h.childNodes[T]:E=null,r.push({isNode:!0,parentNode:h,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function Zo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function Jo(e,t){return{nodeType:z,props:e,ref:t}}function er(e,t,n){let o=n,{isReactCompat:r}=n,s=n.child;for(let a=0,i=e.length;a<i;a++){let c=e[a],p=t[a],l;if(c.isAttribute){let{domNode:f}=c,T={},u;for(;c&&f===c.domNode;)(r?ge:$e)(t[a],(S,E)=>{let m=c,g=!1;if(r){let P=Ke(S);g=Zo(m.tagAttrs,P,m.attrIndex)}!g&&!cn[S]?T[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],l=Jo(T,u)}else c.isNode&&(l=p);o=ne(l,c,s,o,n),s=s&&s.sibling}}function wt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===Z,p=e.isSvgPart||t.type==="svg";e.isSvgPart=p;let{nodeInstance:l}=e;l||(l=c?Mt(t,p):new be(t.template,p),e.nodeInstance=l),c||l.patchParts(n),t!==s?c?ne(t.props.children,l.parts[0],e.child,e,e):er(l.parts,a,e):te(e),R(e,x),e.context=r}function Vn(e,t){let{type:n}=t,o=gt(t);return Tt[e]?Tt[e]:/^change(textarea|input)/i.test(e+o)&&!ln.test(n)?"input":e}function Lt(e){let{type:t}=e,n=gt(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function qn(e){let t=Lt(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function Xn(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function Qn(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&me(()=>{r.handler.call(this,s)})},r.patched)}function Jn(e,t,n,o){t=t||{},ge(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ge(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Zn(e,t,n,o,r,s){if(t==="children"||t==="key"||t==="ref")return;if(Tn(t)){let i=!1;s&&(i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer");let c=hn(t,i);s&&(c=Vn(c,e));let p=Qn(e,t,n);!s&&o===void 0?n?e.addEventListener(c,p,i):e.removeEventListener(c,p,i):o&&!n?e.removeEventListener(c,p,i):!o&&n&&e.addEventListener(c,p,i)}else if(t==="style")if(s){let{style:i}=e;Jn(n||{},o,"",(c,p)=>{c[0]==="-"?i.setProperty(c,p):i[c]=typeof p=="number"&&dn.test(c)===!1?p+"px":p})}else e.style.cssText=n||"";else if(t==="dangerouslySetInnerHTML"){if(s){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}}else if(t in e&&!r){let i=s?Lt(e):null;i?Xn(i,e,t,n):e[t]=n==null?"":n}else{s&&(t=Ke(t));let i=t;r&&t.startsWith("xlink")&&(i=t.replace(/^xlink:?/,""));let c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(ht,i):e.setAttributeNS(ht,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function kt(e,t,n,o,r){r?(Jn(t,n,null,(s,a,i)=>{Zn(e,s,a,i,o,r)}),qn(e)):$e(t,(s,a)=>{Zn(e,s,a,void 0,o,!1)})}function ct(e){function t(n){return e(pe(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=sn,t}function eo(){return{current:null}}function De(e,t){typeof e=="function"?e(t):typeof e=="object"&&(e.current=t)}function tr(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=le(r,s);n&&a?a.nodeValue=t:ze(r,a,t)}function nr(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function to(e,t){let{domNodes:n}=t;e[He]=n[n.length-1]}function no(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function oo(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[He]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[He])}return t}function ro(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=nr(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:p}=i,l=oo(n),f=le(r,l),T=p[0];T&&T.previousSibling!==l&&T!==f&&ze(r,f,p),no(n,T)}to(r,i)}}function or(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&so(e,t.domNodes[0]),n)ro(e,n);else{let i=oo(r),c=le(s,i),p=ze(s,c,t.fragment);a||(t.domNodes=p),no(r,p[0]),to(s,t)}}function rr(e){let{node:t,nodeInstance:n,root:o}=e,{updateType:r}=o,{nodeType:s}=t,a=n[d],i=r===y;if(s===D){i&&Object.assign(n,a.memoizedValues);let{props:l,state:f}=a.committedValues;a.lastSnapshot=L(n,"getSnapshotBeforeUpdate",[l,f])}else it(e,!1);let{transitionId:c}=Q(e,null),p=tt(r);a[p]=i?a[p].filter(l=>l.transitionId!==c):[],a.isDirty=!1,a.renderCount=0,o.postCommitEffects.push(e)}function sr(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a,ref:i}=t,c=n[d];if(a===D){let{props:p,state:l}=n,{committedValues:f,lastSnapshot:T}=c,{props:u,state:h}=f;u?L(n,"componentDidUpdate",[u,h,T]):L(n,"componentDidMount"),r&&(L(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),i&&De(i,n),f.props=p,f.state=l,c.memoizedValues=null}else if($n(e),s===y){let{syncHooks:p,deferredHooks:l}=n;n.deferredHooks=p,n.syncHooks=l}c.mounted=!0,c.fiber=e}function so(e,t){let{node:n,alternate:o,isSvgPart:r,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;kt(t,a,c,r,s),i&&De(i,t)}function pt(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function ir(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Ht(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function ar(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&ro(e,n),e.hasUncommittedEffect===x&&(Y(t)?tr(e):B(t)?or(e):o?rr(e):t.nodeType===z&&so(e,e.part.domNode),e.hasUncommittedEffect=Ye),n&&ir(n)}function io(e){let{updateType:t,wip:n,current:o}=e,r=ee(t),s=e[xe(t)],a=[],i=t===A?o:n;for(;i;){let{createdAt:c,node:p,child:l,hasUncommittedEffect:f}=i,T=i[r],u=c>s,h=f||T>s;if(f&&a.push(i),u&&(l&&l.parent!==i&&(l.parent=i),p&&_(p)&&(i.nodeInstance[d].fiber=i)),l&&h)i=l;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Bt(e,t){for(let o=0,r=t.length;o<r;o++)ar(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)sr(n[o]);Ht(e),pt(e),e.forcedUpdateWith=null}function Yt(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,p=e;for(;p=_n(p,e);){let l=_t(p.node,c);i.set(l,p),c++}e.child=null,t.forEach((l,f)=>{let T=_t(l,f),u=i.get(T);u&&i.delete(T);let h=o;o=ne(l,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,h,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(R(o,Et),f!==0&&R(h,Et))}),i.forEach(l=>{oe(l)}),R(e,x)}function ao(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),co(e,r)}function co(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!qe(n))return;let s=B(n),{child:a}=e;if(a)for(ao(a,o,s,t);a.sibling;)a=a.sibling,ao(a,o,s,t);if(Y(n)&&t){let c=le(o.parentNode,o.previousSibling);c&&Ce(c);return}let{ref:i}=n;if(i&&De(i,null),!!r)if(s){let{domNodes:c}=r;t&&Ce(c)}else _(n)&&We(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?L(r,"componentWillUnmount"):it(e,!0))}function Te(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&co(n,!0)}),e.tearDownFibers=[]}var po=5,cr=30,Kt=16,pr=300,lr=600,uo=0;typeof requestAnimationFrame!="undefined"&&requestAnimationFrame(e=>{uo=e});var jt=()=>performance.now(),lo=()=>!0,fo=(e,t)=>(t=t||Kt,t-(e-uo)%t),$t,Pe;if(typeof MessageChannel!="undefined"){Pe=[];let e=new MessageChannel;e.port1.onmessage=function(){Pe.forEach(t=>t())},$t=e.port2}function ur(e){if(!$t||fo(jt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return Pe.push(e),$t.postMessage(null),()=>{let t=Pe.indexOf(e);t!==-1&&Pe.splice(t,1)}}function zt(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=ur(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===v?pr:lr,i=jt(),c=Math.min(cr,po+s),p=Math.floor(c/Kt)*Kt,l=()=>{let u=jt(),h=fo(u,p),S=i+Math.min(po,h);return u<S},T=s>a?lo:l;n(T)});return}n(lo)}function dr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!fe(e).length||n[d].isDirty:!1}function fr(e){let{node:t,alternate:n}=e;if(!qe(t)){n&&oe(n);return}let o=dr(e);if(e.processedTime&&!o){te(e);return}Y(t)?Wn(e):Array.isArray(t)?Yt(e):B(t)?wt(e):_(t)?vt(e):t.nodeType===z&&R(e,x),e.processedTime=j()}function mr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ne(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var Tr={fn:e=>{let{updateType:t,current:n}=e,o=xe(t);Te(e);let r=io(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),I(U,()=>Bt(e,r))}};function lt(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=xe(o),a=ee(o),i=n[s],c=!Fn(n);zt(n,c,p=>{for(;e!==t;)if(p()){fr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=xn(e,t,i,a)}else{lt(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,T=r.transitionState!==ce,u=r.isRunningAsyncAction;f&&T&&!u&&(Cn(r),r.tryCount=0),!n.hasUncommittedEffect&&(Ne(r)||u)&&Ht(n)}mr(n)&&Tr.fn(n),St(n)&&I(C,()=>{n.updateSource=C,ie(n)})})}function ie(e){let t=St(e);t&&(e.updateType=y,pt(e),e.currentTransition=t,t.tryCount+=1,e.wip=Qe(e.current,e.wip,e,e),lt(e.wip,e))}function ut(e){let{root:t,parent:n}=e;t.updateType=A,t.currentTransition=null,pt(t),lt(e,n)}function w(e){let t=M(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=re(),a=xt(),i=Re();if(k(t,i),s===C&&!o.includes(a)&&(a===v?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Se(()=>{let c=r[s];r[s]=0;let p=s===C;if(!(p&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,p)ie(n);else{let l=n.updateType===A&&n.cancelSchedule;ut(s===U&&!l&&c===1?t:n.current)}})}var F=class{constructor(t){this.props=t,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}setState(t,n){ot(this,r=>({state:t,transitionId:r,callback:n}))&&w(this)}forceUpdate(t){let n=this[d],{fiber:o}=n;o&&(o.root.forcedUpdateWith=this,this[d].isDirty=!0,w(this),t&&t(this.state))}render(){}__render(){let t=this.render();return this[d].nodes=t,t}};F.prototype.isReactComponent=!0;var ae=class extends F{};ae.prototype.isPureReactComponent=!0;function b(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
|
|
1
|
+
var vo=Object.defineProperty;var Mo=(e,t)=>{for(var n in t)vo(e,n,{get:t[n],enumerable:!0})};var Jt={};Mo(Jt,{Children:()=>Fo,Component:()=>F,Fragment:()=>kr,PureComponent:()=>ce,StrictMode:()=>Lr,Suspense:()=>Oe,SuspenseList:()=>W,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>$r,cloneElement:()=>Xt,createContext:()=>It,createElement:()=>To,createPortal:()=>Ao,createRef:()=>to,createRoot:()=>bo,forwardRef:()=>lt,html:()=>So,isValidElement:()=>Io,jsx:()=>Yr,jsxDev:()=>jr,jsxs:()=>Kr,lazy:()=>yo,memo:()=>Qt,reacty:()=>Br,render:()=>qt,startTransition:()=>Ie,unmountComponentAtNode:()=>No,unstable_batchedUpdates:()=>Hr,unstable_deferredUpdates:()=>nt,unstable_syncUpdates:()=>Te,use:()=>Do,useCallback:()=>kn,useContext:()=>Kn,useDebugValue:()=>Yn,useDeferredValue:()=>$n,useEffect:()=>Ot,useImperativeHandle:()=>Bn,useLayoutEffect:()=>it,useMemo:()=>Pt,useReducer:()=>Ln,useRef:()=>wn,useState:()=>Dt,useTransition:()=>jn,watch:()=>ft});var ke=Symbol.for("react.element"),sn=Symbol.for("react.forward_ref"),an="{{brahmos}}",cn={key:1,ref:1},ln={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},ht={doubleclick:"dblclick"},pn=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,un=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,Et="http://www.w3.org/1999/xlink",fn=100,d="__brahmosData",He="__brahmosLastArrayDom",Be="__rootFiber",A="sync",y="deferred",ye="js",U="immediate_action",C="transition",Ye=0,yt=1,x=2,mn="initial",q="start",le="suspended",ge="resolved",gt="completed",K="timedOut";function Tn(e){return e[0]==="o"&&e[1]==="n"}function Ke(e){let t=un.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return ln[e]||t}function Ct(e){return e.nodeName.toLowerCase()}function hn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function X(e){return e==null}var wo=0;function j(){return wo++}function En(){return Date.now()}function je(e){e.__brahmosData={events:{}}}function pe(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function Ce(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function $e(e,t){for(let n in e)t(n,e[n])}function Se(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function $(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function Lo(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function ze(e,t,n){let o=Lo(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=$(o.childNodes):r=n,e.insertBefore(o,t),r}function ue(e,t){return t?t.nextSibling:e.firstChild}function L(e,t,n){if(e[t])return e[t].apply(e,n)}function yn(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var Ge=Promise.resolve();function Ae(e){return Ge.then(e)}function Ne(){return j()+"-"+Math.random()*1e6}function gn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function We(e){return e[d].mounted}function St(e){return e.displayName||e.name}function de({children:e}){return e}var Ve={transitionId:"",tryCount:0,transitionState:K},v={transitionId:Ne(),tryCount:0,transitionState:K};function ko(e){let{transitionState:t}=e;return t===q||t===ge||t===K}function _e(e){let{transitionState:t}=e;return t===gt||t===K}function Cn(e){let{transitionState:t}=e;t!==K&&t!==le&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=gt)}function Q(e,t){return t=t||Ve,e.root.currentTransition||t}function At(e){let{pendingTransitions:t}=e;return t.find(ko)}var Nt=Symbol.for("tag"),Z=Symbol.for("tag-element"),D=Symbol.for("class-component"),_t=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===Z}function J({nodeType:e}){return e===Nt}function B(e){return G(e)||J(e)}function _({nodeType:e}){return e===D||e===_t}function Y(e){return typeof e=="string"||typeof e=="number"}function qe(e){return!(X(e)||typeof e=="boolean")}function xt(e,t){let n=e&&e.key;return n===void 0?t:n}function Xe(e,t,n){return{$$typeof:ke,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var An;function xe(e){An=e}function N(){return An}function Re(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ee(e){return e===y?"deferredUpdateTime":"updateTime"}function k(e,t){let n=ee(t),o=j();for(;e;)e[n]=o,e=e.parent}function Nn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function R(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function Qe(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,l=ee(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=j()):(t=fe(r,s,a),Ho(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[l]=o[l],t.isReactCompat=e.isReactCompat,t.refCleanup=e.refCleanup,Nn(t,n,o),t}function _n(e,t){return e===t?e.child:e.sibling}function te(e){let{child:t,root:n}=e;if(n.updateType===A)return;let o;for(;t;){let{alternate:r}=t;o=Qe(t,r,o||e,e),t=t.sibling}}function Ze(e){let t=[];return{updateType:y,updateSource:ye,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function fe(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,isReactCompat:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:Ye,refCleanup:null}}function Ho(e,t){e&&(e.alternate=t),t.alternate=e}function ne(e,t,n,o,r){let{root:s}=o,a=ee(s.updateType),i;n&&!X(n.node)&&!X(e)&&Bo(e,n.node)?(i=Qe(n,n.alternate,o,r),i.node=e,i.part=t):(i=fe(s,e,t),n&&oe(n)),Nn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function Bo(e,t){return Y(e)&&Y(t)||e.nodeType===z||Array.isArray(e)&&Array.isArray(t)||(_(e)||G(e))&&e.type===t.type||J(e)&&e.template===t.template}function Yo(e,t,n){return e&&e[n]>=t}function Sn(e,t,n){if(e){for(;e&&!Yo(e,t,n);)e=e.sibling;return e}}function xn(e,t,n,o){let r=Sn(e.child,n,o);if(r)return r;let s;for(;!(s=Sn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function M(e){return e[d].fiber}function Rn(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function oe(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var et=ye,Je=Ve;function re(){return et}function Rt(){return Je}function I(e,t){et=e,t(),et=ye}function se(e,t){let n=Je;Je=e,I(C,t),Je=n}function Fn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===U||!!t}function Ko(){return et===C}function Fe(){return Ko()?y:A}function tt(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function me(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=tt(t);if(t===A)return o[r];let s=Q(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function nt(e){se(v,e)}function Te(e){I(U,e)}function jo(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function ot(e,t){let n,o,r=!0,s=e[d],a=N();if(a){let{renderCount:l}=s;if(l>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:p}=a;p.retryFiber=jo(a,e),n=p.updateType,o=p.currentTransition||Ve,r=!1}else s.renderCount=0,n=Fe(),o=Rt();let i=tt(n),c=t(o.transitionId);return s[i].push(c),r}var $o=1;function Ft(e){return function(t){let n=M(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,k(n,o))}}function It(e){let t=`cC${$o++}`;class n extends F{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=Ft(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends F{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function bn(){return N().nodeInstance}function Dn(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function Pn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===A?n:o}function rt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Pn(n,t)}function In(e,t,n){return e===y&&!n.deferredHooks.length&&Dn(n),Pn(e,n)[t]}function On(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function zo(e,t,n){let o=typeof t=="function";(re()===U||o||!Object.is(t,n))&&w(e)}function bt(e){return!1}function Un(e){return e}function st(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=rt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function vn(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&Dn(t),me(e).forEach(r=>r.updater())}function Mn(e,t){let n=bn(),{pointer:o}=n;return st(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=Fe(),c=In(A,o,n)[0];ot(n,p=>({transitionId:p,updater(){let f=In(a,o,n);f[0]=t(s,f[0])}}))&&zo(n,s,c)}]),bt,Un)}function Dt(e){return Mn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function wn(e){return st(()=>({current:e}),bt,Un)}function Ln(e,t,n){return Mn(n?()=>n(t):t,(r,s)=>e(s,r))}function Pt(e,t){return st(()=>({value:e(),dependencies:t}),s=>On(t,s.dependencies),s=>s.value)}function kn(e,t){return Pt(()=>e,t)}function Hn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=rt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:On(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function Ot(e,t){Hn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function it(e,t){Hn(n=>{n.cleanEffect=e()},t)}function Bn(e,t,n){it(()=>{if(typeof e=="function"){let o=e(t());return typeof o=="function"?o:()=>e(null)}else if(e!=null)return e.current=t(),()=>{e.current=null}},n?n.concat([e]):void 0)}function Yn(){}function Kn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return it(()=>{if(s){let{subs:i}=s,c=Ft(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Ie(e){let t={transitionId:Ne(),transitionState:q,pendingSuspense:[],tryCount:0},n;se(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function jn(){let e=bn();return st(()=>{let t={transitionId:Ne(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:mn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{w(e)};o===C?se(t,r):I(o,r)},startTransition(n){let o=re(),{root:r}=M(e);t.transitionState=q,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;se(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,C),ie(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},bt,({startTransition:t,isPending:n})=>[n,t])}function $n(e,t){let[n,o]=Dt(t!==void 0?t:e);return Ot(()=>{Ie(()=>{o(e)})},[e]),n}function zn(e){let t=rt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function at(e,t){let n=rt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function be(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){vn();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}var Go=Object.prototype.hasOwnProperty;function Wo(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!Go.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ut=Wo;function Vo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof F&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function qo(e){let t="";for(;e;){let{node:n}=e;n&&_(n)&&n.type!==de&&(t+=` at ${St(n.type)}
|
|
2
|
+
`),e=e.parent}return{componentStack:t}}function Xo(e){let{node:{type:t},nodeInstance:n,parent:o}=e,{__ccId:r}=t,s=o.context||{};if(!r)return s;let a=Object.create(s);return a[r]=n,a}function Qo(e,t){return t.reduce((n,{state:o})=>(typeof o=="function"&&(o=o(n)),{...n,...o}),e)}function Gn(e){let{root:t,nodeInstance:n}=e;n[d].isDirty=!0,t.retryFiber=e}function vt(e){let{node:t,part:n,root:o,childFiberError:r}=e,{type:s,nodeType:a,props:i={}}=t,{currentTransition:c}=o,l=o.updateType===y,p=!0,f=!1,m=a===D;Rn(e);let{nodeInstance:u}=e,T=!1;u||(u=m?new s(i):be(s),e.nodeInstance=u,T=!0);let S=u[d],E=Xo(e);if(e.context=E,m){let h=u,g=S,{committedValues:P,memoizedValues:O}=g;T&&(P.state=h.state);let{props:V,state:Ee}=P;O&&c&&c.transitionId===O.transitionId&&({props:V,state:Ee}=O,f=!0),h.props=V,h.state=Ee;let{shouldComponentUpdate:en}=h,H=Ee,mt=me(e);mt.length&&(H=Qo(Ee,mt));let tn=!T&&o.forcedUpdateWith!==u,nn=L(s,"getDerivedStateFromProps",[i,H]),on=r?L(s,"getDerivedStateFromError",[r.error]):void 0;(nn||on)&&(H={...H,...nn,...on}),e.isReactCompat&&h.isPureReactComponent&&tn&&(p=!Ut(H,Ee)||!Ut(i,V)),e.isReactCompat&&en&&p&&tn&&(p=en.call(h,i,H));let{contextType:rn}=s;if(rn){let{id:we,defaultValue:Tt}=rn,Le=E[we],Uo=Le?Le.props.value:Tt;Le&&T&&Le.sub(h),h.context=Uo}h.state=H,h.props=i,mt.forEach(({callback:we})=>{if(we){let{updateSource:Tt}=o;Ae(()=>{I(Tt,()=>we(H))})}}),c&&(g.memoizedValues={state:H,props:i,transitionId:c.transitionId})}if(p){xe(e),S.renderCount+=1;let h=r&&!s.getDerivedStateFromError;try{h?S.nodes=null:u.__render(i)}catch(g){let P=Vo(e);if(typeof g.then=="function"){let O=ct(e);if(!O)throw new Error("Rendering which got suspended can't be used outside of suspense.");O.nodeInstance.handleSuspender(g,O);let V=Wn(O);Gn(V)}else if(P&&!P.childFiberError){let O=qo(e);console.error(g);let V=`The above error occurred in the <${St(t.type)}> component:
|
|
3
|
+
${O.componentStack}`;console.error(V),P.childFiberError={error:g,errorInfo:O},Gn(P)}else throw g;return}finally{xe(null);let g=u[d];if(m&&l){let{committedValues:P}=g;Object.assign(u,P)}}}if(f||p){let{child:h}=e,{nodes:g}=S;!h||h.node!==g?(ne(g,n,h,e,e),R(e,x)):f||te(e)}else te(e)}function Vn(e){let{node:t,alternate:n,isReactCompat:o}=e,r=n&&n.node;(!o||t!==r)&&R(e,x)}function Mt(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return je(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function Zo(e){return!!e&&e.nodeType===8&&e.textContent===an}var De=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=$(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:l,attrIndex:p,refNodeIndex:f,prevChildIndex:m,hasExpressionSibling:u}=c,T=s[f];if(l)c.tagAttrs||(c.tagAttrs=$(T.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:T,attrIndex:p}),je(T);else{T=T||t;let S=m!==-1,E,h=T.childNodes[m+1];S&&Zo(h)&&Se(h),S?u?E=yn(T,m):E=T.childNodes[m]:E=null,r.push({isNode:!0,parentNode:T,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function Jo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function er(e,t){return{nodeType:z,props:e,ref:t}}function tr(e,t,n){let o=n,{isReactCompat:r}=n,s=n.child;for(let a=0,i=e.length;a<i;a++){let c=e[a],l=t[a],p;if(c.isAttribute){let{domNode:f}=c,m={},u;for(;c&&f===c.domNode;)(r?Ce:$e)(t[a],(S,E)=>{let h=c,g=!1;if(r){let P=Ke(S);g=Jo(h.tagAttrs,P,h.attrIndex)}!g&&!cn[S]?m[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],p=er(m,u)}else c.isNode&&(p=l);o=ne(p,c,s,o,n),s=s&&s.sibling}}function wt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===Z,l=e.isSvgPart||t.type==="svg";e.isSvgPart=l;let{nodeInstance:p}=e;p||(p=c?Mt(t,l):new De(t.template,l),e.nodeInstance=p),c||p.patchParts(n),t!==s?c?ne(t.props.children,p.parts[0],e.child,e,e):tr(p.parts,a,e):te(e),R(e,x),e.context=r}function qn(e,t){let{type:n}=t,o=Ct(t);return ht[e]?ht[e]:/^change(textarea|input)/i.test(e+o)&&!pn.test(n)?"input":e}function Lt(e){let{type:t}=e,n=Ct(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function Xn(e){let t=Lt(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function Qn(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function Zn(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&Te(()=>{r.handler.call(this,s)})},r.patched)}function eo(e,t,n,o){t=t||{},Ce(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),Ce(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Jn(e,t,n,o,r,s){if(t==="children"||t==="key"||t==="ref")return;if(Tn(t)){let i=!1;s&&(i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer");let c=hn(t,i);s&&(c=qn(c,e));let l=Zn(e,t,n);!s&&o===void 0?n?e.addEventListener(c,l,i):e.removeEventListener(c,l,i):o&&!n?e.removeEventListener(c,l,i):!o&&n&&e.addEventListener(c,l,i)}else if(t==="style")if(s){let{style:i}=e;eo(n||{},o,"",(c,l)=>{c[0]==="-"?i.setProperty(c,l):i[c]=typeof l=="number"&&dn.test(c)===!1?l+"px":l})}else e.style.cssText=n||"";else if(t==="dangerouslySetInnerHTML"){if(s){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}}else if(t in e&&!r){let i=s?Lt(e):null;i?Qn(i,e,t,n):e[t]=n==null?"":n}else{s&&(t=Ke(t));let i=t;r&&t.startsWith("xlink")&&(i=t.replace(/^xlink:?/,""));let c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(Et,i):e.setAttributeNS(Et,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function kt(e,t,n,o,r){r?(eo(t,n,null,(s,a,i)=>{Jn(e,s,a,i,o,r)}),Xn(e)):$e(t,(s,a)=>{Jn(e,s,a,void 0,o,!1)})}function lt(e){function t(n){return e(pe(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=sn,t}function to(){return{current:null}}function ae(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&(e.current=t)}function nr(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=ue(r,s);n&&a?a.nodeValue=t:ze(r,a,t)}function or(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function no(e,t){let{domNodes:n}=t;e[He]=n[n.length-1]}function oo(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function ro(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[He]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[He])}return t}function so(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=or(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:l}=i,p=ro(n),f=ue(r,p),m=l[0];m&&m.previousSibling!==p&&m!==f&&ze(r,f,l),oo(n,m)}no(r,i)}}function rr(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&io(e,t.domNodes[0]),n)so(e,n);else{let i=ro(r),c=ue(s,i),l=ze(s,c,t.fragment);a||(t.domNodes=l),oo(r,l[0]),no(s,t)}}function sr(e){let{node:t,nodeInstance:n,root:o,alternate:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d],c=s===y;if(a===D){c&&Object.assign(n,i.memoizedValues);let{props:f,state:m}=i.committedValues;i.lastSnapshot=L(n,"getSnapshotBeforeUpdate",[f,m]);let{ref:u}=t,T=r&&r.node.ref;u!==T&&(e.refCleanup?(e.refCleanup(),e.refCleanup=null):T&&ae(T,null),u&&(e.refCleanup=ae(u,n)))}else at(e,!1);let{transitionId:l}=Q(e,null),p=tt(s);i[p]=c?i[p].filter(f=>f.transitionId!==l):[],i.isDirty=!1,i.renderCount=0,o.postCommitEffects.push(e)}function ir(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d];if(a===D){let{props:c,state:l}=n,{committedValues:p,lastSnapshot:f}=i,{props:m,state:u}=p;m?L(n,"componentDidUpdate",[m,u,f]):L(n,"componentDidMount"),r&&(L(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),p.props=c,p.state=l,i.memoizedValues=null}else if(zn(e),s===y){let{syncHooks:c,deferredHooks:l}=n;n.deferredHooks=c,n.syncHooks=l}i.mounted=!0,i.fiber=e}function io(e,t){let{node:n,alternate:o,isSvgPart:r,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;kt(t,a,c,r,s);let l=o&&o.node.ref;i!==l&&(e.refCleanup?(e.refCleanup(),e.refCleanup=null):l&&ae(l,null),i&&(e.refCleanup=ae(i,t)))}function pt(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function ar(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Ht(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function cr(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&so(e,n),e.hasUncommittedEffect===x&&(Y(t)?nr(e):B(t)?rr(e):o?sr(e):t.nodeType===z&&io(e,e.part.domNode),e.hasUncommittedEffect=Ye),n&&ar(n)}function ao(e){let{updateType:t,wip:n,current:o}=e,r=ee(t),s=e[Re(t)],a=[],i=t===A?o:n;for(;i;){let{createdAt:c,node:l,child:p,hasUncommittedEffect:f}=i,m=i[r],u=c>s,T=f||m>s;if(f&&a.push(i),u&&(p&&p.parent!==i&&(p.parent=i),l&&_(l)&&(i.nodeInstance[d].fiber=i)),p&&T)i=p;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Bt(e,t){for(let o=0,r=t.length;o<r;o++)cr(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)ir(n[o]);Ht(e),pt(e),e.forcedUpdateWith=null}function Yt(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,l=e;for(;l=_n(l,e);){let p=xt(l.node,c);i.set(p,l),c++}e.child=null,t.forEach((p,f)=>{let m=xt(p,f),u=i.get(m);u&&i.delete(m);let T=o;o=ne(p,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,T,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(R(o,yt),f!==0&&R(T,yt))}),i.forEach(p=>{oe(p)}),R(e,x)}function co(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),lo(e,r)}function lo(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!qe(n))return;let s=B(n),{child:a}=e;if(a)for(co(a,o,s,t);a.sibling;)a=a.sibling,co(a,o,s,t);if(Y(n)&&t){let c=ue(o.parentNode,o.previousSibling);c&&Se(c);return}let{ref:i}=n;if(i&&(e.refCleanup?(e.refCleanup(),e.refCleanup=null):ae(i,null)),!!r)if(s){let{domNodes:c}=r;t&&Se(c)}else _(n)&&We(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?L(r,"componentWillUnmount"):at(e,!0))}function he(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&lo(n,!0)}),e.tearDownFibers=[]}var po=5,lr=30,Kt=16,pr=300,ur=600,fo=0;typeof requestAnimationFrame!="undefined"&&requestAnimationFrame(e=>{fo=e});var jt=()=>performance.now(),uo=()=>!0,mo=(e,t)=>(t=t||Kt,t-(e-fo)%t),$t,Pe;if(typeof MessageChannel!="undefined"){Pe=[];let e=new MessageChannel;e.port1.onmessage=function(){Pe.forEach(t=>t())},$t=e.port2}function dr(e){if(!$t||mo(jt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return Pe.push(e),$t.postMessage(null),()=>{let t=Pe.indexOf(e);t!==-1&&Pe.splice(t,1)}}function zt(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=dr(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===v?pr:ur,i=jt(),c=Math.min(lr,po+s),l=Math.floor(c/Kt)*Kt,p=()=>{let u=jt(),T=mo(u,l),S=i+Math.min(po,T);return u<S},m=s>a?uo:p;n(m)});return}n(uo)}function fr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!me(e).length||n[d].isDirty:!1}function mr(e){let{node:t,alternate:n}=e;if(!qe(t)){n&&oe(n);return}let o=fr(e);if(e.processedTime&&!o){te(e);return}Y(t)?Vn(e):Array.isArray(t)?Yt(e):B(t)?wt(e):_(t)?vt(e):t.nodeType===z&&R(e,x),e.processedTime=j()}function Tr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(_e(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var hr={fn:e=>{let{updateType:t,current:n}=e,o=Re(t);he(e);let r=ao(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),I(U,()=>Bt(e,r))}};function ut(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=Re(o),a=ee(o),i=n[s],c=!Fn(n);zt(n,c,l=>{for(;e!==t;)if(l()){mr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=xn(e,t,i,a)}else{ut(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,m=r.transitionState!==le,u=r.isRunningAsyncAction;f&&m&&!u&&(Cn(r),r.tryCount=0),!n.hasUncommittedEffect&&(_e(r)||u)&&Ht(n)}Tr(n)&&hr.fn(n),At(n)&&I(C,()=>{n.updateSource=C,ie(n)})})}function ie(e){let t=At(e);t&&(e.updateType=y,pt(e),e.currentTransition=t,t.tryCount+=1,e.wip=Qe(e.current,e.wip,e,e),ut(e.wip,e))}function dt(e){let{root:t,parent:n}=e;t.updateType=A,t.currentTransition=null,pt(t),ut(e,n)}function w(e){let t=M(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=re(),a=Rt(),i=Fe();if(k(t,i),s===C&&!o.includes(a)&&(a===v?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Ae(()=>{let c=r[s];r[s]=0;let l=s===C;if(!(l&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,l)ie(n);else{let p=n.updateType===A&&n.cancelSchedule;dt(s===U&&!p&&c===1?t:n.current)}})}var F=class{constructor(t){this.props=t,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}setState(t,n){ot(this,r=>({state:t,transitionId:r,callback:n}))&&w(this)}forceUpdate(t){let n=this[d],{fiber:o}=n;o&&(o.root.forcedUpdateWith=this,this[d].isDirty=!0,w(this),t&&t(this.state))}render(){}__render(){let t=this.render();return this[d].nodes=t,t}};F.prototype.isReactComponent=!0;var ce=class extends F{};ce.prototype.isPureReactComponent=!0;function b(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
|
|
4
4
|
|
|
5
|
-
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}let{ref:o}=t;n===void 0&&(n=t.key);let r=typeof e=="function"&&e.prototype&&e.prototype.isReactComponent,s=typeof e=="function"&&!r||e.__isForwardRef;t=pe(t,s);let a=Xe(t,null,n);if(a.type=e,typeof e=="string")return a.nodeType=Z,a.ref=o,a;a.nodeType=r?D:Nt,a.ref=r?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let i=typeof e=="function"&&e.defaultProps;if(i)for(n in i)t[n]===void 0&&(t[n]=i[n]);return a}function mo(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),b(e,t,t.key)}function at(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof Oe||t&&o instanceof W);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function Gn(e){let t=at(e.parent,!0);if(!(t&&t.nodeInstance instanceof W))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[Q(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function Gt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function Wt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Vt(e,t)),t.transitionState===q&&(s.suspender=null),s}function ho(e){e[d].isDirty=!0}function hr(e){let t=M(e.component);e.isUnresolved()&&t&&(ho(e.component),k(t,y))}var Vt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof W;let r=at(t.parent,!0);this.parentSuspenseManager=r&&Wt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=N();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof W?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=Gt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(Gt(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=Gt(this),{suspender:n}=this;if(!t)return!n;if(We(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:p}=i;return p?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(l=>{l.handleSuspense()});return}this.suspender=null,ho(this.component);let i=o.transitionState===K,c=a.filter(l=>l.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=ye);let p=()=>{let l=n;M(n)||(l=this.fiber.root.wip.nodeInstance),w(l)};setTimeout(()=>{i||!a.includes(n)?nt(p):se(o,p)},En()%fn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&hr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=Ge;for(let c=0,p=n.length;c<p;c++)i=s(i,n[c])}else if(o==="backwards"){let i=Ge;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function To(e){let t=N(),n=Q(t,v);return n.transitionState===ye&&!n.pendingSuspense.includes(e)&&(n=v),n}var W=class extends F{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},Oe=class extends F{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=To(this),r=Wt(n,o);Ne(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=ce),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=To(this),r=N(),s=Wt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},Eo=e=>{let t,n=ct((o,r)=>{let s=t.read();return b(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=gn(e()))},n};function yo(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Ue=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=yo(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=yo(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var go=new WeakMap;function Er(e,t){let n=Xe(null,t,void 0);return n.nodeType=At,n.template=e,n}function Co(e,...t){return n=>{let o=go.get(e);return o||(o=new Ue(e,n),go.set(e,o)),Er(o,t)}}function qt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,k(o,A);else{let r=b(ue,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Ze(t),o=de(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return me(()=>{n.updateSource=re(),ut(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function yr(e,t){return e&&(e.portalContainer=t),e}var So=yr;function gr(e){let{__rootFiber:t}=e;return t?(oe(t.current),Te(t),e.__rootFiber=void 0,!0):!1}var Ao=gr;var Cr=/<([^\s"'=<>/]+)/g,No=/\s*([^\s"'=<>/]*)/g,Sr=/[^"]*/g,Ar=/[^"]*/g,Nr=/<\/([^\s"'=<>]+)>/g,_r=/[^<]*/g,xr=/<!--.*?-->/g,Rr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Fr(e){let t=[],n=!1,o,r={},s=(p,l)=>{p.children?Array.isArray(p.children)?p.children.push(l):p.children=[p.children,l]:p.children=l},a=p=>{let l=t[t.length-1];s(l?l.props:r,p)},i=()=>{n=!1,a(o),Rr.includes(o.type)||t.push(o)},c=p=>{let l={$$BrahmosDynamicPart:p};o?n?o.props[`$$BrahmosDynamicPart${p}`]=l:s(o.props,l):s(r,l)};return e.forEach((p,l)=>{let f=p.length,T,u=0,h=E=>{E.lastIndex=u;let m=E.exec(p);return m&&(u=E.lastIndex),m},S=E=>{E.lastIndex=u+2;let m=E.exec(p);return u=E.lastIndex+1,m[0]};for(;u<f;){if(p[u]==="<"&&p[u+1]==="/"){t.pop(),h(Nr);continue}else if(p[u]==="<"&&p[u+1]==="!"){h(xr);continue}else if(p[u]==="<"){T=h(Cr)[1],o={$$typeof:ke,type:T,nodeType:Z,props:{}},n=!0;continue}else if(p[u]===" "&&n){No.lastIndex=u;let E=h(No),m,g;if(E){m=E[1],p[u]!=="="?g=!0:p[u+1]==='"'?g=S(Sr):p[u+1]==="'"&&(g=S(Ar)),m&&(o.props[m]=g);continue}}else if(p[u]===">"&&n)i();else if(!n){let E=h(_r);a(E[0]);continue}u++}c(l)}),r.children}var{hasOwnProperty:Ir}=Object.prototype;function _o(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(Ir.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=_o(e[o],t)}return n}function ve(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Fr(o)),_o(n.staticTree,t)}function br(e){return B(e)&&!e.template.strings.some(Boolean)}function xo(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(xo(n)):n&&J(n)?t.push(ve(n)):t.push(n)}),t}function Me(e){if(X(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return br(t)&&(t=t.values),J(t)&&(t=ve(t)),Array.isArray(t)||(t=[t]),t=xo(t),e[d]=t,t}function Dr(e,t){let n=Me(e);return n?n.map(t):e}function Pr(e){return(Me(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Or(e,t){(Me(e)||[]).forEach(t)}function Ur(e){return Me(e)&&e.length===1}function vr(e){let t=Me(e);return t?t.length:0}var Ro={map:Dr,toArray:Pr,forEach:Or,only:Ur,count:vr};function Fo(e){return e&&(_(e)||G(e))}function Xt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?$(arguments,2):arguments[2];t.children=o}if(e){if(J(e)){let o=ve(e);return Xt(o,t)}else if(_(e)||G(e)){let o=e.type,r=typeof o=="function"&&o.prototype&&o.prototype.isReactComponent,s=typeof o=="function"&&!r||o.__isForwardRef;return{...e,props:{...e.props,...pe(t,s)},ref:s?null:t.ref}}}return e}function Qt(e,t){class n extends ae{render(){return b(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function Io(e){let t=e[Be];return t||(t=Ze(e),e[Be]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,k(o,y);else{let s=b(ue,{children:n});o=de(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=v;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),I(C,()=>{t.updateSource=C,ie(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),Te(t),t.current=null),delete e[Be]}}}function Zt(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function bo(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return Zt(e);throw new Error("Unsupported type passed to use()")}function Mr(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function dt(e){Do(e)}dt.create=Mr;dt.sync=e=>{Do(e,{sync:!0})};function Do(e,t={}){Fe(()=>{var r;let n=N(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=M(o);if(a){let i=t.sync?U:C;I(i,()=>{o[d].isDirty=!0,R(a,x),w(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}Zt(e)})}var Po=e=>e.children,wr=Po,Lr=Po;function kr(e){e()}function Hr(e){e.__isReactCompat=!0}var Br=b,Yr=b,Kr=b;var jr={setCurrentComponentFiber:_e,functionalComponentInstance:Ie};var _c=Jt;export{Ro as Children,F as Component,Lr as Fragment,ae as PureComponent,wr as StrictMode,Oe as Suspense,W as SuspenseList,jr as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xt as cloneElement,Ft as createContext,mo as createElement,So as createPortal,eo as createRef,Io as createRoot,_c as default,ct as forwardRef,Co as html,Fo as isValidElement,Br as jsx,Kr as jsxDev,Yr as jsxs,Eo as lazy,Qt as memo,Hr as reacty,qt as render,Fe as startTransition,Ao as unmountComponentAtNode,kr as unstable_batchedUpdates,nt as unstable_deferredUpdates,me as unstable_syncUpdates,bo as use,kn as useCallback,Yn as useContext,Bn as useDebugValue,jn as useDeferredValue,Pt as useEffect,Ot as useLayoutEffect,Dt as useMemo,Ln as useReducer,wn as useRef,bt as useState,Kn as useTransition,dt as watch};
|
|
5
|
+
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}let{ref:o}=t;n===void 0&&(n=t.key);let r=typeof e=="function"&&e.prototype&&e.prototype.isReactComponent,s=typeof e=="function"&&!r||e.__isForwardRef;t=pe(t,s);let a=Xe(t,null,n);if(a.type=e,typeof e=="string")return a.nodeType=Z,a.ref=o,a;a.nodeType=r?D:_t,a.ref=r?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let i=typeof e=="function"&&e.defaultProps;if(i)for(n in i)t[n]===void 0&&(t[n]=i[n]);return a}function To(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),b(e,t,t.key)}function ct(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof Oe||t&&o instanceof W);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function Wn(e){let t=ct(e.parent,!0);if(!(t&&t.nodeInstance instanceof W))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[Q(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function Gt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function Wt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Vt(e,t)),t.transitionState===q&&(s.suspender=null),s}function Eo(e){e[d].isDirty=!0}function Er(e){let t=M(e.component);e.isUnresolved()&&t&&(Eo(e.component),k(t,y))}var Vt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof W;let r=ct(t.parent,!0);this.parentSuspenseManager=r&&Wt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=N();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof W?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=Gt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(Gt(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=Gt(this),{suspender:n}=this;if(!t)return!n;if(We(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:l}=i;return l?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(p=>{p.handleSuspense()});return}this.suspender=null,Eo(this.component);let i=o.transitionState===K,c=a.filter(p=>p.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=ge);let l=()=>{let p=n;M(n)||(p=this.fiber.root.wip.nodeInstance),w(p)};setTimeout(()=>{i||!a.includes(n)?nt(l):se(o,l)},En()%fn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&Er(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=Ge;for(let c=0,l=n.length;c<l;c++)i=s(i,n[c])}else if(o==="backwards"){let i=Ge;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function ho(e){let t=N(),n=Q(t,v);return n.transitionState===ge&&!n.pendingSuspense.includes(e)&&(n=v),n}var W=class extends F{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},Oe=class extends F{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=ho(this),r=Wt(n,o);_e(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=le),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=ho(this),r=N(),s=Wt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},yo=e=>{let t,n=lt((o,r)=>{let s=t.read();return b(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=gn(e()))},n};function go(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Ue=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=go(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=go(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var Co=new WeakMap;function yr(e,t){let n=Xe(null,t,void 0);return n.nodeType=Nt,n.template=e,n}function So(e,...t){return n=>{let o=Co.get(e);return o||(o=new Ue(e,n),Co.set(e,o)),yr(o,t)}}function qt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,k(o,A);else{let r=b(de,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Ze(t),o=fe(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return Te(()=>{n.updateSource=re(),dt(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function gr(e,t){return e&&(e.portalContainer=t),e}var Ao=gr;function Cr(e){let{__rootFiber:t}=e;return t?(oe(t.current),he(t),e.__rootFiber=void 0,!0):!1}var No=Cr;var Sr=/<([^\s"'=<>/]+)/g,_o=/\s*([^\s"'=<>/]*)/g,Ar=/[^"]*/g,Nr=/[^"]*/g,_r=/<\/([^\s"'=<>]+)>/g,xr=/[^<]*/g,Rr=/<!--.*?-->/g,Fr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Ir(e){let t=[],n=!1,o,r={},s=(l,p)=>{l.children?Array.isArray(l.children)?l.children.push(p):l.children=[l.children,p]:l.children=p},a=l=>{let p=t[t.length-1];s(p?p.props:r,l)},i=()=>{n=!1,a(o),Fr.includes(o.type)||t.push(o)},c=l=>{let p={$$BrahmosDynamicPart:l};o?n?o.props[`$$BrahmosDynamicPart${l}`]=p:s(o.props,p):s(r,p)};return e.forEach((l,p)=>{let f=l.length,m,u=0,T=E=>{E.lastIndex=u;let h=E.exec(l);return h&&(u=E.lastIndex),h},S=E=>{E.lastIndex=u+2;let h=E.exec(l);return u=E.lastIndex+1,h[0]};for(;u<f;){if(l[u]==="<"&&l[u+1]==="/"){t.pop(),T(_r);continue}else if(l[u]==="<"&&l[u+1]==="!"){T(Rr);continue}else if(l[u]==="<"){m=T(Sr)[1],o={$$typeof:ke,type:m,nodeType:Z,props:{}},n=!0;continue}else if(l[u]===" "&&n){_o.lastIndex=u;let E=T(_o),h,g;if(E){h=E[1],l[u]!=="="?g=!0:l[u+1]==='"'?g=S(Ar):l[u+1]==="'"&&(g=S(Nr)),h&&(o.props[h]=g);continue}}else if(l[u]===">"&&n)i();else if(!n){let E=T(xr);a(E[0]);continue}u++}c(p)}),r.children}var{hasOwnProperty:br}=Object.prototype;function xo(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(br.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=xo(e[o],t)}return n}function ve(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Ir(o)),xo(n.staticTree,t)}function Dr(e){return B(e)&&!e.template.strings.some(Boolean)}function Ro(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(Ro(n)):n&&J(n)?t.push(ve(n)):t.push(n)}),t}function Me(e){if(X(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return Dr(t)&&(t=t.values),J(t)&&(t=ve(t)),Array.isArray(t)||(t=[t]),t=Ro(t),e[d]=t,t}function Pr(e,t){let n=Me(e);return n?n.map(t):e}function Or(e){return(Me(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Ur(e,t){(Me(e)||[]).forEach(t)}function vr(e){return Me(e)&&e.length===1}function Mr(e){let t=Me(e);return t?t.length:0}var Fo={map:Pr,toArray:Or,forEach:Ur,only:vr,count:Mr};function Io(e){return e&&(_(e)||G(e))}function Xt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?$(arguments,2):arguments[2];t.children=o}if(e){if(J(e)){let o=ve(e);return Xt(o,t)}else if(_(e)||G(e)){let o=e.type,r=typeof o=="function"&&o.prototype&&o.prototype.isReactComponent,s=typeof o=="function"&&!r||o.__isForwardRef;return{...e,props:{...e.props,...pe(t,s)},ref:s?null:t.ref}}}return e}function Qt(e,t){class n extends ce{render(){return b(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function bo(e){let t=e[Be];return t||(t=Ze(e),e[Be]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,k(o,y);else{let s=b(de,{children:n});o=fe(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=v;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),I(C,()=>{t.updateSource=C,ie(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),he(t),t.current=null),delete e[Be]}}}function Zt(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function Do(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return Zt(e);throw new Error("Unsupported type passed to use()")}function wr(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function ft(e){Po(e)}ft.create=wr;ft.sync=e=>{Po(e,{sync:!0})};function Po(e,t={}){Ie(()=>{var r;let n=N(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=M(o);if(a){let i=t.sync?U:C;I(i,()=>{o[d].isDirty=!0,R(a,x),w(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}Zt(e)})}var Oo=e=>e.children,Lr=Oo,kr=Oo;function Hr(e){e()}function Br(...e){e.forEach(t=>{t.__isReactCompat=!0})}var Yr=b,Kr=b,jr=b;var $r={setCurrentComponentFiber:xe,functionalComponentInstance:be};var xc=Jt;export{Fo as Children,F as Component,kr as Fragment,ce as PureComponent,Lr as StrictMode,Oe as Suspense,W as SuspenseList,$r as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xt as cloneElement,It as createContext,To as createElement,Ao as createPortal,to as createRef,bo as createRoot,xc as default,lt as forwardRef,So as html,Io as isValidElement,Yr as jsx,jr as jsxDev,Kr as jsxs,yo as lazy,Qt as memo,Br as reacty,qt as render,Ie as startTransition,No as unmountComponentAtNode,Hr as unstable_batchedUpdates,nt as unstable_deferredUpdates,Te as unstable_syncUpdates,Do as use,kn as useCallback,Kn as useContext,Yn as useDebugValue,$n as useDeferredValue,Ot as useEffect,Bn as useImperativeHandle,it as useLayoutEffect,Pt as useMemo,Ln as useReducer,wn as useRef,Dt as useState,jn as useTransition,ft as watch};
|