@miguelduran14/knowflow 0.1.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/LICENSE +201 -0
- package/README.md +182 -0
- package/dist/advisories.d.ts +16 -0
- package/dist/advisories.js +364 -0
- package/dist/advisories.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +104 -0
- package/dist/cli.js.map +1 -0
- package/dist/copy-resolver.d.ts +22 -0
- package/dist/copy-resolver.js +74 -0
- package/dist/copy-resolver.js.map +1 -0
- package/dist/dataflow.d.ts +2 -0
- package/dist/dataflow.js +88 -0
- package/dist/dataflow.js.map +1 -0
- package/dist/dossier.d.ts +20 -0
- package/dist/dossier.js +331 -0
- package/dist/dossier.js.map +1 -0
- package/dist/explain/claude.d.ts +14 -0
- package/dist/explain/claude.js +91 -0
- package/dist/explain/claude.js.map +1 -0
- package/dist/explain/explain.d.ts +72 -0
- package/dist/explain/explain.js +126 -0
- package/dist/explain/explain.js.map +1 -0
- package/dist/explain/facts.d.ts +23 -0
- package/dist/explain/facts.js +266 -0
- package/dist/explain/facts.js.map +1 -0
- package/dist/explain/fake.d.ts +14 -0
- package/dist/explain/fake.js +27 -0
- package/dist/explain/fake.js.map +1 -0
- package/dist/explain/openai.d.ts +42 -0
- package/dist/explain/openai.js +102 -0
- package/dist/explain/openai.js.map +1 -0
- package/dist/explain/provider.d.ts +19 -0
- package/dist/explain/provider.js +2 -0
- package/dist/explain/provider.js.map +1 -0
- package/dist/explain/sse.d.ts +10 -0
- package/dist/explain/sse.js +44 -0
- package/dist/explain/sse.js.map +1 -0
- package/dist/flow-parser.d.ts +10 -0
- package/dist/flow-parser.js +503 -0
- package/dist/flow-parser.js.map +1 -0
- package/dist/glossary.d.ts +54 -0
- package/dist/glossary.js +340 -0
- package/dist/glossary.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/inventory.d.ts +7 -0
- package/dist/inventory.js +453 -0
- package/dist/inventory.js.map +1 -0
- package/dist/lines.d.ts +15 -0
- package/dist/lines.js +53 -0
- package/dist/lines.js.map +1 -0
- package/dist/linker.d.ts +17 -0
- package/dist/linker.js +56 -0
- package/dist/linker.js.map +1 -0
- package/dist/mermaid.d.ts +27 -0
- package/dist/mermaid.js +133 -0
- package/dist/mermaid.js.map +1 -0
- package/dist/parser.d.ts +19 -0
- package/dist/parser.js +442 -0
- package/dist/parser.js.map +1 -0
- package/dist/pic.d.ts +29 -0
- package/dist/pic.js +197 -0
- package/dist/pic.js.map +1 -0
- package/dist/references.d.ts +24 -0
- package/dist/references.js +906 -0
- package/dist/references.js.map +1 -0
- package/dist/source-lines.d.ts +56 -0
- package/dist/source-lines.js +114 -0
- package/dist/source-lines.js.map +1 -0
- package/dist/types.d.ts +499 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/gui/dist/assets/ChainCanvas-C37KyhnE.js +1 -0
- package/gui/dist/assets/FlowCanvas-BRklWBCp.js +3 -0
- package/gui/dist/assets/RobotProfessor-BtTDTBDq.js +4220 -0
- package/gui/dist/assets/fira-code-cyrillic-400-normal-UC0NFL4U.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-400-normal-dc1q3VD7.woff +0 -0
- package/gui/dist/assets/fira-code-cyrillic-500-normal-Bu7VCL72.woff +0 -0
- package/gui/dist/assets/fira-code-cyrillic-500-normal-CX35h3Mg.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-600-normal-BD56RyRT.woff +0 -0
- package/gui/dist/assets/fira-code-cyrillic-600-normal-CPRdbepc.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-400-normal-Buh61xzB.woff +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-400-normal-txZ9Fk_1.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-500-normal-CYRspHgm.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-500-normal-CwtLmSFD.woff +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-600-normal-B9wE0zmr.woff2 +0 -0
- package/gui/dist/assets/fira-code-cyrillic-ext-600-normal-DldcyWhZ.woff +0 -0
- package/gui/dist/assets/fira-code-greek-400-normal-B2Gh_Y8s.woff2 +0 -0
- package/gui/dist/assets/fira-code-greek-400-normal-DobhaxvF.woff +0 -0
- package/gui/dist/assets/fira-code-greek-500-normal-CVO0IRNt.woff2 +0 -0
- package/gui/dist/assets/fira-code-greek-500-normal-DEXIWiey.woff +0 -0
- package/gui/dist/assets/fira-code-greek-600-normal-D_h3X2X5.woff +0 -0
- package/gui/dist/assets/fira-code-greek-600-normal-Dxp52_By.woff2 +0 -0
- package/gui/dist/assets/fira-code-greek-ext-400-normal-DR7mBgIM.woff2 +0 -0
- package/gui/dist/assets/fira-code-greek-ext-400-normal-DSPUheWg.woff +0 -0
- package/gui/dist/assets/fira-code-greek-ext-500-normal-BO3iq16n.woff2 +0 -0
- package/gui/dist/assets/fira-code-greek-ext-500-normal-CMiNLXER.woff +0 -0
- package/gui/dist/assets/fira-code-greek-ext-600-normal-C-cQDoOk.woff +0 -0
- package/gui/dist/assets/fira-code-greek-ext-600-normal-DtBpFRLc.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-400-normal-C-QZfXAs.woff +0 -0
- package/gui/dist/assets/fira-code-latin-400-normal-DGosTW8U.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-500-normal-B6gioGu8.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-500-normal-aMLC2AMm.woff +0 -0
- package/gui/dist/assets/fira-code-latin-600-normal-BmSSHshu.woff +0 -0
- package/gui/dist/assets/fira-code-latin-600-normal-CvYZpPHg.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-ext-400-normal-DG73JjOf.woff +0 -0
- package/gui/dist/assets/fira-code-latin-ext-400-normal-KSMg0QLl.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-ext-500-normal-CaANqXjI.woff +0 -0
- package/gui/dist/assets/fira-code-latin-ext-500-normal-Crd9e_oI.woff2 +0 -0
- package/gui/dist/assets/fira-code-latin-ext-600-normal-0PFQL1eg.woff +0 -0
- package/gui/dist/assets/fira-code-latin-ext-600-normal-Cb7jxoAi.woff2 +0 -0
- package/gui/dist/assets/fira-code-symbols2-400-normal-_QEZCEwe.woff +0 -0
- package/gui/dist/assets/fira-code-symbols2-500-normal-DwsgbIjQ.woff +0 -0
- package/gui/dist/assets/fira-code-symbols2-600-normal-Dvq6IQE5.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-300-normal-BO7tmGom.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-300-normal-BtNmWoqn.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-400-normal-CKu2TFQr.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-400-normal-D9eUeF-O.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-500-normal-CXfldnQ8.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-500-normal-Daski1k2.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-600-normal-CJ5P9t7t.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-600-normal-JSBvCpTs.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-700-normal-Bl-HczEO.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-700-normal-KyW5QH4H.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-300-normal-BRn8Tsce.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-300-normal-DOtRq9zH.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-400-normal-Cycyekte.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-400-normal-Dd5dApAy.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-500-normal-Cixivk4R.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-500-normal-Dkk5LlrU.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-600-normal-BKgjRriM.woff +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-600-normal-CE6oUZE1.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-700-normal-BfO9TR-w.woff2 +0 -0
- package/gui/dist/assets/fira-sans-cyrillic-ext-700-normal-Gcpdxicj.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-300-normal-D3JfF3y9.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-300-normal-DSgcXl_1.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-400-normal-BFCFncbp.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-400-normal-DQ8sF22y.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-500-normal-C9KT8sAy.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-500-normal-Cy-TUuxE.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-600-normal-BlqpLOpF.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-600-normal-DfHu91YF.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-700-normal-BVfcrbV7.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-700-normal-CJu31rC4.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-300-normal-CodlqOxk.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-300-normal-DVDwbKuK.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-400-normal-ByG7UNQ2.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-400-normal-ClCfNE6D.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-500-normal-Bem4H9fH.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-500-normal-nq-cjB3m.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-600-normal-DPxZoeHL.woff +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-600-normal-fS0evUH3.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-700-normal-C1m6bE4Q.woff2 +0 -0
- package/gui/dist/assets/fira-sans-greek-ext-700-normal-C8J5qYMq.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-300-normal-B2LrTgQS.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-300-normal-Dwkm-oZ7.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-400-normal-66xCkunx.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-400-normal-a0AnQzuD.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-500-normal-Bkfzcwmr.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-500-normal-Bvbxc8ch.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-600-normal-CXKlxLG9.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-600-normal-DtSgd811.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-700-normal-CRhwpWTq.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-700-normal-DgqLm3Fi.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-300-normal-CAROBYR0.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-300-normal-GNF4Ac3G.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-400-normal-BCUwhuGB.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-400-normal-BLG_mAEf.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-500-normal-CFRf4jcC.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-500-normal-OO1QnNpY.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-600-normal-DLMQsaV4.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-600-normal-DTQBTt1m.woff2 +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-700-normal-cfTxGFzJ.woff +0 -0
- package/gui/dist/assets/fira-sans-latin-ext-700-normal-g2Yrd4J5.woff2 +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-300-normal-BO7He0nF.woff2 +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-300-normal-CeyOCBN-.woff +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-400-normal-DUVG35gE.woff +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-400-normal-ljDTQFsx.woff2 +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-500-normal-ChEXCnJy.woff2 +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-500-normal-UV7M6ot_.woff +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-600-normal-Bxjaclsw.woff +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-600-normal-Dh2KAvU8.woff2 +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-700-normal-DFi88MGY.woff +0 -0
- package/gui/dist/assets/fira-sans-vietnamese-700-normal-j5oLGLJY.woff2 +0 -0
- package/gui/dist/assets/index-CwQzep9r.js +413 -0
- package/gui/dist/assets/index-DUFjnEFT.css +1 -0
- package/gui/dist/assets/theme-BnuhLJ6X.css +1 -0
- package/gui/dist/assets/theme-G7EkTZY2.js +30 -0
- package/gui/dist/index.html +13 -0
- package/package.json +62 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FlowCanvas-BRklWBCp.js","assets/theme-G7EkTZY2.js","assets/theme-BnuhLJ6X.css","assets/ChainCanvas-C37KyhnE.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var RT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _g(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Eu={exports:{}},zs={};var kh;function Hg(){if(kh)return zs;kh=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:n,type:o,key:d,ref:c!==void 0?c:null,props:f}}return zs.Fragment=i,zs.jsx=l,zs.jsxs=l,zs}var Yh;function Zg(){return Yh||(Yh=1,Eu.exports=Hg()),Eu.exports}var E=Zg(),yu={exports:{}},Ps={},vu={exports:{}},Au={};var Xh;function zg(){return Xh||(Xh=1,(function(n){function i(I,ee){var le=I.length;I.push(ee);e:for(;0<le;){var q=le-1>>>1,ue=I[q];if(0<c(ue,ee))I[q]=ee,I[le]=ue,le=q;else break e}}function l(I){return I.length===0?null:I[0]}function o(I){if(I.length===0)return null;var ee=I[0],le=I.pop();if(le!==ee){I[0]=le;e:for(var q=0,ue=I.length,b=ue>>>1;q<b;){var L=2*(q+1)-1,ie=I[L],te=L+1,pe=I[te];if(0>c(ie,le))te<ue&&0>c(pe,ie)?(I[q]=pe,I[te]=le,q=te):(I[q]=ie,I[L]=le,q=L);else if(te<ue&&0>c(pe,le))I[q]=pe,I[te]=le,q=te;else break e}}return ee}function c(I,ee){var le=I.sortIndex-ee.sortIndex;return le!==0?le:I.id-ee.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],A=1,v=null,T=3,C=!1,O=!1,D=!1,z=!1,_=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function P(I){for(var ee=l(p);ee!==null;){if(ee.callback===null)o(p);else if(ee.startTime<=I)o(p),ee.sortIndex=ee.expirationTime,i(g,ee);else break;ee=l(p)}}function Q(I){if(D=!1,P(I),!O)if(l(g)!==null)O=!0,se||(se=!0,Ee());else{var ee=l(p);ee!==null&&Re(Q,ee.startTime-I)}}var se=!1,W=-1,$=5,fe=-1;function B(){return z?!0:!(n.unstable_now()-fe<$)}function ne(){if(z=!1,se){var I=n.unstable_now();fe=I;var ee=!0;try{e:{O=!1,D&&(D=!1,Y(W),W=-1),C=!0;var le=T;try{t:{for(P(I),v=l(g);v!==null&&!(v.expirationTime>I&&B());){var q=v.callback;if(typeof q=="function"){v.callback=null,T=v.priorityLevel;var ue=q(v.expirationTime<=I);if(I=n.unstable_now(),typeof ue=="function"){v.callback=ue,P(I),ee=!0;break t}v===l(g)&&o(g),P(I)}else o(g);v=l(g)}if(v!==null)ee=!0;else{var b=l(p);b!==null&&Re(Q,b.startTime-I),ee=!1}}break e}finally{v=null,T=le,C=!1}ee=void 0}}finally{ee?Ee():se=!1}}}var Ee;if(typeof U=="function")Ee=function(){U(ne)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,be=Ce.port2;Ce.port1.onmessage=ne,Ee=function(){be.postMessage(null)}}else Ee=function(){_(ne,0)};function Re(I,ee){W=_(function(){I(n.unstable_now())},ee)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(I){I.callback=null},n.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(I){switch(T){case 1:case 2:case 3:var ee=3;break;default:ee=T}var le=T;T=ee;try{return I()}finally{T=le}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(I,ee){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var le=T;T=I;try{return ee()}finally{T=le}},n.unstable_scheduleCallback=function(I,ee,le){var q=n.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?q+le:q):le=q,I){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=le+ue,I={id:A++,callback:ee,priorityLevel:I,startTime:le,expirationTime:ue,sortIndex:-1},le>q?(I.sortIndex=le,i(p,I),l(g)===null&&I===l(p)&&(D?(Y(W),W=-1):D=!0,Re(Q,le-q))):(I.sortIndex=ue,i(g,I),O||C||(O=!0,se||(se=!0,Ee()))),I},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(I){var ee=T;return function(){var le=T;T=ee;try{return I.apply(this,arguments)}finally{T=le}}}})(Au)),Au}var Kh;function Pg(){return Kh||(Kh=1,vu.exports=zg()),vu.exports}var Su={exports:{}},Te={};var Qh;function Bg(){if(Qh)return Te;Qh=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),T=Symbol.iterator;function C(b){return b===null||typeof b!="object"?null:(b=T&&b[T]||b["@@iterator"],typeof b=="function"?b:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,z={};function _(b,L,ie){this.props=b,this.context=L,this.refs=z,this.updater=ie||O}_.prototype.isReactComponent={},_.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,L,"setState")},_.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Y(){}Y.prototype=_.prototype;function U(b,L,ie){this.props=b,this.context=L,this.refs=z,this.updater=ie||O}var P=U.prototype=new Y;P.constructor=U,D(P,_.prototype),P.isPureReactComponent=!0;var Q=Array.isArray;function se(){}var W={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function fe(b,L,ie){var te=ie.ref;return{$$typeof:n,type:b,key:L,ref:te!==void 0?te:null,props:ie}}function B(b,L){return fe(b.type,L,b.props)}function ne(b){return typeof b=="object"&&b!==null&&b.$$typeof===n}function Ee(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(ie){return L[ie]})}var Ce=/\/+/g;function be(b,L){return typeof b=="object"&&b!==null&&b.key!=null?Ee(""+b.key):L.toString(36)}function Re(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(se,se):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function I(b,L,ie,te,pe){var ge=typeof b;(ge==="undefined"||ge==="boolean")&&(b=null);var Se=!1;if(b===null)Se=!0;else switch(ge){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(b.$$typeof){case n:case i:Se=!0;break;case A:return Se=b._init,I(Se(b._payload),L,ie,te,pe)}}if(Se)return pe=pe(b),Se=te===""?"."+be(b,0):te,Q(pe)?(ie="",Se!=null&&(ie=Se.replace(Ce,"$&/")+"/"),I(pe,L,ie,"",function(pn){return pn})):pe!=null&&(ne(pe)&&(pe=B(pe,ie+(pe.key==null||b&&b.key===pe.key?"":(""+pe.key).replace(Ce,"$&/")+"/")+Se)),L.push(pe)),1;Se=0;var Ke=te===""?".":te+":";if(Q(b))for(var ze=0;ze<b.length;ze++)te=b[ze],ge=Ke+be(te,ze),Se+=I(te,L,ie,ge,pe);else if(ze=C(b),typeof ze=="function")for(b=ze.call(b),ze=0;!(te=b.next()).done;)te=te.value,ge=Ke+be(te,ze++),Se+=I(te,L,ie,ge,pe);else if(ge==="object"){if(typeof b.then=="function")return I(Re(b),L,ie,te,pe);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Se}function ee(b,L,ie){if(b==null)return b;var te=[],pe=0;return I(b,te,"","",function(ge){return L.call(ie,ge,pe++)}),te}function le(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(ie){(b._status===0||b._status===-1)&&(b._status=1,b._result=ie)},function(ie){(b._status===0||b._status===-1)&&(b._status=2,b._result=ie)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var q=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},ue={map:ee,forEach:function(b,L,ie){ee(b,function(){L.apply(this,arguments)},ie)},count:function(b){var L=0;return ee(b,function(){L++}),L},toArray:function(b){return ee(b,function(L){return L})||[]},only:function(b){if(!ne(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return Te.Activity=v,Te.Children=ue,Te.Component=_,Te.Fragment=l,Te.Profiler=c,Te.PureComponent=U,Te.StrictMode=o,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return W.H.useMemoCache(b)}},Te.cache=function(b){return function(){return b.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(b,L,ie){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var te=D({},b.props),pe=b.key;if(L!=null)for(ge in L.key!==void 0&&(pe=""+L.key),L)!$.call(L,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&L.ref===void 0||(te[ge]=L[ge]);var ge=arguments.length-2;if(ge===1)te.children=ie;else if(1<ge){for(var Se=Array(ge),Ke=0;Ke<ge;Ke++)Se[Ke]=arguments[Ke+2];te.children=Se}return fe(b.type,pe,te)},Te.createContext=function(b){return b={$$typeof:d,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:f,_context:b},b},Te.createElement=function(b,L,ie){var te,pe={},ge=null;if(L!=null)for(te in L.key!==void 0&&(ge=""+L.key),L)$.call(L,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(pe[te]=L[te]);var Se=arguments.length-2;if(Se===1)pe.children=ie;else if(1<Se){for(var Ke=Array(Se),ze=0;ze<Se;ze++)Ke[ze]=arguments[ze+2];pe.children=Ke}if(b&&b.defaultProps)for(te in Se=b.defaultProps,Se)pe[te]===void 0&&(pe[te]=Se[te]);return fe(b,ge,pe)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(b){return{$$typeof:m,render:b}},Te.isValidElement=ne,Te.lazy=function(b){return{$$typeof:A,_payload:{_status:-1,_result:b},_init:le}},Te.memo=function(b,L){return{$$typeof:p,type:b,compare:L===void 0?null:L}},Te.startTransition=function(b){var L=W.T,ie={};W.T=ie;try{var te=b(),pe=W.S;pe!==null&&pe(ie,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(se,q)}catch(ge){q(ge)}finally{L!==null&&ie.types!==null&&(L.types=ie.types),W.T=L}},Te.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},Te.use=function(b){return W.H.use(b)},Te.useActionState=function(b,L,ie){return W.H.useActionState(b,L,ie)},Te.useCallback=function(b,L){return W.H.useCallback(b,L)},Te.useContext=function(b){return W.H.useContext(b)},Te.useDebugValue=function(){},Te.useDeferredValue=function(b,L){return W.H.useDeferredValue(b,L)},Te.useEffect=function(b,L){return W.H.useEffect(b,L)},Te.useEffectEvent=function(b){return W.H.useEffectEvent(b)},Te.useId=function(){return W.H.useId()},Te.useImperativeHandle=function(b,L,ie){return W.H.useImperativeHandle(b,L,ie)},Te.useInsertionEffect=function(b,L){return W.H.useInsertionEffect(b,L)},Te.useLayoutEffect=function(b,L){return W.H.useLayoutEffect(b,L)},Te.useMemo=function(b,L){return W.H.useMemo(b,L)},Te.useOptimistic=function(b,L){return W.H.useOptimistic(b,L)},Te.useReducer=function(b,L,ie){return W.H.useReducer(b,L,ie)},Te.useRef=function(b){return W.H.useRef(b)},Te.useState=function(b){return W.H.useState(b)},Te.useSyncExternalStore=function(b,L,ie){return W.H.useSyncExternalStore(b,L,ie)},Te.useTransition=function(){return W.H.useTransition()},Te.version="19.2.8",Te}var Wh;function h0(){return Wh||(Wh=1,Su.exports=Bg()),Su.exports}var Tu={exports:{}},bt={};var Jh;function Gg(){if(Jh)return bt;Jh=1;var n=h0();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)p+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,A){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:A}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,bt.createPortal=function(g,p){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,A)},bt.flushSync=function(g){var p=d.T,A=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=p,o.p=A,o.d.f()}},bt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},bt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},bt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var A=p.as,v=m(A,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;A==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:T,fetchPriority:C}):A==="script"&&o.d.X(g,{crossOrigin:v,integrity:T,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},bt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var A=m(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},bt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var A=p.as,v=m(A,p.crossOrigin);o.d.L(g,A,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},bt.preloadModule=function(g,p){if(typeof g=="string")if(p){var A=m(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},bt.requestFormReset=function(g){o.d.r(g)},bt.unstable_batchedUpdates=function(g,p){return g(p)},bt.useFormState=function(g,p,A){return d.H.useFormState(g,p,A)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.8",bt}var em;function Fg(){if(em)return Tu.exports;em=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Tu.exports=Gg(),Tu.exports}var tm;function $g(){if(tm)return Ps;tm=1;var n=Pg(),i=h0(),l=Fg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,s=t;;){var r=a.return;if(r===null)break;var u=r.alternate;if(u===null){if(s=r.return,s!==null){a=s;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===a)return g(r),e;if(u===s)return g(r),t;u=u.sibling}throw Error(o(188))}if(a.return!==s.return)a=r,s=u;else{for(var y=!1,S=r.child;S;){if(S===a){y=!0,a=r,s=u;break}if(S===s){y=!0,s=r,a=u;break}S=S.sibling}if(!y){for(S=u.child;S;){if(S===a){y=!0,a=u,s=r;break}if(S===s){y=!0,s=u,a=r;break}S=S.sibling}if(!y)throw Error(o(189))}}if(a.alternate!==s)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,T=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),U=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case _:return"Profiler";case z:return"StrictMode";case Q:return"Suspense";case se:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case U:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var Re=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},q=[],ue=-1;function b(e){return{current:e}}function L(e){0>ue||(e.current=q[ue],q[ue]=null,ue--)}function ie(e,t){ue++,q[ue]=e.current,e.current=t}var te=b(null),pe=b(null),ge=b(null),Se=b(null);function Ke(e,t){switch(ie(ge,t),ie(pe,e),ie(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gh(t),e=Eh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(te),ie(te,e)}function ze(){L(te),L(pe),L(ge)}function pn(e){e.memoizedState!==null&&ie(Se,e);var t=te.current,a=Eh(t,e.type);t!==a&&(ie(pe,e),ie(te,a))}function Rn(e){pe.current===e&&(L(te),L(pe)),Se.current===e&&(L(Se),Us._currentValue=le)}var pt,re;function Le(e){if(pt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);pt=t&&t[1]||"",re=-1<a.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+pt+e+re}var Ot=!1;function Nn(e,t){if(!e||Ot)return"";Ot=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Z){var j=Z}Reflect.construct(e,[],X)}else{try{X.call()}catch(Z){j=Z}e.call(X.prototype)}}else{try{throw Error()}catch(Z){j=Z}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(Z){if(Z&&j&&typeof Z.stack=="string")return[Z.stack,j.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),y=u[0],S=u[1];if(y&&S){var R=y.split(`
|
|
5
|
+
`),w=S.split(`
|
|
6
|
+
`);for(r=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;if(s===R.length||r===w.length)for(s=R.length-1,r=w.length-1;1<=s&&0<=r&&R[s]!==w[r];)r--;for(;1<=s&&0<=r;s--,r--)if(R[s]!==w[r]){if(s!==1||r!==1)do if(s--,r--,0>r||R[s]!==w[r]){var F=`
|
|
7
|
+
`+R[s].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=s&&0<=r);break}}}finally{Ot=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Le(a):""}function kn(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le("Lazy");case 13:return e.child!==t&&t!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return Nn(e.type,!1);case 11:return Nn(e.type.render,!1);case 1:return Nn(e.type,!0);case 31:return Le("Activity");default:return""}}function Yt(e){try{var t="",a=null;do t+=kn(e,a),a=e,e=e.return;while(e);return t}catch(s){return`
|
|
8
|
+
Error generating stack: `+s.message+`
|
|
9
|
+
`+s.stack}}var Xt=Object.prototype.hasOwnProperty,ba=n.unstable_scheduleCallback,Oa=n.unstable_cancelCallback,il=n.unstable_shouldYield,sl=n.unstable_requestPaint,gt=n.unstable_now,ki=n.unstable_getCurrentPriorityLevel,ll=n.unstable_ImmediatePriority,Yi=n.unstable_UserBlockingPriority,Ra=n.unstable_NormalPriority,ol=n.unstable_LowPriority,rl=n.unstable_IdlePriority,M=n.log,H=n.unstable_setDisableYieldValue,G=null,J=null;function K(e){if(typeof M=="function"&&H(e),J&&typeof J.setStrictMode=="function")try{J.setStrictMode(G,e)}catch{}}var ae=Math.clz32?Math.clz32:ve,ce=Math.log,oe=Math.LN2;function ve(e){return e>>>=0,e===0?32:31-(ce(e)/oe|0)|0}var Me=256,Fe=262144,gn=4194304;function Rt(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qa(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var r=0,u=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~u,s!==0?r=Rt(s):(y&=S,y!==0?r=Rt(y):a||(a=S&~e,a!==0&&(r=Rt(a))))):(S=s&~u,S!==0?r=Rt(S):y!==0?r=Rt(y):a||(a=s&~e,a!==0&&(r=Rt(a)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:r}function Xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function b4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function K0(){var e=gn;return gn<<=1,(gn&62914560)===0&&(gn=4194304),e}function sr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function O4(e,t,a,s,r,u){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,w=e.hiddenUpdates;for(a=y&~a;0<a;){var F=31-ae(a),X=1<<F;S[F]=0,R[F]=-1;var j=w[F];if(j!==null)for(w[F]=null,F=0;F<j.length;F++){var Z=j[F];Z!==null&&(Z.lane&=-536870913)}a&=~X}s!==0&&Q0(e,s,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(y&~t))}function Q0(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-ae(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function W0(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-ae(a),r=1<<s;r&t|e[s]&t&&(e[s]|=t),a&=~r}}function J0(e,t){var a=t&-t;return a=(a&42)!==0?1:lr(a),(a&(e.suspendedLanes|t))!==0?0:a}function lr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function or(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ef(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:zh(e.type))}function tf(e,t){var a=ee.p;try{return ee.p=e,t()}finally{ee.p=a}}var Yn=Math.random().toString(36).slice(2),Et="__reactFiber$"+Yn,Lt="__reactProps$"+Yn,Wa="__reactContainer$"+Yn,rr="__reactEvents$"+Yn,R4="__reactListeners$"+Yn,N4="__reactHandles$"+Yn,nf="__reactResources$"+Yn,Qi="__reactMarker$"+Yn;function cr(e){delete e[Et],delete e[Lt],delete e[rr],delete e[R4],delete e[N4]}function Ja(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wa]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=bh(e);e!==null;){if(a=e[Et])return a;e=bh(e)}return t}e=a,a=e.parentNode}return null}function ei(e){if(e=e[Et]||e[Wa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ti(e){var t=e[nf];return t||(t=e[nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[Qi]=!0}var af=new Set,sf={};function Na(e,t){ni(e,t),ni(e+"Capture",t)}function ni(e,t){for(sf[e]=t,e=0;e<t.length;e++)af.add(t[e])}var M4=RegExp("^[: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]*$"),lf={},of={};function x4(e){return Xt.call(of,e)?!0:Xt.call(lf,e)?!1:M4.test(e)?of[e]=!0:(lf[e]=!0,!1)}function cl(e,t,a){if(x4(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ul(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Mn(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D4(e,t,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(y){a=""+y,u.call(this,y)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ur(e){if(!e._valueTracker){var t=rf(e)?"checked":"value";e._valueTracker=D4(e,t,""+e[t])}}function cf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=rf(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function fl(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}}var L4=/[\n"\\]/g;function Qt(e){return e.replace(L4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fr(e,t,a,s,r,u,y,S){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?dr(e,y,Kt(t)):a!=null?dr(e,y,Kt(a)):s!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Kt(S):e.removeAttribute("name")}function uf(e,t,a,s,r,u,y,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ur(e);return}a=a!=null?""+Kt(a):"",t=t!=null?""+Kt(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),ur(e)}function dr(e,t,a){t==="number"&&fl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ai(e,t,a,s){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Kt(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function ff(e,t,a){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Kt(a):""}function df(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(o(92));if(Re(s)){if(1<s.length)throw Error(o(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Kt(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),ur(e)}function ii(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var V4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hf(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||V4.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function mf(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var r in t)s=t[r],t.hasOwnProperty(r)&&a[r]!==s&&hf(e,r,s)}else for(var u in t)t.hasOwnProperty(u)&&hf(e,u,t[u])}function hr(e){if(e.indexOf("-")===-1)return!1;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 w4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),I4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dl(e){return I4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xn(){}var mr=null;function pr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,li=null;function pf(e){var t=ei(e);if(t&&(e=t.stateNode)){var a=e[Lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(fr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var r=s[Lt]||null;if(!r)throw Error(o(90));fr(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&cf(s)}break e;case"textarea":ff(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ai(e,!!a.multiple,t,!1)}}}var gr=!1;function gf(e,t,a){if(gr)return e(t,a);gr=!0;try{var s=e(t);return s}finally{if(gr=!1,(si!==null||li!==null)&&(Jl(),si&&(t=si,e=li,li=si=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function Ji(e,t){var a=e.stateNode;if(a===null)return null;var s=a[Lt]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Er=!1;if(Dn)try{var es={};Object.defineProperty(es,"passive",{get:function(){Er=!0}}),window.addEventListener("test",es,es),window.removeEventListener("test",es,es)}catch{Er=!1}var Xn=null,yr=null,hl=null;function Ef(){if(hl)return hl;var e,t=yr,a=t.length,s,r="value"in Xn?Xn.value:Xn.textContent,u=r.length;for(e=0;e<a&&t[e]===r[e];e++);var y=a-e;for(s=1;s<=y&&t[a-s]===r[u-s];s++);return hl=r.slice(e,1<s?1-s:void 0)}function ml(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 pl(){return!0}function yf(){return!1}function Vt(e){function t(a,s,r,u,y){this._reactName=a,this._targetInst=r,this.type=s,this.nativeEvent=u,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pl:yf,this.isPropagationStopped=yf,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gl=Vt(Ma),ts=v({},Ma,{view:0,detail:0}),j4=Vt(ts),vr,Ar,ns,El=v({},ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,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!==ns&&(ns&&e.type==="mousemove"?(vr=e.screenX-ns.screenX,Ar=e.screenY-ns.screenY):Ar=vr=0,ns=e),vr)},movementY:function(e){return"movementY"in e?e.movementY:Ar}}),vf=Vt(El),U4=v({},El,{dataTransfer:0}),_4=Vt(U4),H4=v({},ts,{relatedTarget:0}),Sr=Vt(H4),Z4=v({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),z4=Vt(Z4),P4=v({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B4=Vt(P4),G4=v({},Ma,{data:0}),Af=Vt(G4),F4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$4={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"},q4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q4[e])?!!t[e]:!1}function Tr(){return k4}var Y4=v({},ts,{key:function(e){if(e.key){var t=F4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(e){return e.type==="keypress"?ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X4=Vt(Y4),K4=v({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=Vt(K4),Q4=v({},ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr}),W4=Vt(Q4),J4=v({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),e6=Vt(J4),t6=v({},El,{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}),n6=Vt(t6),a6=v({},Ma,{newState:0,oldState:0}),i6=Vt(a6),s6=[9,13,27,32],Cr=Dn&&"CompositionEvent"in window,as=null;Dn&&"documentMode"in document&&(as=document.documentMode);var l6=Dn&&"TextEvent"in window&&!as,Tf=Dn&&(!Cr||as&&8<as&&11>=as),Cf=" ",bf=!1;function Of(e,t){switch(e){case"keyup":return s6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function o6(e,t){switch(e){case"compositionend":return Rf(t);case"keypress":return t.which!==32?null:(bf=!0,Cf);case"textInput":return e=t.data,e===Cf&&bf?null:e;default:return null}}function r6(e,t){if(oi)return e==="compositionend"||!Cr&&Of(e,t)?(e=Ef(),hl=yr=Xn=null,oi=!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 Tf&&t.locale!=="ko"?null:t.data;default:return null}}var c6={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c6[e.type]:t==="textarea"}function Mf(e,t,a,s){si?li?li.push(s):li=[s]:si=s,t=lo(t,"onChange"),0<t.length&&(a=new gl("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var is=null,ss=null;function u6(e){uh(e,0)}function yl(e){var t=Wi(e);if(cf(t))return e}function xf(e,t){if(e==="change")return t}var Df=!1;if(Dn){var br;if(Dn){var Or="oninput"in document;if(!Or){var Lf=document.createElement("div");Lf.setAttribute("oninput","return;"),Or=typeof Lf.oninput=="function"}br=Or}else br=!1;Df=br&&(!document.documentMode||9<document.documentMode)}function Vf(){is&&(is.detachEvent("onpropertychange",wf),ss=is=null)}function wf(e){if(e.propertyName==="value"&&yl(ss)){var t=[];Mf(t,ss,e,pr(e)),gf(u6,t)}}function f6(e,t,a){e==="focusin"?(Vf(),is=t,ss=a,is.attachEvent("onpropertychange",wf)):e==="focusout"&&Vf()}function d6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(ss)}function h6(e,t){if(e==="click")return yl(t)}function m6(e,t){if(e==="input"||e==="change")return yl(t)}function p6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:p6;function ls(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var r=a[s];if(!Xt.call(t,r)||!zt(e[r],t[r]))return!1}return!0}function If(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var a=If(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=If(a)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=fl(e.document)}return t}function Rr(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")}var g6=Dn&&"documentMode"in document&&11>=document.documentMode,ri=null,Nr=null,os=null,Mr=!1;function Hf(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mr||ri==null||ri!==fl(s)||(s=ri,"selectionStart"in s&&Rr(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),os&&ls(os,s)||(os=s,s=lo(Nr,"onSelect"),0<s.length&&(t=new gl("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ri)))}function xa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ci={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},xr={},Zf={};Dn&&(Zf=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function Da(e){if(xr[e])return xr[e];if(!ci[e])return e;var t=ci[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Zf)return xr[e]=t[a];return e}var zf=Da("animationend"),Pf=Da("animationiteration"),Bf=Da("animationstart"),E6=Da("transitionrun"),y6=Da("transitionstart"),v6=Da("transitioncancel"),Gf=Da("transitionend"),Ff=new Map,Dr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Dr.push("scrollEnd");function cn(e,t){Ff.set(e,t),Na(t,[e])}var vl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wt=[],ui=0,Lr=0;function Al(){for(var e=ui,t=Lr=ui=0;t<e;){var a=Wt[t];Wt[t++]=null;var s=Wt[t];Wt[t++]=null;var r=Wt[t];Wt[t++]=null;var u=Wt[t];if(Wt[t++]=null,s!==null&&r!==null){var y=s.pending;y===null?r.next=r:(r.next=y.next,y.next=r),s.pending=r}u!==0&&$f(a,r,u)}}function Sl(e,t,a,s){Wt[ui++]=e,Wt[ui++]=t,Wt[ui++]=a,Wt[ui++]=s,Lr|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Vr(e,t,a,s){return Sl(e,t,a,s),Tl(e)}function La(e,t){return Sl(e,null,null,t),Tl(e)}function $f(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var r=!1,u=e.return;u!==null;)u.childLanes|=a,s=u.alternate,s!==null&&(s.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-ae(a),e=u.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=a|536870912),u):null}function Tl(e){if(50<xs)throw xs=0,Pc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fi={};function A6(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,a,s){return new A6(e,t,a,s)}function wr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ln(e,t){var a=e.alternate;return a===null?(a=Pt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function qf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Cl(e,t,a,s,r,u){var y=0;if(s=e,typeof e=="function")wr(e)&&(y=1);else if(typeof e=="string")y=Og(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Pt(31,a,t,r),e.elementType=fe,e.lanes=u,e;case D:return Va(a.children,r,u,t);case z:y=8,r|=24;break;case _:return e=Pt(12,a,t,r|2),e.elementType=_,e.lanes=u,e;case Q:return e=Pt(13,a,t,r),e.elementType=Q,e.lanes=u,e;case se:return e=Pt(19,a,t,r),e.elementType=se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:y=10;break e;case Y:y=9;break e;case P:y=11;break e;case W:y=14;break e;case $:y=16,s=null;break e}y=29,a=Error(o(130,e===null?"null":typeof e,"")),s=null}return t=Pt(y,a,t,r),t.elementType=e,t.type=s,t.lanes=u,t}function Va(e,t,a,s){return e=Pt(7,e,s,t),e.lanes=a,e}function Ir(e,t,a){return e=Pt(6,e,null,t),e.lanes=a,e}function kf(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function jr(e,t,a){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yf=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var a=Yf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Yt(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Yt(t)}}var di=[],hi=0,bl=null,rs=0,en=[],tn=0,Kn=null,En=1,yn="";function Vn(e,t){di[hi++]=rs,di[hi++]=bl,bl=e,rs=t}function Xf(e,t,a){en[tn++]=En,en[tn++]=yn,en[tn++]=Kn,Kn=e;var s=En;e=yn;var r=32-ae(s)-1;s&=~(1<<r),a+=1;var u=32-ae(t)+r;if(30<u){var y=r-r%5;u=(s&(1<<y)-1).toString(32),s>>=y,r-=y,En=1<<32-ae(t)+r|a<<r|s,yn=u+e}else En=1<<u|a<<r|s,yn=e}function Ur(e){e.return!==null&&(Vn(e,1),Xf(e,1,0))}function _r(e){for(;e===bl;)bl=di[--hi],di[hi]=null,rs=di[--hi],di[hi]=null;for(;e===Kn;)Kn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,En=en[--tn],en[tn]=null}function Kf(e,t){en[tn++]=En,en[tn++]=yn,en[tn++]=Kn,En=t.id,yn=t.overflow,Kn=e}var yt=null,Ye=null,Ie=!1,Qn=null,nn=!1,Hr=Error(o(519));function Wn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cs(Jt(t,e)),Hr}function Qf(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[Et]=e,t[Lt]=s,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<Ls.length;a++)De(Ls[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),uf(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),df(t,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||mh(t.textContent,a)?(s.popover!=null&&(De("beforetoggle",t),De("toggle",t)),s.onScroll!=null&&De("scroll",t),s.onScrollEnd!=null&&De("scrollend",t),s.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||Wn(e,!0)}function Wf(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:yt=yt.return}}function mi(e){if(e!==yt)return!1;if(!Ie)return Wf(e),Ie=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||nu(e.type,e.memoizedProps)),a=!a),a&&Ye&&Wn(e),Wf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=Ch(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=Ch(e)}else t===27?(t=Ye,da(e.type)?(e=ou,ou=null,Ye=e):Ye=t):Ye=yt?sn(e.stateNode.nextSibling):null;return!0}function wa(){Ye=yt=null,Ie=!1}function Zr(){var e=Qn;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Qn=null),e}function cs(e){Qn===null?Qn=[e]:Qn.push(e)}var zr=b(null),Ia=null,wn=null;function Jn(e,t,a){ie(zr,t._currentValue),t._currentValue=a}function In(e){e._currentValue=zr.current,L(zr)}function Pr(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function Br(e,t,a,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var y=r.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=r;for(var R=0;R<t.length;R++)if(S.context===t[R]){u.lanes|=a,S=u.alternate,S!==null&&(S.lanes|=a),Pr(u.return,a,e),s||(y=null);break e}u=S.next}}else if(r.tag===18){if(y=r.return,y===null)throw Error(o(341));y.lanes|=a,u=y.alternate,u!==null&&(u.lanes|=a),Pr(y,a,e),y=null}else y=r.child;if(y!==null)y.return=r;else for(y=r;y!==null;){if(y===e){y=null;break}if(r=y.sibling,r!==null){r.return=y.return,y=r;break}y=y.return}r=y}}function pi(e,t,a,s){e=null;for(var r=t,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var y=r.alternate;if(y===null)throw Error(o(387));if(y=y.memoizedProps,y!==null){var S=r.type;zt(r.pendingProps.value,y.value)||(e!==null?e.push(S):e=[S])}}else if(r===Se.current){if(y=r.alternate,y===null)throw Error(o(387));y.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}r=r.return}e!==null&&Br(t,e,a,s),t.flags|=262144}function Ol(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ja(e){Ia=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Jf(Ia,e)}function Rl(e,t){return Ia===null&&ja(e),Jf(e,t)}function Jf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},wn===null){if(e===null)throw Error(o(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return a}var S6=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},T6=n.unstable_scheduleCallback,C6=n.unstable_NormalPriority,lt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gr(){return{controller:new S6,data:new Map,refCount:0}}function us(e){e.refCount--,e.refCount===0&&T6(C6,function(){e.controller.abort()})}var fs=null,Fr=0,gi=0,Ei=null;function b6(e,t){if(fs===null){var a=fs=[];Fr=0,gi=kc(),Ei={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Fr++,t.then(e1,e1),t}function e1(){if(--Fr===0&&fs!==null){Ei!==null&&(Ei.status="fulfilled");var e=fs;fs=null,gi=0,Ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O6(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),s}var t1=I.S;I.S=function(e,t){Hd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&b6(e,t),t1!==null&&t1(e,t)};var Ua=b(null);function $r(){var e=Ua.current;return e!==null?e:$e.pooledCache}function Nl(e,t){t===null?ie(Ua,Ua.current):ie(Ua,t.pool)}function n1(){var e=$r();return e===null?null:{parent:lt._currentValue,pool:e}}var yi=Error(o(460)),qr=Error(o(474)),Ml=Error(o(542)),xl={then:function(){}};function a1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function i1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(xn,xn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,l1(e),e;default:if(typeof t.status=="string")t.then(xn,xn);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=s}},function(s){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,l1(e),e}throw Ha=t,yi}}function _a(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ha=a,yi):a}}var Ha=null;function s1(){if(Ha===null)throw Error(o(459));var e=Ha;return Ha=null,e}function l1(e){if(e===yi||e===Ml)throw Error(o(483))}var vi=null,ds=0;function Dl(e){var t=ds;return ds+=1,vi===null&&(vi=[]),i1(vi,e,t)}function hs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ll(e,t){throw t.$$typeof===T?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function o1(e){function t(x,N){if(e){var V=x.deletions;V===null?(x.deletions=[N],x.flags|=16):V.push(N)}}function a(x,N){if(!e)return null;for(;N!==null;)t(x,N),N=N.sibling;return null}function s(x){for(var N=new Map;x!==null;)x.key!==null?N.set(x.key,x):N.set(x.index,x),x=x.sibling;return N}function r(x,N){return x=Ln(x,N),x.index=0,x.sibling=null,x}function u(x,N,V){return x.index=V,e?(V=x.alternate,V!==null?(V=V.index,V<N?(x.flags|=67108866,N):V):(x.flags|=67108866,N)):(x.flags|=1048576,N)}function y(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function S(x,N,V,k){return N===null||N.tag!==6?(N=Ir(V,x.mode,k),N.return=x,N):(N=r(N,V),N.return=x,N)}function R(x,N,V,k){var ye=V.type;return ye===D?F(x,N,V.props.children,k,V.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===$&&_a(ye)===N.type)?(N=r(N,V.props),hs(N,V),N.return=x,N):(N=Cl(V.type,V.key,V.props,null,x.mode,k),hs(N,V),N.return=x,N)}function w(x,N,V,k){return N===null||N.tag!==4||N.stateNode.containerInfo!==V.containerInfo||N.stateNode.implementation!==V.implementation?(N=jr(V,x.mode,k),N.return=x,N):(N=r(N,V.children||[]),N.return=x,N)}function F(x,N,V,k,ye){return N===null||N.tag!==7?(N=Va(V,x.mode,k,ye),N.return=x,N):(N=r(N,V),N.return=x,N)}function X(x,N,V){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ir(""+N,x.mode,V),N.return=x,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case C:return V=Cl(N.type,N.key,N.props,null,x.mode,V),hs(V,N),V.return=x,V;case O:return N=jr(N,x.mode,V),N.return=x,N;case $:return N=_a(N),X(x,N,V)}if(Re(N)||Ee(N))return N=Va(N,x.mode,V,null),N.return=x,N;if(typeof N.then=="function")return X(x,Dl(N),V);if(N.$$typeof===U)return X(x,Rl(x,N),V);Ll(x,N)}return null}function j(x,N,V,k){var ye=N!==null?N.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ye!==null?null:S(x,N,""+V,k);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case C:return V.key===ye?R(x,N,V,k):null;case O:return V.key===ye?w(x,N,V,k):null;case $:return V=_a(V),j(x,N,V,k)}if(Re(V)||Ee(V))return ye!==null?null:F(x,N,V,k,null);if(typeof V.then=="function")return j(x,N,Dl(V),k);if(V.$$typeof===U)return j(x,N,Rl(x,V),k);Ll(x,V)}return null}function Z(x,N,V,k,ye){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return x=x.get(V)||null,S(N,x,""+k,ye);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case C:return x=x.get(k.key===null?V:k.key)||null,R(N,x,k,ye);case O:return x=x.get(k.key===null?V:k.key)||null,w(N,x,k,ye);case $:return k=_a(k),Z(x,N,V,k,ye)}if(Re(k)||Ee(k))return x=x.get(V)||null,F(N,x,k,ye,null);if(typeof k.then=="function")return Z(x,N,V,Dl(k),ye);if(k.$$typeof===U)return Z(x,N,V,Rl(N,k),ye);Ll(N,k)}return null}function de(x,N,V,k){for(var ye=null,je=null,me=N,Ne=N=0,we=null;me!==null&&Ne<V.length;Ne++){me.index>Ne?(we=me,me=null):we=me.sibling;var Ue=j(x,me,V[Ne],k);if(Ue===null){me===null&&(me=we);break}e&&me&&Ue.alternate===null&&t(x,me),N=u(Ue,N,Ne),je===null?ye=Ue:je.sibling=Ue,je=Ue,me=we}if(Ne===V.length)return a(x,me),Ie&&Vn(x,Ne),ye;if(me===null){for(;Ne<V.length;Ne++)me=X(x,V[Ne],k),me!==null&&(N=u(me,N,Ne),je===null?ye=me:je.sibling=me,je=me);return Ie&&Vn(x,Ne),ye}for(me=s(me);Ne<V.length;Ne++)we=Z(me,x,Ne,V[Ne],k),we!==null&&(e&&we.alternate!==null&&me.delete(we.key===null?Ne:we.key),N=u(we,N,Ne),je===null?ye=we:je.sibling=we,je=we);return e&&me.forEach(function(Ea){return t(x,Ea)}),Ie&&Vn(x,Ne),ye}function Ae(x,N,V,k){if(V==null)throw Error(o(151));for(var ye=null,je=null,me=N,Ne=N=0,we=null,Ue=V.next();me!==null&&!Ue.done;Ne++,Ue=V.next()){me.index>Ne?(we=me,me=null):we=me.sibling;var Ea=j(x,me,Ue.value,k);if(Ea===null){me===null&&(me=we);break}e&&me&&Ea.alternate===null&&t(x,me),N=u(Ea,N,Ne),je===null?ye=Ea:je.sibling=Ea,je=Ea,me=we}if(Ue.done)return a(x,me),Ie&&Vn(x,Ne),ye;if(me===null){for(;!Ue.done;Ne++,Ue=V.next())Ue=X(x,Ue.value,k),Ue!==null&&(N=u(Ue,N,Ne),je===null?ye=Ue:je.sibling=Ue,je=Ue);return Ie&&Vn(x,Ne),ye}for(me=s(me);!Ue.done;Ne++,Ue=V.next())Ue=Z(me,x,Ne,Ue.value,k),Ue!==null&&(e&&Ue.alternate!==null&&me.delete(Ue.key===null?Ne:Ue.key),N=u(Ue,N,Ne),je===null?ye=Ue:je.sibling=Ue,je=Ue);return e&&me.forEach(function(Ug){return t(x,Ug)}),Ie&&Vn(x,Ne),ye}function Ge(x,N,V,k){if(typeof V=="object"&&V!==null&&V.type===D&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case C:e:{for(var ye=V.key;N!==null;){if(N.key===ye){if(ye=V.type,ye===D){if(N.tag===7){a(x,N.sibling),k=r(N,V.props.children),k.return=x,x=k;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===$&&_a(ye)===N.type){a(x,N.sibling),k=r(N,V.props),hs(k,V),k.return=x,x=k;break e}a(x,N);break}else t(x,N);N=N.sibling}V.type===D?(k=Va(V.props.children,x.mode,k,V.key),k.return=x,x=k):(k=Cl(V.type,V.key,V.props,null,x.mode,k),hs(k,V),k.return=x,x=k)}return y(x);case O:e:{for(ye=V.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===V.containerInfo&&N.stateNode.implementation===V.implementation){a(x,N.sibling),k=r(N,V.children||[]),k.return=x,x=k;break e}else{a(x,N);break}else t(x,N);N=N.sibling}k=jr(V,x.mode,k),k.return=x,x=k}return y(x);case $:return V=_a(V),Ge(x,N,V,k)}if(Re(V))return de(x,N,V,k);if(Ee(V)){if(ye=Ee(V),typeof ye!="function")throw Error(o(150));return V=ye.call(V),Ae(x,N,V,k)}if(typeof V.then=="function")return Ge(x,N,Dl(V),k);if(V.$$typeof===U)return Ge(x,N,Rl(x,V),k);Ll(x,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,N!==null&&N.tag===6?(a(x,N.sibling),k=r(N,V),k.return=x,x=k):(a(x,N),k=Ir(V,x.mode,k),k.return=x,x=k),y(x)):a(x,N)}return function(x,N,V,k){try{ds=0;var ye=Ge(x,N,V,k);return vi=null,ye}catch(me){if(me===yi||me===Ml)throw me;var je=Pt(29,me,null,x.mode);return je.lanes=k,je.return=x,je}}}var Za=o1(!0),r1=o1(!1),ea=!1;function kr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function na(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(_e&2)!==0){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Tl(e),$f(e,null,a),t}return Sl(e,s,t,a),Tl(e)}function ms(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,W0(e,a)}}function Xr(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var r=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?r=u=y:u=u.next=y,a=a.next}while(a!==null);u===null?r=u=t:u=u.next=t}else r=u=t;a={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Kr=!1;function ps(){if(Kr){var e=Ei;if(e!==null)throw e}}function gs(e,t,a,s){Kr=!1;var r=e.updateQueue;ea=!1;var u=r.firstBaseUpdate,y=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var R=S,w=R.next;R.next=null,y===null?u=w:y.next=w,y=R;var F=e.alternate;F!==null&&(F=F.updateQueue,S=F.lastBaseUpdate,S!==y&&(S===null?F.firstBaseUpdate=w:S.next=w,F.lastBaseUpdate=R))}if(u!==null){var X=r.baseState;y=0,F=w=R=null,S=u;do{var j=S.lane&-536870913,Z=j!==S.lane;if(Z?(Ve&j)===j:(s&j)===j){j!==0&&j===gi&&(Kr=!0),F!==null&&(F=F.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var de=e,Ae=S;j=t;var Ge=a;switch(Ae.tag){case 1:if(de=Ae.payload,typeof de=="function"){X=de.call(Ge,X,j);break e}X=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=Ae.payload,j=typeof de=="function"?de.call(Ge,X,j):de,j==null)break e;X=v({},X,j);break e;case 2:ea=!0}}j=S.callback,j!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=r.callbacks,Z===null?r.callbacks=[j]:Z.push(j))}else Z={lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},F===null?(w=F=Z,R=X):F=F.next=Z,y|=j;if(S=S.next,S===null){if(S=r.shared.pending,S===null)break;Z=S,S=Z.next,Z.next=null,r.lastBaseUpdate=Z,r.shared.pending=null}}while(!0);F===null&&(R=X),r.baseState=R,r.firstBaseUpdate=w,r.lastBaseUpdate=F,u===null&&(r.shared.lanes=0),oa|=y,e.lanes=y,e.memoizedState=X}}function c1(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function u1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)c1(a[e],t)}var Ai=b(null),Vl=b(0);function f1(e,t){e=Gn,ie(Vl,e),ie(Ai,t),Gn=e|t.baseLanes}function Qr(){ie(Vl,Gn),ie(Ai,Ai.current)}function Wr(){Gn=Vl.current,L(Ai),L(Vl)}var Bt=b(null),an=null;function aa(e){var t=e.alternate;ie(it,it.current&1),ie(Bt,e),an===null&&(t===null||Ai.current!==null||t.memoizedState!==null)&&(an=e)}function Jr(e){ie(it,it.current),ie(Bt,e),an===null&&(an=e)}function d1(e){e.tag===22?(ie(it,it.current),ie(Bt,e),an===null&&(an=e)):ia()}function ia(){ie(it,it.current),ie(Bt,Bt.current)}function Gt(e){L(Bt),an===e&&(an=null),L(it)}var it=b(0);function wl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||su(a)||lu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 jn=0,Oe=null,Pe=null,ot=null,Il=!1,Si=!1,za=!1,jl=0,Es=0,Ti=null,R6=0;function Je(){throw Error(o(321))}function ec(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function tc(e,t,a,s,r,u){return jn=u,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?X1:gc,za=!1,u=a(s,r),za=!1,Si&&(u=m1(t,a,s,r)),h1(e),u}function h1(e){I.H=As;var t=Pe!==null&&Pe.next!==null;if(jn=0,ot=Pe=Oe=null,Il=!1,Es=0,Ti=null,t)throw Error(o(300));e===null||rt||(e=e.dependencies,e!==null&&Ol(e)&&(rt=!0))}function m1(e,t,a,s){Oe=e;var r=0;do{if(Si&&(Ti=null),Es=0,Si=!1,25<=r)throw Error(o(301));if(r+=1,ot=Pe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}I.H=K1,u=t(a,s)}while(Si);return u}function N6(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?ys(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Oe.flags|=1024),t}function nc(){var e=jl!==0;return jl=0,e}function ac(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ic(e){if(Il){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Il=!1}jn=0,ot=Pe=Oe=null,Si=!1,Es=jl=0,Ti=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Oe.memoizedState=ot=e:ot=ot.next=e,ot}function st(){if(Pe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=ot===null?Oe.memoizedState:ot.next;if(t!==null)ot=t,Pe=e;else{if(e===null)throw Oe.alternate===null?Error(o(467)):Error(o(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},ot===null?Oe.memoizedState=ot=e:ot=ot.next=e}return ot}function Ul(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ys(e){var t=Es;return Es+=1,Ti===null&&(Ti=[]),e=i1(Ti,e,t),t=Oe,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?X1:gc),e}function _l(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ys(e);if(e.$$typeof===U)return vt(e)}throw Error(o(438,String(e)))}function sc(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=Oe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ul(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=B;return t.index++,a}function Un(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=st();return lc(t,Pe,e)}function lc(e,t,a){var s=e.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=a;var r=e.baseQueue,u=s.pending;if(u!==null){if(r!==null){var y=r.next;r.next=u.next,u.next=y}t.baseQueue=r=u,s.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var S=y=null,R=null,w=t,F=!1;do{var X=w.lane&-536870913;if(X!==w.lane?(Ve&X)===X:(jn&X)===X){var j=w.revertLane;if(j===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),X===gi&&(F=!0);else if((jn&j)===j){w=w.next,j===gi&&(F=!0);continue}else X={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},R===null?(S=R=X,y=u):R=R.next=X,Oe.lanes|=j,oa|=j;X=w.action,za&&a(u,X),u=w.hasEagerState?w.eagerState:a(u,X)}else j={lane:X,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},R===null?(S=R=j,y=u):R=R.next=j,Oe.lanes|=X,oa|=X;w=w.next}while(w!==null&&w!==t);if(R===null?y=u:R.next=S,!zt(u,e.memoizedState)&&(rt=!0,F&&(a=Ei,a!==null)))throw a;e.memoizedState=u,e.baseState=y,e.baseQueue=R,s.lastRenderedState=u}return r===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function oc(e){var t=st(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var s=a.dispatch,r=a.pending,u=t.memoizedState;if(r!==null){a.pending=null;var y=r=r.next;do u=e(u,y.action),y=y.next;while(y!==r);zt(u,t.memoizedState)||(rt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,s]}function p1(e,t,a){var s=Oe,r=st(),u=Ie;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var y=!zt((Pe||r).memoizedState,a);if(y&&(r.memoizedState=a,rt=!0),r=r.queue,uc(y1.bind(null,s,r,e),[e]),r.getSnapshot!==t||y||ot!==null&&ot.memoizedState.tag&1){if(s.flags|=2048,Ci(9,{destroy:void 0},E1.bind(null,s,r,a,t),null),$e===null)throw Error(o(349));u||(jn&127)!==0||g1(s,t,a)}return a}function g1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=Ul(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function E1(e,t,a,s){t.value=a,t.getSnapshot=s,v1(t)&&A1(e)}function y1(e,t,a){return a(function(){v1(t)&&A1(e)})}function v1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function A1(e){var t=La(e,2);t!==null&&_t(t,e,2)}function rc(e){var t=Nt();if(typeof e=="function"){var a=e;if(e=a(),za){K(!0);try{a()}finally{K(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},t}function S1(e,t,a,s){return e.baseState=a,lc(e,Pe,typeof s=="function"?s:Un)}function M6(e,t,a,s,r){if(Pl(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){u.listeners.push(y)}};I.T!==null?a(!0):u.isTransition=!1,s(u),a=t.pending,a===null?(u.next=t.pending=u,T1(t,u)):(u.next=a.next,t.pending=a.next=u)}}function T1(e,t){var a=t.action,s=t.payload,r=e.state;if(t.isTransition){var u=I.T,y={};I.T=y;try{var S=a(r,s),R=I.S;R!==null&&R(y,S),C1(e,t,S)}catch(w){cc(e,t,w)}finally{u!==null&&y.types!==null&&(u.types=y.types),I.T=u}}else try{u=a(r,s),C1(e,t,u)}catch(w){cc(e,t,w)}}function C1(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){b1(e,t,s)},function(s){return cc(e,t,s)}):b1(e,t,a)}function b1(e,t,a){t.status="fulfilled",t.value=a,O1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,T1(e,a)))}function cc(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,O1(t),t=t.next;while(t!==s)}e.action=null}function O1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function R1(e,t){return t}function N1(e,t){if(Ie){var a=$e.formState;if(a!==null){e:{var s=Oe;if(Ie){if(Ye){t:{for(var r=Ye,u=nn;r.nodeType!==8;){if(!u){r=null;break t}if(r=sn(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ye=sn(r.nextSibling),s=r.data==="F!";break e}}Wn(s)}s=!1}s&&(t=a[0])}}return a=Nt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R1,lastRenderedState:t},a.queue=s,a=q1.bind(null,Oe,s),s.dispatch=a,s=rc(!1),u=pc.bind(null,Oe,!1,s.queue),s=Nt(),r={state:t,dispatch:null,action:e,pending:null},s.queue=r,a=M6.bind(null,Oe,r,u,a),r.dispatch=a,s.memoizedState=e,[t,a,!1]}function M1(e){var t=st();return x1(t,Pe,e)}function x1(e,t,a){if(t=lc(e,t,R1)[0],e=Hl(Un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ys(t)}catch(y){throw y===yi?Ml:y}else s=t;t=st();var r=t.queue,u=r.dispatch;return a!==t.memoizedState&&(Oe.flags|=2048,Ci(9,{destroy:void 0},x6.bind(null,r,a),null)),[s,u,e]}function x6(e,t){e.action=t}function D1(e){var t=st(),a=Pe;if(a!==null)return x1(t,a,e);st(),t=t.memoizedState,a=st();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ci(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=Ul(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function L1(){return st().memoizedState}function Zl(e,t,a,s){var r=Nt();Oe.flags|=e,r.memoizedState=Ci(1|t,{destroy:void 0},a,s===void 0?null:s)}function zl(e,t,a,s){var r=st();s=s===void 0?null:s;var u=r.memoizedState.inst;Pe!==null&&s!==null&&ec(s,Pe.memoizedState.deps)?r.memoizedState=Ci(t,u,a,s):(Oe.flags|=e,r.memoizedState=Ci(1|t,u,a,s))}function V1(e,t){Zl(8390656,8,e,t)}function uc(e,t){zl(2048,8,e,t)}function D6(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=Ul(),Oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function w1(e){var t=st().memoizedState;return D6({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function I1(e,t){return zl(4,2,e,t)}function j1(e,t){return zl(4,4,e,t)}function U1(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _1(e,t,a){a=a!=null?a.concat([e]):null,zl(4,4,U1.bind(null,t,e),a)}function fc(){}function H1(e,t){var a=st();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&ec(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Z1(e,t){var a=st();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&ec(t,s[1]))return s[0];if(s=e(),za){K(!0);try{e()}finally{K(!1)}}return a.memoizedState=[s,t],s}function dc(e,t,a){return a===void 0||(jn&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=zd(),Oe.lanes|=e,oa|=e,a)}function z1(e,t,a,s){return zt(a,t)?a:Ai.current!==null?(e=dc(e,a,s),zt(e,t)||(rt=!0),e):(jn&42)===0||(jn&1073741824)!==0&&(Ve&261930)===0?(rt=!0,e.memoizedState=a):(e=zd(),Oe.lanes|=e,oa|=e,t)}function P1(e,t,a,s,r){var u=ee.p;ee.p=u!==0&&8>u?u:8;var y=I.T,S={};I.T=S,pc(e,!1,t,a);try{var R=r(),w=I.S;if(w!==null&&w(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var F=O6(R,s);vs(e,t,F,qt(e))}else vs(e,t,s,qt(e))}catch(X){vs(e,t,{then:function(){},status:"rejected",reason:X},qt())}finally{ee.p=u,y!==null&&S.types!==null&&(y.types=S.types),I.T=y}}function L6(){}function hc(e,t,a,s){if(e.tag!==5)throw Error(o(476));var r=B1(e).queue;P1(e,r,t,le,a===null?L6:function(){return G1(e),a(s)})}function B1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:le},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function G1(e){var t=B1(e);t.next===null&&(t=e.alternate.memoizedState),vs(e,t.next.queue,{},qt())}function mc(){return vt(Us)}function F1(){return st().memoizedState}function $1(){return st().memoizedState}function V6(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qt();e=ta(a);var s=na(t,e,a);s!==null&&(_t(s,t,a),ms(s,t,a)),t={cache:Gr()},e.payload=t;return}t=t.return}}function w6(e,t,a){var s=qt();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Pl(e)?k1(t,a):(a=Vr(e,t,a,s),a!==null&&(_t(a,e,s),Y1(a,t,s)))}function q1(e,t,a){var s=qt();vs(e,t,a,s)}function vs(e,t,a,s){var r={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Pl(e))k1(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var y=t.lastRenderedState,S=u(y,a);if(r.hasEagerState=!0,r.eagerState=S,zt(S,y))return Sl(e,t,r,0),$e===null&&Al(),!1}catch{}if(a=Vr(e,t,r,s),a!==null)return _t(a,e,s),Y1(a,t,s),!0}return!1}function pc(e,t,a,s){if(s={lane:2,revertLane:kc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Pl(e)){if(t)throw Error(o(479))}else t=Vr(e,a,s,2),t!==null&&_t(t,e,2)}function Pl(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function k1(e,t){Si=Il=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Y1(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,W0(e,a)}}var As={readContext:vt,use:_l,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};As.useEffectEvent=Je;var X1={readContext:vt,use:_l,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:V1,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zl(4194308,4,U1.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zl(4194308,4,e,t)},useInsertionEffect:function(e,t){Zl(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var s=e();if(za){K(!0);try{e()}finally{K(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Nt();if(a!==void 0){var r=a(t);if(za){K(!0);try{a(t)}finally{K(!1)}}}else r=t;return s.memoizedState=s.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=w6.bind(null,Oe,e),[s.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=rc(e);var t=e.queue,a=q1.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fc,useDeferredValue:function(e,t){var a=Nt();return dc(a,e,t)},useTransition:function(){var e=rc(!1);return e=P1.bind(null,Oe,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=Oe,r=Nt();if(Ie){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),$e===null)throw Error(o(349));(Ve&127)!==0||g1(s,t,a)}r.memoizedState=a;var u={value:a,getSnapshot:t};return r.queue=u,V1(y1.bind(null,s,u,e),[e]),s.flags|=2048,Ci(9,{destroy:void 0},E1.bind(null,s,u,a,t),null),a},useId:function(){var e=Nt(),t=$e.identifierPrefix;if(Ie){var a=yn,s=En;a=(s&~(1<<32-ae(s)-1)).toString(32)+a,t="_"+t+"R_"+a,a=jl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=R6++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:N1,useActionState:N1,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=pc.bind(null,Oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:sc,useCacheRefresh:function(){return Nt().memoizedState=V6.bind(null,Oe)},useEffectEvent:function(e){var t=Nt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},gc={readContext:vt,use:_l,useCallback:H1,useContext:vt,useEffect:uc,useImperativeHandle:_1,useInsertionEffect:I1,useLayoutEffect:j1,useMemo:Z1,useReducer:Hl,useRef:L1,useState:function(){return Hl(Un)},useDebugValue:fc,useDeferredValue:function(e,t){var a=st();return z1(a,Pe.memoizedState,e,t)},useTransition:function(){var e=Hl(Un)[0],t=st().memoizedState;return[typeof e=="boolean"?e:ys(e),t]},useSyncExternalStore:p1,useId:F1,useHostTransitionStatus:mc,useFormState:M1,useActionState:M1,useOptimistic:function(e,t){var a=st();return S1(a,Pe,e,t)},useMemoCache:sc,useCacheRefresh:$1};gc.useEffectEvent=w1;var K1={readContext:vt,use:_l,useCallback:H1,useContext:vt,useEffect:uc,useImperativeHandle:_1,useInsertionEffect:I1,useLayoutEffect:j1,useMemo:Z1,useReducer:oc,useRef:L1,useState:function(){return oc(Un)},useDebugValue:fc,useDeferredValue:function(e,t){var a=st();return Pe===null?dc(a,e,t):z1(a,Pe.memoizedState,e,t)},useTransition:function(){var e=oc(Un)[0],t=st().memoizedState;return[typeof e=="boolean"?e:ys(e),t]},useSyncExternalStore:p1,useId:F1,useHostTransitionStatus:mc,useFormState:D1,useActionState:D1,useOptimistic:function(e,t){var a=st();return Pe!==null?S1(a,Pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:sc,useCacheRefresh:$1};K1.useEffectEvent=w1;function Ec(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var yc={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=qt(),r=ta(s);r.payload=t,a!=null&&(r.callback=a),t=na(e,r,s),t!==null&&(_t(t,e,s),ms(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=qt(),r=ta(s);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=na(e,r,s),t!==null&&(_t(t,e,s),ms(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qt(),s=ta(a);s.tag=2,t!=null&&(s.callback=t),t=na(e,s,a),t!==null&&(_t(t,e,a),ms(t,e,a))}};function Q1(e,t,a,s,r,u,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,y):t.prototype&&t.prototype.isPureReactComponent?!ls(a,s)||!ls(r,u):!0}function W1(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&yc.enqueueReplaceState(t,t.state,null)}function Pa(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function J1(e){vl(e)}function ed(e){console.error(e)}function td(e){vl(e)}function Bl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function nd(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function vc(e,t,a){return a=ta(a),a.tag=3,a.payload={element:null},a.callback=function(){Bl(e,t)},a}function ad(e){return e=ta(e),e.tag=3,e}function id(e,t,a,s){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var u=s.value;e.payload=function(){return r(u)},e.callback=function(){nd(t,a,s)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){nd(t,a,s),typeof r!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function I6(e,t,a,s,r){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&pi(t,a,r,!0),a=Bt.current,a!==null){switch(a.tag){case 31:case 13:return an===null?eo():a.alternate===null&&et===0&&(et=3),a.flags&=-257,a.flags|=65536,a.lanes=r,s===xl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),Fc(e,s,r)),!1;case 22:return a.flags|=65536,s===xl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),Fc(e,s,r)),!1}throw Error(o(435,a.tag))}return Fc(e,s,r),eo(),!1}if(Ie)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==Hr&&(e=Error(o(422),{cause:s}),cs(Jt(e,a)))):(s!==Hr&&(t=Error(o(423),{cause:s}),cs(Jt(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Jt(s,a),r=vc(e.stateNode,s,r),Xr(e,r),et!==4&&(et=2)),!1;var u=Error(o(520),{cause:s});if(u=Jt(u,a),Ms===null?Ms=[u]:Ms.push(u),et!==4&&(et=2),t===null)return!0;s=Jt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=vc(a.stateNode,s,e),Xr(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ra===null||!ra.has(u))))return a.flags|=65536,r&=-r,a.lanes|=r,r=ad(r),id(r,e,a,s),Xr(a,r),!1}a=a.return}while(a!==null);return!1}var Ac=Error(o(461)),rt=!1;function At(e,t,a,s){t.child=e===null?r1(t,null,a,s):Za(t,e.child,a,s)}function sd(e,t,a,s,r){a=a.render;var u=t.ref;if("ref"in s){var y={};for(var S in s)S!=="ref"&&(y[S]=s[S])}else y=s;return ja(t),s=tc(e,t,a,y,u,r),S=nc(),e!==null&&!rt?(ac(e,t,r),_n(e,t,r)):(Ie&&S&&Ur(t),t.flags|=1,At(e,t,s,r),t.child)}function ld(e,t,a,s,r){if(e===null){var u=a.type;return typeof u=="function"&&!wr(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,od(e,t,u,s,r)):(e=Cl(a.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Mc(e,r)){var y=u.memoizedProps;if(a=a.compare,a=a!==null?a:ls,a(y,s)&&e.ref===t.ref)return _n(e,t,r)}return t.flags|=1,e=Ln(u,s),e.ref=t.ref,e.return=t,t.child=e}function od(e,t,a,s,r){if(e!==null){var u=e.memoizedProps;if(ls(u,s)&&e.ref===t.ref)if(rt=!1,t.pendingProps=s=u,Mc(e,r))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,_n(e,t,r)}return Sc(e,t,a,s,r)}function rd(e,t,a,s){var r=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(s=t.child=e.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~u}else s=0,t.child=null;return cd(e,t,u,a,s)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nl(t,u!==null?u.cachePool:null),u!==null?f1(t,u):Qr(),d1(t);else return s=t.lanes=536870912,cd(e,t,u!==null?u.baseLanes|a:a,a,s)}else u!==null?(Nl(t,u.cachePool),f1(t,u),ia(),t.memoizedState=null):(e!==null&&Nl(t,null),Qr(),ia());return At(e,t,r,a),t.child}function Ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cd(e,t,a,s,r){var u=$r();return u=u===null?null:{parent:lt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Nl(t,null),Qr(),d1(t),e!==null&&pi(e,t,s,!0),t.childLanes=r,null}function Gl(e,t){return t=$l({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ud(e,t,a){return Za(t,e.child,null,a),e=Gl(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function j6(e,t,a){var s=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(s.mode==="hidden")return e=Gl(t,s),t.lanes=536870912,Ss(null,e);if(Jr(t),(e=Ye)?(e=Th(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:En,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=kf(e),a.return=t,t.child=a,yt=t,Ye=null)):e=null,e===null)throw Wn(t);return t.lanes=536870912,null}return Gl(t,s)}var u=e.memoizedState;if(u!==null){var y=u.dehydrated;if(Jr(t),r)if(t.flags&256)t.flags&=-257,t=ud(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(rt||pi(e,t,a,!1),r=(a&e.childLanes)!==0,rt||r){if(s=$e,s!==null&&(y=J0(s,a),y!==0&&y!==u.retryLane))throw u.retryLane=y,La(e,y),_t(s,e,y),Ac;eo(),t=ud(e,t,a)}else e=u.treeContext,Ye=sn(y.nextSibling),yt=t,Ie=!0,Qn=null,nn=!1,e!==null&&Kf(t,e),t=Gl(t,s),t.flags|=4096;return t}return e=Ln(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Sc(e,t,a,s,r){return ja(t),a=tc(e,t,a,s,void 0,r),s=nc(),e!==null&&!rt?(ac(e,t,r),_n(e,t,r)):(Ie&&s&&Ur(t),t.flags|=1,At(e,t,a,r),t.child)}function fd(e,t,a,s,r,u){return ja(t),t.updateQueue=null,a=m1(t,s,a,r),h1(e),s=nc(),e!==null&&!rt?(ac(e,t,u),_n(e,t,u)):(Ie&&s&&Ur(t),t.flags|=1,At(e,t,a,u),t.child)}function dd(e,t,a,s,r){if(ja(t),t.stateNode===null){var u=fi,y=a.contextType;typeof y=="object"&&y!==null&&(u=vt(y)),u=new a(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=yc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},kr(t),y=a.contextType,u.context=typeof y=="object"&&y!==null?vt(y):fi,u.state=t.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Ec(t,a,y,s),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(y=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),y!==u.state&&yc.enqueueReplaceState(u,u.state,null),gs(t,s,u,r),ps(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,R=Pa(a,S);u.props=R;var w=u.context,F=a.contextType;y=fi,typeof F=="object"&&F!==null&&(y=vt(F));var X=a.getDerivedStateFromProps;F=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||w!==y)&&W1(t,u,s,y),ea=!1;var j=t.memoizedState;u.state=j,gs(t,s,u,r),ps(),w=t.memoizedState,S||j!==w||ea?(typeof X=="function"&&(Ec(t,a,X,s),w=t.memoizedState),(R=ea||Q1(t,a,R,s,j,w,y))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=w),u.props=s,u.state=w,u.context=y,s=R):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Yr(e,t),y=t.memoizedProps,F=Pa(a,y),u.props=F,X=t.pendingProps,j=u.context,w=a.contextType,R=fi,typeof w=="object"&&w!==null&&(R=vt(w)),S=a.getDerivedStateFromProps,(w=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y!==X||j!==R)&&W1(t,u,s,R),ea=!1,j=t.memoizedState,u.state=j,gs(t,s,u,r),ps();var Z=t.memoizedState;y!==X||j!==Z||ea||e!==null&&e.dependencies!==null&&Ol(e.dependencies)?(typeof S=="function"&&(Ec(t,a,S,s),Z=t.memoizedState),(F=ea||Q1(t,a,F,s,j,Z,R)||e!==null&&e.dependencies!==null&&Ol(e.dependencies))?(w||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,Z,R),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,Z,R)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Z),u.props=s,u.state=Z,u.context=R,s=F):(typeof u.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,Fl(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=Za(t,e.child,null,r),t.child=Za(t,null,a,r)):At(e,t,a,r),t.memoizedState=u.state,e=t.child):e=_n(e,t,r),e}function hd(e,t,a,s){return wa(),t.flags|=256,At(e,t,a,s),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:n1()}}function bc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=$t),e}function md(e,t,a){var s=t.pendingProps,r=!1,u=(t.flags&128)!==0,y;if((y=u)||(y=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),y&&(r=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(r?aa(t):ia(),(e=Ye)?(e=Th(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:En,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=kf(e),a.return=t,t.child=a,yt=t,Ye=null)):e=null,e===null)throw Wn(t);return lu(e)?t.lanes=32:t.lanes=536870912,null}var S=s.children;return s=s.fallback,r?(ia(),r=t.mode,S=$l({mode:"hidden",children:S},r),s=Va(s,r,a,null),S.return=t,s.return=t,S.sibling=s,t.child=S,s=t.child,s.memoizedState=Cc(a),s.childLanes=bc(e,y,a),t.memoizedState=Tc,Ss(null,s)):(aa(t),Oc(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(u)t.flags&256?(aa(t),t.flags&=-257,t=Rc(e,t,a)):t.memoizedState!==null?(ia(),t.child=e.child,t.flags|=128,t=null):(ia(),S=s.fallback,r=t.mode,s=$l({mode:"visible",children:s.children},r),S=Va(S,r,a,null),S.flags|=2,s.return=t,S.return=t,s.sibling=S,t.child=s,Za(t,e.child,null,a),s=t.child,s.memoizedState=Cc(a),s.childLanes=bc(e,y,a),t.memoizedState=Tc,t=Ss(null,s));else if(aa(t),lu(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var w=y.dgst;y=w,s=Error(o(419)),s.stack="",s.digest=y,cs({value:s,source:null,stack:null}),t=Rc(e,t,a)}else if(rt||pi(e,t,a,!1),y=(a&e.childLanes)!==0,rt||y){if(y=$e,y!==null&&(s=J0(y,a),s!==0&&s!==R.retryLane))throw R.retryLane=s,La(e,s),_t(y,e,s),Ac;su(S)||eo(),t=Rc(e,t,a)}else su(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ye=sn(S.nextSibling),yt=t,Ie=!0,Qn=null,nn=!1,e!==null&&Kf(t,e),t=Oc(t,s.children),t.flags|=4096);return t}return r?(ia(),S=s.fallback,r=t.mode,R=e.child,w=R.sibling,s=Ln(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,w!==null?S=Ln(w,S):(S=Va(S,r,a,null),S.flags|=2),S.return=t,s.return=t,s.sibling=S,t.child=s,Ss(null,s),s=t.child,S=e.child.memoizedState,S===null?S=Cc(a):(r=S.cachePool,r!==null?(R=lt._currentValue,r=r.parent!==R?{parent:R,pool:R}:r):r=n1(),S={baseLanes:S.baseLanes|a,cachePool:r}),s.memoizedState=S,s.childLanes=bc(e,y,a),t.memoizedState=Tc,Ss(e.child,s)):(aa(t),a=e.child,e=a.sibling,a=Ln(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=a,t.memoizedState=null,a)}function Oc(e,t){return t=$l({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $l(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Rc(e,t,a){return Za(t,e.child,null,a),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Pr(e.return,t,a)}function Nc(e,t,a,s,r,u){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:r,treeForkCount:u}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=a,y.tailMode=r,y.treeForkCount=u)}function gd(e,t,a){var s=t.pendingProps,r=s.revealOrder,u=s.tail;s=s.children;var y=it.current,S=(y&2)!==0;if(S?(y=y&1|2,t.flags|=128):y&=1,ie(it,y),At(e,t,s,a),s=Ie?rs:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,a,t);else if(e.tag===19)pd(e,a,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}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&wl(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Nc(t,!1,r,a,u,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&wl(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Nc(t,!0,a,null,u,s);break;case"together":Nc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function _n(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(pi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Ln(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ln(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ol(e)))}function U6(e,t,a){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Jn(t,lt,e.memoizedState.cache),wa();break;case 27:case 5:pn(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jr(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(aa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?md(e,t,a):(aa(t),e=_n(e,t,a),e!==null?e.sibling:null);aa(t);break;case 19:var r=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(pi(e,t,a,!1),s=(a&t.childLanes)!==0),r){if(s)return gd(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ie(it,it.current),s)break;return null;case 22:return t.lanes=0,rd(e,t,a,t.pendingProps);case 24:Jn(t,lt,e.memoizedState.cache)}return _n(e,t,a)}function Ed(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Mc(e,a)&&(t.flags&128)===0)return rt=!1,U6(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ie&&(t.flags&1048576)!==0&&Xf(t,rs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=_a(t.elementType),t.type=e,typeof e=="function")wr(e)?(s=Pa(e,s),t.tag=1,t=dd(null,t,e,s,a)):(t.tag=0,t=Sc(null,t,e,s,a));else{if(e!=null){var r=e.$$typeof;if(r===P){t.tag=11,t=sd(null,t,e,s,a);break e}else if(r===W){t.tag=14,t=ld(null,t,e,s,a);break e}}throw t=be(e)||e,Error(o(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,r=Pa(s,t.pendingProps),dd(e,t,s,r,a);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(o(387));s=t.pendingProps;var u=t.memoizedState;r=u.element,Yr(e,t),gs(t,s,null,a);var y=t.memoizedState;if(s=y.cache,Jn(t,lt,s),s!==u.cache&&Br(t,[lt],a,!0),ps(),s=y.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=hd(e,t,s,a);break e}else if(s!==r){r=Jt(Error(o(424)),t),cs(r),t=hd(e,t,s,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ye=sn(e.firstChild),yt=t,Ie=!0,Qn=null,nn=!0,a=r1(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(wa(),s===r){t=_n(e,t,a);break e}At(e,t,s,a)}t=t.child}return t;case 26:return Fl(e,t),e===null?(a=Mh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ie||(a=t.type,e=t.pendingProps,s=oo(ge.current).createElement(a),s[Et]=t,s[Lt]=e,St(s,a,e),ht(s),t.stateNode=s):t.memoizedState=Mh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pn(t),e===null&&Ie&&(s=t.stateNode=Oh(t.type,t.pendingProps,ge.current),yt=t,nn=!0,r=Ye,da(t.type)?(ou=r,Ye=sn(s.firstChild)):Ye=r),At(e,t,t.pendingProps.children,a),Fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&((r=s=Ye)&&(s=dg(s,t.type,t.pendingProps,nn),s!==null?(t.stateNode=s,yt=t,Ye=sn(s.firstChild),nn=!1,r=!0):r=!1),r||Wn(t)),pn(t),r=t.type,u=t.pendingProps,y=e!==null?e.memoizedProps:null,s=u.children,nu(r,u)?s=null:y!==null&&nu(r,y)&&(t.flags|=32),t.memoizedState!==null&&(r=tc(e,t,N6,null,null,a),Us._currentValue=r),Fl(e,t),At(e,t,s,a),t.child;case 6:return e===null&&Ie&&((e=a=Ye)&&(a=hg(a,t.pendingProps,nn),a!==null?(t.stateNode=a,yt=t,Ye=null,e=!0):e=!1),e||Wn(t)),null;case 13:return md(e,t,a);case 4:return Ke(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Za(t,null,s,a):At(e,t,s,a),t.child;case 11:return sd(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Jn(t,t.type,s.value),At(e,t,s.children,a),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,ja(t),r=vt(r),s=s(r),t.flags|=1,At(e,t,s,a),t.child;case 14:return ld(e,t,t.type,t.pendingProps,a);case 15:return od(e,t,t.type,t.pendingProps,a);case 19:return gd(e,t,a);case 31:return j6(e,t,a);case 22:return rd(e,t,a,t.pendingProps);case 24:return ja(t),s=vt(lt),e===null?(r=$r(),r===null&&(r=$e,u=Gr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=a),r=u),t.memoizedState={parent:s,cache:r},kr(t),Jn(t,lt,r)):((e.lanes&a)!==0&&(Yr(e,t),gs(t,null,null,a),ps()),r=e.memoizedState,u=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Jn(t,lt,s)):(s=u.cache,Jn(t,lt,s),s!==r.cache&&Br(t,[lt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Hn(e){e.flags|=4}function xc(e,t,a,s,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Fd())e.flags|=8192;else throw Ha=xl,qr}else e.flags&=-16777217}function yd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wh(t))if(Fd())e.flags|=8192;else throw Ha=xl,qr}function ql(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?K0():536870912,e.lanes|=t,Ni|=t)}function Ts(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function _6(e,t,a){var s=t.pendingProps;switch(_r(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),In(lt),ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zr())),Xe(t),null;case 26:var r=t.type,u=t.memoizedState;return e===null?(Hn(t),u!==null?(Xe(t),yd(t,u)):(Xe(t),xc(t,r,null,s,a))):u?u!==e.memoizedState?(Hn(t),Xe(t),yd(t,u)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Hn(t),Xe(t),xc(t,r,e,s,a)),null;case 27:if(Rn(t),a=ge.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Xe(t),null}e=te.current,mi(t)?Qf(t):(e=Oh(r,s,a),t.stateNode=e,Hn(t))}return Xe(t),null;case 5:if(Rn(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Xe(t),null}if(u=te.current,mi(t))Qf(t);else{var y=oo(ge.current);switch(u){case 1:u=y.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=y.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=y.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=y.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=y.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?y.createElement(r,{is:s.is}):y.createElement(r)}}u[Et]=t,u[Lt]=s;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)u.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=u;e:switch(St(u,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Hn(t)}}return Xe(t),xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=ge.current,mi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,r=yt,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||mh(e.nodeValue,a)),e||Wn(t,!0)}else e=oo(e).createTextNode(s),e[Et]=t,t.stateNode=e}return Xe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(s=mi(t),a!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Et]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else a=Zr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Xe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=mi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[Et]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),r=!1}else r=Zr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==r&&(s.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ql(t,t.updateQueue),Xe(t),null);case 4:return ze(),e===null&&Qc(t.stateNode.containerInfo),Xe(t),null;case 10:return In(t.type),Xe(t),null;case 19:if(L(it),s=t.memoizedState,s===null)return Xe(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)Ts(s,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=wl(e),u!==null){for(t.flags|=128,Ts(s,!1),e=u.updateQueue,t.updateQueue=e,ql(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)qf(a,e),a=a.sibling;return ie(it,it.current&1|2),Ie&&Vn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&>()>Ql&&(t.flags|=128,r=!0,Ts(s,!1),t.lanes=4194304)}else{if(!r)if(e=wl(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ql(t,e),Ts(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Ie)return Xe(t),null}else 2*gt()-s.renderingStartTime>Ql&&a!==536870912&&(t.flags|=128,r=!0,Ts(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=gt(),e.sibling=null,a=it.current,ie(it,r?a&1|2:a&1),Ie&&Vn(t,s.treeForkCount),e):(Xe(t),null);case 22:case 23:return Gt(t),Wr(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),a=t.updateQueue,a!==null&&ql(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&L(Ua),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),In(lt),Xe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function H6(e,t){switch(_r(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(lt),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rn(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(o(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(it),null;case 4:return ze(),null;case 10:return In(t.type),null;case 22:case 23:return Gt(t),Wr(),e!==null&&L(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return In(lt),null;case 25:return null;default:return null}}function vd(e,t){switch(_r(t),t.tag){case 3:In(lt),ze();break;case 26:case 27:case 5:Rn(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:L(it);break;case 10:In(t.type);break;case 22:case 23:Gt(t),Wr(),e!==null&&L(Ua);break;case 24:In(lt)}}function Cs(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&e)===e){s=void 0;var u=a.create,y=a.inst;s=u(),y.destroy=s}a=a.next}while(a!==r)}}catch(S){Ze(t,t.return,S)}}function sa(e,t,a){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&e)===e){var y=s.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,r=t;var R=a,w=S;try{w()}catch(F){Ze(r,R,F)}}}s=s.next}while(s!==u)}}catch(F){Ze(t,t.return,F)}}function Ad(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{u1(t,a)}catch(s){Ze(e,e.return,s)}}}function Sd(e,t,a){a.props=Pa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Ze(e,t,s)}}function bs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(r){Ze(e,t,r)}}function vn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(r){Ze(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ze(e,t,r)}else a.current=null}function Td(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(r){Ze(e,e.return,r)}}function Dc(e,t,a){try{var s=e.stateNode;lg(s,e.type,a,t),s[Lt]=t}catch(r){Ze(e,e.return,r)}}function Cd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&da(e.type)||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(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.tag===27&&da(e.type)||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 Vc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=xn));else if(s!==4&&(s===27&&da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Vc(e,t,a),e=e.sibling;e!==null;)Vc(e,t,a),e=e.sibling}function kl(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(kl(e,t,a),e=e.sibling;e!==null;)kl(e,t,a),e=e.sibling}function bd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);St(t,s,a),t[Et]=e,t[Lt]=a}catch(u){Ze(e,e.return,u)}}var Zn=!1,ct=!1,wc=!1,Od=typeof WeakSet=="function"?WeakSet:Set,mt=null;function Z6(e,t){if(e=e.containerInfo,eu=po,e=_f(e),Rr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var r=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var y=0,S=-1,R=-1,w=0,F=0,X=e,j=null;t:for(;;){for(var Z;X!==a||r!==0&&X.nodeType!==3||(S=y+r),X!==u||s!==0&&X.nodeType!==3||(R=y+s),X.nodeType===3&&(y+=X.nodeValue.length),(Z=X.firstChild)!==null;)j=X,X=Z;for(;;){if(X===e)break t;if(j===a&&++w===r&&(S=y),j===u&&++F===s&&(R=y),(Z=X.nextSibling)!==null)break;X=j,j=X.parentNode}X=Z}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(tu={focusedElem:e,selectionRange:a},po=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,r=u.memoizedProps,u=u.memoizedState,s=a.stateNode;try{var de=Pa(a.type,r);e=s.getSnapshotBeforeUpdate(de,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ae){Ze(a,a.return,Ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)iu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":iu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function Rd(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Pn(e,a),s&4&&Cs(5,a);break;case 1:if(Pn(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(y){Ze(a,a.return,y)}else{var r=Pa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Ze(a,a.return,y)}}s&64&&Ad(a),s&512&&bs(a,a.return);break;case 3:if(Pn(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{u1(e,t)}catch(y){Ze(a,a.return,y)}}break;case 27:t===null&&s&4&&bd(a);case 26:case 5:Pn(e,a),t===null&&s&4&&Td(a),s&512&&bs(a,a.return);break;case 12:Pn(e,a);break;case 31:Pn(e,a),s&4&&xd(e,a);break;case 13:Pn(e,a),s&4&&Dd(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Y6.bind(null,a),mg(e,a))));break;case 22:if(s=a.memoizedState!==null||Zn,!s){t=t!==null&&t.memoizedState!==null||ct,r=Zn;var u=ct;Zn=s,(ct=t)&&!u?Bn(e,a,(a.subtreeFlags&8772)!==0):Pn(e,a),Zn=r,ct=u}break;case 30:break;default:Pn(e,a)}}function Nd(e){var t=e.alternate;t!==null&&(e.alternate=null,Nd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,wt=!1;function zn(e,t,a){for(a=a.child;a!==null;)Md(e,t,a),a=a.sibling}function Md(e,t,a){if(J&&typeof J.onCommitFiberUnmount=="function")try{J.onCommitFiberUnmount(G,a)}catch{}switch(a.tag){case 26:ct||vn(a,t),zn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||vn(a,t);var s=Qe,r=wt;da(a.type)&&(Qe=a.stateNode,wt=!1),zn(e,t,a),ws(a.stateNode),Qe=s,wt=r;break;case 5:ct||vn(a,t);case 6:if(s=Qe,r=wt,Qe=null,zn(e,t,a),Qe=s,wt=r,Qe!==null)if(wt)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(a.stateNode)}catch(u){Ze(a,t,u)}else try{Qe.removeChild(a.stateNode)}catch(u){Ze(a,t,u)}break;case 18:Qe!==null&&(wt?(e=Qe,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ji(e)):Ah(Qe,a.stateNode));break;case 4:s=Qe,r=wt,Qe=a.stateNode.containerInfo,wt=!0,zn(e,t,a),Qe=s,wt=r;break;case 0:case 11:case 14:case 15:sa(2,a,t),ct||sa(4,a,t),zn(e,t,a);break;case 1:ct||(vn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Sd(a,t,s)),zn(e,t,a);break;case 21:zn(e,t,a);break;case 22:ct=(s=ct)||a.memoizedState!==null,zn(e,t,a),ct=s;break;default:zn(e,t,a)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ji(e)}catch(a){Ze(t,t.return,a)}}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(a){Ze(t,t.return,a)}}function z6(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Od),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Od),t;default:throw Error(o(435,e.tag))}}function Yl(e,t){var a=z6(e);t.forEach(function(s){if(!a.has(s)){a.add(s);var r=X6.bind(null,e,s);s.then(r,r)}})}function It(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var r=a[s],u=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(da(S.type)){Qe=S.stateNode,wt=!1;break e}break;case 5:Qe=S.stateNode,wt=!1;break e;case 3:case 4:Qe=S.stateNode.containerInfo,wt=!0;break e}S=S.return}if(Qe===null)throw Error(o(160));Md(u,y,r),Qe=null,wt=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e),t=t.sibling}var un=null;function Ld(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:It(t,e),jt(e),s&4&&(sa(3,e,e.return),Cs(3,e),sa(5,e,e.return));break;case 1:It(t,e),jt(e),s&512&&(ct||a===null||vn(a,a.return)),s&64&&Zn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var r=un;if(It(t,e),jt(e),s&512&&(ct||a===null||vn(a,a.return)),s&4){var u=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(s){case"title":u=r.getElementsByTagName("title")[0],(!u||u[Qi]||u[Et]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(s),r.head.insertBefore(u,r.querySelector("head > title"))),St(u,s,a),u[Et]=e,ht(u),s=u;break e;case"link":var y=Lh("link","href",r).get(s+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(u=y[S],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break t}}u=r.createElement(s),St(u,s,a),r.head.appendChild(u);break;case"meta":if(y=Lh("meta","content",r).get(s+(a.content||""))){for(S=0;S<y.length;S++)if(u=y[S],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break t}}u=r.createElement(s),St(u,s,a),r.head.appendChild(u);break;default:throw Error(o(468,s))}u[Et]=e,ht(u),s=u}e.stateNode=s}else Vh(r,e.type,e.stateNode);else e.stateNode=Dh(r,s,e.memoizedProps);else u!==s?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,s===null?Vh(r,e.type,e.stateNode):Dh(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Dc(e,e.memoizedProps,a.memoizedProps)}break;case 27:It(t,e),jt(e),s&512&&(ct||a===null||vn(a,a.return)),a!==null&&s&4&&Dc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(It(t,e),jt(e),s&512&&(ct||a===null||vn(a,a.return)),e.flags&32){r=e.stateNode;try{ii(r,"")}catch(de){Ze(e,e.return,de)}}s&4&&e.stateNode!=null&&(r=e.memoizedProps,Dc(e,r,a!==null?a.memoizedProps:r)),s&1024&&(wc=!0);break;case 6:if(It(t,e),jt(e),s&4){if(e.stateNode===null)throw Error(o(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(de){Ze(e,e.return,de)}}break;case 3:if(uo=null,r=un,un=ro(t.containerInfo),It(t,e),un=r,jt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(de){Ze(e,e.return,de)}wc&&(wc=!1,Vd(e));break;case 4:s=un,un=ro(e.stateNode.containerInfo),It(t,e),jt(e),un=s;break;case 12:It(t,e),jt(e);break;case 31:It(t,e),jt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 13:It(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Kl=gt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 22:r=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,w=Zn,F=ct;if(Zn=w||r,ct=F||R,It(t,e),ct=F,Zn=w,jt(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||R||Zn||ct||Ba(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(u=R.stateNode,r)y=u.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=R.stateNode;var X=R.memoizedProps.style,j=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(de){Ze(R,R.return,de)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=r?"":R.memoizedProps}catch(de){Ze(R,R.return,de)}}}else if(t.tag===18){if(a===null){R=t;try{var Z=R.stateNode;r?Sh(Z,!0):Sh(R.stateNode,!1)}catch(de){Ze(R,R.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Yl(e,a))));break;case 19:It(t,e),jt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 30:break;case 21:break;default:It(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(Cd(s)){a=s;break}s=s.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var r=a.stateNode,u=Lc(e);kl(e,u,r);break;case 5:var y=a.stateNode;a.flags&32&&(ii(y,""),a.flags&=-33);var S=Lc(e);kl(e,S,y);break;case 3:case 4:var R=a.stateNode.containerInfo,w=Lc(e);Vc(e,w,R);break;default:throw Error(o(161))}}catch(F){Ze(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rd(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sa(4,t,t.return),Ba(t);break;case 1:vn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Sd(t,t.return,a),Ba(t);break;case 27:ws(t.stateNode);case 26:case 5:vn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function Bn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,r=e,u=t,y=u.flags;switch(u.tag){case 0:case 11:case 15:Bn(r,u,a),Cs(4,u);break;case 1:if(Bn(r,u,a),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(w){Ze(s,s.return,w)}if(s=u,r=s.updateQueue,r!==null){var S=s.stateNode;try{var R=r.shared.hiddenCallbacks;if(R!==null)for(r.shared.hiddenCallbacks=null,r=0;r<R.length;r++)c1(R[r],S)}catch(w){Ze(s,s.return,w)}}a&&y&64&&Ad(u),bs(u,u.return);break;case 27:bd(u);case 26:case 5:Bn(r,u,a),a&&s===null&&y&4&&Td(u),bs(u,u.return);break;case 12:Bn(r,u,a);break;case 31:Bn(r,u,a),a&&y&4&&xd(r,u);break;case 13:Bn(r,u,a),a&&y&4&&Dd(r,u);break;case 22:u.memoizedState===null&&Bn(r,u,a),bs(u,u.return);break;case 30:break;default:Bn(r,u,a)}t=t.sibling}}function Ic(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&us(a))}function jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&us(e))}function fn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wd(e,t,a,s),t=t.sibling}function wd(e,t,a,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,a,s),r&2048&&Cs(9,t);break;case 1:fn(e,t,a,s);break;case 3:fn(e,t,a,s),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&us(e)));break;case 12:if(r&2048){fn(e,t,a,s),e=t.stateNode;try{var u=t.memoizedProps,y=u.id,S=u.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Ze(t,t.return,R)}}else fn(e,t,a,s);break;case 31:fn(e,t,a,s);break;case 13:fn(e,t,a,s);break;case 23:break;case 22:u=t.stateNode,y=t.alternate,t.memoizedState!==null?u._visibility&2?fn(e,t,a,s):Os(e,t):u._visibility&2?fn(e,t,a,s):(u._visibility|=2,bi(e,t,a,s,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Ic(y,t);break;case 24:fn(e,t,a,s),r&2048&&jc(t.alternate,t);break;default:fn(e,t,a,s)}}function bi(e,t,a,s,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,y=t,S=a,R=s,w=y.flags;switch(y.tag){case 0:case 11:case 15:bi(u,y,S,R,r),Cs(8,y);break;case 23:break;case 22:var F=y.stateNode;y.memoizedState!==null?F._visibility&2?bi(u,y,S,R,r):Os(u,y):(F._visibility|=2,bi(u,y,S,R,r)),r&&w&2048&&Ic(y.alternate,y);break;case 24:bi(u,y,S,R,r),r&&w&2048&&jc(y.alternate,y);break;default:bi(u,y,S,R,r)}t=t.sibling}}function Os(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,r=s.flags;switch(s.tag){case 22:Os(a,s),r&2048&&Ic(s.alternate,s);break;case 24:Os(a,s),r&2048&&jc(s.alternate,s);break;default:Os(a,s)}t=t.sibling}}var Rs=8192;function Oi(e,t,a){if(e.subtreeFlags&Rs)for(e=e.child;e!==null;)Id(e,t,a),e=e.sibling}function Id(e,t,a){switch(e.tag){case 26:Oi(e,t,a),e.flags&Rs&&e.memoizedState!==null&&Rg(a,un,e.memoizedState,e.memoizedProps);break;case 5:Oi(e,t,a);break;case 3:case 4:var s=un;un=ro(e.stateNode.containerInfo),Oi(e,t,a),un=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Rs,Rs=16777216,Oi(e,t,a),Rs=s):Oi(e,t,a));break;default:Oi(e,t,a)}}function jd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];mt=s,_d(s,e)}jd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ud(e),e=e.sibling}function Ud(e){switch(e.tag){case 0:case 11:case 15:Ns(e),e.flags&2048&&sa(9,e,e.return);break;case 3:Ns(e);break;case 12:Ns(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xl(e)):Ns(e);break;default:Ns(e)}}function Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];mt=s,_d(s,e)}jd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:sa(8,t,t.return),Xl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Xl(t));break;default:Xl(t)}e=e.sibling}}function _d(e,t){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:sa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:us(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,mt=s;else e:for(a=e;mt!==null;){s=mt;var r=s.sibling,u=s.return;if(Nd(s),s===a){mt=null;break e}if(r!==null){r.return=u,mt=r;break e}mt=u}}}var P6={getCacheForType:function(e){var t=vt(lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return vt(lt).controller.signal}},B6=typeof WeakMap=="function"?WeakMap:Map,_e=0,$e=null,xe=null,Ve=0,He=0,Ft=null,la=!1,Ri=!1,Uc=!1,Gn=0,et=0,oa=0,Ga=0,_c=0,$t=0,Ni=0,Ms=null,Ut=null,Hc=!1,Kl=0,Hd=0,Ql=1/0,Wl=null,ra=null,ft=0,ca=null,Mi=null,Fn=0,Zc=0,zc=null,Zd=null,xs=0,Pc=null;function qt(){return(_e&2)!==0&&Ve!==0?Ve&-Ve:I.T!==null?kc():ef()}function zd(){if($t===0)if((Ve&536870912)===0||Ie){var e=Fe;Fe<<=1,(Fe&3932160)===0&&(Fe=262144),$t=e}else $t=536870912;return e=Bt.current,e!==null&&(e.flags|=32),$t}function _t(e,t,a){(e===$e&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(xi(e,0),ua(e,Ve,$t,!1)),Ki(e,a),((_e&2)===0||e!==$e)&&(e===$e&&((_e&2)===0&&(Ga|=a),et===4&&ua(e,Ve,$t,!1)),An(e))}function Pd(e,t,a){if((_e&6)!==0)throw Error(o(327));var s=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Xi(e,t),r=s?$6(e,t):Gc(e,t,!0),u=s;do{if(r===0){Ri&&!s&&ua(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!G6(a)){r=Gc(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var S=e;r=Ms;var R=S.current.memoizedState.isDehydrated;if(R&&(xi(S,y).flags|=256),y=Gc(S,y,!1),y!==2){if(Uc&&!R){S.errorRecoveryDisabledLanes|=u,Ga|=u,r=4;break e}u=Ut,Ut=r,u!==null&&(Ut===null?Ut=u:Ut.push.apply(Ut,u))}r=y}if(u=!1,r!==2)continue}}if(r===1){xi(e,0),ua(e,t,0,!0);break}e:{switch(s=e,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ua(s,t,$t,!la);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=Kl+300-gt(),10<r)){if(ua(s,t,$t,!la),Qa(s,0,!0)!==0)break e;Fn=t,s.timeoutHandle=yh(Bd.bind(null,s,a,Ut,Wl,Hc,t,$t,Ga,Ni,la,u,"Throttled",-0,0),r);break e}Bd(s,a,Ut,Wl,Hc,t,$t,Ga,Ni,la,u,null,-0,0)}}break}while(!0);An(e)}function Bd(e,t,a,s,r,u,y,S,R,w,F,X,j,Z){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},Id(t,u,X);var de=(u&62914560)===u?Kl-gt():(u&4194048)===u?Hd-gt():0;if(de=Ng(X,de),de!==null){Fn=u,e.cancelPendingCommit=de(Kd.bind(null,e,t,u,a,s,r,y,S,R,F,X,null,j,Z)),ua(e,u,y,!w);return}}Kd(e,t,u,a,s,r,y,S,R)}function G6(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var r=a[s],u=r.getSnapshot;r=r.value;try{if(!zt(u(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ua(e,t,a,s){t&=~_c,t&=~Ga,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var u=31-ae(r),y=1<<u;s[u]=-1,r&=~y}a!==0&&Q0(e,a,t)}function Jl(){return(_e&6)===0?(Ds(0),!1):!0}function Bc(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,wn=Ia=null,ic(e),vi=null,ds=0,e=xe;for(;e!==null;)vd(e.alternate,e),e=e.return;xe=null}}function xi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Fn=0,Bc(),$e=e,xe=a=Ln(e.current,null),Ve=t,He=0,Ft=null,la=!1,Ri=Xi(e,t),Uc=!1,Ni=$t=_c=Ga=oa=et=0,Ut=Ms=null,Hc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-ae(s),u=1<<r;t|=e[r],s&=~u}return Gn=t,Al(),a}function Gd(e,t){Oe=null,I.H=As,t===yi||t===Ml?(t=s1(),He=3):t===qr?(t=s1(),He=4):He=t===Ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,xe===null&&(et=1,Bl(e,Jt(t,e.current)))}function Fd(){var e=Bt.current;return e===null?!0:(Ve&4194048)===Ve?an===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===an:!1}function $d(){var e=I.H;return I.H=As,e===null?As:e}function qd(){var e=I.A;return I.A=P6,e}function eo(){et=4,la||(Ve&4194048)!==Ve&&Bt.current!==null||(Ri=!0),(oa&134217727)===0&&(Ga&134217727)===0||$e===null||ua($e,Ve,$t,!1)}function Gc(e,t,a){var s=_e;_e|=2;var r=$d(),u=qd();($e!==e||Ve!==t)&&(Wl=null,xi(e,t)),t=!1;var y=et;e:do try{if(He!==0&&xe!==null){var S=xe,R=Ft;switch(He){case 8:Bc(),y=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var w=He;if(He=0,Ft=null,Di(e,S,R,w),a&&Ri){y=0;break e}break;default:w=He,He=0,Ft=null,Di(e,S,R,w)}}F6(),y=et;break}catch(F){Gd(e,F)}while(!0);return t&&e.shellSuspendCounter++,wn=Ia=null,_e=s,I.H=r,I.A=u,xe===null&&($e=null,Ve=0,Al()),y}function F6(){for(;xe!==null;)kd(xe)}function $6(e,t){var a=_e;_e|=2;var s=$d(),r=qd();$e!==e||Ve!==t?(Wl=null,Ql=gt()+500,xi(e,t)):Ri=Xi(e,t);e:do try{if(He!==0&&xe!==null){t=xe;var u=Ft;t:switch(He){case 1:He=0,Ft=null,Di(e,t,u,1);break;case 2:case 9:if(a1(u)){He=0,Ft=null,Yd(t);break}t=function(){He!==2&&He!==9||$e!==e||(He=7),An(e)},u.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:a1(u)?(He=0,Ft=null,Yd(t)):(He=0,Ft=null,Di(e,t,u,7));break;case 5:var y=null;switch(xe.tag){case 26:y=xe.memoizedState;case 5:case 27:var S=xe;if(y?wh(y):S.stateNode.complete){He=0,Ft=null;var R=S.sibling;if(R!==null)xe=R;else{var w=S.return;w!==null?(xe=w,to(w)):xe=null}break t}}He=0,Ft=null,Di(e,t,u,5);break;case 6:He=0,Ft=null,Di(e,t,u,6);break;case 8:Bc(),et=6;break e;default:throw Error(o(462))}}q6();break}catch(F){Gd(e,F)}while(!0);return wn=Ia=null,I.H=s,I.A=r,_e=a,xe!==null?0:($e=null,Ve=0,Al(),et)}function q6(){for(;xe!==null&&!il();)kd(xe)}function kd(e){var t=Ed(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function Yd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=fd(a,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=fd(a,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:ic(t);default:vd(a,t),t=xe=qf(t,Gn),t=Ed(a,t,Gn)}e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function Di(e,t,a,s){wn=Ia=null,ic(t),vi=null,ds=0;var r=t.return;try{if(I6(e,r,t,a,Ve)){et=1,Bl(e,Jt(a,e.current)),xe=null;return}}catch(u){if(r!==null)throw xe=r,u;et=1,Bl(e,Jt(a,e.current)),xe=null;return}t.flags&32768?(Ie||s===1?e=!0:Ri||(Ve&536870912)!==0?e=!1:(la=e=!0,(s===2||s===9||s===3||s===6)&&(s=Bt.current,s!==null&&s.tag===13&&(s.flags|=16384))),Xd(t,e)):to(t)}function to(e){var t=e;do{if((t.flags&32768)!==0){Xd(t,la);return}e=t.return;var a=_6(t.alternate,t,Gn);if(a!==null){xe=a;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);et===0&&(et=5)}function Xd(e,t){do{var a=H6(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);et=6,xe=null}function Kd(e,t,a,s,r,u,y,S,R){e.cancelPendingCommit=null;do no();while(ft!==0);if((_e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Lr,O4(e,a,u,y,S,R),e===$e&&(xe=$e=null,Ve=0),Mi=t,ca=e,Fn=a,Zc=u,zc=r,Zd=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,K6(Ra,function(){return th(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=I.T,I.T=null,r=ee.p,ee.p=2,y=_e,_e|=4;try{Z6(e,t,a)}finally{_e=y,ee.p=r,I.T=s}}ft=1,Qd(),Wd(),Jd()}}function Qd(){if(ft===1){ft=0;var e=ca,t=Mi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null;var s=ee.p;ee.p=2;var r=_e;_e|=4;try{Ld(t,e);var u=tu,y=_f(e.containerInfo),S=u.focusedElem,R=u.selectionRange;if(y!==S&&S&&S.ownerDocument&&Uf(S.ownerDocument.documentElement,S)){if(R!==null&&Rr(S)){var w=R.start,F=R.end;if(F===void 0&&(F=w),"selectionStart"in S)S.selectionStart=w,S.selectionEnd=Math.min(F,S.value.length);else{var X=S.ownerDocument||document,j=X&&X.defaultView||window;if(j.getSelection){var Z=j.getSelection(),de=S.textContent.length,Ae=Math.min(R.start,de),Ge=R.end===void 0?Ae:Math.min(R.end,de);!Z.extend&&Ae>Ge&&(y=Ge,Ge=Ae,Ae=y);var x=jf(S,Ae),N=jf(S,Ge);if(x&&N&&(Z.rangeCount!==1||Z.anchorNode!==x.node||Z.anchorOffset!==x.offset||Z.focusNode!==N.node||Z.focusOffset!==N.offset)){var V=X.createRange();V.setStart(x.node,x.offset),Z.removeAllRanges(),Ae>Ge?(Z.addRange(V),Z.extend(N.node,N.offset)):(V.setEnd(N.node,N.offset),Z.addRange(V))}}}}for(X=[],Z=S;Z=Z.parentNode;)Z.nodeType===1&&X.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var k=X[S];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}po=!!eu,tu=eu=null}finally{_e=r,ee.p=s,I.T=a}}e.current=t,ft=2}}function Wd(){if(ft===2){ft=0;var e=ca,t=Mi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=I.T,I.T=null;var s=ee.p;ee.p=2;var r=_e;_e|=4;try{Rd(e,t.alternate,t)}finally{_e=r,ee.p=s,I.T=a}}ft=3}}function Jd(){if(ft===4||ft===3){ft=0,sl();var e=ca,t=Mi,a=Fn,s=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,Mi=ca=null,eh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ra=null),or(a),t=t.stateNode,J&&typeof J.onCommitFiberRoot=="function")try{J.onCommitFiberRoot(G,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=I.T,r=ee.p,ee.p=2,I.T=null;try{for(var u=e.onRecoverableError,y=0;y<s.length;y++){var S=s[y];u(S.value,{componentStack:S.stack})}}finally{I.T=t,ee.p=r}}(Fn&3)!==0&&no(),An(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Pc?xs++:(xs=0,Pc=e):xs=0,Ds(0)}}function eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,us(t)))}function no(){return Qd(),Wd(),Jd(),th()}function th(){if(ft!==5)return!1;var e=ca,t=Zc;Zc=0;var a=or(Fn),s=I.T,r=ee.p;try{ee.p=32>a?32:a,I.T=null,a=zc,zc=null;var u=ca,y=Fn;if(ft=0,Mi=ca=null,Fn=0,(_e&6)!==0)throw Error(o(331));var S=_e;if(_e|=4,Ud(u.current),wd(u,u.current,y,a),_e=S,Ds(0,!1),J&&typeof J.onPostCommitFiberRoot=="function")try{J.onPostCommitFiberRoot(G,u)}catch{}return!0}finally{ee.p=r,I.T=s,eh(e,t)}}function nh(e,t,a){t=Jt(a,t),t=vc(e.stateNode,t,2),e=na(e,t,2),e!==null&&(Ki(e,2),An(e))}function Ze(e,t,a){if(e.tag===3)nh(e,e,a);else for(;t!==null;){if(t.tag===3){nh(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ra===null||!ra.has(s))){e=Jt(a,e),a=ad(2),s=na(t,a,2),s!==null&&(id(a,s,t,e),Ki(s,2),An(s));break}}t=t.return}}function Fc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new B6;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(a)||(Uc=!0,r.add(a),e=k6.bind(null,e,t,a),t.then(e,e))}function k6(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,$e===e&&(Ve&a)===a&&(et===4||et===3&&(Ve&62914560)===Ve&&300>gt()-Kl?(_e&2)===0&&xi(e,0):_c|=a,Ni===Ve&&(Ni=0)),An(e)}function ah(e,t){t===0&&(t=K0()),e=La(e,t),e!==null&&(Ki(e,t),An(e))}function Y6(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ah(e,a)}function X6(e,t){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),ah(e,a)}function K6(e,t){return ba(e,t)}var ao=null,Li=null,$c=!1,io=!1,qc=!1,fa=0;function An(e){e!==Li&&e.next===null&&(Li===null?ao=Li=e:Li=Li.next=e),io=!0,$c||($c=!0,W6())}function Ds(e,t){if(!qc&&io){qc=!0;do for(var a=!1,s=ao;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var u=0;else{var y=s.suspendedLanes,S=s.pingedLanes;u=(1<<31-ae(42|e)+1)-1,u&=r&~(y&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,oh(s,u))}else u=Ve,u=Qa(s,s===$e?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Xi(s,u)||(a=!0,oh(s,u));s=s.next}while(a);qc=!1}}function Q6(){ih()}function ih(){io=$c=!1;var e=0;fa!==0&&rg()&&(e=fa);for(var t=gt(),a=null,s=ao;s!==null;){var r=s.next,u=sh(s,t);u===0?(s.next=null,a===null?ao=r:a.next=r,r===null&&(Li=a)):(a=s,(e!==0||(u&3)!==0)&&(io=!0)),s=r}ft!==0&&ft!==5||Ds(e),fa!==0&&(fa=0)}function sh(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var y=31-ae(u),S=1<<y,R=r[y];R===-1?((S&a)===0||(S&s)!==0)&&(r[y]=b4(S,t)):R<=t&&(e.expiredLanes|=S),u&=~S}if(t=$e,a=Ve,a=Qa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Oa(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Oa(s),or(a)){case 2:case 8:a=Yi;break;case 32:a=Ra;break;case 268435456:a=rl;break;default:a=Ra}return s=lh.bind(null,e),a=ba(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Oa(s),e.callbackPriority=2,e.callbackNode=null,2}function lh(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(no()&&e.callbackNode!==a)return null;var s=Ve;return s=Qa(e,e===$e?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Pd(e,s,t),sh(e,gt()),e.callbackNode!=null&&e.callbackNode===a?lh.bind(null,e):null)}function oh(e,t){if(no())return null;Pd(e,t,!0)}function W6(){ug(function(){(_e&6)!==0?ba(ll,Q6):ih()})}function kc(){if(fa===0){var e=gi;e===0&&(e=Me,Me<<=1,(Me&261888)===0&&(Me=256)),fa=e}return fa}function rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:dl(""+e)}function ch(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function J6(e,t,a,s,r){if(t==="submit"&&a&&a.stateNode===r){var u=rh((r[Lt]||null).action),y=s.submitter;y&&(t=(t=y[Lt]||null)?rh(t.formAction):y.getAttribute("formAction"),t!==null&&(u=t,y=null));var S=new gl("action","action",null,s,r);e.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(fa!==0){var R=y?ch(r,y):new FormData(r);hc(a,{pending:!0,data:R,method:r.method,action:u},null,R)}}else typeof u=="function"&&(S.preventDefault(),R=y?ch(r,y):new FormData(r),hc(a,{pending:!0,data:R,method:r.method,action:u},u,R))},currentTarget:r}]})}}for(var Yc=0;Yc<Dr.length;Yc++){var Xc=Dr[Yc],eg=Xc.toLowerCase(),tg=Xc[0].toUpperCase()+Xc.slice(1);cn(eg,"on"+tg)}cn(zf,"onAnimationEnd"),cn(Pf,"onAnimationIteration"),cn(Bf,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(E6,"onTransitionRun"),cn(y6,"onTransitionStart"),cn(v6,"onTransitionCancel"),cn(Gf,"onTransitionEnd"),ni("onMouseEnter",["mouseout","mouseover"]),ni("onMouseLeave",["mouseout","mouseover"]),ni("onPointerEnter",["pointerout","pointerover"]),ni("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),ng=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function uh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],r=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var y=s.length-1;0<=y;y--){var S=s[y],R=S.instance,w=S.currentTarget;if(S=S.listener,R!==u&&r.isPropagationStopped())break e;u=S,r.currentTarget=w;try{u(r)}catch(F){vl(F)}r.currentTarget=null,u=R}else for(y=0;y<s.length;y++){if(S=s[y],R=S.instance,w=S.currentTarget,S=S.listener,R!==u&&r.isPropagationStopped())break e;u=S,r.currentTarget=w;try{u(r)}catch(F){vl(F)}r.currentTarget=null,u=R}}}}function De(e,t){var a=t[rr];a===void 0&&(a=t[rr]=new Set);var s=e+"__bubble";a.has(s)||(fh(t,e,2,!1),a.add(s))}function Kc(e,t,a){var s=0;t&&(s|=4),fh(a,e,s,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function Qc(e){if(!e[so]){e[so]=!0,af.forEach(function(a){a!=="selectionchange"&&(ng.has(a)||Kc(a,!1,e),Kc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Kc("selectionchange",!1,t))}}function fh(e,t,a,s){switch(zh(t)){case 2:var r=Dg;break;case 8:r=Lg;break;default:r=du}a=r.bind(null,t,a,e),r=void 0,!Er||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Wc(e,t,a,s,r){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var S=s.stateNode.containerInfo;if(S===r)break;if(y===4)for(y=s.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===r)return;y=y.return}for(;S!==null;){if(y=Ja(S),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){s=u=y;continue e}S=S.parentNode}}s=s.return}gf(function(){var w=u,F=pr(a),X=[];e:{var j=Ff.get(e);if(j!==void 0){var Z=gl,de=e;switch(e){case"keypress":if(ml(a)===0)break e;case"keydown":case"keyup":Z=X4;break;case"focusin":de="focus",Z=Sr;break;case"focusout":de="blur",Z=Sr;break;case"beforeblur":case"afterblur":Z=Sr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=_4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=W4;break;case zf:case Pf:case Bf:Z=z4;break;case Gf:Z=e6;break;case"scroll":case"scrollend":Z=j4;break;case"wheel":Z=n6;break;case"copy":case"cut":case"paste":Z=B4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Sf;break;case"toggle":case"beforetoggle":Z=i6}var Ae=(t&4)!==0,Ge=!Ae&&(e==="scroll"||e==="scrollend"),x=Ae?j!==null?j+"Capture":null:j;Ae=[];for(var N=w,V;N!==null;){var k=N;if(V=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||V===null||x===null||(k=Ji(N,x),k!=null&&Ae.push(Vs(N,k,V))),Ge)break;N=N.return}0<Ae.length&&(j=new Z(j,de,null,a,F),X.push({event:j,listeners:Ae}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",j&&a!==mr&&(de=a.relatedTarget||a.fromElement)&&(Ja(de)||de[Wa]))break e;if((Z||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,Z?(de=a.relatedTarget||a.toElement,Z=w,de=de?Ja(de):null,de!==null&&(Ge=f(de),Ae=de.tag,de!==Ge||Ae!==5&&Ae!==27&&Ae!==6)&&(de=null)):(Z=null,de=w),Z!==de)){if(Ae=vf,k="onMouseLeave",x="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=Sf,k="onPointerLeave",x="onPointerEnter",N="pointer"),Ge=Z==null?j:Wi(Z),V=de==null?j:Wi(de),j=new Ae(k,N+"leave",Z,a,F),j.target=Ge,j.relatedTarget=V,k=null,Ja(F)===w&&(Ae=new Ae(x,N+"enter",de,a,F),Ae.target=V,Ae.relatedTarget=Ge,k=Ae),Ge=k,Z&&de)t:{for(Ae=ag,x=Z,N=de,V=0,k=x;k;k=Ae(k))V++;k=0;for(var ye=N;ye;ye=Ae(ye))k++;for(;0<V-k;)x=Ae(x),V--;for(;0<k-V;)N=Ae(N),k--;for(;V--;){if(x===N||N!==null&&x===N.alternate){Ae=x;break t}x=Ae(x),N=Ae(N)}Ae=null}else Ae=null;Z!==null&&dh(X,j,Z,Ae,!1),de!==null&&Ge!==null&&dh(X,Ge,de,Ae,!0)}}e:{if(j=w?Wi(w):window,Z=j.nodeName&&j.nodeName.toLowerCase(),Z==="select"||Z==="input"&&j.type==="file")var je=xf;else if(Nf(j))if(Df)je=m6;else{je=d6;var me=f6}else Z=j.nodeName,!Z||Z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?w&&hr(w.elementType)&&(je=xf):je=h6;if(je&&(je=je(e,w))){Mf(X,je,a,F);break e}me&&me(e,j,w),e==="focusout"&&w&&j.type==="number"&&w.memoizedProps.value!=null&&dr(j,"number",j.value)}switch(me=w?Wi(w):window,e){case"focusin":(Nf(me)||me.contentEditable==="true")&&(ri=me,Nr=w,os=null);break;case"focusout":os=Nr=ri=null;break;case"mousedown":Mr=!0;break;case"contextmenu":case"mouseup":case"dragend":Mr=!1,Hf(X,a,F);break;case"selectionchange":if(g6)break;case"keydown":case"keyup":Hf(X,a,F)}var Ne;if(Cr)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else oi?Of(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(we="onCompositionStart");we&&(Tf&&a.locale!=="ko"&&(oi||we!=="onCompositionStart"?we==="onCompositionEnd"&&oi&&(Ne=Ef()):(Xn=F,yr="value"in Xn?Xn.value:Xn.textContent,oi=!0)),me=lo(w,we),0<me.length&&(we=new Af(we,e,null,a,F),X.push({event:we,listeners:me}),Ne?we.data=Ne:(Ne=Rf(a),Ne!==null&&(we.data=Ne)))),(Ne=l6?o6(e,a):r6(e,a))&&(we=lo(w,"onBeforeInput"),0<we.length&&(me=new Af("onBeforeInput","beforeinput",null,a,F),X.push({event:me,listeners:we}),me.data=Ne)),J6(X,e,w,a,F)}uh(X,t)})}function Vs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function lo(e,t){for(var a=t+"Capture",s=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Ji(e,a),r!=null&&s.unshift(Vs(e,r,u)),r=Ji(e,t),r!=null&&s.push(Vs(e,r,u))),e.tag===3)return s;e=e.return}return[]}function ag(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dh(e,t,a,s,r){for(var u=t._reactName,y=[];a!==null&&a!==s;){var S=a,R=S.alternate,w=S.stateNode;if(S=S.tag,R!==null&&R===s)break;S!==5&&S!==26&&S!==27||w===null||(R=w,r?(w=Ji(a,u),w!=null&&y.unshift(Vs(a,w,R))):r||(w=Ji(a,u),w!=null&&y.push(Vs(a,w,R)))),a=a.return}y.length!==0&&e.push({event:t,listeners:y})}var ig=/\r\n?/g,sg=/\u0000|\uFFFD/g;function hh(e){return(typeof e=="string"?e:""+e).replace(ig,`
|
|
10
|
+
`).replace(sg,"")}function mh(e,t){return t=hh(t),hh(e)===t}function Be(e,t,a,s,r,u){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ii(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ii(e,""+s);break;case"className":ul(e,"class",s);break;case"tabIndex":ul(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ul(e,a,s);break;case"style":mf(e,s,u);break;case"data":if(t!=="object"){ul(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=dl(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&Be(e,t,"name",r.name,r,null),Be(e,t,"formEncType",r.formEncType,r,null),Be(e,t,"formMethod",r.formMethod,r,null),Be(e,t,"formTarget",r.formTarget,r,null)):(Be(e,t,"encType",r.encType,r,null),Be(e,t,"method",r.method,r,null),Be(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=dl(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=xn);break;case"onScroll":s!=null&&De("scroll",e);break;case"onScrollEnd":s!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(a=s.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=dl(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":De("beforetoggle",e),De("toggle",e),cl(e,"popover",s);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":cl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=w4.get(a)||a,cl(e,a,s))}}function Jc(e,t,a,s,r,u){switch(a){case"style":mf(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(a=s.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof s=="string"?ii(e,s):(typeof s=="number"||typeof s=="bigint")&&ii(e,""+s);break;case"onScroll":s!=null&&De("scroll",e);break;case"onScrollEnd":s!=null&&De("scrollend",e);break;case"onClick":s!=null&&(e.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),u=e[Lt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof s=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,r);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):cl(e,a,s)}}}function St(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var s=!1,r=!1,u;for(u in a)if(a.hasOwnProperty(u)){var y=a[u];if(y!=null)switch(u){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Be(e,t,u,y,a,null)}}r&&Be(e,t,"srcSet",a.srcSet,a,null),s&&Be(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var S=u=y=r=null,R=null,w=null;for(s in a)if(a.hasOwnProperty(s)){var F=a[s];if(F!=null)switch(s){case"name":r=F;break;case"type":y=F;break;case"checked":R=F;break;case"defaultChecked":w=F;break;case"value":u=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:Be(e,t,s,F,a,null)}}uf(e,u,S,R,w,y,r,!1);return;case"select":De("invalid",e),s=y=u=null;for(r in a)if(a.hasOwnProperty(r)&&(S=a[r],S!=null))switch(r){case"value":u=S;break;case"defaultValue":y=S;break;case"multiple":s=S;default:Be(e,t,r,S,a,null)}t=u,a=y,e.multiple=!!s,t!=null?ai(e,!!s,t,!1):a!=null&&ai(e,!!s,a,!0);return;case"textarea":De("invalid",e),u=r=s=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":s=S;break;case"defaultValue":r=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(91));break;default:Be(e,t,y,S,a,null)}df(e,s,r,u);return;case"option":for(R in a)a.hasOwnProperty(R)&&(s=a[R],s!=null)&&(R==="selected"?e.selected=s&&typeof s!="function"&&typeof s!="symbol":Be(e,t,R,s,a,null));return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(s=0;s<Ls.length;s++)De(Ls[s],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in a)if(a.hasOwnProperty(w)&&(s=a[w],s!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Be(e,t,w,s,a,null)}return;default:if(hr(t)){for(F in a)a.hasOwnProperty(F)&&(s=a[F],s!==void 0&&Jc(e,t,F,s,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(s=a[S],s!=null&&Be(e,t,S,s,a,null))}function lg(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,y=null,S=null,R=null,w=null,F=null;for(Z in a){var X=a[Z];if(a.hasOwnProperty(Z)&&X!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":R=X;default:s.hasOwnProperty(Z)||Be(e,t,Z,null,s,X)}}for(var j in s){var Z=s[j];if(X=a[j],s.hasOwnProperty(j)&&(Z!=null||X!=null))switch(j){case"type":u=Z;break;case"name":r=Z;break;case"checked":w=Z;break;case"defaultChecked":F=Z;break;case"value":y=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,t));break;default:Z!==X&&Be(e,t,j,Z,s,X)}}fr(e,y,S,R,w,F,u,r);return;case"select":Z=y=S=j=null;for(u in a)if(R=a[u],a.hasOwnProperty(u)&&R!=null)switch(u){case"value":break;case"multiple":Z=R;default:s.hasOwnProperty(u)||Be(e,t,u,null,s,R)}for(r in s)if(u=s[r],R=a[r],s.hasOwnProperty(r)&&(u!=null||R!=null))switch(r){case"value":j=u;break;case"defaultValue":S=u;break;case"multiple":y=u;default:u!==R&&Be(e,t,r,u,s,R)}t=S,a=y,s=Z,j!=null?ai(e,!!a,j,!1):!!s!=!!a&&(t!=null?ai(e,!!a,t,!0):ai(e,!!a,a?[]:"",!1));return;case"textarea":Z=j=null;for(S in a)if(r=a[S],a.hasOwnProperty(S)&&r!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Be(e,t,S,null,s,r)}for(y in s)if(r=s[y],u=a[y],s.hasOwnProperty(y)&&(r!=null||u!=null))switch(y){case"value":j=r;break;case"defaultValue":Z=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Be(e,t,y,r,s,u)}ff(e,j,Z);return;case"option":for(var de in a)j=a[de],a.hasOwnProperty(de)&&j!=null&&!s.hasOwnProperty(de)&&(de==="selected"?e.selected=!1:Be(e,t,de,null,s,j));for(R in s)j=s[R],Z=a[R],s.hasOwnProperty(R)&&j!==Z&&(j!=null||Z!=null)&&(R==="selected"?e.selected=j&&typeof j!="function"&&typeof j!="symbol":Be(e,t,R,j,s,Z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in a)j=a[Ae],a.hasOwnProperty(Ae)&&j!=null&&!s.hasOwnProperty(Ae)&&Be(e,t,Ae,null,s,j);for(w in s)if(j=s[w],Z=a[w],s.hasOwnProperty(w)&&j!==Z&&(j!=null||Z!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,t));break;default:Be(e,t,w,j,s,Z)}return;default:if(hr(t)){for(var Ge in a)j=a[Ge],a.hasOwnProperty(Ge)&&j!==void 0&&!s.hasOwnProperty(Ge)&&Jc(e,t,Ge,void 0,s,j);for(F in s)j=s[F],Z=a[F],!s.hasOwnProperty(F)||j===Z||j===void 0&&Z===void 0||Jc(e,t,F,j,s,Z);return}}for(var x in a)j=a[x],a.hasOwnProperty(x)&&j!=null&&!s.hasOwnProperty(x)&&Be(e,t,x,null,s,j);for(X in s)j=s[X],Z=a[X],!s.hasOwnProperty(X)||j===Z||j==null&&Z==null||Be(e,t,X,j,s,Z)}function ph(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function og(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var r=a[s],u=r.transferSize,y=r.initiatorType,S=r.duration;if(u&&S&&ph(y)){for(y=0,S=r.responseEnd,s+=1;s<a.length;s++){var R=a[s],w=R.startTime;if(w>S)break;var F=R.transferSize,X=R.initiatorType;F&&ph(X)&&(R=R.responseEnd,y+=F*(R<S?1:(S-w)/(R-w)))}if(--s,t+=8*(u+y)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var eu=null,tu=null;function oo(e){return e.nodeType===9?e:e.ownerDocument}function gh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Eh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function nu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var au=null;function rg(){var e=window.event;return e&&e.type==="popstate"?e===au?!1:(au=e,!0):(au=null,!1)}var yh=typeof setTimeout=="function"?setTimeout:void 0,cg=typeof clearTimeout=="function"?clearTimeout:void 0,vh=typeof Promise=="function"?Promise:void 0,ug=typeof queueMicrotask=="function"?queueMicrotask:typeof vh<"u"?function(e){return vh.resolve(null).then(e).catch(fg)}:yh;function fg(e){setTimeout(function(){throw e})}function da(e){return e==="head"}function Ah(e,t){var a=t,s=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(r),ji(t);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")ws(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ws(a);for(var u=a.firstChild;u;){var y=u.nextSibling,S=u.nodeName;u[Qi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=y}}else a==="body"&&ws(e.ownerDocument.body);a=r}while(a);ji(t)}function Sh(e,t){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function iu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":iu(a),cr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function dg(e,t,a,s){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Qi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=sn(e.nextSibling),e===null)break}return null}function hg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=sn(e.nextSibling),e===null))return null;return e}function Th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function su(e){return e.data==="$?"||e.data==="$~"}function lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ou=null;function Ch(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return sn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Oh(e,t,a){switch(t=oo(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ws(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cr(e)}var ln=new Map,Rh=new Set;function ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $n=ee.d;ee.d={f:pg,r:gg,D:Eg,C:yg,L:vg,m:Ag,X:Tg,S:Sg,M:Cg};function pg(){var e=$n.f(),t=Jl();return e||t}function gg(e){var t=ei(e);t!==null&&t.tag===5&&t.type==="form"?G1(t):$n.r(e)}var Vi=typeof document>"u"?null:document;function Nh(e,t,a){var s=Vi;if(s&&typeof t=="string"&&t){var r=Qt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Rh.has(r)||(Rh.add(r),e={rel:e,crossOrigin:a,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),St(t,"link",e),ht(t),s.head.appendChild(t)))}}function Eg(e){$n.D(e),Nh("dns-prefetch",e,null)}function yg(e,t){$n.C(e,t),Nh("preconnect",e,t)}function vg(e,t,a){$n.L(e,t,a);var s=Vi;if(s&&e&&t){var r='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Qt(a.imageSizes)+'"]')):r+='[href="'+Qt(e)+'"]';var u=r;switch(t){case"style":u=wi(e);break;case"script":u=Ii(e)}ln.has(u)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ln.set(u,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Is(u))||t==="script"&&s.querySelector(js(u))||(t=s.createElement("link"),St(t,"link",e),ht(t),s.head.appendChild(t)))}}function Ag(e,t){$n.m(e,t);var a=Vi;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Qt(s)+'"][href="'+Qt(e)+'"]',u=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ii(e)}if(!ln.has(u)&&(e=v({rel:"modulepreload",href:e},t),ln.set(u,e),a.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(js(u)))return}s=a.createElement("link"),St(s,"link",e),ht(s),a.head.appendChild(s)}}}function Sg(e,t,a){$n.S(e,t,a);var s=Vi;if(s&&e){var r=ti(s).hoistableStyles,u=wi(e);t=t||"default";var y=r.get(u);if(!y){var S={loading:0,preload:null};if(y=s.querySelector(Is(u)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ln.get(u))&&ru(e,a);var R=y=s.createElement("link");ht(R),St(R,"link",e),R._p=new Promise(function(w,F){R.onload=w,R.onerror=F}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,co(y,t,s)}y={type:"stylesheet",instance:y,count:1,state:S},r.set(u,y)}}}function Tg(e,t){$n.X(e,t);var a=Vi;if(a&&e){var s=ti(a).hoistableScripts,r=Ii(e),u=s.get(r);u||(u=a.querySelector(js(r)),u||(e=v({src:e,async:!0},t),(t=ln.get(r))&&cu(e,t),u=a.createElement("script"),ht(u),St(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function Cg(e,t){$n.M(e,t);var a=Vi;if(a&&e){var s=ti(a).hoistableScripts,r=Ii(e),u=s.get(r);u||(u=a.querySelector(js(r)),u||(e=v({src:e,async:!0,type:"module"},t),(t=ln.get(r))&&cu(e,t),u=a.createElement("script"),ht(u),St(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function Mh(e,t,a,s){var r=(r=ge.current)?ro(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=wi(a.href),a=ti(r).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=wi(a.href);var u=ti(r).hoistableStyles,y=u.get(e);if(y||(r=r.ownerDocument||r,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,y),(u=r.querySelector(Is(e)))&&!u._p&&(y.instance=u,y.state.loading=5),ln.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ln.set(e,a),u||bg(r,e,a,y.state))),t&&s===null)throw Error(o(528,""));return y}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ii(a),a=ti(r).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function wi(e){return'href="'+Qt(e)+'"'}function Is(e){return'link[rel="stylesheet"]['+e+"]"}function xh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function bg(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),St(t,"link",a),ht(t),e.head.appendChild(t))}function Ii(e){return'[src="'+Qt(e)+'"]'}function js(e){return"script[async]"+e}function Dh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Qt(a.href)+'"]');if(s)return t.instance=s,ht(s),s;var r=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ht(s),St(s,"style",r),co(s,a.precedence,e),t.instance=s;case"stylesheet":r=wi(a.href);var u=e.querySelector(Is(r));if(u)return t.state.loading|=4,t.instance=u,ht(u),u;s=xh(a),(r=ln.get(r))&&ru(s,r),u=(e.ownerDocument||e).createElement("link"),ht(u);var y=u;return y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),St(u,"link",s),t.state.loading|=4,co(u,a.precedence,e),t.instance=u;case"script":return u=Ii(a.src),(r=e.querySelector(js(u)))?(t.instance=r,ht(r),r):(s=a,(r=ln.get(u))&&(s=v({},a),cu(s,r)),e=e.ownerDocument||e,r=e.createElement("script"),ht(r),St(r,"link",s),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,co(s,a.precedence,e));return t.instance}function co(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,u=r,y=0;y<s.length;y++){var S=s[y];if(S.dataset.precedence===t)u=S;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uo=null;function Lh(e,t,a){if(uo===null){var s=new Map,r=uo=new Map;r.set(a,s)}else r=uo,s=r.get(a),s||(s=new Map,r.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var u=a[r];if(!(u[Qi]||u[Et]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var y=u.getAttribute(t)||"";y=e+y;var S=s.get(y);S?S.push(u):s.set(y,[u])}}return s}function Vh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Og(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function wh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rg(e,t,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=wi(s.href),u=t.querySelector(Is(r));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,ht(u);return}u=t.ownerDocument||t,s=xh(s),(r=ln.get(r))&&ru(s,r),u=u.createElement("link"),ht(u);var y=u;y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),St(u,"link",s),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=fo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var uu=0;function Ng(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&uu===0&&(uu=62500*og());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>uu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ho=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ho=new Map,t.forEach(Mg,e),ho=null,fo.call(e))}function Mg(e,t){if(!(t.state.loading&4)){var a=ho.get(e);if(a)var s=a.get(null);else{a=new Map,ho.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var y=r[u];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),s=y)}s&&a.set(null,s)}r=t.instance,y=r.getAttribute("data-precedence"),u=a.get(y)||s,u===s&&a.set(null,r),a.set(y,r),this.count++,s=fo.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:U,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function xg(e,t,a,s,r,u,y,S,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ih(e,t,a,s,r,u,y,S,R,w,F,X){return e=new xg(e,t,a,y,R,w,F,X,S),t=1,u===!0&&(t|=24),u=Pt(3,null,null,t),e.current=u,u.stateNode=e,t=Gr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:a,cache:t},kr(u),e}function jh(e){return e?(e=fi,e):fi}function Uh(e,t,a,s,r,u){r=jh(r),s.context===null?s.context=r:s.pendingContext=r,s=ta(t),s.payload={element:a},u=u===void 0?null:u,u!==null&&(s.callback=u),a=na(e,s,t),a!==null&&(_t(a,e,t),ms(a,e,t))}function _h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function fu(e,t){_h(e,t),(e=e.alternate)&&_h(e,t)}function Hh(e){if(e.tag===13||e.tag===31){var t=La(e,67108864);t!==null&&_t(t,e,67108864),fu(e,67108864)}}function Zh(e){if(e.tag===13||e.tag===31){var t=qt();t=lr(t);var a=La(e,t);a!==null&&_t(a,e,t),fu(e,t)}}var po=!0;function Dg(e,t,a,s){var r=I.T;I.T=null;var u=ee.p;try{ee.p=2,du(e,t,a,s)}finally{ee.p=u,I.T=r}}function Lg(e,t,a,s){var r=I.T;I.T=null;var u=ee.p;try{ee.p=8,du(e,t,a,s)}finally{ee.p=u,I.T=r}}function du(e,t,a,s){if(po){var r=hu(s);if(r===null)Wc(e,t,s,go,a),Ph(e,s);else if(wg(r,e,t,a,s))s.stopPropagation();else if(Ph(e,s),t&4&&-1<Vg.indexOf(e)){for(;r!==null;){var u=ei(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var y=Rt(u.pendingLanes);if(y!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var R=1<<31-ae(y);S.entanglements[1]|=R,y&=~R}An(u),(_e&6)===0&&(Ql=gt()+500,Ds(0))}}break;case 31:case 13:S=La(u,2),S!==null&&_t(S,u,2),Jl(),fu(u,2)}if(u=hu(s),u===null&&Wc(e,t,s,go,a),u===r)break;r=u}r!==null&&s.stopPropagation()}else Wc(e,t,s,null,a)}}function hu(e){return e=pr(e),mu(e)}var go=null;function mu(e){if(go=null,e=Ja(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return go=e,null}function zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ki()){case ll:return 2;case Yi:return 8;case Ra:case ol:return 32;case rl:return 268435456;default:return 32}default:return 32}}var pu=!1,ha=null,ma=null,pa=null,_s=new Map,Hs=new Map,ga=[],Vg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ph(e,t){switch(e){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":_s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function Zs(e,t,a,s,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:u,targetContainers:[r]},t!==null&&(t=ei(t),t!==null&&Hh(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function wg(e,t,a,s,r){switch(t){case"focusin":return ha=Zs(ha,e,t,a,s,r),!0;case"dragenter":return ma=Zs(ma,e,t,a,s,r),!0;case"mouseover":return pa=Zs(pa,e,t,a,s,r),!0;case"pointerover":var u=r.pointerId;return _s.set(u,Zs(_s.get(u)||null,e,t,a,s,r)),!0;case"gotpointercapture":return u=r.pointerId,Hs.set(u,Zs(Hs.get(u)||null,e,t,a,s,r)),!0}return!1}function Bh(e){var t=Ja(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,tf(e.priority,function(){Zh(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,tf(e.priority,function(){Zh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=hu(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);mr=s,a.target.dispatchEvent(s),mr=null}else return t=ei(a),t!==null&&Hh(t),e.blockedOn=a,!1;t.shift()}return!0}function Gh(e,t,a){Eo(e)&&a.delete(t)}function Ig(){pu=!1,ha!==null&&Eo(ha)&&(ha=null),ma!==null&&Eo(ma)&&(ma=null),pa!==null&&Eo(pa)&&(pa=null),_s.forEach(Gh),Hs.forEach(Gh)}function yo(e,t){e.blockedOn===t&&(e.blockedOn=null,pu||(pu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ig)))}var vo=null;function Fh(e){vo!==e&&(vo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vo===e&&(vo=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],r=e[t+2];if(typeof s!="function"){if(mu(s||a)===null)continue;break}var u=ei(a);u!==null&&(e.splice(t,3),t-=3,hc(u,{pending:!0,data:r,method:a.method,action:s},s,r))}}))}function ji(e){function t(R){return yo(R,e)}ha!==null&&yo(ha,e),ma!==null&&yo(ma,e),pa!==null&&yo(pa,e),_s.forEach(t),Hs.forEach(t);for(var a=0;a<ga.length;a++){var s=ga[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ga.length&&(a=ga[0],a.blockedOn===null);)Bh(a),a.blockedOn===null&&ga.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var r=a[s],u=a[s+1],y=r[Lt]||null;if(typeof u=="function")y||Fh(a);else if(y){var S=null;if(u&&u.hasAttribute("formAction")){if(r=u,y=u[Lt]||null)S=y.formAction;else if(mu(r)!==null)continue}else S=y.action;typeof S=="function"?a[s+1]=S:(a.splice(s,3),s-=3),Fh(a)}}}function $h(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(y){return r=y})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function gu(e){this._internalRoot=e}Ao.prototype.render=gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,s=qt();Uh(a,s,e,t,null,null)},Ao.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Uh(e.current,2,null,e,null,null),Jl(),t[Wa]=null}};function Ao(e){this._internalRoot=e}Ao.prototype.unstable_scheduleHydration=function(e){if(e){var t=ef();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ga.length&&t!==0&&t<ga[a].priority;a++);ga.splice(a,0,e),a===0&&Bh(e)}};var qh=i.version;if(qh!=="19.2.8")throw Error(o(527,qh,"19.2.8"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var jg={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{G=So.inject(jg),J=So}catch{}}return Ps.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,s="",r=J1,u=ed,y=td;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Ih(e,1,!1,null,null,a,s,null,r,u,y,$h),e[Wa]=t.current,Qc(e),new gu(t)},Ps.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var s=!1,r="",u=J1,y=ed,S=td,R=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Ih(e,1,!0,t,a??null,s,r,R,u,y,S,$h),t.context=jh(null),a=t.current,s=qt(),s=lr(s),r=ta(s),r.callback=null,na(a,r,s),a=s,t.current.lanes=a,Ki(t,a),An(t),e[Wa]=t.current,Qc(e),new Ao(t)},Ps.version="19.2.8",Ps}var nm;function qg(){if(nm)return yu.exports;nm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),yu.exports=$g(),yu.exports}var kg=qg();const Yg="modulepreload",Xg=function(n){return"/"+n},am={},m0=function(i,l,o){let c=Promise.resolve();if(l&&l.length>0){let g=function(p){return Promise.all(p.map(A=>Promise.resolve(A).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");c=g(l.map(p=>{if(p=Xg(p),p in am)return;am[p]=!0;const A=p.endsWith(".css"),v=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const T=document.createElement("link");if(T.rel=A?"stylesheet":Yg,A||(T.as="script"),T.crossOrigin="",T.href=p,m&&T.setAttribute("nonce",m),document.head.appendChild(T),A)return new Promise((C,O)=>{T.addEventListener("load",C),T.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return c.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return i().catch(f)})};function Kg(n){return n.replace(/([XABSV9P0Z*+\-,./$])\((\d+)\)/gi,(i,l,o)=>l.repeat(Number(o)))}function K2(n){return(n??"DISPLAY").toUpperCase().replace(/[-\s]/g,"")}function Qg(n){return n<=4?2:n<=9?4:8}function Wg(n){return/[XA]/i.test(n)?"alphanumeric":/[Z*+\-,./B0$]|CR|DB/i.test(n)?"numeric-edited":"numeric"}function im(n,i){let l=0;for(const o of n){const c=o.toUpperCase();if(c!=="V"){if(c==="S"){i&&l++;continue}c!=="P"&&l++}}return l||1}function Jg(n){const l=n.replace(/^S/i,"").split(/[V.]/i),o=l[0]??"",c=l[1]??"";function f(g){let p=0;for(const A of g){const v=A.toUpperCase();(v==="9"||v==="Z"||v==="*"||v==="P")&&p++}return p}const d=f(o),m=f(c);return{total:d+m,decimal:m}}function e3(n,i,l){const o=K2(i),c=(n??"").toUpperCase().replace(/\s+/g,"");if(o==="COMP1")return{type:"float-single",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:4};if(o==="COMP2")return{type:"float-double",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:8};if(o==="POINTER"||o==="FUNCTIONPOINTER")return{type:"pointer",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:4};if(o==="PROCEDUREPOINTER")return{type:"pointer",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:8};if(o==="INDEX")return{type:"index",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:4};const f=Kg(c),d=Wg(f);if(d==="alphanumeric"){const A=im(f,!1);return{type:"alphanumeric",picture:c,totalDigits:0,decimalDigits:0,lengthInBytes:A}}const{total:m,decimal:g}=Jg(f);if(o==="COMP3"||o==="PACKEDDECIMAL"){const A=Math.ceil((m+1)/2);return{type:"packed-decimal",picture:c,totalDigits:m,decimalDigits:g,lengthInBytes:A}}if(o==="COMP"||o==="BINARY")return{type:"binary",picture:c,totalDigits:m,decimalDigits:g,lengthInBytes:Qg(m)};const p=im(f,l?.signSeparate===!0);return{type:d==="numeric-edited"?"numeric-edited":"numeric",picture:c,totalDigits:m,decimalDigits:g,lengthInBytes:p}}function t3(n){const i=K2(n);return i==="COMP1"||i==="COMP2"||i==="POINTER"||i==="PROCEDUREPOINTER"||i==="FUNCTIONPOINTER"||i==="INDEX"}function n3(n,i,l){return n==="pointer"||n==="index"?i>=8?8:4:l?n==="float-single"?4:n==="float-double"?8:n==="binary"?i>=8?8:i>=4?4:2:1:1}function a3(n){return n.replace(/'[^']*'|"[^"]*"/g,i=>"'"+" ".repeat(i.length-2)+"'")}function Q2(n){for(const i of n)if(i.trim()!==""&&!/^[\s\d]*$/.test(i.slice(0,6)))return!1;return!0}function Ka(n){const i=n.split(/\r?\n/),l=Q2(i),o=[];for(let c=0;c<i.length;c++){let f;if(l){const d=i[c],m=d.length>6?d[6]:" ";if(m==="*"||m==="/")continue;f=d.length>7?d.slice(7,72):""}else if(f=i[c],f.trimStart().startsWith("*"))continue;f.trim()!==""&&o.push({body:f,masked:a3(f),line:c+1})}return o}const i3=/^([A-Za-z0-9][\w-]*)\s+SECTION\s*\.\s*$/,s3=/^([A-Za-z0-9][\w-]*)\s*\.\s*$/,l3=new Set(["DECLARATIVES","END-DECLARATIVES"]);function o3(n){return/^\s*(?:END-)?DECLARATIVES\s*\.\s*$/i.test(n)}function p0(n){if(n.length-n.trimStart().length>=4)return;const l=n.trim(),o=i3.exec(l);if(o)return{name:o[1],kind:"section"};const c=s3.exec(l);if(c&&!l3.has(c[1].toUpperCase()))return{name:c[1],kind:"paragraph"}}function g0(n){const i=[];for(let l=0;l<n.length;l++){const o=new RegExp("(?<![\\w-])PROGRAM-ID\\s*\\.\\s*([A-Za-z0-9][\\w-]*)?","i").exec(n[l].masked);if(!o)continue;let c=o[1];!c&&n[l+1]&&(c=/^\s*([A-Za-z0-9][\w-]*)/.exec(n[l+1].masked)?.[1]),c&&i.push({name:c,line:n[l].line})}return i}function sm(n,i,l){const o=n.indices?.[i];return o?l.slice(o[0],o[1]):void 0}function W2(n){const i=[],l=Q2(n);for(const o of n){const c=l&&o.length>6?o.slice(6,72):o,f=c.trimStart();if(f===""||f.startsWith("*"))continue;const d=l&&c[0]==="-",m=/^(\d{1,2}\s+|COPY\b|EXEC\s+SQL\b)/i.test(f),g=i.length>0&&/\.\s*$/.test(i[i.length-1]);!d&&(m||g||i.length===0)?i.push(f):i.length===0?i.push(f.replace(/^-\s*/,"")):i[i.length-1]+=" "+f.replace(/^-\s*/,"")}return i}const r3=/^COPY\s+([\w-]+)(?:\s+(?:OF|IN)\s+[\w-]+)?(?:\s+REPLACING\s+(.+?))?\s*\.\s*$/i,c3=/^EXEC\s+SQL\s+INCLUDE\s+([\w-]+)\s+END-EXEC\s*\.?\s*$/i;function u3(n){const i=[],l=/(?:==(.*?)==|(\S+))\s+BY\s+(?:==(.*?)==|(\S+))/gi;let o;for(;o=l.exec(n);){const c=(o[1]??o[2]??"").trim(),f=(o[3]??o[4]??"").trim();c&&i.push({from:c,to:f})}return i}function f3(n,i){let l=n;for(const{from:o,to:c}of i){const f=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");l=l.replace(new RegExp(`(?<![A-Za-z0-9-])${f}(?![A-Za-z0-9-])`,"gi"),c)}return l}function J2(n,i,l=[],o=new Set){const c=[];for(const f of n){const d=r3.exec(f),m=d?null:c3.exec(f),g=d??m;if(!g){c.push({kind:"text",statement:f});continue}const p=g[1].toUpperCase(),A=d?.[2],v=o.has(p)?void 0:i.get(p);if(v===void 0){l.includes(p)||l.push(p),c.push({kind:"unresolved-copy",member:p});continue}const T=A?u3(A):[],C=T.length>0?f3(v,T):v,O=W2(C.split(/\r?\n/)),D=new Set(o);D.add(p);const z=J2(O,i,l,D);c.push(...z.statements)}return{statements:c,missingCopybooks:l}}const d3=/^(\d{1,2})\s+([\w-]+)/,h3=/PIC(?:TURE)?\s+IS\s+([\w()V,\-+*/$]+(?:\.(?=[0-9Z*+\-$])[\w()V,\-+*/$]+)*)|PIC(?:TURE)?\s+([\w()V,\-+*/$]+(?:\.(?=[0-9Z*+\-$])[\w()V,\-+*/$]+)*)/i,m3=/(?:USAGE\s+IS\s+|USAGE\s+)?\b(COMPUTATIONAL-3|COMPUTATIONAL-2|COMPUTATIONAL-1|COMPUTATIONAL|COMP-3|COMP-2|COMP-1|COMP|BINARY|PACKED-DECIMAL|PROCEDURE-POINTER|FUNCTION-POINTER|POINTER|INDEX|DISPLAY)\b/i,p3=/REDEFINES\s+([\w-]+)/i,g3=/OCCURS\s+(\d+)(?:\s+TO\s+(\d+))?(?:\s+TIMES)?(?:\s+DEPENDING\s+ON\s+([\w-]+))?/i,E3=/SIGN\s+IS\s+(?:LEADING|TRAILING)\s+SEPARATE/i,y3=new RegExp("(?<![\\w-])(?:SYNCHRONIZED|SYNC)(?![\\w-])","i"),v3=new RegExp("(?<![\\w-])RENAMES\\s+([\\w-]+)(?:\\s+(?:THRU|THROUGH)\\s+([\\w-]+))?","i"),A3=/VALUES?\s+(?:IS\s+|ARE\s+)?(.+)$/i,S3=new RegExp(`(?<![\\w-])VALUES?\\s+(?:IS\\s+)?(ALL\\s+)?('[^']*'|"[^"]*"|[+-]?\\d+(?:\\.\\d+)?|[A-Za-z][\\w-]*)`,"i"),T3=/^\s*(FILE|WORKING-STORAGE|LOCAL-STORAGE|LINKAGE)\s+SECTION\s*\.\s*$/i;function C3(n){const i=n.toUpperCase();return i==="COMPUTATIONAL-3"||i==="COMP-3"?"COMP-3":i==="COMPUTATIONAL-2"||i==="COMP-2"?"COMP-2":i==="COMPUTATIONAL-1"||i==="COMP-1"?"COMP-1":i==="COMPUTATIONAL"||i==="COMP"?"COMP":i==="PACKED-DECIMAL"?"PACKED-DECIMAL":i==="BINARY"?"BINARY":i==="POINTER"?"POINTER":i==="PROCEDURE-POINTER"?"PROCEDURE-POINTER":i==="FUNCTION-POINTER"?"FUNCTION-POINTER":i==="INDEX"?"INDEX":"DISPLAY"}function b3(n){const i=A3.exec(n);return i?(i[1].match(/'[^']*'|"[^"]*"|\S+/g)??[]).filter(o=>o!==","):[]}function O3(n){const i=n.replace(/\.\s*$/,""),l=d3.exec(i);if(!l)return;const o=Number(l[1]),c=l[2],f=i.slice(l[0].length);if(o===88)return{kind:"condition",name:c,values:b3(f)};if(o===66){const P=v3.exec(f);return P?{kind:"renames",name:c,from:P[1],...P[2]?{thru:P[2]}:{}}:void 0}const d=f.replace(/'[^']*'|"[^"]*"/g,P=>" ".repeat(P.length)),m=h3.exec(d),g=m?.[1]??m?.[2],p=m3.exec(d),A=p?C3(p[1]):void 0,T=p3.exec(d)?.[1],C=g3.exec(d);let O,D;if(C){const P=Number(C[1]),Q=C[2]?Number(C[2]):void 0,se=C[3];se?D=Q!==void 0?{min:P,max:Q,dependingOn:se}:{min:1,max:P,dependingOn:se}:O=P}const z=E3.test(d),_=y3.test(d),Y=S3.exec(f),U=Y?`${Y[1]??""}${Y[2]}`.trim():void 0;return{kind:"field",level:o,name:c,picture:g,usage:A,redefines:T,occurs:O,occursDepending:D,signSeparate:z,synchronized:_,value:U}}function R3(n){const i=[],l=[];let o,c;for(const f of n){if(f.kind==="section"){c=f.section;continue}if(f.kind==="condition"){if(o){const A={name:f.name,values:f.values};o.conditionValues=[...o.conditionValues??[],A]}continue}if(f.kind==="renames"){const A=i[i.length-1];if(A){const v={name:f.name,from:f.from,...f.thru?{thru:f.thru}:{}};A.renamesGroups=[...A.renamesGroups??[],v]}continue}if(f.kind==="unresolved-copy"){const A={level:0,name:f.member,type:"unresolved-copy",lengthInBytes:0,offset:0,children:[],unresolvedCopyMember:f.member};for(;l.length>0&&l[l.length-1].type!=="group";)l.pop();const v=l.length>0?l[l.length-1]:void 0;v?v.children.push(A):(c&&(A.dataSection=c),i.push(A)),o=A;continue}const m=!!f.picture||t3(f.usage)?e3(f.picture,f.usage,{signSeparate:f.signSeparate}):void 0,g={level:f.level,name:f.name,type:m?m.type:"group",...f.picture?{picture:f.picture.toUpperCase().replace(/\s+/g,"")}:{},...f.usage?{usage:f.usage}:{},lengthInBytes:m?m.lengthInBytes:0,offset:0,children:[],...f.redefines?{redefines:f.redefines}:{},...f.occurs!==void 0?{occurs:f.occurs}:{},...f.occursDepending?{occursDepending:f.occursDepending}:{},...f.synchronized||m?.type==="pointer"||m?.type==="index"?{synchronized:!0}:{},...f.value!==void 0?{value:f.value}:{}};for(;l.length>0&&l[l.length-1].level>=f.level;)l.pop();const p=l.length>0?l[l.length-1]:void 0;p?p.children.push(g):(c&&(g.dataSection=c),i.push(g)),l.push(g),o=g}return i}function ep(n){if(n.children.length===0)return n3(n.type,n.lengthInBytes,n.synchronized===!0);let i=1;for(const l of n.children)i=Math.max(i,ep(l));return i}function tp(n,i){let l=i,o=0,c=!1,f=!1,d=1;for(const m of n){const g=ep(m);if(d=Math.max(d,g),m.redefines?m.offset=l:(l+=o,g>1&&l%g!==0&&(l+=g-l%g),m.offset=l,o=0),c&&(m.offsetUnknown=!0),m.type==="unresolved-copy"&&(m.offsetUnknown=!0,c=!0),m.children.length>0){const A=tp(m.children,m.offset);if(m.lengthInBytes=A.length,m.occurs!==void 0&&A.alignment>1){const v=m.lengthInBytes%A.alignment;v!==0&&(m.lengthInBytes+=A.alignment-v)}A.hasUnknown&&(m.offsetUnknown=!0,c=!0)}m.offsetUnknown&&(f=!0),m.occurs&&(m.lengthInBytes*=m.occurs);const p=m.occursDepending?m.lengthInBytes*(m.occursDepending.max??m.occursDepending.min):m.lengthInBytes;o=Math.max(o,p)}return l+=o,{length:l-i,hasUnknown:f,alignment:d}}function N3(n){const i=new Map,l=o=>{i.set(o.name.toUpperCase(),o);for(const c of o.children)l(c)};l(n);for(const o of n.renamesGroups??[]){const c=i.get(o.from.toUpperCase()),f=o.thru?i.get(o.thru.toUpperCase()):c;!c||!f||c.offsetUnknown||f.offsetUnknown||(o.offset=c.offset,o.lengthInBytes=f.offset+f.lengthInBytes-c.offset)}}function M3(n,i=new Map){const l=n.split(/\r?\n/),o=l.findIndex(v=>{const T=v.length>6?v.slice(6):v;return/^\s*PROCEDURE\s+DIVISION/i.test(T)}),c=o===-1?l:l.slice(0,o),f=W2(c),d=new Map([...i].map(([v,T])=>[v.toUpperCase(),T])),{statements:m,missingCopybooks:g}=J2(f,d),p=[];for(const v of m){if(v.kind==="unresolved-copy"){p.push({kind:"unresolved-copy",member:v.member});continue}const T=T3.exec(v.statement);if(T){p.push({kind:"section",section:T[1].toUpperCase()});continue}const C=O3(v.statement);C&&p.push(C)}const A=R3(p);for(const v of A)tp([v],0),N3(v);return{records:A,missingCopybooks:g}}const x3=/^\s*PROCEDURE\s+DIVISION/i,D3=/^\s*END\s+PROGRAM\b/i,L3=new RegExp("(?<![\\w-])(?:STOP\\s+RUN|GOBACK|EXIT\\s+PROGRAM)(?![\\w-])","gi"),Pi="[A-Za-z0-9][\\w-]*",V3=new RegExp(`(?<![\\w-])PERFORM\\s+(${Pi})(?:\\s+(?:THRU|THROUGH)\\s+(${Pi}))?(?:\\s+(\\d+)\\s+TIMES)?(?:\\s+(UNTIL\\s+[^.]+))?`,"dgi"),w3=new Set(["UNTIL","VARYING","WITH","TEST","TIMES"]),I3=new RegExp(`(?<![\\w-])CALL\\s+('[^']*'|"[^"]*"|[A-Za-z][\\w-]*)`,"dgi"),j3=new RegExp(`(?<![\\w-])GO\\s+TO\\s+((?:${Pi}\\s+)+)DEPENDING\\s+ON\\s+([\\w-]+)`,"gi"),U3=new RegExp(`(?<![\\w-])GO\\s+TO\\s+(${Pi})`,"gi"),_3=new RegExp(`(?<![\\w-])(INPUT|OUTPUT)\\s+PROCEDURE\\s+(?:IS\\s+)?(${Pi})(?:\\s+(?:THRU|THROUGH)\\s+(${Pi}))?`,"dgi");function To(n){return!/^\d+$/.test(n)}const np=["NOT\\s+AT\\s+END-OF-PAGE","NOT\\s+AT\\s+EOP","AT\\s+END-OF-PAGE","AT\\s+EOP","NOT\\s+AT\\s+END","AT\\s+END","NOT\\s+INVALID\\s+KEY","INVALID\\s+KEY","NOT\\s+ON\\s+SIZE\\s+ERROR","ON\\s+SIZE\\s+ERROR","NOT\\s+ON\\s+OVERFLOW","ON\\s+OVERFLOW","NOT\\s+ON\\s+EXCEPTION","ON\\s+EXCEPTION"].join("|"),ap="END-READ|END-WRITE|END-REWRITE|END-DELETE|END-START|END-ADD|END-SUBTRACT|END-MULTIPLY|END-DIVIDE|END-COMPUTE|END-STRING|END-UNSTRING|END-CALL|END-RETURN",lm=new RegExp(`(?<![\\w-])(END-EVALUATE|END-PERFORM|END-IF|${ap}|${np}|EVALUATE|PERFORM|ELSE|WHEN|IF)(?![\\w-])`,"gi"),H3=new RegExp(`^(?:${np})$`,"i"),Z3=new RegExp(`^(?:${ap})$`,"i"),z3=/^\s*(UNTIL|VARYING|WITH\s+TEST|FOREVER|\d+\s+TIMES)(?![\w-])/i,om=new RegExp("(?<![\\w-])(PERFORM|CALL|GO|MOVE|ADD|SUBTRACT|MULTIPLY|DIVIDE|COMPUTE|DISPLAY|ACCEPT|READ|WRITE|REWRITE|DELETE|OPEN|CLOSE|START|SET|STRING|UNSTRING|INSPECT|INITIALIZE|EXEC|CONTINUE|EXIT|STOP|GOBACK|SEARCH|SORT|RETURN|RELEASE|CANCEL|MERGE|NEXT|UNLOCK)(?![\\w-])","gi"),P3=/\.(?![0-9])/g;function Co(n){return n.replace(/\s+/g," ").replace(/\.\s*$/,"").trim()}function B3(n,i){return i.toUpperCase()==="OTHER"?"WHEN OTHER":n===""||n.toUpperCase()==="TRUE"?i:`${n} = ${i}`}function ip(n){const i=Ka(n),l=g0(i),o=l[0]?.name,c=l.slice(1).map(B=>B.name),f=l[1]?.line;let d,m=!1;const g=i.findIndex(B=>x3.test(B.body));if(g===-1)d=i,m=!0;else{let B=g+1;if(!/\.\s*$/.test(i[g].body)){for(;B<i.length&&!/\.\s*$/.test(i[B].body);)B++;B++}d=i.slice(B)}const p=[],A=[];let v,T,C=!1;const O=new Set,D=new Map,z=()=>{if(T)return T;const B={name:o??"MAIN",kind:"paragraph",implicit:!0};return p.push(B),T=B,B},_=[];let Y;const U=()=>_.map(B=>B.guard).filter(B=>B!==void 0&&B!==""),P=B=>{B.kind==="if"?B.guard=B.head===""?void 0:B.head:B.kind==="loop"?B.guard=B.head===""?"en bucle":`en bucle (${B.head})`:B.kind==="evaluate"&&B.whenParts&&B.whenParts.length>0&&(B.guard=B.whenParts.map(ne=>B3(B.head,Co(ne))).join(" OR "))},Q=B=>{for(let ne=_.length-1;ne>=0;ne--)if(_[ne].kind===B){_.length=ne;return}},se=B=>{for(let ne=_.length-1;ne>=0;ne--)if(_[ne].kind===B)return _.length=ne+1,_[ne]};for(const{body:B,masked:ne,line:Ee}of d){if(D3.test(ne)||f!==void 0&&Ee>=f)break;if(o3(ne)){C=!/END-DECLARATIVES/i.test(ne);continue}const Ce=p0(ne);if(Ce){const q={name:Ce.name,kind:Ce.kind,...Ce.kind==="paragraph"&&v?{section:v}:{},...C?{inDeclaratives:!0}:{},line:Ee};p.push(q),D.set(q,Ee),Ce.kind==="section"&&(v=Ce.name),T=q,_.length=0,Y=void 0;continue}const be=z(),Re=[];for(const q of ne.matchAll(lm))Re.push(q.index);for(const q of ne.matchAll(om))Re.push(q.index);Re.sort((q,ue)=>q-ue);const I=q=>{for(const ue of Re)if(ue>=q)return ue;return ne.length};if(Y){const q=I(0),ue=Co(B.slice(0,q));if(ue!==""){const b=Y.frame;Y.role==="when"&&b.whenParts&&b.whenParts.length>0?b.whenParts[b.whenParts.length-1]+=" "+ue:b.head=Co(`${b.head} ${ue}`),P(b)}q<ne.length&&(Y=void 0)}const ee=[];for(const q of ne.matchAll(lm))ee.push({at:q.index,rank:0,kind:"control",token:q[1].toUpperCase().replace(/\s+/g," "),end:q.index+q[0].length});for(const q of ne.matchAll(om))ee.push({at:q.index,rank:2,kind:"verb"});for(const q of ne.matchAll(L3))ee.push({at:q.index,rank:1,kind:"terminate"});for(const q of ne.matchAll(P3))ee.push({at:q.index,rank:3,kind:"period"});for(const q of ne.matchAll(_3)){if(!To(q[2]))continue;const ue=q[1].toUpperCase()==="INPUT"?"sort-input":"sort-output";ee.push({at:q.index,rank:1,kind:"edge",edge:{from:be.name,to:q[2],kind:ue,...q[3]?{thru:q[3]}:{},line:Ee}})}for(const q of ne.matchAll(V3)){const ue=q[1];if(w3.has(ue.toUpperCase())||!To(ue))continue;const b=sm(q,4,B);ee.push({at:q.index,rank:1,kind:"edge",edge:{from:be.name,to:ue,kind:"perform",...q[2]?{thru:q[2]}:{},...q[3]?{times:Number(q[3])}:{},...b?{condition:b.trim()}:{},line:Ee}})}for(const q of ne.matchAll(I3)){const ue=sm(q,1,B),b=ue.startsWith("'")||ue.startsWith('"');ee.push({at:q.index,rank:1,kind:"edge",edge:{from:be.name,to:b?ue.slice(1,-1):ue,kind:"call",...b?{}:{dynamic:!0},line:Ee}})}const le=[...ne.matchAll(j3)];for(const q of le){const ue=q[1].trim().split(/\s+/);for(const b of ue)To(b)&&ee.push({at:q.index,rank:1,kind:"edge",edge:{from:be.name,to:b,kind:"goto",condition:`DEPENDING ON ${q[2]}`,line:Ee}})}if(le.length===0)for(const q of ne.matchAll(U3))To(q[1])&&ee.push({at:q.index,rank:1,kind:"edge",edge:{from:be.name,to:q[1],kind:"goto",line:Ee}});ee.sort((q,ue)=>q.at-ue.at||q.rank-ue.rank);for(const q of ee){if(q.kind==="period"){_.length=0,Y=void 0;continue}if(q.kind==="verb"){const L=_[_.length-1];L?.kind==="evaluate"&&(L.whenOpen=!1);continue}if(q.kind==="terminate"){be.terminates=!0,U().length===0&&O.add(be);continue}if(q.kind==="edge"){const L=U();A.push(L.length>0?{...q.edge,guards:L}:q.edge),q.edge.kind==="goto"&&L.length===0&&!q.edge.condition&&O.add(be);continue}const ue=Co(B.slice(q.end,I(q.end))),b=I(q.end)>=ne.length;switch(q.token){case"IF":{const L={kind:"if",head:ue};P(L),_.push(L),b&&(Y={frame:L,role:"if"});break}case"ELSE":{const L=se("if");L&&(L.guard=L.head===""?"ELSE":`NOT (${L.head})`),Y=void 0;break}case"END-IF":{Q("if"),Y=void 0;break}case"EVALUATE":{const L={kind:"evaluate",head:ue,whenParts:[]};_.push(L),b&&(Y={frame:L,role:"evaluate"});break}case"WHEN":{const L=se("evaluate");if(!L)break;L.whenOpen&&L.whenParts&&L.whenParts.length>0?L.whenParts.push(ue):(L.whenParts=[ue],L.whenOpen=!0),P(L),b&&(Y={frame:L,role:"when"});break}case"END-EVALUATE":{Q("evaluate"),Y=void 0;break}case"PERFORM":{if(z3.test(B.slice(q.end))){const L={kind:"loop",head:ue};P(L),_.push(L),b&&(Y={frame:L,role:"if"})}break}case"END-PERFORM":{Q("loop"),Y=void 0;break}default:{if(H3.test(q.token)){_[_.length-1]?.kind==="handler"&&_.pop();const L={kind:"handler",head:q.token,guard:q.token};_.push(L)}else Z3.test(q.token)&&(Q("handler"),Y=void 0);break}}}}const W=[];for(let B=0;B<p.length-1;B++){const ne=p[B],Ee=p[B+1];O.has(ne)||(ne.inDeclaratives??!1)===(Ee.inDeclaratives??!1)&&(ne.fallsThrough=!0,W.push({from:ne.name,to:Ee.name,kind:"fall-through",line:D.get(Ee)??0}))}A.push(...W);const $=new Set(p.map(B=>B.name.toUpperCase())),fe=[];for(const B of A)if(B.kind!=="call")for(const ne of[B.to,B.thru])ne&&!$.has(ne.toUpperCase())&&!fe.includes(ne)&&fe.push(ne);return{...o?{programId:o}:{},paragraphs:p,edges:A,missingTargets:fe,nestedPrograms:c,fragment:m}}const sp=/^\s*(IDENTIFICATION|ENVIRONMENT|DATA|PROCEDURE)\s+DIVISION/i,lp=/^\s*([A-Z][\w-]*)\s+SECTION\s*\.\s*$/i,G3=/^\s*FILE-CONTROL\s*\./i,F3=/^\s*(?:FD|SD)\s+([A-Za-z][\w-]*)/i,$3=/^\s*01\s+([A-Za-z][\w-]*)/i,q3=new RegExp("(?<![\\w-])SELECT\\s+(?:OPTIONAL\\s+)?([A-Za-z][\\w-]*)","i"),k3=new RegExp("(?<![\\w-])ASSIGN\\s+(?:TO\\s+)?([A-Za-z][\\w-]*(?:-[\\w-]*)*)","i"),Y3=new RegExp("(?<![\\w-])ORGANIZATION\\s+(?:IS\\s+)?([A-Za-z][\\w-]*)","i"),X3=new RegExp("(?<![\\w-])ACCESS\\s+(?:MODE\\s+)?(?:IS\\s+)?([A-Za-z][\\w-]*)","i"),K3=new RegExp("(?<![\\w-])EXEC\\s+(SQL|CICS)(?![\\w-])","i"),rm=new RegExp("(?<![\\w-])END-EXEC(?![\\w-])","i"),Q3=new RegExp("(?<![\\w-])OPEN(?![\\w-])([^.]*)","i"),W3=new RegExp("(?<![\\w-])CLOSE(?![\\w-])([^.]*)","i"),J3=new RegExp("(?<![\\w-])(READ|WRITE|REWRITE|DELETE|START)\\s+([A-Za-z][\\w-]*)","gi"),eE=new Set(["INPUT","OUTPUT","I-O","EXTEND"]),tE=/^\s*(OPEN|CLOSE|READ|WRITE|REWRITE|DELETE|START|MOVE|PERFORM|IF|ELSE|END-IF|EVALUATE|WHEN|END-EVALUATE|CALL|GO|DISPLAY|ACCEPT|ADD|SUBTRACT|MULTIPLY|DIVIDE|COMPUTE|EXEC|STOP|GOBACK|EXIT|SET|INITIALIZE|STRING|UNSTRING|INSPECT|SEARCH|SORT|RETURN|RELEASE|CANCEL|CONTINUE|UNLOCK)(?![\w-])/i,nE=new Set(["WITH","NO","REWIND","LOCK","FOR","REMOVAL","UNIT","REEL"]);function zo(n){return[...new Set(n)]}function aE(n){const i=[],l="[A-Za-z][\\w$#@]*(?:\\.[A-Za-z][\\w$#@]*)?",o=[new RegExp(`(?<![\\w-])FROM\\s+(${l})`,"gi"),new RegExp(`(?<![\\w-])JOIN\\s+(${l})`,"gi"),new RegExp(`(?<![\\w-])INSERT\\s+INTO\\s+(${l})`,"gi"),new RegExp(`(?<![\\w-])UPDATE\\s+(${l})`,"gi")];for(const c of o)for(const f of n.matchAll(c))i.push(f[1].toUpperCase());for(const c of n.matchAll(new RegExp(`(?<![\\w-])FROM\\s+${l}((?:\\s*,\\s*${l})+)`,"gi")))for(const f of c[1].split(",")){const d=f.trim();d!==""&&i.push(d.toUpperCase())}return zo(i)}function iE(n){const i=new RegExp("(?<![\\w-])DECLARE\\s+([A-Za-z][\\w-]*)\\s+(?:.*\\s+)?CURSOR(?![\\w-])","i").exec(n);if(i)return{name:i[1].toUpperCase(),role:"declare"};const l=new RegExp("(?<![\\w-])OPEN\\s+([A-Za-z][\\w-]*)","i").exec(n);if(l)return{name:l[1].toUpperCase(),role:"open"};const o=new RegExp("(?<![\\w-])FETCH\\s+(?:FIRST\\s+FROM\\s+|NEXT\\s+FROM\\s+|FROM\\s+)?([A-Za-z][\\w-]*)","i").exec(n);if(o)return{name:o[1].toUpperCase(),role:"fetch"};const c=new RegExp("(?<![\\w-])CLOSE\\s+([A-Za-z][\\w-]*)","i").exec(n);if(c)return{name:c[1].toUpperCase(),role:"close"}}function sE(n){const i=new RegExp("(?<![\\w-])EXEC\\s+CICS\\s+([A-Za-z][\\w-]*)(?:\\s+([A-Za-z][\\w-]*)(?![\\w-])(?!\\s*\\())?","i").exec(n);return i?i[2]?`${i[1].toUpperCase()} ${i[2].toUpperCase()}`:i[1].toUpperCase():""}const lE=new Set(["FILE","DATASET","PROGRAM","MAP","MAPSET","TRANSID","QUEUE","TSQUEUE","TDQUEUE","QNAME"]);function oE(n){const i=[];let l=!1;for(const o of n.matchAll(new RegExp(`(?<![\\w-])([A-Za-z][\\w-]*)\\s*\\(\\s*(?:'([^']*)'|"([^"]*)"|([A-Za-z][\\w-]*))\\s*\\)`,"g"))){const c=o[1].toUpperCase(),f=o[2]??o[3],d=o[4];f!==void 0?i.push(`${c}(${f})`):d!==void 0&&lE.has(c)&&(i.push(`${c}(${d.toUpperCase()})`),l=!0)}return{options:zo(i),dynamic:l}}function rE(n){const i=[];let l=!1,o="";const c=()=>{const f=o.replace(/\s+/g," ").trim();o="";const d=q3.exec(f);if(!d)return;const m=k3.exec(f),g=Y3.exec(f),p=X3.exec(f);i.push({name:d[1].toUpperCase(),...m?{assignTo:m[1].toUpperCase()}:{},...g?{organization:g[1].toUpperCase()}:{},...p?{access:p[1].toUpperCase()}:{},records:[],operations:[]})};for(const{masked:f}of n){if(G3.test(f)){l=!0;continue}if(!l)continue;if(sp.test(f)||lp.test(f)){c(),l=!1;continue}const d=f.split(".");for(let m=0;m<d.length;m++)o+=" "+d[m],m<d.length-1&&c()}return c(),i}function cE(n){const i=new Map;let l;for(const{masked:o}of n){if(sp.test(o)){l=void 0;continue}const c=F3.exec(o);if(c){l=c[1].toUpperCase(),i.set(l,[]);continue}if(lp.test(o)){l=void 0;continue}if(!l)continue;const f=$3.exec(o);f&&i.get(l).push(f[1].toUpperCase())}return i}function uE(n){const i=Ka(n),l=g0(i)[0]?.name??"MAIN",o=rE(i),c=cE(i);for(const U of o)U.records=c.get(U.name)??[];const f=new Map(o.map(U=>[U.name,U])),d=new Map;for(const U of o)for(const P of U.records)d.set(P,U);const m=[],g=[];let p=!1,A,v,T,C;const O=(U,P)=>{const Q=f.get(U)??d.get(U);Q?Q.operations.push(P):g.push({...P,target:U})},D=U=>U.join(" ").replace(/\s+/g," ").trim();for(const{body:U,masked:P,line:Q}of i){if(C){C.parts.push(P.trim()),C.raw.push(U.trim()),rm.test(P)&&(m.push(Cu(C.kind,D(C.parts),D(C.raw),C.line,{paragraph:C.paragraph,implicit:C.paragraphImplicit})),C=void 0);continue}if(/^\s*PROCEDURE\s+DIVISION/i.test(P)){p=!0;continue}const se=K3.exec(P);if(se){const Ce=se[1].toUpperCase()==="SQL"?"sql":"cics",be=p?A??l:void 0,Re=p&&A===void 0;rm.test(P)?m.push(Cu(Ce,D([P]),D([U]),Q,{paragraph:be,implicit:Re})):C={kind:Ce,line:Q,parts:[P.trim()],raw:[U.trim()],paragraph:be,...Re?{paragraphImplicit:!0}:{}};continue}if(!p)continue;const W=p0(P);if(W){A=W.name;continue}const $=A??l,fe=A===void 0,B=(Ce,be)=>{for(const Re of be.trim().split(/\s+/)){const I=Re.toUpperCase();if(I!==""){if(Ce==="OPEN"&&eE.has(I)){T=I;continue}nE.has(I)||O(I,{verb:Ce,...Ce==="OPEN"&&T?{mode:T}:{},paragraph:$,...fe?{paragraphImplicit:!0}:{},line:Q})}}};if(v)if(tE.test(P))v=void 0;else{B(v,P.split(".")[0]),P.includes(".")&&(v=void 0);continue}const ne=Q3.exec(P);ne&&(T=void 0,B("OPEN",ne[1]),v=P.includes(".")?void 0:"OPEN");const Ee=W3.exec(P);Ee&&(B("CLOSE",Ee[1]),v=P.includes(".")?void 0:"CLOSE");for(const Ce of P.matchAll(J3))O(Ce[2].toUpperCase(),{verb:Ce[1].toUpperCase(),paragraph:$,...fe?{paragraphImplicit:!0}:{},line:Q})}C&&m.push(Cu(C.kind,D(C.parts),D(C.raw),C.line,{paragraph:C.paragraph,implicit:C.paragraphImplicit}));const z=zo(m.flatMap(U=>U.tables)),_=new Map;for(const U of m){if(U.kind!=="sql"||!U.cursor)continue;const P=_.get(U.cursor)??{name:U.cursor,declared:!1,opened:!1,fetched:!1,closed:!1,tables:[]},Q=U.verb;Q==="DECLARE"&&(P.declared=!0,P.tables=zo([...P.tables,...U.tables])),Q==="OPEN"&&(P.opened=!0),Q==="FETCH"&&(P.fetched=!0),Q==="CLOSE"&&(P.closed=!0),_.set(U.cursor,P)}const Y=new Map;for(const U of m)U.kind==="cics"&&Y.set(U.verb,(Y.get(U.verb)??0)+1);return{files:o,unresolvedFileOps:g,execs:m,tables:z,cursors:[..._.values()],cicsCommands:[...Y].map(([U,P])=>({command:U,count:P}))}}function Cu(n,i,l,o,c){const f={...c.paragraph?{paragraph:c.paragraph}:{},...c.implicit?{paragraphImplicit:!0}:{}};if(n==="cics"){const{options:A,dynamic:v}=oE(l);return{kind:n,verb:sE(i),...f,line:o,text:l,tables:[],options:A,...v?{dynamic:!0}:{}}}const d=new RegExp("(?<![\\w-])EXEC\\s+SQL\\s+([A-Za-z][\\w-]*)","i").exec(i),m=d?d[1].toUpperCase():"",g=iE(i),p=m==="PREPARE"||m==="EXECUTE";return{kind:n,verb:m,...f,line:o,text:l,tables:aE(i),options:[],...g?{cursor:g.name}:{},...p?{dynamic:!0}:{}}}function fE(n,i){const l=Ka(n),o=l.findIndex(M=>cm.test(M.masked)),c=o===-1;if(!i||i.records.length===0)return{fields:[],assignments:[],unknownNames:[],fragment:c};const f=new Map,d=new Map,m=M=>{f.set(M,(f.get(M)??0)+1)},g=M=>{if(M.type!=="unresolved-copy"){const H=M.name.toUpperCase();m(H);for(const G of M.conditionValues??[])d.set(G.name.toUpperCase(),H);for(const G of M.renamesGroups??[])m(G.name.toUpperCase())}for(const H of M.children)g(H)};for(const M of i.records)g(M);const p=new Set(f.keys()),A=new Set([...f].filter(([,M])=>M>1).map(([M])=>M)),v=new Set;for(const M of l)for(const H of M.masked.matchAll(new RegExp("(?<![\\w-])INDEXED\\s+BY\\s+((?:[A-Za-z][\\w-]*\\s*)+)","gi")))for(const G of H[1].trim().split(/\s+/))v.add(G.toUpperCase());const T=M=>{if(p.has(M))return{name:M,ambiguous:A.has(M)};const H=d.get(M);if(H)return{name:H,via88:M,ambiguous:A.has(H)}},C=new Set,O=[],D=[],z=new Set,_=g0(l),Y=_[0]?.name??"MAIN",U=_[1]?.line;let P,Q=!1,se=!1;o===-1&&!l.some(M=>dE.test(M.masked))&&(Q=!0);const W=(M,H,G,J=!1)=>{const K=T(M.toUpperCase());if(K)return{name:K.name,kind:H,offset:G,...J||K.ambiguous?{uncertain:!0}:{},...K.via88?{via88:K.via88}:{},...K.ambiguous?{ambiguous:!0}:{}}},$=(M,H,G,J={})=>{const K=[];for(const ae of vE(M).matchAll(fm)){const ce=ae[0],oe=ce.toUpperCase();if(bu.has(oe))continue;const ve=H+(ae.index??0),Me=W(ce,G,ve,J.uncertain??!1);Me?K.push(Me):J.collectUnknown!==!1&&ce.length>1&&!v.has(oe)&&C.add(oe)}for(const[ae,ce]of AE(M))for(const oe of M.slice(ae,ce).matchAll(fm)){const ve=oe[0];if(bu.has(ve.toUpperCase()))continue;const Me=W(ve,"read",H+ae+(oe.index??0),J.uncertain??!1);Me&&(Me.subscript=!0,K.push(Me))}return K},fe=(M,H)=>{const G=gE.test(M),J=tt(M,"TO");if(J<0)return $(M,H,"unclassified",{collectUnknown:!1});const K=G?{uncertain:!0}:{};return[...$(M.slice(0,J),H,"read",K),...$(M.slice(J+2),H+J+2,"write",K)]},B=(M,H)=>{const G=M.indexOf("=");return G<0?$(M,H,"unclassified",{collectUnknown:!1}):[...$(M.slice(0,G),H,"write"),...$(M.slice(G+1),H+G+1,"read")]},ne=(M,H,G)=>{const K=ya(H,M==="ADD"?["TO"]:M==="SUBTRACT"?["FROM"]:M==="MULTIPLY"?["BY"]:["INTO","BY"]),ae=tt(H,"GIVING"),ce=tt(H,"REMAINDER");if(ae>=0){const oe=$(H.slice(0,ae),G,"read"),ve=ce>ae?ce:H.length;return oe.push(...$(H.slice(ae+6,ve),G+ae+6,"write")),ce>=0&&oe.push(...$(H.slice(ce+9),G+ce+9,"write")),oe}if(K>=0){const oe=/^[A-Za-z]+/.exec(H.slice(K))?.[0].length??2;return[...$(H.slice(0,K),G,"read"),...$(H.slice(K+oe),G+K+oe,"read-write")]}return $(H,G,"unclassified",{collectUnknown:!1})},Ee=(M,H)=>{const G=new RegExp("(?<![\\w-])(?:UP|DOWN)\\s+BY(?![\\w-])","i").exec(M);if(G){const ce=G.index+G[0].length;return[...$(M.slice(0,G.index),H,"read-write"),...$(M.slice(ce),H+ce,"read")]}const J=tt(M,"TO");if(J<0)return $(M,H,"unclassified",{collectUnknown:!1});const K=$(M.slice(0,J),H,"write"),ae=M.slice(J+2);return new RegExp("(?<![\\w-])(?:TRUE|FALSE)(?![\\w-])","i").test(ae)?K:[...K,...$(ae,H+J+2,"read")]},Ce=(M,H)=>{const G=tt(M,"REPLACING"),J=$(M.slice(0,G>=0?G:M.length),H,"write");return G>=0&&J.push(...$(M.slice(G),H+G,"read")),J},be=(M,H,G,J)=>{const K=tt(M,G);return $(K>=0?M.slice(0,K):M,H,J)},Re=M=>{for(const H of M)H.aux=!0;return M},I=(M,H)=>{const G=tt(M,"INTO");if(G<0)return $(M,H,"unclassified",{collectUnknown:!1});const J=$(M.slice(0,G),H,"read"),K=M.slice(G+4),ae=H+G+4,ce=tt(K,"POINTER"),oe=ya(K,["ON","NOT","END-STRING"]),ve=ce>=0?ce:oe>=0?oe:K.length;if(J.push(...$(K.slice(0,ve),ae,"write")),ce>=0){const Me=oe>ce?oe:K.length;J.push(...Re($(K.slice(ce+7,Me),ae+ce+7,"read-write")))}return J},ee=(M,H)=>{const G=tt(M,"INTO");if(G<0)return $(M,H,"unclassified",{collectUnknown:!1});const J=$(M.slice(0,G),H,"read"),K=M.slice(G+4),ae=H+G+4,ce=tt(K,"POINTER"),oe=ya(K,["ON","NOT","END-UNSTRING"]),ve=ce>=0?ce:oe>=0?oe:K.length;if(J.push(...$(K.slice(0,ve),ae,"write")),ce>=0){const Me=K.slice(ce+7,oe>ce?oe:K.length),Fe=tt(Me,"TALLYING");Fe>=0?(J.push(...Re($(Me.slice(0,Fe),ae+ce+7,"read-write"))),J.push(...Re($(Me.slice(Fe),ae+ce+7+Fe,"write")))):J.push(...Re($(Me,ae+ce+7,"read-write")))}return J},le=(M,H)=>{const G=ya(M,["TALLYING","REPLACING","CONVERTING"]),J=new RegExp("(?<![\\w-])(?:REPLACING|CONVERTING)(?![\\w-])","i").test(M),K=$(M.slice(0,G>=0?G:M.length),H,J?"read-write":"read");if(G<0)return K;const ae=M.slice(G),ce=H+G;if(/^\s*TALLYING(?![\w-])/i.test(ae)){const oe=tt(ae,"FOR");K.push(...$(ae.slice(0,oe>=0?oe:ae.length),ce,"write")),oe>=0&&K.push(...$(ae.slice(oe),ce+oe,"read"))}else K.push(...$(ae,ce,"read"));return K},q=(M,H)=>{const G=[],J=tt(M,"INTO");if(J>=0){const ae=M.slice(J+4),ce=ya(ae,["KEY","AT","INVALID","NOT","WITH","END-READ"]);G.push(...$(ae.slice(0,ce>=0?ce:ae.length),H+J+4,"write"))}const K=tt(M,"KEY");if(K>=0){const ae=M.slice(K+3),ce=ya(ae,["AT","INVALID","NOT","END-READ"]);G.push(...$(ae.slice(0,ce>=0?ce:ae.length),H+K+3,"read"))}return G},ue=(M,H)=>{const G=tt(M,"INTO");if(G<0)return[];const J=M.slice(G+4),K=ya(J,["AT","NOT","END-RETURN"]);return $(J.slice(0,K>=0?K:J.length),H+G+4,"write")},b=(M,H)=>{const G=tt(M,"FROM"),J=$(M.slice(0,G>=0?G:M.length),H,"write");if(G>=0){const K=M.slice(G+4),ae=ya(K,["BEFORE","AFTER","AT","INVALID","NOT","END-WRITE","END-REWRITE"]);J.push(...$(K.slice(0,ae>=0?ae:K.length),H+G+4,"read"))}return J},L=(M,H)=>{const G=[],J=tt(M,"VARYING");if(J>=0){const ce=M.slice(J),oe=H+J;for(const ve of ce.matchAll(new RegExp("(?<![\\w-])(?:VARYING|AFTER)\\s+([A-Za-z][\\w-]*)","gi"))){const Me=(ve.index??0)+ve[0].length-ve[1].length,Fe=W(ve[1],"write",oe+Me);Fe&&G.push(Fe)}for(const ve of ce.matchAll(new RegExp("(?<![\\w-])(?:FROM|BY)\\s+([A-Za-z][\\w-]*)","gi"))){const Me=(ve.index??0)+ve[0].length-ve[1].length,Fe=W(ve[1],"read",oe+Me);Fe&&G.push(Fe)}}const K=tt(M,"UNTIL");if(K>=0){const ce=M.slice(K+5),oe=tt(ce,"END-PERFORM");G.push(...$(ce.slice(0,oe>=0?oe:ce.length),H+K+5,"read"))}const ae=new RegExp("(?<![\\w-])([A-Za-z][\\w-]*)\\s+TIMES(?![\\w-])","i").exec(M);if(ae){const ce=W(ae[1],"read",H+(ae.index??0));ce&&G.push(ce)}return G},ie=(M,H)=>{const G=[],J=tt(M,"USING"),K=tt(M,"RETURNING");if(J>=0){const ae=M.slice(J+5,K>J?K:M.length),ce=H+J+5;let oe=!0;for(const ve of ae.matchAll(new RegExp("(?<![\\w-])(?:BY\\s+(REFERENCE|CONTENT|VALUE)|([A-Za-z][\\w-]*))(?![\\w-])","gi"))){if(ve[1]){oe=ve[1].toUpperCase()==="REFERENCE";continue}const Me=ve[2];if(!Me||bu.has(Me.toUpperCase()))continue;const Fe=W(Me,oe?"read-write":"read",ce+(ve.index??0),oe);Fe&&G.push(Fe)}}if(K>=0){const ae=M.slice(K+9),ce=/^\s*([A-Za-z][\w-]*)/.exec(ae);if(ce){const oe=W(ce[1],"write",H+K+9+ce[0].length-ce[1].length);oe&&G.push(oe)}}return G},te=(M,H)=>{const G=new RegExp("(?<![\\w-])DEPENDING\\s+ON\\s+([A-Za-z][\\w-]*)","i").exec(M);if(!G)return[];const J=W(G[1],"read",H+(G.index??0)+G[0].length-G[1].length);return J?[J]:[]},pe=(M,H,G)=>{switch(M){case"MOVE":return fe(H,G);case"COMPUTE":return B(H,G);case"ADD":case"SUBTRACT":case"MULTIPLY":case"DIVIDE":return ne(M,H,G);case"SET":return Ee(H,G);case"INITIALIZE":return Ce(H,G);case"ACCEPT":return be(H,G,"FROM","write");case"DISPLAY":return be(H,G,"UPON","read");case"STRING":return I(H,G);case"UNSTRING":return ee(H,G);case"INSPECT":return le(H,G);case"READ":return q(H,G);case"RETURN":return ue(H,G);case"WRITE":case"REWRITE":case"RELEASE":return b(H,G);case"PERFORM":return L(H,G);case"IF":case"EVALUATE":case"WHEN":return $(H,G,"read");case"CALL":return ie(H,G);case"GO":return te(H,G);default:return $(H,G,"unclassified",{collectUnknown:!1})}},ge=(M,H,G,J)=>{const K={name:M.name,kind:M.kind,verb:H,paragraph:P??Y,line:J,snippet:G,...P===void 0?{paragraphImplicit:!0}:{},...M.uncertain?{uncertain:!0}:{},...M.via88?{via88:M.via88}:{},...M.ambiguous?{ambiguous:!0}:{}},ae=`${K.name}|${K.kind}|${K.line}|${K.verb}`;z.has(ae)||(z.add(ae),O.push(K))},Se=M=>H=>{let G=M[0]?.line??0;for(const J of M)if(J.start<=H)G=J.line;else break;return G},Ke=(M,H,G,J,K)=>{if(!yE.has(M))return;const ae=G.filter(oe=>(oe.kind==="read"||oe.kind==="read-write")&&!oe.subscript&&!oe.aux),ce=G.filter(oe=>(oe.kind==="write"||oe.kind==="read-write")&&!oe.aux);for(const oe of ae)for(const ve of ce)oe.name!==ve.name&&D.push({from:oe.name,to:ve.name,verb:H,paragraph:P??Y,line:K(ve.offset),snippet:J,kind:"statement",...P===void 0?{paragraphImplicit:!0}:{},...oe.uncertain||ve.uncertain?{uncertain:!0}:{}})},ze=(M,H,G)=>{const J=Se(G),K=[];for(const ae of M.matchAll(EE))K.push({at:ae.index??0,verb:ae[1].toUpperCase()});for(let ae=0;ae<K.length;ae++){const ce=K[ae].at,oe=ae+1<K.length?K[ae+1].at:M.length,ve=K[ae].verb,Me=pe(ve,M.slice(ce,oe),ce);if(Me.length===0)continue;const Fe=dm(H.slice(ce,oe)),gn=ve==="GO"?"GO TO":ve;for(const Rt of Me)ge(Rt,gn,Fe,J(Rt.offset));Ke(ve,gn,Me,Fe,J)}},pn=(M,H)=>{const G=new RegExp("(?<![\\w-])EXEC\\s+SQL\\s+([A-Za-z-]+)","i").exec(M),J=G?G[1].toUpperCase():"";if(J==="INCLUDE")return[];const K=J==="PREPARE"||J==="EXECUTE",ae=[];for(const oe of M.matchAll(new RegExp("(?<![\\w-])INTO(?![\\w-])","gi"))){const ve=oe.index??0;if(/INSERT\s*$/i.test(M.slice(Math.max(0,ve-12),ve)))continue;const Me=M.slice(ve+4),Fe=new RegExp("(?<![\\w-])(?:FROM|WHERE|ORDER|GROUP|HAVING|FOR|FETCH|USING|SET|VALUES|END-EXEC)(?![\\w-])","i").exec(Me);ae.push([ve+4,ve+4+(Fe?Fe.index??Me.length:Me.length)])}const ce=[];for(const oe of M.matchAll(/:([A-Za-z][A-Za-z0-9_-]*)\s*(?::\s*([A-Za-z][A-Za-z0-9_-]*))?/g)){const ve=oe.index??0,Fe=ae.some(([Rt,Qa])=>ve>=Rt&&ve<Qa)?"write":"read",gn=W(oe[1],Fe,H+ve+1,K);if(gn&&ce.push(gn),oe[2]){const Rt=W(oe[2],Fe,H+ve+oe[0].lastIndexOf(oe[2]),!0);Rt&&ce.push(Rt)}}return ce},Rn=(M,H)=>{const G=[];for(const J of M.matchAll(new RegExp("(?<![\\w-])([A-Za-z][\\w-]*)\\s*\\(\\s*([A-Za-z][\\w-]*)\\s*\\)","g"))){const K=J[1].toUpperCase(),ae=J[2],ce=H+(J.index??0)+J[0].lastIndexOf(ae);let oe,ve=!1;K==="INTO"||K==="SET"?oe="write":K==="FROM"?oe="read":K==="RESP"||K==="RESP2"?oe="write":K==="LENGTH"||K==="FLENGTH"||K==="KEYLENGTH"?(oe="read-write",ve=!0):oe="read";const Me=W(ae,oe,ce,ve);Me&&G.push(Me)}return G};let pt="",re="",Le=[];const Ot=M=>{Le.push({start:pt.length,line:M.line}),pt+=M.masked+`
|
|
11
|
+
`,re+=M.body+`
|
|
12
|
+
`},Nn=()=>{for(;;){const M=pE.exec(pt);if(!M)return;const H=M.index;ze(pt.slice(0,H),re.slice(0,H),Le);const G=H+1;pt=pt.slice(G),re=re.slice(G),Le=Le.map(J=>({start:Math.max(0,J.start-G),line:J.line}))}},kn=()=>{pt.trim()!==""&&ze(pt,re,Le),pt="",re="",Le=[]};let Yt="",Xt="",ba=[],Oa=!1;const il=M=>{ba.push({start:Yt.length,line:M.line}),Yt+=M.masked+`
|
|
13
|
+
`,Xt+=M.body+`
|
|
14
|
+
`},sl=()=>{const M=new RegExp("(?<![\\w-])EXEC\\s+CICS(?![\\w-])","i").test(Yt),H=M?Rn(Yt,0):pn(Yt,0);if(H.length>0){const G=Se(ba),J=new RegExp("(?<![\\w-])EXEC\\s+SQL\\s+([A-Za-z-]+)","i").exec(Yt),K=M?"EXEC CICS":J?`EXEC SQL ${J[1].toUpperCase()}`:"EXEC SQL",ae=dm(Xt);for(const ce of H)ge(ce,K,ae,G(ce.offset))}Yt="",Xt="",ba=[]};for(const M of l){if(hE.test(M.masked)||U!==void 0&&M.line>=U)break;if(!Q){cm.test(M.masked)&&(Q=!0,se=!/\.\s*$/.test(M.masked));continue}if(se){/\.\s*$/.test(M.masked)&&(se=!1);continue}if(Oa){il(M),um.test(M.masked)&&(sl(),Oa=!1);continue}const H=p0(M.masked);if(H){kn(),P=H.name;continue}if(mE.test(M.masked)){kn(),il(M),um.test(M.masked)?sl():Oa=!0;continue}Ot(M),Nn()}kn();const gt=new Map;for(const M of O){let H=gt.get(M.name);H||(H={name:M.name,reads:[],writes:[],unclassified:[]},gt.set(M.name,H)),M.kind==="read"?H.reads.push(M):M.kind==="write"?H.writes.push(M):M.kind==="read-write"?(H.reads.push(M),H.writes.push(M)):H.unclassified.push(M)}const ki=(M,H)=>M.line-H.line,ll=[...gt.values()].map(M=>({name:M.name,reads:M.reads.sort(ki),writes:M.writes.sort(ki),unclassified:M.unclassified.sort(ki)})).sort((M,H)=>M.name.localeCompare(H.name)),Yi=new Set,Ra=M=>{if(M.type!=="unresolved-copy"&&M.redefines){const H=M.name.toUpperCase(),G=M.redefines.toUpperCase();if(p.has(H)&&p.has(G)&&H!==G)for(const[J,K]of[[H,G],[G,H]]){const ae=`${J}->${K}`;Yi.has(ae)||(Yi.add(ae),D.push({from:J,to:K,verb:"REDEFINES",line:0,snippet:`${H} REDEFINES ${G}`,uncertain:!0,kind:"redefines"}))}}for(const H of M.children)Ra(H)};for(const M of i.records)Ra(M);const ol=new Set,rl=D.filter(M=>{const H=`${M.from}|${M.to}|${M.verb}|${M.line}|${M.kind??""}`;return ol.has(H)?!1:(ol.add(H),!0)});return{fields:ll,assignments:rl,unknownNames:[...C].sort(),fragment:c}}const cm=/^\s*PROCEDURE\s+DIVISION/i,dE=/^\s*(?:IDENTIFICATION|ID|ENVIRONMENT|DATA)\s+DIVISION/i,hE=/^\s*END\s+PROGRAM\b/i,mE=new RegExp("(?<![\\w-])EXEC\\s+(?:SQL|CICS)(?![\\w-])","i"),um=new RegExp("(?<![\\w-])END-EXEC(?![\\w-])","i"),pE=/\.(?![0-9])/,fm=/[A-Za-z][A-Za-z0-9-]*/g,gE=new RegExp("(?<![\\w-])(?:CORRESPONDING|CORR)(?![\\w-])","i"),EE=new RegExp("(?<![\\w-])(MOVE|COMPUTE|ADD|SUBTRACT|MULTIPLY|DIVIDE|SET|INITIALIZE|ACCEPT|DISPLAY|STRING|UNSTRING|INSPECT|REWRITE|READ|RETURN|WRITE|RELEASE|PERFORM|EVALUATE|WHEN|IF|CALL|GO|SEARCH|SORT|MERGE|UNLOCK|START|DELETE|CANCEL|OPEN|CLOSE)(?![\\w-])","gi"),yE=new Set(["MOVE","COMPUTE","ADD","SUBTRACT","MULTIPLY","DIVIDE","SET","STRING","UNSTRING","WRITE","REWRITE","RELEASE"]);function tt(n,i){const l=new RegExp(`(?<![\\w-])${i}(?![\\w-])`,"i").exec(n);return l?l.index:-1}function ya(n,i){let l=-1;for(const o of i){const c=tt(n,o);c>=0&&(l<0||c<l)&&(l=c)}return l}function vE(n){let i=0,l="";for(const o of n)o==="("?(i++,l+=" "):o===")"?(i>0&&i--,l+=" "):l+=i>0?" ":o;return l}function AE(n){const i=[];let l=0,o=-1;for(let c=0;c<n.length;c++){const f=n[c];f==="("?(l===0&&(o=c+1),l++):f===")"&&(l>0&&l--,l===0&&o>=0&&(i.push([o,c]),o=-1))}return i}function dm(n){const i=n.replace(/\s+/g," ").trim();return i.length>140?i.slice(0,137)+"…":i}const bu=new Set(["MOVE","COMPUTE","ADD","SUBTRACT","MULTIPLY","DIVIDE","SET","INITIALIZE","ACCEPT","DISPLAY","STRING","UNSTRING","INSPECT","READ","RETURN","WRITE","REWRITE","RELEASE","PERFORM","EVALUATE","WHEN","IF","ELSE","CALL","GO","GOBACK","STOP","EXIT","CONTINUE","SEARCH","SORT","MERGE","UNLOCK","START","DELETE","CANCEL","OPEN","CLOSE","NEXT","SENTENCE","RUN","TO","FROM","BY","INTO","GIVING","USING","RETURNING","THRU","THROUGH","ROUNDED","REMAINDER","DEPENDING","ON","VARYING","UNTIL","TIMES","CORRESPONDING","CORR","OF","IN","IS","ARE","THEN","END-IF","END-EVALUATE","END-PERFORM","END-STRING","END-UNSTRING","END-CALL","END-READ","END-WRITE","END-REWRITE","END-DELETE","END-START","END-ADD","END-SUBTRACT","END-MULTIPLY","END-DIVIDE","END-COMPUTE","END-SEARCH","END-RETURN","END-ACCEPT","END-DISPLAY","END-EXEC","NOT","AND","OR","EQUAL","EQUALS","GREATER","LESS","THAN","EXCEEDS","ZERO","ZEROS","ZEROES","ZEROED","SPACE","SPACES","HIGH-VALUE","HIGH-VALUES","LOW-VALUE","LOW-VALUES","QUOTE","QUOTES","NULL","NULLS","TRUE","FALSE","OTHER","ALSO","ANY","POSITIVE","NEGATIVE","NUMERIC","ALPHABETIC","ALPHABETIC-LOWER","ALPHABETIC-UPPER","OMITTED","ADDRESS","DELIMITED","DELIMITER","COUNT","POINTER","TALLYING","REPLACING","CONVERTING","FOR","WITH","MODE","KEY","LENGTH","REFERENCE","CONTENT","VALUE","SIZE","ERROR","OVERFLOW","EXCEPTION","AT","INVALID","END","EOP","END-OF-PAGE","ADVANCING","NO","PAGE","LINE","LINES","UP","DOWN","INITIAL","CHARACTER","CHARACTERS","ALL","LEADING","TRAILING","FIRST","BEFORE","AFTER","STANDARD","OPTIONAL","PRIOR","LOCK","REWIND","REEL","UNIT","REMOVAL","DATA","RECORD","EXEC","SQL","CICS","SELECT","INSERT","UPDATE","FETCH","DECLARE","CURSOR","ORDER","GROUP","HAVING","WHERE","VALUES","RESP","RESP2","INDICATOR","CIC","FUNCTION","MOD","REM","MAX","MIN","SUM","MEAN","MEDIAN","RANGE","MIDRANGE","ABS","SQRT","NUMVAL","NUMVAL-C","INTEGER","INTEGER-PART","INTEGER-OF-DATE","DATE-OF-INTEGER","RANDOM","CURRENT-DATE","WHEN-COMPILED","ORD","ORD-MAX","ORD-MIN","CHAR","UPPER-CASE","LOWER-CASE","REVERSE","TRIM","LENGTH-AN","STORED-CHAR-LENGTH","FACTORIAL","LOG","LOG10","EXP","EXP10"]),SE=8,hm=60;function mm(n,i,l){const o=i.toUpperCase(),c=new Map,f=new Set;for(const C of n.assignments){const O=`${C.from}|${C.to}|${C.verb}|${C.line}|${C.kind??""}`;if(f.has(O))continue;f.add(O);const D=l==="upstream"?C.to:C.from,z=c.get(D);z?z.push(C):c.set(D,[C])}const d=C=>l==="upstream"?C.from:C.to,m=C=>({from:C.from,to:C.to,verb:C.verb,line:C.line,...C.paragraph?{paragraph:C.paragraph}:{},...C.uncertain?{uncertain:!0}:{},...C.kind==="redefines"?{redefines:!0}:{}}),g=(c.get(o)??[]).map(m),p=[];let A=!1;const v=(C,O,D={})=>{p.push({nodes:C,steps:O,...O.some(z=>z.uncertain||z.redefines)?{uncertain:!0}:{},...D})},T=(C,O,D)=>{if(p.length>=hm){A=!0;return}const z=c.get(C)??[];if(z.length===0){D.length>0&&v(O,D);return}if(D.length>=SE){v(O,D,{truncated:!0});return}for(const _ of z){if(p.length>=hm){A=!0;return}const Y=d(_),U=m(_);if(O.includes(Y)){v([...O,Y],[...D,U],{cyclic:!0});continue}T(Y,[...O,Y],[...D,U])}};return T(o,[o],[]),{direct:g,paths:p,truncated:A}}function TE(n,i,l,o){const c=[];return l&&(c.push(...OE(n,i,l)),c.push(...RE(l)),c.push(...ME(n,l)),c.push(...UE(n,l))),o&&(c.push(...DE(o)),c.push(...VE(o)),c.push(...wE(o)),c.push(..._E(o)),c.push(...HE(o))),c.sort((f,d)=>f.line-d.line)}const CE=new RegExp("(?<![\\w-])STOP\\s+RUN(?![\\w-])","i");function bE(n){const i=l=>l.dataSection==="LINKAGE"||l.children.some(i);return(n?.records??[]).some(i)}function OE(n,i,l){if(!bE(i))return[];const o=l.paragraphs.filter(d=>!d.implicit&&d.line!==void 0);if(o.length===0)return[];const c=Ka(n),f=[];for(let d=0;d<o.length;d++){const m=o[d];if(!m.terminates)continue;const g=o[d+1]?.line??1/0,p=c.find(A=>A.line>=m.line&&A.line<g&&CE.test(A.masked));p&&f.push({rule:"stop-run-in-subprogram",title:"STOP RUN en un subprograma",message:`El párrafo ${m.name} ejecuta STOP RUN, pero el programa tiene LINKAGE SECTION (recibe parámetros por CALL): parece un subprograma. STOP RUN termina el job ENTERO, no solo este módulo — probablemente debería ser GOBACK.`,line:p.line,paragraph:m.name})}return f}function RE(n){const i=new Map;for(const o of n.paragraphs)o.section&&i.set(o.name.toUpperCase(),o.section);if(i.size===0)return[];const l=[];for(const o of n.edges){if(o.kind!=="goto")continue;const c=i.get(o.from.toUpperCase()),f=i.get(o.to.toUpperCase());c&&f&&c!==f&&l.push({rule:"goto-crosses-section",title:"GO TO cruza de sección",message:`GO TO ${o.to} salta de la sección ${c} a ${f}: puede saltarse un cierre o una inicialización propia de ${c} que el mantenedor da por hecha.`,line:o.line,paragraph:o.from})}return l}const NE=new RegExp("(?<![\\w-])ALTER\\s+([\\w-]+)\\s+TO\\s+(?:PROCEED\\s+TO\\s+)?([\\w-]+)","i");function ME(n,i){const l=i.paragraphs.filter(f=>!f.implicit&&f.line!==void 0).sort((f,d)=>f.line-d.line),o=f=>{let d;for(const m of l)if(m.line<=f)d=m.name;else break;return d},c=[];for(const{masked:f,line:d}of Ka(n)){const m=NE.exec(f);if(!m)continue;const g=o(d);c.push({rule:"alter-statement",title:"ALTER cambia un GO TO en ejecución",message:`ALTER ${m[1]} TO ${m[2]}: cambia en ejecución el destino del GO TO de ${m[1]}, así que el flujo real depende de qué se haya ALTERado antes — el diagrama no puede mostrarlo. ALTER está deprecado; considera reescribir la lógica con EVALUATE/PERFORM.`,line:d,...g?{paragraph:g}:{}})}return c}const xE=new RegExp("(?<![\\w-])WHERE(?![\\w-])","i");function DE(n){const i=[];for(const l of n.execs){if(l.kind!=="sql"||l.dynamic)continue;const o=l.verb.toUpperCase();o!=="UPDATE"&&o!=="DELETE"||xE.test(l.text)||i.push({rule:"sql-write-without-where",title:`${o} sin WHERE`,message:`${o} sin cláusula WHERE visible en el bloque: afecta a TODAS las filas de la tabla, no a una — confirma si es intencional.`,line:l.line,paragraph:l.paragraph})}return i}const LE=new Set(["OUTPUT","I-O","EXTEND"]);function VE(n){const i=[];for(const l of n.files){const o=l.operations.find(f=>f.verb==="OPEN"&&f.mode!==void 0&&LE.has(f.mode)),c=l.operations.some(f=>f.verb==="CLOSE");o&&!c&&i.push({rule:"file-opened-not-closed",title:`${l.name} sin CLOSE`,message:`${l.name} se abre para escritura (OPEN ${o.mode}) pero no aparece un CLOSE en el fuente aportado. Si el programa termina sin cerrarlo, puede dejar buffers sin volcar.`,line:o.line,paragraph:o.paragraphImplicit?void 0:o.paragraph})}return i}function wE(n){const i=[];for(const l of n.cursors){const o=c=>n.execs.find(f=>f.cursor===l.name&&f.verb===c);if(l.opened&&!l.closed){const c=o("OPEN");i.push({rule:"cursor-opened-not-closed",title:`Cursor ${l.name} sin CLOSE`,message:`El cursor ${l.name} se abre (OPEN) pero no se cierra (CLOSE) en el fuente aportado: queda ocupando recursos en DB2 hasta el fin de la unidad de trabajo.`,line:c?.line??0,paragraph:c?.paragraphImplicit?void 0:c?.paragraph})}if(l.fetched&&!l.opened&&l.declared){const c=o("FETCH");i.push({rule:"cursor-fetched-without-open",title:`Cursor ${l.name}: FETCH sin OPEN`,message:`El cursor ${l.name} tiene FETCH pero no OPEN en el fuente aportado — si el OPEN no está en un copybook ausente, el FETCH fallaría en ejecución.`,line:c?.line??0,paragraph:c?.paragraphImplicit?void 0:c?.paragraph})}}return i}const Bs=n=>n.toUpperCase();function IE(n){let i=!1;for(const{masked:l}of Ka(n)){if(/^\s*PROCEDURE\s+DIVISION/i.test(l)){i=!0;continue}if(i&&new RegExp("(?<![\\w-])COPY\\s+[A-Za-z0-9]","i").test(l))return!0}return!1}function jE(n){return Ka(n).some(i=>new RegExp("(?<![\\w-])ALTER\\s+[A-Za-z0-9]","i").test(i.masked))}function UE(n,i){if(IE(n)||jE(n))return[];if(i.paragraphs.length===0)return[];const l=new Map;for(const m of i.edges){if(m.kind==="call")continue;const g=Bs(m.from);l.has(g)||l.set(g,[]),l.get(g).push(Bs(m.to))}const o=new Set;o.add(Bs(i.paragraphs[0].name));for(const m of i.paragraphs)(m.implicit||m.inDeclaratives)&&o.add(Bs(m.name));const c=new Set(o),f=[...o];for(;f.length>0;){const m=f.pop();for(const g of l.get(m)??[])c.has(g)||(c.add(g),f.push(g))}const d=[];for(const m of i.paragraphs)m.implicit||m.inDeclaratives||m.line===void 0||c.has(Bs(m.name))||d.push({rule:"unreachable-paragraph",title:`${m.name} inalcanzable`,message:`Ningún PERFORM, GO TO ni caída natural llega a ${m.name} en el fuente aportado: parece código muerto. Confirma que no lo referencia un copybook no aportado antes de eliminarlo.`,line:m.line,paragraph:m.name});return d}function _E(n){const i=[];for(const l of n.cursors)if(l.declared&&!l.opened&&!l.fetched&&!l.closed){const o=n.execs.find(c=>c.cursor===l.name&&c.verb==="DECLARE");i.push({rule:"unused-cursor",title:`Cursor ${l.name} sin usar`,message:`El cursor ${l.name} se declara (DECLARE) pero no se abre, lee ni cierra en el fuente aportado: parece declarado y sin uso.`,line:o?.line??0,...o&&!o.paragraphImplicit&&o.paragraph?{paragraph:o.paragraph}:{}})}return i}function HE(n){const i=[];for(const l of n.files)l.operations.length===0&&i.push({rule:"unused-file",title:`${l.name} declarado y sin usar`,message:`El fichero ${l.name} se declara en FILE-CONTROL (SELECT) pero no aparece ninguna operación (OPEN/READ/WRITE…) sobre él en el fuente aportado.`,line:0});return i}function E0(n,i,l){const o=[];if(i?.fragment&&o.push("fragmento sin PROCEDURE DIVISION"),n&&n.missingCopybooks.length>0&&o.push(`copybooks ausentes: ${n.missingCopybooks.join(", ")}`),i&&i.missingTargets.length>0&&o.push(`destinos no encontrados: ${i.missingTargets.join(", ")}`),i?.edges.some(c=>c.dynamic)&&o.push("hay CALL dinámicas sin destino verificable"),i&&i.nestedPrograms.length>0&&o.push(`programas anidados sin analizar: ${i.nestedPrograms.join(", ")}`),l&&l.unresolvedFileOps.length>0){const c=[...new Set(l.unresolvedFileOps.map(f=>f.target))];o.push(`operaciones de E/S sin fichero resuelto: ${c.join(", ")}`)}return l?.execs.some(c=>c.dynamic)&&o.push("hay EXEC SQL/CICS dinámicos: el recurso real solo se conoce en ejecución"),{level:o.length>0?"partial":"verified",reasons:o}}function op(n,i,l){const o=" ".repeat(i);if(n.type==="unresolved-copy"){l.push(`${o}[HUECO] COPY ${n.unresolvedCopyMember} no disponible — estructura desconocida`);return}const c=[`${o}${String(n.level).padStart(2,"0")} ${n.name}`];n.dataSection&&c.push(`sección ${n.dataSection}`),n.picture&&c.push(`PIC ${n.picture}`),n.usage&&c.push(`USAGE ${n.usage}`),n.value!==void 0&&c.push(`VALUE ${n.value} (valor inicial)`),n.occurs!==void 0&&c.push(`OCCURS ${n.occurs}`),n.occursDepending&&c.push(`OCCURS ${n.occursDepending.min}..${n.occursDepending.max??"?"} DEPENDING ON ${n.occursDepending.dependingOn} (longitud variable)`),n.redefines&&c.push(`REDEFINES ${n.redefines} (misma memoria)`),n.synchronized&&c.push("alineado (SYNC): puede haber bytes de relleno delante"),c.push(`${n.lengthInBytes} bytes`),c.push(n.offsetUnknown?"offset NO verificable (hueco previo)":`offset ${n.offset}`),l.push(c.join(" | "));for(const f of n.conditionValues??[])l.push(`${o} 88 ${f.name} = ${f.values.join(", ")}`);for(const f of n.renamesGroups??[]){const d=f.thru?`${f.from} THRU ${f.thru}`:f.from,m=f.offset!==void 0&&f.lengthInBytes!==void 0?`${f.lengthInBytes} bytes | offset ${f.offset}`:"tramo NO resuelto (algún extremo no está en el fuente aportado)";l.push(`${o} 66 ${f.name} RENAMES ${d} — ${m} (misma memoria)`)}for(const f of n.children)op(f,i+1,l)}function ZE(n,i,l,o,c){const f=[],d=i!==void 0&&(i.edges.length>0||i.paragraphs.some(v=>!v.implicit));if(i&&d){f.push("## FLUJO (verificado por parser)"),i.programId&&f.push(`PROGRAM-ID: ${i.programId}`),f.push("Párrafos/secciones en orden de fuente:");for(const v of i.paragraphs){const T=[v.kind==="section"?"SECTION":"",v.section?`(en ${v.section})`:"",v.terminates?"[termina el programa]":"",v.inDeclaratives?"[en DECLARATIVES — lo invoca el runtime, no se ejecuta en línea]":"",v.fallsThrough?"[cae en el párrafo siguiente si no se corta antes]":"",v.implicit?"[entrada implícita — sentencias antes del primer párrafo]":""].filter(Boolean);f.push(`- ${v.name}${T.length>0?" "+T.join(" "):""}`)}if(i.edges.length>0){f.push("Aristas de flujo (transferencias de control y caídas naturales, con línea del fuente):");for(const v of i.edges){const T=[v.thru?`THRU ${v.thru}`:"",v.times!==void 0?`${v.times} TIMES`:"",v.condition??"",v.guards?`[solo si ${v.guards.join(" AND ")}]`:"",v.dynamic?"[dinámica: destino real solo se conoce en ejecución]":"",v.kind==="fall-through"?"[caída natural: no hay sentencia que la provoque; si se llegó por PERFORM/SORT, al final se vuelve al llamador]":""].filter(Boolean);f.push(`- L${v.line}: ${v.from} -> ${v.to} (${v.kind.toUpperCase()}${T.length>0?" "+T.join(" "):""})`)}}}const m=n!==void 0&&n.records.length>0;if(n&&m){f.push(""),f.push("## DATOS (verificado por parser)");for(const v of n.records)op(v,0,f)}const g=l!==void 0&&(l.files.length>0||l.execs.length>0||l.unresolvedFileOps.length>0);if(l&&g){f.push(""),f.push("## QUÉ TOCA EL PROGRAMA (verificado por parser)");for(const v of l.files){const T=[v.assignTo?`ASSIGN TO ${v.assignTo}`:"",v.organization?`ORGANIZATION ${v.organization}`:"",v.access?`ACCESS ${v.access}`:""].filter(Boolean);f.push(`- FICHERO ${v.name}${T.length>0?" | "+T.join(" | "):""}`);for(const C of v.operations){const O=C.paragraphImplicit?`${C.paragraph} [entrada implícita — no es un párrafo declarado]`:C.paragraph;f.push(` - ${C.verb}${C.mode?" "+C.mode:""} en ${O} (L${C.line})`)}v.operations.length===0&&f.push(" - declarado pero SIN operaciones en el fuente aportado")}for(const v of l.tables)f.push(`- TABLA DB2 ${v}`);for(const v of l.cursors){const T=[v.declared?"DECLARE":"",v.opened?"OPEN":"",v.fetched?"FETCH":"",v.closed?"CLOSE":""].filter(Boolean);f.push(`- CURSOR ${v.name}: ${T.join(", ")||"nombrado sin operaciones reconocidas"}`+(v.tables.length>0?` sobre ${v.tables.join(", ")}`:""))}for(const v of l.cicsCommands)f.push(`- CICS ${v.command} × ${v.count}`);if(l.execs.length>0){f.push("Bloques EXEC en orden de fuente (texto literal, sin interpretar):");for(const v of l.execs){const T=v.paragraph?` (${v.paragraph}${v.paragraphImplicit?" — entrada implícita":""})`:" (DATA DIVISION)",C=v.dynamic?" [DINÁMICO: recurso/tabla real solo se conoce en ejecución]":"";f.push(` - L${v.line}${T}: ${v.text}${C}`)}}}if(!d&&!m&&!g)return"";const p=c!==void 0&&(c.calls.length>0||c.programs.length>1);if(c&&p){if(f.push(""),f.push("## CADENA ENTRE PROGRAMAS (verificado por parser)"),c.calls.length>0){f.push("Llamadas que cruzan de un programa a otro:");for(const v of c.calls){const T=v.dynamic?"[dinámica: destino real solo en ejecución]":v.resolved?"[fuente aportado]":"[fuente NO aportado]";f.push(`- L${v.line}: ${v.fromProgram} · ${v.fromParagraph} -> ${v.toProgram} ${T}`)}}for(const v of c.programs){if(i?.programId&&v.name===i.programId)continue;const T=v.flow.paragraphs.filter(C=>!C.implicit);if(!(T.length===0&&v.flow.edges.length===0)){f.push(`Programa ${v.name} (aportado) — qué hace por dentro:`),T.length>0&&f.push(" Párrafos: "+T.map(C=>C.name+(C.terminates?" [termina]":"")).join(", "));for(const C of v.flow.edges){if(C.kind!=="perform"&&C.kind!=="call"&&C.kind!=="goto")continue;const O=C.guards?` [solo si ${C.guards.join(" AND ")}]`:"";f.push(` - ${C.from} -> ${C.to} (${C.kind.toUpperCase()}${C.dynamic?" dinámica":""}${O})`)}}}}if(o&&o.length>0){f.push(""),f.push("## AVISOS — trampas de mantenimiento verificadas (no límites de fidelidad)");for(const v of o)f.push(`- L${v.line}${v.paragraph?` (${v.paragraph})`:""}: ${v.message}`)}const A=[];i?.fragment&&A.push("El fuente es un FRAGMENTO sin PROCEDURE DIVISION: fidelidad parcialmente verificada.");for(const v of n?.missingCopybooks??[])A.push(`Copybook ${v} NO disponible: su estructura es desconocida.`);for(const v of i?.missingTargets??[])A.push(`El destino ${v} no existe en el fuente aportado.`);for(const v of i?.nestedPrograms??[])A.push(`El fuente contiene el programa anidado ${v}, cuyo flujo NO se ha analizado: no aparece en los párrafos ni en las aristas de arriba.`);for(const v of i?.edges??[])v.dynamic&&A.push(`CALL dinámica en L${v.line}: el programa destino (${v.to}) es una variable.`);for(const v of l?.unresolvedFileOps??[])A.push(`${v.verb} ${v.target} en L${v.line}: no hay SELECT ni FD que diga a qué fichero corresponde.`);for(const v of l?.execs??[])v.dynamic&&A.push(`EXEC ${v.kind.toUpperCase()} ${v.verb} en L${v.line}: el recurso (tabla o fichero/programa CICS) es una variable, no se conoce en el fuente.`);for(const v of c?.missingPrograms??[])A.push(`El programa ${v} se llama con CALL literal pero su fuente NO se ha aportado: su comportamiento es desconocido.`);if(A.length>0){f.push(""),f.push("## LÍMITES DE LO VERIFICADO");for(const v of A)f.push(`- ${v}`)}return f.join(`
|
|
15
|
+
`)}function va(n){return n.toUpperCase().replace(/[^A-Z0-9]/g,"_")}function Tn(n){return n.replace(/"/g,"#quot;")}function zE(n){const i=()=>{if(n.kind==="call")return n.dynamic?"CALL dinámica":"CALL";if(n.kind==="goto")return n.condition?`GO TO ${n.condition}`:"GO TO";if(n.kind==="fall-through")return"cae en (sin transferencia)";if(n.kind==="sort-input")return n.thru?`SORT INPUT THRU ${n.thru}`:"SORT INPUT";if(n.kind==="sort-output")return n.thru?`SORT OUTPUT THRU ${n.thru}`:"SORT OUTPUT";let l="PERFORM";return n.thru&&(l+=` THRU ${n.thru}`),n.times!==void 0&&(l+=` ${n.times} TIMES`),n.condition&&(l+=` ${n.condition}`),l};return n.guards?`[${n.guards.join(" AND ")}] ${i()}`:i()}function rp(n){const i=["flowchart TD"];n.fragment&&i.push(' NOTA_FRAGMENTO["⚠ Fragmento sin PROCEDURE DIVISION — parcialmente verificado"]'),n.nestedPrograms.length>0&&i.push(` NOTA_ANIDADOS["⚠ Programas anidados sin analizar: ${Tn(n.nestedPrograms.join(", "))}"]`);const l=new Set;for(const o of n.paragraphs){const c=va(o.name);l.add(c);let f=o.name;o.implicit&&(f+=" (entrada implícita)"),o.terminates&&(f+=" — fin"),o.implicit?i.push(` ${c}(["${Tn(f)}"])`):o.kind==="section"?i.push(` ${c}[["${Tn(f)} SECTION"]]`):i.push(` ${c}["${Tn(f)}"]`)}for(const o of n.edges){const c=va(o.to);l.has(c)||(l.add(c),o.kind==="call"?i.push(` ${c}[["${Tn(o.to)}"]]`):i.push(` ${c}["${Tn(o.to)} ⟵ no encontrado"]`))}for(const o of n.edges){const c=o.kind==="fall-through"?"-.->":"-->";i.push(` ${va(o.from)} ${c}|"${Tn(zE(o))}"| ${va(o.to)}`)}return i.join(`
|
|
16
|
+
`)+`
|
|
17
|
+
`}function PE(n){const i=["flowchart LR"],l=new Set;for(const o of n.programs){const c=va(o.name);l.add(c),i.push(` ${c}["${Tn(o.name)}"]`)}for(const o of n.calls){const c=va(o.toProgram);if(l.has(c))continue;l.add(c);const f=o.dynamic?`${o.toProgram} — destino dinámico`:`${o.toProgram} — fuente no aportado`;i.push(` ${c}["${Tn(f)}"]`)}for(const o of n.calls){const c=o.dynamic?`CALL dinámica (${o.fromParagraph})`:`CALL (${o.fromParagraph})`;i.push(` ${va(o.fromProgram)} -->|"${Tn(c)}"| ${va(o.toProgram)}`)}return i.join(`
|
|
18
|
+
`)+`
|
|
19
|
+
`}function bo(n){return" ".repeat(n)}function Mt(n){return n.replace(/\|/g,"\\|")}function cp(n,i,l){if(n.type==="unresolved-copy"){l.push(`| ${bo(i)}COPY ${Mt(n.unresolvedCopyMember??"")} | — | no disponible | | ? | ? | copybook ausente |`);return}const o=[];n.dataSection&&o.push(n.dataSection),n.value!==void 0&&o.push(`VALUE ${n.value}`),n.redefines&&o.push(`REDEFINES ${n.redefines}`),n.occurs!==void 0&&o.push(`OCCURS ${n.occurs}`),n.occursDepending&&o.push(`OCCURS ${n.occursDepending.min}..${n.occursDepending.max??"?"} DEPENDING ON ${n.occursDepending.dependingOn}`),n.synchronized&&o.push("alineado (SYNC)");const c=n.type==="group"?"grupo":(n.picture??n.type)+(n.type==="numeric-edited"?" (editado)":""),f=n.offsetUnknown?"?":String(n.offset);l.push(`| ${bo(i)}${Mt(n.name)} | ${String(n.level).padStart(2,"0")} | ${Mt(c)} | ${n.usage??""} | ${n.lengthInBytes} | ${f} | ${Mt(o.join("; "))} |`);for(const d of n.conditionValues??[])l.push(`| ${bo(i+1)}88 ${Mt(d.name)} | 88 | | | | | = ${Mt(d.values.join(", "))} |`);for(const d of n.children)cp(d,i+1,l);for(const d of n.renamesGroups??[]){const m=d.thru?`${d.from} THRU ${d.thru}`:d.from,g=d.offset!==void 0&&d.lengthInBytes!==void 0?String(d.lengthInBytes):"?",p=d.offset!==void 0?String(d.offset):"?";l.push(`| ${bo(i+1)}66 ${Mt(d.name)} | 66 | misma memoria | | ${g} | ${p} | RENAMES ${Mt(m)} |`)}}function BE(n,i){n.summary&&(i.push("## Resumen"),i.push(""),i.push(n.summary),i.push("")),n.walkthrough.length>0&&(i.push("## Recorrido"),i.push(""),i.push("_Narración generada por IA sobre los hechos del parser; cada etapa enlaza al párrafo que la demuestra._"),i.push(""),n.walkthrough.forEach((l,o)=>{const c=l.paragraph?` — \`${l.paragraph}\`${l.line!==void 0?` (L${l.line})`:""}${l.branches?" · rama condicional":""}`:"";i.push(`${o+1}. ${l.text}${c}`)}),i.push(""))}const GE={read:"R",write:"W","read-write":"RW",unclassified:"?"};function FE(n,i){if(n.fields.length===0)return;i.push("## Dónde se usa cada campo"),i.push(""),i.push("_Lecturas (`R`) y escrituras (`W`) de cada dato en la PROCEDURE DIVISION, verificadas contra el fuente. `RW` = un mismo operando leído y escrito en la sentencia (`ADD 1 TO X`). `?` = el verbo no permite afirmar el rol. `~` marca lo incierto (argumento por referencia de una CALL, MOVE CORRESPONDING, homónimo…)._"),i.push("");const l=14;for(const o of n.fields){const c=new Set,f=[];for(const d of[...o.writes,...o.reads,...o.unclassified].sort((m,g)=>m.line-g.line)){const m=`${d.line}|${d.verb}|${d.kind}`;c.has(m)||(c.add(m),f.push(d))}i.push(`- **${Mt(o.name)}**`);for(const d of f.slice(0,l)){const m=d.paragraphImplicit?`${d.paragraph} (entrada implícita)`:d.paragraph,g=[d.via88?`vía ${d.via88}`:"",d.uncertain?"~":""].filter(Boolean);i.push(` - \`${GE[d.kind]}\` ${Mt(m)} L${d.line} — ${Mt(d.verb)}${g.length>0?` (${g.join(", ")})`:""}`)}f.length>l&&i.push(` - … y ${f.length-l} usos más`)}i.push("")}function $E(n,i){const l=n.assignments;if(l.length===0)return;const o=new Map,c=new Map,f=(p,A,v)=>{const T=p.get(A);T?T.push(v):p.set(A,[v])};for(const p of l)f(o,p.to,p),f(c,p.from,p);const d=[...new Set([...o.keys(),...c.keys()])].sort();i.push("## Trazabilidad de datos"),i.push(""),i.push("_Aristas de propagación de valor campo→campo (MOVE/COMPUTE/…) y solapes REDEFINES, verificadas contra el fuente. Insensible al orden de ejecución: cada arista es un flujo POSIBLE, no el que gana al final. `~` incierto, `solape` = REDEFINES._"),i.push("");const m=10,g=(p,A)=>{if(A.kind==="redefines")return`${Mt(p)} (solape)`;const v=A.uncertain?" ~":"";return`${Mt(p)} (${Mt(A.verb)} L${A.line}${v})`};for(const p of d){const A=(o.get(p)??[]).slice(0,m).map(C=>g(C.from,C)),v=(c.get(p)??[]).slice(0,m).map(C=>g(C.to,C)),T=[];A.length>0&&T.push(`viene de ${A.join(", ")}`),v.length>0&&T.push(`va a ${v.join(", ")}`),i.push(`- **${Mt(p)}** — ${T.join("; ")}`)}i.push("")}function qE(n){const{data:i,flow:l,inventory:o,advisories:c,references:f,explanation:d,sourceName:m}=n,g=[],p=l?.programId??m??"programa COBOL";g.push(`# Dossier de onboarding — ${p}`),g.push("");const A=E0(i,l,o);g.push(A.level==="verified"?"> **Fidelidad: verificado por parser.** Los hechos (flujo, datos, inventario) salen del fuente, no de una estimación. La prosa, si la hay, es de una IA sobre esos hechos.":`> **Fidelidad: parcialmente verificado.** ${A.reasons.join("; ")}.`),g.push(""),g.push("_Generado por KnowFlow. Los diagramas Mermaid se renderizan solos en GitHub y la mayoría de wikis._"),g.push(""),d&&(d.structured?BE(d,g):d.raw.trim()!==""&&(g.push("## Resumen"),g.push(""),g.push(d.raw.trim()),g.push("")));const v=l!==void 0&&(l.edges.length>0||l.paragraphs.some(O=>!O.implicit));if(l&&v&&(g.push("## Flujo"),g.push(""),g.push("```mermaid"),g.push(rp(l).trimEnd()),g.push("```"),g.push("")),i&&i.records.length>0){g.push("## Datos"),g.push(""),g.push("| Campo | Nivel | PIC / tipo | USAGE | Bytes | Offset | Notas |"),g.push("| --- | ---: | --- | --- | ---: | ---: | --- |");const O=[];for(const D of i.records)cp(D,0,O);g.push(...O),g.push("")}f&&(FE(f,g),$E(f,g));const T=o!==void 0&&(o.files.length>0||o.execs.length>0||o.unresolvedFileOps.length>0);if(o&&T){if(g.push("## Qué toca el programa"),g.push(""),o.files.length>0){g.push("### Ficheros"),g.push("");for(const O of o.files){const D=[O.assignTo?`ASSIGN TO ${O.assignTo}`:"",O.organization??"",O.access??""].filter(Boolean);g.push(`- **${O.name}**${D.length>0?` — ${D.join(", ")}`:""}`);for(const z of O.operations){const _=z.paragraphImplicit?`${z.paragraph} (entrada implícita)`:z.paragraph;g.push(` - ${z.verb}${z.mode?` ${z.mode}`:""} en ${_} (L${z.line})`)}O.operations.length===0&&g.push(" - declarado, sin operaciones en el fuente aportado")}g.push("")}if(o.tables.length>0&&(g.push(`**Tablas DB2:** ${o.tables.join(", ")}`),g.push("")),o.cursors.length>0){g.push("### Cursores"),g.push("");for(const O of o.cursors){const D=[O.declared?"DECLARE":"",O.opened?"OPEN":"",O.fetched?"FETCH":"",O.closed?"CLOSE":""].filter(Boolean);g.push(`- **${O.name}**: ${D.join(" → ")||"nombrado sin operaciones reconocidas"}`+(O.tables.length>0?` — sobre ${O.tables.join(", ")}`:""))}g.push("")}if(o.cicsCommands.length>0&&(g.push(`**Comandos CICS:** ${o.cicsCommands.map(O=>`${O.command}${O.count>1?` ×${O.count}`:""}`).join(", ")}`),g.push("")),o.unresolvedFileOps.length>0){const O=[...new Set(o.unresolvedFileOps.map(D=>`${D.verb} ${D.target}`))];g.push(`**E/S sin fichero resuelto** (falta el SELECT o el FD): ${O.join(", ")}`),g.push("")}}if(c&&c.length>0){g.push("## Avisos — cuidado con esto"),g.push(""),g.push("_Trampas de mantenimiento verificadas contra el fuente, no huecos de fidelidad._"),g.push("");for(const O of c){const D=O.line>0?` (${O.paragraph?`${O.paragraph}, `:""}L${O.line})`:"";g.push(`- **${O.title}**${D} — ${O.message}`)}g.push("")}const C=kE(i,l,o,f);if(C.length>0){g.push("## Límites de lo verificado"),g.push("");for(const O of C)g.push(`- ${O}`);g.push("")}return g.join(`
|
|
20
|
+
`).replace(/\n{3,}/g,`
|
|
21
|
+
|
|
22
|
+
`).trimEnd()+`
|
|
23
|
+
`}function kE(n,i,l,o){const c=[];i?.fragment&&c.push("El fuente es un fragmento sin PROCEDURE DIVISION: fidelidad parcial."),o&&o.unknownNames.length>0&&c.push(`Nombres usados en la PROCEDURE que no casan con el esquema aportado (¿copybook ausente?): ${o.unknownNames.join(", ")}.`);for(const f of n?.missingCopybooks??[])c.push(`Copybook \`${f}\` no disponible: su estructura es desconocida.`);for(const f of i?.missingTargets??[])c.push(`El destino \`${f}\` no existe en el fuente aportado.`);for(const f of i?.nestedPrograms??[])c.push(`El programa anidado \`${f}\` no se ha analizado.`);for(const f of i?.edges??[])f.dynamic&&c.push(`CALL dinámica en L${f.line}: el destino (\`${f.to}\`) es una variable.`);for(const f of l?.unresolvedFileOps??[])c.push(`\`${f.verb} ${f.target}\` en L${f.line}: sin SELECT ni FD que lo respalde.`);for(const f of l?.execs??[])f.dynamic&&c.push(`EXEC ${f.kind.toUpperCase()} ${f.verb} en L${f.line}: el recurso es una variable.`);return c}function Ht(n){const i=n.map(l=>l.replace(/([.*+?^${}()|[\]\\])/g,"\\$1").replace(/\s+/g,"\\s+")).join("|");return new RegExp(`(?<![A-Za-z0-9-])(?:${i})(?![A-Za-z0-9-])`,"gi")}function pm(n){return new RegExp(`(?<![A-Za-z0-9-])(?:${n.join("|")})(?![A-Za-z0-9-])`,"gi")}const up=[{id:"comp3",term:"COMP-3",sub:"USAGE COMPUTATIONAL-3 · decimal empaquetado",short:"Decimal empaquetado: 2 dígitos por byte y el último medio-byte es el signo.",what:"Guarda un número decimal empaquetado: dos dígitos por byte, y el último medio-byte (nibble) es el signo. Un PIC S9(10)V99 COMP-3 son 6 bytes, no 12.",why:"Ahorra la mitad de espacio frente a DISPLAY (un byte por dígito) y las operaciones aritméticas son más rápidas en el hardware. Por eso casi todos los importes en COBOL son COMP-3.",gotcha:"No puedes volcarlo a un campo alfanumérico con MOVE y leerlo: son bytes empaquetados, no caracteres. Sale basura. Y comparar dos COMP-3 con distinto tamaño requiere un campo intermedio.",example:`05 ACCT-BALANCE PIC S9(10)V99 COMP-3.
|
|
24
|
+
* 12 dígitos → 6 bytes`,pattern:Ht(["COMP-3","COMPUTATIONAL-3","PACKED-DECIMAL"])},{id:"comp",term:"COMP",sub:"USAGE COMPUTATIONAL · binario",short:"Entero binario del hardware: 2, 4 u 8 bytes según los dígitos.",what:"Guarda un entero binario tal cual lo entiende la CPU (halfword, fullword o doubleword). PIC S9(4) COMP son 2 bytes; S9(8) COMP son 4; S9(18) COMP son 8.",why:"Es el tipo más rápido para contadores, subíndices e índices de tabla porque no necesita conversión.",gotcha:"El límite superior lo pone el número de dígitos declarados en PIC, no los bytes: S9(4) COMP acepta hasta ±9999 aunque el fullword daría para más.",example:`05 WS-COUNT PIC S9(4) COMP.
|
|
25
|
+
* hasta ±9999, 2 bytes`,pattern:Ht(["COMP","COMPUTATIONAL","BINARY"])},{id:"picx",term:"PIC X(n)",sub:"campo alfanumérico",short:"Alfanumérico de n caracteres, un byte por carácter.",what:"Reserva n caracteres, un byte cada uno. Guarda cualquier texto: letras, dígitos como texto, espacios, símbolos. Se rellena con espacios por la derecha si el valor es más corto.",why:"Es el tipo por defecto para lo que no es numérico de cálculo: claves, códigos, nombres, indicadores de una letra.",gotcha:'PIC X(4) con valor "7" guarda "7 " (con 3 espacios). Comparar contra "7" sin más da falso: hay que contar con el relleno o usar TRIM equivalente.',example:`05 ACCT-ID PIC X(11).
|
|
26
|
+
* "00000000042" ocupa 11 bytes`,pattern:pm(["PIC\\s+X(?:\\(\\d+\\))?","PICTURE\\s+X(?:\\(\\d+\\))?"])},{id:"pic9",term:"PIC 9(n)",sub:"campo numérico DISPLAY",short:"Numérico de n dígitos, un byte por dígito (formato texto).",what:"Reserva n dígitos, un byte cada uno. Sin USAGE explícito es DISPLAY: cada dígito es un carácter ASCII/EBCDIC. Se rellena con ceros por la izquierda.",why:"Es la forma más legible y la que se lee directamente en un dump. Los importes que no necesitan velocidad y los campos de fichero secuencial suelen ser 9 DISPLAY.",gotcha:"Ocupa mucho más que un COMP-3 equivalente. Un PIC 9(10) DISPLAY son 10 bytes; el COMP-3 son 6.",example:`05 WS-COUNT PIC 9(4).
|
|
27
|
+
* 4 bytes en DISPLAY`,pattern:pm(["PIC\\s+9(?:\\(\\d+\\))?","PICTURE\\s+9(?:\\(\\d+\\))?"])},{id:"picedit",term:"PIC editado",sub:"campo de presentación",short:"Campo para mostrar: cada Z, *, coma, punto o barra ocupa un byte real.",what:"Un PIC con caracteres de edición (Z, *, +, -, coma, punto, barra, B, 0, CR, DB): cada uno ocupa un byte de la memoria real. ZZ,ZZ9.99 son 9 bytes.",why:"Es como se preparan los importes para imprimir o mostrar: quita ceros a la izquierda, mete separadores, alinea el signo. No sirve para cálculo.",gotcha:"No puedes hacer ADD sobre un PIC editado. Y su tamaño no coincide con el del campo numérico que representa: no confundir 6 bytes de COMP-3 con los 9 de su presentación.",example:`05 IMP-EDITADO PIC ZZ,ZZ9.99.
|
|
28
|
+
* 9 bytes`,pattern:Ht(["numeric-edited"])},{id:"level88",term:"Nivel 88",sub:"condición con nombre",short:"Nombre legible para un valor concreto de un campo (una condición).",what:'No es un campo: es un nombre legible para un valor (o rango) del campo padre. CUENTA-ACTIVA es cierto cuando ACCT-STATUS = "A".',why:'Deja preguntar por el significado (IF CUENTA-ACTIVA) en vez de por la letra (IF ACCT-STATUS = "A"). Más legible, más difícil de romper y busca-fácil.',gotcha:"No ocupa memoria y no aparece en el layout de bytes. Si borras el campo padre, todos sus 88 desaparecen.",example:`05 ACCT-STATUS PIC X.
|
|
29
|
+
88 CUENTA-ACTIVA VALUE "A".
|
|
30
|
+
88 CUENTA-CERRADA VALUE "C".`,pattern:new RegExp("(?<![A-Za-z0-9-])(?:niveles?\\s+88|88\\s+level|level\\s+88)(?![A-Za-z0-9-])","gi")},{id:"level66",term:"Nivel 66",sub:"RENAMES · vista alternativa",short:"Nombre alternativo para un tramo contiguo del registro (no reserva memoria).",what:"Renombra un tramo contiguo de campos del registro con un solo nombre. Como REDEFINES, es otra vista de bytes que ya existen; no reserva memoria nueva.",why:"Útil cuando parte de un registro representa un concepto que quieres tratar como un bloque (una clave compuesta, una zona de trabajo).",gotcha:'El rango tiene que ser contiguo. Si el fuente que aportas no tiene los dos extremos, el offset queda "no verificable".',example:`01 REGISTRO.
|
|
31
|
+
05 F1 PIC X(2).
|
|
32
|
+
05 F2 PIC X(3).
|
|
33
|
+
66 CLAVE-ENTERA RENAMES F1 THRU F2.`,pattern:new RegExp("(?<![A-Za-z0-9-])(?:niveles?\\s+66|RENAMES)(?![A-Za-z0-9-])","gi")},{id:"redefines",term:"REDEFINES",sub:"misma memoria, otra vista",short:"Otra vista sobre los mismos bytes: no reserva memoria nueva.",what:"Un campo con REDEFINES ocupa los mismos bytes que otro (o los mismos que un grupo). Ver los datos de dos formas distintas sin copiarlos.",why:"Común para tratar el mismo registro como texto o como campos numéricos, o para leer un fichero cuyas variantes ocupan el mismo espacio (unión).",gotcha:"Los REDEFINES no se pueden anidar libremente, y siempre van pegados al campo que redefinen. Si el original es más corto que el REDEFINES, COBOL reserva el máximo de los dos.",example:`05 FECHA PIC 9(8).
|
|
34
|
+
05 FECHA-PARTES REDEFINES FECHA.
|
|
35
|
+
10 F-ANIO PIC 9(4).
|
|
36
|
+
10 F-MES PIC 9(2).
|
|
37
|
+
10 F-DIA PIC 9(2).`,pattern:Ht(["REDEFINES"])},{id:"occurs",term:"OCCURS",sub:"tabla / array",short:"Repite un campo o grupo N veces (array).",what:"Un campo con OCCURS 10 es una tabla de 10 elementos consecutivos en memoria. Se accede con un subíndice: TABLA (I).",why:"Es la forma que tiene COBOL de declarar arrays. La variante DEPENDING ON hace la tabla de longitud variable.",gotcha:"El subíndice empieza en 1, no en 0. Y el compilador no comprueba límites: acceder a TABLA(99) en una tabla de 10 lee memoria contigua sin error.",example:`05 TABLA OCCURS 10 TIMES.
|
|
38
|
+
10 T-ID PIC X(4).
|
|
39
|
+
10 T-IMP PIC S9(7)V99 COMP-3.`,pattern:Ht(["OCCURS"])},{id:"sync",term:"SYNCHRONIZED",sub:"alineación en memoria",short:"Alinea el campo a su frontera natural (puede añadir bytes de relleno).",what:"Fuerza al compilador a alinear un binario o un flotante a su frontera natural (2/4/8 bytes desde el inicio del 01). Puede dejar bytes de relleno vacíos delante.",why:"Necesario para que el hardware pueda leer una palabra completa de golpe sin penalización. Los punteros van alineados aunque no se escriba SYNC.",gotcha:'Si añades un SYNC a un registro existente, todos los offsets siguientes pueden desplazarse por los bytes de relleno. El parser te lo marca con la etiqueta "alineado".',example:`05 WS-FLAG PIC X.
|
|
40
|
+
05 WS-BIN PIC S9(8) COMP SYNC.
|
|
41
|
+
* offset 4, con 3 bytes de relleno`,pattern:Ht(["SYNCHRONIZED","SYNC"])},{id:"fd",term:"FD",sub:"File Description",short:"Describe un fichero y el formato de sus registros (FILE SECTION).",what:"Bajo la FD se declaran los 01 que definen el layout de los registros del fichero. Es el puente entre el fichero físico y la estructura en memoria.",why:"El nombre del FD conecta con el SELECT ... ASSIGN, y este con el ddname del JCL. El fichero físico real lo decide el JCL, no el programa.",gotcha:"El nombre del FD es el interno del programa, no el ddname del JCL. Y un fichero puede tener varios 01 alternativos si tiene varios tipos de registro.",example:`FD ACCTFILE.
|
|
42
|
+
01 ACCT-RECORD.
|
|
43
|
+
05 ACCT-ID PIC X(11).`,pattern:Ht(["FD","SD"])},{id:"read",term:"READ ... INTO",sub:"lectura de un registro",short:"Lee el siguiente registro del fichero. AT END marca el fin.",what:"Lee el siguiente registro del fichero y lo copia en una estructura de la WORKING-STORAGE. La cláusula AT END dispara cuando ya no quedan registros.",why:"Es el verbo con el que un batch recorre un fichero secuencial: un READ por vuelta del bucle, hasta que AT END pone el flag de fin.",gotcha:"Sin cláusula AT END (o NOT AT END), un READ tras el fin de fichero da un error de ejecución. Siempre hay que manejar el fin.",example:`READ ACCTFILE INTO WS-ACCOUNT
|
|
44
|
+
AT END SET FIN-FICHERO TO TRUE
|
|
45
|
+
END-READ`,pattern:Ht(["READ INTO","READ","REWRITE","START"])},{id:"perform",term:"PERFORM",sub:"llamar a un párrafo · bucle",short:"Ejecuta un párrafo (y vuelve al terminar) o repite un bloque.",what:"Con destino: ejecuta ese párrafo/rango y devuelve el control al que llamó al terminar. En su forma inline (UNTIL/VARYING/N TIMES ... END-PERFORM) es un bucle.",why:"Es la forma estructurada de llamar a subrutinas dentro del programa. Distinto de GO TO, que no vuelve.",gotcha:"PERFORM A THRU B ejecuta desde A hasta el fin de B: cualquier párrafo que caiga en medio también se ejecuta, aunque no lo veas al llamarlo.",example:`PERFORM 2100-READ
|
|
46
|
+
PERFORM 2000-LOOP UNTIL WS-EOF = "Y"
|
|
47
|
+
PERFORM 3 TIMES
|
|
48
|
+
ADD 1 TO WS-COUNT
|
|
49
|
+
END-PERFORM`,pattern:Ht(["PERFORM"])},{id:"call",term:"CALL",sub:"llamar a otro programa",short:"Llama a otro programa (módulo). Si el destino es una variable, es dinámica.",what:'Transfiere el control a otro programa COBOL. Con literal ("VALIDMOD") el destino es fijo; con nombre de variable, el destino solo se sabe en ejecución (dinámica).',why:"Es como se descompone una aplicación en módulos separados. USING pasa parámetros por referencia (o por valor, con BY VALUE).",gotcha:'Con CALL dinámico, el fichero JCL que da nombre al módulo real puede cambiar sin que el fuente del que llama cambie. El parser lo marca con "dinámico".',example:`CALL "VALIDMOD" USING WS-REGISTRO
|
|
50
|
+
CALL WS-PGM-NAME USING WS-DATA`,pattern:Ht(["CALL"])},{id:"goto",term:"GO TO",sub:"salto sin retorno",short:"Salta a otro párrafo sin volver. En COBOL moderno, evitar.",what:"Transfiere el control a otro párrafo y NO vuelve al llamador. GO TO ... DEPENDING ON es una tabla de saltos según un valor.",why:"Es el único salto no estructurado de COBOL. Sobrevive por compatibilidad y porque a veces simplifica salidas de emergencia.",gotcha:"Un GO TO fuera de la sección/párrafo actual puede saltarse limpiezas críticas (cierres de fichero, ROLLBACK). Trátalos con lupa.",example:`IF WS-ERROR-GRAVE
|
|
51
|
+
GO TO 9999-ABEND
|
|
52
|
+
END-IF`,pattern:Ht(["GO TO","GOTO"])},{id:"ends",term:"STOP RUN / GOBACK",sub:"fin del programa",short:"STOP RUN termina el job; GOBACK devuelve al llamador (o al SO si es raíz).",what:"STOP RUN termina la ejecución del job entero. GOBACK devuelve el control: al que llamó con CALL, o al sistema si es el programa raíz. EXIT PROGRAM = GOBACK.",why:"GOBACK es lo correcto en un módulo llamado (permite que el que te llamó siga); STOP RUN es lo correcto en el programa principal.",gotcha:"STOP RUN en un módulo llamado cierra el job entero, no solo tu módulo. Suele ser un bug.",example:`9000-CLEANUP.
|
|
53
|
+
CLOSE ACCTFILE.
|
|
54
|
+
GOBACK.`,pattern:Ht(["STOP RUN","GOBACK","EXIT PROGRAM"])},{id:"evaluate",term:"EVALUATE",sub:"switch estructurado",short:"Como un switch: WHEN por WHEN, con OTHER como default.",what:'Evalúa un sujeto (o TRUE) y elige la primera rama WHEN cuya condición se cumpla. WHEN OTHER es el "por defecto".',why:"Mucho más legible que un ELSE encadenado. Y EVALUATE TRUE deja escribir condiciones complejas sin anidar.",gotcha:'Solo se ejecuta la primera rama que casa; no hay "fall-through" como en C. Y sin WHEN OTHER, si nada casa, no pasa nada (silencio).',example:`EVALUATE WS-TIPO
|
|
55
|
+
WHEN "A" PERFORM DO-A
|
|
56
|
+
WHEN "B" WHEN "C" PERFORM DO-BC
|
|
57
|
+
WHEN OTHER PERFORM DO-REST
|
|
58
|
+
END-EVALUATE`,pattern:Ht(["EVALUATE"])},{id:"execsql",term:"EXEC SQL",sub:"DB2 embebido",short:"Bloque SQL para DB2 embebido en el fuente COBOL.",what:"Un bloque SQL delimitado por EXEC SQL ... END-EXEC. El preprocesador DB2 lo traduce a llamadas al runtime antes de compilar.",why:"Es como COBOL habla con DB2. Las host variables (`:WS-NAME`) mueven datos entre el programa y la base.",gotcha:"Hay que comprobar SQLCODE tras cada bloque, no solo tras el fallo. Un SQL dinámico (PREPARE/EXECUTE) es como CALL dinámico: no sabes qué tabla toca leyendo el fuente.",example:`EXEC SQL
|
|
59
|
+
SELECT NAME INTO :WS-NAME
|
|
60
|
+
FROM CUSTOMER
|
|
61
|
+
WHERE ID = :WS-ID
|
|
62
|
+
END-EXEC`,pattern:new RegExp("(?<![A-Za-z0-9-])EXEC\\s+SQL(?![A-Za-z0-9-])","gi")},{id:"execcics",term:"EXEC CICS",sub:"transacción CICS",short:"Bloque CICS: envía maps, llama a programas, lee ficheros online.",what:"Un bloque CICS delimitado por EXEC CICS ... END-EXEC. Habla con el monitor CICS: pantallas (SEND MAP), programas (LINK), ficheros VSAM, colas.",why:"Es lo que convierte un programa COBOL en una transacción online. Sin CICS solo tienes batch.",gotcha:"El campo EIBRESP tras cada bloque dice si fue bien. Un HANDLE CONDITION captura errores para toda la transacción, así que un error puede resurgir lejos de donde ocurrió.",example:`EXEC CICS SEND MAP("MENU1") MAPSET("MENUSET") END-EXEC
|
|
63
|
+
EXEC CICS LINK PROGRAM("SUBPRG") END-EXEC`,pattern:new RegExp("(?<![A-Za-z0-9-])EXEC\\s+CICS(?![A-Za-z0-9-])","gi")},{id:"copy",term:"COPY",sub:"inclusión de copybook",short:"Incluye un fragmento COBOL (copybook) tal cual.",what:"El preprocesador COBOL sustituye el COPY por el contenido del member. Con REPLACING, cambia identificadores sobre la marcha.",why:"Es la forma clásica de compartir estructuras de datos entre programas: un registro define el layout una sola vez y lo importan los que lo necesitan.",gotcha:"Si el copybook cambia, todos los programas que lo usan hay que recompilarlos. Y COPY REPLACING sustituye texto, no símbolos: puede romper cosas por accidente.",example:`WORKING-STORAGE SECTION.
|
|
64
|
+
COPY CUSTREC.
|
|
65
|
+
|
|
66
|
+
* con REPLACING
|
|
67
|
+
COPY CUSTREC REPLACING ==:PFX:== BY ==WS==.`,pattern:Ht(["COPY"])},{id:"linkage",term:"LINKAGE SECTION",sub:"parámetros de entrada",short:"Lo que el programa recibe cuando otro lo llama con CALL.",what:"Declara los datos que llegan como parámetros. No reserva memoria: apunta a la memoria del programa que llamó.",why:"Es la contrapartida del USING de la CALL. Todo lo que quieres que un módulo pueda recibir va aquí.",gotcha:"Tocar la LINKAGE sin haber sido llamado (o desde el batch inicial) da un error de acceso a memoria. Y modificar un campo LINKAGE cambia el valor en el que llamó.",example:`LINKAGE SECTION.
|
|
68
|
+
01 LK-PARM.
|
|
69
|
+
05 LK-CODIGO PIC X(3).
|
|
70
|
+
PROCEDURE DIVISION USING LK-PARM.`,pattern:new RegExp("(?<![A-Za-z0-9-])LINKAGE(?:\\s+SECTION)?(?![A-Za-z0-9-])","gi")},{id:"workingstorage",term:"WORKING-STORAGE",sub:"memoria propia",short:"Memoria del programa: variables locales, contadores, buffers.",what:"Zona de datos propia del programa. Se inicializa una vez (con VALUE) y se mantiene entre invocaciones si el programa se llama varias veces.",why:"Es donde vive todo lo que el programa necesita para trabajar: contadores, flags, estructuras temporales, copias de registros de fichero.",example:`WORKING-STORAGE SECTION.
|
|
71
|
+
01 WS-COUNT PIC S9(4) COMP VALUE 0.
|
|
72
|
+
01 WS-FIN-EOF PIC X VALUE "N".`,pattern:new RegExp("(?<![A-Za-z0-9-])WORKING-STORAGE(?:\\s+SECTION)?(?![A-Za-z0-9-])","gi")}],YE=Object.freeze(Object.fromEntries(up.map(n=>[n.id,n])));function XE(n){const i=[],l=new Array(n.length).fill(!1);for(const f of up){const d=new RegExp(f.pattern.source,f.pattern.flags);for(const m of n.matchAll(d)){const g=m.index,p=g+m[0].length;let A=!0;for(let v=g;v<p;v++)if(l[v]){A=!1;break}if(A){for(let v=g;v<p;v++)l[v]=!0;i.push({start:g,end:p,term:f})}}}i.sort((f,d)=>f.start-d.start);const o=[];let c=0;for(const f of i)f.start>c&&o.push({text:n.slice(c,f.start)}),o.push({text:n.slice(f.start,f.end),term:f.term}),c=f.end;return c<n.length&&o.push({text:n.slice(c)}),o}function gm(n){return n.toUpperCase()}function KE(n){const i=[];for(const[f,d]of n){const m=ip(d),g=f.replace(/\.[^.]+$/,"");i.push({name:m.programId??g,sourceName:f,flow:m})}const l=new Set(i.map(f=>gm(f.name))),o=[],c=[];for(const f of i)for(const d of f.flow.edges){if(d.kind!=="call")continue;const m=d.dynamic===!0,g=!m&&l.has(gm(d.to));!m&&!g&&!c.includes(d.to)&&c.push(d.to),o.push({fromProgram:f.name,fromParagraph:d.from,toProgram:d.to,resolved:g,dynamic:m,line:d.line})}return{programs:i,calls:o,missingPrograms:c}}const Em=`Eres KnowFlow, un compañero de onboarding para desarrolladores junior de mainframe que heredan programas COBOL.
|
|
73
|
+
|
|
74
|
+
Recibirás HECHOS estructurales extraídos por un parser determinista (no el código fuente). Tu trabajo es narrarlos en lenguaje llano, en español, para alguien que está aprendiendo.
|
|
75
|
+
|
|
76
|
+
Devuelve EXCLUSIVAMENTE un objeto JSON válido, sin ningún texto alrededor ni vallas \`\`\`:
|
|
77
|
+
{
|
|
78
|
+
"summary": "2 a 4 frases: qué hace el programa en conjunto, en lenguaje llano",
|
|
79
|
+
"walkthrough": [
|
|
80
|
+
{ "text": "una etapa del recorrido, en lenguaje llano", "paragraph": "NOMBRE-PARRAFO" }
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
Reglas del recorrido:
|
|
85
|
+
- Entre 4 y 8 etapas. AGRUPA: da la FORMA del programa, no una transcripción párrafo a párrafo. Un programa de 80 párrafos sigue teniendo 4-8 etapas con sentido.
|
|
86
|
+
- "paragraph" debe ser EXACTAMENTE uno de los nombres de párrafo que aparecen en los HECHOS. Si una etapa no corresponde a un párrafo concreto, omite "paragraph".
|
|
87
|
+
|
|
88
|
+
REGLAS DURAS — su violación invalida la respuesta:
|
|
89
|
+
1. Solo puedes afirmar lo que esté en los hechos. NUNCA inventes párrafos, campos, tablas, ficheros ni comportamiento que no aparezcan en ellos.
|
|
90
|
+
2. Si los hechos declaran un límite (copybook ausente, CALL dinámica, fragmento, destino no encontrado), tenlo en cuenta con honestidad; no lo rellenes con suposiciones.
|
|
91
|
+
3. Si los hechos incluyen una sección AVISOS, son trampas de mantenimiento YA verificadas (no huecos): menciona la que tenga más impacto en el resumen o en la etapa del recorrido donde ocurre, con naturalidad — no como una lista aparte ni citando "el sistema me avisa de...".
|
|
92
|
+
4. Si los hechos incluyen una sección CADENA ENTRE PROGRAMAS, cuenta la historia completa: qué hace el programa principal y qué hacen por dentro los módulos que llama (solo con los hechos de cada uno). Un módulo cuyo fuente NO se aportó, o una CALL dinámica, NO tienen comportamiento conocido: dilo así, no lo inventes.
|
|
93
|
+
5. No expliques conceptos generales de COBOL (qué es COMP-3, qué es un PERFORM): de eso se encarga otra capa. Céntrate en ESTE programa.
|
|
94
|
+
6. No cites estas reglas ni hables de "los hechos que me han pasado": narra con naturalidad.`;function QE(n){const i=/```(?:json)?\s*([\s\S]*?)```/i.exec(n),l=i?i[1]:n,o=l.indexOf("{"),c=l.lastIndexOf("}");if(!(o===-1||c===-1||c<o))try{return JSON.parse(l.slice(o,c+1))}catch{return}}function WE(n,i){const l=QE(n);if(l&&typeof l=="object"){const o=l,c=typeof o.summary=="string"?o.summary.trim():"",f=Array.isArray(o.walkthrough)?o.walkthrough:[],d=[];for(const m of f){const g=typeof m=="string"?m.trim():typeof m?.text=="string"?m.text.trim():"";if(g==="")continue;const p=m?.paragraph,A=typeof p=="string"?i.canonical.get(p.trim().toUpperCase()):void 0,v=A?i.lineOf.get(A):void 0,T=A?i.branchesFrom.has(A):!1;d.push({text:g,...A?{paragraph:A}:{},...v!==void 0?{line:v}:{},...T?{branches:!0}:{}})}if(c!==""||d.length>0)return{summary:c,walkthrough:d,raw:n,structured:!0}}return{summary:"",walkthrough:[],raw:n,structured:!1}}async function JE(n,i,l){const o=ZE(n.data,n.flow,n.inventory,n.advisories,n.chain);if(o.trim()==="")throw new Error("No hay hechos que explicar: parsea un programa primero");const c=new Map,f=new Map;for(const p of n.flow?.paragraphs??[])c.set(p.name.toUpperCase(),p.name),p.line!==void 0&&f.set(p.name,p.line);const d=new Set;for(const p of n.flow?.edges??[])p.guards&&p.guards.length>0&&d.add(p.from);const m=`Narra este programa a partir de sus hechos verificados:
|
|
95
|
+
|
|
96
|
+
${o}`,g=l&&i.stream?await i.stream(Em,m,l):await i.complete(Em,m);return WE(g,{canonical:c,lineOf:f,branchesFrom:d})}async function fp(n,i){const l=n.getReader(),o=new TextDecoder;let c="";try{for(;;){const{done:f,value:d}=await l.read();if(f)break;c+=o.decode(d,{stream:!0});let m;for(;(m=c.indexOf(`
|
|
97
|
+
`))!==-1;){const g=c.slice(0,m).trim();if(c=c.slice(m+1),!g.startsWith("data:"))continue;const p=g.slice(5).trim();if(!(p===""||p==="[DONE]"))try{i(JSON.parse(p))}catch{}}}}finally{l.releaseLock()}}const ym="https://api.anthropic.com/v1/messages",Do="claude-sonnet-5";async function vm(n){const i=await n.text().catch(()=>"");let l=i;try{const c=JSON.parse(i);c.error?.message&&(l=c.error.message)}catch{}const o=n.status===401?" — revisa la clave API.":n.status===404?" — revisa el nombre del modelo.":n.status===429?" — límite de tasa o saldo agotado.":"";return`Claude API ${n.status}${o} ${l.slice(0,300)}`.trim()}function Am(n){return{"content-type":"application/json","x-api-key":n,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"}}function ey(n){const i=n.model??Do,l=n.maxTokens??2e3;return{id:"claude",async complete(o,c){const f=await fetch(ym,{method:"POST",headers:Am(n.apiKey),body:JSON.stringify({model:i,max_tokens:l,system:o,messages:[{role:"user",content:c}]})});if(!f.ok)throw new Error(await vm(f));const m=((await f.json()).content??[]).filter(g=>g.type==="text"&&typeof g.text=="string").map(g=>g.text).join("");if(m==="")throw new Error("Claude devolvió una respuesta vacía");return m},async stream(o,c,f){const d=await fetch(ym,{method:"POST",headers:Am(n.apiKey),body:JSON.stringify({model:i,max_tokens:l,system:o,messages:[{role:"user",content:c}],stream:!0})});if(!d.ok)throw new Error(await vm(d));if(!d.body)throw new Error("Claude no devolvió un cuerpo en streaming");let m="";if(await fp(d.body,g=>{const p=g;p.type==="content_block_delta"&&p.delta?.type==="text_delta"&&p.delta.text&&(m+=p.delta.text,f(p.delta.text))}),m==="")throw new Error("Claude devolvió una respuesta vacía");return m}}}async function Sm(n){const i=await n.text().catch(()=>"");let l=i;try{const c=JSON.parse(i);c.error?.message&&(l=c.error.message)}catch{}const o=n.status===401||n.status===403?" — revisa la clave/token y la cabecera de auth.":n.status===404?" — revisa el endpoint y el nombre del modelo.":n.status===429?" — límite de tasa o cuota agotada.":"";return`El endpoint respondió ${n.status}${o} ${l.slice(0,300)}`.trim()}function ty(n){const i=n.auth?.name??"Authorization",l=n.auth?.prefix??"Bearer ",o=n.maxTokens??2e3,c=()=>({"content-type":"application/json",[i]:`${l}${n.apiKey}`,...n.headers}),f=(d,m,g)=>JSON.stringify({model:n.model,max_tokens:o,messages:[{role:"system",content:d},{role:"user",content:m}],...g?{stream:!0}:{}});return{id:n.id??"openai-compatible",async complete(d,m){const g=await fetch(n.endpoint,{method:"POST",headers:c(),body:f(d,m,!1)});if(!g.ok)throw new Error(await Sm(g));const p=await g.text();let A;try{A=JSON.parse(p)}catch{throw new Error("El endpoint respondió, pero no en JSON. Revisa que la URL apunte al chat de completions y no a una página de login o a otra ruta.")}if(!Array.isArray(A.choices)){const T=A.error?.message?`: ${A.error.message}`:"";throw new Error(`El endpoint respondió pero no en formato compatible con OpenAI (falta "choices")${T}. Confirma que es un endpoint de chat completions.`)}const v=A.choices[0]?.message?.content??"";if(v==="")throw new Error("El proveedor devolvió una respuesta vacía");return v},async stream(d,m,g){const p=await fetch(n.endpoint,{method:"POST",headers:c(),body:f(d,m,!0)});if(!p.ok)throw new Error(await Sm(p));if(!p.body)throw new Error("El endpoint no devolvió un cuerpo en streaming");let A="";if(await fp(p.body,v=>{const C=v.choices?.[0]?.delta?.content;C&&(A+=C,g(C))}),A==="")throw new Error("El proveedor devolvió una respuesta vacía");return A}}}var h=h0();const NT=_g(h),ny=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M236,128a12,12,0,0,1-12,12H109l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L109,116H224A12,12,0,0,1,236,128ZM40,28A12,12,0,0,0,28,40V216a12,12,0,0,0,24,0V40A12,12,0,0,0,40,28Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M144,56V200L72,128Z",opacity:"0.2"}),h.createElement("path",{d:"M224,120H152V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,152,200V136h72a8,8,0,0,0,0-16Zm-88,60.69L83.31,128,136,75.31ZM48,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M48,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0Zm176,80H152V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,152,200V136h72a8,8,0,0,0,0-16Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M230,128a6,6,0,0,1-6,6H86.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L86.49,122H224A6,6,0,0,1,230,128ZM40,34a6,6,0,0,0-6,6V216a6,6,0,0,0,12,0V40A6,6,0,0,0,40,34Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M232,128a8,8,0,0,1-8,8H91.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L91.31,120H224A8,8,0,0,1,232,128ZM40,32a8,8,0,0,0-8,8V216a8,8,0,0,0,16,0V40A8,8,0,0,0,40,32Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M228,128a4,4,0,0,1-4,4H81.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,1,1,5.66,5.66L81.66,124H224A4,4,0,0,1,228,128ZM40,36a4,4,0,0,0-4,4V216a4,4,0,0,0,8,0V40A4,4,0,0,0,40,36Z"}))]]),ay=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M184.49,119.51a12,12,0,0,1,0,17l-72,72a12,12,0,0,1-17-17L147,140H32a12,12,0,0,1,0-24H147L95.51,64.49a12,12,0,0,1,17-17ZM216,28a12,12,0,0,0-12,12V216a12,12,0,0,0,24,0V40A12,12,0,0,0,216,28Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M184,128l-72,72V56Z",opacity:"0.2"}),h.createElement("path",{d:"M117.66,50.34A8,8,0,0,0,104,56v64H32a8,8,0,0,0,0,16h72v64a8,8,0,0,0,13.66,5.66l72-72a8,8,0,0,0,0-11.32ZM120,180.69V75.31L172.69,128ZM224,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0ZM117.66,50.34A8,8,0,0,0,104,56v64H32a8,8,0,0,0,0,16h72v64a8,8,0,0,0,13.66,5.66l72-72a8,8,0,0,0,0-11.32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M188.24,123.76a6,6,0,0,1,0,8.48l-72,72a6,6,0,0,1-8.48-8.48L169.51,134H32a6,6,0,0,1,0-12H169.51L107.76,60.24a6,6,0,0,1,8.48-8.48ZM216,34a6,6,0,0,0-6,6V216a6,6,0,0,0,12,0V40A6,6,0,0,0,216,34Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M189.66,122.34a8,8,0,0,1,0,11.32l-72,72a8,8,0,0,1-11.32-11.32L164.69,136H32a8,8,0,0,1,0-16H164.69L106.34,61.66a8,8,0,0,1,11.32-11.32ZM216,32a8,8,0,0,0-8,8V216a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M186.83,125.17a4,4,0,0,1,0,5.66l-72,72a4,4,0,0,1-5.66-5.66L174.34,132H32a4,4,0,0,1,0-8H174.34L109.17,58.83a4,4,0,0,1,5.66-5.66ZM216,36a4,4,0,0,0-4,4V216a4,4,0,0,0,8,0V40A4,4,0,0,0,216,36Z"}))]]),iy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),h.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),sy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),h.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),ly=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M240,128l-48,40H64L16,128,64,88H192Z",opacity:"0.2"}),h.createElement("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z"}))]]),oy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"}),h.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"}))]]),ry=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),h.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),cy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),h.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),uy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm100.49-60.49a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17,0l-24-24a12,12,0,0,1,17-17L116,155V124a12,12,0,0,1,24,0v31l3.51-3.52A12,12,0,0,1,160.49,151.51Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),h.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-42.34-61.66a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L120,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35A8,8,0,0,1,157.66,154.34Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-56,83.32-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L120,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35a8,8,0,0,1,11.32,11.32ZM152,88V44l44,44Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-43.76-62.24a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L122,169.51V120a6,6,0,0,1,12,0v49.51l13.76-13.75A6,6,0,0,1,156.24,155.76Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-42.34-61.66a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L120,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35A8,8,0,0,1,157.66,154.34Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-45.17-62.83a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L124,174.34V120a4,4,0,0,1,8,0v54.34l17.17-17.17A4,4,0,0,1,154.83,157.17Z"}))]]),fy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),h.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),dy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),h.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"}))]]),hy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M87.5,151.52l64-64a12,12,0,0,1,17,17l-64,64a12,12,0,0,1-17-17Zm131-114a60.08,60.08,0,0,0-84.87,0L103.51,67.61a12,12,0,0,0,17,17l30.07-30.06a36,36,0,0,1,50.93,50.92L171.4,135.52a12,12,0,1,0,17,17l30.08-30.06A60.09,60.09,0,0,0,218.45,37.55ZM135.52,171.4l-30.07,30.08a36,36,0,0,1-50.92-50.93l30.06-30.07a12,12,0,0,0-17-17L37.55,133.58a60,60,0,0,0,84.88,84.87l30.06-30.07a12,12,0,0,0-17-17Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M209.94,113.94l-96,96a48,48,0,0,1-67.88-67.88l96-96a48,48,0,0,1,67.88,67.88Z",opacity:"0.2"}),h.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM144.56,173.66l-21.45,21.45a44,44,0,0,1-62.22-62.22l21.45-21.46a8,8,0,0,1,11.32,11.31L72.2,144.2a28,28,0,0,0,39.6,39.6l21.45-21.46a8,8,0,0,1,11.31,11.32Zm-34.9-16a8,8,0,0,1-11.32-11.32l48-48a8,8,0,0,1,11.32,11.32Zm85.45-34.55-21.45,21.45a8,8,0,0,1-11.32-11.31L183.8,111.8a28,28,0,0,0-39.6-39.6L122.74,93.66a8,8,0,0,1-11.31-11.32l21.46-21.45a44,44,0,0,1,62.22,62.22Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M164.25,91.75a6,6,0,0,1,0,8.49l-64,64a6,6,0,0,1-8.49-8.48l64-64A6,6,0,0,1,164.25,91.75ZM214.2,41.8a54.07,54.07,0,0,0-76.38,0L107.75,71.85a6,6,0,0,0,8.49,8.49l30.07-30.06a42,42,0,0,1,59.41,59.41l-30.08,30.07a6,6,0,1,0,8.49,8.49l30.07-30.07A54,54,0,0,0,214.2,41.8ZM139.76,175.64l-30.07,30.08a42,42,0,0,1-59.41-59.41l30.06-30.07a6,6,0,0,0-8.49-8.49l-30,30.07a54,54,0,0,0,76.38,76.39l30.07-30.08a6,6,0,0,0-8.49-8.49Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M162.84,93.16a4,4,0,0,1,0,5.66l-64,64a4,4,0,0,1-5.66-5.66l64-64A4,4,0,0,1,162.84,93.16Zm49.95-49.95a52.07,52.07,0,0,0-73.56,0L109.17,73.27a4,4,0,0,0,5.65,5.66l30.07-30.06a44,44,0,0,1,62.24,62.24l-30.07,30.06a4,4,0,0,0,5.66,5.66l30.07-30.06A52.07,52.07,0,0,0,212.79,43.21ZM141.17,177.06l-30.06,30.07a44,44,0,0,1-62.24-62.24l30.06-30.06a4,4,0,0,0-5.66-5.66L43.21,139.23a52,52,0,0,0,73.56,73.56l30.06-30.07a4,4,0,1,0-5.66-5.66Z"}))]]),my=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),h.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),py=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M238.15,78.54,177.46,17.86a20,20,0,0,0-28.3,0L97.2,70c-12.43-3.33-36.68-5.72-61.74,14.5a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.91,228c.46,0,.93,0,1.4-.05A20,20,0,0,0,171.87,220c4.69-6.23,11-16.13,14.44-28s3.45-22.88.16-33.4l51.7-51.87A20,20,0,0,0,238.15,78.54Zm-74.26,68.79a12,12,0,0,0-2.23,13.84c3.43,6.86,6.9,21-6.28,40.65L54.08,100.53c21.09-14.59,39.53-6.64,41-6a11.67,11.67,0,0,0,13.81-2.29l54.43-54.61,55,55Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M229.66,98.34,172.39,155.8c11.46,22.93-1.72,45.86-10.11,57a8,8,0,0,1-12,.83L42.34,105.76A8,8,0,0,1,43,93.85c29.65-23.92,57.4-10,57.4-10l57.27-57.46a8,8,0,0,1,11.31,0L229.66,87A8,8,0,0,1,229.66,98.34Z",opacity:"0.2"}),h.createElement("path",{d:"M235.32,81.37,174.63,20.69a16,16,0,0,0-22.63,0L98.37,74.49c-10.66-3.34-35-7.37-60.4,13.14a16,16,0,0,0-1.29,23.78L85,159.71,42.34,202.34a8,8,0,0,0,11.32,11.32L96.29,171l48.29,48.29A16,16,0,0,0,155.9,224c.38,0,.75,0,1.13,0a15.93,15.93,0,0,0,11.64-6.33c19.64-26.1,17.75-47.32,13.19-60L235.33,104A16,16,0,0,0,235.32,81.37ZM224,92.69h0l-57.27,57.46a8,8,0,0,0-1.49,9.22c9.46,18.93-1.8,38.59-9.34,48.62L48,100.08c12.08-9.74,23.64-12.31,32.48-12.31A40.13,40.13,0,0,1,96.81,91a8,8,0,0,0,9.25-1.51L163.32,32,224,92.68Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M235.33,104l-53.47,53.65c4.56,12.67,6.45,33.89-13.19,60A15.93,15.93,0,0,1,157,224c-.38,0-.75,0-1.13,0a16,16,0,0,1-11.32-4.69L96.29,171,53.66,213.66a8,8,0,0,1-11.32-11.32L85,159.71l-48.3-48.3A16,16,0,0,1,38,87.63c25.42-20.51,49.75-16.48,60.4-13.14L152,20.7a16,16,0,0,1,22.63,0l60.69,60.68A16,16,0,0,1,235.33,104Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M233.91,82.79,173.22,22.1a14,14,0,0,0-19.81,0L98.93,76.77c-9.52-3.25-34-8.34-59.71,12.41A14,14,0,0,0,38.1,110l49.71,49.71-44.05,44a6,6,0,1,0,8.48,8.48l44.05-44.05L146,217.89a14,14,0,0,0,9.9,4.11q.49,0,1,0a14,14,0,0,0,10.19-5.54c19.72-26.21,17.15-47.23,12.46-59.3l54.37-54.55A14,14,0,0,0,233.91,82.79ZM225.42,94.1h0l-57.27,57.46a6,6,0,0,0-1.11,6.92c9.94,19.88-1.71,40.32-9.54,50.72a2,2,0,0,1-3,.2L46.58,101.51a2,2,0,0,1,.18-3c12.5-10.09,24.5-12.76,33.7-12.76a42.13,42.13,0,0,1,17.25,3.41A6,6,0,0,0,104.64,88L161.9,30.59a2,2,0,0,1,2.83,0l60.69,60.68A2,2,0,0,1,225.42,94.1Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M235.32,81.37,174.63,20.69a16,16,0,0,0-22.63,0L98.37,74.49c-10.66-3.34-35-7.37-60.4,13.14a16,16,0,0,0-1.29,23.78L85,159.71,42.34,202.34a8,8,0,0,0,11.32,11.32L96.29,171l48.29,48.29A16,16,0,0,0,155.9,224c.38,0,.75,0,1.13,0a15.93,15.93,0,0,0,11.64-6.33c19.64-26.1,17.75-47.32,13.19-60L235.33,104A16,16,0,0,0,235.32,81.37ZM224,92.69h0l-57.27,57.46a8,8,0,0,0-1.49,9.22c9.46,18.93-1.8,38.59-9.34,48.62L48,100.08c12.08-9.74,23.64-12.31,32.48-12.31A40.13,40.13,0,0,1,96.81,91a8,8,0,0,0,9.25-1.51L163.32,32,224,92.68Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M232.49,84.2,171.8,23.51a12,12,0,0,0-17,0L99.45,79.07c-8.08-3-32.79-9.45-59,11.67a12,12,0,0,0-1,17.84l51.13,51.13L45.17,205.17a4,4,0,0,0,5.66,5.66l45.46-45.47,51.12,51.12A12,12,0,0,0,155.9,220c.28,0,.57,0,.85,0a12,12,0,0,0,8.73-4.74c19.83-26.36,16.51-47.18,11.71-58.57l55.3-55.49A12,12,0,0,0,232.49,84.2Zm-5.66,11.31h0L169.56,153a4,4,0,0,0-.75,4.61c10.43,20.85-1.62,42-9.73,52.83a4,4,0,0,1-6,.4L45.17,102.93a4,4,0,0,1,.33-6C58.44,86.53,70.86,83.74,80.44,83.74A43.9,43.9,0,0,1,98.6,87.38a4,4,0,0,0,4.62-.75l57.27-57.46a4,4,0,0,1,5.66,0l60.68,60.69A4,4,0,0,1,226.83,95.51Z"}))]]),gy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),h.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),Ey=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"}),h.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"}))]]),yy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),h.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),vy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM44,116H76v24H44Zm56,0H212v24H100ZM212,68V92H44V68ZM44,164H76v24H44Zm56,24V164H212v24Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M88,104v96H32V104Z",opacity:"0.2"}),h.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM40,160H80v32H40Zm176,32H96V160H216v32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM38,110H82v36H38Zm56,0H218v36H94ZM218,62V98H38V62ZM38,192V158H82v36H40A2,2,0,0,1,38,192Zm178,2H94V158H218v34A2,2,0,0,1,216,194Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52ZM36,108H84v40H36Zm56,0H220v40H92ZM220,60v40H36V60ZM36,192V156H84v40H40A4,4,0,0,1,36,192Zm180,4H92V156H220v36A4,4,0,0,1,216,196Z"}))]]),Ay=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),h.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Sy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),h.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),Ty=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),h.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Cy=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),h.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),by=h.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),We=h.forwardRef((n,i)=>{const{alt:l,color:o,size:c,weight:f,mirrored:d,children:m,weights:g,...p}=n,{color:A="currentColor",size:v,weight:T="regular",mirrored:C=!1,...O}=h.useContext(by);return h.createElement("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:c??v,height:c??v,fill:o??A,viewBox:"0 0 256 256",transform:d||C?"scale(-1, 1)":void 0,...O,...p},!!l&&h.createElement("title",null,l),m,g.get(f??T))});We.displayName="IconBase";const dp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:ny}));dp.displayName="ArrowLineLeftIcon";const Oy=dp,hp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:ay}));hp.displayName="ArrowLineRightIcon";const Ry=hp,mp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:iy}));mp.displayName="CaretRightIcon";const Ny=mp,pp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:sy}));pp.displayName="CheckCircleIcon";const Tm=pp,gp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:ly}));gp.displayName="CodeIcon";const Ep=gp,yp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:oy}));yp.displayName="DatabaseIcon";const My=yp,vp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:ry}));vp.displayName="EyeIcon";const xy=vp,Ap=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:cy}));Ap.displayName="EyeSlashIcon";const Dy=Ap,Sp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:uy}));Sp.displayName="FileArrowDownIcon";const Ly=Sp,Tp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:fy}));Tp.displayName="FloppyDiskIcon";const Vy=Tp,Cp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:dy}));Cp.displayName="FlowArrowIcon";const wy=Cp,bp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:hy}));bp.displayName="LinkSimpleIcon";const Iy=bp,Op=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:my}));Op.displayName="MoonIcon";const jy=Op,Rp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:py}));Rp.displayName="PushPinIcon";const Uy=Rp,Np=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:gy}));Np.displayName="ShieldCheckIcon";const Cm=Np,Mp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:Ey}));Mp.displayName="SparkleIcon";const xp=Mp,Dp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:yy}));Dp.displayName="SunIcon";const _y=Dp,Lp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:vy}));Lp.displayName="TableIcon";const Hy=Lp,Vp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:Ay}));Vp.displayName="TrashIcon";const Zy=Vp,wp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:Sy}));wp.displayName="UploadSimpleIcon";const Ip=wp,jp=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:Ty}));jp.displayName="WarningIcon";const zy=jp,Up=h.forwardRef((n,i)=>h.createElement(We,{ref:i,...n,weights:Cy}));Up.displayName="XIcon";const _p=Up,y0=h.createContext({});function v0(n){const i=h.useRef(null);return i.current===null&&(i.current=n()),i.current}const Py=typeof window<"u",A0=Py?h.useLayoutEffect:h.useEffect,Wo=h.createContext(null);function S0(n,i){n.indexOf(i)===-1&&n.push(i)}function Po(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const On=(n,i,l)=>l>i?i:l<n?n:l;let Jo=()=>{};const Sa={},Hp=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),Zp=n=>typeof n=="object"&&n!==null,zp=n=>/^0[^.\s]+$/u.test(n);function Pp(n){let i;return()=>(i===void 0&&(i=n()),i)}const rn=n=>n,el=(...n)=>n.reduce((i,l)=>o=>l(i(o))),Ks=(n,i,l)=>{const o=i-n;return o?(l-n)/o:1};class T0{constructor(){this.subscriptions=[]}add(i){return S0(this.subscriptions,i),()=>Po(this.subscriptions,i)}notify(i,l,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,l,o);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const kt=n=>n*1e3,on=n=>n/1e3,Bp=(n,i)=>i?n*(1e3/i):0,Gp=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,By=1e-7,Gy=12;function Fy(n,i,l,o,c){let f,d,m=0;do d=i+(l-i)/2,f=Gp(d,o,c)-n,f>0?l=d:i=d;while(Math.abs(f)>By&&++m<Gy);return d}function tl(n,i,l,o){if(n===i&&l===o)return rn;const c=f=>Fy(f,0,1,n,l);return f=>f===0||f===1?f:Gp(c(f),i,o)}const Fp=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,$p=n=>i=>1-n(1-i),qp=tl(.33,1.53,.69,.99),C0=$p(qp),kp=Fp(C0),Yp=n=>n>=1?1:(n*=2)<1?.5*C0(n):.5*(2-Math.pow(2,-10*(n-1))),b0=n=>1-Math.sin(Math.acos(n)),Xp=$p(b0),Kp=Fp(b0),$y=tl(.42,0,1,1),qy=tl(0,0,.58,1),Qp=tl(.42,0,.58,1),ky=n=>Array.isArray(n)&&typeof n[0]!="number",Wp=n=>Array.isArray(n)&&typeof n[0]=="number",Yy={linear:rn,easeIn:$y,easeInOut:Qp,easeOut:qy,circIn:b0,circInOut:Kp,circOut:Xp,backIn:C0,backInOut:kp,backOut:qp,anticipate:Yp},Xy=n=>typeof n=="string",bm=n=>{if(Wp(n)){Jo(n.length===4);const[i,l,o,c]=n;return tl(i,l,o,c)}else if(Xy(n))return Yy[n];return n},Oo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ky(n){let i=new Set,l=new Set,o=!1,c=!1;const f=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function m(p){f.has(p)&&(g.schedule(p),n()),p(d)}const g={schedule:(p,A=!1,v=!1)=>{const C=v&&o?i:l;return A&&f.add(p),C.add(p),p},cancel:p=>{l.delete(p),f.delete(p)},process:p=>{if(d=p,o){c=!0;return}o=!0;const A=i;i=l,l=A,i.forEach(m),i.clear(),o=!1,c&&(c=!1,g.process(p))}};return g}const Qy=40;function Jp(n,i){let l=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=Oo.reduce((U,P)=>(U[P]=Ky(f),U),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:A,update:v,preRender:T,render:C,postRender:O}=d,D=()=>{const U=Sa.useManualTiming,P=U?c.timestamp:performance.now();l=!1,U||(c.delta=o?1e3/60:Math.max(Math.min(P-c.timestamp,Qy),1)),c.timestamp=P,c.isProcessing=!0,m.process(c),g.process(c),p.process(c),A.process(c),v.process(c),T.process(c),C.process(c),O.process(c),c.isProcessing=!1,l&&i&&(o=!1,n(D))},z=()=>{l=!0,o=!0,c.isProcessing||n(D)};return{schedule:Oo.reduce((U,P)=>{const Q=d[P];return U[P]=(se,W=!1,$=!1)=>(l||z(),Q.schedule(se,W,$)),U},{}),cancel:U=>{for(let P=0;P<Oo.length;P++)d[Oo[P]].cancel(U)},state:c,steps:d}}const{schedule:ke,cancel:Ta,state:Tt,steps:Ou}=Jp(typeof requestAnimationFrame<"u"?requestAnimationFrame:rn,!0);let Lo;function Wy(){Lo=void 0}const xt={now:()=>(Lo===void 0&&xt.set(Tt.isProcessing||Sa.useManualTiming?Tt.timestamp:performance.now()),Lo),set:n=>{Lo=n,queueMicrotask(Wy)}},e8=n=>i=>typeof i=="string"&&i.startsWith(n),t8=e8("--"),Jy=e8("var(--"),O0=n=>Jy(n)?ev.test(n.split("/*")[0].trim()):!1,ev=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Om(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Fi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Qs={...Fi,transform:n=>On(0,1,n)},Ro={...Fi,default:1},$s=n=>Math.round(n*1e5)/1e5,R0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tv(n){return n==null}const nv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(n,i)=>l=>!!(typeof l=="string"&&nv.test(l)&&l.startsWith(n)||i&&!tv(l)&&Object.prototype.hasOwnProperty.call(l,i)),n8=(n,i,l)=>o=>{if(typeof o!="string")return o;const[c,f,d,m]=o.match(R0);return{[n]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:m!==void 0?parseFloat(m):1}},av=n=>On(0,255,n),Ru={...Fi,transform:n=>Math.round(av(n))},qa={test:N0("rgb","red"),parse:n8("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:o=1})=>"rgba("+Ru.transform(n)+", "+Ru.transform(i)+", "+Ru.transform(l)+", "+$s(Qs.transform(o))+")"};function iv(n){let i="",l="",o="",c="";return n.length>5?(i=n.substring(1,3),l=n.substring(3,5),o=n.substring(5,7),c=n.substring(7,9)):(i=n.substring(1,2),l=n.substring(2,3),o=n.substring(3,4),c=n.substring(4,5),i+=i,l+=l,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Gu={test:N0("#"),parse:iv,transform:qa.transform},nl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),qn=nl("deg"),bn=nl("%"),he=nl("px"),sv=nl("vh"),lv=nl("vw"),Rm={...bn,parse:n=>bn.parse(n)/100,transform:n=>bn.transform(n*100)},Hi={test:N0("hsl","hue"),parse:n8("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(n)+", "+bn.transform($s(i))+", "+bn.transform($s(l))+", "+$s(Qs.transform(o))+")"},ut={test:n=>qa.test(n)||Gu.test(n)||Hi.test(n),parse:n=>qa.test(n)?qa.parse(n):Hi.test(n)?Hi.parse(n):Gu.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?qa.transform(n):Hi.transform(n),getAnimatableNone:n=>{const i=ut.parse(n);return i.alpha=0,ut.transform(i)}},ov=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rv(n){return isNaN(n)&&typeof n=="string"&&(n.match(R0)?.length||0)+(n.match(ov)?.length||0)>0}const a8="number",i8="color",cv="var",uv="var(",Nm="${}",fv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Bi(n){const i=n.toString(),l=[],o={color:[],number:[],var:[]},c=[];let f=0;const m=i.replace(fv,g=>(ut.test(g)?(o.color.push(f),c.push(i8),l.push(ut.parse(g))):g.startsWith(uv)?(o.var.push(f),c.push(cv),l.push(g)):(o.number.push(f),c.push(a8),l.push(parseFloat(g))),++f,Nm)).split(Nm);return{values:l,split:m,indexes:o,types:c}}function dv(n){return Bi(n).values}function s8({split:n,types:i}){const l=n.length;return o=>{let c="";for(let f=0;f<l;f++)if(c+=n[f],o[f]!==void 0){const d=i[f];d===a8?c+=$s(o[f]):d===i8?c+=ut.transform(o[f]):c+=o[f]}return c}}function hv(n){return s8(Bi(n))}const mv=n=>typeof n=="number"?0:ut.test(n)?ut.getAnimatableNone(n):n,pv=(n,i)=>typeof n=="number"?i?.trim().endsWith("/")?n:0:mv(n);function gv(n){const i=Bi(n);return s8(i)(i.values.map((o,c)=>pv(o,i.split[c])))}const mn={test:rv,parse:dv,createTransformer:hv,getAnimatableNone:gv};function Nu(n,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(i-n)*6*l:l<1/2?i:l<2/3?n+(i-n)*(2/3-l)*6:n}function Ev({hue:n,saturation:i,lightness:l,alpha:o}){n/=360,i/=100,l/=100;let c=0,f=0,d=0;if(!i)c=f=d=l;else{const m=l<.5?l*(1+i):l+i-l*i,g=2*l-m;c=Nu(g,m,n+1/3),f=Nu(g,m,n),d=Nu(g,m,n-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function Bo(n,i){return l=>l>0?i:n}const qe=(n,i,l)=>n+(i-n)*l,Mu=(n,i,l)=>{const o=n*n,c=l*(i*i-o)+o;return c<0?0:Math.sqrt(c)},yv=[Gu,qa,Hi],vv=n=>yv.find(i=>i.test(n));function Mm(n){const i=vv(n);if(!i)return!1;let l=i.parse(n);return i===Hi&&(l=Ev(l)),l}const xm=(n,i)=>{const l=Mm(n),o=Mm(i);if(!l||!o)return Bo(n,i);const c={...l};return f=>(c.red=Mu(l.red,o.red,f),c.green=Mu(l.green,o.green,f),c.blue=Mu(l.blue,o.blue,f),c.alpha=qe(l.alpha,o.alpha,f),qa.transform(c))},Fu=new Set(["none","hidden"]);function Av(n,i){return Fu.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function Sv(n,i){return l=>qe(n,i,l)}function M0(n){return typeof n=="number"?Sv:typeof n=="string"?O0(n)?Bo:ut.test(n)?xm:bv:Array.isArray(n)?l8:typeof n=="object"?ut.test(n)?xm:Tv:Bo}function l8(n,i){const l=[...n],o=l.length,c=n.map((f,d)=>M0(f)(f,i[d]));return f=>{for(let d=0;d<o;d++)l[d]=c[d](f);return l}}function Tv(n,i){const l={...n,...i},o={};for(const c in l)n[c]!==void 0&&i[c]!==void 0&&(o[c]=M0(n[c])(n[c],i[c]));return c=>{for(const f in o)l[f]=o[f](c);return l}}function Cv(n,i){const l=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=n.indexes[f][o[f]],m=n.values[d]??0;l[c]=m,o[f]++}return l}const bv=(n,i)=>{const l=mn.createTransformer(i),o=Bi(n),c=Bi(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Fu.has(n)&&!c.values.length||Fu.has(i)&&!o.values.length?Av(n,i):el(l8(Cv(o,c),c.values),l):Bo(n,i)};function o8(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?qe(n,i,l):M0(n)(n,i)}const Ov=n=>{const i=({timestamp:l})=>n(l);return{start:(l=!0)=>ke.update(i,l),stop:()=>Ta(i),now:()=>Tt.isProcessing?Tt.timestamp:xt.now()}},r8=(n,i,l=10)=>{let o="";const c=Math.max(Math.round(i/l),2);for(let f=0;f<c;f++)o+=Math.round(n(f/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Go=2e4;function x0(n){let i=0;const l=50;let o=n.next(i);for(;!o.done&&i<Go;)i+=l,o=n.next(i);return i>=Go?1/0:i}function Rv(n,i=100,l){const o=l({...n,keyframes:[0,i]}),c=Math.min(x0(o),Go);return{type:"keyframes",ease:f=>o.next(c*f).value/i,duration:on(c)}}const at={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $u(n,i){return n*Math.sqrt(1-i*i)}const Nv=12;function Mv(n,i,l){let o=l;for(let c=1;c<Nv;c++)o=o-n(o)/i(o);return o}const xu=.001;function xv({duration:n=at.duration,bounce:i=at.bounce,velocity:l=at.velocity,mass:o=at.mass}){let c,f,d=1-i;d=On(at.minDamping,at.maxDamping,d),n=On(at.minDuration,at.maxDuration,on(n)),d<1?(c=p=>{const A=p*d,v=A*n,T=A-l,C=$u(p,d),O=Math.exp(-v);return xu-T/C*O},f=p=>{const v=p*d*n,T=v*l+l,C=Math.pow(d,2)*Math.pow(p,2)*n,O=Math.exp(-v),D=$u(Math.pow(p,2),d);return(-c(p)+xu>0?-1:1)*((T-C)*O)/D}):(c=p=>{const A=Math.exp(-p*n),v=(p-l)*n+1;return-xu+A*v},f=p=>{const A=Math.exp(-p*n),v=(l-p)*(n*n);return A*v});const m=5/n,g=Mv(c,f,m);if(n=kt(n),isNaN(g))return{stiffness:at.stiffness,damping:at.damping,duration:n};{const p=Math.pow(g,2)*o;return{stiffness:p,damping:d*2*Math.sqrt(o*p),duration:n}}}const Dv=["duration","bounce"],Lv=["stiffness","damping","mass"];function Dm(n,i){return i.some(l=>n[l]!==void 0)}function Vv(n){let i={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...n};if(!Dm(n,Lv)&&Dm(n,Dv))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,o=2*Math.PI/(l*1.2),c=o*o,f=2*On(.05,1,1-(n.bounce||0))*Math.sqrt(c);i={...i,mass:at.mass,stiffness:c,damping:f}}else{const l=xv({...n,velocity:0});i={...i,...l,mass:at.mass},i.isResolvedFromDuration=!0}return i}function Fo(n=at.visualDuration,i=at.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:o,restDelta:c}=l;const f=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],m={done:!1,value:f},{stiffness:g,damping:p,mass:A,duration:v,velocity:T,isResolvedFromDuration:C}=Vv({...l,velocity:-on(l.velocity||0)}),O=T||0,D=p/(2*Math.sqrt(g*A)),z=d-f,_=on(Math.sqrt(g/A)),Y=Math.abs(z)<5;o||(o=Y?at.restSpeed.granular:at.restSpeed.default),c||(c=Y?at.restDelta.granular:at.restDelta.default);let U,P,Q,se,W,$;if(D<1)Q=$u(_,D),se=(O+D*_*z)/Q,U=B=>{const ne=Math.exp(-D*_*B);return d-ne*(se*Math.sin(Q*B)+z*Math.cos(Q*B))},W=D*_*se+z*Q,$=D*_*z-se*Q,P=B=>Math.exp(-D*_*B)*(W*Math.sin(Q*B)+$*Math.cos(Q*B));else if(D===1){U=ne=>d-Math.exp(-_*ne)*(z+(O+_*z)*ne);const B=O+_*z;P=ne=>Math.exp(-_*ne)*(_*B*ne-O)}else{const B=_*Math.sqrt(D*D-1);U=be=>{const Re=Math.exp(-D*_*be),I=Math.min(B*be,300);return d-Re*((O+D*_*z)*Math.sinh(I)+B*z*Math.cosh(I))/B};const ne=(O+D*_*z)/B,Ee=D*_*ne-z*B,Ce=D*_*z-ne*B;P=be=>{const Re=Math.exp(-D*_*be),I=Math.min(B*be,300);return Re*(Ee*Math.sinh(I)+Ce*Math.cosh(I))}}const fe={calculatedDuration:C&&v||null,velocity:B=>kt(P(B)),next:B=>{if(!C&&D<1){const Ee=Math.exp(-D*_*B),Ce=Math.sin(Q*B),be=Math.cos(Q*B),Re=d-Ee*(se*Ce+z*be),I=kt(Ee*(W*Ce+$*be));return m.done=Math.abs(I)<=o&&Math.abs(d-Re)<=c,m.value=m.done?d:Re,m}const ne=U(B);if(C)m.done=B>=v;else{const Ee=kt(P(B));m.done=Math.abs(Ee)<=o&&Math.abs(d-ne)<=c}return m.value=m.done?d:ne,m},toString:()=>{const B=Math.min(x0(fe),Go),ne=r8(Ee=>fe.next(B*Ee).value,B,30);return B+"ms "+ne},toTransition:()=>{}};return fe}Fo.applyToOptions=n=>{const i=Rv(n,100,Fo);return n.ease=i.ease,n.duration=kt(i.duration),n.type="keyframes",n};const wv=5;function c8(n,i,l){const o=Math.max(i-wv,0);return Bp(l-n(o),i-o)}function qu({keyframes:n,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:m,max:g,restDelta:p=.5,restSpeed:A}){const v=n[0],T={done:!1,value:v},C=$=>m!==void 0&&$<m||g!==void 0&&$>g,O=$=>m===void 0?g:g===void 0||Math.abs(m-$)<Math.abs(g-$)?m:g;let D=l*i;const z=v+D,_=d===void 0?z:d(z);_!==z&&(D=_-v);const Y=$=>-D*Math.exp(-$/o),U=$=>_+Y($),P=$=>{const fe=Y($),B=U($);T.done=Math.abs(fe)<=p,T.value=T.done?_:B};let Q,se;const W=$=>{C(T.value)&&(Q=$,se=Fo({keyframes:[T.value,O(T.value)],velocity:c8(U,$,T.value),damping:c,stiffness:f,restDelta:p,restSpeed:A}))};return W(0),{calculatedDuration:null,next:$=>{let fe=!1;return!se&&Q===void 0&&(fe=!0,P($),W($)),Q!==void 0&&$>=Q?se.next($-Q):(!fe&&P($),T)}}}function Iv(n,i,l){const o=[],c=l||Sa.mix||o8,f=n.length-1;for(let d=0;d<f;d++){let m=c(n[d],n[d+1]);if(i){const g=Array.isArray(i)?i[d]||rn:i;m=el(g,m)}o.push(m)}return o}function jv(n,i,{clamp:l=!0,ease:o,mixer:c}={}){const f=n.length;if(Jo(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const m=Iv(i,o,c),g=m.length,p=A=>{if(d&&A<n[0])return i[0];let v=0;if(g>1)for(;v<n.length-2&&!(A<n[v+1]);v++);const T=Ks(n[v],n[v+1],A);return m[v](T)};return l?A=>p(On(n[0],n[f-1],A)):p}function Uv(n,i){const l=n[n.length-1];for(let o=1;o<=i;o++){const c=Ks(0,i,o);n.push(qe(l,1,c))}}function _v(n){const i=[0];return Uv(i,n.length-1),i}function Hv(n,i){return n.map(l=>l*i)}function Zv(n,i){return n.map(()=>i||Qp).splice(0,n.length-1)}function qs({duration:n=300,keyframes:i,times:l,ease:o="easeInOut"}){const c=ky(o)?o.map(bm):bm(o),f={done:!1,value:i[0]},d=Hv(l&&l.length===i.length?l:_v(i),n),m=jv(d,i,{ease:Array.isArray(c)?c:Zv(i,c)});return{calculatedDuration:n,next:g=>(f.value=m(g),f.done=g>=n,f)}}const zv=n=>n!==null;function er(n,{repeat:i,repeatType:l="loop"},o,c=1){const f=n.filter(zv),m=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!m||o===void 0?f[m]:o}const Pv={decay:qu,inertia:qu,tween:qs,keyframes:qs,spring:Fo};function u8(n){typeof n.type=="string"&&(n.type=Pv[n.type])}class D0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const Bv=n=>n/100;class $o extends D0{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==xt.now()&&this.tick(xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;u8(i);const{type:l=qs,repeat:o=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:m}=i;const g=l||qs;g!==qs&&typeof m[0]!="number"&&(this.mixKeyframes=el(Bv,o8(m[0],m[1])),m=[0,100]);const p=g({...i,keyframes:m});f==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...m].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=x0(p));const{calculatedDuration:A}=p;this.calculatedDuration=A,this.resolvedDuration=A+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:o,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:A,repeat:v,repeatType:T,repeatDelay:C,type:O,onUpdate:D,finalKeyframe:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const _=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?_<0:_>c;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let U=this.currentTime,P=o;if(v){const $=Math.min(this.currentTime,c)/m;let fe=Math.floor($),B=$%1;!B&&$>=1&&(B=1),B===1&&fe--,fe=Math.min(fe,v+1),fe%2&&(T==="reverse"?(B=1-B,C&&(B-=C/m)):T==="mirror"&&(P=d)),U=On(0,1,B)*m}let Q;Y?(this.delayState.value=A[0],Q=this.delayState):Q=P.next(U),f&&!Y&&(Q.value=f(Q.value));let{done:se}=Q;!Y&&g!==null&&(se=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&se);return W&&O!==qu&&(Q.value=er(A,this.options,z,this.speed)),D&&D(Q.value),W&&this.finish(),Q}then(i,l){return this.finished.then(i,l)}get duration(){return on(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+on(i)}get time(){return on(this.currentTime)}set time(i){i=kt(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const l=this.generator.next(i).value;return c8(o=>this.generator.next(o).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(xt.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=on(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=Ov,startTime:l}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function Gv(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const ka=n=>n*180/Math.PI,ku=n=>{const i=ka(Math.atan2(n[1],n[0]));return Yu(i)},Fv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:ku,rotateZ:ku,skewX:n=>ka(Math.atan(n[1])),skewY:n=>ka(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Yu=n=>(n=n%360,n<0&&(n+=360),n),Lm=ku,Vm=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),wm=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),$v={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Vm,scaleY:wm,scale:n=>(Vm(n)+wm(n))/2,rotateX:n=>Yu(ka(Math.atan2(n[6],n[5]))),rotateY:n=>Yu(ka(Math.atan2(-n[2],n[0]))),rotateZ:Lm,rotate:Lm,skewX:n=>ka(Math.atan(n[4])),skewY:n=>ka(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Xu(n){return n.includes("scale")?1:0}function Ku(n,i){if(!n||n==="none")return Xu(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(l)o=$v,c=l;else{const m=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Fv,c=m}if(!c)return Xu(i);const f=o[i],d=c[1].split(",").map(kv);return typeof f=="function"?f(d):d[f]}const qv=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return Ku(l,i)};function kv(n){return parseFloat(n.trim())}const $i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qi=new Set([...$i,"pathRotation"]),Im=n=>n===Fi||n===he,Yv=new Set(["x","y","z"]),Xv=$i.filter(n=>!Yv.has(n));function Kv(n){const i=[];return Xv.forEach(l=>{const o=n.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const Aa={width:({x:n},{paddingLeft:i="0",paddingRight:l="0",boxSizing:o})=>{const c=n.max-n.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},height:({y:n},{paddingTop:i="0",paddingBottom:l="0",boxSizing:o})=>{const c=n.max-n.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Ku(i,"x"),y:(n,{transform:i})=>Ku(i,"y")};Aa.translateX=Aa.x;Aa.translateY=Aa.y;const Ya=new Set;let Qu=!1,Wu=!1,Ju=!1;function f8(){if(Wu){const n=Array.from(Ya).filter(o=>o.needsMeasurement),i=new Set(n.map(o=>o.element)),l=new Map;i.forEach(o=>{const c=Kv(o);c.length&&(l.set(o,c),o.render())}),n.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=l.get(o);c&&c.forEach(([f,d])=>{o.getValue(f)?.set(d)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Wu=!1,Qu=!1,Ya.forEach(n=>n.complete(Ju)),Ya.clear()}function d8(){Ya.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Wu=!0)})}function Qv(){Ju=!0,d8(),f8(),Ju=!1}class L0{constructor(i,l,o,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=o,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ya.add(this),Qu||(Qu=!0,ke.read(d8),ke.resolveKeyframes(f8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:o,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(o&&l){const m=o.readValue(l,d);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}Gv(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ya.delete(this)}cancel(){this.state==="scheduled"&&(Ya.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wv=n=>n.startsWith("--");function h8(n,i,l){Wv(i)?n.style.setProperty(i,l):n.style[i]=l}const Jv={};function m8(n,i){const l=Pp(n);return()=>Jv[i]??l()}const e5=m8(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),p8=m8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fs=([n,i,l,o])=>`cubic-bezier(${n}, ${i}, ${l}, ${o})`,jm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fs([0,.65,.55,1]),circOut:Fs([.55,0,1,.45]),backIn:Fs([.31,.01,.66,-.59]),backOut:Fs([.33,1.53,.69,.99])};function g8(n,i){if(n)return typeof n=="function"?p8()?r8(n,i):"ease-out":Wp(n)?Fs(n):Array.isArray(n)?n.map(l=>g8(l,i)||jm.easeOut):jm[n]}function t5(n,i,l,{delay:o=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:m="easeOut",times:g}={},p=void 0){const A={[i]:l};g&&(A.offset=g);const v=g8(m,c);Array.isArray(v)&&(A.easing=v);const T={delay:o,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(T.pseudoElement=p),n.animate(A,T)}function E8(n){return typeof n=="function"&&"applyToOptions"in n}function n5({type:n,...i}){return E8(n)&&p8()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class y8 extends D0{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:o,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:m,onComplete:g}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Jo(typeof i.type!="string");const p=n5(i);this.animation=t5(l,o,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const A=er(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(A),h8(l,o,A),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return on(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+on(i)}get time(){return on(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=kt(i),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:l,rangeEnd:o,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&e5()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),rn):c(this)}}const v8={anticipate:Yp,backInOut:kp,circInOut:Kp};function a5(n){return n in v8}function i5(n){typeof n.ease=="string"&&a5(n.ease)&&(n.ease=v8[n.ease])}const Du=10;class s5 extends y8{constructor(i){i5(i),u8(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:o,onComplete:c,element:f,...d}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const m=new $o({...d,autoplay:!1}),g=Math.max(Du,xt.now()-this.startTime),p=On(0,Du,g-Du),A=m.sample(g).value,{name:v}=this.options;f&&v&&h8(f,v,A),l.setWithVelocity(m.sample(Math.max(0,g-p)).value,A,p),m.stop()}}const Um=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(mn.test(n)||n==="0")&&!n.startsWith("url("));function l5(n){const i=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==i)return!0}function o5(n,i,l,o){const c=n[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=Um(c,i),m=Um(f,i);return!d||!m?!1:l5(n)||(l==="spring"||E8(l))&&o}function e0(n){n.duration=0,n.type="keyframes"}const A8=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),r5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function c5(n){for(let i=0;i<n.length;i++)if(typeof n[i]=="string"&&r5.test(n[i]))return!0;return!1}const u5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),f5=Pp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function d5(n){const{motionValue:i,name:l,repeatDelay:o,repeatType:c,damping:f,type:d,keyframes:m}=n,g=i?.owner?.current;if(!(g instanceof HTMLElement)&&!(g instanceof SVGElement))return!1;const{onUpdate:p,transformTemplate:A}=i.owner.getProps();return f5()&&l&&(A8.has(l)||u5.has(l)&&c5(m))&&(l!=="transform"||!A)&&!p&&!o&&c!=="mirror"&&f!==0&&d!=="inertia"}const h5=40;class m5 extends D0{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:m,name:g,motionValue:p,element:A,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xt.now();const T={autoplay:i,delay:l,type:o,repeat:c,repeatDelay:f,repeatType:d,name:g,motionValue:p,element:A,...v},C=A?.KeyframeResolver||L0;this.keyframeResolver=new C(m,(O,D,z)=>this.onKeyframesResolved(O,D,T,!z),g,p,A),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:m,delay:g,isHandoff:p,onUpdate:A}=o;this.resolvedAt=xt.now();let v=!0;o5(i,f,d,m)||(v=!1,(Sa.instantAnimations||!g)&&A?.(er(i,o,l)),i[0]=i[i.length-1],e0(o),o.repeat=0);const C={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>h5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},O=v&&!p&&d5(C),D=C.motionValue?.owner?.current;let z;if(O)try{z=new s5({...C,element:D})}catch{z=new $o(C)}else z=new $o(C);z.finished.then(()=>{this.notifyFinished()}).catch(rn),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function S8(n,i,l,o=0,c=1){const f=Array.from(n).sort((p,A)=>p.sortNodePosition(A)).indexOf(i),d=n.size,m=(d-1)*o;return typeof l=="function"?l(f,d):c===1?f*o:m-f*o}const _m=30,p5=n=>!isNaN(parseFloat(n));class g5{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=xt.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=xt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=p5(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new T0);const o=this.events[i].add(l);return i==="change"?()=>{o(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>_m)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,_m);return Bp(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gi(n,i){return new g5(n,i)}function T8(n,i){if(n?.inherit&&i){const{inherit:l,...o}=n;return{...i,...o}}return n}function V0(n,i){const l=n?.[i]??n?.default??n;return l!==n?T8(l,n):l}const E5={type:"spring",stiffness:500,damping:25,restSpeed:10},y5=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),v5={type:"keyframes",duration:.8},A5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S5=(n,{keyframes:i})=>i.length>2?v5:qi.has(n)?n.startsWith("scale")?y5(i[1]):E5:A5,T5=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function C5(n){for(const i in n)if(!T5.has(i))return!0;return!1}const w0=(n,i,l,o={},c,f)=>d=>{const m=V0(o,n)||{},g=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-kt(g);const A={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:T=>{i.set(T),m.onUpdate&&m.onUpdate(T)},onComplete:()=>{d(),m.onComplete&&m.onComplete()},name:n,motionValue:i,element:f?void 0:c};C5(m)||Object.assign(A,S5(n,A)),A.duration&&(A.duration=kt(A.duration)),A.repeatDelay&&(A.repeatDelay=kt(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let v=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(e0(A),A.delay===0&&(v=!0)),(Sa.instantAnimations||Sa.skipAnimations||c?.shouldSkipAnimations||m.skipAnimations)&&(v=!0,e0(A),A.delay=0),A.allowFlatten=!m.type&&!m.ease,v&&!f&&i.get()!==void 0){const T=er(A.keyframes,m);if(T!==void 0){ke.update(()=>{A.onUpdate(T),A.onComplete()});return}}return m.isSync?new $o(A):new m5(A)},b5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O5(n){const i=b5.exec(n);if(!i)return[,];const[,l,o,c]=i;return[`--${l??o}`,c]}function C8(n,i,l=1){const[o,c]=O5(n);if(!o)return;const f=window.getComputedStyle(i).getPropertyValue(o);if(f){const d=f.trim();return Hp(d)?parseFloat(d):d}return O0(c)?C8(c,i,l+1):c}function Hm(n){const i=[{},{}];return n?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function I0(n,i,l,o){if(typeof i=="function"){const[c,f]=Hm(o);i=i(l!==void 0?l:n.custom,c,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[c,f]=Hm(o);i=i(l!==void 0?l:n.custom,c,f)}return i}function Xa(n,i,l){const o=n.getProps();return I0(o,i,l!==void 0?l:o.custom,n)}const b8=new Set(["width","height","top","left","right","bottom",...$i]),t0=n=>Array.isArray(n);function R5(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,Gi(l))}function N5(n){return t0(n)?n[n.length-1]||0:n}function M5(n,i){const l=Xa(n,i);let{transitionEnd:o={},transition:c={},...f}=l||{};f={...f,...o};for(const d in f){const m=N5(f[d]);R5(n,d,m)}}const Ct=n=>!!(n&&n.getVelocity);function x5(n){return!!(Ct(n)&&n.add)}function n0(n,i){const l=n.getValue("willChange");if(x5(l))return l.add(i);if(!l&&Sa.WillChange){const o=new Sa.WillChange("auto");n.addValue("willChange",o),o.add(i)}}function j0(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const D5="framerAppearId",O8="data-"+j0(D5);function R8(n){return n.props[O8]}function L5({protectedKeys:n,needsAnimating:i},l){const o=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function N8(n,i,{delay:l=0,transitionOverride:o,type:c}={}){let{transition:f,transitionEnd:d,...m}=i;const g=n.getDefaultTransition();f=f?T8(f,g):g;const p=f?.reduceMotion,A=f?.skipAnimations;o&&(f=o);const v=[],T=c&&n.animationState&&n.animationState.getState()[c],C=f?.path;C&&C.animateVisualElement(n,m,f,l,v);for(const O in m){const D=n.getValue(O,n.latestValues[O]??null),z=m[O];if(z===void 0||T&&L5(T,O))continue;const _={delay:l,...V0(f||{},O)};A&&(_.skipAnimations=!0);const Y=D.get();if(Y!==void 0&&!D.isAnimating()&&!Array.isArray(z)&&z===Y&&!_.velocity){ke.update(()=>D.set(z));continue}let U=!1;if(window.MotionHandoffAnimation){const se=R8(n);if(se){const W=window.MotionHandoffAnimation(se,O,ke);W!==null&&(_.startTime=W,U=!0)}}n0(n,O);const P=p??n.shouldReduceMotion;D.start(w0(O,D,z,P&&b8.has(O)?{type:!1}:_,n,U));const Q=D.animation;Q&&v.push(Q)}if(d){const O=()=>ke.update(()=>{d&&M5(n,d)});v.length?Promise.all(v).then(O):O()}return v}function a0(n,i,l={}){const o=Xa(n,i,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:c=n.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(c=l.transitionOverride);const f=o?()=>Promise.all(N8(n,o,l)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:A,staggerDirection:v}=c;return V5(n,i,g,p,A,v,l)}:()=>Promise.resolve(),{when:m}=c;if(m){const[g,p]=m==="beforeChildren"?[f,d]:[d,f];return g().then(()=>p())}else return Promise.all([f(),d(l.delay)])}function V5(n,i,l=0,o=0,c=0,f=1,d){const m=[];for(const g of n.variantChildren)g.notify("AnimationStart",i),m.push(a0(g,i,{...d,delay:l+(typeof o=="function"?0:o)+S8(n.variantChildren,g,o,c,f)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(m)}function w5(n,i,l={}){n.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(f=>a0(n,f,l));o=Promise.all(c)}else if(typeof i=="string")o=a0(n,i,l);else{const c=typeof i=="function"?Xa(n,i,l.custom):i;o=Promise.all(N8(n,c,l))}return o.then(()=>{n.notify("AnimationComplete",i)})}const I5={test:n=>n==="auto",parse:n=>n},M8=n=>i=>i.test(n),x8=[Fi,he,bn,qn,lv,sv,I5],Zm=n=>x8.find(M8(n));function j5(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||zp(n):!0}const U5=new Set(["brightness","contrast","saturate","opacity"]);function _5(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[o]=l.match(R0)||[];if(!o)return n;const c=l.replace(o,"");let f=U5.has(i)?1:0;return o!==l&&(f*=100),i+"("+f+c+")"}const H5=/\b([a-z-]*)\(.*?\)/gu,i0={...mn,getAnimatableNone:n=>{const i=n.match(H5);return i?i.map(_5).join(" "):n}},s0={...mn,getAnimatableNone:n=>{const i=mn.parse(n);return mn.createTransformer(n)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},zm={...Fi,transform:Math.round},Z5={rotate:qn,pathRotation:qn,rotateX:qn,rotateY:qn,rotateZ:qn,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:qn,skewX:qn,skewY:qn,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Qs,originX:Rm,originY:Rm,originZ:he},qo={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,inset:he,insetBlock:he,insetBlockStart:he,insetBlockEnd:he,insetInline:he,insetInlineStart:he,insetInlineEnd:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,paddingBlock:he,paddingBlockStart:he,paddingBlockEnd:he,paddingInline:he,paddingInlineStart:he,paddingInlineEnd:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,marginBlock:he,marginBlockStart:he,marginBlockEnd:he,marginInline:he,marginInlineStart:he,marginInlineEnd:he,fontSize:he,backgroundPositionX:he,backgroundPositionY:he,...Z5,zIndex:zm,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:zm},z5={...qo,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:i0,WebkitFilter:i0,mask:s0,WebkitMask:s0},D8=n=>z5[n],P5=new Set([i0,s0]);function L8(n,i){let l=D8(n);return P5.has(l)||(l=mn),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const B5=new Set(["auto","none","0"]);function G5(n,i,l){let o=0,c;for(;o<n.length&&!c;){const f=n[o];typeof f=="string"&&!B5.has(f)&&Bi(f).values.length&&(c=n[o]),o++}if(c&&l)for(const f of i)n[f]=L8(l,c)}class F5 extends L0{constructor(i,l,o,c,f){super(i,l,o,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let A=0;A<i.length;A++){let v=i[A];if(typeof v=="string"&&(v=v.trim(),O0(v))){const T=C8(v,l.current);T!==void 0&&(i[A]=T),A===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!b8.has(o)||i.length!==2)return;const[c,f]=i,d=Zm(c),m=Zm(f),g=Om(c),p=Om(f);if(g!==p&&Aa[o]){this.needsMeasurement=!0;return}if(d!==m)if(Im(d)&&Im(m))for(let A=0;A<i.length;A++){const v=i[A];typeof v=="string"&&(i[A]=parseFloat(v))}else Aa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||j5(i[c]))&&o.push(c);o.length&&G5(i,o,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Aa[o](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(l);c&&c.jump(this.measuredOrigin,!1);const f=o.length-1,d=o[f];o[f]=Aa[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,g])=>{i.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const U0=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function V8(n,i,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const c=l?.[n]??o.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n).filter(o=>o!=null)}const l0=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function Vo(n){return Zp(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:_0}=Jp(queueMicrotask,!1),hn={x:!1,y:!1};function w8(){return hn.x||hn.y}function $5(n){return n==="x"||n==="y"?hn[n]?null:(hn[n]=!0,()=>{hn[n]=!1}):hn.x||hn.y?null:(hn.x=hn.y=!0,()=>{hn.x=hn.y=!1})}function I8(n,i){const l=V8(n),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[l,c,()=>o.abort()]}function q5(n){return!(n.pointerType==="touch"||w8())}function k5(n,i,l={}){const[o,c,f]=I8(n,l);return o.forEach(d=>{let m=!1,g=!1,p;const A=()=>{d.removeEventListener("pointerleave",O)},v=z=>{p&&(p(z),p=void 0),A()},T=z=>{m=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,v(z))},C=()=>{m=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},O=z=>{if(z.pointerType!=="touch"){if(m){g=!0;return}v(z)}},D=z=>{if(!q5(z))return;g=!1;const _=i(d,z);typeof _=="function"&&(p=_,d.addEventListener("pointerleave",O,c))};d.addEventListener("pointerenter",D,c),d.addEventListener("pointerdown",C,c)}),f}const j8=(n,i)=>i?n===i?!0:j8(n,i.parentElement):!1,H0=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Y5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function X5(n){return Y5.has(n.tagName)||n.isContentEditable===!0}const K5=new Set(["INPUT","SELECT","TEXTAREA"]);function Q5(n){return K5.has(n.tagName)||n.isContentEditable===!0}const wo=new WeakSet;function Pm(n){return i=>{i.key==="Enter"&&n(i)}}function Lu(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const W5=(n,i)=>{const l=n.currentTarget;if(!l)return;const o=Pm(()=>{if(wo.has(l))return;Lu(l,"down");const c=Pm(()=>{Lu(l,"up")}),f=()=>Lu(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",f,i)});l.addEventListener("keydown",o,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),i)};function Bm(n){return H0(n)&&!w8()}const Gm=new WeakSet;function J5(n,i,l={}){const[o,c,f]=I8(n,l),d=m=>{const g=m.currentTarget;if(!Bm(m)||Gm.has(m))return;wo.add(g),l.stopPropagation&&Gm.add(m);const p=i(g,m),A={...c,capture:!0},v=(O,D)=>{window.removeEventListener("pointerup",T,A),window.removeEventListener("pointercancel",C,A),wo.has(g)&&wo.delete(g),Bm(O)&&typeof p=="function"&&p(O,{success:D})},T=O=>{v(O,g===window||g===document||l.useGlobalTarget||j8(g,O.target))},C=O=>{v(O,!1)};window.addEventListener("pointerup",T,A),window.addEventListener("pointercancel",C,A)};return o.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",d,c),Vo(m)&&(m.addEventListener("focus",p=>W5(p,c)),!X5(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Z0(n){return Zp(n)&&"ownerSVGElement"in n}const Io=new WeakMap;let jo;const U8=(n,i,l)=>(o,c)=>c&&c[0]?c[0][n+"Size"]:Z0(o)&&"getBBox"in o?o.getBBox()[i]:o[l],eA=U8("inline","width","offsetWidth"),tA=U8("block","height","offsetHeight");function nA({target:n,borderBoxSize:i}){Io.get(n)?.forEach(l=>{l(n,{get width(){return eA(n,i)},get height(){return tA(n,i)}})})}function aA(n){n.forEach(nA)}function iA(){typeof ResizeObserver>"u"||(jo=new ResizeObserver(aA))}function sA(n,i){jo||iA();const l=V8(n);return l.forEach(o=>{let c=Io.get(o);c||(c=new Set,Io.set(o,c)),c.add(i),jo?.observe(o)}),()=>{l.forEach(o=>{const c=Io.get(o);c?.delete(i),c?.size||jo?.unobserve(o)})}}const Uo=new Set;let Zi;function lA(){Zi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uo.forEach(i=>i(n))},window.addEventListener("resize",Zi)}function oA(n){return Uo.add(n),Zi||lA(),()=>{Uo.delete(n),!Uo.size&&typeof Zi=="function"&&(window.removeEventListener("resize",Zi),Zi=void 0)}}function Fm(n,i){return typeof n=="function"?oA(n):sA(n,i)}function rA(n){return Z0(n)&&n.tagName==="svg"}const cA=[...x8,ut,mn],uA=n=>cA.find(M8(n)),$m=()=>({translate:0,scale:1,origin:0,originPoint:0}),zi=()=>({x:$m(),y:$m()}),qm=()=>({min:0,max:0}),dt=()=>({x:qm(),y:qm()}),fA=new WeakMap;function tr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ws(n){return typeof n=="string"||Array.isArray(n)}const z0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P0=["initial",...z0];function nr(n){return tr(n.animate)||P0.some(i=>Ws(n[i]))}function _8(n){return!!(nr(n)||n.variants)}function dA(n,i,l){for(const o in i){const c=i[o],f=l[o];if(Ct(c))n.addValue(o,c);else if(Ct(f))n.addValue(o,Gi(c,{owner:n}));else if(f!==c)if(n.hasValue(o)){const d=n.getValue(o);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=n.getStaticValue(o);n.addValue(o,Gi(d!==void 0?d:c,{owner:n}))}}for(const o in l)i[o]===void 0&&n.removeValue(o);return i}const ko={current:null},B0={current:!1},hA=typeof window<"u";function H8(){if(B0.current=!0,!!hA)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>ko.current=n.matches;n.addEventListener("change",i),i()}else ko.current=!1}const km=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Yo={};function Z8(n){Yo=n}function mA(){return Yo}class pA{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:m},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=L0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=xt.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,ke.render(this.render,!1,!0))};const{latestValues:p,renderState:A}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=A,this.parent=i,this.props=l,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=nr(l),this.isVariantNode=_8(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...T}=this.scrapeMotionValuesFromProps(l,{},this);for(const C in T){const O=T[C];p[C]!==void 0&&Ct(O)&&O.set(p[C])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,fA.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(B0.current||H8(),this.shouldReduceMotion=ko.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ta(this.notifyUpdate),Ta(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&A8.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:m,times:g,ease:p,duration:A}=l.accelerate,v=new y8({element:this.current,name:i,keyframes:m,times:g,ease:p,duration:kt(A)}),T=d(v);this.valueSubscriptions.set(i,()=>{T(),v.cancel()});return}const o=qi.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),f&&f()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Yo){const l=Yo[i];if(!l)continue;const{isEnabled:o,Feature:c}=l;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<km.length;o++){const c=km[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=dA(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const o=this.values.get(i);l!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&l!==void 0&&(o=Gi(l===null?void 0:l,{owner:this}),this.addValue(i,o)),o}readValue(i,l){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(Hp(o)||zp(o))?o=parseFloat(o):!uA(o)&&mn.test(l)&&(o=L8(i,l)),this.setBaseTarget(i,Ct(o)?o.get():o)),Ct(o)?o.get():o}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const f=I0(this.props,l,this.presenceContext?.custom);f&&(o=f[i])}if(l&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!Ct(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new T0),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){_0.render(this.render)}}class z8 extends pA{constructor(){super(...arguments),this.KeyframeResolver=F5}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const o=i.style;return o?o[l]:void 0}removeValueFromRenderState(i,{vars:l,style:o}){delete l[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ct(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Ca{constructor(i){this.isMounted=!1,this.node=i}update(){}}function P8({top:n,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:n,max:o}}}function gA({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function EA(n,i){if(!i)return n;const l=i({x:n.left,y:n.top}),o=i({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Vu(n){return n===void 0||n===1}function o0({scale:n,scaleX:i,scaleY:l}){return!Vu(n)||!Vu(i)||!Vu(l)}function $a(n){return o0(n)||B8(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function B8(n){return Ym(n.x)||Ym(n.y)}function Ym(n){return n&&n!=="0%"}function Xo(n,i,l){const o=n-l,c=i*o;return l+c}function Xm(n,i,l,o,c){return c!==void 0&&(n=Xo(n,c,o)),Xo(n,l,o)+i}function r0(n,i=0,l=1,o,c){n.min=Xm(n.min,i,l,o,c),n.max=Xm(n.max,i,l,o,c)}function G8(n,{x:i,y:l}){r0(n.x,i.translate,i.scale,i.originPoint),r0(n.y,l.translate,l.scale,l.originPoint)}const Km=.999999999999,Qm=1.0000000000001;function yA(n,i,l,o=!1){const c=l.length;if(!c)return;i.x=i.y=1;let f,d;for(let m=0;m<c;m++){f=l[m],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Cn(n.x,-f.scroll.offset.x),Cn(n.y,-f.scroll.offset.y)),d&&(i.x*=d.x.scale,i.y*=d.y.scale,G8(n,d)),o&&$a(f.latestValues)&&_o(n,f.latestValues,f.layout?.layoutBox))}i.x<Qm&&i.x>Km&&(i.x=1),i.y<Qm&&i.y>Km&&(i.y=1)}function Cn(n,i){n.min+=i,n.max+=i}function Wm(n,i,l,o,c=.5){const f=qe(n.min,n.max,c);r0(n,i,l,f,o)}function Jm(n,i){return typeof n=="string"?parseFloat(n)/100*(i.max-i.min):n}function _o(n,i,l){const o=l??n;Wm(n.x,Jm(i.x,o.x),i.scaleX,i.scale,i.originX),Wm(n.y,Jm(i.y,o.y),i.scaleY,i.scale,i.originY)}function F8(n,i){return P8(EA(n.getBoundingClientRect(),i))}function vA(n,i,l){const o=F8(n,l),{scroll:c}=i;return c&&(Cn(o.x,c.offset.x),Cn(o.y,c.offset.y)),o}const AA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SA=$i.length;function TA(n,i,l){let o="",c=!0;for(let d=0;d<SA;d++){const m=$i[d],g=n[m];if(g===void 0)continue;let p=!0;if(typeof g=="number")p=g===(m.startsWith("scale")?1:0);else{const A=parseFloat(g);p=m.startsWith("scale")?A===1:A===0}if(!p||l){const A=l0(g,qo[m]);if(!p){c=!1;const v=AA[m]||m;o+=`${v}(${A}) `}l&&(i[m]=A)}}const f=n.pathRotation;return f&&(c=!1,o+=`rotate(${l0(f,qo.pathRotation)}) `),o=o.trim(),l?o=l(i,c?"":o):c&&(o="none"),o}function G0(n,i,l){const{style:o,vars:c,transformOrigin:f}=n;let d=!1,m=!1;for(const g in i){const p=i[g];if(qi.has(g)){d=!0;continue}else if(t8(g)){c[g]=p;continue}else{const A=l0(p,qo[g]);g.startsWith("origin")?(m=!0,f[g]=A):o[g]=A}}if(i.transform||(d||l?o.transform=TA(i,n.transform,l):o.transform&&(o.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:A=0}=f;o.transformOrigin=`${g} ${p} ${A}`}}function $8(n,{style:i,vars:l},o,c){const f=n.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,o);for(d in l)f.setProperty(d,l[d])}function e2(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const Gs={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(he.test(n))n=parseFloat(n);else return n;const l=e2(n,i.target.x),o=e2(n,i.target.y);return`${l}% ${o}%`}},CA={correct:(n,{treeScale:i,projectionDelta:l})=>{const o=n,c=mn.parse(n);if(c.length>5)return o;const f=mn.createTransformer(n),d=typeof c[0]!="number"?1:0,m=l.x.scale*i.x,g=l.y.scale*i.y;c[0+d]/=m,c[1+d]/=g;const p=qe(m,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},c0={borderRadius:{...Gs,applyTo:[...U0]},borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:CA};function q8(n,{layout:i,layoutId:l}){return qi.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!c0[n]||n==="opacity")}function F0(n,i,l){const o=n.style,c=i?.style,f={};if(!o)return f;for(const d in o)(Ct(o[d])||c&&Ct(c[d])||q8(d,n)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=o[d]);return f}function bA(n){return window.getComputedStyle(n)}class OA extends z8{constructor(){super(...arguments),this.type="html",this.renderInstance=$8}mount(i){Jo(!!i.style),super.mount(i)}readValueFromInstance(i,l){if(qi.has(l))return this.projection?.isProjecting?Xu(l):qv(i,l);{const o=bA(i),c=(t8(l)?o.getPropertyValue(l):o[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return F8(i,l)}build(i,l,o){G0(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return F0(i,l,o)}}const RA={offset:"stroke-dashoffset",array:"stroke-dasharray"},NA={offset:"strokeDashoffset",array:"strokeDasharray"};function MA(n,i,l=1,o=0,c=!0){n.pathLength=1;const f=c?RA:NA;n[f.offset]=`${-o}`,n[f.array]=`${i} ${l}`}const xA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function k8(n,{attrX:i,attrY:l,attrScale:o,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...m},g,p,A){if(G0(n,m,p),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:T}=n;v.transform&&(T.transform=v.transform,delete v.transform),(T.transform||v.transformOrigin)&&(T.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),T.transform&&(T.transformBox=A?.transformBox??"fill-box",delete v.transformBox);for(const C of xA)v[C]!==void 0&&(T[C]=v[C],delete v[C]);i!==void 0&&(v.x=i),l!==void 0&&(v.y=l),o!==void 0&&(v.scale=o),c!==void 0&&MA(v,c,f,d,!1)}const Y8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),X8=n=>typeof n=="string"&&n.toLowerCase()==="svg";function DA(n,i,l,o){$8(n,i,void 0,o);for(const c in i.attrs)n.setAttribute(Y8.has(c)?c:j0(c),i.attrs[c])}function K8(n,i,l){const o=F0(n,i,l);for(const c in n)if(Ct(n[c])||Ct(i[c])){const f=$i.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[f]=n[c]}return o}class LA extends z8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(qi.has(l)){const o=D8(l);return o&&o.default||0}return l=Y8.has(l)?l:j0(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return K8(i,l,o)}build(i,l,o){k8(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,c){DA(i,l,o,c)}mount(i){this.isSVGTag=X8(i.tagName),super.mount(i)}}const VA=P0.length;function Q8(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Q8(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<VA;l++){const o=P0[l],c=n.props[o];(Ws(c)||c===!1)&&(i[o]=c)}return i}function W8(n,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==n.length)return!1;for(let o=0;o<l;o++)if(i[o]!==n[o])return!1;return!0}const wA=[...z0].reverse(),IA=z0.length;function jA(n){return i=>Promise.all(i.map(({animation:l,options:o})=>w5(n,l,o)))}function UA(n){let i=jA(n),l=t2(),o=!0,c=!1;const f=p=>(A,v)=>{const T=Xa(n,v,p==="exit"?n.presenceContext?.custom:void 0);if(T){const{transition:C,transitionEnd:O,...D}=T;A={...A,...D,...O}}return A};function d(p){i=p(n)}function m(p){const{props:A}=n,v=Q8(n.parent)||{},T=[],C=new Set;let O={},D=1/0;for(let _=0;_<IA;_++){const Y=wA[_],U=l[Y],P=A[Y]!==void 0?A[Y]:v[Y],Q=Ws(P),se=Y===p?U.isActive:null;se===!1&&(D=_);let W=P===v[Y]&&P!==A[Y]&&Q;if(W&&(o||c)&&n.manuallyAnimateOnMount&&(W=!1),U.protectedKeys={...O},!U.isActive&&se===null||!P&&!U.prevProp||tr(P)||typeof P=="boolean")continue;if(Y==="exit"&&U.isActive&&se!==!0){U.prevResolvedValues&&(O={...O,...U.prevResolvedValues});continue}const $=_A(U.prevProp,P);let fe=$||Y===p&&U.isActive&&!W&&Q||_>D&&Q,B=!1;const ne=Array.isArray(P)?P:[P];let Ee=ne.reduce(f(Y),{});se===!1&&(Ee={});const{prevResolvedValues:Ce={}}=U,be={...Ce,...Ee},Re=le=>{fe=!0,C.has(le)&&(B=!0,C.delete(le)),U.needsAnimating[le]=!0;const q=n.getValue(le);q&&(q.liveStyle=!1)};for(const le in be){const q=Ee[le],ue=Ce[le];if(O.hasOwnProperty(le))continue;let b=!1;t0(q)&&t0(ue)?b=!W8(q,ue)||$:b=q!==ue,b?q!=null?Re(le):C.add(le):q!==void 0&&C.has(le)?Re(le):U.protectedKeys[le]=!0}U.prevProp=P,U.prevResolvedValues=Ee,U.isActive&&(O={...O,...Ee}),(o||c)&&n.blockInitialAnimation&&(fe=!1);const I=W&&$;fe&&(!I||B)&&T.push(...ne.map(le=>{const q={type:Y};if(typeof le=="string"&&(o||c)&&!I&&n.manuallyAnimateOnMount&&n.parent){const{parent:ue}=n,b=Xa(ue,le);if(ue.enteringChildren&&b){const{delayChildren:L}=b.transition||{};q.delay=S8(ue.enteringChildren,n,L)}}return{animation:le,options:q}}))}if(C.size){const _={};if(typeof A.initial!="boolean"){const Y=Xa(n,Array.isArray(A.initial)?A.initial[0]:A.initial);Y&&Y.transition&&(_.transition=Y.transition)}C.forEach(Y=>{const U=n.getBaseTarget(Y),P=n.getValue(Y);P&&(P.liveStyle=!0),_[Y]=U??null}),T.push({animation:_})}let z=!!T.length;return o&&(A.initial===!1||A.initial===A.animate)&&!n.manuallyAnimateOnMount&&(z=!1),o=!1,c=!1,z?i(T):Promise.resolve()}function g(p,A){if(l[p].isActive===A)return Promise.resolve();n.variantChildren?.forEach(T=>T.animationState?.setActive(p,A)),l[p].isActive=A;const v=m(p);for(const T in l)l[T].protectedKeys={};return v}return{animateChanges:m,setActive:g,setAnimateFunction:d,getState:()=>l,reset:()=>{l=t2(),c=!0}}}function _A(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!W8(i,n):!1}function Fa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t2(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}function u0(n,i){n.min=i.min,n.max=i.max}function dn(n,i){u0(n.x,i.x),u0(n.y,i.y)}function n2(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const J8=1e-4,HA=1-J8,ZA=1+J8,e4=.01,zA=0-e4,PA=0+e4;function Dt(n){return n.max-n.min}function BA(n,i,l){return Math.abs(n-i)<=l}function a2(n,i,l,o=.5){n.origin=o,n.originPoint=qe(i.min,i.max,n.origin),n.scale=Dt(l)/Dt(i),n.translate=qe(l.min,l.max,n.origin)-n.originPoint,(n.scale>=HA&&n.scale<=ZA||isNaN(n.scale))&&(n.scale=1),(n.translate>=zA&&n.translate<=PA||isNaN(n.translate))&&(n.translate=0)}function ks(n,i,l,o){a2(n.x,i.x,l.x,o?o.originX:void 0),a2(n.y,i.y,l.y,o?o.originY:void 0)}function i2(n,i,l,o=0){const c=o?qe(l.min,l.max,o):l.min;n.min=c+i.min,n.max=n.min+Dt(i)}function GA(n,i,l,o){i2(n.x,i.x,l.x,o?.x),i2(n.y,i.y,l.y,o?.y)}function s2(n,i,l,o=0){const c=o?qe(l.min,l.max,o):l.min;n.min=i.min-c,n.max=n.min+Dt(i)}function Ko(n,i,l,o){s2(n.x,i.x,l.x,o?.x),s2(n.y,i.y,l.y,o?.y)}function l2(n,i,l,o,c){return n-=i,n=Xo(n,1/l,o),c!==void 0&&(n=Xo(n,1/c,o)),n}function FA(n,i=0,l=1,o=.5,c,f=n,d=n){if(bn.test(i)&&(i=parseFloat(i),i=qe(d.min,d.max,i/100)-d.min),typeof i!="number")return;let m=qe(f.min,f.max,o);n===f&&(m-=i),n.min=l2(n.min,i,l,m,c),n.max=l2(n.max,i,l,m,c)}function o2(n,i,[l,o,c],f,d){FA(n,i[l],i[o],i[c],i.scale,f,d)}const $A=["x","scaleX","originX"],qA=["y","scaleY","originY"];function r2(n,i,l,o){o2(n.x,i,$A,l?l.x:void 0,o?o.x:void 0),o2(n.y,i,qA,l?l.y:void 0,o?o.y:void 0)}function c2(n){return n.translate===0&&n.scale===1}function t4(n){return c2(n.x)&&c2(n.y)}function u2(n,i){return n.min===i.min&&n.max===i.max}function kA(n,i){return u2(n.x,i.x)&&u2(n.y,i.y)}function f2(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function n4(n,i){return f2(n.x,i.x)&&f2(n.y,i.y)}function d2(n){return Dt(n.x)/Dt(n.y)}function h2(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function Sn(n){return[n("x"),n("y")]}function YA(n,i,l){let o="";const c=n.x.translate/i.x,f=n.y.translate/i.y,d=l?.z||0;if((c||f||d)&&(o=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:A,pathRotation:v,rotateX:T,rotateY:C,skewX:O,skewY:D}=l;p&&(o=`perspective(${p}px) ${o}`),A&&(o+=`rotate(${A}deg) `),v&&(o+=`rotate(${v}deg) `),T&&(o+=`rotateX(${T}deg) `),C&&(o+=`rotateY(${C}deg) `),O&&(o+=`skewX(${O}deg) `),D&&(o+=`skewY(${D}deg) `)}const m=n.x.scale*i.x,g=n.y.scale*i.y;return(m!==1||g!==1)&&(o+=`scale(${m}, ${g})`),o||"none"}const XA=U0.length,m2=n=>typeof n=="string"?parseFloat(n):n,p2=n=>typeof n=="number"||he.test(n);function KA(n,i,l,o,c,f){c?(n.opacity=qe(0,l.opacity??1,QA(o)),n.opacityExit=qe(i.opacity??1,0,WA(o))):f&&(n.opacity=qe(i.opacity??1,l.opacity??1,o));for(let d=0;d<XA;d++){const m=U0[d];let g=g2(i,m),p=g2(l,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||p2(g)===p2(p)?(n[m]=Math.max(qe(m2(g),m2(p),o),0),(bn.test(p)||bn.test(g))&&(n[m]+="%")):n[m]=p}(i.rotate||l.rotate)&&(n.rotate=qe(i.rotate||0,l.rotate||0,o))}function g2(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const QA=a4(0,.5,Xp),WA=a4(.5,.95,rn);function a4(n,i,l){return o=>o<n?0:o>i?1:l(Ks(n,i,o))}function JA(n,i,l){const o=Ct(n)?n:Gi(n);return o.start(w0("",o,i,l)),o.animation}function Js(n,i,l,o={passive:!0}){return n.addEventListener(i,l,o),()=>n.removeEventListener(i,l,o)}const eS=(n,i)=>n.depth-i.depth;class tS{constructor(){this.children=[],this.isDirty=!1}add(i){S0(this.children,i),this.isDirty=!0}remove(i){Po(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(eS),this.isDirty=!1,this.children.forEach(i)}}function nS(n,i){const l=xt.now(),o=({timestamp:c})=>{const f=c-l;f>=i&&(Ta(o),n(f-i))};return ke.setup(o,!0),()=>Ta(o)}function Ho(n){return Ct(n)?n.get():n}class aS{constructor(){this.members=[]}add(i){S0(this.members,i);for(let l=this.members.length-1;l>=0;l--){const o=this.members[l];if(o===i||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(Po(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(Po(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){for(let l=this.members.indexOf(i)-1;l>=0;l--){const o=this.members[l];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(i,l){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.updateSnapshot(),i.scheduleRender();const{layoutDependency:c}=o.options,{layoutDependency:f}=i.options;(c===void 0||c!==f)&&(i.resumeFrom=o,l&&(o.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root?.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{i.options.onExitComplete?.(),i.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Zo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wu=["","X","Y","Z"],iS=1e3;let sS=0;function Iu(n,i,l,o){const{latestValues:c}=i;c[n]&&(l[n]=c[n],i.setStaticValue(n,0),o&&(o[n]=0))}function i4(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=R8(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",ke,!(c||f))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&i4(o)}function s4({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},m=i?.()){this.id=sS++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rS),this.nodes.forEach(mS),this.nodes.forEach(pS),this.nodes.forEach(cS)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new tS)}addEventListener(d,m){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new T0),this.eventHandlers.get(d).add(m)}notifyListeners(d,...m){const g=this.eventHandlers.get(d);g&&g.notify(...m)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Z0(d)&&!rA(d),this.instance=d;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),n){let A,v=0;const T=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{v=window.innerWidth}),n(d,()=>{const C=window.innerWidth;C!==v&&(v=C,this.root.updateBlockedByResize=!0,A&&A(),A=nS(T,250),Zo.hasAnimatedSinceResize&&(Zo.hasAnimatedSinceResize=!1,this.nodes.forEach(v2)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:A,hasLayoutChanged:v,hasRelativeLayoutChanged:T,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||p.getDefaultTransition()||AS,{onLayoutAnimationStart:D,onLayoutAnimationComplete:z}=p.getProps(),_=!this.targetLayout||!n4(this.targetLayout,C),Y=!v&&T;if(this.options.layoutRoot||this.resumeFrom||Y||v&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={...V0(O,"layout"),onPlay:D,onComplete:z};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(A,Y,U.path)}else v||v2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ta(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gS),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&i4(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){const v=this.path[A];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(fS),this.nodes.forEach(E2);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(y2);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dS),this.nodes.forEach(hS),this.nodes.forEach(lS),this.nodes.forEach(oS)):this.nodes.forEach(y2),this.clearAllSnapshots();const m=xt.now();Tt.delta=On(0,1e3/60,m-Tt.timestamp),Tt.timestamp=m,Tt.isProcessing=!0,Ou.update.process(Tt),Ou.preRender.process(Tt),Ou.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uS),this.sharedNodes.forEach(ES)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dt(this.snapshot.measuredBox.x)&&!Dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=dt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(m=!1),m&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!t4(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,A=p!==this.prevTransformTemplateValue;d&&this.instance&&(m||$a(this.latestValues)||A)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return d&&(g=this.removeTransform(g)),SS(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return dt();const m=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(TS))){const{scroll:p}=this.root;p&&(Cn(m.x,p.offset.x),Cn(m.y,p.offset.y))}return m}removeElementScroll(d){const m=dt();if(dn(m,d),this.scroll?.wasRoot)return m;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:A,options:v}=p;p!==this.root&&A&&v.layoutScroll&&(A.wasRoot&&dn(m,d),Cn(m.x,A.offset.x),Cn(m.y,A.offset.y))}return m}applyTransform(d,m=!1,g){const p=g||dt();dn(p,d);for(let A=0;A<this.path.length;A++){const v=this.path[A];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&(Cn(p.x,-v.scroll.offset.x),Cn(p.y,-v.scroll.offset.y)),$a(v.latestValues)&&_o(p,v.latestValues,v.layout?.layoutBox)}return $a(this.latestValues)&&_o(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(d){const m=dt();dn(m,d);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!$a(p.latestValues))continue;let A;p.instance&&(o0(p.latestValues)&&p.updateSnapshot(),A=dt(),dn(A,p.measurePageBox())),r2(m,p.latestValues,p.snapshot?.layoutBox,A)}return $a(this.latestValues)&&r2(m,this.latestValues),m}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:A,layoutId:v}=this.options;if(!this.layout||!(A||v))return;this.resolvedRelativeTargetAt=Tt.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=dt(),this.targetWithTransforms=dt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),GA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):dn(this.target,this.layout.layoutBox),G8(this.target,this.targetDelta)):dn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||o0(this.parent.latestValues)||B8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,m,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=dt(),this.relativeTargetOrigin=dt(),Ko(this.relativeTargetOrigin,m,g,this.options.layoutAnchor||void 0),dn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),m=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(g=!1),g)return;const{layout:p,layoutId:A}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||A))return;dn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,T=this.treeScale.y;yA(this.layoutCorrected,this.treeScale,this.path,m),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=dt());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(n2(this.prevProjectionDelta.x,this.projectionDelta.x),n2(this.prevProjectionDelta.y,this.projectionDelta.y)),ks(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==T||!h2(this.projectionDelta.x,this.prevProjectionDelta.x)||!h2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zi(),this.projectionDelta=zi(),this.projectionDeltaWithTransform=zi()}setAnimationOrigin(d,m=!1,g){const p=this.snapshot,A=p?p.latestValues:{},v={...this.latestValues},T=zi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const C=dt(),O=p?p.source:void 0,D=this.layout?this.layout.source:void 0,z=O!==D,_=this.getStack(),Y=!_||_.members.length<=1,U=!!(z&&!Y&&this.options.crossfade===!0&&!this.path.some(vS));this.animationProgress=0;let P;const Q=g?.interpolateProjection(d);this.mixTargetDelta=se=>{const W=se/1e3,$=Q?.(W);$?(T.x.translate=$.x,T.x.scale=qe(d.x.scale,1,W),T.x.origin=d.x.origin,T.x.originPoint=d.x.originPoint,T.y.translate=$.y,T.y.scale=qe(d.y.scale,1,W),T.y.origin=d.y.origin,T.y.originPoint=d.y.originPoint):(A2(T.x,d.x,W),A2(T.y,d.y,W)),this.setTargetDelta(T),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ko(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yS(this.relativeTarget,this.relativeTargetOrigin,C,W),P&&kA(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=dt()),dn(P,this.relativeTarget)),z&&(this.animationValues=v,KA(v,A,this.latestValues,W,U,Y)),$&&$.rotate!==void 0&&(this.animationValues||(this.animationValues=v),this.animationValues.pathRotation=$.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ta(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Zo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gi(0)),this.motionValue.jump(0,!1),this.currentAnimation=JA(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),d.onUpdate&&d.onUpdate(m)},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(iS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:A}=d;if(!(!m||!g||!p)){if(this!==d&&this.layout&&p&&l4(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||dt();const v=Dt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const T=Dt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+T}dn(m,g),_o(m,A),ks(this.projectionDeltaWithTransform,this.layoutCorrected,m,A)}}registerSharedNode(d,m){this.sharedNodes.has(d)||this.sharedNodes.set(d,new aS),this.sharedNodes.get(d).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let m=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&Iu("z",d,p,this.animationValues);for(let A=0;A<wu.length;A++)Iu(`rotate${wu[A]}`,d,p,this.animationValues),Iu(`skew${wu[A]}`,d,p,this.animationValues);d.render();for(const A in p)d.setStaticValue(A,p[A]),this.animationValues&&(this.animationValues[A]=p[A]);d.scheduleRender()}applyProjectionStyles(d,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Ho(m?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ho(m?.pointerEvents)||""),this.hasProjected&&!$a(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const A=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=YA(this.projectionDeltaWithTransform,this.treeScale,A);g&&(v=g(A,v)),d.transform=v;const{x:T,y:C}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${C.origin*100}% 0`,p.animationValues?d.opacity=p===this?A.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:A.opacityExit:d.opacity=p===this?A.opacity!==void 0?A.opacity:"":A.opacityExit!==void 0?A.opacityExit:0;for(const O in c0){if(A[O]===void 0)continue;const{correct:D,applyTo:z,isCSSVariable:_}=c0[O],Y=v==="none"?A[O]:D(A[O],p);if(z){const U=z.length;for(let P=0;P<U;P++)d[z[P]]=Y}else _?this.options.visualElement.renderState.vars[O]=Y:d[O]=Y}this.options.layoutId&&(d.pointerEvents=p===this?Ho(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(E2),this.root.sharedNodes.clear()}}}function lS(n){n.updateLayout()}function oS(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=n.layout,{animationType:c}=n.options,f=i.source!==n.layout.source;if(c==="size")Sn(A=>{const v=f?i.measuredBox[A]:i.layoutBox[A],T=Dt(v);v.min=l[A].min,v.max=v.min+T});else if(c==="x"||c==="y"){const A=c==="x"?"y":"x";u0(f?i.measuredBox[A]:i.layoutBox[A],l[A])}else l4(c,i.layoutBox,l)&&Sn(A=>{const v=f?i.measuredBox[A]:i.layoutBox[A],T=Dt(l[A]);v.max=v.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[A].max=n.relativeTarget[A].min+T)});const d=zi();ks(d,l,i.layoutBox);const m=zi();f?ks(m,n.applyTransform(o,!0),i.measuredBox):ks(m,l,i.layoutBox);const g=!t4(d);let p=!1;if(!n.resumeFrom){const A=n.getClosestProjectingParent();if(A&&!A.resumeFrom){const{snapshot:v,layout:T}=A;if(v&&T){const C=n.options.layoutAnchor||void 0,O=dt();Ko(O,i.layoutBox,v.layoutBox,C);const D=dt();Ko(D,l,T.layoutBox,C),n4(O,D)||(p=!0),A.options.layoutRoot&&(n.relativeTarget=D,n.relativeTargetOrigin=O,n.relativeParent=A)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function rS(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function cS(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function uS(n){n.clearSnapshot()}function E2(n){n.clearMeasurements()}function fS(n){n.isLayoutDirty=!0,n.updateLayout()}function y2(n){n.isLayoutDirty=!1}function dS(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function hS(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function v2(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function mS(n){n.resolveTargetDelta()}function pS(n){n.calcProjection()}function gS(n){n.resetSkewAndRotation()}function ES(n){n.removeLeadSnapshot()}function A2(n,i,l){n.translate=qe(i.translate,0,l),n.scale=qe(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function S2(n,i,l,o){n.min=qe(i.min,l.min,o),n.max=qe(i.max,l.max,o)}function yS(n,i,l,o){S2(n.x,i.x,l.x,o),S2(n.y,i.y,l.y,o)}function vS(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const AS={duration:.45,ease:[.4,0,.1,1]},T2=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),C2=T2("applewebkit/")&&!T2("chrome/")?Math.round:rn;function b2(n){n.min=C2(n.min),n.max=C2(n.max)}function SS(n){b2(n.x),b2(n.y)}function l4(n,i,l){return n==="position"||n==="preserve-aspect"&&!BA(d2(i),d2(l),.2)}function TS(n){return n!==n.root&&n.scroll?.wasRoot}const CS=s4({attachResizeListener:(n,i)=>Js(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ju={current:void 0},o4=s4({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!ju.current){const n=new CS({});n.mount(window),n.setOptions({layoutScroll:!0}),ju.current=n}return ju.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),$0=h.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function O2(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function bS(...n){return i=>{let l=!1;const o=n.map(c=>{const f=O2(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():O2(n[c],null)}}}}function OS(...n){return h.useCallback(bS(...n),n)}class RS extends h.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(Vo(l)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=l.offsetParent,c=Vo(o)&&o.offsetWidth||0,f=Vo(o)&&o.offsetHeight||0,d=getComputedStyle(l),m=this.props.sizeRef.current;m.height=parseFloat(d.height),m.width=parseFloat(d.width),m.top=l.offsetTop,m.left=l.offsetLeft,m.right=c-m.width-m.left,m.bottom=f-m.height-m.top,m.direction=d.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function NS({children:n,isPresent:i,anchorX:l,anchorY:o,root:c,pop:f}){const d=h.useId(),m=h.useRef(null),g=h.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=h.useContext($0),A=f!==!1?n.props?.ref??n?.ref:void 0,v=OS(m,A);return h.useInsertionEffect(()=>{const{width:T,height:C,top:O,left:D,right:z,bottom:_,direction:Y}=g.current;if(i||f===!1||!m.current||!T||!C)return;const U=Y==="rtl",P=l==="left"?U?`right: ${z}`:`left: ${D}`:U?`left: ${D}`:`right: ${z}`,Q=o==="bottom"?`bottom: ${_}`:`top: ${O}`;m.current.dataset.motionPopId=d;const se=document.createElement("style");p&&(se.nonce=p);const W=c??document.head;return W.appendChild(se),se.sheet&&se.sheet.insertRule(`
|
|
98
|
+
[data-motion-pop-id="${d}"] {
|
|
99
|
+
position: absolute !important;
|
|
100
|
+
width: ${T}px !important;
|
|
101
|
+
height: ${C}px !important;
|
|
102
|
+
${P}px !important;
|
|
103
|
+
${Q}px !important;
|
|
104
|
+
}
|
|
105
|
+
`),()=>{m.current?.removeAttribute("data-motion-pop-id"),W.contains(se)&&W.removeChild(se)}},[i]),E.jsx(RS,{isPresent:i,childRef:m,sizeRef:g,pop:f,children:f===!1?n:h.cloneElement(n,{ref:v})})}const MS=({children:n,initial:i,isPresent:l,onExitComplete:o,custom:c,presenceAffectsLayout:f,mode:d,anchorX:m,anchorY:g,root:p})=>{const A=v0(xS),v=h.useId(),T=h.useRef(l),C=h.useRef(o);A0(()=>{T.current=l,C.current=o});let O=!0,D=h.useMemo(()=>(O=!1,{id:v,initial:i,isPresent:l,custom:c,onExitComplete:z=>{A.set(z,!0);for(const _ of A.values())if(!_)return;o&&o()},register:z=>(A.set(z,!1),()=>{A.delete(z),!T.current&&!A.size&&C.current?.()})}),[l,A,o]);return f&&O&&(D={...D}),h.useMemo(()=>{A.forEach((z,_)=>A.set(_,!1))},[l]),h.useEffect(()=>{!l&&!A.size&&o&&o()},[l]),n=E.jsx(NS,{pop:d==="popLayout",isPresent:l,anchorX:m,anchorY:g,root:p,children:n}),E.jsx(Wo.Provider,{value:D,children:n})};function xS(){return new Map}function r4(n=!0){const i=h.useContext(Wo);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:c}=i,f=h.useId();h.useEffect(()=>{if(n)return c(f)},[n]);const d=h.useCallback(()=>n&&o&&o(f),[f,o,n]);return!l&&o?[!1,d]:[!0]}const No=n=>n.key||"";function R2(n){const i=[];return h.Children.forEach(n,l=>{h.isValidElement(l)&&i.push(l)}),i}const c4=({children:n,custom:i,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:m="left",anchorY:g="top",root:p})=>{const[A,v]=r4(d),T=h.useMemo(()=>R2(n),[n]),C=d&&!A?[]:T.map(No),O=h.useRef(!0),D=h.useRef(T),z=v0(()=>new Map),_=h.useRef(new Set),[Y,U]=h.useState(T),[P,Q]=h.useState(T);A0(()=>{O.current=!1,D.current=T;for(let $=0;$<P.length;$++){const fe=No(P[$]);C.includes(fe)?(z.delete(fe),_.current.delete(fe)):z.get(fe)!==!0&&z.set(fe,!1)}},[P,C.length,C.join("-")]);const se=[];if(T!==Y){let $=[...T];for(let fe=0;fe<P.length;fe++){const B=P[fe],ne=No(B);C.includes(ne)||($.splice(fe,0,B),se.push(B))}return f==="wait"&&se.length&&($=se),Q(R2($)),U(T),null}const{forceRender:W}=h.useContext(y0);return E.jsx(E.Fragment,{children:P.map($=>{const fe=No($),B=d&&!A?!1:T===P||C.includes(fe),ne=()=>{if(_.current.has(fe))return;if(z.has(fe))_.current.add(fe),z.set(fe,!0);else return;let Ee=!0;z.forEach(Ce=>{Ce||(Ee=!1)}),Ee&&(W?.(),Q(D.current),d&&v?.(),o&&o())};return E.jsx(MS,{isPresent:B,initial:!O.current||l?void 0:!1,custom:i,presenceAffectsLayout:c,mode:f,root:p,onExitComplete:B?void 0:ne,anchorX:m,anchorY:g,children:$},fe)})})},u4=h.createContext({strict:!1}),N2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let M2=!1;function DS(){if(M2)return;const n={};for(const i in N2)n[i]={isEnabled:l=>N2[i].some(o=>!!l[o])};Z8(n),M2=!0}function f4(){return DS(),mA()}function LS(n){const i=f4();for(const l in n)i[l]={...i[l],...n[l]};Z8(i)}const VS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Qo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||VS.has(n)}let d4=n=>!Qo(n);function wS(n){typeof n=="function"&&(d4=i=>i.startsWith("on")?!Qo(i):n(i))}try{wS(require("@emotion/is-prop-valid").default)}catch{}function IS(n,i,l){const o={};for(const c in n)c==="values"&&typeof n.values=="object"||Ct(n[c])||(d4(c)||l===!0&&Qo(c)||!i&&!Qo(c)||n.draggable&&c.startsWith("onDrag"))&&(o[c]=n[c]);return o}const ar=h.createContext({});function jS(n,i){if(nr(n)){const{initial:l,animate:o}=n;return{initial:l===!1||Ws(l)?l:void 0,animate:Ws(o)?o:void 0}}return n.inherit!==!1?i:{}}function US(n){const{initial:i,animate:l}=jS(n,h.useContext(ar));return h.useMemo(()=>({initial:i,animate:l}),[x2(i),x2(l)])}function x2(n){return Array.isArray(n)?n.join(" "):n}const q0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h4(n,i,l){for(const o in i)!Ct(i[o])&&!q8(o,l)&&(n[o]=i[o])}function _S({transformTemplate:n},i){return h.useMemo(()=>{const l=q0();return G0(l,i,n),Object.assign({},l.vars,l.style)},[i])}function HS(n,i){const l=n.style||{},o={};return h4(o,l,n),Object.assign(o,_S(n,i)),o}function ZS(n,i){const l={},o=HS(n,i);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=o,l}const m4=()=>({...q0(),attrs:{}});function zS(n,i,l,o){const c=h.useMemo(()=>{const f=m4();return k8(f,i,X8(o),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};h4(f,n.style,n),c.style={...f,...c.style}}return c}const PS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function k0(n){return typeof n!="string"||n.includes("-")?!1:!!(PS.indexOf(n)>-1||/[A-Z]/u.test(n))}function BS(n,i,l,{latestValues:o},c,f=!1,d){const g=(d??k0(n)?zS:ZS)(i,o,c,n),p=IS(i,typeof n=="string",f),A=n!==h.Fragment?{...p,...g,ref:l}:{},{children:v}=i,T=h.useMemo(()=>Ct(v)?v.get():v,[v]);return h.createElement(n,{...A,children:T})}function GS({scrapeMotionValuesFromProps:n,createRenderState:i},l,o,c){return{latestValues:FS(l,o,c,n),renderState:i()}}function FS(n,i,l,o){const c={},f=o(n,{});for(const T in f)c[T]=Ho(f[T]);let{initial:d,animate:m}=n;const g=nr(n),p=_8(n);i&&p&&!g&&n.inherit!==!1&&(d===void 0&&(d=i.initial),m===void 0&&(m=i.animate));let A=l?l.initial===!1:!1;A=A||d===!1;const v=A?m:d;if(v&&typeof v!="boolean"&&!tr(v)){const T=Array.isArray(v)?v:[v];for(let C=0;C<T.length;C++){const O=I0(n,T[C]);if(O){const{transitionEnd:D,transition:z,..._}=O;for(const Y in _){let U=_[Y];if(Array.isArray(U)){const P=A?U.length-1:0;U=U[P]}U!==null&&(c[Y]=U)}for(const Y in D)c[Y]=D[Y]}}}return c}const p4=n=>(i,l)=>{const o=h.useContext(ar),c=h.useContext(Wo),f=()=>GS(n,i,o,c);return l?f():v0(f)},$S=p4({scrapeMotionValuesFromProps:F0,createRenderState:q0}),qS=p4({scrapeMotionValuesFromProps:K8,createRenderState:m4}),kS=Symbol.for("motionComponentSymbol");function YS(n,i,l){const o=h.useRef(l);h.useInsertionEffect(()=>{o.current=l});const c=h.useRef(null);return h.useCallback(f=>{f&&n.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=o.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const g4=h.createContext({});function _i(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function XS(n,i,l,o,c,f){const{visualElement:d}=h.useContext(ar),m=h.useContext(u4),g=h.useContext(Wo),p=h.useContext($0),A=p.reducedMotion,v=p.skipAnimations,T=h.useRef(null),C=h.useRef(!1);o=o||m.renderer,!T.current&&o&&(T.current=o(n,{visualState:i,parent:d,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:A,skipAnimations:v,isSVG:f}),C.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const O=T.current,D=h.useContext(g4);O&&!O.projection&&c&&(O.type==="html"||O.type==="svg")&&KS(T.current,l,c,D);const z=h.useRef(!1);h.useInsertionEffect(()=>{O&&z.current&&O.update(l,g)});const _=l[O8],Y=h.useRef(!!_&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return A0(()=>{C.current=!0,O&&(z.current=!0,window.MotionIsMounted=!0,O.updateFeatures(),O.scheduleRenderMicrotask(),Y.current&&O.animationState&&O.animationState.animateChanges())}),h.useEffect(()=>{O&&(!Y.current&&O.animationState&&O.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),Y.current=!1),O.enteringChildren=void 0)}),O}function KS(n,i,l,o){const{layoutId:c,layout:f,drag:d,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutAnchor:A,layoutCrossfade:v}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:E4(n.parent)),n.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||m&&_i(m),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:p,layoutAnchor:A})}function E4(n){if(n)return n.options.allowProjection!==!1?n.projection:E4(n.parent)}function Uu(n,{forwardMotionProps:i=!1,type:l}={},o,c){o&&LS(o);const f=l?l==="svg":k0(n),d=f?qS:$S;function m(p,A){let v;const T={...h.useContext($0),...p,layoutId:QS(p)},{isStatic:C}=T,O=US(p),D=d(p,C);if(!C&&typeof window<"u"){WS();const z=JS(T);v=z.MeasureLayout,O.visualElement=XS(n,D,T,c,z.ProjectionNode,f)}return E.jsxs(ar.Provider,{value:O,children:[v&&O.visualElement?E.jsx(v,{visualElement:O.visualElement,...T}):null,BS(n,p,YS(D,O.visualElement,A),D,C,i,f)]})}m.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const g=h.forwardRef(m);return g[kS]=n,g}function QS({layoutId:n}){const i=h.useContext(y0).id;return i&&n!==void 0?i+"-"+n:n}function WS(n,i){h.useContext(u4).strict}function JS(n){const i=f4(),{drag:l,layout:o}=i;if(!l&&!o)return{};const c={...l,...o};return{MeasureLayout:l?.isEnabled(n)||o?.isEnabled(n)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function e9(n,i){if(typeof Proxy>"u")return Uu;const l=new Map,o=(f,d)=>Uu(f,d,n,i),c=(f,d)=>o(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?o:(l.has(d)||l.set(d,Uu(d,void 0,n,i)),l.get(d))})}const t9=(n,i)=>i.isSVG??k0(n)?new LA(i):new OA(i,{allowProjection:n!==h.Fragment});class n9 extends Ca{constructor(i){super(i),i.animationState||(i.animationState=UA(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();tr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let a9=0;class i9 extends Ca{constructor(){super(...arguments),this.id=a9++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;if(i&&o===!1){if(this.isExitComplete){const{initial:f,custom:d}=this.node.getProps();if(typeof f=="string"||typeof f=="object"&&f!==null&&!Array.isArray(f)){const m=Xa(this.node,f,d);if(m){const{transition:g,transitionEnd:p,...A}=m;for(const v in A)this.node.getValue(v)?.jump(A[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const s9={animation:{Feature:n9},exit:{Feature:i9}};function al(n){return{point:{x:n.pageX,y:n.pageY}}}const l9=n=>i=>H0(i)&&n(i,al(i));function Ys(n,i,l,o){return Js(n,i,l9(l),o)}const y4=({current:n})=>n?n.ownerDocument.defaultView:null,D2=(n,i)=>Math.abs(n-i);function o9(n,i){const l=D2(n.x,i.x),o=D2(n.y,i.y);return Math.sqrt(l**2+o**2)}const L2=new Set(["auto","scroll"]);class v4{constructor(i,l,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=O=>{this.handleScroll(O.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Mo(this.lastRawMoveEventInfo,this.transformPagePoint));const O=_u(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,z=o9(O.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!z)return;const{point:_}=O,{timestamp:Y}=Tt;this.history.push({..._,timestamp:Y});const{onStart:U,onMove:P}=this.handlers;D||(U&&U(this.lastMoveEvent,O),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,O)},this.handlePointerMove=(O,D)=>{this.lastMoveEvent=O,this.lastRawMoveEventInfo=D,this.lastMoveEventInfo=Mo(D,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(O,D)=>{this.end();const{onEnd:z,onSessionEnd:_,resumeAnimation:Y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=_u(O.type==="pointercancel"?this.lastMoveEventInfo:Mo(D,this.transformPagePoint),this.history);this.startEvent&&z&&z(O,U),_&&_(O,U)},!H0(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const g=al(i),p=Mo(g,this.transformPagePoint),{point:A}=p,{timestamp:v}=Tt;this.history=[{...A,timestamp:v}];const{onSessionStart:T}=l;T&&T(i,_u(p,this.history));const C={passive:!0,capture:!0};this.removeListeners=el(Ys(this.contextWindow,"pointermove",this.handlePointerMove,C),Ys(this.contextWindow,"pointerup",this.handlePointerUp,C),Ys(this.contextWindow,"pointercancel",this.handlePointerUp,C)),m&&this.startScrollTracking(m)}startScrollTracking(i){let l=i.parentElement;for(;l;){const o=getComputedStyle(l);(L2.has(o.overflowX)||L2.has(o.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const l=this.scrollPositions.get(i);if(!l)return;const o=i===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-l.x,y:c.y-l.y};f.x===0&&f.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),ke.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ta(this.updatePoint)}}function Mo(n,i){return i?{point:i(n.point)}:n}function V2(n,i){return{x:n.x-i.x,y:n.y-i.y}}function _u({point:n},i){return{point:n,delta:V2(n,A4(i)),offset:V2(n,r9(i)),velocity:c9(i,.1)}}function r9(n){return n[0]}function A4(n){return n[n.length-1]}function c9(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,o=null;const c=A4(n);for(;l>=0&&(o=n[l],!(c.timestamp-o.timestamp>kt(i)));)l--;if(!o)return{x:0,y:0};o===n[0]&&n.length>2&&c.timestamp-o.timestamp>kt(i)*2&&(o=n[1]);const f=on(c.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-o.x)/f,y:(c.y-o.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function u9(n,{min:i,max:l},o){return i!==void 0&&n<i?n=o?qe(i,n,o.min):Math.max(n,i):l!==void 0&&n>l&&(n=o?qe(l,n,o.max):Math.min(n,l)),n}function w2(n,i,l){return{min:i!==void 0?n.min+i:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function f9(n,{top:i,left:l,bottom:o,right:c}){return{x:w2(n.x,l,c),y:w2(n.y,i,o)}}function I2(n,i){let l=i.min-n.min,o=i.max-n.max;return i.max-i.min<n.max-n.min&&([l,o]=[o,l]),{min:l,max:o}}function d9(n,i){return{x:I2(n.x,i.x),y:I2(n.y,i.y)}}function h9(n,i){let l=.5;const o=Dt(n),c=Dt(i);return c>o?l=Ks(i.min,i.max-o,n.min):o>c&&(l=Ks(n.min,n.max-c,i.min)),On(0,1,l)}function m9(n,i){const l={};return i.min!==void 0&&(l.min=i.min-n.min),i.max!==void 0&&(l.max=i.max-n.min),l}const f0=.35;function p9(n=f0){return n===!1?n=0:n===!0&&(n=f0),{x:j2(n,"left","right"),y:j2(n,"top","bottom")}}function j2(n,i,l){return{min:U2(n,i),max:U2(n,l)}}function U2(n,i){return typeof n=="number"?n:n[i]||0}const g9=new WeakMap;class E9{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=v=>{l&&this.snapToCursor(al(v).point),this.stopAnimation()},d=(v,T)=>{const{drag:C,dragPropagation:O,onDragStart:D}=this.getProps();if(C&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$5(C),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sn(_=>{let Y=this.getAxisMotionValue(_).get()||0;if(bn.test(Y)){const{projection:U}=this.visualElement;if(U&&U.layout){const P=U.layout.layoutBox[_];P&&(Y=Dt(P)*(parseFloat(Y)/100))}}this.originPoint[_]=Y}),D&&ke.update(()=>D(v,T),!1,!0),n0(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},m=(v,T)=>{this.latestPointerEvent=v,this.latestPanInfo=T;const{dragPropagation:C,dragDirectionLock:O,onDirectionLock:D,onDrag:z}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:_}=T;if(O&&this.currentDirection===null){this.currentDirection=v9(_),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",T.point,_),this.updateAxis("y",T.point,_),this.visualElement.render(),z&&ke.update(()=>z(v,T),!1,!0)},g=(v,T)=>{this.latestPointerEvent=v,this.latestPanInfo=T,this.stop(v,T),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:A}=this.getProps();this.panSession=new v4(i,{onSessionStart:f,onStart:d,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,distanceThreshold:o,contextWindow:y4(this.visualElement),element:this.visualElement.current})}stop(i,l){const o=i||this.latestPointerEvent,c=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!o)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:m}=this.getProps();m&&ke.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,o){const{drag:c}=this.getProps();if(!o||!xo(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(d=u9(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&_i(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=f9(o.layoutBox,i):this.constraints=!1,this.elastic=p9(l),c!==this.constraints&&!_i(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&Sn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=m9(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!_i(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const f=vA(o,c.root,this.visualElement.getTransformPagePoint());let d=d9(c.layout.layoutBox,f);if(l){const m=l(gA(d));this.hasMutatedConstraints=!!m,m&&(d=P8(m))}return d}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=Sn(A=>{if(!xo(A,l,this.currentDirection))return;let v=g&&g[A]||{};(d===!0||d===A)&&(v={min:0,max:0});const T=c?200:1e6,C=c?40:1e7,O={type:"inertia",velocity:o?i[A]:0,bounceStiffness:T,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(A,O)});return Promise.all(p).then(m)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return n0(this.visualElement,i),o.start(w0(i,o,0,l,this.visualElement,!1))}stopAnimation(){Sn(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,c=this.visualElement.getProps()[l];return c||this.visualElement.getValue(i,this.visualElement.latestValues[i]??0)}snapToCursor(i){Sn(l=>{const{drag:o}=this.getProps();if(!xo(l,o,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:m}=c.layout.layoutBox[l],g=f.get()||0;f.set(i[l]-qe(d,m,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!_i(l)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Sn(d=>{const m=this.getAxisMotionValue(d);if(m&&this.constraints!==!1){const g=m.get();c[d]=h9({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Sn(d=>{if(!xo(d,i,null))return;const m=this.getAxisMotionValue(d),{min:g,max:p}=this.constraints[d];m.set(qe(g,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;g9.set(this.visualElement,this);const i=this.visualElement.current,l=Ys(i,"pointerdown",p=>{const{drag:A,dragListener:v=!0}=this.getProps(),T=p.target,C=T!==i&&Q5(T);A&&v&&!C&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();_i(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=y9(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),ke.read(c);const m=Js(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:A})=>{this.isDragging&&A&&(Sn(v=>{const T=this.getAxisMotionValue(v);T&&(this.originPoint[v]+=p[v].translate,T.set(T.get()+p[v].translate))}),this.visualElement.render())}));return()=>{m(),l(),d(),g&&g(),o&&o()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=f0,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:m}}}function _2(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function y9(n,i,l){const o=Fm(n,_2(l)),c=Fm(i,_2(l));return()=>{o(),c()}}function xo(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function v9(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class A9 extends Ca{constructor(i){super(i),this.removeGroupControls=rn,this.removeListeners=rn,this.controls=new E9(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rn}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Hu=n=>(i,l)=>{n&&ke.update(()=>n(i,l),!1,!0)};class S9 extends Ca{constructor(){super(...arguments),this.removePointerDownListener=rn}onPointerDown(i){this.session=new v4(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y4(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Hu(i),onStart:Hu(l),onMove:Hu(o),onEnd:(f,d)=>{delete this.session,c&&ke.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=Ys(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zu=!1;class T9 extends h.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o,layoutId:c}=this.props,{projection:f}=i;f&&(l.group&&l.group.add(f),o&&o.register&&c&&o.register(f),Zu&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Zo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:o,drag:c,isPresent:f}=this.props,{projection:d}=o;return d&&(d.isPresent=f,i.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),Zu=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||ke.postRender(()=>{const m=d.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:o}=i;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),_0.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:c}=i;Zu=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function S4(n){const[i,l]=r4(),o=h.useContext(y0);return E.jsx(T9,{...n,layoutGroup:o,switchLayoutGroup:h.useContext(g4),isPresent:i,safeToRemove:l})}const C9={pan:{Feature:S9},drag:{Feature:A9,ProjectionNode:o4,MeasureLayout:S4}};function H2(n,i,l){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,f=o[c];f&&ke.postRender(()=>f(i,al(i)))}class b9 extends Ca{mount(){const{current:i}=this.node;i&&(this.unmount=k5(i,(l,o)=>(H2(this.node,o,"Start"),c=>H2(this.node,c,"End"))))}unmount(){}}class O9 extends Ca{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=el(Js(this.node.current,"focus",()=>this.onFocus()),Js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Z2(n,i,l){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),f=o[c];f&&ke.postRender(()=>f(i,al(i)))}class R9 extends Ca{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=J5(i,(c,f)=>(Z2(this.node,f,"Start"),(d,{success:m})=>Z2(this.node,d,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:o?.tap===!1})}unmount(){}}const d0=new WeakMap,zu=new WeakMap,N9=n=>{const i=d0.get(n.target);i&&i(n)},M9=n=>{n.forEach(N9)};function x9({root:n,...i}){const l=n||document;zu.has(l)||zu.set(l,{});const o=zu.get(l),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(M9,{root:n,...i})),o[c]}function D9(n,i,l){const o=x9(i);return d0.set(n,l),o.observe(n),()=>{d0.delete(n),o.unobserve(n)}}const L9={some:0,all:1};class V9 extends Ca{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:i={}}=this.node.getProps(),{root:l,margin:o,amount:c="some",once:f}=i,d={root:l?l.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:L9[c]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:A,onViewportLeave:v}=this.node.getProps(),T=p?A:v;T&&T(g)};this.stopObserver=D9(this.node.current,d,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(w9(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function w9({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const I9={inView:{Feature:V9},tap:{Feature:R9},focus:{Feature:O9},hover:{Feature:b9}},j9={layout:{ProjectionNode:o4,MeasureLayout:S4}},U9={...s9,...I9,...C9,...j9},Zt=e9(U9,t9);function ir(){!B0.current&&H8();const[n]=h.useState(ko.current);return n}function _9({advisories:n,onJumpToParagraph:i,onOpenCode:l}){return n.length===0?E.jsxs("div",{className:"empty",children:[E.jsx("p",{children:"No se ha detectado ninguna de las trampas de mantenimiento conocidas."}),E.jsx("p",{className:"empty__hint",children:"Se comprueban patrones concretos y verificados (STOP RUN en subprogramas, UPDATE/DELETE sin WHERE, GO TO entre secciones, ficheros y cursores sin cerrar) — no es una auditoría exhaustiva del programa."})]}):E.jsxs("div",{className:"advisories",children:[E.jsxs("div",{className:"schema__fidelity schema__fidelity--partial",children:[n.length," ",n.length===1?"aviso":"avisos"," — trampas de mantenimiento ya verificadas contra el fuente, no huecos de fidelidad."]}),E.jsx("ul",{className:"adv-list",children:n.map((o,c)=>E.jsxs("li",{className:"adv-card",children:[E.jsxs("div",{className:"adv-card__head",children:[E.jsx("span",{className:"adv-card__title",children:o.title}),E.jsxs("div",{className:"adv-card__jumps",children:[o.paragraph&&E.jsx("button",{type:"button",className:"wt__para-chip",onClick:()=>i?.(o.paragraph),title:"Ver este párrafo en el diagrama de Flujo",children:o.paragraph}),o.line>0&&l&&E.jsxs("button",{type:"button",className:"wt__para-chip wt__para-chip--code",onClick:()=>l(o.line),title:"Ver esta línea en el código",children:[E.jsx(Ep,{size:12,weight:"bold"})," L",o.line]}),o.line>0&&!l&&!o.paragraph&&E.jsxs("span",{className:"wt__para-chip wt__para-chip--static",children:["L",o.line]})]})]}),E.jsx("p",{className:"adv-card__msg",children:o.message})]},c))})]})}const Xs={alphanumeric:{hue:"var(--t-alpha)",tag:"X"},numeric:{hue:"var(--t-num)",tag:"9"},"numeric-edited":{hue:"var(--t-edit)",tag:"ED"},"packed-decimal":{hue:"var(--t-packed)",tag:"C3"},binary:{hue:"var(--t-bin)",tag:"CB"},"float-single":{hue:"var(--t-bin)",tag:"F4"},"float-double":{hue:"var(--t-bin)",tag:"F8"},pointer:{hue:"var(--t-bin)",tag:"PTR"},index:{hue:"var(--t-bin)",tag:"IDX"},group:{hue:"var(--text-dim)",tag:"GRP"},"unresolved-copy":{hue:"var(--missing)",tag:"?"}};function Y0(n,i={}){return{"--sc":n,"--sf":`color-mix(in srgb, ${n} 18%, var(--bg-raised))`,...i}}function H9(n){if(!n)return;let i=0;const l=/9(?:\((\d+)\))?/g;let o;for(;(o=l.exec(n))!==null;)i+=o[1]?Number(o[1]):1;return i||void 0}function Z9(n){const i=n<=24?4:n<=80?8:n<=200?16:32,l=[];for(let o=0;o<=n;o+=i)l.push(o);return l[l.length-1]!==n&&l.push(n),l}function z9(n){const i=n.offset+Math.max(1,n.lengthInBytes)-1,l=n.type==="packed-decimal"||n.type==="binary"?H9(n.picture):void 0;return E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"bm-detail__name",children:n.name}),n.picture&&E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"PIC"})," ",E.jsx("span",{className:"v",children:n.picture})]}),n.usage&&E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"USAGE"})," ",E.jsx("span",{className:"v",children:n.usage})]}),E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"bytes"})," ",E.jsx("span",{className:"v",children:n.lengthInBytes})]}),E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"offset"})," ",E.jsx("span",{className:"v",children:n.offsetUnknown?"no verificable":`${n.offset}–${i}`})]}),n.dataSection&&E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"sección"})," ",E.jsx("span",{className:"v",children:n.dataSection})]}),n.conditionValues&&n.conditionValues.length>0&&E.jsxs("span",{children:[E.jsx("span",{className:"k",children:"88"})," ",E.jsx("span",{className:"v",children:n.conditionValues.map(o=>o.name).join(", ")})]}),l!==void 0&&n.type==="packed-decimal"&&E.jsxs("em",{children:[l," dígitos en ",n.lengthInBytes," bytes · en DISPLAY ocuparía ",l]}),n.type==="unresolved-copy"&&E.jsxs("em",{children:["copybook ",n.unresolvedCopyMember," ausente — estructura desconocida"]})]})}function P9(n){const i=[];for(const l of n.children)if(l.redefines)i.push({label:`REDEFINES ${l.redefines} — misma memoria`,redef:!0,children:l.children.length>0?l.children:[l]});else if(l.children.length>0)if(l.occurs){const o=Math.round(l.lengthInBytes/l.occurs);i.push({label:`${l.name} · OCCURS ×${l.occurs} — un elemento (${o}B), se repite`,redef:!1,occurs:l.occurs,children:l.children})}else i.push({label:`${l.name} — dentro`,redef:!1,children:l.children});return i}function z2({field:n,total:i,onActive:l,onPin:o,pinned:c}){const f=Xs[n.type],d=Math.max(n.lengthInBytes,0),g=["bm-seg",n.type==="unresolved-copy"?"bm-seg--gap":"",n.offsetUnknown?"bm-seg--unknown":"",c?"bm-seg--pinned":""].filter(Boolean).join(" ");return E.jsxs("div",{className:g,style:{left:`${n.offset/i*100}%`,width:`${Math.max(d,1)/i*100}%`,...Y0(f.hue)},tabIndex:0,role:"button","aria-pressed":c,"aria-label":`${n.name}, ${n.picture??"grupo"}, ${d} bytes`,onMouseEnter:()=>l(n),onFocus:()=>l(n),onClick:()=>o(n),onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),o(n))},children:[E.jsx("span",{className:"bm-seg__tag",children:f.tag}),E.jsx("span",{className:"bm-seg__name",children:n.name}),E.jsxs("span",{className:"bm-seg__meta",children:[n.picture??"grupo"," · ",d,"B",n.conditionValues&&n.conditionValues.length>0?" · 88":""]})]})}function B9({record:n,onHover:i,onPin:l,pinnedField:o}){const c=n.lengthInBytes;if(n.children.length===0||c<=0)return E.jsxs("div",{className:"bm-record",children:[E.jsx(P2,{record:n}),E.jsx("div",{className:"bm-track",style:{position:"relative"},children:E.jsx(z2,{field:n,total:Math.max(c,n.lengthInBytes,1),onActive:i,onPin:l,pinned:o===n})})]});const f=n.children.filter(p=>!p.redefines).sort((p,A)=>p.offset-A.offset),d=[];let m=0;for(const p of f)p.offset>m&&d.push({off:m,len:p.offset-m}),m=Math.max(m,p.offset+p.lengthInBytes);const g=P9(n);return E.jsxs("div",{className:"bm-record",children:[E.jsx(P2,{record:n}),E.jsxs("div",{className:"bm-viz",children:[E.jsx("div",{className:"bm-ruler",children:Z9(c).map(p=>E.jsx("span",{className:"bm-tick",style:{left:`${p/c*100}%`},children:p},p))}),E.jsxs("div",{className:"bm-track",children:[d.map((p,A)=>E.jsx("div",{className:"bm-pad",style:{left:`${p.off/c*100}%`,width:`${p.len/c*100}%`},title:`${p.len} byte(s) de relleno (alineación SYNC)`},`gap${A}`)),f.map((p,A)=>E.jsx(z2,{field:p,total:c,onActive:i,onPin:l,pinned:o===p},`${p.name}-${A}`))]}),g.map((p,A)=>E.jsxs("div",{className:`bm-subtrack${p.redef?" bm-subtrack--redef":""}`,children:[E.jsxs("div",{className:"bm-subtrack__label",children:[p.label,p.redef&&E.jsx("span",{className:"bm-chip bm-chip--redef",children:"REDEFINES"}),p.occurs&&E.jsxs("span",{className:"bm-chip bm-chip--occ",children:["×",p.occurs]})]}),p.children.map((v,T)=>{const C=Xs[v.type];return E.jsxs("div",{className:`bm-subseg${o===v?" bm-subseg--pinned":""}`,style:{left:`${v.offset/c*100}%`,width:`${Math.max(v.lengthInBytes,1)/c*100}%`,...p.redef?{}:Y0(C.hue)},tabIndex:0,role:"button","aria-pressed":o===v,"aria-label":`${v.name}, ${v.picture??"grupo"}, ${v.lengthInBytes} bytes`,onMouseEnter:()=>i(v),onFocus:()=>i(v),onClick:()=>l(v),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),l(v))},children:[E.jsx("b",{children:v.name}),E.jsxs("span",{children:[v.picture??"grupo"," · ",v.lengthInBytes,"B"]})]},`${v.name}-${T}`)})]},`st${A}`))]})]})}function P2({record:n}){return E.jsxs("div",{className:"bm-record__head",children:[E.jsx("span",{className:"bm-record__name",children:n.name}),E.jsxs("span",{className:"bm-record__sub",children:[String(n.level).padStart(2,"0"),n.dataSection?` · ${n.dataSection}`:""," · ",n.lengthInBytes," bytes"]})]})}const G9={read:{label:"R",cls:"bm-role--r",title:"Se lee"},write:{label:"W",cls:"bm-role--w",title:"Se escribe"},"read-write":{label:"RW",cls:"bm-role--rw",title:"Se lee y se escribe en la misma sentencia"},unclassified:{label:"?",cls:"bm-role--u",title:"El verbo no permite afirmar el rol"}};function F9({field:n,references:i,onJumpToParagraph:l,onOpenCode:o}){const c=n.name.toUpperCase(),f=i.fields.find(m=>m.name===c),d=[];if(f){const m=new Set;for(const g of[...f.writes,...f.reads,...f.unclassified].sort((p,A)=>p.line-A.line)){const p=`${g.line}|${g.verb}|${g.kind}`;m.has(p)||(m.add(p),d.push(g))}}return E.jsxs("div",{className:"bm-uses",children:[f?E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"bm-uses__head",children:[E.jsx("span",{className:"bm-uses__title",children:"Usos"}),E.jsxs("span",{className:"bm-uses__counts",children:[E.jsx("b",{children:f.reads.length})," lect · ",E.jsx("b",{children:f.writes.length})," escr",f.unclassified.length>0&&E.jsxs(E.Fragment,{children:[" ","· ",E.jsx("b",{children:f.unclassified.length})," sin clasif."]})]})]}),E.jsx("ul",{className:"bm-uses__list",children:d.map((m,g)=>{const p=G9[m.kind];return E.jsxs("li",{className:"bm-uses__row",children:[E.jsx("span",{className:`bm-role ${p.cls}`,title:p.title,children:p.label}),l&&!m.paragraphImplicit?E.jsx("button",{type:"button",className:"bm-uses__para bm-uses__para--link",onClick:()=>l(m.paragraph),title:"Enfocar este párrafo en el diagrama de Flujo",children:m.paragraph}):E.jsxs("span",{className:"bm-uses__para",children:[m.paragraph,m.paragraphImplicit?" (entrada)":""]}),o?E.jsxs("button",{type:"button",className:"bm-uses__line bm-uses__line--link",onClick:()=>o(m.line),title:"Ver esta línea en el código",children:["L",m.line]}):E.jsxs("span",{className:"bm-uses__line",children:["L",m.line]}),E.jsx("span",{className:"bm-uses__verb",children:m.verb}),m.via88&&E.jsxs("span",{className:"bm-uses__mark",title:`Referenciado por la condición ${m.via88}`,children:["vía ",m.via88]}),m.uncertain&&E.jsx("span",{className:"bm-uses__mark bm-uses__mark--warn",title:"Rol no seguro: argumento por referencia de una CALL, MOVE CORRESPONDING, homónimo del esquema o SQL dinámico",children:"~ incierto"}),E.jsx("span",{className:"bm-uses__snippet",title:m.snippet,children:m.snippet})]},g)})})]}):E.jsxs("div",{className:"bm-uses__none",children:["No se lee ni se escribe en la PROCEDURE DIVISION del fuente aportado",i.fragment?" (fuente parcial)":"","."]}),E.jsx(q9,{target:c,references:i,onJumpToParagraph:l,onOpenCode:o})]})}function $9({step:n,direction:i,onJumpToParagraph:l,onOpenCode:o}){const c=i==="upstream"?n.from:n.to;return E.jsxs("li",{className:"bm-trace__row",children:[n.paragraph&&l?E.jsx("button",{type:"button",className:"bm-trace__peer bm-uses__para--link",onClick:()=>l(n.paragraph),title:`Asignado en ${n.paragraph} — enfocar en Flujo`,children:c}):E.jsx("span",{className:"bm-trace__peer",children:c}),E.jsx("span",{className:"bm-trace__via",children:n.redefines?"solape REDEFINES":n.verb}),n.line>0&&(o?E.jsxs("button",{type:"button",className:"bm-uses__line bm-uses__line--link",onClick:()=>o(n.line),title:"Ver esta línea en el código",children:["L",n.line]}):E.jsxs("span",{className:"bm-uses__line",children:["L",n.line]})),n.uncertain&&!n.redefines&&E.jsx("span",{className:"bm-uses__mark bm-uses__mark--warn",title:"Flujo no seguro",children:"~"})]})}function B2({result:n,direction:i,label:l,Icon:o,onJumpToParagraph:c,onOpenCode:f}){const[d,m]=h.useState(!1);if(n.direct.length===0)return null;const g=i==="upstream"?" ← ":" → ",p=n.paths.some(A=>A.nodes.length>2);return E.jsxs("div",{className:"bm-trace__side",children:[E.jsxs("div",{className:"bm-trace__head",children:[E.jsx(o,{size:12,weight:"bold"}),E.jsx("span",{children:l}),E.jsx("b",{children:n.direct.length})]}),E.jsx("ul",{className:"bm-trace__list",children:n.direct.map((A,v)=>E.jsx($9,{step:A,direction:i,onJumpToParagraph:c,onOpenCode:f},v))}),p&&E.jsxs(E.Fragment,{children:[E.jsx("button",{type:"button",className:"bm-trace__toggle",onClick:()=>m(A=>!A),children:d?"ocultar cadena completa":"ver cadena completa"}),d&&E.jsxs("ul",{className:"bm-trace__paths",children:[n.paths.map((A,v)=>E.jsxs("li",{className:"bm-trace__path",children:[E.jsx("span",{className:"bm-trace__chain",children:A.nodes.join(g)}),A.uncertain&&E.jsx("span",{className:"bm-trace__flag bm-trace__flag--warn",children:"~"}),A.cyclic&&E.jsx("span",{className:"bm-trace__flag",children:"ciclo"}),A.truncated&&E.jsx("span",{className:"bm-trace__flag",children:"…"})]},v)),n.truncated&&E.jsx("li",{className:"bm-trace__path bm-trace__path--more",children:"… caminos recortados"})]})]})]})}function q9({target:n,references:i,onJumpToParagraph:l,onOpenCode:o}){const c=h.useMemo(()=>mm(i,n,"upstream"),[i,n]),f=h.useMemo(()=>mm(i,n,"downstream"),[i,n]);return c.direct.length===0&&f.direct.length===0?null:E.jsxs("div",{className:"bm-trace",children:[E.jsx("div",{className:"bm-trace__legend",title:"Cada arista es un flujo posible; no se tiene en cuenta el orden de ejecución",children:"Trazabilidad · puede venir de / puede ir a"}),E.jsx(B2,{result:c,direction:"upstream",label:"De dónde viene",Icon:Oy,onJumpToParagraph:l,onOpenCode:o}),E.jsx(B2,{result:f,direction:"downstream",label:"A dónde va",Icon:Ry,onJumpToParagraph:l,onOpenCode:o})]})}function k9({field:n,pinned:i,onUnpin:l,references:o,onJumpToParagraph:c,onOpenCode:f}){return E.jsx("div",{className:`bm-detail${n?"":" bm-detail--empty"}${i?" bm-detail--pinned":""}`,"aria-live":"polite",children:n?E.jsxs(E.Fragment,{children:[i&&E.jsxs("span",{className:"bm-detail__pin",title:"Campo fijado",children:[E.jsx(Uy,{size:12,weight:"fill"})," fijado"]}),z9(n),i&&E.jsx("button",{type:"button",className:"bm-detail__unpin",onClick:l,title:"Soltar (Esc)","aria-label":"Soltar el campo fijado",children:E.jsx(_p,{size:13,weight:"bold"})}),i&&o&&n.type!=="unresolved-copy"&&E.jsx(F9,{field:n,references:o,onJumpToParagraph:c,onOpenCode:f})]}):"Pasa el ratón (o tabula) por un campo para ver su ficha · clic para fijarla."})}function Y9({data:n,references:i,onJumpToParagraph:l,onOpenCode:o}){const[c,f]=h.useState(),[d,m]=h.useState(),g=d??c,p=h.useCallback(T=>f(T),[]),A=h.useCallback(T=>m(C=>C===T?void 0:T),[]);if(h.useEffect(()=>{if(!d)return;const T=C=>{C.key==="Escape"&&m(void 0)};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[d]),n.records.length===0)return E.jsx("div",{className:"empty",children:E.jsx("p",{children:"No se ha encontrado ninguna definición de datos en el fuente."})});const v=n.missingCopybooks.length===0;return E.jsxs("div",{className:"bytemap",children:[E.jsx("div",{className:`schema__fidelity schema__fidelity--${v?"verified":"partial"}`,children:v?"Verificado por parser — el ancho de cada campo son sus bytes reales; los offsets salen del fuente, no de una estimación.":"Parcialmente verificado — falta parte del esquema; los huecos se marcan y no se dibuja lo que no se sabe."}),!v&&E.jsxs("div",{className:"schema__missing",children:["Faltan copybooks: ",E.jsx("strong",{children:n.missingCopybooks.join(", ")})," — arrastra los members (.cpy) para completar el mapa."]}),E.jsxs("div",{className:"bytemap__legend","aria-label":"Leyenda de tipos",children:[[["alphanumeric","Alfanum. X"],["numeric","Num. 9"],["packed-decimal","Empaq. C3"],["numeric-edited","Editado ED"],["binary","Binario CB"]].map(([T,C])=>E.jsxs("span",{className:"bm-lg",children:[E.jsx("span",{className:"bm-sw",style:Y0(Xs[T].hue,{background:`color-mix(in srgb, ${Xs[T].hue} 20%, var(--bg-raised))`,borderColor:`color-mix(in srgb, ${Xs[T].hue} 45%, var(--border))`})}),C]},T)),E.jsxs("span",{className:"bm-lg",children:[E.jsx("span",{className:"bm-sw bm-sw--redef"})," REDEFINES"]}),E.jsxs("span",{className:"bm-lg",children:[E.jsx("span",{className:"bm-sw bm-sw--gap"})," hueco"]})]}),n.records.map((T,C)=>E.jsx(B9,{record:T,onHover:p,onPin:A,pinnedField:d},`${T.name}-${C}`)),E.jsx(k9,{field:g,pinned:d!==void 0,onUnpin:()=>m(void 0),references:i,onJumpToParagraph:l,onOpenCode:o})]})}function T4({field:n,depth:i}){const l=n.type==="unresolved-copy";return E.jsxs(h.Fragment,{children:[E.jsxs("tr",{className:l?"row--gap":n.offsetUnknown?"row--unknown":"",children:[E.jsxs("td",{className:"cell-name",style:{paddingLeft:10+i*18},children:[l?`COPY ${n.unresolvedCopyMember}`:n.name,n.dataSection&&E.jsx("span",{className:"pill pill--section",children:n.dataSection}),n.value!==void 0&&E.jsxs("span",{className:"pill",children:["= ",n.value]}),n.redefines&&E.jsxs("span",{className:"pill pill--redefines",children:["REDEFINES ",n.redefines]}),n.occurs!==void 0&&E.jsxs("span",{className:"pill",children:["×",n.occurs]}),n.occursDepending&&E.jsxs("span",{className:"pill pill--warn",children:["×",n.occursDepending.min,"..",n.occursDepending.max??"?"," según"," ",n.occursDepending.dependingOn]}),n.synchronized&&E.jsx("span",{className:"pill pill--warn",children:"alineado"})]}),E.jsx("td",{children:l?"—":String(n.level).padStart(2,"0")}),E.jsxs("td",{children:[l?"no disponible":n.type==="group"?"grupo":n.picture??n.type,n.type==="numeric-edited"&&E.jsx("span",{className:"pill",children:"editado"})]}),E.jsx("td",{children:n.usage??""}),E.jsx("td",{className:"cell-num",children:l?"?":n.lengthInBytes}),E.jsx("td",{className:"cell-num",children:l||n.offsetUnknown?"?":n.offset})]}),(n.conditionValues??[]).map(o=>E.jsxs("tr",{className:"row--cond",children:[E.jsxs("td",{className:"cell-name",style:{paddingLeft:10+(i+1)*18},children:["88 ",o.name]}),E.jsx("td",{children:"88"}),E.jsxs("td",{colSpan:4,children:["= ",o.values.join(", ")]})]},o.name)),n.children.map((o,c)=>E.jsx(T4,{field:o,depth:i+1},`${o.name}-${c}`)),(n.renamesGroups??[]).map(o=>E.jsxs("tr",{className:"row--cond",children:[E.jsxs("td",{className:"cell-name",style:{paddingLeft:10+(i+1)*18},children:["66 ",o.name,E.jsxs("span",{className:"pill pill--redefines",children:["RENAMES ",o.from,o.thru?` THRU ${o.thru}`:""]})]}),E.jsx("td",{children:"66"}),E.jsx("td",{colSpan:2,children:"misma memoria"}),E.jsx("td",{className:"cell-num",children:o.lengthInBytes??"?"}),E.jsx("td",{className:"cell-num",children:o.offset??"?"})]},o.name))]})}function X9({data:n}){if(n.records.length===0)return E.jsx("div",{className:"empty",children:E.jsx("p",{children:"No se ha encontrado ninguna definición de datos en el fuente."})});const i=n.missingCopybooks.length===0;return E.jsxs("div",{className:"schema",children:[E.jsx("div",{className:`schema__fidelity schema__fidelity--${i?"verified":"partial"}`,children:i?"Verificado por parser — cada byte y cada offset salen del fuente, no de una estimación.":"Parcialmente verificado — falta parte del esquema (ver aviso abajo)."}),!i&&E.jsxs("div",{className:"schema__missing",children:["Faltan copybooks: ",E.jsx("strong",{children:n.missingCopybooks.join(", ")})," — arrastra los members (.cpy) para completar el esquema. Los huecos y los offsets posteriores se marcan con «?»: no se inventa nada."]}),E.jsxs("table",{children:[E.jsx("thead",{children:E.jsxs("tr",{children:[E.jsx("th",{children:"Campo"}),E.jsx("th",{children:"Nivel"}),E.jsx("th",{children:"PIC / tipo"}),E.jsx("th",{children:"USAGE"}),E.jsx("th",{children:"Bytes"}),E.jsx("th",{children:"Offset"})]})}),E.jsx("tbody",{children:n.records.map((l,o)=>E.jsx(T4,{field:l,depth:0},`${l.name}-${o}`))})]})]})}function K9({data:n,references:i,onJumpToParagraph:l,onOpenCode:o}){const[c,f]=h.useState("map");return E.jsxs("div",{className:"datapanel",children:[E.jsxs("div",{className:"datapanel__toggle",role:"group","aria-label":"Vista de datos",children:[E.jsx("button",{className:c==="map"?"seg-btn seg-btn--on":"seg-btn","aria-pressed":c==="map",onClick:()=>f("map"),children:"Mapa de bytes"}),E.jsx("button",{className:c==="table"?"seg-btn seg-btn--on":"seg-btn","aria-pressed":c==="table",onClick:()=>f("table"),children:"Tabla"})]}),c==="map"?E.jsx(Y9,{data:n,references:i,onJumpToParagraph:l,onOpenCode:o}):E.jsx(X9,{data:n})]})}const Q9=` *----------------------------------------------------------------*
|
|
106
|
+
* CTAMOV01 *
|
|
107
|
+
* Batch de liquidacion de intereses de movimientos de cuenta. *
|
|
108
|
+
* Lee el fichero de movimientos, valida cada uno con VALIDA01, *
|
|
109
|
+
* calcula el interes con la tarifa leida de DB2, formatea la *
|
|
110
|
+
* fecha con FECHA01 y escribe una linea de detalle en el informe.*
|
|
111
|
+
* *
|
|
112
|
+
* Programa principal de la cadena de ejemplo de KnowFlow. *
|
|
113
|
+
* Todo es sintetico: no reproduce codigo de ningun cliente, *
|
|
114
|
+
* solo patrones tipicos de un batch de banca (secuencial + *
|
|
115
|
+
* cursor DB2 + subprogramas + copybooks). *
|
|
116
|
+
*----------------------------------------------------------------*
|
|
117
|
+
IDENTIFICATION DIVISION.
|
|
118
|
+
PROGRAM-ID. CTAMOV01.
|
|
119
|
+
ENVIRONMENT DIVISION.
|
|
120
|
+
INPUT-OUTPUT SECTION.
|
|
121
|
+
FILE-CONTROL.
|
|
122
|
+
SELECT MOV-FILE ASSIGN TO MOVIN
|
|
123
|
+
ORGANIZATION IS SEQUENTIAL
|
|
124
|
+
FILE STATUS IS WS-FS-MOV.
|
|
125
|
+
SELECT RPT-FILE ASSIGN TO RPTOUT
|
|
126
|
+
ORGANIZATION IS SEQUENTIAL.
|
|
127
|
+
DATA DIVISION.
|
|
128
|
+
FILE SECTION.
|
|
129
|
+
FD MOV-FILE.
|
|
130
|
+
COPY CTAMOVFD.
|
|
131
|
+
FD RPT-FILE.
|
|
132
|
+
01 RPT-REGISTRO PIC X(132).
|
|
133
|
+
WORKING-STORAGE SECTION.
|
|
134
|
+
EXEC SQL INCLUDE SQLCA END-EXEC.
|
|
135
|
+
EXEC SQL
|
|
136
|
+
DECLARE CUR-TARIFA CURSOR FOR
|
|
137
|
+
SELECT TAR_TASA
|
|
138
|
+
FROM TARIFAS
|
|
139
|
+
WHERE TAR_DIVISA = :WS-DIVISA
|
|
140
|
+
AND TAR_TIPO = :WS-MOV-TIPO
|
|
141
|
+
END-EXEC.
|
|
142
|
+
01 WS-FS-MOV PIC X(02).
|
|
143
|
+
88 WS-FIN-MOV VALUE '10'.
|
|
144
|
+
88 WS-MOV-OK VALUE '00'.
|
|
145
|
+
01 WS-CONTADORES.
|
|
146
|
+
05 WS-LEIDOS PIC 9(07) COMP-3 VALUE 0.
|
|
147
|
+
05 WS-VALIDOS PIC 9(07) COMP-3 VALUE 0.
|
|
148
|
+
05 WS-RECHAZADOS PIC 9(07) COMP-3 VALUE 0.
|
|
149
|
+
01 WS-ACUMULADORES.
|
|
150
|
+
05 WS-ACU OCCURS 4 TIMES INDEXED BY WS-IX.
|
|
151
|
+
10 WS-ACU-TIPO PIC X(01).
|
|
152
|
+
10 WS-ACU-IMPORTE PIC S9(13)V99 COMP-3.
|
|
153
|
+
01 WS-CALCULO.
|
|
154
|
+
05 WS-BRUTO PIC S9(13)V99 COMP-3.
|
|
155
|
+
05 WS-TASA PIC S9(01)V9(05) COMP-3.
|
|
156
|
+
05 WS-INTERES PIC S9(13)V99 COMP-3.
|
|
157
|
+
05 WS-TOTAL PIC S9(13)V99 COMP-3.
|
|
158
|
+
01 WS-TOTAL-ED PIC -Z(12)9.99.
|
|
159
|
+
01 WS-DIVISA PIC X(03).
|
|
160
|
+
01 WS-MOV-TIPO PIC X(01).
|
|
161
|
+
01 WS-FECHA-JUL.
|
|
162
|
+
05 WS-FJ-ANIO PIC 9(04).
|
|
163
|
+
05 WS-FJ-DIA PIC 9(03).
|
|
164
|
+
01 WS-FECHA-GREG.
|
|
165
|
+
05 WS-FG-ANIO PIC 9(04).
|
|
166
|
+
05 WS-FG-MES PIC 9(02).
|
|
167
|
+
05 WS-FG-DIA PIC 9(02).
|
|
168
|
+
01 WS-FECHA-TXT PIC X(10).
|
|
169
|
+
01 WS-VALIDACION.
|
|
170
|
+
COPY ESTADOS.
|
|
171
|
+
PROCEDURE DIVISION.
|
|
172
|
+
*================================================================*
|
|
173
|
+
INICIO SECTION.
|
|
174
|
+
*================================================================*
|
|
175
|
+
INI-10.
|
|
176
|
+
OPEN INPUT MOV-FILE
|
|
177
|
+
OPEN OUTPUT RPT-FILE
|
|
178
|
+
MOVE 'EUR' TO WS-DIVISA
|
|
179
|
+
EXEC SQL OPEN CUR-TARIFA END-EXEC
|
|
180
|
+
MOVE SPACES TO RPT-REGISTRO
|
|
181
|
+
STRING 'LIQUIDACION DE INTERESES - DIVISA ' WS-DIVISA
|
|
182
|
+
DELIMITED BY SIZE INTO RPT-REGISTRO
|
|
183
|
+
WRITE RPT-REGISTRO
|
|
184
|
+
READ MOV-FILE.
|
|
185
|
+
*================================================================*
|
|
186
|
+
PROCESO SECTION.
|
|
187
|
+
*================================================================*
|
|
188
|
+
PRO-10.
|
|
189
|
+
PERFORM UNTIL WS-FIN-MOV
|
|
190
|
+
ADD 1 TO WS-LEIDOS
|
|
191
|
+
IF NOT WS-MOV-OK AND NOT WS-FIN-MOV
|
|
192
|
+
GO TO ABORTAR
|
|
193
|
+
END-IF
|
|
194
|
+
MOVE MOV-TIPO TO WS-MOV-TIPO
|
|
195
|
+
CALL 'VALIDA01' USING MOV-REGISTRO WS-VALIDACION
|
|
196
|
+
IF ESTADO-VALIDO
|
|
197
|
+
PERFORM CALCULAR-INTERES
|
|
198
|
+
PERFORM ESCRIBIR-DETALLE
|
|
199
|
+
PERFORM ACUMULAR
|
|
200
|
+
ADD 1 TO WS-VALIDOS
|
|
201
|
+
ELSE
|
|
202
|
+
ADD 1 TO WS-RECHAZADOS
|
|
203
|
+
END-IF
|
|
204
|
+
READ MOV-FILE
|
|
205
|
+
END-PERFORM.
|
|
206
|
+
|
|
207
|
+
CALCULAR-INTERES.
|
|
208
|
+
MOVE MOV-IMPORTE TO WS-BRUTO
|
|
209
|
+
MOVE ZEROES TO WS-TASA
|
|
210
|
+
EXEC SQL
|
|
211
|
+
FETCH CUR-TARIFA INTO :WS-TASA
|
|
212
|
+
END-EXEC
|
|
213
|
+
COMPUTE WS-INTERES ROUNDED = WS-BRUTO * WS-TASA
|
|
214
|
+
ADD WS-BRUTO WS-INTERES GIVING WS-TOTAL.
|
|
215
|
+
|
|
216
|
+
ESCRIBIR-DETALLE.
|
|
217
|
+
MOVE MOV-FECHA-JUL TO WS-FECHA-JUL
|
|
218
|
+
CALL 'FECHA01' USING WS-FECHA-JUL WS-FECHA-GREG
|
|
219
|
+
STRING WS-FG-ANIO '-' WS-FG-MES '-' WS-FG-DIA
|
|
220
|
+
DELIMITED BY SIZE INTO WS-FECHA-TXT
|
|
221
|
+
MOVE WS-TOTAL TO WS-TOTAL-ED
|
|
222
|
+
MOVE SPACES TO RPT-REGISTRO
|
|
223
|
+
STRING MOV-CUENTA ' ' WS-FECHA-TXT ' ' WS-TOTAL-ED
|
|
224
|
+
DELIMITED BY SIZE INTO RPT-REGISTRO
|
|
225
|
+
WRITE RPT-REGISTRO.
|
|
226
|
+
|
|
227
|
+
ACUMULAR.
|
|
228
|
+
SET WS-IX TO 1
|
|
229
|
+
SEARCH WS-ACU
|
|
230
|
+
AT END
|
|
231
|
+
CONTINUE
|
|
232
|
+
WHEN WS-ACU-TIPO(WS-IX) = MOV-TIPO
|
|
233
|
+
ADD WS-TOTAL TO WS-ACU-IMPORTE(WS-IX)
|
|
234
|
+
END-SEARCH.
|
|
235
|
+
*================================================================*
|
|
236
|
+
FIN SECTION.
|
|
237
|
+
*================================================================*
|
|
238
|
+
FIN-10.
|
|
239
|
+
EXEC SQL CLOSE CUR-TARIFA END-EXEC
|
|
240
|
+
CLOSE MOV-FILE RPT-FILE
|
|
241
|
+
DISPLAY 'CTAMOV01 OK. LEIDOS=' WS-LEIDOS
|
|
242
|
+
' VAL=' WS-VALIDOS ' RECH=' WS-RECHAZADOS
|
|
243
|
+
STOP RUN.
|
|
244
|
+
|
|
245
|
+
ABORTAR.
|
|
246
|
+
DISPLAY 'CTAMOV01: ERROR E/S MOVIMIENTOS FS=' WS-FS-MOV
|
|
247
|
+
CLOSE MOV-FILE RPT-FILE
|
|
248
|
+
STOP RUN.
|
|
249
|
+
`,W9=` *----------------------------------------------------------------*
|
|
250
|
+
* CTAMOVFD.CPY *
|
|
251
|
+
* Registro del fichero secuencial de movimientos de cuenta. *
|
|
252
|
+
* Patron tipico de banca: clave de cuenta partida en oficina + *
|
|
253
|
+
* numero (via REDEFINES), fecha juliana, importe empaquetado. *
|
|
254
|
+
* *
|
|
255
|
+
* Ejemplo sintetico de KnowFlow. No es codigo de ningun cliente. *
|
|
256
|
+
*----------------------------------------------------------------*
|
|
257
|
+
01 MOV-REGISTRO.
|
|
258
|
+
05 MOV-CUENTA PIC X(12).
|
|
259
|
+
05 MOV-CUENTA-DESGLOSE REDEFINES MOV-CUENTA.
|
|
260
|
+
10 MOV-CTA-OFICINA PIC X(04).
|
|
261
|
+
10 MOV-CTA-NUMERO PIC X(08).
|
|
262
|
+
05 MOV-FECHA-JUL.
|
|
263
|
+
10 MOV-FJ-ANIO PIC 9(04).
|
|
264
|
+
10 MOV-FJ-DIA PIC 9(03).
|
|
265
|
+
05 MOV-TIPO PIC X(01).
|
|
266
|
+
05 MOV-IMPORTE PIC S9(11)V99 COMP-3.
|
|
267
|
+
05 MOV-DIVISA PIC X(03).
|
|
268
|
+
05 FILLER PIC X(20).
|
|
269
|
+
`,J9=` *----------------------------------------------------------------*
|
|
270
|
+
* ESTADOS.CPY *
|
|
271
|
+
* Codigo de estado de un movimiento y sus nombres de condicion. *
|
|
272
|
+
* Copybook FRAGMENTO (empieza en nivel 05): se COPIA dentro de *
|
|
273
|
+
* un grupo. Compartido por CTAMOV01 y VALIDA01, para que el *
|
|
274
|
+
* mismo juego de niveles 88 signifique lo mismo en los dos. *
|
|
275
|
+
* *
|
|
276
|
+
* Ejemplo sintetico de KnowFlow. No es codigo de ningun cliente. *
|
|
277
|
+
*----------------------------------------------------------------*
|
|
278
|
+
05 MOV-ESTADO PIC X(01).
|
|
279
|
+
88 ESTADO-VALIDO VALUE 'V'.
|
|
280
|
+
88 ESTADO-RECHAZADO VALUE 'R'.
|
|
281
|
+
88 ESTADO-PENDIENTE VALUE 'P'.
|
|
282
|
+
88 ESTADO-CONOCIDO VALUE 'V' 'R' 'P'.
|
|
283
|
+
`,eT=` *----------------------------------------------------------------*
|
|
284
|
+
* FECHA01 *
|
|
285
|
+
* Utilidad: convierte una fecha juliana AAAA/DDD a Gregoriana *
|
|
286
|
+
* AAAA-MM-DD. Subprograma sin E/S: solo aritmetica sobre los *
|
|
287
|
+
* campos que recibe por LINKAGE. Tercer eslabon de la cadena *
|
|
288
|
+
* CTAMOV01 -> VALIDA01 / FECHA01. *
|
|
289
|
+
* *
|
|
290
|
+
* Ejemplo sintetico de KnowFlow. No es codigo de ningun cliente. *
|
|
291
|
+
*----------------------------------------------------------------*
|
|
292
|
+
IDENTIFICATION DIVISION.
|
|
293
|
+
PROGRAM-ID. FECHA01.
|
|
294
|
+
ENVIRONMENT DIVISION.
|
|
295
|
+
DATA DIVISION.
|
|
296
|
+
WORKING-STORAGE SECTION.
|
|
297
|
+
01 WS-DIAS-ACUM.
|
|
298
|
+
05 FILLER PIC 9(03) VALUE 000.
|
|
299
|
+
05 FILLER PIC 9(03) VALUE 031.
|
|
300
|
+
05 FILLER PIC 9(03) VALUE 059.
|
|
301
|
+
05 FILLER PIC 9(03) VALUE 090.
|
|
302
|
+
05 FILLER PIC 9(03) VALUE 120.
|
|
303
|
+
05 FILLER PIC 9(03) VALUE 151.
|
|
304
|
+
05 FILLER PIC 9(03) VALUE 181.
|
|
305
|
+
05 FILLER PIC 9(03) VALUE 212.
|
|
306
|
+
05 FILLER PIC 9(03) VALUE 243.
|
|
307
|
+
05 FILLER PIC 9(03) VALUE 273.
|
|
308
|
+
05 FILLER PIC 9(03) VALUE 304.
|
|
309
|
+
05 FILLER PIC 9(03) VALUE 334.
|
|
310
|
+
01 WS-DIAS-TAB REDEFINES WS-DIAS-ACUM.
|
|
311
|
+
05 WS-DIAS-MES PIC 9(03) OCCURS 12 TIMES INDEXED BY WS-M.
|
|
312
|
+
01 WS-DIA-RESTANTE PIC 9(03).
|
|
313
|
+
01 WS-BISIESTO PIC 9(01).
|
|
314
|
+
88 ES-BISIESTO VALUE 1.
|
|
315
|
+
LINKAGE SECTION.
|
|
316
|
+
01 LK-FECHA-JUL.
|
|
317
|
+
05 LK-JUL-ANIO PIC 9(04).
|
|
318
|
+
05 LK-JUL-DIA PIC 9(03).
|
|
319
|
+
01 LK-FECHA-GREG.
|
|
320
|
+
05 LK-GREG-ANIO PIC 9(04).
|
|
321
|
+
05 LK-GREG-MES PIC 9(02).
|
|
322
|
+
05 LK-GREG-DIA PIC 9(02).
|
|
323
|
+
PROCEDURE DIVISION USING LK-FECHA-JUL LK-FECHA-GREG.
|
|
324
|
+
CONVERTIR.
|
|
325
|
+
MOVE LK-JUL-ANIO TO LK-GREG-ANIO
|
|
326
|
+
MOVE LK-JUL-DIA TO WS-DIA-RESTANTE
|
|
327
|
+
PERFORM DETERMINAR-BISIESTO
|
|
328
|
+
MOVE 12 TO LK-GREG-MES
|
|
329
|
+
PERFORM VARYING WS-M FROM 12 BY -1 UNTIL WS-M < 1
|
|
330
|
+
IF LK-JUL-DIA > WS-DIAS-MES(WS-M)
|
|
331
|
+
MOVE WS-M TO LK-GREG-MES
|
|
332
|
+
COMPUTE WS-DIA-RESTANTE =
|
|
333
|
+
LK-JUL-DIA - WS-DIAS-MES(WS-M)
|
|
334
|
+
MOVE 1 TO WS-M
|
|
335
|
+
END-IF
|
|
336
|
+
END-PERFORM
|
|
337
|
+
MOVE WS-DIA-RESTANTE TO LK-GREG-DIA
|
|
338
|
+
GOBACK.
|
|
339
|
+
DETERMINAR-BISIESTO.
|
|
340
|
+
MOVE 0 TO WS-BISIESTO
|
|
341
|
+
IF FUNCTION MOD (LK-JUL-ANIO 4) = 0
|
|
342
|
+
MOVE 1 TO WS-BISIESTO
|
|
343
|
+
END-IF.
|
|
344
|
+
`,tT=` *----------------------------------------------------------------*
|
|
345
|
+
* SQLCA.CPY *
|
|
346
|
+
* Area de comunicacion de SQL (DB2). En un entorno real la *
|
|
347
|
+
* aporta el precompilador; aqui se incluye una version minima *
|
|
348
|
+
* para que el ejemplo sea autocontenido y no deje "copybook *
|
|
349
|
+
* ausente" en la demo. *
|
|
350
|
+
*----------------------------------------------------------------*
|
|
351
|
+
01 SQLCA.
|
|
352
|
+
05 SQLCAID PIC X(08).
|
|
353
|
+
05 SQLCABC PIC S9(09) COMP-5.
|
|
354
|
+
05 SQLCODE PIC S9(09) COMP-5.
|
|
355
|
+
05 SQLERRM.
|
|
356
|
+
49 SQLERRML PIC S9(04) COMP-5.
|
|
357
|
+
49 SQLERRMC PIC X(70).
|
|
358
|
+
05 SQLERRP PIC X(08).
|
|
359
|
+
05 SQLERRD OCCURS 6 TIMES PIC S9(09) COMP-5.
|
|
360
|
+
05 SQLWARN.
|
|
361
|
+
10 SQLWARN0 PIC X(01).
|
|
362
|
+
10 SQLWARN1 PIC X(01).
|
|
363
|
+
10 SQLWARN2 PIC X(01).
|
|
364
|
+
10 SQLWARN3 PIC X(01).
|
|
365
|
+
10 SQLWARN4 PIC X(01).
|
|
366
|
+
10 SQLWARN5 PIC X(01).
|
|
367
|
+
10 SQLWARN6 PIC X(01).
|
|
368
|
+
10 SQLWARN7 PIC X(01).
|
|
369
|
+
05 SQLSTATE PIC X(05).
|
|
370
|
+
`,nT=` *----------------------------------------------------------------*
|
|
371
|
+
* VALIDA01 *
|
|
372
|
+
* Subprograma de validacion de un movimiento. Recibe el registro *
|
|
373
|
+
* y devuelve el estado ('V' valido / 'R' rechazado). Segundo *
|
|
374
|
+
* eslabon de la cadena, invocado por CTAMOV01 en cada registro. *
|
|
375
|
+
* *
|
|
376
|
+
* OJO (esto lo marca KnowFlow en "Avisos"): el parrafo de *
|
|
377
|
+
* rechazo hace STOP RUN. Como este es un SUBprograma (tiene *
|
|
378
|
+
* LINKAGE SECTION, solo se llega por CALL), STOP RUN mata el job *
|
|
379
|
+
* ENTERO, no solo este modulo. Deberia ser GOBACK. *
|
|
380
|
+
* *
|
|
381
|
+
* Ejemplo sintetico de KnowFlow. No es codigo de ningun cliente. *
|
|
382
|
+
*----------------------------------------------------------------*
|
|
383
|
+
IDENTIFICATION DIVISION.
|
|
384
|
+
PROGRAM-ID. VALIDA01.
|
|
385
|
+
ENVIRONMENT DIVISION.
|
|
386
|
+
DATA DIVISION.
|
|
387
|
+
WORKING-STORAGE SECTION.
|
|
388
|
+
01 WS-LIMITE-IMPORTE PIC S9(11)V99 COMP-3 VALUE 5000000.00.
|
|
389
|
+
LINKAGE SECTION.
|
|
390
|
+
01 LK-MOV-REGISTRO.
|
|
391
|
+
05 LK-MOV-CUENTA PIC X(12).
|
|
392
|
+
05 FILLER PIC X(07).
|
|
393
|
+
05 LK-MOV-TIPO PIC X(01).
|
|
394
|
+
05 LK-MOV-IMPORTE PIC S9(11)V99 COMP-3.
|
|
395
|
+
01 LK-ESTADO.
|
|
396
|
+
COPY ESTADOS.
|
|
397
|
+
PROCEDURE DIVISION USING LK-MOV-REGISTRO LK-ESTADO.
|
|
398
|
+
VALIDAR.
|
|
399
|
+
SET ESTADO-VALIDO TO TRUE
|
|
400
|
+
EVALUATE TRUE
|
|
401
|
+
WHEN LK-MOV-IMPORTE > WS-LIMITE-IMPORTE
|
|
402
|
+
PERFORM RECHAZAR
|
|
403
|
+
WHEN LK-MOV-TIPO NOT = 'A' AND LK-MOV-TIPO NOT = 'C'
|
|
404
|
+
AND LK-MOV-TIPO NOT = 'T'
|
|
405
|
+
PERFORM RECHAZAR
|
|
406
|
+
END-EVALUATE
|
|
407
|
+
GOBACK.
|
|
408
|
+
RECHAZAR.
|
|
409
|
+
SET ESTADO-RECHAZADO TO TRUE
|
|
410
|
+
DISPLAY 'VALIDA01: MOVIMIENTO RECHAZADO CTA=' LK-MOV-CUENTA
|
|
411
|
+
STOP RUN.
|
|
412
|
+
`,Pu={source:Q9,copybooks:{CTAMOVFD:W9,ESTADOS:J9,SQLCA:tT},others:{"valida01.cbl":nT,"fecha01.cbl":eT}},X0=h.createContext(void 0),G2="knowflow.learnMode";function aT({children:n}){const[i,l]=h.useState(),[o,c]=h.useState(()=>{const g=localStorage.getItem(G2);return g===null?!0:g==="1"}),f=ir(),d=g=>{c(g),localStorage.setItem(G2,g?"1":"0")};h.useEffect(()=>{const g=p=>{p.key==="Escape"&&l(void 0)};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[]);const m=i?YE[i]:void 0;return E.jsxs(X0.Provider,{value:{openTerm:l,learn:o,setLearn:d},children:[n,m&&E.jsx(Zt.div,{className:"glo-scrim",initial:{opacity:0},animate:{opacity:1},transition:{duration:f?0:.18},onClick:()=>l(void 0)},"scrim"),m&&E.jsxs(Zt.aside,{className:"glo-drawer",role:"dialog","aria-modal":"true","aria-label":`Ficha del término ${m.term}`,initial:f?!1:{x:"100%",opacity:.3},animate:{x:0,opacity:1},transition:f?{duration:0}:{type:"spring",stiffness:320,damping:32},children:[E.jsx("button",{type:"button",className:"glo-drawer__close",onClick:()=>l(void 0),"aria-label":"Cerrar",children:"×"}),E.jsx("div",{className:"glo-drawer__eyebrow",children:"Glosario COBOL"}),E.jsx("h3",{className:"glo-drawer__term",children:m.term}),E.jsx("div",{className:"glo-drawer__sub",children:m.sub}),E.jsx("h4",{children:"Qué es"}),E.jsx("p",{children:m.what}),E.jsx("h4",{children:"Por qué existe"}),E.jsx("p",{children:m.why}),E.jsx("h4",{children:"Ejemplo"}),E.jsx("pre",{className:"glo-drawer__ex",children:m.example}),m.gotcha&&E.jsxs(E.Fragment,{children:[E.jsx("h4",{children:"Ojo si lo mantienes"}),E.jsx("div",{className:"glo-drawer__gotcha",children:m.gotcha})]})]},`drawer-${m.id}`)]})}function iT(){const n=h.useContext(X0);if(!n)throw new Error("useGlossary debe llamarse dentro de <GlossaryProvider>");return n}function sT({entry:n,text:i}){const{openTerm:l,learn:o}=iT();return E.jsx("button",{type:"button",className:o?"term term--learn":"term",onClick:()=>l(n.id),title:n.short,children:i})}function F2({text:n}){if(!h.useContext(X0))return E.jsx(E.Fragment,{children:n});const l=XE(n);return E.jsx(E.Fragment,{children:l.map((o,c)=>o.term?E.jsx(sT,{entry:o.term,text:o.text},c):E.jsx("span",{children:o.text},c))})}const nt={kind:"knowflow.providerKind",key:"knowflow.apiKey",model:"knowflow.model",corpKey:"knowflow.corp.apiKey",corpModel:"knowflow.corp.model",corpEndpoint:"knowflow.corp.endpoint",corpAuthName:"knowflow.corp.authName",profiles:"knowflow.connProfiles"};function lT(){try{const n=localStorage.getItem(nt.profiles),i=n?JSON.parse(n):[];return Array.isArray(i)?i:[]}catch{return[]}}function $2({label:n,value:i,onChange:l,placeholder:o}){const[c,f]=h.useState(!1);return E.jsxs("label",{children:[n,E.jsxs("span",{className:"secret",children:[E.jsx("input",{type:c?"text":"password",value:i,onChange:d=>l(d.target.value),placeholder:o,autoComplete:"off"}),E.jsx("button",{type:"button",className:"secret__toggle",onClick:()=>f(d=>!d),"aria-label":c?"Ocultar clave":"Mostrar clave",title:c?"Ocultar":"Mostrar",children:c?E.jsx(Dy,{size:15}):E.jsx(xy,{size:15})})]})]})}function oT({reduce:n}){const i=n?void 0:"sk-shimmer";return E.jsxs("div",{className:"dossier dossier--skeleton","aria-hidden":"true",children:[E.jsx("div",{className:"sk-line sk-line--badge"}),E.jsx("div",{className:`sk-line sk-line--long ${i??""}`}),E.jsx("div",{className:`sk-line sk-line--med ${i??""}`}),E.jsx("div",{className:"sk-line sk-line--eyebrow"}),E.jsxs("div",{className:"dossier__cols",children:[E.jsx("div",{className:"sk-steps",children:[0,1,2,3,4].map(l=>E.jsxs("div",{className:`sk-step ${i??""}`,style:{animationDelay:`${l*.08}s`},children:[E.jsx("div",{className:"sk-step__n"}),E.jsxs("div",{className:"sk-step__body",children:[E.jsx("div",{className:"sk-line sk-line--full"}),E.jsx("div",{className:"sk-line sk-line--half"})]})]},l))}),E.jsx("div",{className:"sk-spine",children:[0,1,2,3,4].map(l=>E.jsx("div",{className:`sk-node ${i??""}`,style:{animationDelay:`${l*.08}s`}},l))})]})]})}function rT({steps:n,hovered:i,onHover:l,onJump:o}){const c=n.filter(m=>typeof m.paragraph=="string");if(c.length===0)return null;const f=46,d=c.length*f+8;return E.jsxs("svg",{className:"rec-diagram",viewBox:`0 0 220 ${d}`,width:"220",role:"img","aria-label":"Espina del recorrido",children:[c.slice(0,-1).map((m,g)=>{const A=c[g+1].branches?"rec-edge rec-edge--branch":"rec-edge";return E.jsx("line",{className:A,x1:"110",y1:g*f+34,x2:"110",y2:(g+1)*f+10},g)}),c.map((m,g)=>{const A=["rec-node",i===m.paragraph?"rec-node--on":"",m.branches?"rec-node--branch":""].filter(Boolean).join(" ");return E.jsxs("g",{className:A,onMouseEnter:()=>l(m.paragraph),onMouseLeave:()=>l(void 0),onClick:()=>o(m.paragraph),role:"button",tabIndex:0,children:[E.jsx("rect",{x:"14",y:g*f+10,width:"192",height:"26",rx:"7"}),E.jsx("text",{x:"110",y:g*f+27,textAnchor:"middle",children:m.paragraph})]},m.paragraph+g)})]})}function cT({facts:n,onJumpToParagraph:i,explanation:l,onExplanation:o}){const c=ir(),[f,d]=h.useState(()=>localStorage.getItem(nt.kind)||"claude"),[m,g]=h.useState(()=>localStorage.getItem(nt.key)??""),[p,A]=h.useState(()=>localStorage.getItem(nt.model)??Do),[v,T]=h.useState(()=>localStorage.getItem(nt.corpKey)??""),[C,O]=h.useState(()=>localStorage.getItem(nt.corpModel)??""),[D,z]=h.useState(()=>localStorage.getItem(nt.corpEndpoint)??""),[_,Y]=h.useState(()=>localStorage.getItem(nt.corpAuthName)??"Authorization"),[U,P]=h.useState(lT),[Q,se]=h.useState(),[W,$]=h.useState(!1),[fe,B]=h.useState(""),[ne,Ee]=h.useState(!1),[Ce,be]=h.useState(),[Re,I]=h.useState(),[ee,le]=h.useState(""),q=h.useMemo(()=>E0(n.data,n.flow,n.inventory),[n]),ue=h.useRef(!0);h.useEffect(()=>{if(ue.current){ue.current=!1;return}o(void 0),be(void 0),I(void 0),le("")},[n,o]);const b=h.useCallback((re,Le,Ot)=>{Ot(Le),localStorage.setItem(re,Le)},[]),L=h.useCallback(re=>{d(re),localStorage.setItem(nt.kind,re)},[]),ie=h.useCallback(re=>{P(re);try{localStorage.setItem(nt.profiles,JSON.stringify(re))}catch{}},[]),te=h.useCallback(re=>{L(re.kind),b(nt.key,re.apiKey,g),b(nt.model,re.model||Do,A),b(nt.corpKey,re.corpKey,T),b(nt.corpModel,re.corpModel,O),b(nt.corpEndpoint,re.corpEndpoint,z),b(nt.corpAuthName,re.corpAuthName||"Authorization",Y),se(re.id)},[L,b]),pe=h.useCallback(()=>{const re=fe.trim();if(re==="")return;const Le={kind:f,apiKey:m,model:p,corpKey:v,corpModel:C,corpEndpoint:D,corpAuthName:_},Ot=U.find(Xt=>Xt.name.toLowerCase()===re.toLowerCase()),Nn=Ot?Ot.id:`p${Date.now().toString(36)}`,kn={id:Nn,name:re,...Le},Yt=Ot?U.map(Xt=>Xt.id===Nn?kn:Xt):[...U,kn];ie(Yt),se(Nn),$(!1),B("")},[fe,f,m,p,v,C,D,_,U,ie]),ge=h.useCallback(re=>{ie(U.filter(Le=>Le.id!==re)),se(Le=>Le===re?void 0:Le)},[U,ie]),Se=U.find(re=>re.id===Q),Ke=_.toLowerCase()==="authorization"?{name:"Authorization",prefix:"Bearer "}:{name:_,prefix:""},ze=f==="claude"?m.trim()!=="":v.trim()!==""&&D.trim()!==""&&C.trim()!=="",pn=h.useCallback(()=>{Ee(!0),be(void 0),le("");const re=f==="claude"?ey({apiKey:m,model:p||Do}):ty({id:"corporativa",endpoint:D,apiKey:v,model:C,auth:Ke});JE(n,re,Le=>le(Ot=>Ot+Le)).then(o).catch(Le=>be(Le instanceof Error?Le.message:String(Le))).finally(()=>Ee(!1))},[f,m,p,D,v,C,Ke,n,o]),Rn={hidden:{},show:{transition:{staggerChildren:c?0:.06,delayChildren:c?0:.04}}},pt={hidden:c?{opacity:1}:{opacity:0,y:10},show:{opacity:1,y:0,transition:c?{duration:0}:{type:"spring",stiffness:320,damping:26}}};return E.jsxs("div",{className:"explain",children:[E.jsxs("section",{className:"explain__setup","aria-label":"Configuración del proveedor",children:[E.jsxs("div",{className:"conn-profiles",children:[E.jsxs("label",{className:"conn-profiles__field",children:[E.jsx("span",{className:"conn-profiles__label",children:"Perfil"}),E.jsxs("select",{className:"conn-profiles__select",value:Q??"",onChange:re=>{const Le=U.find(Ot=>Ot.id===re.target.value);Le?te(Le):se(void 0)},"aria-label":"Elegir un perfil de conexión guardado",children:[E.jsx("option",{value:"",children:U.length?"Elegir guardado…":"Sin perfiles guardados"}),U.map(re=>E.jsx("option",{value:re.id,children:re.name},re.id))]})]}),W?E.jsxs("span",{className:"conn-profiles__namer",children:[E.jsx("input",{autoFocus:!0,value:fe,onChange:re=>B(re.target.value),onKeyDown:re=>{re.key==="Enter"?pe():re.key==="Escape"&&($(!1),B(""))},placeholder:"Nombre del perfil","aria-label":"Nombre del perfil"}),E.jsx("button",{className:"conn-profiles__ok",onClick:pe,title:"Guardar perfil",children:E.jsx(Tm,{size:15,weight:"fill"})}),E.jsx("button",{className:"conn-profiles__cancel",onClick:()=>{$(!1),B("")},title:"Cancelar","aria-label":"Cancelar",children:"×"})]}):E.jsxs(E.Fragment,{children:[E.jsxs("button",{className:"conn-profiles__save",onClick:()=>{B(Se?.name??""),$(!0)},title:"Guardar la configuración actual como un perfil",children:[E.jsx(Vy,{size:14,weight:"bold"})," Guardar"]}),Q&&E.jsx("button",{className:"conn-profiles__del",onClick:()=>ge(Q),title:"Borrar este perfil","aria-label":"Borrar este perfil",children:E.jsx(Zy,{size:14})})]})]}),E.jsxs("div",{className:"explain__providers",role:"group","aria-label":"Proveedor de IA",children:[E.jsx("button",{className:f==="claude"?"prov prov--active":"prov",onClick:()=>L("claude"),"aria-pressed":f==="claude",children:"Claude (Anthropic)"}),E.jsx("button",{className:f==="corporate"?"prov prov--active":"prov",onClick:()=>L("corporate"),"aria-pressed":f==="corporate",children:"IA corporativa"})]}),f==="claude"?E.jsxs("div",{className:"explain__config",children:[E.jsx($2,{label:"Clave API (Anthropic)",value:m,onChange:re=>b(nt.key,re,g),placeholder:"sk-ant-…"}),E.jsxs("label",{children:["Modelo",E.jsx("input",{type:"text",value:p,onChange:re=>b(nt.model,re.target.value,A)})]})]}):E.jsxs("div",{className:"explain__config explain__config--corp",children:[E.jsxs("label",{className:"wide",children:["Endpoint (chat completions)",E.jsx("input",{type:"text",value:D,onChange:re=>b(nt.corpEndpoint,re.target.value,z),placeholder:"https://gateway.corp/v1/chat/completions",autoComplete:"off"})]}),E.jsxs("label",{children:["Modelo",E.jsx("input",{type:"text",value:C,onChange:re=>b(nt.corpModel,re.target.value,O),placeholder:"p. ej. codex, axet-1"})]}),E.jsx($2,{label:"Clave / token",value:v,onChange:re=>b(nt.corpKey,re,T)}),E.jsxs("label",{children:["Cabecera de auth",E.jsx("input",{type:"text",value:_,onChange:re=>b(nt.corpAuthName,re.target.value,Y),placeholder:"Authorization · api-key"})]})]}),E.jsxs("div",{className:"explain__actions",children:[E.jsx("button",{className:"explain__go",onClick:pn,disabled:ne||!ze,children:ne?"Explicando…":"Explicar programa"}),ze&&E.jsxs("span",{className:"explain__saved",children:[E.jsx(Tm,{size:14,weight:"fill"})," Configuración guardada en este navegador"]})]})]}),Ce&&E.jsxs("div",{className:"explain__error",role:"alert",children:[E.jsx("span",{className:"explain__error-msg",children:Ce}),E.jsx("button",{className:"explain__retry",onClick:pn,disabled:ne||!ze,children:ne?"Reintentando…":"Reintentar"})]}),ne&&!l&&ee===""&&E.jsx(oT,{reduce:!!c}),ne&&!l&&ee!==""&&E.jsxs("div",{className:"dossier dossier--streaming","aria-live":"polite","aria-busy":"true",children:[E.jsx("div",{className:"explain__badge explain__badge--streaming",children:"Generando la explicación…"}),E.jsxs("p",{className:"dossier__streamtext",children:[ee,E.jsx("span",{className:"dossier__caret","aria-hidden":"true"})]})]}),l&&E.jsxs(Zt.article,{className:"dossier",initial:c?!1:{opacity:0},animate:{opacity:1},children:[E.jsx("div",{className:`explain__badge explain__badge--${q.level}`,children:q.level==="verified"?"Prosa generada por IA sobre hechos verificados por el parser. Los hechos están verificados; la redacción, júzgala tú.":`Prosa sobre hechos parcialmente verificados — ${q.reasons.join("; ")}.`}),l.structured?E.jsxs(Zt.div,{variants:Rn,initial:"hidden",animate:"show",children:[l.summary&&E.jsx(Zt.p,{variants:pt,className:"dossier__summary",children:E.jsx(F2,{text:l.summary})}),E.jsx(Zt.div,{variants:pt,className:"dossier__eyebrow",children:"Recorrido · orden de ejecución"}),E.jsxs("div",{className:"dossier__cols",children:[E.jsx(Zt.ol,{className:"wt",variants:Rn,initial:"hidden",animate:"show",children:l.walkthrough.map((re,Le)=>E.jsxs(Zt.li,{variants:pt,className:["wt__step",re.paragraph&&Re===re.paragraph?"wt__step--on":"",re.branches?"wt__step--branch":""].filter(Boolean).join(" "),onMouseEnter:()=>I(re.paragraph),onMouseLeave:()=>I(void 0),...c?{}:{whileHover:{x:3}},children:[E.jsx("span",{className:"wt__n",children:Le+1}),E.jsxs("span",{className:"wt__body",children:[E.jsx(F2,{text:re.text}),re.paragraph&&E.jsxs("span",{className:"wt__meta",children:[E.jsxs("button",{type:"button",className:"wt__para-chip",onClick:()=>i?.(re.paragraph),title:"Ver este párrafo en el diagrama de Flujo",children:[re.paragraph,re.line!==void 0&&E.jsxs("span",{className:"wt__para-line",children:["L",re.line]})]}),re.branches&&E.jsx("span",{className:"wt__branch-tag",title:"Aquí hay una decisión (IF/EVALUATE)",children:"rama"})]})]})]},Le))}),E.jsx("div",{className:"dossier__diagram",children:E.jsx(rT,{steps:l.walkthrough,hovered:Re,onHover:I,onJump:re=>i?.(re)})})]})]}):E.jsx("pre",{className:"dossier__raw",children:l.raw})]},"result")]})}function q2({line:n,onOpenCode:i}){return i?E.jsxs("button",{type:"button",className:"code-line",onClick:()=>i(n),title:"Ver esta línea en el código",children:["L",n]}):E.jsxs(E.Fragment,{children:["L",n]})}function uT({inventory:n,onOpenCode:i}){if(n.files.length===0&&n.execs.length===0&&n.unresolvedFileOps.length===0)return E.jsxs("div",{className:"empty",children:[E.jsx("p",{children:"Este programa no abre ficheros ni tiene bloques EXEC SQL/CICS."}),E.jsx("p",{className:"empty__hint",children:"Solo se listan los que aparecen en el fuente aportado — un SELECT que viva en un copybook ausente no se adivina."})]});const o=E0(void 0,void 0,n);return E.jsxs("div",{className:"inventory",children:[E.jsx("div",{className:`schema__fidelity schema__fidelity--${o.level}`,children:o.level==="verified"?"Verificado por parser — cada fichero, tabla y comando sale de una línea concreta del fuente, sin interpretar qué significan.":`Parcialmente verificado (${o.reasons.join("; ")}).`}),n.unresolvedFileOps.length>0&&E.jsxs("div",{className:"inventory__warn",children:["Operaciones de E/S cuyo fichero no se puede resolver con este fuente:"," ",E.jsx("strong",{children:[...new Set(n.unresolvedFileOps.map(c=>`${c.verb} ${c.target}`))].join(", ")})," ","— falta el SELECT o el FD. No se atribuyen a ningún fichero."]}),n.files.length>0&&E.jsxs("section",{className:"inventory__group",children:[E.jsx("h3",{children:"Ficheros"}),n.files.map(c=>E.jsxs("div",{className:"inv-file",children:[E.jsxs("div",{className:"inv-file__head",children:[E.jsx("span",{className:"inv-file__name",children:c.name}),c.assignTo&&E.jsxs("span",{className:"pill",children:["ASSIGN ",c.assignTo]}),c.organization&&E.jsx("span",{className:"pill",children:c.organization}),c.access&&E.jsx("span",{className:"pill",children:c.access})]}),c.operations.length===0?E.jsx("div",{className:"inv-op inv-op--none",children:"declarado, pero sin operaciones en el fuente"}):c.operations.map((f,d)=>E.jsxs("div",{className:"inv-op",children:[E.jsxs("span",{className:`inv-verb inv-verb--${f.verb.toLowerCase()}`,children:[f.verb,f.mode?` ${f.mode}`:""]}),E.jsxs("span",{className:"inv-op__where",children:[f.paragraph,f.paragraphImplicit?" (entrada implícita)":""," ·"," ",E.jsx(q2,{line:f.line,onOpenCode:i})]})]},d))]},c.name))]}),n.tables.length>0&&E.jsxs("section",{className:"inventory__group",children:[E.jsx("h3",{children:"Tablas DB2"}),E.jsx("div",{className:"inv-tags",children:n.tables.map(c=>E.jsx("span",{className:"inv-tag inv-tag--table",children:c},c))})]}),n.cursors.length>0&&E.jsxs("section",{className:"inventory__group",children:[E.jsx("h3",{children:"Cursores"}),n.cursors.map(c=>{const f=[["DECLARE",c.declared],["OPEN",c.opened],["FETCH",c.fetched],["CLOSE",c.closed]].map(([d,m])=>E.jsx("span",{className:m?"inv-step":"inv-step inv-step--absent",children:d},d));return E.jsxs("div",{className:"inv-cursor",children:[E.jsx("span",{className:"inv-cursor__name",children:c.name}),E.jsx("span",{className:"inv-cursor__steps",children:f}),c.tables.length>0&&E.jsxs("span",{className:"inv-cursor__tables",children:["sobre ",c.tables.join(", ")]})]},c.name)})]}),n.cicsCommands.length>0&&E.jsxs("section",{className:"inventory__group",children:[E.jsx("h3",{children:"Comandos CICS"}),E.jsx("div",{className:"inv-tags",children:n.cicsCommands.map(c=>E.jsxs("span",{className:"inv-tag inv-tag--cics",children:[c.command,c.count>1&&E.jsxs("em",{children:[" ×",c.count]})]},c.command))})]}),n.execs.length>0&&E.jsxs("section",{className:"inventory__group",children:[E.jsx("h3",{children:"Bloques EXEC"}),E.jsxs("table",{className:"inv-execs",children:[E.jsx("thead",{children:E.jsxs("tr",{children:[E.jsx("th",{children:"Línea"}),E.jsx("th",{children:"Dónde"}),E.jsx("th",{children:"Tipo"}),E.jsx("th",{children:"Texto (literal del fuente)"})]})}),E.jsx("tbody",{children:n.execs.map((c,f)=>E.jsxs("tr",{children:[E.jsx("td",{className:"cell-num",children:E.jsx(q2,{line:c.line,onOpenCode:i})}),E.jsxs("td",{children:[c.paragraph??"DATA DIVISION",c.paragraphImplicit&&E.jsx("span",{className:"pill pill--warn",children:"entrada implícita"})]}),E.jsxs("td",{children:[E.jsxs("span",{className:`inv-tag inv-tag--${c.kind}`,children:[c.kind.toUpperCase()," ",c.verb]}),c.options.map(d=>E.jsx("span",{className:"inv-tag inv-tag--cics",children:d},d)),c.dynamic&&E.jsx("span",{className:"pill pill--dynamic",children:"dinámico"})]}),E.jsx("td",{className:"inv-execs__text",children:c.text})]},f))})]})]})]})}function fT(){const[n,i]=h.useState(!1),l=h.useRef(null);return h.useEffect(()=>{if(!n)return;const o=f=>{f.key==="Escape"&&i(!1)},c=f=>{l.current&&!l.current.contains(f.target)&&i(!1)};return document.addEventListener("keydown",o),document.addEventListener("mousedown",c,!0),()=>{document.removeEventListener("keydown",o),document.removeEventListener("mousedown",c,!0)}},[n]),E.jsxs("div",{className:"privacy",ref:l,children:[E.jsxs("button",{className:`privacy__chip${n?" privacy__chip--on":""}`,onClick:()=>i(o=>!o),"aria-expanded":n,"aria-haspopup":"dialog",title:"Cómo se tratan tu código y tus credenciales",children:[E.jsx(Cm,{size:14,weight:"fill"}),"Local-first"]}),n&&E.jsxs("div",{className:"privacy__pop",role:"dialog","aria-label":"Privacidad y seguridad",children:[E.jsxs("div",{className:"privacy__head",children:[E.jsx(Cm,{size:15,weight:"fill"}),E.jsx("span",{children:"Privacidad · local-first"}),E.jsx("button",{className:"privacy__close",onClick:()=>i(!1),"aria-label":"Cerrar",children:E.jsx(_p,{size:13,weight:"bold"})})]}),E.jsxs("ul",{className:"privacy__points",children:[E.jsxs("li",{children:[E.jsx("b",{children:"Tu código no sale de esta máquina"})," salvo la llamada al proveedor de IA que tú configures (BYOK). Las claves viven solo en este navegador."]}),E.jsxs("li",{children:[E.jsx("b",{children:"El modelo recibe solo los hechos verificados"})," por el parser — nunca el código fuente crudo."]}),E.jsxs("li",{children:[E.jsx("b",{children:"Sin backend propio:"})," KnowFlow corre entero en tu navegador."]})]}),E.jsx("p",{className:"privacy__note",children:"Enviar COBOL de clientes por un endpoint sigue siendo tu decisión: úsalo solo con código sintético/público o por un canal sancionado para ese código."})]})]})}const dT=h.lazy(()=>m0(()=>import("./FlowCanvas-BRklWBCp.js"),__vite__mapDeps([0,1,2])).then(n=>({default:n.FlowCanvas}))),hT=h.lazy(()=>m0(()=>import("./ChainCanvas-C37KyhnE.js"),__vite__mapDeps([3,1,2])).then(n=>({default:n.ChainCanvas}))),mT=h.lazy(()=>m0(()=>import("./RobotProfessor-BtTDTBDq.js"),[]).then(n=>({default:n.RobotProfessor}))),pT="programa pegado";function gT(){const[n,i]=h.useState(!1);return h.useEffect(()=>{const l=window.setTimeout(()=>i(!0),0);return()=>window.clearTimeout(l)},[]),n?E.jsx(h.Suspense,{fallback:E.jsx("div",{className:"robot-professor robot-professor--loading","aria-hidden":"true"}),children:E.jsx(mT,{})}):E.jsx("div",{className:"robot-professor robot-professor--loading","aria-hidden":"true"})}const C4=[{id:"explain",label:"Explicación",Icon:xp,hint:"En lenguaje llano"},{id:"flow",label:"Flujo",Icon:wy,hint:"Cómo se recorre"},{id:"data",label:"Datos",Icon:Hy,hint:"El esquema de bytes"},{id:"inventory",label:"Qué toca",Icon:My,hint:"Ficheros, DB2, CICS"},{id:"advisories",label:"Avisos",Icon:zy,hint:"Cuidado con esto"},{id:"chain",label:"Cadena",Icon:Iy,hint:"Llamadas entre programas"}];function ET(){return E.jsx(aT,{children:E.jsx(TT,{})})}function yT(){const[n,i]=h.useState(()=>localStorage.getItem("knowflow.theme"));h.useEffect(()=>{const c=document.documentElement;n?c.setAttribute("data-theme",n):c.removeAttribute("data-theme")},[n]);const l=n??(window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),o=l==="dark"?"light":"dark";return E.jsx("button",{className:"icon-btn",onClick:()=>{i(o),localStorage.setItem("knowflow.theme",o)},title:`Cambiar a tema ${o==="dark"?"oscuro":"claro"}`,"aria-label":"Cambiar tema",children:l==="dark"?E.jsx(jy,{size:17,weight:"fill"}):E.jsx(_y,{size:17,weight:"fill"})})}function vT({over:n,onLoadExample:i}){const l=ir(),[o,c]=h.useState(!1),f=d=>l?{}:{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.05*d,type:"spring",stiffness:320,damping:30}};return E.jsxs("div",{className:"landing",children:[E.jsxs("div",{className:"landing__hero",children:[E.jsxs(Zt.div,{className:"landing__copy",...f(0),children:[E.jsx("div",{className:"landing__eyebrow",children:"Nuevo análisis"}),E.jsxs("h1",{className:"landing__title",children:["Entiende tu programa ",E.jsx("span",{className:"accent",children:"COBOL"})," con contexto."]}),E.jsx("p",{className:"landing__sub",children:"Carga el programa y sus copybooks para empezar a reconstruirlo con seguridad."}),E.jsxs("div",{className:`dropzone${n?" dropzone--over":""}`,children:[E.jsx("div",{className:"dropzone__icon",children:E.jsx(Ip,{size:26,weight:"regular"})}),E.jsxs("div",{children:[E.jsx("b",{children:"Arrastra un programa y sus copybooks"}),E.jsxs("span",{children:[E.jsx("code",{children:".cbl"})," · ",E.jsx("code",{children:".cpy"})]})]})]}),E.jsxs("div",{className:"landing__cta",children:[E.jsxs("button",{className:"btn btn--primary",onClick:i,children:[E.jsx(xp,{size:16,weight:"fill"})," Cargar programa de ejemplo"]}),E.jsx("button",{className:"landing__features-button",type:"button",onClick:()=>c(d=>!d),"aria-expanded":o,"aria-controls":"landing-features",children:"Funcionalidades"})]})]}),E.jsx(Zt.div,{className:"landing__robot",...f(1),children:E.jsx(gT,{})})]}),E.jsx(c4,{initial:!1,children:o&&E.jsx(Zt.div,{id:"landing-features",className:"landing-features",animate:{opacity:1,y:0},...l?{}:{initial:{opacity:0,y:-8},exit:{opacity:0,y:-8}},transition:{duration:.18},children:C4.filter(d=>!["chain","advisories"].includes(d.id)).map(d=>E.jsxs("div",{className:"preview-card",children:[E.jsx(d.Icon,{size:19,weight:"duotone"}),E.jsxs("div",{children:[E.jsx("b",{children:d.label}),E.jsx("span",{children:d.hint})]})]},d.id))})})]})}function AT({view:n,onView:i,chainEnabled:l,advisoryCount:o}){return E.jsx("nav",{className:"rail","aria-label":"Vistas del análisis",children:C4.map(c=>{const f=c.id==="chain"&&!l,d=n===c.id,m=c.id==="advisories"&&o>0?o:void 0;return E.jsxs("button",{className:`rail-item${d?" rail-item--active":""}`,onClick:()=>!f&&i(c.id),disabled:f,title:f?"Sin llamadas a otros programas":c.hint,"aria-current":d?"page":void 0,children:[d&&E.jsx(Zt.span,{layoutId:"rail-active",className:"rail-item__glow",transition:{type:"spring",stiffness:400,damping:34}}),E.jsx(c.Icon,{size:20,weight:d?"fill":"regular",className:"rail-item__icon"}),E.jsx("span",{className:"rail-item__label",children:c.label}),m!==void 0&&E.jsx("span",{className:"rail-item__badge",children:m})]},c.id)})})}function ST({source:n,onChange:i,open:l,onToggle:o,jump:c}){const f=h.useRef(null);return h.useEffect(()=>{if(!c||!l)return;let d=0,m=0;const g=()=>{const p=f.current;if(p){const A=n.split(`
|
|
413
|
+
`),v=Math.min(Math.max(c.line,1),A.length),T=A.slice(0,v-1).reduce((Y,U)=>Y+U.length+1,0),C=T+(A[v-1]?.length??0);p.focus(),p.setSelectionRange(T,C);const O=getComputedStyle(p),D=parseFloat(O.lineHeight)||parseFloat(O.fontSize)*1.55||18,_=(parseFloat(O.paddingTop)||0)+(v-1)*D;if(p.scrollTop=Math.max(0,_+D/2-p.clientHeight/2),p.scrollLeft=0,p.selectionStart===T&&p.clientHeight>0)return}m++<30&&(d=requestAnimationFrame(g))};return d=requestAnimationFrame(g),()=>cancelAnimationFrame(d)},[c,l,n]),E.jsxs("aside",{className:`code-panel${l?" code-panel--open":""}`,children:[E.jsxs("button",{className:"code-panel__handle",onClick:o,title:l?"Ocultar código":"Ver código","aria-label":l?"Ocultar el código fuente":"Ver el código fuente","aria-expanded":l,children:[E.jsx(Ep,{size:17,weight:"bold"}),!l&&E.jsx("span",{className:"code-panel__handle-label",children:"Código"}),E.jsx(Ny,{size:14,weight:"bold",style:{transform:l?"rotate(0deg)":"rotate(180deg)",transition:"transform .2s"}})]}),l&&E.jsxs("div",{className:"code-panel__body",children:[E.jsx("div",{className:"code-panel__title",children:"Fuente COBOL"}),E.jsx("textarea",{ref:f,value:n,onChange:d=>i(d.target.value),spellCheck:!1,wrap:"off","aria-label":"Código fuente COBOL"})]})]})}const Ui={source:"knowflow.session.source",copybooks:"knowflow.session.copybooks",others:"knowflow.session.others"};function k2(n){try{const i=localStorage.getItem(n),l=i?JSON.parse(i):[];return Array.isArray(l)?new Map(l):new Map}catch{return new Map}}function Bu(n,i){try{i===""||i==="[]"?localStorage.removeItem(n):localStorage.setItem(n,i)}catch{}}function TT(){const n=ir(),[i,l]=h.useState(()=>localStorage.getItem(Ui.source)??""),[o,c]=h.useState(()=>k2(Ui.copybooks)),[f,d]=h.useState(()=>k2(Ui.others)),[m,g]=h.useState("flow"),[p,A]=h.useState(!1),[v,T]=h.useState(!1),[C,O]=h.useState(),[D,z]=h.useState(),[_,Y]=h.useState(),U=h.useCallback(te=>{z(te),g("flow")},[]),P=h.useCallback(te=>{T(!0),O({line:te,nonce:Date.now()})},[]);h.useEffect(()=>Bu(Ui.source,i),[i]),h.useEffect(()=>Bu(Ui.copybooks,JSON.stringify([...o])),[o]),h.useEffect(()=>Bu(Ui.others,JSON.stringify([...f])),[f]);const Q=h.useMemo(()=>i.trim()===""?void 0:ip(i),[i]),se=h.useMemo(()=>i.trim()===""?void 0:M3(i,o),[i,o]),W=h.useMemo(()=>i.trim()===""?void 0:uE(i),[i]),$=h.useMemo(()=>i.trim()===""||!se?void 0:fE(i,se),[i,se]),fe=h.useMemo(()=>i.trim()===""?[]:TE(i,se,Q,W),[i,se,Q,W]),B=h.useMemo(()=>{if(i.trim()==="")return;const te=new Map([[pT,i],...f]);return KE(te)},[i,f]),ne=h.useMemo(()=>B&&(B.calls.length>0||B.programs.length>1)?B:void 0,[B]),Ee=h.useMemo(()=>({data:se,flow:Q,inventory:W,advisories:fe,chain:ne}),[se,Q,W,fe,ne]),Ce=h.useCallback((te,pe,ge)=>{if(/\.(cpy|copy)$/i.test(te.name)){const Se=te.name.replace(/\.(cpy|copy)$/i,"").toUpperCase();c(Ke=>new Map(Ke).set(Se,pe))}else ge===0?l(pe):d(Se=>new Map(Se).set(te.name,pe))},[]),be=h.useCallback(te=>{te.preventDefault(),A(!1),[...te.dataTransfer.files].forEach((ge,Se)=>{ge.text().then(Ke=>Ce(ge,Ke,Se))})},[Ce]),Re=h.useCallback(te=>{c(pe=>{const ge=new Map(pe);return ge.delete(te),ge})},[]),I=h.useCallback(te=>{d(pe=>{const ge=new Map(pe);return ge.delete(te),ge})},[]),ee=h.useCallback(()=>{if(m==="chain"&&B){navigator.clipboard.writeText(PE(B));return}Q&&navigator.clipboard.writeText(rp(Q))},[m,B,Q]),le=h.useCallback(()=>{const te=qE({data:se,flow:Q,inventory:W,advisories:fe,references:$,explanation:_,sourceName:Q?.programId??"programa pegado"}),pe=new Blob([te],{type:"text/markdown;charset=utf-8"}),ge=URL.createObjectURL(pe),Se=document.createElement("a");Se.href=ge,Se.download=`${(Q?.programId??"dossier").toLowerCase()}-onboarding.md`,document.body.appendChild(Se),Se.click(),Se.remove(),URL.revokeObjectURL(ge)},[se,Q,W,fe,$,_]),q=h.useCallback(()=>{l(""),c(new Map),d(new Map),Y(void 0),T(!1)},[]),ue=h.useCallback(()=>{l(Pu.source),c(new Map(Object.entries(Pu.copybooks))),d(new Map(Object.entries(Pu.others))),Y(void 0)},[]),b=i.trim()!=="",L=Q!==void 0&&Q.paragraphs.length>0,ie=!!(B&&B.calls.length>0);return E.jsxs("div",{className:"app",onDrop:be,onDragOver:te=>{te.preventDefault(),A(!0)},onDragLeave:te=>{te.currentTarget===te.target&&A(!1)},children:[E.jsxs("header",{className:"topbar",children:[E.jsxs("div",{className:"brand",children:[E.jsx("span",{className:"brand__name",children:"KnowFlow"}),E.jsx("span",{className:"brand__tag",children:"Comprensión de COBOL verificada por parser"})]}),E.jsxs("div",{className:"actions",children:[E.jsx(fT,{}),E.jsx(yT,{}),b&&E.jsxs(E.Fragment,{children:[E.jsxs("button",{className:"btn btn--primary",onClick:le,disabled:!b,children:[E.jsx(Ly,{size:15,weight:"bold"})," Exportar dossier"]}),E.jsx("button",{className:"btn",onClick:ee,disabled:!L,children:"Copiar Mermaid"}),E.jsx("button",{className:"btn",onClick:q,children:"Limpiar"})]})]})]}),b?E.jsxs("div",{className:`workspace${v?" workspace--code-open":""}`,children:[E.jsx(AT,{view:m,onView:g,chainEnabled:ie,advisoryCount:fe.length}),E.jsxs("main",{className:"stage",children:[E.jsx(CT,{flow:Q,data:se,inventory:W,hasGraph:L,copybooks:o,others:f,onRemoveCopybook:Re,onRemoveProgram:I,onAddFile:(te,pe)=>Ce(te,pe,1)}),E.jsx("div",{className:"stage__body",children:E.jsx(Zt.div,{className:"stage__view",initial:n?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},children:E.jsx(OT,{view:m,flow:Q,data:se,inventory:W,advisories:fe,references:$,linked:B,facts:Ee,hasGraph:L,focusParagraph:D,onFocused:()=>z(void 0),onJumpToParagraph:U,onOpenCode:P,explanation:_,onExplanation:Y})},m)})]}),E.jsx(ST,{source:i,onChange:l,open:v,onToggle:()=>T(te=>!te),jump:C})]}):E.jsx(vT,{over:p,onLoadExample:ue}),E.jsx(c4,{children:p&&b&&E.jsx(Zt.div,{className:"drag-overlay",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:E.jsxs("div",{className:"drag-overlay__card",children:[E.jsx(Ip,{size:28,weight:"regular"}),"Suelta para añadir un copybook o programa"]})})})]})}function CT({flow:n,data:i,inventory:l,hasGraph:o,copybooks:c,others:f,onRemoveCopybook:d,onRemoveProgram:m,onAddFile:g}){return E.jsxs("div",{className:"identband",children:[n?.programId&&E.jsxs("span",{className:"ident",children:[E.jsx("span",{className:"ident__dot"}),E.jsx("span",{className:"ident__label",children:"PROGRAM-ID"}),n.programId]}),(o||l)&&E.jsxs("div",{className:"specs",children:[o&&E.jsxs("div",{className:"specs__cell",children:[E.jsx("b",{children:n.paragraphs.filter(p=>!p.implicit).length}),E.jsx("span",{children:"párrafos"})]}),l&&E.jsxs("div",{className:"specs__cell",children:[E.jsx("b",{children:l.files.length}),E.jsx("span",{children:"ficheros"})]}),l&&E.jsxs("div",{className:"specs__cell",children:[E.jsx("b",{children:l.tables.length}),E.jsx("span",{children:"tablas"})]})]}),E.jsxs("div",{className:"identband__chips",children:[n?.fragment&&E.jsx("span",{className:"notice notice--warn",children:"Fragmento parcial"}),n&&n.missingTargets.length>0&&E.jsxs("span",{className:"notice notice--missing",children:["Destinos no encontrados: ",n.missingTargets.join(", ")]}),n&&n.nestedPrograms.length>0&&E.jsxs("span",{className:"notice notice--warn",children:["Anidados sin analizar: ",n.nestedPrograms.join(", ")]}),i?.missingCopybooks.map(p=>E.jsx(bT,{name:p,onFile:g},p)),[...c.keys()].map(p=>E.jsxs("span",{className:"notice notice--copybook",children:[p,".cpy",E.jsx("button",{className:"chip-close",onClick:()=>d(p),title:"Quitar","aria-label":`Quitar copybook ${p}`,children:"×"})]},p)),[...f.keys()].map(p=>E.jsxs("span",{className:"notice notice--program",children:[p,E.jsx("button",{className:"chip-close",onClick:()=>m(p),title:"Quitar","aria-label":`Quitar programa ${p}`,children:"×"})]},p))]})]})}function bT({name:n,onFile:i}){const[l,o]=h.useState(!1);return E.jsxs("span",{className:`notice notice--missing missing-cpy${l?" missing-cpy--over":""}`,onDragOver:c=>{c.preventDefault(),c.stopPropagation(),o(!0)},onDragLeave:()=>o(!1),onDrop:c=>{c.preventDefault(),c.stopPropagation(),o(!1);const f=c.dataTransfer.files[0];f&&f.text().then(d=>i(f,d))},title:`Falta ${n}.cpy — arrástralo aquí para completar el esquema`,children:[E.jsxs("span",{className:"missing-cpy__name",children:[n,".cpy"]}),E.jsx("span",{className:"missing-cpy__hint",children:l?"suelta":"arrástralo"})]})}function OT({view:n,flow:i,data:l,inventory:o,advisories:c,references:f,linked:d,facts:m,hasGraph:g,focusParagraph:p,onFocused:A,onJumpToParagraph:v,onOpenCode:T,explanation:C,onExplanation:O}){return n==="flow"?g?E.jsx(h.Suspense,{fallback:E.jsx(X2,{}),children:E.jsx(dT,{flow:i,inventory:o,focusParagraph:p,onFocused:A,onOpenCode:T})}):E.jsx(Y2,{title:"No se ha encontrado flujo en el fuente."}):n==="chain"?d&&d.calls.length>0?E.jsxs("div",{className:"chain",children:[d.missingPrograms.length>0&&E.jsxs("div",{className:"chain__missing",children:["Programas llamados cuyo fuente no has aportado:"," ",E.jsx("strong",{children:d.missingPrograms.join(", ")})," — arrástralos para completar la cadena."]}),E.jsx("div",{className:"chain__canvas",children:E.jsx(h.Suspense,{fallback:E.jsx(X2,{}),children:E.jsx(hT,{linked:d})})})]}):E.jsx(Y2,{title:"Este programa no llama a ningún otro.",hint:"Arrastra más ficheros .cbl para ver cómo se encadenan entre sí."}):n==="data"?l?E.jsx(K9,{data:l,references:f,onJumpToParagraph:v,onOpenCode:T}):null:n==="inventory"?o?E.jsx(uT,{inventory:o,onOpenCode:T}):null:n==="advisories"?E.jsx(_9,{advisories:c,onJumpToParagraph:v,onOpenCode:T}):E.jsx(cT,{facts:m,onJumpToParagraph:v,explanation:C,onExplanation:O})}function Y2({title:n,hint:i}){return E.jsxs("div",{className:"empty",children:[E.jsx("p",{children:n}),i&&E.jsx("p",{className:"empty__hint",children:i})]})}function X2(){return E.jsx("div",{className:"empty","aria-live":"polite",children:E.jsx("p",{children:"Cargando el lienzo…"})})}kg.createRoot(document.getElementById("root")).render(E.jsx(ET,{}));export{NT as R,Ep as a,h0 as b,Fg as c,RT as d,_g as g,E as j,_p as n,We as p,h as r,Ny as s};
|