@acquis-consulting/asm 1.0.5

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.
Files changed (203) hide show
  1. package/README.md +0 -0
  2. package/dist/apps/gitDiffReview/gitDiffParser.d.ts +6 -0
  3. package/dist/apps/gitDiffReview/gitDiffParser.js +1 -0
  4. package/dist/apps/gitDiffReview/packageXml.d.ts +8 -0
  5. package/dist/apps/gitDiffReview/packageXml.js +1 -0
  6. package/dist/apps/gitDiffReview/tools.d.ts +42 -0
  7. package/dist/apps/gitDiffReview/tools.js +1 -0
  8. package/dist/apps/gitDiffReview/types.d.ts +19 -0
  9. package/dist/apps/gitDiffReview/types.js +1 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +193 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/metadata-diff.html +98 -0
  14. package/dist/tools/aggregateQuery.d.ts +85 -0
  15. package/dist/tools/aggregateQuery.js +110 -0
  16. package/dist/tools/aggregateQuery.js.map +1 -0
  17. package/dist/tools/bulkExportAbort.d.ts +37 -0
  18. package/dist/tools/bulkExportAbort.js +44 -0
  19. package/dist/tools/bulkExportAbort.js.map +1 -0
  20. package/dist/tools/bulkExportResults.d.ts +51 -0
  21. package/dist/tools/bulkExportResults.js +76 -0
  22. package/dist/tools/bulkExportResults.js.map +1 -0
  23. package/dist/tools/bulkExportStart.d.ts +61 -0
  24. package/dist/tools/bulkExportStart.js +68 -0
  25. package/dist/tools/bulkExportStart.js.map +1 -0
  26. package/dist/tools/bulkExportStatus.d.ts +37 -0
  27. package/dist/tools/bulkExportStatus.js +54 -0
  28. package/dist/tools/bulkExportStatus.js.map +1 -0
  29. package/dist/tools/crossObjectSearch.d.ts +155 -0
  30. package/dist/tools/crossObjectSearch.js +145 -0
  31. package/dist/tools/crossObjectSearch.js.map +1 -0
  32. package/dist/tools/debugLogs.d.ts +106 -0
  33. package/dist/tools/debugLogs.js +189 -0
  34. package/dist/tools/debugLogs.js.map +1 -0
  35. package/dist/tools/deployMetadata.d.ts +60 -0
  36. package/dist/tools/deployMetadata.js +106 -0
  37. package/dist/tools/deployMetadata.js.map +1 -0
  38. package/dist/tools/deployPackage.d.ts +49 -0
  39. package/dist/tools/deployPackage.js +1 -0
  40. package/dist/tools/dml.d.ts +70 -0
  41. package/dist/tools/dml.js +105 -0
  42. package/dist/tools/dml.js.map +1 -0
  43. package/dist/tools/dmlDelete.d.ts +51 -0
  44. package/dist/tools/dmlDelete.js +71 -0
  45. package/dist/tools/dmlDelete.js.map +1 -0
  46. package/dist/tools/executeAnonymous.d.ts +63 -0
  47. package/dist/tools/executeAnonymous.js +77 -0
  48. package/dist/tools/executeAnonymous.js.map +1 -0
  49. package/dist/tools/fieldManagement.d.ts +222 -0
  50. package/dist/tools/fieldManagement.js +234 -0
  51. package/dist/tools/fieldManagement.js.map +1 -0
  52. package/dist/tools/fieldPermissions.d.ts +94 -0
  53. package/dist/tools/fieldPermissions.js +191 -0
  54. package/dist/tools/fieldPermissions.js.map +1 -0
  55. package/dist/tools/getDependencies.d.ts +58 -0
  56. package/dist/tools/getDependencies.js +105 -0
  57. package/dist/tools/getDependencies.js.map +1 -0
  58. package/dist/tools/listUserPermissions.d.ts +36 -0
  59. package/dist/tools/listUserPermissions.js +59 -0
  60. package/dist/tools/listUserPermissions.js.map +1 -0
  61. package/dist/tools/metadataDescribe.d.ts +37 -0
  62. package/dist/tools/metadataDescribe.js +35 -0
  63. package/dist/tools/metadataDescribe.js.map +1 -0
  64. package/dist/tools/metadataDiff.d.ts +66 -0
  65. package/dist/tools/metadataDiff.js +215 -0
  66. package/dist/tools/metadataDiff.js.map +1 -0
  67. package/dist/tools/metadataDiffFileDetail.d.ts +44 -0
  68. package/dist/tools/metadataDiffFileDetail.js +84 -0
  69. package/dist/tools/metadataDiffFileDetail.js.map +1 -0
  70. package/dist/tools/metadataDiffFiles.d.ts +37 -0
  71. package/dist/tools/metadataDiffFiles.js +72 -0
  72. package/dist/tools/metadataDiffFiles.js.map +1 -0
  73. package/dist/tools/metadataDiffGeneratePackage.d.ts +73 -0
  74. package/dist/tools/metadataDiffGeneratePackage.js +122 -0
  75. package/dist/tools/metadataDiffGeneratePackage.js.map +1 -0
  76. package/dist/tools/metadataImport.d.ts +63 -0
  77. package/dist/tools/metadataImport.js +122 -0
  78. package/dist/tools/metadataImport.js.map +1 -0
  79. package/dist/tools/metadataJobStatus.d.ts +44 -0
  80. package/dist/tools/metadataJobStatus.js +101 -0
  81. package/dist/tools/metadataJobStatus.js.map +1 -0
  82. package/dist/tools/metadataList.d.ts +44 -0
  83. package/dist/tools/metadataList.js +49 -0
  84. package/dist/tools/metadataList.js.map +1 -0
  85. package/dist/tools/metadataRead.d.ts +47 -0
  86. package/dist/tools/metadataRead.js +52 -0
  87. package/dist/tools/metadataRead.js.map +1 -0
  88. package/dist/tools/metadataTypeSchema.d.ts +44 -0
  89. package/dist/tools/metadataTypeSchema.js +101 -0
  90. package/dist/tools/metadataTypeSchema.js.map +1 -0
  91. package/dist/tools/metadataWsdl.d.ts +19 -0
  92. package/dist/tools/metadataWsdl.js +1 -0
  93. package/dist/tools/objectManagement.d.ts +107 -0
  94. package/dist/tools/objectManagement.js +123 -0
  95. package/dist/tools/objectManagement.js.map +1 -0
  96. package/dist/tools/objectPermissions.d.ts +101 -0
  97. package/dist/tools/objectPermissions.js +157 -0
  98. package/dist/tools/objectPermissions.js.map +1 -0
  99. package/dist/tools/objectSchema.d.ts +37 -0
  100. package/dist/tools/objectSchema.js +66 -0
  101. package/dist/tools/objectSchema.js.map +1 -0
  102. package/dist/tools/objectSearch.d.ts +37 -0
  103. package/dist/tools/objectSearch.js +44 -0
  104. package/dist/tools/objectSearch.js.map +1 -0
  105. package/dist/tools/packageStatus.d.ts +24 -0
  106. package/dist/tools/packageStatus.js +1 -0
  107. package/dist/tools/permissionSetAssignment.d.ts +39 -0
  108. package/dist/tools/permissionSetAssignment.js +1 -0
  109. package/dist/tools/readApexClasses.d.ts +50 -0
  110. package/dist/tools/readApexClasses.js +83 -0
  111. package/dist/tools/readApexClasses.js.map +1 -0
  112. package/dist/tools/readApexTriggers.d.ts +50 -0
  113. package/dist/tools/readApexTriggers.js +82 -0
  114. package/dist/tools/readApexTriggers.js.map +1 -0
  115. package/dist/tools/recordPicker.d.ts +48 -0
  116. package/dist/tools/recordPicker.js +1 -0
  117. package/dist/tools/recordQuery.d.ts +68 -0
  118. package/dist/tools/recordQuery.js +131 -0
  119. package/dist/tools/recordQuery.js.map +1 -0
  120. package/dist/tools/retrieveJobStatus.d.ts +51 -0
  121. package/dist/tools/retrieveJobStatus.js +192 -0
  122. package/dist/tools/retrieveJobStatus.js.map +1 -0
  123. package/dist/tools/retrieveMetadata.d.ts +79 -0
  124. package/dist/tools/retrieveMetadata.js +225 -0
  125. package/dist/tools/retrieveMetadata.js.map +1 -0
  126. package/dist/tools/retrievePackage.d.ts +37 -0
  127. package/dist/tools/retrievePackage.js +1 -0
  128. package/dist/tools/salesforceLogin.d.ts +36 -0
  129. package/dist/tools/salesforceLogin.js +75 -0
  130. package/dist/tools/salesforceLogin.js.map +1 -0
  131. package/dist/tools/selectOrg.d.ts +25 -0
  132. package/dist/tools/selectOrg.js +91 -0
  133. package/dist/tools/selectOrg.js.map +1 -0
  134. package/dist/tools/toolingQuery.d.ts +37 -0
  135. package/dist/tools/toolingQuery.js +54 -0
  136. package/dist/tools/toolingQuery.js.map +1 -0
  137. package/dist/tools/userPermissions.d.ts +76 -0
  138. package/dist/tools/userPermissions.js +130 -0
  139. package/dist/tools/userPermissions.js.map +1 -0
  140. package/dist/tools/versionMetadataComplete.d.ts +45 -0
  141. package/dist/tools/versionMetadataComplete.js +1 -0
  142. package/dist/tools/versionMetadataStart.d.ts +25 -0
  143. package/dist/tools/versionMetadataStart.js +1 -0
  144. package/dist/tools/versionMetadataStatus.d.ts +25 -0
  145. package/dist/tools/versionMetadataStatus.js +1 -0
  146. package/dist/tools/writeApexClasses.d.ts +64 -0
  147. package/dist/tools/writeApexClasses.js +79 -0
  148. package/dist/tools/writeApexClasses.js.map +1 -0
  149. package/dist/tools/writeApexTriggers.d.ts +71 -0
  150. package/dist/tools/writeApexTriggers.js +96 -0
  151. package/dist/tools/writeApexTriggers.js.map +1 -0
  152. package/dist/types/connection.d.ts +20 -0
  153. package/dist/types/connection.js +9 -0
  154. package/dist/types/connection.js.map +1 -0
  155. package/dist/types/index.d.ts +3 -0
  156. package/dist/types/index.js +4 -0
  157. package/dist/types/index.js.map +1 -0
  158. package/dist/types/metadata.d.ts +44 -0
  159. package/dist/types/metadata.js +2 -0
  160. package/dist/types/metadata.js.map +1 -0
  161. package/dist/types/salesforce.d.ts +38 -0
  162. package/dist/types/salesforce.js +2 -0
  163. package/dist/types/salesforce.js.map +1 -0
  164. package/dist/utils/apexContainer.d.ts +18 -0
  165. package/dist/utils/apexContainer.js +79 -0
  166. package/dist/utils/apexContainer.js.map +1 -0
  167. package/dist/utils/connection.d.ts +3 -0
  168. package/dist/utils/connection.js +135 -0
  169. package/dist/utils/connection.js.map +1 -0
  170. package/dist/utils/decomposePermissions.d.ts +16 -0
  171. package/dist/utils/decomposePermissions.js +188 -0
  172. package/dist/utils/decomposePermissions.js.map +1 -0
  173. package/dist/utils/dxPathMapper.d.ts +16 -0
  174. package/dist/utils/dxPathMapper.js +217 -0
  175. package/dist/utils/dxPathMapper.js.map +1 -0
  176. package/dist/utils/errors.d.ts +8 -0
  177. package/dist/utils/errors.js +40 -0
  178. package/dist/utils/errors.js.map +1 -0
  179. package/dist/utils/index.d.ts +2 -0
  180. package/dist/utils/index.js +3 -0
  181. package/dist/utils/index.js.map +1 -0
  182. package/dist/utils/oauthWebFlow.d.ts +8 -0
  183. package/dist/utils/oauthWebFlow.js +172 -0
  184. package/dist/utils/oauthWebFlow.js.map +1 -0
  185. package/dist/utils/packageJobs.d.ts +17 -0
  186. package/dist/utils/packageJobs.js +1 -0
  187. package/dist/utils/packageXml.d.ts +18 -0
  188. package/dist/utils/packageXml.js +1 -0
  189. package/dist/utils/permissionSetResolver.d.ts +14 -0
  190. package/dist/utils/permissionSetResolver.js +1 -0
  191. package/dist/utils/preSelectMatcher.d.ts +18 -0
  192. package/dist/utils/preSelectMatcher.js +1 -0
  193. package/dist/utils/profileCleanup.d.ts +18 -0
  194. package/dist/utils/profileCleanup.js +1 -0
  195. package/dist/utils/retrieveStore.d.ts +12 -0
  196. package/dist/utils/retrieveStore.js +1 -0
  197. package/dist/utils/sfCli.d.ts +18 -0
  198. package/dist/utils/sfCli.js +130 -0
  199. package/dist/utils/sfCli.js.map +1 -0
  200. package/dist/utils/tokenBroker.d.ts +13 -0
  201. package/dist/utils/tokenBroker.js +73 -0
  202. package/dist/utils/tokenBroker.js.map +1 -0
  203. package/package.json +54 -0
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Metadata Diff</title>
7
+ <script type="module" crossorigin>(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const m of r)if(m.type==="childList")for(const d of m.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&c(d)}).observe(document,{childList:!0,subtree:!0});function o(r){const m={};return r.integrity&&(m.integrity=r.integrity),r.referrerPolicy&&(m.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?m.credentials="include":r.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(r){if(r.ep)return;r.ep=!0;const m=o(r);fetch(r.href,m)}})();var Rs={exports:{}},mi={};var _h;function Mv(){if(_h)return mi;_h=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,r,m){var d=null;if(m!==void 0&&(d=""+m),r.key!==void 0&&(d=""+r.key),"key"in r){m={};for(var p in r)p!=="key"&&(m[p]=r[p])}else m=r;return r=m.ref,{$$typeof:a,type:c,key:d,ref:r!==void 0?r:null,props:m}}return mi.Fragment=i,mi.jsx=o,mi.jsxs=o,mi}var zh;function wv(){return zh||(zh=1,Rs.exports=Mv()),Rs.exports}var q=wv(),Cs={exports:{}},ee={};var Th;function Nv(){if(Th)return ee;Th=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),N=Symbol.iterator;function H(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W=Object.assign,ve={};function Ye(S,j,L){this.props=S,this.context=j,this.refs=ve,this.updater=L||I}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,j,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function ue(){}ue.prototype=Ye.prototype;function F(S,j,L){this.props=S,this.context=j,this.refs=ve,this.updater=L||I}var ce=F.prototype=new ue;ce.constructor=F,W(ce,Ye.prototype),ce.isPureReactComponent=!0;var xe=Array.isArray;function lt(){}var te={H:null,A:null,T:null,S:null},pt=Object.prototype.hasOwnProperty;function Yt(S,j,L){var Q=L.ref;return{$$typeof:a,type:S,key:j,ref:Q!==void 0?Q:null,props:L}}function Cn(S,j){return Yt(S.type,j,S.props)}function Gt(S){return typeof S=="object"&&S!==null&&S.$$typeof===a}function gt(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(L){return j[L]})}var Y=/\/+/g;function oe(S,j){return typeof S=="object"&&S!==null&&S.key!=null?gt(""+S.key):j.toString(36)}function se(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(lt,lt):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function w(S,j,L,Q,ne){var fe=typeof S;(fe==="undefined"||fe==="boolean")&&(S=null);var Ae=!1;if(S===null)Ae=!0;else switch(fe){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(S.$$typeof){case a:case i:Ae=!0;break;case A:return Ae=S._init,w(Ae(S._payload),j,L,Q,ne)}}if(Ae)return ne=ne(S),Ae=Q===""?"."+oe(S,0):Q,xe(ne)?(L="",Ae!=null&&(L=Ae.replace(Y,"$&/")+"/"),w(ne,j,L,"",function(Sl){return Sl})):ne!=null&&(Gt(ne)&&(ne=Cn(ne,L+(ne.key==null||S&&S.key===ne.key?"":(""+ne.key).replace(Y,"$&/")+"/")+Ae)),j.push(ne)),1;Ae=0;var vt=Q===""?".":Q+":";if(xe(S))for(var Ke=0;Ke<S.length;Ke++)Q=S[Ke],fe=vt+oe(Q,Ke),Ae+=w(Q,j,L,fe,ne);else if(Ke=H(S),typeof Ke=="function")for(S=Ke.call(S),Ke=0;!(Q=S.next()).done;)Q=Q.value,fe=vt+oe(Q,Ke++),Ae+=w(Q,j,L,fe,ne);else if(fe==="object"){if(typeof S.then=="function")return w(se(S),j,L,Q,ne);throw j=String(S),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function B(S,j,L){if(S==null)return S;var Q=[],ne=0;return w(S,Q,"","",function(fe){return j.call(L,fe,ne++)}),Q}function J(S){if(S._status===-1){var j=S._result;j=j(),j.then(function(L){(S._status===0||S._status===-1)&&(S._status=1,S._result=L)},function(L){(S._status===0||S._status===-1)&&(S._status=2,S._result=L)}),S._status===-1&&(S._status=0,S._result=j)}if(S._status===1)return S._result.default;throw S._result}var Te=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},le={map:B,forEach:function(S,j,L){B(S,function(){j.apply(this,arguments)},L)},count:function(S){var j=0;return B(S,function(){j++}),j},toArray:function(S){return B(S,function(j){return j})||[]},only:function(S){if(!Gt(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ee.Activity=R,ee.Children=le,ee.Component=Ye,ee.Fragment=o,ee.Profiler=r,ee.PureComponent=F,ee.StrictMode=c,ee.Suspense=y,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,ee.__COMPILER_RUNTIME={__proto__:null,c:function(S){return te.H.useMemoCache(S)}},ee.cache=function(S){return function(){return S.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(S,j,L){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Q=W({},S.props),ne=S.key;if(j!=null)for(fe in j.key!==void 0&&(ne=""+j.key),j)!pt.call(j,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&j.ref===void 0||(Q[fe]=j[fe]);var fe=arguments.length-2;if(fe===1)Q.children=L;else if(1<fe){for(var Ae=Array(fe),vt=0;vt<fe;vt++)Ae[vt]=arguments[vt+2];Q.children=Ae}return Yt(S.type,ne,Q)},ee.createContext=function(S){return S={$$typeof:d,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ee.createElement=function(S,j,L){var Q,ne={},fe=null;if(j!=null)for(Q in j.key!==void 0&&(fe=""+j.key),j)pt.call(j,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ne[Q]=j[Q]);var Ae=arguments.length-2;if(Ae===1)ne.children=L;else if(1<Ae){for(var vt=Array(Ae),Ke=0;Ke<Ae;Ke++)vt[Ke]=arguments[Ke+2];ne.children=vt}if(S&&S.defaultProps)for(Q in Ae=S.defaultProps,Ae)ne[Q]===void 0&&(ne[Q]=Ae[Q]);return Yt(S,fe,ne)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(S){return{$$typeof:p,render:S}},ee.isValidElement=Gt,ee.lazy=function(S){return{$$typeof:A,_payload:{_status:-1,_result:S},_init:J}},ee.memo=function(S,j){return{$$typeof:g,type:S,compare:j===void 0?null:j}},ee.startTransition=function(S){var j=te.T,L={};te.T=L;try{var Q=S(),ne=te.S;ne!==null&&ne(L,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(lt,Te)}catch(fe){Te(fe)}finally{j!==null&&L.types!==null&&(j.types=L.types),te.T=j}},ee.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},ee.use=function(S){return te.H.use(S)},ee.useActionState=function(S,j,L){return te.H.useActionState(S,j,L)},ee.useCallback=function(S,j){return te.H.useCallback(S,j)},ee.useContext=function(S){return te.H.useContext(S)},ee.useDebugValue=function(){},ee.useDeferredValue=function(S,j){return te.H.useDeferredValue(S,j)},ee.useEffect=function(S,j){return te.H.useEffect(S,j)},ee.useEffectEvent=function(S){return te.H.useEffectEvent(S)},ee.useId=function(){return te.H.useId()},ee.useImperativeHandle=function(S,j,L){return te.H.useImperativeHandle(S,j,L)},ee.useInsertionEffect=function(S,j){return te.H.useInsertionEffect(S,j)},ee.useLayoutEffect=function(S,j){return te.H.useLayoutEffect(S,j)},ee.useMemo=function(S,j){return te.H.useMemo(S,j)},ee.useOptimistic=function(S,j){return te.H.useOptimistic(S,j)},ee.useReducer=function(S,j,L){return te.H.useReducer(S,j,L)},ee.useRef=function(S){return te.H.useRef(S)},ee.useState=function(S){return te.H.useState(S)},ee.useSyncExternalStore=function(S,j,L){return te.H.useSyncExternalStore(S,j,L)},ee.useTransition=function(){return te.H.useTransition()},ee.version="19.2.4",ee}var Eh;function Gs(){return Eh||(Eh=1,Cs.exports=Nv()),Cs.exports}var Se=Gs(),Ms={exports:{}},hi={},ws={exports:{}},Ns={};var xh;function Dv(){return xh||(xh=1,(function(a){function i(w,B){var J=w.length;w.push(B);e:for(;0<J;){var Te=J-1>>>1,le=w[Te];if(0<r(le,B))w[Te]=B,w[J]=le,J=Te;else break e}}function o(w){return w.length===0?null:w[0]}function c(w){if(w.length===0)return null;var B=w[0],J=w.pop();if(J!==B){w[0]=J;e:for(var Te=0,le=w.length,S=le>>>1;Te<S;){var j=2*(Te+1)-1,L=w[j],Q=j+1,ne=w[Q];if(0>r(L,J))Q<le&&0>r(ne,L)?(w[Te]=ne,w[Q]=J,Te=Q):(w[Te]=L,w[j]=J,Te=j);else if(Q<le&&0>r(ne,J))w[Te]=ne,w[Q]=J,Te=Q;else break e}}return B}function r(w,B){var J=w.sortIndex-B.sortIndex;return J!==0?J:w.id-B.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var y=[],g=[],A=1,R=null,N=3,H=!1,I=!1,W=!1,ve=!1,Ye=typeof setTimeout=="function"?setTimeout:null,ue=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ce(w){for(var B=o(g);B!==null;){if(B.callback===null)c(g);else if(B.startTime<=w)c(g),B.sortIndex=B.expirationTime,i(y,B);else break;B=o(g)}}function xe(w){if(W=!1,ce(w),!I)if(o(y)!==null)I=!0,lt||(lt=!0,gt());else{var B=o(g);B!==null&&se(xe,B.startTime-w)}}var lt=!1,te=-1,pt=5,Yt=-1;function Cn(){return ve?!0:!(a.unstable_now()-Yt<pt)}function Gt(){if(ve=!1,lt){var w=a.unstable_now();Yt=w;var B=!0;try{e:{I=!1,W&&(W=!1,ue(te),te=-1),H=!0;var J=N;try{t:{for(ce(w),R=o(y);R!==null&&!(R.expirationTime>w&&Cn());){var Te=R.callback;if(typeof Te=="function"){R.callback=null,N=R.priorityLevel;var le=Te(R.expirationTime<=w);if(w=a.unstable_now(),typeof le=="function"){R.callback=le,ce(w),B=!0;break t}R===o(y)&&c(y),ce(w)}else c(y);R=o(y)}if(R!==null)B=!0;else{var S=o(g);S!==null&&se(xe,S.startTime-w),B=!1}}break e}finally{R=null,N=J,H=!1}B=void 0}}finally{B?gt():lt=!1}}}var gt;if(typeof F=="function")gt=function(){F(Gt)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,oe=Y.port2;Y.port1.onmessage=Gt,gt=function(){oe.postMessage(null)}}else gt=function(){Ye(Gt,0)};function se(w,B){te=Ye(function(){w(a.unstable_now())},B)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(w){w.callback=null},a.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pt=0<w?Math.floor(1e3/w):5},a.unstable_getCurrentPriorityLevel=function(){return N},a.unstable_next=function(w){switch(N){case 1:case 2:case 3:var B=3;break;default:B=N}var J=N;N=B;try{return w()}finally{N=J}},a.unstable_requestPaint=function(){ve=!0},a.unstable_runWithPriority=function(w,B){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var J=N;N=w;try{return B()}finally{N=J}},a.unstable_scheduleCallback=function(w,B,J){var Te=a.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Te+J:Te):J=Te,w){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=J+le,w={id:A++,callback:B,priorityLevel:w,startTime:J,expirationTime:le,sortIndex:-1},J>Te?(w.sortIndex=J,i(g,w),o(y)===null&&w===o(g)&&(W?(ue(te),te=-1):W=!0,se(xe,J-Te))):(w.sortIndex=le,i(y,w),I||H||(I=!0,lt||(lt=!0,gt()))),w},a.unstable_shouldYield=Cn,a.unstable_wrapCallback=function(w){var B=N;return function(){var J=N;N=B;try{return w.apply(this,arguments)}finally{N=J}}}})(Ns)),Ns}var Ah;function kv(){return Ah||(Ah=1,ws.exports=Dv()),ws.exports}var Ds={exports:{}},yt={};var Oh;function Uv(){if(Oh)return yt;Oh=1;var a=Gs();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function m(y,g,A){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:R==null?null:""+R,children:y,containerInfo:g,implementation:A}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,yt.createPortal=function(y,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return m(y,g,null,A)},yt.flushSync=function(y){var g=d.T,A=c.p;try{if(d.T=null,c.p=2,y)return y()}finally{d.T=g,c.p=A,c.d.f()}},yt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(y,g))},yt.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},yt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var A=g.as,R=p(A,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,H=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?c.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:R,integrity:N,fetchPriority:H}):A==="script"&&c.d.X(y,{crossOrigin:R,integrity:N,fetchPriority:H,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},yt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=p(g.as,g.crossOrigin);c.d.M(y,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&c.d.M(y)},yt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,R=p(A,g.crossOrigin);c.d.L(y,A,{crossOrigin:R,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},yt.preloadModule=function(y,g){if(typeof y=="string")if(g){var A=p(g.as,g.crossOrigin);c.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else c.d.m(y)},yt.requestFormReset=function(y){c.d.r(y)},yt.unstable_batchedUpdates=function(y,g){return y(g)},yt.useFormState=function(y,g,A){return d.H.useFormState(y,g,A)},yt.useFormStatus=function(){return d.H.useHostTransitionStatus()},yt.version="19.2.4",yt}var Rh;function Zv(){if(Rh)return Ds.exports;Rh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ds.exports=Uv(),Ds.exports}var Ch;function jv(){if(Ch)return hi;Ch=1;var a=kv(),i=Gs(),o=Zv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function 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 p(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 y(e){if(m(e)!==e)throw Error(c(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var u=n.return;if(u===null)break;var s=u.alternate;if(s===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===n)return y(u),e;if(s===l)return y(u),t;s=s.sibling}throw Error(c(188))}if(n.return!==l.return)n=u,l=s;else{for(var f=!1,h=u.child;h;){if(h===n){f=!0,n=u,l=s;break}if(h===l){f=!0,l=u,n=s;break}h=h.sibling}if(!f){for(h=s.child;h;){if(h===n){f=!0,n=s,l=u;break}if(h===l){f=!0,l=s,n=u;break}h=h.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?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 R=Object.assign,N=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Ye=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),Yt=Symbol.for("react.activity"),Cn=Symbol.for("react.memo_cache_sentinel"),Gt=Symbol.iterator;function gt(e){return e===null||typeof e!="object"?null:(e=Gt&&e[Gt]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case Ye:return"Profiler";case ve:return"StrictMode";case xe:return"Suspense";case lt:return"SuspenseList";case Yt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case I:return"Portal";case F:return e.displayName||"Context";case ue:return(e._context.displayName||"Context")+".Consumer";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},Te=[],le=-1;function S(e){return{current:e}}function j(e){0>le||(e.current=Te[le],Te[le]=null,le--)}function L(e,t){le++,Te[le]=e.current,e.current=t}var Q=S(null),ne=S(null),fe=S(null),Ae=S(null);function vt(e,t){switch(L(fe,t),L(ne,e),L(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qm(t),e=Vm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(Q),L(Q,e)}function Ke(){j(Q),j(ne),j(fe)}function Sl(e){e.memoizedState!==null&&L(Ae,e);var t=Q.current,n=Vm(t,e.type);t!==n&&(L(ne,e),L(Q,n))}function Oi(e){ne.current===e&&(j(Q),j(ne)),Ae.current===e&&(j(Ae),si._currentValue=J)}var so,br;function ua(e){if(so===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);so=t&&t[1]||"",br=-1<n.stack.indexOf(`
8
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
9
+ `+so+e+br}var ro=!1;function fo(e,t){if(!e||ro)return"";ro=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(C){var O=C}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(C){O=C}e.call(Z.prototype)}}else{try{throw Error()}catch(C){O=C}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(C){if(C&&O&&typeof C.stack=="string")return[C.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),f=s[0],h=s[1];if(f&&h){var v=f.split(`
10
+ `),E=h.split(`
11
+ `);for(u=l=0;l<v.length&&!v[l].includes("DetermineComponentFrameRoot");)l++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(l===v.length||u===E.length)for(l=v.length-1,u=E.length-1;1<=l&&0<=u&&v[l]!==E[u];)u--;for(;1<=l&&0<=u;l--,u--)if(v[l]!==E[u]){if(l!==1||u!==1)do if(l--,u--,0>u||v[l]!==E[u]){var D=`
12
+ `+v[l].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=l&&0<=u);break}}}finally{ro=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ua(n):""}function og(e,t){switch(e.tag){case 26:case 27:case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return e.child!==t&&t!==null?ua("Suspense Fallback"):ua("Suspense");case 19:return ua("SuspenseList");case 0:case 15:return fo(e.type,!1);case 11:return fo(e.type.render,!1);case 1:return fo(e.type,!0);case 31:return ua("Activity");default:return""}}function Sr(e){try{var t="",n=null;do t+=og(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
13
+ Error generating stack: `+l.message+`
14
+ `+l.stack}}var mo=Object.prototype.hasOwnProperty,ho=a.unstable_scheduleCallback,po=a.unstable_cancelCallback,cg=a.unstable_shouldYield,sg=a.unstable_requestPaint,Mt=a.unstable_now,rg=a.unstable_getCurrentPriorityLevel,_r=a.unstable_ImmediatePriority,zr=a.unstable_UserBlockingPriority,Ri=a.unstable_NormalPriority,fg=a.unstable_LowPriority,Tr=a.unstable_IdlePriority,dg=a.log,mg=a.unstable_setDisableYieldValue,_l=null,wt=null;function Mn(e){if(typeof dg=="function"&&mg(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(_l,e)}catch{}}var Nt=Math.clz32?Math.clz32:gg,hg=Math.log,pg=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(hg(e)/pg|0)|0}var Ci=256,Mi=262144,wi=4194304;function oa(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 Ni(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var u=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?u=oa(l):(f&=h,f!==0?u=oa(f):n||(n=h&~e,n!==0&&(u=oa(n))))):(h=l&~s,h!==0?u=oa(h):f!==0?u=oa(f):n||(n=l&~e,n!==0&&(u=oa(n)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:u}function zl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yg(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 Er(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vg(e,t,n,l,u,s){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var h=e.entanglements,v=e.expirationTimes,E=e.hiddenUpdates;for(n=f&~n;0<n;){var D=31-Nt(n),Z=1<<D;h[D]=0,v[D]=-1;var O=E[D];if(O!==null)for(E[D]=null,D=0;D<O.length;D++){var C=O[D];C!==null&&(C.lane&=-536870913)}n&=~Z}l!==0&&xr(e,l,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function xr(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Nt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ar(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Nt(n),u=1<<l;u&t|e[l]&t&&(e[l]|=t),n&=~u}}function Or(e,t){var n=t&-t;return n=(n&42)!==0?1:yo(n),(n&(e.suspendedLanes|t))!==0?0:n}function yo(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 vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rr(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:hh(e.type))}function Cr(e,t){var n=B.p;try{return B.p=e,t()}finally{B.p=n}}var wn=Math.random().toString(36).slice(2),ot="__reactFiber$"+wn,_t="__reactProps$"+wn,Ra="__reactContainer$"+wn,bo="__reactEvents$"+wn,bg="__reactListeners$"+wn,Sg="__reactHandles$"+wn,Mr="__reactResources$"+wn,El="__reactMarker$"+wn;function So(e){delete e[ot],delete e[_t],delete e[bo],delete e[bg],delete e[Sg]}function Ca(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ra]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fm(e);e!==null;){if(n=e[ot])return n;e=Fm(e)}return t}e=n,n=e.parentNode}return null}function Ma(e){if(e=e[ot]||e[Ra]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function wa(e){var t=e[Mr];return t||(t=e[Mr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[El]=!0}var wr=new Set,Nr={};function ca(e,t){Na(e,t),Na(e+"Capture",t)}function Na(e,t){for(Nr[e]=t,e=0;e<t.length;e++)wr.add(t[e])}var _g=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]*$"),Dr={},kr={};function zg(e){return mo.call(kr,e)?!0:mo.call(Dr,e)?!1:_g.test(e)?kr[e]=!0:(Dr[e]=!0,!1)}function Di(e,t,n){if(zg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ki(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ur(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tg(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(f){n=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _o(e){if(!e._valueTracker){var t=Ur(e)?"checked":"value";e._valueTracker=Tg(e,t,""+e[t])}}function Zr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Ur(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ui(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 Eg=/[\n"\\]/g;function Vt(e){return e.replace(Eg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zo(e,t,n,l,u,s,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?To(e,f,Qt(t)):n!=null?To(e,f,Qt(n)):l!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Qt(h):e.removeAttribute("name")}function jr(e,t,n,l,u,s,f,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){_o(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),_o(e)}function To(e,t,n){t==="number"&&Ui(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Da(e,t,n,l){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function qr(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Hr(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(se(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),_o(e)}function ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xg=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 Br(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||xg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lr(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&n[u]!==l&&Br(e,u,l)}else for(var s in t)t.hasOwnProperty(s)&&Br(e,s,t[s])}function Eo(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 Ag=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"]]),Og=/^[\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 Zi(e){return Og.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var xo=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Za=null;function Yr(e){var t=Ma(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(zo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var u=l[_t]||null;if(!u)throw Error(c(90));zo(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Zr(l)}break e;case"textarea":qr(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Da(e,!!n.multiple,t,!1)}}}var Oo=!1;function Gr(e,t,n){if(Oo)return e(t,n);Oo=!0;try{var l=e(t);return l}finally{if(Oo=!1,(Ua!==null||Za!==null)&&(Tu(),Ua&&(t=Ua,e=Za,Za=Ua=null,Yr(t),e)))for(t=0;t<e.length;t++)Yr(e[t])}}function Al(e,t){var n=e.stateNode;if(n===null)return null;var l=n[_t]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=!1;if(mn)try{var Ol={};Object.defineProperty(Ol,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",Ol,Ol),window.removeEventListener("test",Ol,Ol)}catch{Ro=!1}var Nn=null,Co=null,ji=null;function Qr(){if(ji)return ji;var e,t=Co,n=t.length,l,u="value"in Nn?Nn.value:Nn.textContent,s=u.length;for(e=0;e<n&&t[e]===u[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===u[s-l];l++);return ji=u.slice(e,1<l?1-l:void 0)}function qi(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 Hi(){return!0}function Vr(){return!1}function zt(e){function t(n,l,u,s,f){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Hi:Vr,this.isPropagationStopped=Vr,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),t}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bi=zt(sa),Rl=R({},sa,{view:0,detail:0}),Rg=zt(Rl),Mo,wo,Cl,Li=R({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==Cl&&(Cl&&e.type==="mousemove"?(Mo=e.screenX-Cl.screenX,wo=e.screenY-Cl.screenY):wo=Mo=0,Cl=e),Mo)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),Xr=zt(Li),Cg=R({},Li,{dataTransfer:0}),Mg=zt(Cg),wg=R({},Rl,{relatedTarget:0}),No=zt(wg),Ng=R({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Dg=zt(Ng),kg=R({},sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ug=zt(kg),Zg=R({},sa,{data:0}),$r=zt(Zg),jg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qg={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hg[e])?!!t[e]:!1}function Do(){return Bg}var Lg=R({},Rl,{key:function(e){if(e.key){var t=jg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yg=zt(Lg),Gg=R({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jr=zt(Gg),Qg=R({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),Vg=zt(Qg),Xg=R({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),$g=zt(Xg),Jg=R({},Li,{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}),Kg=zt(Jg),Ig=R({},sa,{newState:0,oldState:0}),Wg=zt(Ig),Fg=[9,13,27,32],ko=mn&&"CompositionEvent"in window,Ml=null;mn&&"documentMode"in document&&(Ml=document.documentMode);var Pg=mn&&"TextEvent"in window&&!Ml,Kr=mn&&(!ko||Ml&&8<Ml&&11>=Ml),Ir=" ",Wr=!1;function Fr(e,t){switch(e){case"keyup":return Fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ja=!1;function ey(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Wr=!0,Ir);case"textInput":return e=t.data,e===Ir&&Wr?null:e;default:return null}}function ty(e,t){if(ja)return e==="compositionend"||!ko&&Fr(e,t)?(e=Qr(),ji=Co=Nn=null,ja=!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 Kr&&t.locale!=="ko"?null:t.data;default:return null}}var ny={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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ny[e.type]:t==="textarea"}function tf(e,t,n,l){Ua?Za?Za.push(l):Za=[l]:Ua=l,t=Mu(t,"onChange"),0<t.length&&(n=new Bi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var wl=null,Nl=null;function ay(e){qm(e,0)}function Yi(e){var t=xl(e);if(Zr(t))return e}function nf(e,t){if(e==="change")return t}var af=!1;if(mn){var Uo;if(mn){var Zo="oninput"in document;if(!Zo){var lf=document.createElement("div");lf.setAttribute("oninput","return;"),Zo=typeof lf.oninput=="function"}Uo=Zo}else Uo=!1;af=Uo&&(!document.documentMode||9<document.documentMode)}function uf(){wl&&(wl.detachEvent("onpropertychange",of),Nl=wl=null)}function of(e){if(e.propertyName==="value"&&Yi(Nl)){var t=[];tf(t,Nl,e,Ao(e)),Gr(ay,t)}}function ly(e,t,n){e==="focusin"?(uf(),wl=t,Nl=n,wl.attachEvent("onpropertychange",of)):e==="focusout"&&uf()}function iy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(Nl)}function uy(e,t){if(e==="click")return Yi(t)}function oy(e,t){if(e==="input"||e==="change")return Yi(t)}function cy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:cy;function Dl(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var u=n[l];if(!mo.call(t,u)||!Dt(e[u],t[u]))return!1}return!0}function cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sf(e,t){var n=cf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cf(n)}}function rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ui(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function jo(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 sy=mn&&"documentMode"in document&&11>=document.documentMode,qa=null,qo=null,kl=null,Ho=!1;function df(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ho||qa==null||qa!==Ui(l)||(l=qa,"selectionStart"in l&&jo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),kl&&Dl(kl,l)||(kl=l,l=Mu(qo,"onSelect"),0<l.length&&(t=new Bi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=qa)))}function ra(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ha={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},Bo={},mf={};mn&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function fa(e){if(Bo[e])return Bo[e];if(!Ha[e])return e;var t=Ha[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mf)return Bo[e]=t[n];return e}var hf=fa("animationend"),pf=fa("animationiteration"),gf=fa("animationstart"),ry=fa("transitionrun"),fy=fa("transitionstart"),dy=fa("transitioncancel"),yf=fa("transitionend"),vf=new Map,Lo="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(" ");Lo.push("scrollEnd");function an(e,t){vf.set(e,t),ca(t,[e])}var Gi=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)},Xt=[],Ba=0,Yo=0;function Qi(){for(var e=Ba,t=Yo=Ba=0;t<e;){var n=Xt[t];Xt[t++]=null;var l=Xt[t];Xt[t++]=null;var u=Xt[t];Xt[t++]=null;var s=Xt[t];if(Xt[t++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}s!==0&&bf(n,u,s)}}function Vi(e,t,n,l){Xt[Ba++]=e,Xt[Ba++]=t,Xt[Ba++]=n,Xt[Ba++]=l,Yo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Go(e,t,n,l){return Vi(e,t,n,l),Xi(e)}function da(e,t){return Vi(e,null,null,t),Xi(e)}function bf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var u=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-Nt(n),e=s.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=n|536870912),s):null}function Xi(e){if(50<ni)throw ni=0,Fc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var La={};function my(e,t,n,l){this.tag=e,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,l){return new my(e,t,n,l)}function Qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Sf(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $i(e,t,n,l,u,s){var f=0;if(l=e,typeof e=="function")Qo(e)&&(f=1);else if(typeof e=="string")f=vv(e,n,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yt:return e=kt(31,n,t,u),e.elementType=Yt,e.lanes=s,e;case W:return ma(n.children,u,s,t);case ve:f=8,u|=24;break;case Ye:return e=kt(12,n,t,u|2),e.elementType=Ye,e.lanes=s,e;case xe:return e=kt(13,n,t,u),e.elementType=xe,e.lanes=s,e;case lt:return e=kt(19,n,t,u),e.elementType=lt,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:f=10;break e;case ue:f=9;break e;case ce:f=11;break e;case te:f=14;break e;case pt:f=16,l=null;break e}f=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=kt(f,n,t,u),t.elementType=e,t.type=l,t.lanes=s,t}function ma(e,t,n,l){return e=kt(7,e,l,t),e.lanes=n,e}function Vo(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function _f(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zf=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var n=zf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Sr(t)},zf.set(e,t),t)}return{value:e,source:t,stack:Sr(t)}}var Ya=[],Ga=0,Ji=null,Ul=0,Jt=[],Kt=0,Dn=null,on=1,cn="";function pn(e,t){Ya[Ga++]=Ul,Ya[Ga++]=Ji,Ji=e,Ul=t}function Tf(e,t,n){Jt[Kt++]=on,Jt[Kt++]=cn,Jt[Kt++]=Dn,Dn=e;var l=on;e=cn;var u=32-Nt(l)-1;l&=~(1<<u),n+=1;var s=32-Nt(t)+u;if(30<s){var f=u-u%5;s=(l&(1<<f)-1).toString(32),l>>=f,u-=f,on=1<<32-Nt(t)+u|n<<u|l,cn=s+e}else on=1<<s|n<<u|l,cn=e}function $o(e){e.return!==null&&(pn(e,1),Tf(e,1,0))}function Jo(e){for(;e===Ji;)Ji=Ya[--Ga],Ya[Ga]=null,Ul=Ya[--Ga],Ya[Ga]=null;for(;e===Dn;)Dn=Jt[--Kt],Jt[Kt]=null,cn=Jt[--Kt],Jt[Kt]=null,on=Jt[--Kt],Jt[Kt]=null}function Ef(e,t){Jt[Kt++]=on,Jt[Kt++]=cn,Jt[Kt++]=Dn,on=t.id,cn=t.overflow,Dn=e}var ct=null,qe=null,ye=!1,kn=null,It=!1,Ko=Error(c(519));function Un(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zl($t(t,e)),Ko}function xf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ot]=e,t[_t]=l,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<li.length;n++)me(li[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),jr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Hr(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Ym(t.textContent,n)?(l.popover!=null&&(me("beforetoggle",t),me("toggle",t)),l.onScroll!=null&&me("scroll",t),l.onScrollEnd!=null&&me("scrollend",t),l.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||Un(e,!0)}function Af(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:ct=ct.return}}function Qa(e){if(e!==ct)return!1;if(!ye)return Af(e),ye=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ms(e.type,e.memoizedProps)),n=!n),n&&qe&&Un(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=Wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=Wm(e)}else t===27?(t=qe,Kn(e.type)?(e=vs,vs=null,qe=e):qe=t):qe=ct?Ft(e.stateNode.nextSibling):null;return!0}function ha(){qe=ct=null,ye=!1}function Io(){var e=kn;return e!==null&&(At===null?At=e:At.push.apply(At,e),kn=null),e}function Zl(e){kn===null?kn=[e]:kn.push(e)}var Wo=S(null),pa=null,gn=null;function Zn(e,t,n){L(Wo,t._currentValue),t._currentValue=n}function yn(e){e._currentValue=Wo.current,j(Wo)}function Fo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Po(e,t,n,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var f=u.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=u;for(var v=0;v<t.length;v++)if(h.context===t[v]){s.lanes|=n,h=s.alternate,h!==null&&(h.lanes|=n),Fo(s.return,n,e),l||(f=null);break e}s=h.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=n,s=f.alternate,s!==null&&(s.lanes|=n),Fo(f,n,e),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===e){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Va(e,t,n,l){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var h=u.type;Dt(u.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(u===Ae.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(si):e=[si])}u=u.return}e!==null&&Po(t,e,n,l),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ga(e){pa=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Of(pa,e)}function Ii(e,t){return pa===null&&ga(e),Of(e,t)}function Of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gn===null){if(e===null)throw Error(c(308));gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gn=gn.next=t;return n}var hy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},py=a.unstable_scheduleCallback,gy=a.unstable_NormalPriority,Fe={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new hy,data:new Map,refCount:0}}function jl(e){e.refCount--,e.refCount===0&&py(gy,function(){e.controller.abort()})}var ql=null,tc=0,Xa=0,$a=null;function yy(e,t){if(ql===null){var n=ql=[];tc=0,Xa=ls(),$a={status:"pending",value:void 0,then:function(l){n.push(l)}}}return tc++,t.then(Rf,Rf),t}function Rf(){if(--tc===0&&ql!==null){$a!==null&&($a.status="fulfilled");var e=ql;ql=null,Xa=0,$a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vy(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var Cf=w.S;w.S=function(e,t){dm=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yy(e,t),Cf!==null&&Cf(e,t)};var ya=S(null);function nc(){var e=ya.current;return e!==null?e:Ue.pooledCache}function Wi(e,t){t===null?L(ya,ya.current):L(ya,t.pool)}function Mf(){var e=nc();return e===null?null:{parent:Fe._currentValue,pool:e}}var Ja=Error(c(460)),ac=Error(c(474)),Fi=Error(c(542)),Pi={then:function(){}};function wf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kf(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kf(e),e}throw ba=t,Ja}}function va(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ba=n,Ja):n}}var ba=null;function Df(){if(ba===null)throw Error(c(459));var e=ba;return ba=null,e}function kf(e){if(e===Ja||e===Fi)throw Error(c(483))}var Ka=null,Hl=0;function eu(e){var t=Hl;return Hl+=1,Ka===null&&(Ka=[]),Nf(Ka,e,t)}function Bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function tu(e,t){throw t.$$typeof===N?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uf(e){function t(_,b){if(e){var T=_.deletions;T===null?(_.deletions=[b],_.flags|=16):T.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function l(_){for(var b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function u(_,b){return _=hn(_,b),_.index=0,_.sibling=null,_}function s(_,b,T){return _.index=T,e?(T=_.alternate,T!==null?(T=T.index,T<b?(_.flags|=67108866,b):T):(_.flags|=67108866,b)):(_.flags|=1048576,b)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function h(_,b,T,U){return b===null||b.tag!==6?(b=Vo(T,_.mode,U),b.return=_,b):(b=u(b,T),b.return=_,b)}function v(_,b,T,U){var $=T.type;return $===W?D(_,b,T.props.children,U,T.key):b!==null&&(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===pt&&va($)===b.type)?(b=u(b,T.props),Bl(b,T),b.return=_,b):(b=$i(T.type,T.key,T.props,null,_.mode,U),Bl(b,T),b.return=_,b)}function E(_,b,T,U){return b===null||b.tag!==4||b.stateNode.containerInfo!==T.containerInfo||b.stateNode.implementation!==T.implementation?(b=Xo(T,_.mode,U),b.return=_,b):(b=u(b,T.children||[]),b.return=_,b)}function D(_,b,T,U,$){return b===null||b.tag!==7?(b=ma(T,_.mode,U,$),b.return=_,b):(b=u(b,T),b.return=_,b)}function Z(_,b,T){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Vo(""+b,_.mode,T),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case H:return T=$i(b.type,b.key,b.props,null,_.mode,T),Bl(T,b),T.return=_,T;case I:return b=Xo(b,_.mode,T),b.return=_,b;case pt:return b=va(b),Z(_,b,T)}if(se(b)||gt(b))return b=ma(b,_.mode,T,null),b.return=_,b;if(typeof b.then=="function")return Z(_,eu(b),T);if(b.$$typeof===F)return Z(_,Ii(_,b),T);tu(_,b)}return null}function O(_,b,T,U){var $=b!==null?b.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return $!==null?null:h(_,b,""+T,U);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case H:return T.key===$?v(_,b,T,U):null;case I:return T.key===$?E(_,b,T,U):null;case pt:return T=va(T),O(_,b,T,U)}if(se(T)||gt(T))return $!==null?null:D(_,b,T,U,null);if(typeof T.then=="function")return O(_,b,eu(T),U);if(T.$$typeof===F)return O(_,b,Ii(_,T),U);tu(_,T)}return null}function C(_,b,T,U,$){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return _=_.get(T)||null,h(b,_,""+U,$);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case H:return _=_.get(U.key===null?T:U.key)||null,v(b,_,U,$);case I:return _=_.get(U.key===null?T:U.key)||null,E(b,_,U,$);case pt:return U=va(U),C(_,b,T,U,$)}if(se(U)||gt(U))return _=_.get(T)||null,D(b,_,U,$,null);if(typeof U.then=="function")return C(_,b,T,eu(U),$);if(U.$$typeof===F)return C(_,b,T,Ii(b,U),$);tu(b,U)}return null}function G(_,b,T,U){for(var $=null,_e=null,V=b,ie=b=0,pe=null;V!==null&&ie<T.length;ie++){V.index>ie?(pe=V,V=null):pe=V.sibling;var ze=O(_,V,T[ie],U);if(ze===null){V===null&&(V=pe);break}e&&V&&ze.alternate===null&&t(_,V),b=s(ze,b,ie),_e===null?$=ze:_e.sibling=ze,_e=ze,V=pe}if(ie===T.length)return n(_,V),ye&&pn(_,ie),$;if(V===null){for(;ie<T.length;ie++)V=Z(_,T[ie],U),V!==null&&(b=s(V,b,ie),_e===null?$=V:_e.sibling=V,_e=V);return ye&&pn(_,ie),$}for(V=l(V);ie<T.length;ie++)pe=C(V,_,ie,T[ie],U),pe!==null&&(e&&pe.alternate!==null&&V.delete(pe.key===null?ie:pe.key),b=s(pe,b,ie),_e===null?$=pe:_e.sibling=pe,_e=pe);return e&&V.forEach(function(ea){return t(_,ea)}),ye&&pn(_,ie),$}function K(_,b,T,U){if(T==null)throw Error(c(151));for(var $=null,_e=null,V=b,ie=b=0,pe=null,ze=T.next();V!==null&&!ze.done;ie++,ze=T.next()){V.index>ie?(pe=V,V=null):pe=V.sibling;var ea=O(_,V,ze.value,U);if(ea===null){V===null&&(V=pe);break}e&&V&&ea.alternate===null&&t(_,V),b=s(ea,b,ie),_e===null?$=ea:_e.sibling=ea,_e=ea,V=pe}if(ze.done)return n(_,V),ye&&pn(_,ie),$;if(V===null){for(;!ze.done;ie++,ze=T.next())ze=Z(_,ze.value,U),ze!==null&&(b=s(ze,b,ie),_e===null?$=ze:_e.sibling=ze,_e=ze);return ye&&pn(_,ie),$}for(V=l(V);!ze.done;ie++,ze=T.next())ze=C(V,_,ie,ze.value,U),ze!==null&&(e&&ze.alternate!==null&&V.delete(ze.key===null?ie:ze.key),b=s(ze,b,ie),_e===null?$=ze:_e.sibling=ze,_e=ze);return e&&V.forEach(function(Cv){return t(_,Cv)}),ye&&pn(_,ie),$}function De(_,b,T,U){if(typeof T=="object"&&T!==null&&T.type===W&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case H:e:{for(var $=T.key;b!==null;){if(b.key===$){if($=T.type,$===W){if(b.tag===7){n(_,b.sibling),U=u(b,T.props.children),U.return=_,_=U;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===pt&&va($)===b.type){n(_,b.sibling),U=u(b,T.props),Bl(U,T),U.return=_,_=U;break e}n(_,b);break}else t(_,b);b=b.sibling}T.type===W?(U=ma(T.props.children,_.mode,U,T.key),U.return=_,_=U):(U=$i(T.type,T.key,T.props,null,_.mode,U),Bl(U,T),U.return=_,_=U)}return f(_);case I:e:{for($=T.key;b!==null;){if(b.key===$)if(b.tag===4&&b.stateNode.containerInfo===T.containerInfo&&b.stateNode.implementation===T.implementation){n(_,b.sibling),U=u(b,T.children||[]),U.return=_,_=U;break e}else{n(_,b);break}else t(_,b);b=b.sibling}U=Xo(T,_.mode,U),U.return=_,_=U}return f(_);case pt:return T=va(T),De(_,b,T,U)}if(se(T))return G(_,b,T,U);if(gt(T)){if($=gt(T),typeof $!="function")throw Error(c(150));return T=$.call(T),K(_,b,T,U)}if(typeof T.then=="function")return De(_,b,eu(T),U);if(T.$$typeof===F)return De(_,b,Ii(_,T),U);tu(_,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,b!==null&&b.tag===6?(n(_,b.sibling),U=u(b,T),U.return=_,_=U):(n(_,b),U=Vo(T,_.mode,U),U.return=_,_=U),f(_)):n(_,b)}return function(_,b,T,U){try{Hl=0;var $=De(_,b,T,U);return Ka=null,$}catch(V){if(V===Ja||V===Fi)throw V;var _e=kt(29,V,null,_.mode);return _e.lanes=U,_e.return=_,_e}}}var Sa=Uf(!0),Zf=Uf(!1),jn=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(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 qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Xi(e),bf(e,null,n),t}return Vi(e,l,t,n),Xi(e)}function Ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ar(e,n)}}function uc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?u=s=f:s=s.next=f,n=n.next}while(n!==null);s===null?u=s=t:s=s.next=t}else u=s=t;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var oc=!1;function Yl(){if(oc){var e=$a;if(e!==null)throw e}}function Gl(e,t,n,l){oc=!1;var u=e.updateQueue;jn=!1;var s=u.firstBaseUpdate,f=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var v=h,E=v.next;v.next=null,f===null?s=E:f.next=E,f=v;var D=e.alternate;D!==null&&(D=D.updateQueue,h=D.lastBaseUpdate,h!==f&&(h===null?D.firstBaseUpdate=E:h.next=E,D.lastBaseUpdate=v))}if(s!==null){var Z=u.baseState;f=0,D=E=v=null,h=s;do{var O=h.lane&-536870913,C=O!==h.lane;if(C?(he&O)===O:(l&O)===O){O!==0&&O===Xa&&(oc=!0),D!==null&&(D=D.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var G=e,K=h;O=t;var De=n;switch(K.tag){case 1:if(G=K.payload,typeof G=="function"){Z=G.call(De,Z,O);break e}Z=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=K.payload,O=typeof G=="function"?G.call(De,Z,O):G,O==null)break e;Z=R({},Z,O);break e;case 2:jn=!0}}O=h.callback,O!==null&&(e.flags|=64,C&&(e.flags|=8192),C=u.callbacks,C===null?u.callbacks=[O]:C.push(O))}else C={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},D===null?(E=D=C,v=Z):D=D.next=C,f|=O;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;C=h,h=C.next,C.next=null,u.lastBaseUpdate=C,u.shared.pending=null}}while(!0);D===null&&(v=Z),u.baseState=v,u.firstBaseUpdate=E,u.lastBaseUpdate=D,s===null&&(u.shared.lanes=0),Qn|=f,e.lanes=f,e.memoizedState=Z}}function jf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function qf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jf(n[e],t)}var Ia=S(null),nu=S(0);function Hf(e,t){e=An,L(nu,e),L(Ia,t),An=e|t.baseLanes}function cc(){L(nu,An),L(Ia,Ia.current)}function sc(){An=nu.current,j(Ia),j(nu)}var Ut=S(null),Wt=null;function Bn(e){var t=e.alternate;L(Ie,Ie.current&1),L(Ut,e),Wt===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(Wt=e)}function rc(e){L(Ie,Ie.current),L(Ut,e),Wt===null&&(Wt=e)}function Bf(e){e.tag===22?(L(Ie,Ie.current),L(Ut,e),Wt===null&&(Wt=e)):Ln()}function Ln(){L(Ie,Ie.current),L(Ut,Ut.current)}function Zt(e){j(Ut),Wt===e&&(Wt=null),j(Ie)}var Ie=S(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gs(n)||ys(n)))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 vn=0,ae=null,we=null,Pe=null,lu=!1,Wa=!1,_a=!1,iu=0,Ql=0,Fa=null,by=0;function Xe(){throw Error(c(321))}function fc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function dc(e,t,n,l,u,s){return vn=s,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Td:Oc,_a=!1,s=n(l,u),_a=!1,Wa&&(s=Yf(t,n,l,u)),Lf(e),s}function Lf(e){w.H=$l;var t=we!==null&&we.next!==null;if(vn=0,Pe=we=ae=null,lu=!1,Ql=0,Fa=null,t)throw Error(c(300));e===null||et||(e=e.dependencies,e!==null&&Ki(e)&&(et=!0))}function Yf(e,t,n,l){ae=e;var u=0;do{if(Wa&&(Fa=null),Ql=0,Wa=!1,25<=u)throw Error(c(301));if(u+=1,Pe=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}w.H=Ed,s=t(n,l)}while(Wa);return s}function Sy(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?Vl(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ae.flags|=1024),t}function mc(){var e=iu!==0;return iu=0,e}function hc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function pc(e){if(lu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lu=!1}vn=0,Pe=we=ae=null,Wa=!1,Ql=iu=0,Fa=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ae.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function We(){if(we===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Pe===null?ae.memoizedState:Pe.next;if(t!==null)Pe=t,we=e;else{if(e===null)throw ae.alternate===null?Error(c(467)):Error(c(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Pe===null?ae.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vl(e){var t=Ql;return Ql+=1,Fa===null&&(Fa=[]),e=Nf(Fa,e,t),t=ae,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Td:Oc),e}function ou(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vl(e);if(e.$$typeof===F)return st(e)}throw Error(c(438,String(e)))}function gc(e){var t=null,n=ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=uu(),ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=Cn;return t.index++,n}function bn(e,t){return typeof t=="function"?t(e):t}function cu(e){var t=We();return yc(t,we,e)}function yc(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var u=e.baseQueue,s=l.pending;if(s!==null){if(u!==null){var f=u.next;u.next=s.next,s.next=f}t.baseQueue=u=s,l.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var h=f=null,v=null,E=t,D=!1;do{var Z=E.lane&-536870913;if(Z!==E.lane?(he&Z)===Z:(vn&Z)===Z){var O=E.revertLane;if(O===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),Z===Xa&&(D=!0);else if((vn&O)===O){E=E.next,O===Xa&&(D=!0);continue}else Z={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},v===null?(h=v=Z,f=s):v=v.next=Z,ae.lanes|=O,Qn|=O;Z=E.action,_a&&n(s,Z),s=E.hasEagerState?E.eagerState:n(s,Z)}else O={lane:Z,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},v===null?(h=v=O,f=s):v=v.next=O,ae.lanes|=Z,Qn|=Z;E=E.next}while(E!==null&&E!==t);if(v===null?f=s:v.next=h,!Dt(s,e.memoizedState)&&(et=!0,D&&(n=$a,n!==null)))throw n;e.memoizedState=s,e.baseState=f,e.baseQueue=v,l.lastRenderedState=s}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function vc(e){var t=We(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,u=n.pending,s=t.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do s=e(s,f.action),f=f.next;while(f!==u);Dt(s,t.memoizedState)||(et=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function Gf(e,t,n){var l=ae,u=We(),s=ye;if(s){if(n===void 0)throw Error(c(407));n=n()}else n=t();var f=!Dt((we||u).memoizedState,n);if(f&&(u.memoizedState=n,et=!0),u=u.queue,_c(Xf.bind(null,l,u,e),[e]),u.getSnapshot!==t||f||Pe!==null&&Pe.memoizedState.tag&1){if(l.flags|=2048,Pa(9,{destroy:void 0},Vf.bind(null,l,u,n,t),null),Ue===null)throw Error(c(349));s||(vn&127)!==0||Qf(l,t,n)}return n}function Qf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t=uu(),ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vf(e,t,n,l){t.value=n,t.getSnapshot=l,$f(t)&&Jf(e)}function Xf(e,t,n){return n(function(){$f(t)&&Jf(e)})}function $f(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Jf(e){var t=da(e,2);t!==null&&Ot(t,e,2)}function bc(e){var t=bt();if(typeof e=="function"){var n=e;if(e=n(),_a){Mn(!0);try{n()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t}function Kf(e,t,n,l){return e.baseState=n,yc(e,we,typeof l=="function"?l:bn)}function _y(e,t,n,l,u){if(fu(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};w.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,If(t,s)):(s.next=n.next,t.pending=n.next=s)}}function If(e,t){var n=t.action,l=t.payload,u=e.state;if(t.isTransition){var s=w.T,f={};w.T=f;try{var h=n(u,l),v=w.S;v!==null&&v(f,h),Wf(e,t,h)}catch(E){Sc(e,t,E)}finally{s!==null&&f.types!==null&&(s.types=f.types),w.T=s}}else try{s=n(u,l),Wf(e,t,s)}catch(E){Sc(e,t,E)}}function Wf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Ff(e,t,l)},function(l){return Sc(e,t,l)}):Ff(e,t,n)}function Ff(e,t,n){t.status="fulfilled",t.value=n,Pf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,If(e,n)))}function Sc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Pf(t),t=t.next;while(t!==l)}e.action=null}function Pf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ed(e,t){return t}function td(e,t){if(ye){var n=Ue.formState;if(n!==null){e:{var l=ae;if(ye){if(qe){t:{for(var u=qe,s=It;u.nodeType!==8;){if(!s){u=null;break t}if(u=Ft(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){qe=Ft(u.nextSibling),l=u.data==="F!";break e}}Un(l)}l=!1}l&&(t=n[0])}}return n=bt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:t},n.queue=l,n=Sd.bind(null,ae,l),l.dispatch=n,l=bc(!1),s=Ac.bind(null,ae,!1,l.queue),l=bt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,n=_y.bind(null,ae,u,s,n),u.dispatch=n,l.memoizedState=e,[t,n,!1]}function nd(e){var t=We();return ad(t,we,e)}function ad(e,t,n){if(t=yc(e,t,ed)[0],e=cu(bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Vl(t)}catch(f){throw f===Ja?Fi:f}else l=t;t=We();var u=t.queue,s=u.dispatch;return n!==t.memoizedState&&(ae.flags|=2048,Pa(9,{destroy:void 0},zy.bind(null,u,n),null)),[l,s,e]}function zy(e,t){e.action=t}function ld(e){var t=We(),n=we;if(n!==null)return ad(t,n,e);We(),t=t.memoizedState,n=We();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Pa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ae.updateQueue,t===null&&(t=uu(),ae.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function id(){return We().memoizedState}function su(e,t,n,l){var u=bt();ae.flags|=e,u.memoizedState=Pa(1|t,{destroy:void 0},n,l===void 0?null:l)}function ru(e,t,n,l){var u=We();l=l===void 0?null:l;var s=u.memoizedState.inst;we!==null&&l!==null&&fc(l,we.memoizedState.deps)?u.memoizedState=Pa(t,s,n,l):(ae.flags|=e,u.memoizedState=Pa(1|t,s,n,l))}function ud(e,t){su(8390656,8,e,t)}function _c(e,t){ru(2048,8,e,t)}function Ty(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=uu(),ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function od(e){var t=We().memoizedState;return Ty({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function cd(e,t){return ru(4,2,e,t)}function sd(e,t){return ru(4,4,e,t)}function rd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fd(e,t,n){n=n!=null?n.concat([e]):null,ru(4,4,rd.bind(null,t,e),n)}function zc(){}function dd(e,t){var n=We();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&fc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function md(e,t){var n=We();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&fc(t,l[1]))return l[0];if(l=e(),_a){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[l,t],l}function Tc(e,t,n){return n===void 0||(vn&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=hm(),ae.lanes|=e,Qn|=e,n)}function hd(e,t,n,l){return Dt(n,t)?n:Ia.current!==null?(e=Tc(e,n,l),Dt(e,t)||(et=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(he&261930)===0?(et=!0,e.memoizedState=n):(e=hm(),ae.lanes|=e,Qn|=e,t)}function pd(e,t,n,l,u){var s=B.p;B.p=s!==0&&8>s?s:8;var f=w.T,h={};w.T=h,Ac(e,!1,t,n);try{var v=u(),E=w.S;if(E!==null&&E(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var D=vy(v,l);Xl(e,t,D,Ht(e))}else Xl(e,t,l,Ht(e))}catch(Z){Xl(e,t,{then:function(){},status:"rejected",reason:Z},Ht())}finally{B.p=s,f!==null&&h.types!==null&&(f.types=h.types),w.T=f}}function Ey(){}function Ec(e,t,n,l){if(e.tag!==5)throw Error(c(476));var u=gd(e).queue;pd(e,u,t,J,n===null?Ey:function(){return yd(e),n(l)})}function gd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yd(e){var t=gd(e);t.next===null&&(t=e.alternate.memoizedState),Xl(e,t.next.queue,{},Ht())}function xc(){return st(si)}function vd(){return We().memoizedState}function bd(){return We().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ht();e=qn(n);var l=Hn(t,e,n);l!==null&&(Ot(l,t,n),Ll(l,t,n)),t={cache:ec()},e.payload=t;return}t=t.return}}function Ay(e,t,n){var l=Ht();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fu(e)?_d(t,n):(n=Go(e,t,n,l),n!==null&&(Ot(n,e,l),zd(n,t,l)))}function Sd(e,t,n){var l=Ht();Xl(e,t,n,l)}function Xl(e,t,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fu(e))_d(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,h=s(f,n);if(u.hasEagerState=!0,u.eagerState=h,Dt(h,f))return Vi(e,t,u,0),Ue===null&&Qi(),!1}catch{}if(n=Go(e,t,u,l),n!==null)return Ot(n,e,l),zd(n,t,l),!0}return!1}function Ac(e,t,n,l){if(l={lane:2,revertLane:ls(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fu(e)){if(t)throw Error(c(479))}else t=Go(e,n,l,2),t!==null&&Ot(t,e,2)}function fu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function _d(e,t){Wa=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ar(e,n)}}var $l={readContext:st,use:ou,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};$l.useEffectEvent=Xe;var Td={readContext:st,use:ou,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:ud,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,su(4194308,4,rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){su(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var l=e();if(_a){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=bt();if(n!==void 0){var u=n(t);if(_a){Mn(!0);try{n(t)}finally{Mn(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Ay.bind(null,ae,e),[l.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=bc(e);var t=e.queue,n=Sd.bind(null,ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zc,useDeferredValue:function(e,t){var n=bt();return Tc(n,e,t)},useTransition:function(){var e=bc(!1);return e=pd.bind(null,ae,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ae,u=bt();if(ye){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ue===null)throw Error(c(349));(he&127)!==0||Qf(l,t,n)}u.memoizedState=n;var s={value:n,getSnapshot:t};return u.queue=s,ud(Xf.bind(null,l,s,e),[e]),l.flags|=2048,Pa(9,{destroy:void 0},Vf.bind(null,l,s,n,t),null),n},useId:function(){var e=bt(),t=Ue.identifierPrefix;if(ye){var n=cn,l=on;n=(l&~(1<<32-Nt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=iu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=by++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xc,useFormState:td,useActionState:td,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ac.bind(null,ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:gc,useCacheRefresh:function(){return bt().memoizedState=xy.bind(null,ae)},useEffectEvent:function(e){var t=bt(),n={impl:e};return t.memoizedState=n,function(){if((Ee&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Oc={readContext:st,use:ou,useCallback:dd,useContext:st,useEffect:_c,useImperativeHandle:fd,useInsertionEffect:cd,useLayoutEffect:sd,useMemo:md,useReducer:cu,useRef:id,useState:function(){return cu(bn)},useDebugValue:zc,useDeferredValue:function(e,t){var n=We();return hd(n,we.memoizedState,e,t)},useTransition:function(){var e=cu(bn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:Gf,useId:vd,useHostTransitionStatus:xc,useFormState:nd,useActionState:nd,useOptimistic:function(e,t){var n=We();return Kf(n,we,e,t)},useMemoCache:gc,useCacheRefresh:bd};Oc.useEffectEvent=od;var Ed={readContext:st,use:ou,useCallback:dd,useContext:st,useEffect:_c,useImperativeHandle:fd,useInsertionEffect:cd,useLayoutEffect:sd,useMemo:md,useReducer:vc,useRef:id,useState:function(){return vc(bn)},useDebugValue:zc,useDeferredValue:function(e,t){var n=We();return we===null?Tc(n,e,t):hd(n,we.memoizedState,e,t)},useTransition:function(){var e=vc(bn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:Gf,useId:vd,useHostTransitionStatus:xc,useFormState:ld,useActionState:ld,useOptimistic:function(e,t){var n=We();return we!==null?Kf(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:bd};Ed.useEffectEvent=od;function Rc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:R({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Ht(),u=qn(l);u.payload=t,n!=null&&(u.callback=n),t=Hn(e,u,l),t!==null&&(Ot(t,e,l),Ll(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Ht(),u=qn(l);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Hn(e,u,l),t!==null&&(Ot(t,e,l),Ll(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ht(),l=qn(n);l.tag=2,t!=null&&(l.callback=t),t=Hn(e,l,n),t!==null&&(Ot(t,e,n),Ll(t,e,n))}};function xd(e,t,n,l,u,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,f):t.prototype&&t.prototype.isPureReactComponent?!Dl(n,l)||!Dl(u,s):!0}function Ad(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function za(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=R({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Od(e){Gi(e)}function Rd(e){console.error(e)}function Cd(e){Gi(e)}function du(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Md(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Mc(e,t,n){return n=qn(n),n.tag=3,n.payload={element:null},n.callback=function(){du(e,t)},n}function wd(e){return e=qn(e),e.tag=3,e}function Nd(e,t,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var s=l.value;e.payload=function(){return u(s)},e.callback=function(){Md(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Md(t,n,l),typeof u!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Oy(e,t,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Va(t,n,u,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:return Wt===null?Eu():n.alternate===null&&$e===0&&($e=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===Pi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ts(e,l,u)),!1;case 22:return n.flags|=65536,l===Pi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ts(e,l,u)),!1}throw Error(c(435,n.tag))}return ts(e,l,u),Eu(),!1}if(ye)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Ko&&(e=Error(c(422),{cause:l}),Zl($t(e,n)))):(l!==Ko&&(t=Error(c(423),{cause:l}),Zl($t(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=$t(l,n),u=Mc(e.stateNode,l,u),uc(e,u),$e!==4&&($e=2)),!1;var s=Error(c(520),{cause:l});if(s=$t(s,n),ti===null?ti=[s]:ti.push(s),$e!==4&&($e=2),t===null)return!0;l=$t(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Mc(n.stateNode,l,e),uc(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Vn===null||!Vn.has(s))))return n.flags|=65536,u&=-u,n.lanes|=u,u=wd(u),Nd(u,e,n,l),uc(n,u),!1}n=n.return}while(n!==null);return!1}var wc=Error(c(461)),et=!1;function rt(e,t,n,l){t.child=e===null?Zf(t,null,n,l):Sa(t,e.child,n,l)}function Dd(e,t,n,l,u){n=n.render;var s=t.ref;if("ref"in l){var f={};for(var h in l)h!=="ref"&&(f[h]=l[h])}else f=l;return ga(t),l=dc(e,t,n,f,s,u),h=mc(),e!==null&&!et?(hc(e,t,u),Sn(e,t,u)):(ye&&h&&$o(t),t.flags|=1,rt(e,t,l,u),t.child)}function kd(e,t,n,l,u){if(e===null){var s=n.type;return typeof s=="function"&&!Qo(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Ud(e,t,s,l,u)):(e=$i(n.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Hc(e,u)){var f=s.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(f,l)&&e.ref===t.ref)return Sn(e,t,u)}return t.flags|=1,e=hn(s,l),e.ref=t.ref,e.return=t,t.child=e}function Ud(e,t,n,l,u){if(e!==null){var s=e.memoizedProps;if(Dl(s,l)&&e.ref===t.ref)if(et=!1,t.pendingProps=l=s,Hc(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Sn(e,t,u)}return Nc(e,t,n,l,u)}function Zd(e,t,n,l){var u=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~s}else l=0,t.child=null;return jd(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wi(t,s!==null?s.cachePool:null),s!==null?Hf(t,s):cc(),Bf(t);else return l=t.lanes=536870912,jd(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(Wi(t,s.cachePool),Hf(t,s),Ln(),t.memoizedState=null):(e!==null&&Wi(t,null),cc(),Ln());return rt(e,t,u,n),t.child}function Jl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function jd(e,t,n,l,u){var s=nc();return s=s===null?null:{parent:Fe._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Wi(t,null),cc(),Bf(t),e!==null&&Va(e,t,l,!0),t.childLanes=u,null}function mu(e,t){return t=pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qd(e,t,n){return Sa(t,e.child,null,n),e=mu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Ry(e,t,n){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(l.mode==="hidden")return e=mu(t,l),t.lanes=536870912,Jl(null,e);if(rc(t),(e=qe)?(e=Im(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=_f(e),n.return=t,t.child=n,ct=t,qe=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return mu(t,l)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(rc(t),u)if(t.flags&256)t.flags&=-257,t=qd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(et||Va(e,t,n,!1),u=(n&e.childLanes)!==0,et||u){if(l=Ue,l!==null&&(f=Or(l,n),f!==0&&f!==s.retryLane))throw s.retryLane=f,da(e,f),Ot(l,e,f),wc;Eu(),t=qd(e,t,n)}else e=s.treeContext,qe=Ft(f.nextSibling),ct=t,ye=!0,kn=null,It=!1,e!==null&&Ef(t,e),t=mu(t,l),t.flags|=4096;return t}return e=hn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nc(e,t,n,l,u){return ga(t),n=dc(e,t,n,l,void 0,u),l=mc(),e!==null&&!et?(hc(e,t,u),Sn(e,t,u)):(ye&&l&&$o(t),t.flags|=1,rt(e,t,n,u),t.child)}function Hd(e,t,n,l,u,s){return ga(t),t.updateQueue=null,n=Yf(t,l,n,u),Lf(e),l=mc(),e!==null&&!et?(hc(e,t,s),Sn(e,t,s)):(ye&&l&&$o(t),t.flags|=1,rt(e,t,n,s),t.child)}function Bd(e,t,n,l,u){if(ga(t),t.stateNode===null){var s=La,f=n.contextType;typeof f=="object"&&f!==null&&(s=st(f)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Cc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},lc(t),f=n.contextType,s.context=typeof f=="object"&&f!==null?st(f):La,s.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Rc(t,n,f,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&Cc.enqueueReplaceState(s,s.state,null),Gl(t,l,s,u),Yl(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,v=za(n,h);s.props=v;var E=s.context,D=n.contextType;f=La,typeof D=="object"&&D!==null&&(f=st(D));var Z=n.getDerivedStateFromProps;D=typeof Z=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,D||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||E!==f)&&Ad(t,s,l,f),jn=!1;var O=t.memoizedState;s.state=O,Gl(t,l,s,u),Yl(),E=t.memoizedState,h||O!==E||jn?(typeof Z=="function"&&(Rc(t,n,Z,l),E=t.memoizedState),(v=jn||xd(t,n,v,l,O,E,f))?(D||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=E),s.props=l,s.state=E,s.context=f,l=v):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,ic(e,t),f=t.memoizedProps,D=za(n,f),s.props=D,Z=t.pendingProps,O=s.context,E=n.contextType,v=La,typeof E=="object"&&E!==null&&(v=st(E)),h=n.getDerivedStateFromProps,(E=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==Z||O!==v)&&Ad(t,s,l,v),jn=!1,O=t.memoizedState,s.state=O,Gl(t,l,s,u),Yl();var C=t.memoizedState;f!==Z||O!==C||jn||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof h=="function"&&(Rc(t,n,h,l),C=t.memoizedState),(D=jn||xd(t,n,D,l,O,C,v)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(E||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,C,v),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,C,v)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=C),s.props=l,s.state=C,s.context=v,l=D):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,hu(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Sa(t,e.child,null,u),t.child=Sa(t,null,n,u)):rt(e,t,n,u),t.memoizedState=s.state,e=t.child):e=Sn(e,t,u),e}function Ld(e,t,n,l){return ha(),t.flags|=256,rt(e,t,n,l),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kc(e){return{baseLanes:e,cachePool:Mf()}}function Uc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qt),e}function Yd(e,t,n){var l=t.pendingProps,u=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),f&&(u=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(u?Bn(t):Ln(),(e=qe)?(e=Im(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=_f(e),n.return=t,t.child=n,ct=t,qe=null)):e=null,e===null)throw Un(t);return ys(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,u?(Ln(),u=t.mode,h=pu({mode:"hidden",children:h},u),l=ma(l,u,n,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=kc(n),l.childLanes=Uc(e,f,n),t.memoizedState=Dc,Jl(null,l)):(Bn(t),Zc(t,h))}var v=e.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(s)t.flags&256?(Bn(t),t.flags&=-257,t=jc(e,t,n)):t.memoizedState!==null?(Ln(),t.child=e.child,t.flags|=128,t=null):(Ln(),h=l.fallback,u=t.mode,l=pu({mode:"visible",children:l.children},u),h=ma(h,u,n,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,Sa(t,e.child,null,n),l=t.child,l.memoizedState=kc(n),l.childLanes=Uc(e,f,n),t.memoizedState=Dc,t=Jl(null,l));else if(Bn(t),ys(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var E=f.dgst;f=E,l=Error(c(419)),l.stack="",l.digest=f,Zl({value:l,source:null,stack:null}),t=jc(e,t,n)}else if(et||Va(e,t,n,!1),f=(n&e.childLanes)!==0,et||f){if(f=Ue,f!==null&&(l=Or(f,n),l!==0&&l!==v.retryLane))throw v.retryLane=l,da(e,l),Ot(f,e,l),wc;gs(h)||Eu(),t=jc(e,t,n)}else gs(h)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,qe=Ft(h.nextSibling),ct=t,ye=!0,kn=null,It=!1,e!==null&&Ef(t,e),t=Zc(t,l.children),t.flags|=4096);return t}return u?(Ln(),h=l.fallback,u=t.mode,v=e.child,E=v.sibling,l=hn(v,{mode:"hidden",children:l.children}),l.subtreeFlags=v.subtreeFlags&65011712,E!==null?h=hn(E,h):(h=ma(h,u,n,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,Jl(null,l),l=t.child,h=e.child.memoizedState,h===null?h=kc(n):(u=h.cachePool,u!==null?(v=Fe._currentValue,u=u.parent!==v?{parent:v,pool:v}:u):u=Mf(),h={baseLanes:h.baseLanes|n,cachePool:u}),l.memoizedState=h,l.childLanes=Uc(e,f,n),t.memoizedState=Dc,Jl(e.child,l)):(Bn(t),n=e.child,e=n.sibling,n=hn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pu(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function jc(e,t,n){return Sa(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gd(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fo(e.return,t,n)}function qc(e,t,n,l,u,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=u,f.treeForkCount=s)}function Qd(e,t,n){var l=t.pendingProps,u=l.revealOrder,s=l.tail;l=l.children;var f=Ie.current,h=(f&2)!==0;if(h?(f=f&1|2,t.flags|=128):f&=1,L(Ie,f),rt(e,t,l,n),l=ye?Ul:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gd(e,n,t);else if(e.tag===19)Gd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&au(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),qc(t,!1,u,n,s,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&au(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}qc(t,!0,n,null,s,l);break;case"together":qc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Va(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ki(e)))}function Cy(e,t,n){switch(t.tag){case 3:vt(t,t.stateNode.containerInfo),Zn(t,Fe,e.memoizedState.cache),ha();break;case 27:case 5:Sl(t);break;case 4:vt(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,rc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Bn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Yd(e,t,n):(Bn(t),e=Sn(e,t,n),e!==null?e.sibling:null);Bn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Va(e,t,n,!1),l=(n&t.childLanes)!==0),u){if(l)return Qd(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),L(Ie,Ie.current),l)break;return null;case 22:return t.lanes=0,Zd(e,t,n,t.pendingProps);case 24:Zn(t,Fe,e.memoizedState.cache)}return Sn(e,t,n)}function Vd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Hc(e,n)&&(t.flags&128)===0)return et=!1,Cy(e,t,n);et=(e.flags&131072)!==0}else et=!1,ye&&(t.flags&1048576)!==0&&Tf(t,Ul,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e=="function")Qo(e)?(l=za(e,l),t.tag=1,t=Bd(null,t,e,l,n)):(t.tag=0,t=Nc(null,t,e,l,n));else{if(e!=null){var u=e.$$typeof;if(u===ce){t.tag=11,t=Dd(null,t,e,l,n);break e}else if(u===te){t.tag=14,t=kd(null,t,e,l,n);break e}}throw t=oe(e)||e,Error(c(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,u=za(l,t.pendingProps),Bd(e,t,l,u,n);case 3:e:{if(vt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;u=s.element,ic(e,t),Gl(t,l,null,n);var f=t.memoizedState;if(l=f.cache,Zn(t,Fe,l),l!==s.cache&&Po(t,[Fe],n,!0),Yl(),l=f.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Ld(e,t,l,n);break e}else if(l!==u){u=$t(Error(c(424)),t),Zl(u),t=Ld(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=Ft(e.firstChild),ct=t,ye=!0,kn=null,It=!0,n=Zf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ha(),l===u){t=Sn(e,t,n);break e}rt(e,t,l,n)}t=t.child}return t;case 26:return hu(e,t),e===null?(n=nh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ye||(n=t.type,e=t.pendingProps,l=wu(fe.current).createElement(n),l[ot]=t,l[_t]=e,ft(l,n,e),it(l),t.stateNode=l):t.memoizedState=nh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Sl(t),e===null&&ye&&(l=t.stateNode=Pm(t.type,t.pendingProps,fe.current),ct=t,It=!0,u=qe,Kn(t.type)?(vs=u,qe=Ft(l.firstChild)):qe=u),rt(e,t,t.pendingProps.children,n),hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((u=l=qe)&&(l=iv(l,t.type,t.pendingProps,It),l!==null?(t.stateNode=l,ct=t,qe=Ft(l.firstChild),It=!1,u=!0):u=!1),u||Un(t)),Sl(t),u=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,l=s.children,ms(u,s)?l=null:f!==null&&ms(u,f)&&(t.flags|=32),t.memoizedState!==null&&(u=dc(e,t,Sy,null,null,n),si._currentValue=u),hu(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&ye&&((e=n=qe)&&(n=uv(n,t.pendingProps,It),n!==null?(t.stateNode=n,ct=t,qe=null,e=!0):e=!1),e||Un(t)),null;case 13:return Yd(e,t,n);case 4:return vt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sa(t,null,l,n):rt(e,t,l,n),t.child;case 11:return Dd(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Zn(t,t.type,l.value),rt(e,t,l.children,n),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,ga(t),u=st(u),l=l(u),t.flags|=1,rt(e,t,l,n),t.child;case 14:return kd(e,t,t.type,t.pendingProps,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 19:return Qd(e,t,n);case 31:return Ry(e,t,n);case 22:return Zd(e,t,n,t.pendingProps);case 24:return ga(t),l=st(Fe),e===null?(u=nc(),u===null&&(u=Ue,s=ec(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=n),u=s),t.memoizedState={parent:l,cache:u},lc(t),Zn(t,Fe,u)):((e.lanes&n)!==0&&(ic(e,t),Gl(t,null,null,n),Yl()),u=e.memoizedState,s=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Zn(t,Fe,l)):(l=s.cache,Zn(t,Fe,l),l!==u.cache&&Po(t,[Fe],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function _n(e){e.flags|=4}function Bc(e,t,n,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(vm())e.flags|=8192;else throw ba=Pi,ac}else e.flags&=-16777217}function Xd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!oh(t))if(vm())e.flags|=8192;else throw ba=Pi,ac}function gu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Er():536870912,e.lanes|=t,al|=t)}function Kl(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function My(e,t,n){var l=t.pendingProps;switch(Jo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),yn(Fe),Ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Io())),He(t),null;case 26:var u=t.type,s=t.memoizedState;return e===null?(_n(t),s!==null?(He(t),Xd(t,s)):(He(t),Bc(t,u,null,l,n))):s?s!==e.memoizedState?(_n(t),He(t),Xd(t,s)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&_n(t),He(t),Bc(t,u,e,l,n)),null;case 27:if(Oi(t),n=fe.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&_n(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return He(t),null}e=Q.current,Qa(t)?xf(t):(e=Pm(u,l,n),t.stateNode=e,_n(t))}return He(t),null;case 5:if(Oi(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&_n(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return He(t),null}if(s=Q.current,Qa(t))xf(t);else{var f=wu(fe.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}s[ot]=t,s[_t]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(ft(s,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&_n(t)}}return He(t),Bc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&_n(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=fe.current,Qa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,u=ct,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Ym(e.nodeValue,n)),e||Un(t,!0)}else e=wu(e).createTextNode(l),e[ot]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Qa(t),n!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ot]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Qa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[ot]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),u=!1}else u=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gu(t,t.updateQueue),He(t),null);case 4:return Ke(),e===null&&cs(t.stateNode.containerInfo),He(t),null;case 10:return yn(t.type),He(t),null;case 19:if(j(Ie),l=t.memoizedState,l===null)return He(t),null;if(u=(t.flags&128)!==0,s=l.rendering,s===null)if(u)Kl(l,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=au(e),s!==null){for(t.flags|=128,Kl(l,!1),e=s.updateQueue,t.updateQueue=e,gu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Sf(n,e),n=n.sibling;return L(Ie,Ie.current&1|2),ye&&pn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Mt()>_u&&(t.flags|=128,u=!0,Kl(l,!1),t.lanes=4194304)}else{if(!u)if(e=au(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,gu(t,e),Kl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ye)return He(t),null}else 2*Mt()-l.renderingStartTime>_u&&n!==536870912&&(t.flags|=128,u=!0,Kl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Mt(),e.sibling=null,n=Ie.current,L(Ie,u?n&1|2:n&1),ye&&pn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Zt(t),sc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&gu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&j(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),yn(Fe),He(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function wy(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(Fe),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oi(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(c(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ie),null;case 4:return Ke(),null;case 10:return yn(t.type),null;case 22:case 23:return Zt(t),sc(),e!==null&&j(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return yn(Fe),null;case 25:return null;default:return null}}function $d(e,t){switch(Jo(t),t.tag){case 3:yn(Fe),Ke();break;case 26:case 27:case 5:Oi(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:j(Ie);break;case 10:yn(t.type);break;case 22:case 23:Zt(t),sc(),e!==null&&j(ya);break;case 24:yn(Fe)}}function Il(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&e)===e){l=void 0;var s=n.create,f=n.inst;l=s(),f.destroy=l}n=n.next}while(n!==u)}}catch(h){Ce(t,t.return,h)}}function Yn(e,t,n){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var s=u.next;l=s;do{if((l.tag&e)===e){var f=l.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,u=t;var v=n,E=h;try{E()}catch(D){Ce(u,v,D)}}}l=l.next}while(l!==s)}}catch(D){Ce(t,t.return,D)}}function Jd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qf(t,n)}catch(l){Ce(e,e.return,l)}}}function Kd(e,t,n){n.props=za(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ce(e,t,l)}}function Wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(u){Ce(e,t,u)}}function sn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){Ce(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Ce(e,t,u)}else n.current=null}function Id(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){Ce(e,e.return,u)}}function Lc(e,t,n){try{var l=e.stateNode;Py(l,e.type,n,t),l[_t]=t}catch(u){Ce(e,e.return,u)}}function Wd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(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&&Kn(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 Gc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(l!==4&&(l===27&&Kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function yu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(yu(e,t,n),e=e.sibling;e!==null;)yu(e,t,n),e=e.sibling}function Fd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,l,n),t[ot]=e,t[_t]=n}catch(s){Ce(e,e.return,s)}}var zn=!1,tt=!1,Qc=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,ut=null;function Ny(e,t){if(e=e.containerInfo,fs=qu,e=ff(e),jo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var f=0,h=-1,v=-1,E=0,D=0,Z=e,O=null;t:for(;;){for(var C;Z!==n||u!==0&&Z.nodeType!==3||(h=f+u),Z!==s||l!==0&&Z.nodeType!==3||(v=f+l),Z.nodeType===3&&(f+=Z.nodeValue.length),(C=Z.firstChild)!==null;)O=Z,Z=C;for(;;){if(Z===e)break t;if(O===n&&++E===u&&(h=f),O===s&&++D===l&&(v=f),(C=Z.nextSibling)!==null)break;Z=O,O=Z.parentNode}Z=C}n=h===-1||v===-1?null:{start:h,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(ds={focusedElem:e,selectionRange:n},qu=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,s=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(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,u=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var G=za(n.type,u);e=l.getSnapshotBeforeUpdate(G,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(K){Ce(n,n.return,K)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ps(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ps(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function em(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:En(e,n),l&4&&Il(5,n);break;case 1:if(En(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(n,n.return,f)}else{var u=za(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(n,n.return,f)}}l&64&&Jd(n),l&512&&Wl(n,n.return);break;case 3:if(En(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{qf(e,t)}catch(f){Ce(n,n.return,f)}}break;case 27:t===null&&l&4&&Fd(n);case 26:case 5:En(e,n),t===null&&l&4&&Id(n),l&512&&Wl(n,n.return);break;case 12:En(e,n);break;case 31:En(e,n),l&4&&am(e,n);break;case 13:En(e,n),l&4&&lm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ly.bind(null,n),ov(e,n))));break;case 22:if(l=n.memoizedState!==null||zn,!l){t=t!==null&&t.memoizedState!==null||tt,u=zn;var s=tt;zn=l,(tt=t)&&!s?xn(e,n,(n.subtreeFlags&8772)!==0):En(e,n),zn=u,tt=s}break;case 30:break;default:En(e,n)}}function tm(e){var t=e.alternate;t!==null&&(e.alternate=null,tm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&So(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 Ge=null,Tt=!1;function Tn(e,t,n){for(n=n.child;n!==null;)nm(e,t,n),n=n.sibling}function nm(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 26:tt||sn(n,t),Tn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||sn(n,t);var l=Ge,u=Tt;Kn(n.type)&&(Ge=n.stateNode,Tt=!1),Tn(e,t,n),ui(n.stateNode),Ge=l,Tt=u;break;case 5:tt||sn(n,t);case 6:if(l=Ge,u=Tt,Ge=null,Tn(e,t,n),Ge=l,Tt=u,Ge!==null)if(Tt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(s){Ce(n,t,s)}else try{Ge.removeChild(n.stateNode)}catch(s){Ce(n,t,s)}break;case 18:Ge!==null&&(Tt?(e=Ge,Jm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),fl(e)):Jm(Ge,n.stateNode));break;case 4:l=Ge,u=Tt,Ge=n.stateNode.containerInfo,Tt=!0,Tn(e,t,n),Ge=l,Tt=u;break;case 0:case 11:case 14:case 15:Yn(2,n,t),tt||Yn(4,n,t),Tn(e,t,n);break;case 1:tt||(sn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Kd(n,t,l)),Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:tt=(l=tt)||n.memoizedState!==null,Tn(e,t,n),tt=l;break;default:Tn(e,t,n)}}function am(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fl(e)}catch(n){Ce(t,t.return,n)}}}function lm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fl(e)}catch(n){Ce(t,t.return,n)}}function Dy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Pd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Pd),t;default:throw Error(c(435,e.tag))}}function vu(e,t){var n=Dy(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var u=Yy.bind(null,e,l);l.then(u,u)}})}function Et(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],s=e,f=t,h=f;e:for(;h!==null;){switch(h.tag){case 27:if(Kn(h.type)){Ge=h.stateNode,Tt=!1;break e}break;case 5:Ge=h.stateNode,Tt=!1;break e;case 3:case 4:Ge=h.stateNode.containerInfo,Tt=!0;break e}h=h.return}if(Ge===null)throw Error(c(160));nm(s,f,u),Ge=null,Tt=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)im(t,e),t=t.sibling}var ln=null;function im(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),xt(e),l&4&&(Yn(3,e,e.return),Il(3,e),Yn(5,e,e.return));break;case 1:Et(t,e),xt(e),l&512&&(tt||n===null||sn(n,n.return)),l&64&&zn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var u=ln;if(Et(t,e),xt(e),l&512&&(tt||n===null||sn(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":s=u.getElementsByTagName("title")[0],(!s||s[El]||s[ot]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(l),u.head.insertBefore(s,u.querySelector("head > title"))),ft(s,l,n),s[ot]=e,it(s),l=s;break e;case"link":var f=ih("link","href",u).get(l+(n.href||""));if(f){for(var h=0;h<f.length;h++)if(s=f[h],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(h,1);break t}}s=u.createElement(l),ft(s,l,n),u.head.appendChild(s);break;case"meta":if(f=ih("meta","content",u).get(l+(n.content||""))){for(h=0;h<f.length;h++)if(s=f[h],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(h,1);break t}}s=u.createElement(l),ft(s,l,n),u.head.appendChild(s);break;default:throw Error(c(468,l))}s[ot]=e,it(s),l=s}e.stateNode=l}else uh(u,e.type,e.stateNode);else e.stateNode=lh(u,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?uh(u,e.type,e.stateNode):lh(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Lc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Et(t,e),xt(e),l&512&&(tt||n===null||sn(n,n.return)),n!==null&&l&4&&Lc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Et(t,e),xt(e),l&512&&(tt||n===null||sn(n,n.return)),e.flags&32){u=e.stateNode;try{ka(u,"")}catch(G){Ce(e,e.return,G)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Lc(e,u,n!==null?n.memoizedProps:u)),l&1024&&(Qc=!0);break;case 6:if(Et(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(G){Ce(e,e.return,G)}}break;case 3:if(ku=null,u=ln,ln=Nu(t.containerInfo),Et(t,e),ln=u,xt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(G){Ce(e,e.return,G)}Qc&&(Qc=!1,um(e));break;case 4:l=ln,ln=Nu(e.stateNode.containerInfo),Et(t,e),xt(e),ln=l;break;case 12:Et(t,e),xt(e);break;case 31:Et(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vu(e,l)));break;case 13:Et(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Su=Mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vu(e,l)));break;case 22:u=e.memoizedState!==null;var v=n!==null&&n.memoizedState!==null,E=zn,D=tt;if(zn=E||u,tt=D||v,Et(t,e),tt=D,zn=E,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||v||zn||tt||Ta(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){v=n=t;try{if(s=v.stateNode,u)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=v.stateNode;var Z=v.memoizedProps.style,O=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(G){Ce(v,v.return,G)}}}else if(t.tag===6){if(n===null){v=t;try{v.stateNode.nodeValue=u?"":v.memoizedProps}catch(G){Ce(v,v.return,G)}}}else if(t.tag===18){if(n===null){v=t;try{var C=v.stateNode;u?Km(C,!0):Km(v.stateNode,!1)}catch(G){Ce(v,v.return,G)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,vu(e,n))));break;case 19:Et(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vu(e,l)));break;case 30:break;case 21:break;default:Et(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Wd(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var u=n.stateNode,s=Yc(e);yu(e,s,u);break;case 5:var f=n.stateNode;n.flags&32&&(ka(f,""),n.flags&=-33);var h=Yc(e);yu(e,h,f);break;case 3:case 4:var v=n.stateNode.containerInfo,E=Yc(e);Gc(e,E,v);break;default:throw Error(c(161))}}catch(D){Ce(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function um(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;um(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function En(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)em(e,t.alternate,t),t=t.sibling}function Ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yn(4,t,t.return),Ta(t);break;case 1:sn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Kd(t,t.return,n),Ta(t);break;case 27:ui(t.stateNode);case 26:case 5:sn(t,t.return),Ta(t);break;case 22:t.memoizedState===null&&Ta(t);break;case 30:Ta(t);break;default:Ta(t)}e=e.sibling}}function xn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:xn(u,s,n),Il(4,s);break;case 1:if(xn(u,s,n),l=s,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(E){Ce(l,l.return,E)}if(l=s,u=l.updateQueue,u!==null){var h=l.stateNode;try{var v=u.shared.hiddenCallbacks;if(v!==null)for(u.shared.hiddenCallbacks=null,u=0;u<v.length;u++)jf(v[u],h)}catch(E){Ce(l,l.return,E)}}n&&f&64&&Jd(s),Wl(s,s.return);break;case 27:Fd(s);case 26:case 5:xn(u,s,n),n&&l===null&&f&4&&Id(s),Wl(s,s.return);break;case 12:xn(u,s,n);break;case 31:xn(u,s,n),n&&f&4&&am(u,s);break;case 13:xn(u,s,n),n&&f&4&&lm(u,s);break;case 22:s.memoizedState===null&&xn(u,s,n),Wl(s,s.return);break;case 30:break;default:xn(u,s,n)}t=t.sibling}}function Vc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&jl(n))}function Xc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e))}function un(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)om(e,t,n,l),t=t.sibling}function om(e,t,n,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:un(e,t,n,l),u&2048&&Il(9,t);break;case 1:un(e,t,n,l);break;case 3:un(e,t,n,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e)));break;case 12:if(u&2048){un(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,h=s.onPostCommit;typeof h=="function"&&h(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Ce(t,t.return,v)}}else un(e,t,n,l);break;case 31:un(e,t,n,l);break;case 13:un(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?un(e,t,n,l):Fl(e,t):s._visibility&2?un(e,t,n,l):(s._visibility|=2,el(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Vc(f,t);break;case 24:un(e,t,n,l),u&2048&&Xc(t.alternate,t);break;default:un(e,t,n,l)}}function el(e,t,n,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,h=n,v=l,E=f.flags;switch(f.tag){case 0:case 11:case 15:el(s,f,h,v,u),Il(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?el(s,f,h,v,u):Fl(s,f):(D._visibility|=2,el(s,f,h,v,u)),u&&E&2048&&Vc(f.alternate,f);break;case 24:el(s,f,h,v,u),u&&E&2048&&Xc(f.alternate,f);break;default:el(s,f,h,v,u)}t=t.sibling}}function Fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,u=l.flags;switch(l.tag){case 22:Fl(n,l),u&2048&&Vc(l.alternate,l);break;case 24:Fl(n,l),u&2048&&Xc(l.alternate,l);break;default:Fl(n,l)}t=t.sibling}}var Pl=8192;function tl(e,t,n){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)cm(e,t,n),e=e.sibling}function cm(e,t,n){switch(e.tag){case 26:tl(e,t,n),e.flags&Pl&&e.memoizedState!==null&&bv(n,ln,e.memoizedState,e.memoizedProps);break;case 5:tl(e,t,n);break;case 3:case 4:var l=ln;ln=Nu(e.stateNode.containerInfo),tl(e,t,n),ln=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Pl,Pl=16777216,tl(e,t,n),Pl=l):tl(e,t,n));break;default:tl(e,t,n)}}function sm(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 ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ut=l,fm(l,e)}sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rm(e),e=e.sibling}function rm(e){switch(e.tag){case 0:case 11:case 15:ei(e),e.flags&2048&&Yn(9,e,e.return);break;case 3:ei(e);break;case 12:ei(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,bu(e)):ei(e);break;default:ei(e)}}function bu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ut=l,fm(l,e)}sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yn(8,t,t.return),bu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,bu(t));break;default:bu(t)}e=e.sibling}}function fm(e,t){for(;ut!==null;){var n=ut;switch(n.tag){case 0:case 11:case 15:Yn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:jl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ut=l;else e:for(n=e;ut!==null;){l=ut;var u=l.sibling,s=l.return;if(tm(l),l===n){ut=null;break e}if(u!==null){u.return=s,ut=u;break e}ut=s}}}var ky={getCacheForType:function(e){var t=st(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(Fe).controller.signal}},Uy=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Ue=null,de=null,he=0,Re=0,jt=null,Gn=!1,nl=!1,$c=!1,An=0,$e=0,Qn=0,Ea=0,Jc=0,qt=0,al=0,ti=null,At=null,Kc=!1,Su=0,dm=0,_u=1/0,zu=null,Vn=null,at=0,Xn=null,ll=null,On=0,Ic=0,Wc=null,mm=null,ni=0,Fc=null;function Ht(){return(Ee&2)!==0&&he!==0?he&-he:w.T!==null?ls():Rr()}function hm(){if(qt===0)if((he&536870912)===0||ye){var e=Mi;Mi<<=1,(Mi&3932160)===0&&(Mi=262144),qt=e}else qt=536870912;return e=Ut.current,e!==null&&(e.flags|=32),qt}function Ot(e,t,n){(e===Ue&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(il(e,0),$n(e,he,qt,!1)),Tl(e,n),((Ee&2)===0||e!==Ue)&&(e===Ue&&((Ee&2)===0&&(Ea|=n),$e===4&&$n(e,he,qt,!1)),rn(e))}function pm(e,t,n){if((Ee&6)!==0)throw Error(c(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||zl(e,t),u=l?qy(e,t):es(e,t,!0),s=l;do{if(u===0){nl&&!l&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Zy(n)){u=es(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var h=e;u=ti;var v=h.current.memoizedState.isDehydrated;if(v&&(il(h,f).flags|=256),f=es(h,f,!1),f!==2){if($c&&!v){h.errorRecoveryDisabledLanes|=s,Ea|=s,u=4;break e}s=At,At=u,s!==null&&(At===null?At=s:At.push.apply(At,s))}u=f}if(s=!1,u!==2)continue}}if(u===1){il(e,0),$n(e,t,0,!0);break}e:{switch(l=e,s=u,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:$n(l,t,qt,!Gn);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=Su+300-Mt(),10<u)){if($n(l,t,qt,!Gn),Ni(l,0,!0)!==0)break e;On=t,l.timeoutHandle=Xm(gm.bind(null,l,n,At,zu,Kc,t,qt,Ea,al,Gn,s,"Throttled",-0,0),u);break e}gm(l,n,At,zu,Kc,t,qt,Ea,al,Gn,s,null,-0,0)}}break}while(!0);rn(e)}function gm(e,t,n,l,u,s,f,h,v,E,D,Z,O,C){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},cm(t,s,Z);var G=(s&62914560)===s?Su-Mt():(s&4194048)===s?dm-Mt():0;if(G=Sv(Z,G),G!==null){On=s,e.cancelPendingCommit=G(Em.bind(null,e,t,s,n,l,u,f,h,v,D,Z,null,O,C)),$n(e,s,f,!E);return}}Em(e,t,s,n,l,u,f,h,v)}function Zy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var u=n[l],s=u.getSnapshot;u=u.value;try{if(!Dt(s(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,l){t&=~Jc,t&=~Ea,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var s=31-Nt(u),f=1<<s;l[s]=-1,u&=~f}n!==0&&xr(e,n,t)}function Tu(){return(Ee&6)===0?(ai(0),!1):!0}function Pc(){if(de!==null){if(Re===0)var e=de.return;else e=de,gn=pa=null,pc(e),Ka=null,Hl=0,e=de;for(;e!==null;)$d(e.alternate,e),e=e.return;de=null}}function il(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),On=0,Pc(),Ue=e,de=n=hn(e.current,null),he=t,Re=0,jt=null,Gn=!1,nl=zl(e,t),$c=!1,al=qt=Jc=Ea=Qn=$e=0,At=ti=null,Kc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Nt(l),s=1<<u;t|=e[u],l&=~s}return An=t,Qi(),n}function ym(e,t){ae=null,w.H=$l,t===Ja||t===Fi?(t=Df(),Re=3):t===ac?(t=Df(),Re=4):Re=t===wc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,de===null&&($e=1,du(e,$t(t,e.current)))}function vm(){var e=Ut.current;return e===null?!0:(he&4194048)===he?Wt===null:(he&62914560)===he||(he&536870912)!==0?e===Wt:!1}function bm(){var e=w.H;return w.H=$l,e===null?$l:e}function Sm(){var e=w.A;return w.A=ky,e}function Eu(){$e=4,Gn||(he&4194048)!==he&&Ut.current!==null||(nl=!0),(Qn&134217727)===0&&(Ea&134217727)===0||Ue===null||$n(Ue,he,qt,!1)}function es(e,t,n){var l=Ee;Ee|=2;var u=bm(),s=Sm();(Ue!==e||he!==t)&&(zu=null,il(e,t)),t=!1;var f=$e;e:do try{if(Re!==0&&de!==null){var h=de,v=jt;switch(Re){case 8:Pc(),f=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var E=Re;if(Re=0,jt=null,ul(e,h,v,E),n&&nl){f=0;break e}break;default:E=Re,Re=0,jt=null,ul(e,h,v,E)}}jy(),f=$e;break}catch(D){ym(e,D)}while(!0);return t&&e.shellSuspendCounter++,gn=pa=null,Ee=l,w.H=u,w.A=s,de===null&&(Ue=null,he=0,Qi()),f}function jy(){for(;de!==null;)_m(de)}function qy(e,t){var n=Ee;Ee|=2;var l=bm(),u=Sm();Ue!==e||he!==t?(zu=null,_u=Mt()+500,il(e,t)):nl=zl(e,t);e:do try{if(Re!==0&&de!==null){t=de;var s=jt;t:switch(Re){case 1:Re=0,jt=null,ul(e,t,s,1);break;case 2:case 9:if(wf(s)){Re=0,jt=null,zm(t);break}t=function(){Re!==2&&Re!==9||Ue!==e||(Re=7),rn(e)},s.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:wf(s)?(Re=0,jt=null,zm(t)):(Re=0,jt=null,ul(e,t,s,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var h=de;if(f?oh(f):h.stateNode.complete){Re=0,jt=null;var v=h.sibling;if(v!==null)de=v;else{var E=h.return;E!==null?(de=E,xu(E)):de=null}break t}}Re=0,jt=null,ul(e,t,s,5);break;case 6:Re=0,jt=null,ul(e,t,s,6);break;case 8:Pc(),$e=6;break e;default:throw Error(c(462))}}Hy();break}catch(D){ym(e,D)}while(!0);return gn=pa=null,w.H=l,w.A=u,Ee=n,de!==null?0:(Ue=null,he=0,Qi(),$e)}function Hy(){for(;de!==null&&!cg();)_m(de)}function _m(e){var t=Vd(e.alternate,e,An);e.memoizedProps=e.pendingProps,t===null?xu(e):de=t}function zm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hd(n,t,t.pendingProps,t.type,void 0,he);break;case 11:t=Hd(n,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:pc(t);default:$d(n,t),t=de=Sf(t,An),t=Vd(n,t,An)}e.memoizedProps=e.pendingProps,t===null?xu(e):de=t}function ul(e,t,n,l){gn=pa=null,pc(t),Ka=null,Hl=0;var u=t.return;try{if(Oy(e,u,t,n,he)){$e=1,du(e,$t(n,e.current)),de=null;return}}catch(s){if(u!==null)throw de=u,s;$e=1,du(e,$t(n,e.current)),de=null;return}t.flags&32768?(ye||l===1?e=!0:nl||(he&536870912)!==0?e=!1:(Gn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ut.current,l!==null&&l.tag===13&&(l.flags|=16384))),Tm(t,e)):xu(t)}function xu(e){var t=e;do{if((t.flags&32768)!==0){Tm(t,Gn);return}e=t.return;var n=My(t.alternate,t,An);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);$e===0&&($e=5)}function Tm(e,t){do{var n=wy(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);$e=6,de=null}function Em(e,t,n,l,u,s,f,h,v){e.cancelPendingCommit=null;do Au();while(at!==0);if((Ee&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=Yo,vg(e,n,s,f,h,v),e===Ue&&(de=Ue=null,he=0),ll=t,Xn=e,On=n,Ic=s,Wc=u,mm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gy(Ri,function(){return Cm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,u=B.p,B.p=2,f=Ee,Ee|=4;try{Ny(e,t,n)}finally{Ee=f,B.p=u,w.T=l}}at=1,xm(),Am(),Om()}}function xm(){if(at===1){at=0;var e=Xn,t=ll,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var l=B.p;B.p=2;var u=Ee;Ee|=4;try{im(t,e);var s=ds,f=ff(e.containerInfo),h=s.focusedElem,v=s.selectionRange;if(f!==h&&h&&h.ownerDocument&&rf(h.ownerDocument.documentElement,h)){if(v!==null&&jo(h)){var E=v.start,D=v.end;if(D===void 0&&(D=E),"selectionStart"in h)h.selectionStart=E,h.selectionEnd=Math.min(D,h.value.length);else{var Z=h.ownerDocument||document,O=Z&&Z.defaultView||window;if(O.getSelection){var C=O.getSelection(),G=h.textContent.length,K=Math.min(v.start,G),De=v.end===void 0?K:Math.min(v.end,G);!C.extend&&K>De&&(f=De,De=K,K=f);var _=sf(h,K),b=sf(h,De);if(_&&b&&(C.rangeCount!==1||C.anchorNode!==_.node||C.anchorOffset!==_.offset||C.focusNode!==b.node||C.focusOffset!==b.offset)){var T=Z.createRange();T.setStart(_.node,_.offset),C.removeAllRanges(),K>De?(C.addRange(T),C.extend(b.node,b.offset)):(T.setEnd(b.node,b.offset),C.addRange(T))}}}}for(Z=[],C=h;C=C.parentNode;)C.nodeType===1&&Z.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Z.length;h++){var U=Z[h];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}qu=!!fs,ds=fs=null}finally{Ee=u,B.p=l,w.T=n}}e.current=t,at=2}}function Am(){if(at===2){at=0;var e=Xn,t=ll,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var l=B.p;B.p=2;var u=Ee;Ee|=4;try{em(e,t.alternate,t)}finally{Ee=u,B.p=l,w.T=n}}at=3}}function Om(){if(at===4||at===3){at=0,sg();var e=Xn,t=ll,n=On,l=mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,ll=Xn=null,Rm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Vn=null),vo(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(_l,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=w.T,u=B.p,B.p=2,w.T=null;try{for(var s=e.onRecoverableError,f=0;f<l.length;f++){var h=l[f];s(h.value,{componentStack:h.stack})}}finally{w.T=t,B.p=u}}(On&3)!==0&&Au(),rn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Fc?ni++:(ni=0,Fc=e):ni=0,ai(0)}}function Rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,jl(t)))}function Au(){return xm(),Am(),Om(),Cm()}function Cm(){if(at!==5)return!1;var e=Xn,t=Ic;Ic=0;var n=vo(On),l=w.T,u=B.p;try{B.p=32>n?32:n,w.T=null,n=Wc,Wc=null;var s=Xn,f=On;if(at=0,ll=Xn=null,On=0,(Ee&6)!==0)throw Error(c(331));var h=Ee;if(Ee|=4,rm(s.current),om(s,s.current,f,n),Ee=h,ai(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(_l,s)}catch{}return!0}finally{B.p=u,w.T=l,Rm(e,t)}}function Mm(e,t,n){t=$t(n,t),t=Mc(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(Tl(e,2),rn(e))}function Ce(e,t,n){if(e.tag===3)Mm(e,e,n);else for(;t!==null;){if(t.tag===3){Mm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Vn===null||!Vn.has(l))){e=$t(n,e),n=wd(2),l=Hn(t,n,2),l!==null&&(Nd(n,l,t,e),Tl(l,2),rn(l));break}}t=t.return}}function ts(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Uy;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(n)||($c=!0,u.add(n),e=By.bind(null,e,t,n),t.then(e,e))}function By(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(he&n)===n&&($e===4||$e===3&&(he&62914560)===he&&300>Mt()-Su?(Ee&2)===0&&il(e,0):Jc|=n,al===he&&(al=0)),rn(e)}function wm(e,t){t===0&&(t=Er()),e=da(e,t),e!==null&&(Tl(e,t),rn(e))}function Ly(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wm(e,n)}function Yy(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),wm(e,n)}function Gy(e,t){return ho(e,t)}var Ou=null,ol=null,ns=!1,Ru=!1,as=!1,Jn=0;function rn(e){e!==ol&&e.next===null&&(ol===null?Ou=ol=e:ol=ol.next=e),Ru=!0,ns||(ns=!0,Vy())}function ai(e,t){if(!as&&Ru){as=!0;do for(var n=!1,l=Ou;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var s=0;else{var f=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-Nt(42|e)+1)-1,s&=u&~(f&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Um(l,s))}else s=he,s=Ni(l,l===Ue?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||zl(l,s)||(n=!0,Um(l,s));l=l.next}while(n);as=!1}}function Qy(){Nm()}function Nm(){Ru=ns=!1;var e=0;Jn!==0&&tv()&&(e=Jn);for(var t=Mt(),n=null,l=Ou;l!==null;){var u=l.next,s=Dm(l,t);s===0?(l.next=null,n===null?Ou=u:n.next=u,u===null&&(ol=n)):(n=l,(e!==0||(s&3)!==0)&&(Ru=!0)),l=u}at!==0&&at!==5||ai(e),Jn!==0&&(Jn=0)}function Dm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-Nt(s),h=1<<f,v=u[f];v===-1?((h&n)===0||(h&l)!==0)&&(u[f]=yg(h,t)):v<=t&&(e.expiredLanes|=h),s&=~h}if(t=Ue,n=he,n=Ni(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&po(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||zl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&po(l),vo(n)){case 2:case 8:n=zr;break;case 32:n=Ri;break;case 268435456:n=Tr;break;default:n=Ri}return l=km.bind(null,e),n=ho(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&po(l),e.callbackPriority=2,e.callbackNode=null,2}function km(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Au()&&e.callbackNode!==n)return null;var l=he;return l=Ni(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(pm(e,l,t),Dm(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?km.bind(null,e):null)}function Um(e,t){if(Au())return null;pm(e,t,!0)}function Vy(){av(function(){(Ee&6)!==0?ho(_r,Qy):Nm()})}function ls(){if(Jn===0){var e=Xa;e===0&&(e=Ci,Ci<<=1,(Ci&261888)===0&&(Ci=256)),Jn=e}return Jn}function Zm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zi(""+e)}function jm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Xy(e,t,n,l,u){if(t==="submit"&&n&&n.stateNode===u){var s=Zm((u[_t]||null).action),f=l.submitter;f&&(t=(t=f[_t]||null)?Zm(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var h=new Bi("action","action",null,l,u);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Jn!==0){var v=f?jm(u,f):new FormData(u);Ec(n,{pending:!0,data:v,method:u.method,action:s},null,v)}}else typeof s=="function"&&(h.preventDefault(),v=f?jm(u,f):new FormData(u),Ec(n,{pending:!0,data:v,method:u.method,action:s},s,v))},currentTarget:u}]})}}for(var is=0;is<Lo.length;is++){var us=Lo[is],$y=us.toLowerCase(),Jy=us[0].toUpperCase()+us.slice(1);an($y,"on"+Jy)}an(hf,"onAnimationEnd"),an(pf,"onAnimationIteration"),an(gf,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(ry,"onTransitionRun"),an(fy,"onTransitionStart"),an(dy,"onTransitionCancel"),an(yf,"onTransitionEnd"),Na("onMouseEnter",["mouseout","mouseover"]),Na("onMouseLeave",["mouseout","mouseover"]),Na("onPointerEnter",["pointerout","pointerover"]),Na("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(li));function qm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],u=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var f=l.length-1;0<=f;f--){var h=l[f],v=h.instance,E=h.currentTarget;if(h=h.listener,v!==s&&u.isPropagationStopped())break e;s=h,u.currentTarget=E;try{s(u)}catch(D){Gi(D)}u.currentTarget=null,s=v}else for(f=0;f<l.length;f++){if(h=l[f],v=h.instance,E=h.currentTarget,h=h.listener,v!==s&&u.isPropagationStopped())break e;s=h,u.currentTarget=E;try{s(u)}catch(D){Gi(D)}u.currentTarget=null,s=v}}}}function me(e,t){var n=t[bo];n===void 0&&(n=t[bo]=new Set);var l=e+"__bubble";n.has(l)||(Hm(t,e,2,!1),n.add(l))}function os(e,t,n){var l=0;t&&(l|=4),Hm(n,e,l,t)}var Cu="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[Cu]){e[Cu]=!0,wr.forEach(function(n){n!=="selectionchange"&&(Ky.has(n)||os(n,!1,e),os(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cu]||(t[Cu]=!0,os("selectionchange",!1,t))}}function Hm(e,t,n,l){switch(hh(t)){case 2:var u=Tv;break;case 8:u=Ev;break;default:u=Ts}n=u.bind(null,t,n,e),u=void 0,!Ro||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function ss(e,t,n,l,u){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var h=l.stateNode.containerInfo;if(h===u)break;if(f===4)for(f=l.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;h!==null;){if(f=Ca(h),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){l=s=f;continue e}h=h.parentNode}}l=l.return}Gr(function(){var E=s,D=Ao(n),Z=[];e:{var O=vf.get(e);if(O!==void 0){var C=Bi,G=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":C=Yg;break;case"focusin":G="focus",C=No;break;case"focusout":G="blur",C=No;break;case"beforeblur":case"afterblur":C=No;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Xr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Mg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Vg;break;case hf:case pf:case gf:C=Dg;break;case yf:C=$g;break;case"scroll":case"scrollend":C=Rg;break;case"wheel":C=Kg;break;case"copy":case"cut":case"paste":C=Ug;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Jr;break;case"toggle":case"beforetoggle":C=Wg}var K=(t&4)!==0,De=!K&&(e==="scroll"||e==="scrollend"),_=K?O!==null?O+"Capture":null:O;K=[];for(var b=E,T;b!==null;){var U=b;if(T=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||T===null||_===null||(U=Al(b,_),U!=null&&K.push(ii(b,U,T))),De)break;b=b.return}0<K.length&&(O=new C(O,G,null,n,D),Z.push({event:O,listeners:K}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",O&&n!==xo&&(G=n.relatedTarget||n.fromElement)&&(Ca(G)||G[Ra]))break e;if((C||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,C?(G=n.relatedTarget||n.toElement,C=E,G=G?Ca(G):null,G!==null&&(De=m(G),K=G.tag,G!==De||K!==5&&K!==27&&K!==6)&&(G=null)):(C=null,G=E),C!==G)){if(K=Xr,U="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(K=Jr,U="onPointerLeave",_="onPointerEnter",b="pointer"),De=C==null?O:xl(C),T=G==null?O:xl(G),O=new K(U,b+"leave",C,n,D),O.target=De,O.relatedTarget=T,U=null,Ca(D)===E&&(K=new K(_,b+"enter",G,n,D),K.target=T,K.relatedTarget=De,U=K),De=U,C&&G)t:{for(K=Iy,_=C,b=G,T=0,U=_;U;U=K(U))T++;U=0;for(var $=b;$;$=K($))U++;for(;0<T-U;)_=K(_),T--;for(;0<U-T;)b=K(b),U--;for(;T--;){if(_===b||b!==null&&_===b.alternate){K=_;break t}_=K(_),b=K(b)}K=null}else K=null;C!==null&&Bm(Z,O,C,K,!1),G!==null&&De!==null&&Bm(Z,De,G,K,!0)}}e:{if(O=E?xl(E):window,C=O.nodeName&&O.nodeName.toLowerCase(),C==="select"||C==="input"&&O.type==="file")var _e=nf;else if(ef(O))if(af)_e=oy;else{_e=iy;var V=ly}else C=O.nodeName,!C||C.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?E&&Eo(E.elementType)&&(_e=nf):_e=uy;if(_e&&(_e=_e(e,E))){tf(Z,_e,n,D);break e}V&&V(e,O,E),e==="focusout"&&E&&O.type==="number"&&E.memoizedProps.value!=null&&To(O,"number",O.value)}switch(V=E?xl(E):window,e){case"focusin":(ef(V)||V.contentEditable==="true")&&(qa=V,qo=E,kl=null);break;case"focusout":kl=qo=qa=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,df(Z,n,D);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":df(Z,n,D)}var ie;if(ko)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else ja?Fr(e,n)&&(pe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(pe="onCompositionStart");pe&&(Kr&&n.locale!=="ko"&&(ja||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&ja&&(ie=Qr()):(Nn=D,Co="value"in Nn?Nn.value:Nn.textContent,ja=!0)),V=Mu(E,pe),0<V.length&&(pe=new $r(pe,e,null,n,D),Z.push({event:pe,listeners:V}),ie?pe.data=ie:(ie=Pr(n),ie!==null&&(pe.data=ie)))),(ie=Pg?ey(e,n):ty(e,n))&&(pe=Mu(E,"onBeforeInput"),0<pe.length&&(V=new $r("onBeforeInput","beforeinput",null,n,D),Z.push({event:V,listeners:pe}),V.data=ie)),Xy(Z,e,E,n,D)}qm(Z,t)})}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mu(e,t){for(var n=t+"Capture",l=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=Al(e,n),u!=null&&l.unshift(ii(e,u,s)),u=Al(e,t),u!=null&&l.push(ii(e,u,s))),e.tag===3)return l;e=e.return}return[]}function Iy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bm(e,t,n,l,u){for(var s=t._reactName,f=[];n!==null&&n!==l;){var h=n,v=h.alternate,E=h.stateNode;if(h=h.tag,v!==null&&v===l)break;h!==5&&h!==26&&h!==27||E===null||(v=E,u?(E=Al(n,s),E!=null&&f.unshift(ii(n,E,v))):u||(E=Al(n,s),E!=null&&f.push(ii(n,E,v)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Wy=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function Lm(e){return(typeof e=="string"?e:""+e).replace(Wy,`
15
+ `).replace(Fy,"")}function Ym(e,t){return t=Lm(t),Lm(e)===t}function Ne(e,t,n,l,u,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ka(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ka(e,""+l);break;case"className":ki(e,"class",l);break;case"tabIndex":ki(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(e,n,l);break;case"style":Lr(e,l,s);break;case"data":if(t!=="object"){ki(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Zi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 s=="function"&&(n==="formAction"?(t!=="input"&&Ne(e,t,"name",u.name,u,null),Ne(e,t,"formEncType",u.formEncType,u,null),Ne(e,t,"formMethod",u.formMethod,u,null),Ne(e,t,"formTarget",u.formTarget,u,null)):(Ne(e,t,"encType",u.encType,u,null),Ne(e,t,"method",u.method,u,null),Ne(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Zi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=dn);break;case"onScroll":l!=null&&me("scroll",e);break;case"onScrollEnd":l!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Zi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":me("beforetoggle",e),me("toggle",e),Di(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Di(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ag.get(n)||n,Di(e,n,l))}}function rs(e,t,n,l,u,s){switch(n){case"style":Lr(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof l=="string"?ka(e,l):(typeof l=="number"||typeof l=="bigint")&&ka(e,""+l);break;case"onScroll":l!=null&&me("scroll",e);break;case"onScrollEnd":l!=null&&me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nr.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),s=e[_t]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,u);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Di(e,n,l)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var l=!1,u=!1,s;for(s in n)if(n.hasOwnProperty(s)){var f=n[s];if(f!=null)switch(s){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ne(e,t,s,f,n,null)}}u&&Ne(e,t,"srcSet",n.srcSet,n,null),l&&Ne(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var h=s=f=u=null,v=null,E=null;for(l in n)if(n.hasOwnProperty(l)){var D=n[l];if(D!=null)switch(l){case"name":u=D;break;case"type":f=D;break;case"checked":v=D;break;case"defaultChecked":E=D;break;case"value":s=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:Ne(e,t,l,D,n,null)}}jr(e,s,h,v,E,f,u,!1);return;case"select":me("invalid",e),l=f=s=null;for(u in n)if(n.hasOwnProperty(u)&&(h=n[u],h!=null))switch(u){case"value":s=h;break;case"defaultValue":f=h;break;case"multiple":l=h;default:Ne(e,t,u,h,n,null)}t=s,n=f,e.multiple=!!l,t!=null?Da(e,!!l,t,!1):n!=null&&Da(e,!!l,n,!0);return;case"textarea":me("invalid",e),s=u=l=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":l=h;break;case"defaultValue":u=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Ne(e,t,f,h,n,null)}Hr(e,l,u,s);return;case"option":for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null)&&(v==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ne(e,t,v,l,n,null));return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(l=0;l<li.length;l++)me(li[l],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("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(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ne(e,t,E,l,n,null)}return;default:if(Eo(t)){for(D in n)n.hasOwnProperty(D)&&(l=n[D],l!==void 0&&rs(e,t,D,l,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!=null&&Ne(e,t,h,l,n,null))}function Py(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,f=null,h=null,v=null,E=null,D=null;for(C in n){var Z=n[C];if(n.hasOwnProperty(C)&&Z!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":v=Z;default:l.hasOwnProperty(C)||Ne(e,t,C,null,l,Z)}}for(var O in l){var C=l[O];if(Z=n[O],l.hasOwnProperty(O)&&(C!=null||Z!=null))switch(O){case"type":s=C;break;case"name":u=C;break;case"checked":E=C;break;case"defaultChecked":D=C;break;case"value":f=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,t));break;default:C!==Z&&Ne(e,t,O,C,l,Z)}}zo(e,f,h,v,E,D,s,u);return;case"select":C=f=h=O=null;for(s in n)if(v=n[s],n.hasOwnProperty(s)&&v!=null)switch(s){case"value":break;case"multiple":C=v;default:l.hasOwnProperty(s)||Ne(e,t,s,null,l,v)}for(u in l)if(s=l[u],v=n[u],l.hasOwnProperty(u)&&(s!=null||v!=null))switch(u){case"value":O=s;break;case"defaultValue":h=s;break;case"multiple":f=s;default:s!==v&&Ne(e,t,u,s,l,v)}t=h,n=f,l=C,O!=null?Da(e,!!n,O,!1):!!l!=!!n&&(t!=null?Da(e,!!n,t,!0):Da(e,!!n,n?[]:"",!1));return;case"textarea":C=O=null;for(h in n)if(u=n[h],n.hasOwnProperty(h)&&u!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ne(e,t,h,null,l,u)}for(f in l)if(u=l[f],s=n[f],l.hasOwnProperty(f)&&(u!=null||s!=null))switch(f){case"value":O=u;break;case"defaultValue":C=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==s&&Ne(e,t,f,u,l,s)}qr(e,O,C);return;case"option":for(var G in n)O=n[G],n.hasOwnProperty(G)&&O!=null&&!l.hasOwnProperty(G)&&(G==="selected"?e.selected=!1:Ne(e,t,G,null,l,O));for(v in l)O=l[v],C=n[v],l.hasOwnProperty(v)&&O!==C&&(O!=null||C!=null)&&(v==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":Ne(e,t,v,O,l,C));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 K in n)O=n[K],n.hasOwnProperty(K)&&O!=null&&!l.hasOwnProperty(K)&&Ne(e,t,K,null,l,O);for(E in l)if(O=l[E],C=n[E],l.hasOwnProperty(E)&&O!==C&&(O!=null||C!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:Ne(e,t,E,O,l,C)}return;default:if(Eo(t)){for(var De in n)O=n[De],n.hasOwnProperty(De)&&O!==void 0&&!l.hasOwnProperty(De)&&rs(e,t,De,void 0,l,O);for(D in l)O=l[D],C=n[D],!l.hasOwnProperty(D)||O===C||O===void 0&&C===void 0||rs(e,t,D,O,l,C);return}}for(var _ in n)O=n[_],n.hasOwnProperty(_)&&O!=null&&!l.hasOwnProperty(_)&&Ne(e,t,_,null,l,O);for(Z in l)O=l[Z],C=n[Z],!l.hasOwnProperty(Z)||O===C||O==null&&C==null||Ne(e,t,Z,O,l,C)}function Gm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ev(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],s=u.transferSize,f=u.initiatorType,h=u.duration;if(s&&h&&Gm(f)){for(f=0,h=u.responseEnd,l+=1;l<n.length;l++){var v=n[l],E=v.startTime;if(E>h)break;var D=v.transferSize,Z=v.initiatorType;D&&Gm(Z)&&(v=v.responseEnd,f+=D*(v<h?1:(h-E)/(v-E)))}if(--l,t+=8*(s+f)/(u.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 fs=null,ds=null;function wu(e){return e.nodeType===9?e:e.ownerDocument}function Qm(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 Vm(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 ms(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 hs=null;function tv(){var e=window.event;return e&&e.type==="popstate"?e===hs?!1:(hs=e,!0):(hs=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,nv=typeof clearTimeout=="function"?clearTimeout:void 0,$m=typeof Promise=="function"?Promise:void 0,av=typeof queueMicrotask=="function"?queueMicrotask:typeof $m<"u"?function(e){return $m.resolve(null).then(e).catch(lv)}:Xm;function lv(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Jm(e,t){var n=t,l=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(u),fl(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ui(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ui(n);for(var s=n.firstChild;s;){var f=s.nextSibling,h=s.nodeName;s[El]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=f}}else n==="body"&&ui(e.ownerDocument.body);n=u}while(n);fl(t)}function Km(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function ps(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ps(n),So(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iv(e,t,n,l){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[El])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function uv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function Im(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function gs(e){return e.data==="$?"||e.data==="$~"}function ys(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ov(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ft(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 vs=null;function Wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Pm(e,t,n){switch(t=wu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);So(e)}var Pt=new Map,eh=new Set;function Nu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rn=B.d;B.d={f:cv,r:sv,D:rv,C:fv,L:dv,m:mv,X:pv,S:hv,M:gv};function cv(){var e=Rn.f(),t=Tu();return e||t}function sv(e){var t=Ma(e);t!==null&&t.tag===5&&t.type==="form"?yd(t):Rn.r(e)}var cl=typeof document>"u"?null:document;function th(e,t,n){var l=cl;if(l&&typeof t=="string"&&t){var u=Vt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),eh.has(u)||(eh.add(u),e={rel:e,crossOrigin:n,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ft(t,"link",e),it(t),l.head.appendChild(t)))}}function rv(e){Rn.D(e),th("dns-prefetch",e,null)}function fv(e,t){Rn.C(e,t),th("preconnect",e,t)}function dv(e,t,n){Rn.L(e,t,n);var l=cl;if(l&&e&&t){var u='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Vt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Vt(n.imageSizes)+'"]')):u+='[href="'+Vt(e)+'"]';var s=u;switch(t){case"style":s=sl(e);break;case"script":s=rl(e)}Pt.has(s)||(e=R({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pt.set(s,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(oi(s))||t==="script"&&l.querySelector(ci(s))||(t=l.createElement("link"),ft(t,"link",e),it(t),l.head.appendChild(t)))}}function mv(e,t){Rn.m(e,t);var n=cl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Vt(l)+'"][href="'+Vt(e)+'"]',s=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=rl(e)}if(!Pt.has(s)&&(e=R({rel:"modulepreload",href:e},t),Pt.set(s,e),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ci(s)))return}l=n.createElement("link"),ft(l,"link",e),it(l),n.head.appendChild(l)}}}function hv(e,t,n){Rn.S(e,t,n);var l=cl;if(l&&e){var u=wa(l).hoistableStyles,s=sl(e);t=t||"default";var f=u.get(s);if(!f){var h={loading:0,preload:null};if(f=l.querySelector(oi(s)))h.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pt.get(s))&&bs(e,n);var v=f=l.createElement("link");it(v),ft(v,"link",e),v._p=new Promise(function(E,D){v.onload=E,v.onerror=D}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Du(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:h},u.set(s,f)}}}function pv(e,t){Rn.X(e,t);var n=cl;if(n&&e){var l=wa(n).hoistableScripts,u=rl(e),s=l.get(u);s||(s=n.querySelector(ci(u)),s||(e=R({src:e,async:!0},t),(t=Pt.get(u))&&Ss(e,t),s=n.createElement("script"),it(s),ft(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function gv(e,t){Rn.M(e,t);var n=cl;if(n&&e){var l=wa(n).hoistableScripts,u=rl(e),s=l.get(u);s||(s=n.querySelector(ci(u)),s||(e=R({src:e,async:!0,type:"module"},t),(t=Pt.get(u))&&Ss(e,t),s=n.createElement("script"),it(s),ft(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function nh(e,t,n,l){var u=(u=fe.current)?Nu(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=sl(n.href),n=wa(u).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=sl(n.href);var s=wa(u).hoistableStyles,f=s.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=u.querySelector(oi(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Pt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pt.set(e,n),s||yv(u,e,n,f.state))),t&&l===null)throw Error(c(528,""));return f}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=rl(n),n=wa(u).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function sl(e){return'href="'+Vt(e)+'"'}function oi(e){return'link[rel="stylesheet"]['+e+"]"}function ah(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function yv(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ft(t,"link",n),it(t),e.head.appendChild(t))}function rl(e){return'[src="'+Vt(e)+'"]'}function ci(e){return"script[async]"+e}function lh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Vt(n.href)+'"]');if(l)return t.instance=l,it(l),l;var u=R({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),ft(l,"style",u),Du(l,n.precedence,e),t.instance=l;case"stylesheet":u=sl(n.href);var s=e.querySelector(oi(u));if(s)return t.state.loading|=4,t.instance=s,it(s),s;l=ah(n),(u=Pt.get(u))&&bs(l,u),s=(e.ownerDocument||e).createElement("link"),it(s);var f=s;return f._p=new Promise(function(h,v){f.onload=h,f.onerror=v}),ft(s,"link",l),t.state.loading|=4,Du(s,n.precedence,e),t.instance=s;case"script":return s=rl(n.src),(u=e.querySelector(ci(s)))?(t.instance=u,it(u),u):(l=n,(u=Pt.get(s))&&(l=R({},n),Ss(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),it(u),ft(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Du(l,n.precedence,e));return t.instance}function Du(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,s=u,f=0;f<l.length;f++){var h=l[f];if(h.dataset.precedence===t)s=h;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ku=null;function ih(e,t,n){if(ku===null){var l=new Map,u=ku=new Map;u.set(n,l)}else u=ku,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var s=n[u];if(!(s[El]||s[ot]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var h=l.get(f);h?h.push(s):l.set(f,[s])}}return l}function uh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vv(e,t,n){if(n===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 oh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bv(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=sl(l.href),s=t.querySelector(oi(u));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,it(s);return}s=t.ownerDocument||t,l=ah(l),(u=Pt.get(u))&&bs(l,u),s=s.createElement("link"),it(s);var f=s;f._p=new Promise(function(h,v){f.onload=h,f.onerror=v}),ft(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Uu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var _s=0;function Sv(e,t){return e.stylesheets&&e.count===0&&ju(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&_s===0&&(_s=62500*ev());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>_s?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zu=null;function ju(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zu=new Map,t.forEach(_v,e),Zu=null,Uu.call(e))}function _v(e,t){if(!(t.state.loading&4)){var n=Zu.get(e);if(n)var l=n.get(null);else{n=new Map,Zu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var f=u[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}u=t.instance,f=u.getAttribute("data-precedence"),s=n.get(f)||l,s===l&&n.set(null,u),n.set(f,u),this.count++,l=Uu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var si={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function zv(e,t,n,l,u,s,f,h,v){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=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function ch(e,t,n,l,u,s,f,h,v,E,D,Z){return e=new zv(e,t,n,f,v,E,D,Z,h),t=1,s===!0&&(t|=24),s=kt(3,null,null,t),e.current=s,s.stateNode=e,t=ec(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},lc(s),e}function sh(e){return e?(e=La,e):La}function rh(e,t,n,l,u,s){u=sh(u),l.context===null?l.context=u:l.pendingContext=u,l=qn(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=Hn(e,l,t),n!==null&&(Ot(n,e,t),Ll(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zs(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function dh(e){if(e.tag===13||e.tag===31){var t=da(e,67108864);t!==null&&Ot(t,e,67108864),zs(e,67108864)}}function mh(e){if(e.tag===13||e.tag===31){var t=Ht();t=yo(t);var n=da(e,t);n!==null&&Ot(n,e,t),zs(e,t)}}var qu=!0;function Tv(e,t,n,l){var u=w.T;w.T=null;var s=B.p;try{B.p=2,Ts(e,t,n,l)}finally{B.p=s,w.T=u}}function Ev(e,t,n,l){var u=w.T;w.T=null;var s=B.p;try{B.p=8,Ts(e,t,n,l)}finally{B.p=s,w.T=u}}function Ts(e,t,n,l){if(qu){var u=Es(l);if(u===null)ss(e,t,l,Hu,n),ph(e,l);else if(Av(u,e,t,n,l))l.stopPropagation();else if(ph(e,l),t&4&&-1<xv.indexOf(e)){for(;u!==null;){var s=Ma(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=oa(s.pendingLanes);if(f!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var v=1<<31-Nt(f);h.entanglements[1]|=v,f&=~v}rn(s),(Ee&6)===0&&(_u=Mt()+500,ai(0))}}break;case 31:case 13:h=da(s,2),h!==null&&Ot(h,s,2),Tu(),zs(s,2)}if(s=Es(l),s===null&&ss(e,t,l,Hu,n),s===u)break;u=s}u!==null&&l.stopPropagation()}else ss(e,t,l,null,n)}}function Es(e){return e=Ao(e),xs(e)}var Hu=null;function xs(e){if(Hu=null,e=Ca(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hu=e,null}function hh(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(rg()){case _r:return 2;case zr:return 8;case Ri:case fg:return 32;case Tr:return 268435456;default:return 32}default:return 32}}var As=!1,In=null,Wn=null,Fn=null,ri=new Map,fi=new Map,Pn=[],xv="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":In=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fi.delete(t.pointerId)}}function di(e,t,n,l,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[u]},t!==null&&(t=Ma(t),t!==null&&dh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Av(e,t,n,l,u){switch(t){case"focusin":return In=di(In,e,t,n,l,u),!0;case"dragenter":return Wn=di(Wn,e,t,n,l,u),!0;case"mouseover":return Fn=di(Fn,e,t,n,l,u),!0;case"pointerover":var s=u.pointerId;return ri.set(s,di(ri.get(s)||null,e,t,n,l,u)),!0;case"gotpointercapture":return s=u.pointerId,fi.set(s,di(fi.get(s)||null,e,t,n,l,u)),!0}return!1}function gh(e){var t=Ca(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Cr(e.priority,function(){mh(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Cr(e.priority,function(){mh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Es(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);xo=l,n.target.dispatchEvent(l),xo=null}else return t=Ma(n),t!==null&&dh(t),e.blockedOn=n,!1;t.shift()}return!0}function yh(e,t,n){Bu(e)&&n.delete(t)}function Ov(){As=!1,In!==null&&Bu(In)&&(In=null),Wn!==null&&Bu(Wn)&&(Wn=null),Fn!==null&&Bu(Fn)&&(Fn=null),ri.forEach(yh),fi.forEach(yh)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ov)))}var Yu=null;function vh(e){Yu!==e&&(Yu=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Yu===e&&(Yu=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(xs(l||n)===null)continue;break}var s=Ma(n);s!==null&&(e.splice(t,3),t-=3,Ec(s,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function fl(e){function t(v){return Lu(v,e)}In!==null&&Lu(In,e),Wn!==null&&Lu(Wn,e),Fn!==null&&Lu(Fn,e),ri.forEach(t),fi.forEach(t);for(var n=0;n<Pn.length;n++){var l=Pn[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)gh(n),n.blockedOn===null&&Pn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],s=n[l+1],f=u[_t]||null;if(typeof s=="function")f||vh(n);else if(f){var h=null;if(s&&s.hasAttribute("formAction")){if(u=s,f=s[_t]||null)h=f.formAction;else if(xs(u)!==null)continue}else h=f.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),vh(n)}}}function bh(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Os(e){this._internalRoot=e}Gu.prototype.render=Os.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=Ht();rh(n,l,e,t,null,null)},Gu.prototype.unmount=Os.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rh(e.current,2,null,e,null,null),Tu(),t[Ra]=null}};function Gu(e){this._internalRoot=e}Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pn.length&&t!==0&&t<Pn[n].priority;n++);Pn.splice(n,0,e),n===0&&gh(e)}};var Sh=i.version;if(Sh!=="19.2.4")throw Error(c(527,Sh,"19.2.4"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=g(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var Rv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{_l=Qu.inject(Rv),wt=Qu}catch{}}return hi.createRoot=function(e,t){if(!r(e))throw Error(c(299));var n=!1,l="",u=Od,s=Rd,f=Cd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=ch(e,1,!1,null,null,n,l,null,u,s,f,bh),e[Ra]=t.current,cs(e),new Os(t)},hi.hydrateRoot=function(e,t,n){if(!r(e))throw Error(c(299));var l=!1,u="",s=Od,f=Rd,h=Cd,v=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(v=n.formState)),t=ch(e,1,!0,t,n??null,l,u,v,s,f,h,bh),t.context=sh(null),n=t.current,l=Ht(),l=yo(l),u=qn(l),u.callback=null,Hn(n,u,l),n=l,t.current.lanes=n,Tl(t,n),rn(t),e[Ra]=t.current,cs(e),new Gu(t)},hi.version="19.2.4",hi}var Mh;function qv(){if(Mh)return Ms.exports;Mh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ms.exports=jv(),Ms.exports}var Hv=qv();function k(a,i,o){function c(p,y){if(p._zod||Object.defineProperty(p,"_zod",{value:{def:y,constr:d,traits:new Set},enumerable:!1}),p._zod.traits.has(a))return;p._zod.traits.add(a),i(p,y);const g=d.prototype,A=Object.keys(g);for(let R=0;R<A.length;R++){const N=A[R];N in p||(p[N]=g[N].bind(p))}}const r=o?.Parent??Object;class m extends r{}Object.defineProperty(m,"name",{value:a});function d(p){var y;const g=o?.Parent?new m:this;c(g,p),(y=g._zod).deferred??(y.deferred=[]);for(const A of g._zod.deferred)A();return g}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:p=>o?.Parent&&p instanceof o.Parent?!0:p?._zod?.traits?.has(a)}),Object.defineProperty(d,"name",{value:a}),d}class hl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ap extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const lp={};function na(a){return lp}function ip(a){const i=Object.values(a).filter(c=>typeof c=="number");return Object.entries(a).filter(([c,r])=>i.indexOf(+c)===-1).map(([c,r])=>r)}function js(a,i){return typeof i=="bigint"?i.toString():i}function to(a){return{get value(){{const i=a();return Object.defineProperty(this,"value",{value:i}),i}}}}function Qs(a){return a==null}function Vs(a){const i=a.startsWith("^")?1:0,o=a.endsWith("$")?a.length-1:a.length;return a.slice(i,o)}function Bv(a,i){const o=(a.toString().split(".")[1]||"").length,c=i.toString();let r=(c.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(c)){const y=c.match(/\d?e-(\d?)/);y?.[1]&&(r=Number.parseInt(y[1]))}const m=o>r?o:r,d=Number.parseInt(a.toFixed(m).replace(".","")),p=Number.parseInt(i.toFixed(m).replace(".",""));return d%p/10**m}const wh=Symbol("evaluating");function Oe(a,i,o){let c;Object.defineProperty(a,i,{get(){if(c!==wh)return c===void 0&&(c=wh,c=o()),c},set(r){Object.defineProperty(a,i,{value:r})},configurable:!0})}function Oa(a,i,o){Object.defineProperty(a,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}function la(...a){const i={};for(const o of a){const c=Object.getOwnPropertyDescriptors(o);Object.assign(i,c)}return Object.defineProperties({},i)}function Nh(a){return JSON.stringify(a)}function Lv(a){return a.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const up="captureStackTrace"in Error?Error.captureStackTrace:(...a)=>{};function gi(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}const Yv=to(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const a=Function;return new a(""),!0}catch{return!1}});function pl(a){if(gi(a)===!1)return!1;const i=a.constructor;if(i===void 0||typeof i!="function")return!0;const o=i.prototype;return!(gi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function op(a){return pl(a)?{...a}:Array.isArray(a)?[...a]:a}const Gv=new Set(["string","number","symbol"]);function gl(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ia(a,i,o){const c=new a._zod.constr(i??a._zod.def);return(!i||o?.parent)&&(c._zod.parent=a),c}function X(a){const i=a;if(!i)return{};if(typeof i=="string")return{error:()=>i};if(i?.message!==void 0){if(i?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function Qv(a){return Object.keys(a).filter(i=>a[i]._zod.optin==="optional"&&a[i]._zod.optout==="optional")}const Vv={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xv(a,i){const o=a._zod.def,c=o.checks;if(c&&c.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const m=la(a._zod.def,{get shape(){const d={};for(const p in i){if(!(p in o.shape))throw new Error(`Unrecognized key: "${p}"`);i[p]&&(d[p]=o.shape[p])}return Oa(this,"shape",d),d},checks:[]});return ia(a,m)}function $v(a,i){const o=a._zod.def,c=o.checks;if(c&&c.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const m=la(a._zod.def,{get shape(){const d={...a._zod.def.shape};for(const p in i){if(!(p in o.shape))throw new Error(`Unrecognized key: "${p}"`);i[p]&&delete d[p]}return Oa(this,"shape",d),d},checks:[]});return ia(a,m)}function Jv(a,i){if(!pl(i))throw new Error("Invalid input to extend: expected a plain object");const o=a._zod.def.checks;if(o&&o.length>0){const m=a._zod.def.shape;for(const d in i)if(Object.getOwnPropertyDescriptor(m,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=la(a._zod.def,{get shape(){const m={...a._zod.def.shape,...i};return Oa(this,"shape",m),m}});return ia(a,r)}function Kv(a,i){if(!pl(i))throw new Error("Invalid input to safeExtend: expected a plain object");const o=la(a._zod.def,{get shape(){const c={...a._zod.def.shape,...i};return Oa(this,"shape",c),c}});return ia(a,o)}function Iv(a,i){const o=la(a._zod.def,{get shape(){const c={...a._zod.def.shape,...i._zod.def.shape};return Oa(this,"shape",c),c},get catchall(){return i._zod.def.catchall},checks:[]});return ia(a,o)}function Wv(a,i,o){const r=i._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=la(i._zod.def,{get shape(){const p=i._zod.def.shape,y={...p};if(o)for(const g in o){if(!(g in p))throw new Error(`Unrecognized key: "${g}"`);o[g]&&(y[g]=a?new a({type:"optional",innerType:p[g]}):p[g])}else for(const g in p)y[g]=a?new a({type:"optional",innerType:p[g]}):p[g];return Oa(this,"shape",y),y},checks:[]});return ia(i,d)}function Fv(a,i,o){const c=la(i._zod.def,{get shape(){const r=i._zod.def.shape,m={...r};if(o)for(const d in o){if(!(d in m))throw new Error(`Unrecognized key: "${d}"`);o[d]&&(m[d]=new a({type:"nonoptional",innerType:r[d]}))}else for(const d in r)m[d]=new a({type:"nonoptional",innerType:r[d]});return Oa(this,"shape",m),m}});return ia(i,c)}function dl(a,i=0){if(a.aborted===!0)return!0;for(let o=i;o<a.issues.length;o++)if(a.issues[o]?.continue!==!0)return!0;return!1}function ml(a,i){return i.map(o=>{var c;return(c=o).path??(c.path=[]),o.path.unshift(a),o})}function Vu(a){return typeof a=="string"?a:a?.message}function aa(a,i,o){const c={...a,path:a.path??[]};if(!a.message){const r=Vu(a.inst?._zod.def?.error?.(a))??Vu(i?.error?.(a))??Vu(o.customError?.(a))??Vu(o.localeError?.(a))??"Invalid input";c.message=r}return delete c.inst,delete c.continue,i?.reportInput||delete c.input,c}function Xs(a){return Array.isArray(a)?"array":typeof a=="string"?"string":"unknown"}function yi(...a){const[i,o,c]=a;return typeof i=="string"?{message:i,code:"custom",input:o,inst:c}:{...i}}const cp=(a,i)=>{a.name="$ZodError",Object.defineProperty(a,"_zod",{value:a._zod,enumerable:!1}),Object.defineProperty(a,"issues",{value:i,enumerable:!1}),a.message=JSON.stringify(i,js,2),Object.defineProperty(a,"toString",{value:()=>a.message,enumerable:!1})},sp=k("$ZodError",cp),rp=k("$ZodError",cp,{Parent:Error});function Pv(a,i=o=>o.message){const o={},c=[];for(const r of a.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(i(r))):c.push(i(r));return{formErrors:c,fieldErrors:o}}function e0(a,i=o=>o.message){const o={_errors:[]},c=r=>{for(const m of r.issues)if(m.code==="invalid_union"&&m.errors.length)m.errors.map(d=>c({issues:d}));else if(m.code==="invalid_key")c({issues:m.issues});else if(m.code==="invalid_element")c({issues:m.issues});else if(m.path.length===0)o._errors.push(i(m));else{let d=o,p=0;for(;p<m.path.length;){const y=m.path[p];p===m.path.length-1?(d[y]=d[y]||{_errors:[]},d[y]._errors.push(i(m))):d[y]=d[y]||{_errors:[]},d=d[y],p++}}};return c(a),o}const $s=a=>(i,o,c,r)=>{const m=c?Object.assign(c,{async:!1}):{async:!1},d=i._zod.run({value:o,issues:[]},m);if(d instanceof Promise)throw new hl;if(d.issues.length){const p=new(r?.Err??a)(d.issues.map(y=>aa(y,m,na())));throw up(p,r?.callee),p}return d.value},Js=a=>async(i,o,c,r)=>{const m=c?Object.assign(c,{async:!0}):{async:!0};let d=i._zod.run({value:o,issues:[]},m);if(d instanceof Promise&&(d=await d),d.issues.length){const p=new(r?.Err??a)(d.issues.map(y=>aa(y,m,na())));throw up(p,r?.callee),p}return d.value},no=a=>(i,o,c)=>{const r=c?{...c,async:!1}:{async:!1},m=i._zod.run({value:o,issues:[]},r);if(m instanceof Promise)throw new hl;return m.issues.length?{success:!1,error:new(a??sp)(m.issues.map(d=>aa(d,r,na())))}:{success:!0,data:m.value}},fp=no(rp),ao=a=>async(i,o,c)=>{const r=c?Object.assign(c,{async:!0}):{async:!0};let m=i._zod.run({value:o,issues:[]},r);return m instanceof Promise&&(m=await m),m.issues.length?{success:!1,error:new a(m.issues.map(d=>aa(d,r,na())))}:{success:!0,data:m.value}},t0=ao(rp),n0=a=>(i,o,c)=>{const r=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return $s(a)(i,o,r)},a0=a=>(i,o,c)=>$s(a)(i,o,c),l0=a=>async(i,o,c)=>{const r=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Js(a)(i,o,r)},i0=a=>async(i,o,c)=>Js(a)(i,o,c),u0=a=>(i,o,c)=>{const r=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return no(a)(i,o,r)},o0=a=>(i,o,c)=>no(a)(i,o,c),c0=a=>async(i,o,c)=>{const r=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return ao(a)(i,o,r)},s0=a=>async(i,o,c)=>ao(a)(i,o,c),r0=/^[cC][^\s-]{8,}$/,f0=/^[0-9a-z]+$/,d0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,m0=/^[0-9a-vA-V]{20}$/,h0=/^[A-Za-z0-9]{27}$/,p0=/^[a-zA-Z0-9_-]{21}$/,g0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,y0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dh=a=>a?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${a}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,v0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function S0(){return new RegExp(b0,"u")}const _0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,z0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,T0=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,E0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dp=/^[A-Za-z0-9_-]*$/,A0=/^\+[1-9]\d{6,14}$/,mp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",O0=new RegExp(`^${mp}$`);function hp(a){const i="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof a.precision=="number"?a.precision===-1?`${i}`:a.precision===0?`${i}:[0-5]\\d`:`${i}:[0-5]\\d\\.\\d{${a.precision}}`:`${i}(?::[0-5]\\d(?:\\.\\d+)?)?`}function R0(a){return new RegExp(`^${hp(a)}$`)}function C0(a){const i=hp({precision:a.precision}),o=["Z"];a.local&&o.push(""),a.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const c=`${i}(?:${o.join("|")})`;return new RegExp(`^${mp}T(?:${c})$`)}const M0=a=>{const i=a?`[\\s\\S]{${a?.minimum??0},${a?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},w0=/^-?\d+$/,pp=/^-?\d+(?:\.\d+)?$/,N0=/^(?:true|false)$/i,D0=/^null$/i,k0=/^undefined$/i,U0=/^[^A-Z]*$/,Z0=/^[^a-z]*$/,Ct=k("$ZodCheck",(a,i)=>{var o;a._zod??(a._zod={}),a._zod.def=i,(o=a._zod).onattach??(o.onattach=[])}),gp={number:"number",bigint:"bigint",object:"date"},yp=k("$ZodCheckLessThan",(a,i)=>{Ct.init(a,i);const o=gp[typeof i.value];a._zod.onattach.push(c=>{const r=c._zod.bag,m=(i.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value<m&&(i.inclusive?r.maximum=i.value:r.exclusiveMaximum=i.value)}),a._zod.check=c=>{(i.inclusive?c.value<=i.value:c.value<i.value)||c.issues.push({origin:o,code:"too_big",maximum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:a,continue:!i.abort})}}),vp=k("$ZodCheckGreaterThan",(a,i)=>{Ct.init(a,i);const o=gp[typeof i.value];a._zod.onattach.push(c=>{const r=c._zod.bag,m=(i.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>m&&(i.inclusive?r.minimum=i.value:r.exclusiveMinimum=i.value)}),a._zod.check=c=>{(i.inclusive?c.value>=i.value:c.value>i.value)||c.issues.push({origin:o,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:a,continue:!i.abort})}}),j0=k("$ZodCheckMultipleOf",(a,i)=>{Ct.init(a,i),a._zod.onattach.push(o=>{var c;(c=o._zod.bag).multipleOf??(c.multipleOf=i.value)}),a._zod.check=o=>{if(typeof o.value!=typeof i.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%i.value===BigInt(0):Bv(o.value,i.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:i.value,input:o.value,inst:a,continue:!i.abort})}}),q0=k("$ZodCheckNumberFormat",(a,i)=>{Ct.init(a,i),i.format=i.format||"float64";const o=i.format?.includes("int"),c=o?"int":"number",[r,m]=Vv[i.format];a._zod.onattach.push(d=>{const p=d._zod.bag;p.format=i.format,p.minimum=r,p.maximum=m,o&&(p.pattern=w0)}),a._zod.check=d=>{const p=d.value;if(o){if(!Number.isInteger(p)){d.issues.push({expected:c,format:i.format,code:"invalid_type",continue:!1,input:p,inst:a});return}if(!Number.isSafeInteger(p)){p>0?d.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:a,origin:c,inclusive:!0,continue:!i.abort}):d.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:a,origin:c,inclusive:!0,continue:!i.abort});return}}p<r&&d.issues.push({origin:"number",input:p,code:"too_small",minimum:r,inclusive:!0,inst:a,continue:!i.abort}),p>m&&d.issues.push({origin:"number",input:p,code:"too_big",maximum:m,inclusive:!0,inst:a,continue:!i.abort})}}),H0=k("$ZodCheckMaxLength",(a,i)=>{var o;Ct.init(a,i),(o=a._zod.def).when??(o.when=c=>{const r=c.value;return!Qs(r)&&r.length!==void 0}),a._zod.onattach.push(c=>{const r=c._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<r&&(c._zod.bag.maximum=i.maximum)}),a._zod.check=c=>{const r=c.value;if(r.length<=i.maximum)return;const d=Xs(r);c.issues.push({origin:d,code:"too_big",maximum:i.maximum,inclusive:!0,input:r,inst:a,continue:!i.abort})}}),B0=k("$ZodCheckMinLength",(a,i)=>{var o;Ct.init(a,i),(o=a._zod.def).when??(o.when=c=>{const r=c.value;return!Qs(r)&&r.length!==void 0}),a._zod.onattach.push(c=>{const r=c._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>r&&(c._zod.bag.minimum=i.minimum)}),a._zod.check=c=>{const r=c.value;if(r.length>=i.minimum)return;const d=Xs(r);c.issues.push({origin:d,code:"too_small",minimum:i.minimum,inclusive:!0,input:r,inst:a,continue:!i.abort})}}),L0=k("$ZodCheckLengthEquals",(a,i)=>{var o;Ct.init(a,i),(o=a._zod.def).when??(o.when=c=>{const r=c.value;return!Qs(r)&&r.length!==void 0}),a._zod.onattach.push(c=>{const r=c._zod.bag;r.minimum=i.length,r.maximum=i.length,r.length=i.length}),a._zod.check=c=>{const r=c.value,m=r.length;if(m===i.length)return;const d=Xs(r),p=m>i.length;c.issues.push({origin:d,...p?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:c.value,inst:a,continue:!i.abort})}}),lo=k("$ZodCheckStringFormat",(a,i)=>{var o,c;Ct.init(a,i),a._zod.onattach.push(r=>{const m=r._zod.bag;m.format=i.format,i.pattern&&(m.patterns??(m.patterns=new Set),m.patterns.add(i.pattern))}),i.pattern?(o=a._zod).check??(o.check=r=>{i.pattern.lastIndex=0,!i.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:i.format,input:r.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:a,continue:!i.abort})}):(c=a._zod).check??(c.check=()=>{})}),Y0=k("$ZodCheckRegex",(a,i)=>{lo.init(a,i),a._zod.check=o=>{i.pattern.lastIndex=0,!i.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:i.pattern.toString(),inst:a,continue:!i.abort})}}),G0=k("$ZodCheckLowerCase",(a,i)=>{i.pattern??(i.pattern=U0),lo.init(a,i)}),Q0=k("$ZodCheckUpperCase",(a,i)=>{i.pattern??(i.pattern=Z0),lo.init(a,i)}),V0=k("$ZodCheckIncludes",(a,i)=>{Ct.init(a,i);const o=gl(i.includes),c=new RegExp(typeof i.position=="number"?`^.{${i.position}}${o}`:o);i.pattern=c,a._zod.onattach.push(r=>{const m=r._zod.bag;m.patterns??(m.patterns=new Set),m.patterns.add(c)}),a._zod.check=r=>{r.value.includes(i.includes,i.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:r.value,inst:a,continue:!i.abort})}}),X0=k("$ZodCheckStartsWith",(a,i)=>{Ct.init(a,i);const o=new RegExp(`^${gl(i.prefix)}.*`);i.pattern??(i.pattern=o),a._zod.onattach.push(c=>{const r=c._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),a._zod.check=c=>{c.value.startsWith(i.prefix)||c.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:c.value,inst:a,continue:!i.abort})}}),$0=k("$ZodCheckEndsWith",(a,i)=>{Ct.init(a,i);const o=new RegExp(`.*${gl(i.suffix)}$`);i.pattern??(i.pattern=o),a._zod.onattach.push(c=>{const r=c._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),a._zod.check=c=>{c.value.endsWith(i.suffix)||c.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:c.value,inst:a,continue:!i.abort})}}),J0=k("$ZodCheckOverwrite",(a,i)=>{Ct.init(a,i),a._zod.check=o=>{o.value=i.tx(o.value)}});class K0{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}const c=i.split(`
16
+ `).filter(d=>d),r=Math.min(...c.map(d=>d.length-d.trimStart().length)),m=c.map(d=>d.slice(r)).map(d=>" ".repeat(this.indent*2)+d);for(const d of m)this.content.push(d)}compile(){const i=Function,o=this?.args,r=[...(this?.content??[""]).map(m=>` ${m}`)];return new i(...o,r.join(`
17
+ `))}}const I0={major:4,minor:3,patch:6},Be=k("$ZodType",(a,i)=>{var o;a??(a={}),a._zod.def=i,a._zod.bag=a._zod.bag||{},a._zod.version=I0;const c=[...a._zod.def.checks??[]];a._zod.traits.has("$ZodCheck")&&c.unshift(a);for(const r of c)for(const m of r._zod.onattach)m(a);if(c.length===0)(o=a._zod).deferred??(o.deferred=[]),a._zod.deferred?.push(()=>{a._zod.run=a._zod.parse});else{const r=(d,p,y)=>{let g=dl(d),A;for(const R of p){if(R._zod.def.when){if(!R._zod.def.when(d))continue}else if(g)continue;const N=d.issues.length,H=R._zod.check(d);if(H instanceof Promise&&y?.async===!1)throw new hl;if(A||H instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await H,d.issues.length!==N&&(g||(g=dl(d,N)))});else{if(d.issues.length===N)continue;g||(g=dl(d,N))}}return A?A.then(()=>d):d},m=(d,p,y)=>{if(dl(d))return d.aborted=!0,d;const g=r(p,c,y);if(g instanceof Promise){if(y.async===!1)throw new hl;return g.then(A=>a._zod.parse(A,y))}return a._zod.parse(g,y)};a._zod.run=(d,p)=>{if(p.skipChecks)return a._zod.parse(d,p);if(p.direction==="backward"){const g=a._zod.parse({value:d.value,issues:[]},{...p,skipChecks:!0});return g instanceof Promise?g.then(A=>m(A,d,p)):m(g,d,p)}const y=a._zod.parse(d,p);if(y instanceof Promise){if(p.async===!1)throw new hl;return y.then(g=>r(g,c,p))}return r(y,c,p)}}Oe(a,"~standard",()=>({validate:r=>{try{const m=fp(a,r);return m.success?{value:m.data}:{issues:m.error?.issues}}catch{return t0(a,r).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}))}),Ks=k("$ZodString",(a,i)=>{Be.init(a,i),a._zod.pattern=[...a?._zod.bag?.patterns??[]].pop()??M0(a._zod.bag),a._zod.parse=(o,c)=>{if(i.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:a}),o}}),Qe=k("$ZodStringFormat",(a,i)=>{lo.init(a,i),Ks.init(a,i)}),W0=k("$ZodGUID",(a,i)=>{i.pattern??(i.pattern=y0),Qe.init(a,i)}),F0=k("$ZodUUID",(a,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=Dh(c))}else i.pattern??(i.pattern=Dh());Qe.init(a,i)}),P0=k("$ZodEmail",(a,i)=>{i.pattern??(i.pattern=v0),Qe.init(a,i)}),eb=k("$ZodURL",(a,i)=>{Qe.init(a,i),a._zod.check=o=>{try{const c=o.value.trim(),r=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:o.value,inst:a,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:o.value,inst:a,continue:!i.abort})),i.normalize?o.value=r.href:o.value=c;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:a,continue:!i.abort})}}}),tb=k("$ZodEmoji",(a,i)=>{i.pattern??(i.pattern=S0()),Qe.init(a,i)}),nb=k("$ZodNanoID",(a,i)=>{i.pattern??(i.pattern=p0),Qe.init(a,i)}),ab=k("$ZodCUID",(a,i)=>{i.pattern??(i.pattern=r0),Qe.init(a,i)}),lb=k("$ZodCUID2",(a,i)=>{i.pattern??(i.pattern=f0),Qe.init(a,i)}),ib=k("$ZodULID",(a,i)=>{i.pattern??(i.pattern=d0),Qe.init(a,i)}),ub=k("$ZodXID",(a,i)=>{i.pattern??(i.pattern=m0),Qe.init(a,i)}),ob=k("$ZodKSUID",(a,i)=>{i.pattern??(i.pattern=h0),Qe.init(a,i)}),cb=k("$ZodISODateTime",(a,i)=>{i.pattern??(i.pattern=C0(i)),Qe.init(a,i)}),sb=k("$ZodISODate",(a,i)=>{i.pattern??(i.pattern=O0),Qe.init(a,i)}),rb=k("$ZodISOTime",(a,i)=>{i.pattern??(i.pattern=R0(i)),Qe.init(a,i)}),fb=k("$ZodISODuration",(a,i)=>{i.pattern??(i.pattern=g0),Qe.init(a,i)}),db=k("$ZodIPv4",(a,i)=>{i.pattern??(i.pattern=_0),Qe.init(a,i),a._zod.bag.format="ipv4"}),mb=k("$ZodIPv6",(a,i)=>{i.pattern??(i.pattern=z0),Qe.init(a,i),a._zod.bag.format="ipv6",a._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:a,continue:!i.abort})}}}),hb=k("$ZodCIDRv4",(a,i)=>{i.pattern??(i.pattern=T0),Qe.init(a,i)}),pb=k("$ZodCIDRv6",(a,i)=>{i.pattern??(i.pattern=E0),Qe.init(a,i),a._zod.check=o=>{const c=o.value.split("/");try{if(c.length!==2)throw new Error;const[r,m]=c;if(!m)throw new Error;const d=Number(m);if(`${d}`!==m)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:a,continue:!i.abort})}}});function bp(a){if(a==="")return!0;if(a.length%4!==0)return!1;try{return atob(a),!0}catch{return!1}}const gb=k("$ZodBase64",(a,i)=>{i.pattern??(i.pattern=x0),Qe.init(a,i),a._zod.bag.contentEncoding="base64",a._zod.check=o=>{bp(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:a,continue:!i.abort})}});function yb(a){if(!dp.test(a))return!1;const i=a.replace(/[-_]/g,c=>c==="-"?"+":"/"),o=i.padEnd(Math.ceil(i.length/4)*4,"=");return bp(o)}const vb=k("$ZodBase64URL",(a,i)=>{i.pattern??(i.pattern=dp),Qe.init(a,i),a._zod.bag.contentEncoding="base64url",a._zod.check=o=>{yb(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:a,continue:!i.abort})}}),bb=k("$ZodE164",(a,i)=>{i.pattern??(i.pattern=A0),Qe.init(a,i)});function Sb(a,i=null){try{const o=a.split(".");if(o.length!==3)return!1;const[c]=o;if(!c)return!1;const r=JSON.parse(atob(c));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||i&&(!("alg"in r)||r.alg!==i))}catch{return!1}}const _b=k("$ZodJWT",(a,i)=>{Qe.init(a,i),a._zod.check=o=>{Sb(o.value,i.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:a,continue:!i.abort})}}),Sp=k("$ZodNumber",(a,i)=>{Be.init(a,i),a._zod.pattern=a._zod.bag.pattern??pp,a._zod.parse=(o,c)=>{if(i.coerce)try{o.value=Number(o.value)}catch{}const r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;const m=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:a,...m?{received:m}:{}}),o}}),zb=k("$ZodNumberFormat",(a,i)=>{q0.init(a,i),Sp.init(a,i)}),Tb=k("$ZodBoolean",(a,i)=>{Be.init(a,i),a._zod.pattern=N0,a._zod.parse=(o,c)=>{if(i.coerce)try{o.value=!!o.value}catch{}const r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:a}),o}}),Eb=k("$ZodUndefined",(a,i)=>{Be.init(a,i),a._zod.pattern=k0,a._zod.values=new Set([void 0]),a._zod.optin="optional",a._zod.optout="optional",a._zod.parse=(o,c)=>{const r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:a}),o}}),xb=k("$ZodNull",(a,i)=>{Be.init(a,i),a._zod.pattern=D0,a._zod.values=new Set([null]),a._zod.parse=(o,c)=>{const r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:a}),o}}),Ab=k("$ZodUnknown",(a,i)=>{Be.init(a,i),a._zod.parse=o=>o}),Ob=k("$ZodNever",(a,i)=>{Be.init(a,i),a._zod.parse=(o,c)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:a}),o)});function kh(a,i,o){a.issues.length&&i.issues.push(...ml(o,a.issues)),i.value[o]=a.value}const Rb=k("$ZodArray",(a,i)=>{Be.init(a,i),a._zod.parse=(o,c)=>{const r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:a}),o;o.value=Array(r.length);const m=[];for(let d=0;d<r.length;d++){const p=r[d],y=i.element._zod.run({value:p,issues:[]},c);y instanceof Promise?m.push(y.then(g=>kh(g,o,d))):kh(y,o,d)}return m.length?Promise.all(m).then(()=>o):o}});function Iu(a,i,o,c,r){if(a.issues.length){if(r&&!(o in c))return;i.issues.push(...ml(o,a.issues))}a.value===void 0?o in c&&(i.value[o]=void 0):i.value[o]=a.value}function _p(a){const i=Object.keys(a.shape);for(const c of i)if(!a.shape?.[c]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);const o=Qv(a.shape);return{...a,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(o)}}function zp(a,i,o,c,r,m){const d=[],p=r.keySet,y=r.catchall._zod,g=y.def.type,A=y.optout==="optional";for(const R in i){if(p.has(R))continue;if(g==="never"){d.push(R);continue}const N=y.run({value:i[R],issues:[]},c);N instanceof Promise?a.push(N.then(H=>Iu(H,o,R,i,A))):Iu(N,o,R,i,A)}return d.length&&o.issues.push({code:"unrecognized_keys",keys:d,input:i,inst:m}),a.length?Promise.all(a).then(()=>o):o}const Cb=k("$ZodObject",(a,i)=>{if(Be.init(a,i),!Object.getOwnPropertyDescriptor(i,"shape")?.get){const p=i.shape;Object.defineProperty(i,"shape",{get:()=>{const y={...p};return Object.defineProperty(i,"shape",{value:y}),y}})}const c=to(()=>_p(i));Oe(a._zod,"propValues",()=>{const p=i.shape,y={};for(const g in p){const A=p[g]._zod;if(A.values){y[g]??(y[g]=new Set);for(const R of A.values)y[g].add(R)}}return y});const r=gi,m=i.catchall;let d;a._zod.parse=(p,y)=>{d??(d=c.value);const g=p.value;if(!r(g))return p.issues.push({expected:"object",code:"invalid_type",input:g,inst:a}),p;p.value={};const A=[],R=d.shape;for(const N of d.keys){const H=R[N],I=H._zod.optout==="optional",W=H._zod.run({value:g[N],issues:[]},y);W instanceof Promise?A.push(W.then(ve=>Iu(ve,p,N,g,I))):Iu(W,p,N,g,I)}return m?zp(A,g,p,y,c.value,a):A.length?Promise.all(A).then(()=>p):p}}),Mb=k("$ZodObjectJIT",(a,i)=>{Cb.init(a,i);const o=a._zod.parse,c=to(()=>_p(i)),r=N=>{const H=new K0(["shape","payload","ctx"]),I=c.value,W=F=>{const ce=Nh(F);return`shape[${ce}]._zod.run({ value: input[${ce}], issues: [] }, ctx)`};H.write("const input = payload.value;");const ve=Object.create(null);let Ye=0;for(const F of I.keys)ve[F]=`key_${Ye++}`;H.write("const newResult = {};");for(const F of I.keys){const ce=ve[F],xe=Nh(F),te=N[F]?._zod?.optout==="optional";H.write(`const ${ce} = ${W(F)};`),te?H.write(`
18
+ if (${ce}.issues.length) {
19
+ if (${xe} in input) {
20
+ payload.issues = payload.issues.concat(${ce}.issues.map(iss => ({
21
+ ...iss,
22
+ path: iss.path ? [${xe}, ...iss.path] : [${xe}]
23
+ })));
24
+ }
25
+ }
26
+
27
+ if (${ce}.value === undefined) {
28
+ if (${xe} in input) {
29
+ newResult[${xe}] = undefined;
30
+ }
31
+ } else {
32
+ newResult[${xe}] = ${ce}.value;
33
+ }
34
+
35
+ `):H.write(`
36
+ if (${ce}.issues.length) {
37
+ payload.issues = payload.issues.concat(${ce}.issues.map(iss => ({
38
+ ...iss,
39
+ path: iss.path ? [${xe}, ...iss.path] : [${xe}]
40
+ })));
41
+ }
42
+
43
+ if (${ce}.value === undefined) {
44
+ if (${xe} in input) {
45
+ newResult[${xe}] = undefined;
46
+ }
47
+ } else {
48
+ newResult[${xe}] = ${ce}.value;
49
+ }
50
+
51
+ `)}H.write("payload.value = newResult;"),H.write("return payload;");const ue=H.compile();return(F,ce)=>ue(N,F,ce)};let m;const d=gi,p=!lp.jitless,g=p&&Yv.value,A=i.catchall;let R;a._zod.parse=(N,H)=>{R??(R=c.value);const I=N.value;return d(I)?p&&g&&H?.async===!1&&H.jitless!==!0?(m||(m=r(i.shape)),N=m(N,H),A?zp([],I,N,H,R,a):N):o(N,H):(N.issues.push({expected:"object",code:"invalid_type",input:I,inst:a}),N)}});function Uh(a,i,o,c){for(const m of a)if(m.issues.length===0)return i.value=m.value,i;const r=a.filter(m=>!dl(m));return r.length===1?(i.value=r[0].value,r[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:o,errors:a.map(m=>m.issues.map(d=>aa(d,c,na())))}),i)}const Tp=k("$ZodUnion",(a,i)=>{Be.init(a,i),Oe(a._zod,"optin",()=>i.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Oe(a._zod,"optout",()=>i.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Oe(a._zod,"values",()=>{if(i.options.every(r=>r._zod.values))return new Set(i.options.flatMap(r=>Array.from(r._zod.values)))}),Oe(a._zod,"pattern",()=>{if(i.options.every(r=>r._zod.pattern)){const r=i.options.map(m=>m._zod.pattern);return new RegExp(`^(${r.map(m=>Vs(m.source)).join("|")})$`)}});const o=i.options.length===1,c=i.options[0]._zod.run;a._zod.parse=(r,m)=>{if(o)return c(r,m);let d=!1;const p=[];for(const y of i.options){const g=y._zod.run({value:r.value,issues:[]},m);if(g instanceof Promise)p.push(g),d=!0;else{if(g.issues.length===0)return g;p.push(g)}}return d?Promise.all(p).then(y=>Uh(y,r,a,m)):Uh(p,r,a,m)}}),wb=k("$ZodDiscriminatedUnion",(a,i)=>{i.inclusive=!1,Tp.init(a,i);const o=a._zod.parse;Oe(a._zod,"propValues",()=>{const r={};for(const m of i.options){const d=m._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(m)}"`);for(const[p,y]of Object.entries(d)){r[p]||(r[p]=new Set);for(const g of y)r[p].add(g)}}return r});const c=to(()=>{const r=i.options,m=new Map;for(const d of r){const p=d._zod.propValues?.[i.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(d)}"`);for(const y of p){if(m.has(y))throw new Error(`Duplicate discriminator value "${String(y)}"`);m.set(y,d)}}return m});a._zod.parse=(r,m)=>{const d=r.value;if(!gi(d))return r.issues.push({code:"invalid_type",expected:"object",input:d,inst:a}),r;const p=c.value.get(d?.[i.discriminator]);return p?p._zod.run(r,m):i.unionFallback?o(r,m):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:d,path:[i.discriminator],inst:a}),r)}}),Nb=k("$ZodIntersection",(a,i)=>{Be.init(a,i),a._zod.parse=(o,c)=>{const r=o.value,m=i.left._zod.run({value:r,issues:[]},c),d=i.right._zod.run({value:r,issues:[]},c);return m instanceof Promise||d instanceof Promise?Promise.all([m,d]).then(([y,g])=>Zh(o,y,g)):Zh(o,m,d)}});function qs(a,i){if(a===i)return{valid:!0,data:a};if(a instanceof Date&&i instanceof Date&&+a==+i)return{valid:!0,data:a};if(pl(a)&&pl(i)){const o=Object.keys(i),c=Object.keys(a).filter(m=>o.indexOf(m)!==-1),r={...a,...i};for(const m of c){const d=qs(a[m],i[m]);if(!d.valid)return{valid:!1,mergeErrorPath:[m,...d.mergeErrorPath]};r[m]=d.data}return{valid:!0,data:r}}if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let c=0;c<a.length;c++){const r=a[c],m=i[c],d=qs(r,m);if(!d.valid)return{valid:!1,mergeErrorPath:[c,...d.mergeErrorPath]};o.push(d.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Zh(a,i,o){const c=new Map;let r;for(const p of i.issues)if(p.code==="unrecognized_keys"){r??(r=p);for(const y of p.keys)c.has(y)||c.set(y,{}),c.get(y).l=!0}else a.issues.push(p);for(const p of o.issues)if(p.code==="unrecognized_keys")for(const y of p.keys)c.has(y)||c.set(y,{}),c.get(y).r=!0;else a.issues.push(p);const m=[...c].filter(([,p])=>p.l&&p.r).map(([p])=>p);if(m.length&&r&&a.issues.push({...r,keys:m}),dl(a))return a;const d=qs(i.value,o.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return a.value=d.data,a}const Db=k("$ZodRecord",(a,i)=>{Be.init(a,i),a._zod.parse=(o,c)=>{const r=o.value;if(!pl(r))return o.issues.push({expected:"record",code:"invalid_type",input:r,inst:a}),o;const m=[],d=i.keyType._zod.values;if(d){o.value={};const p=new Set;for(const g of d)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){p.add(typeof g=="number"?g.toString():g);const A=i.valueType._zod.run({value:r[g],issues:[]},c);A instanceof Promise?m.push(A.then(R=>{R.issues.length&&o.issues.push(...ml(g,R.issues)),o.value[g]=R.value})):(A.issues.length&&o.issues.push(...ml(g,A.issues)),o.value[g]=A.value)}let y;for(const g in r)p.has(g)||(y=y??[],y.push(g));y&&y.length>0&&o.issues.push({code:"unrecognized_keys",input:r,inst:a,keys:y})}else{o.value={};for(const p of Reflect.ownKeys(r)){if(p==="__proto__")continue;let y=i.keyType._zod.run({value:p,issues:[]},c);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof p=="string"&&pp.test(p)&&y.issues.length){const R=i.keyType._zod.run({value:Number(p),issues:[]},c);if(R instanceof Promise)throw new Error("Async schemas not supported in object keys currently");R.issues.length===0&&(y=R)}if(y.issues.length){i.mode==="loose"?o.value[p]=r[p]:o.issues.push({code:"invalid_key",origin:"record",issues:y.issues.map(R=>aa(R,c,na())),input:p,path:[p],inst:a});continue}const A=i.valueType._zod.run({value:r[p],issues:[]},c);A instanceof Promise?m.push(A.then(R=>{R.issues.length&&o.issues.push(...ml(p,R.issues)),o.value[y.value]=R.value})):(A.issues.length&&o.issues.push(...ml(p,A.issues)),o.value[y.value]=A.value)}}return m.length?Promise.all(m).then(()=>o):o}}),kb=k("$ZodEnum",(a,i)=>{Be.init(a,i);const o=ip(i.entries),c=new Set(o);a._zod.values=c,a._zod.pattern=new RegExp(`^(${o.filter(r=>Gv.has(typeof r)).map(r=>typeof r=="string"?gl(r):r.toString()).join("|")})$`),a._zod.parse=(r,m)=>{const d=r.value;return c.has(d)||r.issues.push({code:"invalid_value",values:o,input:d,inst:a}),r}}),Ub=k("$ZodLiteral",(a,i)=>{if(Be.init(a,i),i.values.length===0)throw new Error("Cannot create literal schema with no valid values");const o=new Set(i.values);a._zod.values=o,a._zod.pattern=new RegExp(`^(${i.values.map(c=>typeof c=="string"?gl(c):c?gl(c.toString()):String(c)).join("|")})$`),a._zod.parse=(c,r)=>{const m=c.value;return o.has(m)||c.issues.push({code:"invalid_value",values:i.values,input:m,inst:a}),c}}),Zb=k("$ZodTransform",(a,i)=>{Be.init(a,i),a._zod.parse=(o,c)=>{if(c.direction==="backward")throw new ap(a.constructor.name);const r=i.transform(o.value,o);if(c.async)return(r instanceof Promise?r:Promise.resolve(r)).then(d=>(o.value=d,o));if(r instanceof Promise)throw new hl;return o.value=r,o}});function jh(a,i){return a.issues.length&&i===void 0?{issues:[],value:void 0}:a}const Ep=k("$ZodOptional",(a,i)=>{Be.init(a,i),a._zod.optin="optional",a._zod.optout="optional",Oe(a._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),Oe(a._zod,"pattern",()=>{const o=i.innerType._zod.pattern;return o?new RegExp(`^(${Vs(o.source)})?$`):void 0}),a._zod.parse=(o,c)=>{if(i.innerType._zod.optin==="optional"){const r=i.innerType._zod.run(o,c);return r instanceof Promise?r.then(m=>jh(m,o.value)):jh(r,o.value)}return o.value===void 0?o:i.innerType._zod.run(o,c)}}),jb=k("$ZodExactOptional",(a,i)=>{Ep.init(a,i),Oe(a._zod,"values",()=>i.innerType._zod.values),Oe(a._zod,"pattern",()=>i.innerType._zod.pattern),a._zod.parse=(o,c)=>i.innerType._zod.run(o,c)}),qb=k("$ZodNullable",(a,i)=>{Be.init(a,i),Oe(a._zod,"optin",()=>i.innerType._zod.optin),Oe(a._zod,"optout",()=>i.innerType._zod.optout),Oe(a._zod,"pattern",()=>{const o=i.innerType._zod.pattern;return o?new RegExp(`^(${Vs(o.source)}|null)$`):void 0}),Oe(a._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),a._zod.parse=(o,c)=>o.value===null?o:i.innerType._zod.run(o,c)}),Hb=k("$ZodDefault",(a,i)=>{Be.init(a,i),a._zod.optin="optional",Oe(a._zod,"values",()=>i.innerType._zod.values),a._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);if(o.value===void 0)return o.value=i.defaultValue,o;const r=i.innerType._zod.run(o,c);return r instanceof Promise?r.then(m=>qh(m,i)):qh(r,i)}});function qh(a,i){return a.value===void 0&&(a.value=i.defaultValue),a}const Bb=k("$ZodPrefault",(a,i)=>{Be.init(a,i),a._zod.optin="optional",Oe(a._zod,"values",()=>i.innerType._zod.values),a._zod.parse=(o,c)=>(c.direction==="backward"||o.value===void 0&&(o.value=i.defaultValue),i.innerType._zod.run(o,c))}),Lb=k("$ZodNonOptional",(a,i)=>{Be.init(a,i),Oe(a._zod,"values",()=>{const o=i.innerType._zod.values;return o?new Set([...o].filter(c=>c!==void 0)):void 0}),a._zod.parse=(o,c)=>{const r=i.innerType._zod.run(o,c);return r instanceof Promise?r.then(m=>Hh(m,a)):Hh(r,a)}});function Hh(a,i){return!a.issues.length&&a.value===void 0&&a.issues.push({code:"invalid_type",expected:"nonoptional",input:a.value,inst:i}),a}const Yb=k("$ZodCatch",(a,i)=>{Be.init(a,i),Oe(a._zod,"optin",()=>i.innerType._zod.optin),Oe(a._zod,"optout",()=>i.innerType._zod.optout),Oe(a._zod,"values",()=>i.innerType._zod.values),a._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);const r=i.innerType._zod.run(o,c);return r instanceof Promise?r.then(m=>(o.value=m.value,m.issues.length&&(o.value=i.catchValue({...o,error:{issues:m.issues.map(d=>aa(d,c,na()))},input:o.value}),o.issues=[]),o)):(o.value=r.value,r.issues.length&&(o.value=i.catchValue({...o,error:{issues:r.issues.map(m=>aa(m,c,na()))},input:o.value}),o.issues=[]),o)}}),Gb=k("$ZodPipe",(a,i)=>{Be.init(a,i),Oe(a._zod,"values",()=>i.in._zod.values),Oe(a._zod,"optin",()=>i.in._zod.optin),Oe(a._zod,"optout",()=>i.out._zod.optout),Oe(a._zod,"propValues",()=>i.in._zod.propValues),a._zod.parse=(o,c)=>{if(c.direction==="backward"){const m=i.out._zod.run(o,c);return m instanceof Promise?m.then(d=>Xu(d,i.in,c)):Xu(m,i.in,c)}const r=i.in._zod.run(o,c);return r instanceof Promise?r.then(m=>Xu(m,i.out,c)):Xu(r,i.out,c)}});function Xu(a,i,o){return a.issues.length?(a.aborted=!0,a):i._zod.run({value:a.value,issues:a.issues},o)}const Qb=k("$ZodReadonly",(a,i)=>{Be.init(a,i),Oe(a._zod,"propValues",()=>i.innerType._zod.propValues),Oe(a._zod,"values",()=>i.innerType._zod.values),Oe(a._zod,"optin",()=>i.innerType?._zod?.optin),Oe(a._zod,"optout",()=>i.innerType?._zod?.optout),a._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);const r=i.innerType._zod.run(o,c);return r instanceof Promise?r.then(Bh):Bh(r)}});function Bh(a){return a.value=Object.freeze(a.value),a}const Vb=k("$ZodCustom",(a,i)=>{Ct.init(a,i),Be.init(a,i),a._zod.parse=(o,c)=>o,a._zod.check=o=>{const c=o.value,r=i.fn(c);if(r instanceof Promise)return r.then(m=>Lh(m,o,c,a));Lh(r,o,c,a)}});function Lh(a,i,o,c){if(!a){const r={code:"custom",input:o,inst:c,path:[...c._zod.def.path??[]],continue:!c._zod.def.abort};c._zod.def.params&&(r.params=c._zod.def.params),i.issues.push(yi(r))}}var Yh;class Xb{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...o){const c=o[0];return this._map.set(i,c),c&&typeof c=="object"&&"id"in c&&this._idmap.set(c.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const o=this._map.get(i);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(i),this}get(i){const o=i._zod.parent;if(o){const c={...this.get(o)??{}};delete c.id;const r={...c,...this._map.get(i)};return Object.keys(r).length?r:void 0}return this._map.get(i)}has(i){return this._map.has(i)}}function $b(){return new Xb}(Yh=globalThis).__zod_globalRegistry??(Yh.__zod_globalRegistry=$b());const pi=globalThis.__zod_globalRegistry;function Jb(a,i){return new a({type:"string",...X(i)})}function Kb(a,i){return new a({type:"string",format:"email",check:"string_format",abort:!1,...X(i)})}function Gh(a,i){return new a({type:"string",format:"guid",check:"string_format",abort:!1,...X(i)})}function Ib(a,i){return new a({type:"string",format:"uuid",check:"string_format",abort:!1,...X(i)})}function Wb(a,i){return new a({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(i)})}function Fb(a,i){return new a({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(i)})}function Pb(a,i){return new a({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(i)})}function eS(a,i){return new a({type:"string",format:"url",check:"string_format",abort:!1,...X(i)})}function tS(a,i){return new a({type:"string",format:"emoji",check:"string_format",abort:!1,...X(i)})}function nS(a,i){return new a({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(i)})}function aS(a,i){return new a({type:"string",format:"cuid",check:"string_format",abort:!1,...X(i)})}function lS(a,i){return new a({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(i)})}function iS(a,i){return new a({type:"string",format:"ulid",check:"string_format",abort:!1,...X(i)})}function uS(a,i){return new a({type:"string",format:"xid",check:"string_format",abort:!1,...X(i)})}function oS(a,i){return new a({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(i)})}function cS(a,i){return new a({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(i)})}function sS(a,i){return new a({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(i)})}function rS(a,i){return new a({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(i)})}function fS(a,i){return new a({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(i)})}function dS(a,i){return new a({type:"string",format:"base64",check:"string_format",abort:!1,...X(i)})}function mS(a,i){return new a({type:"string",format:"base64url",check:"string_format",abort:!1,...X(i)})}function hS(a,i){return new a({type:"string",format:"e164",check:"string_format",abort:!1,...X(i)})}function pS(a,i){return new a({type:"string",format:"jwt",check:"string_format",abort:!1,...X(i)})}function gS(a,i){return new a({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(i)})}function yS(a,i){return new a({type:"string",format:"date",check:"string_format",...X(i)})}function vS(a,i){return new a({type:"string",format:"time",check:"string_format",precision:null,...X(i)})}function bS(a,i){return new a({type:"string",format:"duration",check:"string_format",...X(i)})}function SS(a,i){return new a({type:"number",checks:[],...X(i)})}function _S(a,i){return new a({type:"number",check:"number_format",abort:!1,format:"safeint",...X(i)})}function zS(a,i){return new a({type:"boolean",...X(i)})}function TS(a,i){return new a({type:"undefined",...X(i)})}function ES(a,i){return new a({type:"null",...X(i)})}function xS(a){return new a({type:"unknown"})}function AS(a,i){return new a({type:"never",...X(i)})}function Qh(a,i){return new yp({check:"less_than",...X(i),value:a,inclusive:!1})}function ks(a,i){return new yp({check:"less_than",...X(i),value:a,inclusive:!0})}function Vh(a,i){return new vp({check:"greater_than",...X(i),value:a,inclusive:!1})}function Us(a,i){return new vp({check:"greater_than",...X(i),value:a,inclusive:!0})}function Xh(a,i){return new j0({check:"multiple_of",...X(i),value:a})}function xp(a,i){return new H0({check:"max_length",...X(i),maximum:a})}function Wu(a,i){return new B0({check:"min_length",...X(i),minimum:a})}function Ap(a,i){return new L0({check:"length_equals",...X(i),length:a})}function OS(a,i){return new Y0({check:"string_format",format:"regex",...X(i),pattern:a})}function RS(a){return new G0({check:"string_format",format:"lowercase",...X(a)})}function CS(a){return new Q0({check:"string_format",format:"uppercase",...X(a)})}function MS(a,i){return new V0({check:"string_format",format:"includes",...X(i),includes:a})}function wS(a,i){return new X0({check:"string_format",format:"starts_with",...X(i),prefix:a})}function NS(a,i){return new $0({check:"string_format",format:"ends_with",...X(i),suffix:a})}function vl(a){return new J0({check:"overwrite",tx:a})}function DS(a){return vl(i=>i.normalize(a))}function kS(){return vl(a=>a.trim())}function US(){return vl(a=>a.toLowerCase())}function ZS(){return vl(a=>a.toUpperCase())}function jS(){return vl(a=>Lv(a))}function qS(a,i,o){return new a({type:"array",element:i,...X(o)})}function HS(a,i,o){const c=X(o);return c.abort??(c.abort=!0),new a({type:"custom",check:"custom",fn:i,...c})}function BS(a,i,o){return new a({type:"custom",check:"custom",fn:i,...X(o)})}function LS(a){const i=YS(o=>(o.addIssue=c=>{if(typeof c=="string")o.issues.push(yi(c,o.value,i._zod.def));else{const r=c;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),o.issues.push(yi(r))}},a(o.value,o)));return i}function YS(a,i){const o=new Ct({check:"custom",...X(i)});return o._zod.check=a,o}function Op(a){let i=a?.target??"draft-2020-12";return i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),{processors:a.processors??{},metadataRegistry:a?.metadata??pi,target:i,unrepresentable:a?.unrepresentable??"throw",override:a?.override??(()=>{}),io:a?.io??"output",counter:0,seen:new Map,cycles:a?.cycles??"ref",reused:a?.reused??"inline",external:a?.external??void 0}}function nt(a,i,o={path:[],schemaPath:[]}){var c;const r=a._zod.def,m=i.seen.get(a);if(m)return m.count++,o.schemaPath.includes(a)&&(m.cycle=o.path),m.schema;const d={schema:{},count:1,cycle:void 0,path:o.path};i.seen.set(a,d);const p=a._zod.toJSONSchema?.();if(p)d.schema=p;else{const A={...o,schemaPath:[...o.schemaPath,a],path:o.path};if(a._zod.processJSONSchema)a._zod.processJSONSchema(i,d.schema,A);else{const N=d.schema,H=i.processors[r.type];if(!H)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);H(a,i,N,A)}const R=a._zod.parent;R&&(d.ref||(d.ref=R),nt(R,i,A),i.seen.get(R).isParent=!0)}const y=i.metadataRegistry.get(a);return y&&Object.assign(d.schema,y),i.io==="input"&&St(a)&&(delete d.schema.examples,delete d.schema.default),i.io==="input"&&d.schema._prefault&&((c=d.schema).default??(c.default=d.schema._prefault)),delete d.schema._prefault,i.seen.get(a).schema}function Rp(a,i){const o=a.seen.get(i);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=new Map;for(const d of a.seen.entries()){const p=a.metadataRegistry.get(d[0])?.id;if(p){const y=c.get(p);if(y&&y!==d[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);c.set(p,d[0])}}const r=d=>{const p=a.target==="draft-2020-12"?"$defs":"definitions";if(a.external){const R=a.external.registry.get(d[0])?.id,N=a.external.uri??(I=>I);if(R)return{ref:N(R)};const H=d[1].defId??d[1].schema.id??`schema${a.counter++}`;return d[1].defId=H,{defId:H,ref:`${N("__shared")}#/${p}/${H}`}}if(d[1]===o)return{ref:"#"};const g=`#/${p}/`,A=d[1].schema.id??`__schema${a.counter++}`;return{defId:A,ref:g+A}},m=d=>{if(d[1].schema.$ref)return;const p=d[1],{ref:y,defId:g}=r(d);p.def={...p.schema},g&&(p.defId=g);const A=p.schema;for(const R in A)delete A[R];A.$ref=y};if(a.cycles==="throw")for(const d of a.seen.entries()){const p=d[1];if(p.cycle)throw new Error(`Cycle detected: #/${p.cycle?.join("/")}/<root>
52
+
53
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of a.seen.entries()){const p=d[1];if(i===d[0]){m(d);continue}if(a.external){const g=a.external.registry.get(d[0])?.id;if(i!==d[0]&&g){m(d);continue}}if(a.metadataRegistry.get(d[0])?.id){m(d);continue}if(p.cycle){m(d);continue}if(p.count>1&&a.reused==="ref"){m(d);continue}}}function Cp(a,i){const o=a.seen.get(i);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=d=>{const p=a.seen.get(d);if(p.ref===null)return;const y=p.def??p.schema,g={...y},A=p.ref;if(p.ref=null,A){c(A);const N=a.seen.get(A),H=N.schema;if(H.$ref&&(a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0")?(y.allOf=y.allOf??[],y.allOf.push(H)):Object.assign(y,H),Object.assign(y,g),d._zod.parent===A)for(const W in y)W==="$ref"||W==="allOf"||W in g||delete y[W];if(H.$ref&&N.def)for(const W in y)W==="$ref"||W==="allOf"||W in N.def&&JSON.stringify(y[W])===JSON.stringify(N.def[W])&&delete y[W]}const R=d._zod.parent;if(R&&R!==A){c(R);const N=a.seen.get(R);if(N?.schema.$ref&&(y.$ref=N.schema.$ref,N.def))for(const H in y)H==="$ref"||H==="allOf"||H in N.def&&JSON.stringify(y[H])===JSON.stringify(N.def[H])&&delete y[H]}a.override({zodSchema:d,jsonSchema:y,path:p.path??[]})};for(const d of[...a.seen.entries()].reverse())c(d[0]);const r={};if(a.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":a.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":a.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":a.target,a.external?.uri){const d=a.external.registry.get(i)?.id;if(!d)throw new Error("Schema is missing an `id` property");r.$id=a.external.uri(d)}Object.assign(r,o.def??o.schema);const m=a.external?.defs??{};for(const d of a.seen.entries()){const p=d[1];p.def&&p.defId&&(m[p.defId]=p.def)}a.external||Object.keys(m).length>0&&(a.target==="draft-2020-12"?r.$defs=m:r.definitions=m);try{const d=JSON.parse(JSON.stringify(r));return Object.defineProperty(d,"~standard",{value:{...i["~standard"],jsonSchema:{input:Fu(i,"input",a.processors),output:Fu(i,"output",a.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function St(a,i){const o=i??{seen:new Set};if(o.seen.has(a))return!1;o.seen.add(a);const c=a._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return St(c.element,o);if(c.type==="set")return St(c.valueType,o);if(c.type==="lazy")return St(c.getter(),o);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return St(c.innerType,o);if(c.type==="intersection")return St(c.left,o)||St(c.right,o);if(c.type==="record"||c.type==="map")return St(c.keyType,o)||St(c.valueType,o);if(c.type==="pipe")return St(c.in,o)||St(c.out,o);if(c.type==="object"){for(const r in c.shape)if(St(c.shape[r],o))return!0;return!1}if(c.type==="union"){for(const r of c.options)if(St(r,o))return!0;return!1}if(c.type==="tuple"){for(const r of c.items)if(St(r,o))return!0;return!!(c.rest&&St(c.rest,o))}return!1}const GS=(a,i={})=>o=>{const c=Op({...o,processors:i});return nt(a,c),Rp(c,a),Cp(c,a)},Fu=(a,i,o={})=>c=>{const{libraryOptions:r,target:m}=c??{},d=Op({...r??{},target:m,io:i,processors:o});return nt(a,d),Rp(d,a),Cp(d,a)},QS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},VS=(a,i,o,c)=>{const r=o;r.type="string";const{minimum:m,maximum:d,format:p,patterns:y,contentEncoding:g}=a._zod.bag;if(typeof m=="number"&&(r.minLength=m),typeof d=="number"&&(r.maxLength=d),p&&(r.format=QS[p]??p,r.format===""&&delete r.format,p==="time"&&delete r.format),g&&(r.contentEncoding=g),y&&y.size>0){const A=[...y];A.length===1?r.pattern=A[0].source:A.length>1&&(r.allOf=[...A.map(R=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:R.source}))])}},XS=(a,i,o,c)=>{const r=o,{minimum:m,maximum:d,format:p,multipleOf:y,exclusiveMaximum:g,exclusiveMinimum:A}=a._zod.bag;typeof p=="string"&&p.includes("int")?r.type="integer":r.type="number",typeof A=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(r.minimum=A,r.exclusiveMinimum=!0):r.exclusiveMinimum=A),typeof m=="number"&&(r.minimum=m,typeof A=="number"&&i.target!=="draft-04"&&(A>=m?delete r.minimum:delete r.exclusiveMinimum)),typeof g=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(r.maximum=g,r.exclusiveMaximum=!0):r.exclusiveMaximum=g),typeof d=="number"&&(r.maximum=d,typeof g=="number"&&i.target!=="draft-04"&&(g<=d?delete r.maximum:delete r.exclusiveMaximum)),typeof y=="number"&&(r.multipleOf=y)},$S=(a,i,o,c)=>{o.type="boolean"},JS=(a,i,o,c)=>{i.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},KS=(a,i,o,c)=>{if(i.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},IS=(a,i,o,c)=>{o.not={}},WS=(a,i,o,c)=>{},FS=(a,i,o,c)=>{const r=a._zod.def,m=ip(r.entries);m.every(d=>typeof d=="number")&&(o.type="number"),m.every(d=>typeof d=="string")&&(o.type="string"),o.enum=m},PS=(a,i,o,c)=>{const r=a._zod.def,m=[];for(const d of r.values)if(d===void 0){if(i.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(i.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");m.push(Number(d))}else m.push(d);if(m.length!==0)if(m.length===1){const d=m[0];o.type=d===null?"null":typeof d,i.target==="draft-04"||i.target==="openapi-3.0"?o.enum=[d]:o.const=d}else m.every(d=>typeof d=="number")&&(o.type="number"),m.every(d=>typeof d=="string")&&(o.type="string"),m.every(d=>typeof d=="boolean")&&(o.type="boolean"),m.every(d=>d===null)&&(o.type="null"),o.enum=m},e_=(a,i,o,c)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},t_=(a,i,o,c)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},n_=(a,i,o,c)=>{const r=o,m=a._zod.def,{minimum:d,maximum:p}=a._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p),r.type="array",r.items=nt(m.element,i,{...c,path:[...c.path,"items"]})},a_=(a,i,o,c)=>{const r=o,m=a._zod.def;r.type="object",r.properties={};const d=m.shape;for(const g in d)r.properties[g]=nt(d[g],i,{...c,path:[...c.path,"properties",g]});const p=new Set(Object.keys(d)),y=new Set([...p].filter(g=>{const A=m.shape[g]._zod;return i.io==="input"?A.optin===void 0:A.optout===void 0}));y.size>0&&(r.required=Array.from(y)),m.catchall?._zod.def.type==="never"?r.additionalProperties=!1:m.catchall?m.catchall&&(r.additionalProperties=nt(m.catchall,i,{...c,path:[...c.path,"additionalProperties"]})):i.io==="output"&&(r.additionalProperties=!1)},l_=(a,i,o,c)=>{const r=a._zod.def,m=r.inclusive===!1,d=r.options.map((p,y)=>nt(p,i,{...c,path:[...c.path,m?"oneOf":"anyOf",y]}));m?o.oneOf=d:o.anyOf=d},i_=(a,i,o,c)=>{const r=a._zod.def,m=nt(r.left,i,{...c,path:[...c.path,"allOf",0]}),d=nt(r.right,i,{...c,path:[...c.path,"allOf",1]}),p=g=>"allOf"in g&&Object.keys(g).length===1,y=[...p(m)?m.allOf:[m],...p(d)?d.allOf:[d]];o.allOf=y},u_=(a,i,o,c)=>{const r=o,m=a._zod.def;r.type="object";const d=m.keyType,y=d._zod.bag?.patterns;if(m.mode==="loose"&&y&&y.size>0){const A=nt(m.valueType,i,{...c,path:[...c.path,"patternProperties","*"]});r.patternProperties={};for(const R of y)r.patternProperties[R.source]=A}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(r.propertyNames=nt(m.keyType,i,{...c,path:[...c.path,"propertyNames"]})),r.additionalProperties=nt(m.valueType,i,{...c,path:[...c.path,"additionalProperties"]});const g=d._zod.values;if(g){const A=[...g].filter(R=>typeof R=="string"||typeof R=="number");A.length>0&&(r.required=A)}},o_=(a,i,o,c)=>{const r=a._zod.def,m=nt(r.innerType,i,c),d=i.seen.get(a);i.target==="openapi-3.0"?(d.ref=r.innerType,o.nullable=!0):o.anyOf=[m,{type:"null"}]},c_=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType},s_=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType,o.default=JSON.parse(JSON.stringify(r.defaultValue))},r_=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType,i.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},f_=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType;let d;try{d=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=d},d_=(a,i,o,c)=>{const r=a._zod.def,m=i.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;nt(m,i,c);const d=i.seen.get(a);d.ref=m},m_=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType,o.readOnly=!0},Mp=(a,i,o,c)=>{const r=a._zod.def;nt(r.innerType,i,c);const m=i.seen.get(a);m.ref=r.innerType};function Is(a){return!!a._zod}function wp(a,i){return Is(a)?fp(a,i):a.safeParse(i)}function h_(a){if(!a)return;let i;if(Is(a)?i=a._zod?.def?.shape:i=a.shape,!!i){if(typeof i=="function")try{return i()}catch{return}return i}}function p_(a){if(Is(a)){const m=a._zod?.def;if(m){if(m.value!==void 0)return m.value;if(Array.isArray(m.values)&&m.values.length>0)return m.values[0]}}const o=a._def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}const c=a.value;if(c!==void 0)return c}const g_=k("ZodISODateTime",(a,i)=>{cb.init(a,i),Ve.init(a,i)});function Np(a){return gS(g_,a)}const y_=k("ZodISODate",(a,i)=>{sb.init(a,i),Ve.init(a,i)});function v_(a){return yS(y_,a)}const b_=k("ZodISOTime",(a,i)=>{rb.init(a,i),Ve.init(a,i)});function S_(a){return vS(b_,a)}const __=k("ZodISODuration",(a,i)=>{fb.init(a,i),Ve.init(a,i)});function z_(a){return bS(__,a)}const T_=(a,i)=>{sp.init(a,i),a.name="ZodError",Object.defineProperties(a,{format:{value:o=>e0(a,o)},flatten:{value:o=>Pv(a,o)},addIssue:{value:o=>{a.issues.push(o),a.message=JSON.stringify(a.issues,js,2)}},addIssues:{value:o=>{a.issues.push(...o),a.message=JSON.stringify(a.issues,js,2)}},isEmpty:{get(){return a.issues.length===0}}})},en=k("ZodError",T_,{Parent:Error}),E_=$s(en),x_=Js(en),A_=no(en),O_=ao(en),R_=n0(en),C_=a0(en),M_=l0(en),w_=i0(en),N_=u0(en),D_=o0(en),k_=c0(en),U_=s0(en),Le=k("ZodType",(a,i)=>(Be.init(a,i),Object.assign(a["~standard"],{jsonSchema:{input:Fu(a,"input"),output:Fu(a,"output")}}),a.toJSONSchema=GS(a,{}),a.def=i,a.type=i.type,Object.defineProperty(a,"_def",{value:i}),a.check=(...o)=>a.clone(la(i,{checks:[...i.checks??[],...o.map(c=>typeof c=="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]}),{parent:!0}),a.with=a.check,a.clone=(o,c)=>ia(a,o,c),a.brand=()=>a,a.register=((o,c)=>(o.add(a,c),a)),a.parse=(o,c)=>E_(a,o,c,{callee:a.parse}),a.safeParse=(o,c)=>A_(a,o,c),a.parseAsync=async(o,c)=>x_(a,o,c,{callee:a.parseAsync}),a.safeParseAsync=async(o,c)=>O_(a,o,c),a.spa=a.safeParseAsync,a.encode=(o,c)=>R_(a,o,c),a.decode=(o,c)=>C_(a,o,c),a.encodeAsync=async(o,c)=>M_(a,o,c),a.decodeAsync=async(o,c)=>w_(a,o,c),a.safeEncode=(o,c)=>N_(a,o,c),a.safeDecode=(o,c)=>D_(a,o,c),a.safeEncodeAsync=async(o,c)=>k_(a,o,c),a.safeDecodeAsync=async(o,c)=>U_(a,o,c),a.refine=(o,c)=>a.check(O1(o,c)),a.superRefine=o=>a.check(R1(o)),a.overwrite=o=>a.check(vl(o)),a.optional=()=>Je(a),a.exactOptional=()=>h1(a),a.nullable=()=>Kh(a),a.nullish=()=>Je(Kh(a)),a.nonoptional=o=>S1(a,o),a.array=()=>P(a),a.or=o=>ge([a,o]),a.and=o=>Ws(a,o),a.transform=o=>Ls(a,Hp(o)),a.default=o=>y1(a,o),a.prefault=o=>b1(a,o),a.catch=o=>z1(a,o),a.pipe=o=>Ls(a,o),a.readonly=()=>x1(a),a.describe=o=>{const c=a.clone();return pi.add(c,{description:o}),c},Object.defineProperty(a,"description",{get(){return pi.get(a)?.description},configurable:!0}),a.meta=(...o)=>{if(o.length===0)return pi.get(a);const c=a.clone();return pi.add(c,o[0]),c},a.isOptional=()=>a.safeParse(void 0).success,a.isNullable=()=>a.safeParse(null).success,a.apply=o=>o(a),a)),Dp=k("_ZodString",(a,i)=>{Ks.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(c,r,m)=>VS(a,c,r);const o=a._zod.bag;a.format=o.format??null,a.minLength=o.minimum??null,a.maxLength=o.maximum??null,a.regex=(...c)=>a.check(OS(...c)),a.includes=(...c)=>a.check(MS(...c)),a.startsWith=(...c)=>a.check(wS(...c)),a.endsWith=(...c)=>a.check(NS(...c)),a.min=(...c)=>a.check(Wu(...c)),a.max=(...c)=>a.check(xp(...c)),a.length=(...c)=>a.check(Ap(...c)),a.nonempty=(...c)=>a.check(Wu(1,...c)),a.lowercase=c=>a.check(RS(c)),a.uppercase=c=>a.check(CS(c)),a.trim=()=>a.check(kS()),a.normalize=(...c)=>a.check(DS(...c)),a.toLowerCase=()=>a.check(US()),a.toUpperCase=()=>a.check(ZS()),a.slugify=()=>a.check(jS())}),Z_=k("ZodString",(a,i)=>{Ks.init(a,i),Dp.init(a,i),a.email=o=>a.check(Kb(j_,o)),a.url=o=>a.check(eS(q_,o)),a.jwt=o=>a.check(pS(P_,o)),a.emoji=o=>a.check(tS(H_,o)),a.guid=o=>a.check(Gh($h,o)),a.uuid=o=>a.check(Ib($u,o)),a.uuidv4=o=>a.check(Wb($u,o)),a.uuidv6=o=>a.check(Fb($u,o)),a.uuidv7=o=>a.check(Pb($u,o)),a.nanoid=o=>a.check(nS(B_,o)),a.guid=o=>a.check(Gh($h,o)),a.cuid=o=>a.check(aS(L_,o)),a.cuid2=o=>a.check(lS(Y_,o)),a.ulid=o=>a.check(iS(G_,o)),a.base64=o=>a.check(dS(I_,o)),a.base64url=o=>a.check(mS(W_,o)),a.xid=o=>a.check(uS(Q_,o)),a.ksuid=o=>a.check(oS(V_,o)),a.ipv4=o=>a.check(cS(X_,o)),a.ipv6=o=>a.check(sS($_,o)),a.cidrv4=o=>a.check(rS(J_,o)),a.cidrv6=o=>a.check(fS(K_,o)),a.e164=o=>a.check(hS(F_,o)),a.datetime=o=>a.check(Np(o)),a.date=o=>a.check(v_(o)),a.time=o=>a.check(S_(o)),a.duration=o=>a.check(z_(o))});function x(a){return Jb(Z_,a)}const Ve=k("ZodStringFormat",(a,i)=>{Qe.init(a,i),Dp.init(a,i)}),j_=k("ZodEmail",(a,i)=>{P0.init(a,i),Ve.init(a,i)}),$h=k("ZodGUID",(a,i)=>{W0.init(a,i),Ve.init(a,i)}),$u=k("ZodUUID",(a,i)=>{F0.init(a,i),Ve.init(a,i)}),q_=k("ZodURL",(a,i)=>{eb.init(a,i),Ve.init(a,i)}),H_=k("ZodEmoji",(a,i)=>{tb.init(a,i),Ve.init(a,i)}),B_=k("ZodNanoID",(a,i)=>{nb.init(a,i),Ve.init(a,i)}),L_=k("ZodCUID",(a,i)=>{ab.init(a,i),Ve.init(a,i)}),Y_=k("ZodCUID2",(a,i)=>{lb.init(a,i),Ve.init(a,i)}),G_=k("ZodULID",(a,i)=>{ib.init(a,i),Ve.init(a,i)}),Q_=k("ZodXID",(a,i)=>{ub.init(a,i),Ve.init(a,i)}),V_=k("ZodKSUID",(a,i)=>{ob.init(a,i),Ve.init(a,i)}),X_=k("ZodIPv4",(a,i)=>{db.init(a,i),Ve.init(a,i)}),$_=k("ZodIPv6",(a,i)=>{mb.init(a,i),Ve.init(a,i)}),J_=k("ZodCIDRv4",(a,i)=>{hb.init(a,i),Ve.init(a,i)}),K_=k("ZodCIDRv6",(a,i)=>{pb.init(a,i),Ve.init(a,i)}),I_=k("ZodBase64",(a,i)=>{gb.init(a,i),Ve.init(a,i)}),W_=k("ZodBase64URL",(a,i)=>{vb.init(a,i),Ve.init(a,i)}),F_=k("ZodE164",(a,i)=>{bb.init(a,i),Ve.init(a,i)}),P_=k("ZodJWT",(a,i)=>{_b.init(a,i),Ve.init(a,i)}),kp=k("ZodNumber",(a,i)=>{Sp.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(c,r,m)=>XS(a,c,r),a.gt=(c,r)=>a.check(Vh(c,r)),a.gte=(c,r)=>a.check(Us(c,r)),a.min=(c,r)=>a.check(Us(c,r)),a.lt=(c,r)=>a.check(Qh(c,r)),a.lte=(c,r)=>a.check(ks(c,r)),a.max=(c,r)=>a.check(ks(c,r)),a.int=c=>a.check(Jh(c)),a.safe=c=>a.check(Jh(c)),a.positive=c=>a.check(Vh(0,c)),a.nonnegative=c=>a.check(Us(0,c)),a.negative=c=>a.check(Qh(0,c)),a.nonpositive=c=>a.check(ks(0,c)),a.multipleOf=(c,r)=>a.check(Xh(c,r)),a.step=(c,r)=>a.check(Xh(c,r)),a.finite=()=>a;const o=a._zod.bag;a.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,a.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,a.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),a.isFinite=!0,a.format=o.format??null});function re(a){return SS(kp,a)}const e1=k("ZodNumberFormat",(a,i)=>{zb.init(a,i),kp.init(a,i)});function Jh(a){return _S(e1,a)}const t1=k("ZodBoolean",(a,i)=>{Tb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>$S(a,o,c)});function je(a){return zS(t1,a)}const n1=k("ZodUndefined",(a,i)=>{Eb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>KS(a,o)});function Hs(a){return TS(n1,a)}const a1=k("ZodNull",(a,i)=>{xb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>JS(a,o,c)});function Up(a){return ES(a1,a)}const l1=k("ZodUnknown",(a,i)=>{Ab.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>WS()});function Ze(){return xS(l1)}const i1=k("ZodNever",(a,i)=>{Ob.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>IS(a,o,c)});function u1(a){return AS(i1,a)}const o1=k("ZodArray",(a,i)=>{Rb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>n_(a,o,c,r),a.element=i.element,a.min=(o,c)=>a.check(Wu(o,c)),a.nonempty=o=>a.check(Wu(1,o)),a.max=(o,c)=>a.check(xp(o,c)),a.length=(o,c)=>a.check(Ap(o,c)),a.unwrap=()=>a.element});function P(a,i){return qS(o1,a,i)}const Zp=k("ZodObject",(a,i)=>{Mb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>a_(a,o,c,r),Oe(a,"shape",()=>i.shape),a.keyof=()=>Bt(Object.keys(a._zod.def.shape)),a.catchall=o=>a.clone({...a._zod.def,catchall:o}),a.passthrough=()=>a.clone({...a._zod.def,catchall:Ze()}),a.loose=()=>a.clone({...a._zod.def,catchall:Ze()}),a.strict=()=>a.clone({...a._zod.def,catchall:u1()}),a.strip=()=>a.clone({...a._zod.def,catchall:void 0}),a.extend=o=>Jv(a,o),a.safeExtend=o=>Kv(a,o),a.merge=o=>Iv(a,o),a.pick=o=>Xv(a,o),a.omit=o=>$v(a,o),a.partial=(...o)=>Wv(Bp,a,o[0]),a.required=(...o)=>Fv(Lp,a,o[0])});function M(a,i){const o={type:"object",shape:a??{},...X(i)};return new Zp(o)}function Rt(a,i){return new Zp({type:"object",shape:a,catchall:Ze(),...X(i)})}const jp=k("ZodUnion",(a,i)=>{Tp.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>l_(a,o,c,r),a.options=i.options});function ge(a,i){return new jp({type:"union",options:a,...X(i)})}const c1=k("ZodDiscriminatedUnion",(a,i)=>{jp.init(a,i),wb.init(a,i)});function qp(a,i,o){return new c1({type:"union",options:i,discriminator:a,...X(o)})}const s1=k("ZodIntersection",(a,i)=>{Nb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>i_(a,o,c,r)});function Ws(a,i){return new s1({type:"intersection",left:a,right:i})}const r1=k("ZodRecord",(a,i)=>{Db.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>u_(a,o,c,r),a.keyType=i.keyType,a.valueType=i.valueType});function ke(a,i,o){return new r1({type:"record",keyType:a,valueType:i,...X(o)})}const Bs=k("ZodEnum",(a,i)=>{kb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(c,r,m)=>FS(a,c,r),a.enum=i.entries,a.options=Object.values(i.entries);const o=new Set(Object.keys(i.entries));a.extract=(c,r)=>{const m={};for(const d of c)if(o.has(d))m[d]=i.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Bs({...i,checks:[],...X(r),entries:m})},a.exclude=(c,r)=>{const m={...i.entries};for(const d of c)if(o.has(d))delete m[d];else throw new Error(`Key ${d} not found in enum`);return new Bs({...i,checks:[],...X(r),entries:m})}});function Bt(a,i){const o=Array.isArray(a)?Object.fromEntries(a.map(c=>[c,c])):a;return new Bs({type:"enum",entries:o,...X(i)})}const f1=k("ZodLiteral",(a,i)=>{Ub.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>PS(a,o,c),a.values=new Set(i.values),Object.defineProperty(a,"value",{get(){if(i.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function z(a,i){return new f1({type:"literal",values:Array.isArray(a)?a:[a],...X(i)})}const d1=k("ZodTransform",(a,i)=>{Zb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>t_(a,o),a._zod.parse=(o,c)=>{if(c.direction==="backward")throw new ap(a.constructor.name);o.addIssue=m=>{if(typeof m=="string")o.issues.push(yi(m,o.value,i));else{const d=m;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=o.value),d.inst??(d.inst=a),o.issues.push(yi(d))}};const r=i.transform(o.value,o);return r instanceof Promise?r.then(m=>(o.value=m,o)):(o.value=r,o)}});function Hp(a){return new d1({type:"transform",transform:a})}const Bp=k("ZodOptional",(a,i)=>{Ep.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>Mp(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function Je(a){return new Bp({type:"optional",innerType:a})}const m1=k("ZodExactOptional",(a,i)=>{jb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>Mp(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function h1(a){return new m1({type:"optional",innerType:a})}const p1=k("ZodNullable",(a,i)=>{qb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>o_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function Kh(a){return new p1({type:"nullable",innerType:a})}const g1=k("ZodDefault",(a,i)=>{Hb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>s_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType,a.removeDefault=a.unwrap});function y1(a,i){return new g1({type:"default",innerType:a,get defaultValue(){return typeof i=="function"?i():op(i)}})}const v1=k("ZodPrefault",(a,i)=>{Bb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>r_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function b1(a,i){return new v1({type:"prefault",innerType:a,get defaultValue(){return typeof i=="function"?i():op(i)}})}const Lp=k("ZodNonOptional",(a,i)=>{Lb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>c_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function S1(a,i){return new Lp({type:"nonoptional",innerType:a,...X(i)})}const _1=k("ZodCatch",(a,i)=>{Yb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>f_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType,a.removeCatch=a.unwrap});function z1(a,i){return new _1({type:"catch",innerType:a,catchValue:typeof i=="function"?i:()=>i})}const T1=k("ZodPipe",(a,i)=>{Gb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>d_(a,o,c,r),a.in=i.in,a.out=i.out});function Ls(a,i){return new T1({type:"pipe",in:a,out:i})}const E1=k("ZodReadonly",(a,i)=>{Qb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>m_(a,o,c,r),a.unwrap=()=>a._zod.def.innerType});function x1(a){return new E1({type:"readonly",innerType:a})}const Yp=k("ZodCustom",(a,i)=>{Vb.init(a,i),Le.init(a,i),a._zod.processJSONSchema=(o,c,r)=>e_(a,o)});function A1(a,i){return HS(Yp,a??(()=>!0),i)}function O1(a,i={}){return BS(Yp,a,i)}function R1(a){return LS(a)}function Gp(a,i){return Ls(Hp(a),i)}const Aa="io.modelcontextprotocol/related-task",io="2.0",dt=A1(a=>a!==null&&(typeof a=="object"||typeof a=="function")),Qp=ge([x(),re().int()]),Vp=x();Rt({ttl:ge([re(),Up()]).optional(),pollInterval:re().optional()});const C1=M({ttl:re().optional()}),M1=M({taskId:x()}),Fs=Rt({progressToken:Qp.optional(),[Aa]:M1.optional()}),Lt=M({_meta:Fs.optional()}),bi=Lt.extend({task:C1.optional()}),w1=a=>bi.safeParse(a).success,mt=M({method:x(),params:Lt.loose().optional()}),tn=M({_meta:Fs.optional()}),nn=M({method:x(),params:tn.loose().optional()}),ht=Rt({_meta:Fs.optional()}),Si=ge([x(),re().int()]),Xp=M({jsonrpc:z(io),id:Si,...mt.shape}).strict(),Ih=a=>Xp.safeParse(a).success,$p=M({jsonrpc:z(io),...nn.shape}).strict(),N1=a=>$p.safeParse(a).success,Ps=M({jsonrpc:z(io),id:Si,result:ht}).strict(),Ju=a=>Ps.safeParse(a).success;var Me;(function(a){a[a.ConnectionClosed=-32e3]="ConnectionClosed",a[a.RequestTimeout=-32001]="RequestTimeout",a[a.ParseError=-32700]="ParseError",a[a.InvalidRequest=-32600]="InvalidRequest",a[a.MethodNotFound=-32601]="MethodNotFound",a[a.InvalidParams=-32602]="InvalidParams",a[a.InternalError=-32603]="InternalError",a[a.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Me||(Me={}));const er=M({jsonrpc:z(io),id:Si.optional(),error:M({code:re().int(),message:x(),data:Ze().optional()})}).strict(),D1=a=>er.safeParse(a).success,k1=ge([Xp,$p,Ps,er]);ge([Ps,er]);const tr=ht.strict(),U1=tn.extend({requestId:Si.optional(),reason:x().optional()}),nr=nn.extend({method:z("notifications/cancelled"),params:U1}),Z1=M({src:x(),mimeType:x().optional(),sizes:P(x()).optional(),theme:Bt(["light","dark"]).optional()}),_i=M({icons:P(Z1).optional()}),yl=M({name:x(),title:x().optional()}),uo=yl.extend({...yl.shape,..._i.shape,version:x(),websiteUrl:x().optional(),description:x().optional()}),j1=Ws(M({applyDefaults:je().optional()}),ke(x(),Ze())),q1=Gp(a=>a&&typeof a=="object"&&!Array.isArray(a)&&Object.keys(a).length===0?{form:{}}:a,Ws(M({form:j1.optional(),url:dt.optional()}),ke(x(),Ze()).optional())),H1=Rt({list:dt.optional(),cancel:dt.optional(),requests:Rt({sampling:Rt({createMessage:dt.optional()}).optional(),elicitation:Rt({create:dt.optional()}).optional()}).optional()}),B1=Rt({list:dt.optional(),cancel:dt.optional(),requests:Rt({tools:Rt({call:dt.optional()}).optional()}).optional()}),L1=M({experimental:ke(x(),dt).optional(),sampling:M({context:dt.optional(),tools:dt.optional()}).optional(),elicitation:q1.optional(),roots:M({listChanged:je().optional()}).optional(),tasks:H1.optional()}),Y1=Lt.extend({protocolVersion:x(),capabilities:L1,clientInfo:uo}),G1=mt.extend({method:z("initialize"),params:Y1}),Q1=M({experimental:ke(x(),dt).optional(),logging:dt.optional(),completions:dt.optional(),prompts:M({listChanged:je().optional()}).optional(),resources:M({subscribe:je().optional(),listChanged:je().optional()}).optional(),tools:M({listChanged:je().optional()}).optional(),tasks:B1.optional()}),V1=ht.extend({protocolVersion:x(),capabilities:Q1,serverInfo:uo,instructions:x().optional()}),X1=nn.extend({method:z("notifications/initialized"),params:tn.optional()}),oo=mt.extend({method:z("ping"),params:Lt.optional()}),$1=M({progress:re(),total:Je(re()),message:Je(x())}),J1=M({...tn.shape,...$1.shape,progressToken:Qp}),ar=nn.extend({method:z("notifications/progress"),params:J1}),K1=Lt.extend({cursor:Vp.optional()}),zi=mt.extend({params:K1.optional()}),Ti=ht.extend({nextCursor:Vp.optional()}),I1=Bt(["working","input_required","completed","failed","cancelled"]),Ei=M({taskId:x(),status:I1,ttl:ge([re(),Up()]),createdAt:x(),lastUpdatedAt:x(),pollInterval:Je(re()),statusMessage:Je(x())}),lr=ht.extend({task:Ei}),W1=tn.merge(Ei),Pu=nn.extend({method:z("notifications/tasks/status"),params:W1}),ir=mt.extend({method:z("tasks/get"),params:Lt.extend({taskId:x()})}),ur=ht.merge(Ei),or=mt.extend({method:z("tasks/result"),params:Lt.extend({taskId:x()})});ht.loose();const cr=zi.extend({method:z("tasks/list")}),sr=Ti.extend({tasks:P(Ei)}),rr=mt.extend({method:z("tasks/cancel"),params:Lt.extend({taskId:x()})}),F1=ht.merge(Ei),Jp=M({uri:x(),mimeType:Je(x()),_meta:ke(x(),Ze()).optional()}),Kp=Jp.extend({text:x()}),fr=x().refine(a=>{try{return atob(a),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ip=Jp.extend({blob:fr}),xi=Bt(["user","assistant"]),bl=M({audience:P(xi).optional(),priority:re().min(0).max(1).optional(),lastModified:Np({offset:!0}).optional()}),Wp=M({...yl.shape,..._i.shape,uri:x(),description:Je(x()),mimeType:Je(x()),annotations:bl.optional(),_meta:Je(Rt({}))}),P1=M({...yl.shape,..._i.shape,uriTemplate:x(),description:Je(x()),mimeType:Je(x()),annotations:bl.optional(),_meta:Je(Rt({}))}),ez=zi.extend({method:z("resources/list")}),Fp=Ti.extend({resources:P(Wp)}),tz=zi.extend({method:z("resources/templates/list")}),nz=Ti.extend({resourceTemplates:P(P1)}),dr=Lt.extend({uri:x()}),az=dr,lz=mt.extend({method:z("resources/read"),params:az}),Pp=ht.extend({contents:P(ge([Kp,Ip]))}),iz=nn.extend({method:z("notifications/resources/list_changed"),params:tn.optional()}),uz=dr,oz=mt.extend({method:z("resources/subscribe"),params:uz}),cz=dr,sz=mt.extend({method:z("resources/unsubscribe"),params:cz}),rz=tn.extend({uri:x()}),fz=nn.extend({method:z("notifications/resources/updated"),params:rz}),dz=M({name:x(),description:Je(x()),required:Je(je())}),mz=M({...yl.shape,..._i.shape,description:Je(x()),arguments:Je(P(dz)),_meta:Je(Rt({}))}),hz=zi.extend({method:z("prompts/list")}),pz=Ti.extend({prompts:P(mz)}),gz=Lt.extend({name:x(),arguments:ke(x(),x()).optional()}),yz=mt.extend({method:z("prompts/get"),params:gz}),mr=M({type:z("text"),text:x(),annotations:bl.optional(),_meta:ke(x(),Ze()).optional()}),hr=M({type:z("image"),data:fr,mimeType:x(),annotations:bl.optional(),_meta:ke(x(),Ze()).optional()}),pr=M({type:z("audio"),data:fr,mimeType:x(),annotations:bl.optional(),_meta:ke(x(),Ze()).optional()}),vz=M({type:z("tool_use"),name:x(),id:x(),input:ke(x(),Ze()),_meta:ke(x(),Ze()).optional()}),eg=M({type:z("resource"),resource:ge([Kp,Ip]),annotations:bl.optional(),_meta:ke(x(),Ze()).optional()}),tg=Wp.extend({type:z("resource_link")}),Ai=ge([mr,hr,pr,tg,eg]),bz=M({role:xi,content:Ai}),Sz=ht.extend({description:x().optional(),messages:P(bz)}),_z=nn.extend({method:z("notifications/prompts/list_changed"),params:tn.optional()}),zz=M({title:x().optional(),readOnlyHint:je().optional(),destructiveHint:je().optional(),idempotentHint:je().optional(),openWorldHint:je().optional()}),Tz=M({taskSupport:Bt(["required","optional","forbidden"]).optional()}),gr=M({...yl.shape,..._i.shape,description:x().optional(),inputSchema:M({type:z("object"),properties:ke(x(),dt).optional(),required:P(x()).optional()}).catchall(Ze()),outputSchema:M({type:z("object"),properties:ke(x(),dt).optional(),required:P(x()).optional()}).catchall(Ze()).optional(),annotations:zz.optional(),execution:Tz.optional(),_meta:ke(x(),Ze()).optional()}),ng=zi.extend({method:z("tools/list")}),Ez=Ti.extend({tools:P(gr)}),co=ht.extend({content:P(Ai).default([]),structuredContent:ke(x(),Ze()).optional(),isError:je().optional()});co.or(ht.extend({toolResult:Ze()}));const xz=bi.extend({name:x(),arguments:ke(x(),Ze()).optional()}),ag=mt.extend({method:z("tools/call"),params:xz}),Az=nn.extend({method:z("notifications/tools/list_changed"),params:tn.optional()});M({autoRefresh:je().default(!0),debounceMs:re().int().nonnegative().default(300)});const lg=Bt(["debug","info","notice","warning","error","critical","alert","emergency"]),Oz=Lt.extend({level:lg}),Rz=mt.extend({method:z("logging/setLevel"),params:Oz}),Cz=tn.extend({level:lg,logger:x().optional(),data:Ze()}),Mz=nn.extend({method:z("notifications/message"),params:Cz}),wz=M({name:x().optional()}),Nz=M({hints:P(wz).optional(),costPriority:re().min(0).max(1).optional(),speedPriority:re().min(0).max(1).optional(),intelligencePriority:re().min(0).max(1).optional()}),Dz=M({mode:Bt(["auto","required","none"]).optional()}),kz=M({type:z("tool_result"),toolUseId:x().describe("The unique identifier for the corresponding tool call."),content:P(Ai).default([]),structuredContent:M({}).loose().optional(),isError:je().optional(),_meta:ke(x(),Ze()).optional()}),Uz=qp("type",[mr,hr,pr]),eo=qp("type",[mr,hr,pr,vz,kz]),Zz=M({role:xi,content:ge([eo,P(eo)]),_meta:ke(x(),Ze()).optional()}),jz=bi.extend({messages:P(Zz),modelPreferences:Nz.optional(),systemPrompt:x().optional(),includeContext:Bt(["none","thisServer","allServers"]).optional(),temperature:re().optional(),maxTokens:re().int(),stopSequences:P(x()).optional(),metadata:dt.optional(),tools:P(gr).optional(),toolChoice:Dz.optional()}),qz=mt.extend({method:z("sampling/createMessage"),params:jz}),Hz=ht.extend({model:x(),stopReason:Je(Bt(["endTurn","stopSequence","maxTokens"]).or(x())),role:xi,content:Uz}),Bz=ht.extend({model:x(),stopReason:Je(Bt(["endTurn","stopSequence","maxTokens","toolUse"]).or(x())),role:xi,content:ge([eo,P(eo)])}),Lz=M({type:z("boolean"),title:x().optional(),description:x().optional(),default:je().optional()}),Yz=M({type:z("string"),title:x().optional(),description:x().optional(),minLength:re().optional(),maxLength:re().optional(),format:Bt(["email","uri","date","date-time"]).optional(),default:x().optional()}),Gz=M({type:Bt(["number","integer"]),title:x().optional(),description:x().optional(),minimum:re().optional(),maximum:re().optional(),default:re().optional()}),Qz=M({type:z("string"),title:x().optional(),description:x().optional(),enum:P(x()),default:x().optional()}),Vz=M({type:z("string"),title:x().optional(),description:x().optional(),oneOf:P(M({const:x(),title:x()})),default:x().optional()}),Xz=M({type:z("string"),title:x().optional(),description:x().optional(),enum:P(x()),enumNames:P(x()).optional(),default:x().optional()}),$z=ge([Qz,Vz]),Jz=M({type:z("array"),title:x().optional(),description:x().optional(),minItems:re().optional(),maxItems:re().optional(),items:M({type:z("string"),enum:P(x())}),default:P(x()).optional()}),Kz=M({type:z("array"),title:x().optional(),description:x().optional(),minItems:re().optional(),maxItems:re().optional(),items:M({anyOf:P(M({const:x(),title:x()}))}),default:P(x()).optional()}),Iz=ge([Jz,Kz]),Wz=ge([Xz,$z,Iz]),Fz=ge([Wz,Lz,Yz,Gz]),Pz=bi.extend({mode:z("form").optional(),message:x(),requestedSchema:M({type:z("object"),properties:ke(x(),Fz),required:P(x()).optional()})}),eT=bi.extend({mode:z("url"),message:x(),elicitationId:x(),url:x().url()}),tT=ge([Pz,eT]),nT=mt.extend({method:z("elicitation/create"),params:tT}),aT=tn.extend({elicitationId:x()}),lT=nn.extend({method:z("notifications/elicitation/complete"),params:aT}),iT=ht.extend({action:Bt(["accept","decline","cancel"]),content:Gp(a=>a===null?void 0:a,ke(x(),ge([x(),re(),je(),P(x())])).optional())}),uT=M({type:z("ref/resource"),uri:x()}),oT=M({type:z("ref/prompt"),name:x()}),cT=Lt.extend({ref:ge([oT,uT]),argument:M({name:x(),value:x()}),context:M({arguments:ke(x(),x()).optional()}).optional()}),sT=mt.extend({method:z("completion/complete"),params:cT}),rT=ht.extend({completion:Rt({values:P(x()).max(100),total:Je(re().int()),hasMore:Je(je())})}),fT=M({uri:x().startsWith("file://"),name:x().optional(),_meta:ke(x(),Ze()).optional()}),dT=mt.extend({method:z("roots/list"),params:Lt.optional()}),mT=ht.extend({roots:P(fT)}),hT=nn.extend({method:z("notifications/roots/list_changed"),params:tn.optional()});ge([oo,G1,sT,Rz,yz,hz,ez,tz,lz,oz,sz,ag,ng,ir,or,cr,rr]);ge([nr,ar,X1,hT,Pu]);ge([tr,Hz,Bz,iT,mT,ur,sr,lr]);ge([oo,qz,nT,dT,ir,or,cr,rr]);ge([nr,ar,Mz,fz,iz,Az,_z,Pu,lT]);ge([tr,V1,rT,Sz,pz,Fp,nz,Pp,co,Ez,ur,sr,lr]);class be extends Error{constructor(i,o,c){super(`MCP error ${i}: ${o}`),this.code=i,this.data=c,this.name="McpError"}static fromError(i,o,c){if(i===Me.UrlElicitationRequired&&c){const r=c;if(r.elicitations)return new pT(r.elicitations,o)}return new be(i,o,c)}}class pT extends be{constructor(i,o=`URL elicitation${i.length>1?"s":""} required`){super(Me.UrlElicitationRequired,o,{elicitations:i})}get elicitations(){return this.data?.elicitations??[]}}function xa(a){return a==="completed"||a==="failed"||a==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Wh(a){const o=h_(a)?.method;if(!o)throw new Error("Schema is missing a method literal");const c=p_(o);if(typeof c!="string")throw new Error("Schema method literal must be a string");return c}function Fh(a,i){const o=wp(a,i);if(!o.success)throw o.error;return o.data}const gT=6e4;class yT{constructor(i){this._options=i,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(nr,o=>{this._oncancel(o)}),this.setNotificationHandler(ar,o=>{this._onprogress(o)}),this.setRequestHandler(oo,o=>({})),this._taskStore=i?.taskStore,this._taskMessageQueue=i?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ir,async(o,c)=>{const r=await this._taskStore.getTask(o.params.taskId,c.sessionId);if(!r)throw new be(Me.InvalidParams,"Failed to retrieve task: Task not found");return{...r}}),this.setRequestHandler(or,async(o,c)=>{const r=async()=>{const m=o.params.taskId;if(this._taskMessageQueue){let p;for(;p=await this._taskMessageQueue.dequeue(m,c.sessionId);){if(p.type==="response"||p.type==="error"){const y=p.message,g=y.id,A=this._requestResolvers.get(g);if(A)if(this._requestResolvers.delete(g),p.type==="response")A(y);else{const R=y,N=new be(R.error.code,R.error.message,R.error.data);A(N)}else{const R=p.type==="response"?"Response":"Error";this._onerror(new Error(`${R} handler missing for request ${g}`))}continue}await this._transport?.send(p.message,{relatedRequestId:c.requestId})}}const d=await this._taskStore.getTask(m,c.sessionId);if(!d)throw new be(Me.InvalidParams,`Task not found: ${m}`);if(!xa(d.status))return await this._waitForTaskUpdate(m,c.signal),await r();if(xa(d.status)){const p=await this._taskStore.getTaskResult(m,c.sessionId);return this._clearTaskQueue(m),{...p,_meta:{...p._meta,[Aa]:{taskId:m}}}}return await r()};return await r()}),this.setRequestHandler(cr,async(o,c)=>{try{const{tasks:r,nextCursor:m}=await this._taskStore.listTasks(o.params?.cursor,c.sessionId);return{tasks:r,nextCursor:m,_meta:{}}}catch(r){throw new be(Me.InvalidParams,`Failed to list tasks: ${r instanceof Error?r.message:String(r)}`)}}),this.setRequestHandler(rr,async(o,c)=>{try{const r=await this._taskStore.getTask(o.params.taskId,c.sessionId);if(!r)throw new be(Me.InvalidParams,`Task not found: ${o.params.taskId}`);if(xa(r.status))throw new be(Me.InvalidParams,`Cannot cancel task in terminal status: ${r.status}`);await this._taskStore.updateTaskStatus(o.params.taskId,"cancelled","Client cancelled task execution.",c.sessionId),this._clearTaskQueue(o.params.taskId);const m=await this._taskStore.getTask(o.params.taskId,c.sessionId);if(!m)throw new be(Me.InvalidParams,`Task not found after cancellation: ${o.params.taskId}`);return{_meta:{},...m}}catch(r){throw r instanceof be?r:new be(Me.InvalidRequest,`Failed to cancel task: ${r instanceof Error?r.message:String(r)}`)}}))}async _oncancel(i){if(!i.params.requestId)return;this._requestHandlerAbortControllers.get(i.params.requestId)?.abort(i.params.reason)}_setupTimeout(i,o,c,r,m=!1){this._timeoutInfo.set(i,{timeoutId:setTimeout(r,o),startTime:Date.now(),timeout:o,maxTotalTimeout:c,resetTimeoutOnProgress:m,onTimeout:r})}_resetTimeout(i){const o=this._timeoutInfo.get(i);if(!o)return!1;const c=Date.now()-o.startTime;if(o.maxTotalTimeout&&c>=o.maxTotalTimeout)throw this._timeoutInfo.delete(i),be.fromError(Me.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:o.maxTotalTimeout,totalElapsed:c});return clearTimeout(o.timeoutId),o.timeoutId=setTimeout(o.onTimeout,o.timeout),!0}_cleanupTimeout(i){const o=this._timeoutInfo.get(i);o&&(clearTimeout(o.timeoutId),this._timeoutInfo.delete(i))}async connect(i){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=i;const o=this.transport?.onclose;this._transport.onclose=()=>{o?.(),this._onclose()};const c=this.transport?.onerror;this._transport.onerror=m=>{c?.(m),this._onerror(m)};const r=this._transport?.onmessage;this._transport.onmessage=(m,d)=>{r?.(m,d),Ju(m)||D1(m)?this._onresponse(m):Ih(m)?this._onrequest(m,d):N1(m)?this._onnotification(m):this._onerror(new Error(`Unknown message type: ${JSON.stringify(m)}`))},await this._transport.start()}_onclose(){const i=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const c of this._requestHandlerAbortControllers.values())c.abort();this._requestHandlerAbortControllers.clear();const o=be.fromError(Me.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const c of i.values())c(o)}_onerror(i){this.onerror?.(i)}_onnotification(i){const o=this._notificationHandlers.get(i.method)??this.fallbackNotificationHandler;o!==void 0&&Promise.resolve().then(()=>o(i)).catch(c=>this._onerror(new Error(`Uncaught error in notification handler: ${c}`)))}_onrequest(i,o){const c=this._requestHandlers.get(i.method)??this.fallbackRequestHandler,r=this._transport,m=i.params?._meta?.[Aa]?.taskId;if(c===void 0){const A={jsonrpc:"2.0",id:i.id,error:{code:Me.MethodNotFound,message:"Method not found"}};m&&this._taskMessageQueue?this._enqueueTaskMessage(m,{type:"error",message:A,timestamp:Date.now()},r?.sessionId).catch(R=>this._onerror(new Error(`Failed to enqueue error response: ${R}`))):r?.send(A).catch(R=>this._onerror(new Error(`Failed to send an error response: ${R}`)));return}const d=new AbortController;this._requestHandlerAbortControllers.set(i.id,d);const p=w1(i.params)?i.params.task:void 0,y=this._taskStore?this.requestTaskStore(i,r?.sessionId):void 0,g={signal:d.signal,sessionId:r?.sessionId,_meta:i.params?._meta,sendNotification:async A=>{if(d.signal.aborted)return;const R={relatedRequestId:i.id};m&&(R.relatedTask={taskId:m}),await this.notification(A,R)},sendRequest:async(A,R,N)=>{if(d.signal.aborted)throw new be(Me.ConnectionClosed,"Request was cancelled");const H={...N,relatedRequestId:i.id};m&&!H.relatedTask&&(H.relatedTask={taskId:m});const I=H.relatedTask?.taskId??m;return I&&y&&await y.updateTaskStatus(I,"input_required"),await this.request(A,R,H)},authInfo:o?.authInfo,requestId:i.id,requestInfo:o?.requestInfo,taskId:m,taskStore:y,taskRequestedTtl:p?.ttl,closeSSEStream:o?.closeSSEStream,closeStandaloneSSEStream:o?.closeStandaloneSSEStream};Promise.resolve().then(()=>{p&&this.assertTaskHandlerCapability(i.method)}).then(()=>c(i,g)).then(async A=>{if(d.signal.aborted)return;const R={result:A,jsonrpc:"2.0",id:i.id};m&&this._taskMessageQueue?await this._enqueueTaskMessage(m,{type:"response",message:R,timestamp:Date.now()},r?.sessionId):await r?.send(R)},async A=>{if(d.signal.aborted)return;const R={jsonrpc:"2.0",id:i.id,error:{code:Number.isSafeInteger(A.code)?A.code:Me.InternalError,message:A.message??"Internal error",...A.data!==void 0&&{data:A.data}}};m&&this._taskMessageQueue?await this._enqueueTaskMessage(m,{type:"error",message:R,timestamp:Date.now()},r?.sessionId):await r?.send(R)}).catch(A=>this._onerror(new Error(`Failed to send response: ${A}`))).finally(()=>{this._requestHandlerAbortControllers.delete(i.id)})}_onprogress(i){const{progressToken:o,...c}=i.params,r=Number(o),m=this._progressHandlers.get(r);if(!m){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(i)}`));return}const d=this._responseHandlers.get(r),p=this._timeoutInfo.get(r);if(p&&d&&p.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(y){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),d(y);return}m(c)}_onresponse(i){const o=Number(i.id),c=this._requestResolvers.get(o);if(c){if(this._requestResolvers.delete(o),Ju(i))c(i);else{const d=new be(i.error.code,i.error.message,i.error.data);c(d)}return}const r=this._responseHandlers.get(o);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(i)}`));return}this._responseHandlers.delete(o),this._cleanupTimeout(o);let m=!1;if(Ju(i)&&i.result&&typeof i.result=="object"){const d=i.result;if(d.task&&typeof d.task=="object"){const p=d.task;typeof p.taskId=="string"&&(m=!0,this._taskProgressTokens.set(p.taskId,o))}}if(m||this._progressHandlers.delete(o),Ju(i))r(i);else{const d=be.fromError(i.error.code,i.error.message,i.error.data);r(d)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(i,o,c){const{task:r}=c??{};if(!r){try{yield{type:"result",result:await this.request(i,o,c)}}catch(d){yield{type:"error",error:d instanceof be?d:new be(Me.InternalError,String(d))}}return}let m;try{const d=await this.request(i,lr,c);if(d.task)m=d.task.taskId,yield{type:"taskCreated",task:d.task};else throw new be(Me.InternalError,"Task creation did not return a task");for(;;){const p=await this.getTask({taskId:m},c);if(yield{type:"taskStatus",task:p},xa(p.status)){p.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:m},o,c)}:p.status==="failed"?yield{type:"error",error:new be(Me.InternalError,`Task ${m} failed`)}:p.status==="cancelled"&&(yield{type:"error",error:new be(Me.InternalError,`Task ${m} was cancelled`)});return}if(p.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:m},o,c)};return}const y=p.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(g=>setTimeout(g,y)),c?.signal?.throwIfAborted()}}catch(d){yield{type:"error",error:d instanceof be?d:new be(Me.InternalError,String(d))}}}request(i,o,c){const{relatedRequestId:r,resumptionToken:m,onresumptiontoken:d,task:p,relatedTask:y}=c??{};return new Promise((g,A)=>{const R=ue=>{A(ue)};if(!this._transport){R(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(i.method),p&&this.assertTaskCapability(i.method)}catch(ue){R(ue);return}c?.signal?.throwIfAborted();const N=this._requestMessageId++,H={...i,jsonrpc:"2.0",id:N};c?.onprogress&&(this._progressHandlers.set(N,c.onprogress),H.params={...i.params,_meta:{...i.params?._meta||{},progressToken:N}}),p&&(H.params={...H.params,task:p}),y&&(H.params={...H.params,_meta:{...H.params?._meta||{},[Aa]:y}});const I=ue=>{this._responseHandlers.delete(N),this._progressHandlers.delete(N),this._cleanupTimeout(N),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:N,reason:String(ue)}},{relatedRequestId:r,resumptionToken:m,onresumptiontoken:d}).catch(ce=>this._onerror(new Error(`Failed to send cancellation: ${ce}`)));const F=ue instanceof be?ue:new be(Me.RequestTimeout,String(ue));A(F)};this._responseHandlers.set(N,ue=>{if(!c?.signal?.aborted){if(ue instanceof Error)return A(ue);try{const F=wp(o,ue.result);F.success?g(F.data):A(F.error)}catch(F){A(F)}}}),c?.signal?.addEventListener("abort",()=>{I(c?.signal?.reason)});const W=c?.timeout??gT,ve=()=>I(be.fromError(Me.RequestTimeout,"Request timed out",{timeout:W}));this._setupTimeout(N,W,c?.maxTotalTimeout,ve,c?.resetTimeoutOnProgress??!1);const Ye=y?.taskId;if(Ye){const ue=F=>{const ce=this._responseHandlers.get(N);ce?ce(F):this._onerror(new Error(`Response handler missing for side-channeled request ${N}`))};this._requestResolvers.set(N,ue),this._enqueueTaskMessage(Ye,{type:"request",message:H,timestamp:Date.now()}).catch(F=>{this._cleanupTimeout(N),A(F)})}else this._transport.send(H,{relatedRequestId:r,resumptionToken:m,onresumptiontoken:d}).catch(ue=>{this._cleanupTimeout(N),A(ue)})})}async getTask(i,o){return this.request({method:"tasks/get",params:i},ur,o)}async getTaskResult(i,o,c){return this.request({method:"tasks/result",params:i},o,c)}async listTasks(i,o){return this.request({method:"tasks/list",params:i},sr,o)}async cancelTask(i,o){return this.request({method:"tasks/cancel",params:i},F1,o)}async notification(i,o){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(i.method);const c=o?.relatedTask?.taskId;if(c){const p={...i,jsonrpc:"2.0",params:{...i.params,_meta:{...i.params?._meta||{},[Aa]:o.relatedTask}}};await this._enqueueTaskMessage(c,{type:"notification",message:p,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(i.method)&&!i.params&&!o?.relatedRequestId&&!o?.relatedTask){if(this._pendingDebouncedNotifications.has(i.method))return;this._pendingDebouncedNotifications.add(i.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(i.method),!this._transport)return;let p={...i,jsonrpc:"2.0"};o?.relatedTask&&(p={...p,params:{...p.params,_meta:{...p.params?._meta||{},[Aa]:o.relatedTask}}}),this._transport?.send(p,o).catch(y=>this._onerror(y))});return}let d={...i,jsonrpc:"2.0"};o?.relatedTask&&(d={...d,params:{...d.params,_meta:{...d.params?._meta||{},[Aa]:o.relatedTask}}}),await this._transport.send(d,o)}setRequestHandler(i,o){const c=Wh(i);this.assertRequestHandlerCapability(c),this._requestHandlers.set(c,(r,m)=>{const d=Fh(i,r);return Promise.resolve(o(d,m))})}removeRequestHandler(i){this._requestHandlers.delete(i)}assertCanSetRequestHandler(i){if(this._requestHandlers.has(i))throw new Error(`A request handler for ${i} already exists, which would be overridden`)}setNotificationHandler(i,o){const c=Wh(i);this._notificationHandlers.set(c,r=>{const m=Fh(i,r);return Promise.resolve(o(m))})}removeNotificationHandler(i){this._notificationHandlers.delete(i)}_cleanupTaskProgressHandler(i){const o=this._taskProgressTokens.get(i);o!==void 0&&(this._progressHandlers.delete(o),this._taskProgressTokens.delete(i))}async _enqueueTaskMessage(i,o,c){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(i,o,c,r)}async _clearTaskQueue(i,o){if(this._taskMessageQueue){const c=await this._taskMessageQueue.dequeueAll(i,o);for(const r of c)if(r.type==="request"&&Ih(r.message)){const m=r.message.id,d=this._requestResolvers.get(m);d?(d(new be(Me.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(m)):this._onerror(new Error(`Resolver missing for request ${m} during task ${i} cleanup`))}}}async _waitForTaskUpdate(i,o){let c=this._options?.defaultTaskPollInterval??1e3;try{const r=await this._taskStore?.getTask(i);r?.pollInterval&&(c=r.pollInterval)}catch{}return new Promise((r,m)=>{if(o.aborted){m(new be(Me.InvalidRequest,"Request cancelled"));return}const d=setTimeout(r,c);o.addEventListener("abort",()=>{clearTimeout(d),m(new be(Me.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(i,o){const c=this._taskStore;if(!c)throw new Error("No task store configured");return{createTask:async r=>{if(!i)throw new Error("No request provided");return await c.createTask(r,i.id,{method:i.method,params:i.params},o)},getTask:async r=>{const m=await c.getTask(r,o);if(!m)throw new be(Me.InvalidParams,"Failed to retrieve task: Task not found");return m},storeTaskResult:async(r,m,d)=>{await c.storeTaskResult(r,m,d,o);const p=await c.getTask(r,o);if(p){const y=Pu.parse({method:"notifications/tasks/status",params:p});await this.notification(y),xa(p.status)&&this._cleanupTaskProgressHandler(r)}},getTaskResult:r=>c.getTaskResult(r,o),updateTaskStatus:async(r,m,d)=>{const p=await c.getTask(r,o);if(!p)throw new be(Me.InvalidParams,`Task "${r}" not found - it may have been cleaned up`);if(xa(p.status))throw new be(Me.InvalidParams,`Cannot update task "${r}" from terminal status "${p.status}" to "${m}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await c.updateTaskStatus(r,m,d,o);const y=await c.getTask(r,o);if(y){const g=Pu.parse({method:"notifications/tasks/status",params:y});await this.notification(g),xa(y.status)&&this._cleanupTaskProgressHandler(r)}},listTasks:r=>c.listTasks(r,o)}}}var vT="2026-01-26",bT="ui/notifications/tool-input-partial";class ig{eventTarget;eventSource;messageListener;constructor(i=window.parent,o){this.eventTarget=i,this.eventSource=o,this.messageListener=c=>{if(o&&c.source!==this.eventSource){console.debug("Ignoring message from unknown source",c);return}let r=k1.safeParse(c.data);r.success?(console.debug("Parsed message",r.data),this.onmessage?.(r.data)):c.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",r.error.message,c):(console.error("Failed to parse message",r.error.message,c),this.onerror?.(Error("Invalid JSON-RPC message received: "+r.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(i,o){i.method!==bT&&console.debug("Sending message",i),this.eventTarget.postMessage(i,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var ST=ge([z("light"),z("dark")]).describe("Color theme preference for the host environment."),vi=ge([z("inline"),z("fullscreen"),z("pip")]).describe("Display mode for UI presentation."),_T=ge([z("--color-background-primary"),z("--color-background-secondary"),z("--color-background-tertiary"),z("--color-background-inverse"),z("--color-background-ghost"),z("--color-background-info"),z("--color-background-danger"),z("--color-background-success"),z("--color-background-warning"),z("--color-background-disabled"),z("--color-text-primary"),z("--color-text-secondary"),z("--color-text-tertiary"),z("--color-text-inverse"),z("--color-text-ghost"),z("--color-text-info"),z("--color-text-danger"),z("--color-text-success"),z("--color-text-warning"),z("--color-text-disabled"),z("--color-border-primary"),z("--color-border-secondary"),z("--color-border-tertiary"),z("--color-border-inverse"),z("--color-border-ghost"),z("--color-border-info"),z("--color-border-danger"),z("--color-border-success"),z("--color-border-warning"),z("--color-border-disabled"),z("--color-ring-primary"),z("--color-ring-secondary"),z("--color-ring-inverse"),z("--color-ring-info"),z("--color-ring-danger"),z("--color-ring-success"),z("--color-ring-warning"),z("--font-sans"),z("--font-mono"),z("--font-weight-normal"),z("--font-weight-medium"),z("--font-weight-semibold"),z("--font-weight-bold"),z("--font-text-xs-size"),z("--font-text-sm-size"),z("--font-text-md-size"),z("--font-text-lg-size"),z("--font-heading-xs-size"),z("--font-heading-sm-size"),z("--font-heading-md-size"),z("--font-heading-lg-size"),z("--font-heading-xl-size"),z("--font-heading-2xl-size"),z("--font-heading-3xl-size"),z("--font-text-xs-line-height"),z("--font-text-sm-line-height"),z("--font-text-md-line-height"),z("--font-text-lg-line-height"),z("--font-heading-xs-line-height"),z("--font-heading-sm-line-height"),z("--font-heading-md-line-height"),z("--font-heading-lg-line-height"),z("--font-heading-xl-line-height"),z("--font-heading-2xl-line-height"),z("--font-heading-3xl-line-height"),z("--border-radius-xs"),z("--border-radius-sm"),z("--border-radius-md"),z("--border-radius-lg"),z("--border-radius-xl"),z("--border-radius-full"),z("--border-width-regular"),z("--shadow-hairline"),z("--shadow-sm"),z("--shadow-md"),z("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),zT=ke(_T.describe(`Style variables for theming MCP apps.
54
+
55
+ Individual style keys are optional - hosts may provide any subset of these values.
56
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
57
+
58
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
59
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),ge([x(),Hs()]).describe(`Style variables for theming MCP apps.
60
+
61
+ Individual style keys are optional - hosts may provide any subset of these values.
62
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
63
+
64
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
65
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
66
+
67
+ Individual style keys are optional - hosts may provide any subset of these values.
68
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
69
+
70
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
71
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);M({method:z("ui/open-link"),params:M({url:x().describe("URL to open in the host's browser")})});var TT=M({isError:je().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),ET=M({isError:je().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),xT=M({isError:je().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();M({method:z("ui/notifications/sandbox-proxy-ready"),params:M({})});var yr=M({connectDomains:P(x()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
72
+
73
+ - Maps to CSP \`connect-src\` directive
74
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:P(x()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:P(x()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:P(x()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),vr=M({camera:M({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:M({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:M({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:M({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});M({method:z("ui/notifications/size-changed"),params:M({width:re().optional().describe("New width in pixels."),height:re().optional().describe("New height in pixels.")})});var AT=M({method:z("ui/notifications/tool-input"),params:M({arguments:ke(x(),Ze().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),OT=M({method:z("ui/notifications/tool-input-partial"),params:M({arguments:ke(x(),Ze().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),RT=M({method:z("ui/notifications/tool-cancelled"),params:M({reason:x().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),CT=M({fonts:x().optional()}),MT=M({variables:zT.optional().describe("CSS variables for theming the app."),css:CT.optional().describe("CSS blocks that apps can inject.")}),wT=M({method:z("ui/resource-teardown"),params:M({})});ke(x(),Ze());var Ph=M({text:M({}).optional().describe("Host supports text content blocks."),image:M({}).optional().describe("Host supports image content blocks."),audio:M({}).optional().describe("Host supports audio content blocks."),resource:M({}).optional().describe("Host supports resource content blocks."),resourceLink:M({}).optional().describe("Host supports resource link content blocks."),structuredContent:M({}).optional().describe("Host supports structured content.")}),NT=M({experimental:M({}).optional().describe("Experimental features (structure TBD)."),openLinks:M({}).optional().describe("Host supports opening external URLs."),downloadFile:M({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:M({listChanged:je().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:M({listChanged:je().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:M({}).optional().describe("Host accepts log messages."),sandbox:M({permissions:vr.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:yr.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:Ph.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:Ph.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),DT=M({experimental:M({}).optional().describe("Experimental features (structure TBD)."),tools:M({listChanged:je().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:P(vi).optional().describe("Display modes the app supports.")});M({method:z("ui/notifications/initialized"),params:M({}).optional()});M({csp:yr.optional().describe("Content Security Policy configuration for UI resources."),permissions:vr.optional().describe("Sandbox permissions requested by the UI resource."),domain:x().optional().describe(`Dedicated origin for view sandbox.
75
+
76
+ Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
77
+
78
+ **Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
79
+ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
80
+ - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
81
+
82
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:je().optional().describe(`Visual boundary preference - true if view prefers a visible border.
83
+
84
+ Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
85
+
86
+ - \`true\`: request visible border + background
87
+ - \`false\`: request no visible border + background
88
+ - omitted: host decides border`)});M({method:z("ui/request-display-mode"),params:M({mode:vi.describe("The display mode being requested.")})});var kT=M({mode:vi.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),UT=ge([z("model"),z("app")]).describe("Tool visibility scope - who can access the tool.");M({resourceUri:x().optional(),visibility:P(UT).optional().describe(`Who can access this tool. Default: ["model", "app"]
89
+ - "model": Tool visible to and callable by the agent
90
+ - "app": Tool callable by the app from this server only`)});M({mimeTypes:P(x()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});M({method:z("ui/download-file"),params:M({contents:P(ge([eg,tg])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});M({method:z("ui/message"),params:M({role:z("user").describe('Message role, currently only "user" is supported.'),content:P(Ai).describe("Message content blocks (text, image, etc.).")})});M({method:z("ui/notifications/sandbox-resource-ready"),params:M({html:x().describe("HTML content to load into the inner iframe."),sandbox:x().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:yr.optional().describe("CSP configuration from resource metadata."),permissions:vr.optional().describe("Sandbox permissions from resource metadata.")})});var ZT=M({method:z("ui/notifications/tool-result"),params:co.describe("Standard MCP tool execution result.")}),ug=M({toolInfo:M({id:Si.optional().describe("JSON-RPC id of the tools/call request."),tool:gr.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:ST.optional().describe("Current color theme preference."),styles:MT.optional().describe("Style configuration for theming the app."),displayMode:vi.optional().describe("How the UI is currently displayed."),availableDisplayModes:P(vi).optional().describe("Display modes the host supports."),containerDimensions:ge([M({height:re().describe("Fixed container height in pixels.")}),M({maxHeight:ge([re(),Hs()]).optional().describe("Maximum container height in pixels.")})]).and(ge([M({width:re().describe("Fixed container width in pixels.")}),M({maxWidth:ge([re(),Hs()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
91
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:x().optional().describe("User's language and region preference in BCP 47 format."),timeZone:x().optional().describe("User's timezone in IANA format."),userAgent:x().optional().describe("Host application identifier."),platform:ge([z("web"),z("desktop"),z("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:M({touch:je().optional().describe("Whether the device supports touch input."),hover:je().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:M({top:re().describe("Top safe area inset in pixels."),right:re().describe("Right safe area inset in pixels."),bottom:re().describe("Bottom safe area inset in pixels."),left:re().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),jT=M({method:z("ui/notifications/host-context-changed"),params:ug.describe("Partial context update containing only changed fields.")});M({method:z("ui/update-model-context"),params:M({content:P(Ai).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ke(x(),Ze().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});M({method:z("ui/initialize"),params:M({appInfo:uo.describe("App identification (name and version)."),appCapabilities:DT.describe("Features and capabilities this app provides."),protocolVersion:x().describe("Protocol version this app supports.")})});var qT=M({protocolVersion:x().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:uo.describe("Host application identification and version."),hostCapabilities:NT.describe("Features and capabilities provided by the host."),hostContext:ug.describe("Rich context about the host environment.")}).passthrough();class HT extends yT{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(i,o={},c={autoResize:!0}){super(c),this._appInfo=i,this._capabilities=o,this.options=c,this.setRequestHandler(oo,r=>(console.log("Received ping:",r.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(i){this.setNotificationHandler(AT,o=>i(o.params))}set ontoolinputpartial(i){this.setNotificationHandler(OT,o=>i(o.params))}set ontoolresult(i){this.setNotificationHandler(ZT,o=>i(o.params))}set ontoolcancelled(i){this.setNotificationHandler(RT,o=>i(o.params))}set onhostcontextchanged(i){this.setNotificationHandler(jT,o=>{this._hostContext={...this._hostContext,...o.params},i(o.params)})}set onteardown(i){this.setRequestHandler(wT,(o,c)=>i(o.params,c))}set oncalltool(i){this.setRequestHandler(ag,(o,c)=>i(o.params,c))}set onlisttools(i){this.setRequestHandler(ng,(o,c)=>i(o.params,c))}assertCapabilityForMethod(i){}assertRequestHandlerCapability(i){switch(i){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${i})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${i} registered`)}}assertNotificationCapability(i){}assertTaskCapability(i){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(i){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(i,o){if(typeof i=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${i}"). Did you mean: callServerTool({ name: "${i}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:i},co,o)}async readServerResource(i,o){return await this.request({method:"resources/read",params:i},Pp,o)}async listServerResources(i,o){return await this.request({method:"resources/list",params:i},Fp,o)}sendMessage(i,o){return this.request({method:"ui/message",params:i},xT,o)}sendLog(i){return this.notification({method:"notifications/message",params:i})}updateModelContext(i,o){return this.request({method:"ui/update-model-context",params:i},tr,o)}openLink(i,o){return this.request({method:"ui/open-link",params:i},TT,o)}sendOpenLink=this.openLink;downloadFile(i,o){return this.request({method:"ui/download-file",params:i},ET,o)}requestDisplayMode(i,o){return this.request({method:"ui/request-display-mode",params:i},kT,o)}sendSizeChanged(i){return this.notification({method:"ui/notifications/size-changed",params:i})}setupSizeChangedNotifications(){let i=!1,o=0,c=0,r=()=>{i||(i=!0,requestAnimationFrame(()=>{i=!1;let d=document.documentElement,p=d.style.width,y=d.style.height;d.style.width="fit-content",d.style.height="max-content";let g=d.getBoundingClientRect();d.style.width=p,d.style.height=y;let A=window.innerWidth-d.clientWidth,R=Math.ceil(g.width+A),N=Math.ceil(g.height);(R!==o||N!==c)&&(o=R,c=N,this.sendSizeChanged({width:R,height:N}))}))};r();let m=new ResizeObserver(r);return m.observe(document.documentElement),m.observe(document.body),()=>m.disconnect()}async connect(i=new ig(window.parent,window.parent),o){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(i);try{let c=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:vT}},qT,o);if(c===void 0)throw Error(`Server sent invalid initialize result: ${c}`);this._hostCapabilities=c.hostCapabilities,this._hostInfo=c.hostInfo,this._hostContext=c.hostContext,await this.notification({method:"ui/notifications/initialized"}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(c){throw this.close(),c}}}function BT({appInfo:a,capabilities:i,onAppCreated:o}){let[c,r]=Se.useState(null),[m,d]=Se.useState(!1),[p,y]=Se.useState(null);return Se.useEffect(()=>{let g=!0;async function A(){try{let R=new ig(window.parent,window.parent),N=new HT(a,i);o?.(N),await N.connect(R),g&&(r(N),d(!0),y(null))}catch(R){g&&(r(null),d(!1),y(R instanceof Error?R:Error("Failed to connect")))}}return A(),()=>{g=!1}},[]),{app:c,isConnected:m,error:p}}function LT({header:a,children:i,defaultOpen:o=!1}){const[c,r]=Se.useState(o);return Se.useEffect(()=>{o!==void 0&&r(o)},[o]),q.jsxs("div",{style:{border:"1px solid var(--color-border)",borderRadius:"var(--border-radius-md)",overflow:"hidden",marginBottom:"var(--spacing-sm)"},children:[q.jsxs("div",{onClick:()=>r(!c),style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm)",padding:"var(--spacing-sm) var(--spacing-md)",background:"var(--color-background-secondary)",cursor:"pointer",userSelect:"none"},children:[q.jsx("span",{style:{transform:c?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s",fontSize:"12px"},children:"▶"}),a]}),c&&q.jsx("div",{style:{padding:"var(--spacing-sm) 0"},children:i})]})}const YT={added:"#22c55e",modified:"#f59e0b",deleted:"#ef4444",renamed:"#8b5cf6"};function GT({status:a,label:i,style:o}){const c=YT[a]||"#6b7280";return q.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"6px",fontSize:"12px",color:"var(--color-text-secondary)",...o},children:[q.jsx("span",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:c,flexShrink:0}}),i&&q.jsx("span",{children:i})]})}const Ys=["Code","UI","Automation","Data Model","Security","Reporting","Config","Other"],QT={Code:"#3b82f6",UI:"#8b5cf6",Automation:"#f59e0b","Data Model":"#06b6d4",Security:"#ef4444",Reporting:"#10b981",Config:"#6b7280",Other:"#9ca3af"},VT={ApexClass:"Code",ApexTrigger:"Code",ApexPage:"Code",ApexComponent:"Code",LightningComponentBundle:"UI",AuraDefinitionBundle:"UI",FlexiPage:"UI",CustomApplication:"UI",CustomTab:"UI",HomePageComponent:"UI",HomePageLayout:"UI",ContentAsset:"UI",ExperienceBundle:"UI",SiteDotCom:"UI",CustomSite:"UI",StaticResource:"UI",Flow:"Automation",FlowDefinition:"Automation",Workflow:"Automation",ApprovalProcess:"Automation",AssignmentRule:"Automation",AutoResponseRule:"Automation",EscalationRule:"Automation",QuickAction:"Automation",PathAssistant:"Automation",CustomObject:"Data Model",CustomField:"Data Model",ValidationRule:"Data Model",CompactLayout:"Data Model",RecordType:"Data Model",ListView:"Data Model",WebLink:"Data Model",BusinessProcess:"Data Model",FieldSet:"Data Model",SharingReason:"Data Model",GlobalValueSet:"Data Model",StandardValueSet:"Data Model",CustomMetadata:"Data Model",MatchingRule:"Data Model",DuplicateRule:"Data Model",Layout:"Data Model",Profile:"Security",PermissionSet:"Security",PermissionSetGroup:"Security",SharingRules:"Security",CustomPermission:"Security",ConnectedApp:"Security",NamedCredential:"Security",RemoteSiteSetting:"Security",Certificate:"Security",ProfileFieldPermission:"Security",ProfileObjectPermission:"Security",ProfileClassAccess:"Security",ProfilePageAccess:"Security",ProfileRecordTypeVisibility:"Security",ProfileTabVisibility:"Security",ProfileUserPermission:"Security",ProfileApplicationVisibility:"Security",ProfileFlowAccess:"Security",ProfileLayoutAssignment:"Security",ProfileCustomPermission:"Security",PermissionSetFieldPermission:"Security",PermissionSetObjectPermission:"Security",PermissionSetClassAccess:"Security",PermissionSetPageAccess:"Security",PermissionSetRecordTypeVisibility:"Security",PermissionSetTabVisibility:"Security",PermissionSetUserPermission:"Security",PermissionSetApplicationVisibility:"Security",PermissionSetFlowAccess:"Security",PermissionSetCustomPermission:"Security",Report:"Reporting",Dashboard:"Reporting",WaveApplication:"Reporting",Settings:"Config",CustomLabels:"Config",Translations:"Config",CustomObjectTranslation:"Config",InstalledPackage:"Config",Group:"Config",Queue:"Config",Role:"Config",Letterhead:"Config",EmailTemplate:"Config",Document:"Config",CustomNotificationType:"Config",PlatformEventChannelMember:"Config",ExternalDataSource:"Config",CleanDataService:"Config"};function ta(a){return a.startsWith("Profile")||a.startsWith("PermissionSet")}function ep(a){return VT[a]??"Other"}function XT({hunks:a}){return q.jsx("div",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",lineHeight:"1.6",overflow:"auto",border:"1px solid var(--color-border)",borderRadius:"var(--border-radius-md)",margin:"var(--spacing-sm) var(--spacing-md)"},children:q.jsx("div",{style:{display:"inline-block",minWidth:"100%"},children:a.map((i,o)=>q.jsxs("div",{children:[q.jsxs("div",{style:{padding:"2px var(--spacing-sm)",background:"var(--color-background-secondary)",color:"var(--color-text-secondary)",fontSize:"11px",borderBottom:"1px solid var(--color-border)",...o>0?{borderTop:"1px solid var(--color-border)"}:{}},children:["@@ -",i.oldStart," +",i.newStart," @@"]}),i.changes.map((c,r)=>{let m="transparent",d=" ";return c.type==="insert"?(m="color-mix(in srgb, #22c55e 15%, var(--color-background-primary))",d="+"):c.type==="delete"&&(m="color-mix(in srgb, #ef4444 15%, var(--color-background-primary))",d="-"),q.jsxs("div",{style:{display:"flex",background:m,whiteSpace:"pre"},children:[q.jsx("span",{style:{width:"45px",minWidth:"45px",textAlign:"right",padding:"0 4px",color:"var(--color-text-secondary)",opacity:.6,userSelect:"none",borderRight:"1px solid var(--color-border)"},children:c.oldLineNumber??""}),q.jsx("span",{style:{width:"45px",minWidth:"45px",textAlign:"right",padding:"0 4px",color:"var(--color-text-secondary)",opacity:.6,userSelect:"none",borderRight:"1px solid var(--color-border)"},children:c.newLineNumber??""}),q.jsx("span",{style:{width:"16px",minWidth:"16px",textAlign:"center",color:c.type==="insert"?"#22c55e":c.type==="delete"?"#ef4444":"var(--color-text-secondary)",userSelect:"none"},children:d}),q.jsx("span",{style:{padding:"0 4px",flex:1},children:c.content})]},r)})]},o))})})}function $T({file:a,selected:i,onToggle:o,selectable:c,app:r,workingDir:m}){const[d,p]=Se.useState(!1),[y,g]=Se.useState(null),[A,R]=Se.useState(!1),[N,H]=Se.useState(null),I=a.componentName||a.newPath||a.oldPath,W=a.type!=="delete"||ta(a.metadataType??""),ve=y??a.hunks,Ye=async()=>{const ue=!d;if(p(ue),ue&&a.hunks.length===0&&!y&&!A){R(!0),H(null);try{const ce=(await r.callServerTool({name:"salesforce_metadata_diff_file_detail",arguments:{workingDir:m,filePath:a.type==="delete"?a.oldPath||a.newPath:a.newPath||a.oldPath}})).content?.find(xe=>xe.type==="text");if(ce&&"text"in ce){const xe=JSON.parse(ce.text);g(xe.hunks)}else H("No data returned")}catch(F){H(F.message||"Failed to load diff")}finally{R(!1)}}};return q.jsxs("div",{children:[q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm)",padding:"var(--spacing-xs) var(--spacing-md)",cursor:W?"pointer":"default",transition:"background 0.1s"},onClick:W?Ye:void 0,onMouseEnter:W?ue=>ue.currentTarget.style.background="var(--color-background-secondary)":void 0,onMouseLeave:W?ue=>ue.currentTarget.style.background="transparent":void 0,children:[c?q.jsx("input",{type:"checkbox",checked:i,onChange:ue=>{ue.stopPropagation(),o()},onClick:ue=>ue.stopPropagation(),style:{cursor:"pointer"}}):q.jsx("span",{style:{width:"13px",minWidth:"13px"}}),a.type==="delete"?q.jsx("span",{style:{display:"inline-flex",alignItems:"center",width:8,height:8,flexShrink:0},children:q.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#ef4444",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{margin:"-1px"},children:[q.jsx("polyline",{points:"3 6 5 6 21 6"}),q.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})}):q.jsx(GT,{status:a.type==="add"?"added":"modified"}),q.jsx("span",{style:{flex:1,fontSize:"13px"},children:I}),q.jsx("span",{style:{fontSize:"11px",color:"var(--color-text-secondary)",fontFamily:"var(--font-mono)"},children:a.type==="rename"?`${a.oldPath} → ${a.newPath}`:""}),W&&q.jsx("span",{style:{fontSize:"11px",transform:d?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s",color:"var(--color-text-secondary)"},children:"▶"})]}),d&&A&&q.jsx("div",{style:{padding:"var(--spacing-sm) var(--spacing-md)",color:"var(--color-text-secondary)",fontSize:"12px"},children:"Loading diff..."}),d&&N&&q.jsx("div",{style:{padding:"var(--spacing-sm) var(--spacing-md)",color:"var(--color-error)",fontSize:"12px"},children:N}),d&&!A&&!N&&ve.length>0&&q.jsx(XT,{hunks:ve})]})}function tp(a){return`${a.metadataType}::${a.componentName}`}function JT({type:a,files:i,selectedComponents:o,onToggleComponent:c,onToggleAll:r,app:m,workingDir:d,defaultOpen:p}){const y=i.filter(N=>N.type!=="delete"||ta(N.metadataType??"")),g=y.filter(N=>N.metadataType&&N.componentName&&(N.type!=="delete"||ta(N.metadataType))),A=g.length>0&&g.every(N=>o.has(tp({metadataType:N.metadataType,componentName:N.componentName}))),R=q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm)",flex:1},children:[g.length>0&&q.jsx("input",{type:"checkbox",checked:A,onChange:N=>{N.stopPropagation(),r(a,i)},onClick:N=>N.stopPropagation(),style:{cursor:"pointer"}}),q.jsx("span",{style:{fontWeight:600,fontSize:"13px"},children:a}),(()=>{const N=y.filter(ve=>ve.type==="add").length,H=y.filter(ve=>ve.type==="modify"||ve.type==="rename").length,I=y.filter(ve=>ve.type==="delete").length;return[{count:N,color:"#22c55e"},{count:H,color:"#f59e0b"},{count:I,color:"#ef4444"}].filter(ve=>ve.count>0).map((ve,Ye)=>q.jsx("span",{style:{fontSize:"11px",color:"#fff",background:ve.color,borderRadius:"10px",padding:"1px 8px",fontWeight:500},children:ve.count},Ye))})()]});return q.jsx(LT,{header:R,defaultOpen:p??y.length<=10,children:y.map((N,H)=>{const I=!!(N.metadataType&&N.componentName&&(N.type!=="delete"||ta(N.metadataType))),W=I?tp({metadataType:N.metadataType,componentName:N.componentName}):"";return q.jsx($T,{file:N,selected:I&&o.has(W),onToggle:()=>{I&&c({metadataType:N.metadataType,componentName:N.componentName})},selectable:I,app:m,workingDir:d},H)})})}const KT="#3b82f6",IT="#8b5cf6";function np({org:a,label:i,color:o}){return q.jsxs("div",{style:{flex:1,padding:"var(--spacing-sm) var(--spacing-md)",borderRadius:"var(--border-radius-md, 8px)",background:`color-mix(in srgb, ${o} 8%, var(--color-background-primary))`,border:`1px solid color-mix(in srgb, ${o} 30%, var(--color-border))`},children:[q.jsx("div",{style:{fontSize:"10px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",color:o,marginBottom:"4px"},children:i}),q.jsx("div",{style:{fontSize:"13px",fontWeight:500,color:"var(--color-text-primary)"},children:a?.username??"Unknown"}),q.jsx("div",{style:{fontSize:"11px",fontFamily:"var(--font-mono)",color:"var(--color-text-secondary)",marginTop:"2px"},children:a?.orgId??"—"})]})}function WT({sourceOrg:a,targetOrg:i}){return!a&&!i?null:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm)",marginBottom:"var(--spacing-md)"},children:[q.jsx(np,{org:a,label:"Source",color:KT}),q.jsx("span",{style:{color:"var(--color-text-secondary)",fontSize:"20px",flexShrink:0,padding:"0 var(--spacing-xs)"},children:"→"}),q.jsx(np,{org:i,label:"Target",color:IT})]})}function FT({activeTags:a,tagCounts:i,onToggleTag:o}){return q.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px",marginBottom:"var(--spacing-md)"},children:Ys.map(c=>{const r=i[c]||0;if(r===0)return null;const m=a.has(c),d=QT[c];return q.jsxs("button",{onClick:()=>o(c),style:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"3px 10px",borderRadius:"12px",border:`1px solid ${m?d:"var(--color-border)"}`,background:m?`color-mix(in srgb, ${d} 12%, var(--color-background-primary))`:"var(--color-background-primary)",color:m?d:"var(--color-text-secondary)",fontSize:"12px",fontWeight:500,cursor:"pointer",opacity:m?1:.6,transition:"all 0.15s ease"},children:[c,q.jsx("span",{style:{fontWeight:400,opacity:.8},children:r})]},c)})})}function PT({open:a,onClose:i,title:o,children:c}){return a?q.jsx("div",{onClick:i,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,padding:"var(--spacing-lg)"},children:q.jsxs("div",{onClick:r=>r.stopPropagation(),style:{background:"var(--color-background-primary)",borderRadius:"var(--border-radius-md)",border:"1px solid var(--color-border)",maxWidth:"800px",width:"100%",maxHeight:"80vh",display:"flex",flexDirection:"column",overflow:"hidden"},children:[q.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"var(--spacing-md)",borderBottom:"1px solid var(--color-border)"},children:[q.jsx("h3",{style:{margin:0,fontSize:"16px"},children:o}),q.jsx("button",{onClick:i,style:{background:"transparent",color:"var(--color-text-secondary)",padding:"var(--spacing-xs)",fontSize:"18px",lineHeight:1},children:"✕"})]}),q.jsx("div",{style:{overflow:"auto",flex:1,padding:"var(--spacing-md)"},children:c})]})}):null}function e2(a,i="62.0"){const o=new Map;for(const r of a)o.has(r.metadataType)||o.set(r.metadataType,[]),o.get(r.metadataType).push(r.componentName);const c=['<?xml version="1.0" encoding="UTF-8"?>','<Package xmlns="http://soap.sforce.com/2006/04/metadata">'];for(const[r,m]of[...o].sort((d,p)=>d[0].localeCompare(p[0]))){c.push(" <types>");for(const d of m.sort())c.push(` <members>${Zs(d)}</members>`);c.push(` <name>${Zs(r)}</name>`),c.push(" </types>")}return c.push(` <version>${Zs(i)}</version>`),c.push("</Package>"),c.join(`
92
+ `)}function Zs(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function t2({open:a,onClose:i,selectedComponents:o,workingDir:c,app:r}){const[m,d]=Se.useState(!1),p=e2(o),y=async()=>{d(!0);try{await r.callServerTool({name:"salesforce_generate_diff_package",arguments:{workingDir:c,selectedComponents:o}}),await r.sendMessage({role:"user",content:[{type:"text",text:`Please deploy metadata from "${c}/source" to the target org using salesforce_deploy_metadata with sourceDir="${c}/source".`}]}),i()}catch(g){console.error("Deploy failed:",g)}finally{d(!1)}};return q.jsxs(PT,{open:a,onClose:i,title:"Package XML Preview",children:[q.jsx("pre",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",lineHeight:"1.6",background:"var(--color-background-secondary)",padding:"var(--spacing-md)",borderRadius:"var(--border-radius-md)",overflow:"auto",maxHeight:"400px",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:p}),q.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"var(--spacing-sm)",marginTop:"var(--spacing-md)"},children:[q.jsx("button",{onClick:i,style:{background:"transparent",color:"var(--color-text-primary)",border:"1px solid var(--color-border)"},children:"Cancel"}),q.jsx("button",{onClick:y,disabled:m,children:m?"Writing...":"Write Package & Deploy"})]})]})}function n2(a){return Se.useMemo(()=>{if(!a)return[];const i=new Map;for(const o of a.files){const c=o.metadataType||"Other";i.has(c)||i.set(c,[]),i.get(c).push(o)}return[...i.entries()].sort((o,c)=>o[0].localeCompare(c[0])).map(([o,c])=>({type:o,files:c}))},[a])}function Ku(a){return`${a.metadataType}::${a.componentName}`}function a2({diffResult:a,app:i}){const[o,c]=Se.useState(null);Se.useEffect(()=>{let Y=!1;return i.callServerTool({name:"salesforce_metadata_diff_files",arguments:{workingDir:a.workingDir}}).then(oe=>{if(!Y&&oe.content){for(const se of oe.content)if(se.type==="text"&&se.text.startsWith("{"))try{const w=JSON.parse(se.text);if(w.files){c(w.files);return}}catch{}}}).catch(console.error),()=>{Y=!0}},[i,a.workingDir]);const r=Se.useMemo(()=>o?{...a,files:o}:null,[a,o]),m=n2(r),[d,p]=Se.useState(new Set),[y,g]=Se.useState(!1),[A,R]=Se.useState(""),[N,H]=Se.useState(()=>new Set(Ys)),[I,W]=Se.useState(void 0),ve=Se.useCallback(Y=>{p(oe=>{const se=new Set(oe),w=Ku(Y);return se.has(w)?se.delete(w):se.add(w),se})},[]),Ye=Se.useCallback((Y,oe)=>{p(se=>{const w=new Set(se),J=oe.filter(le=>le.metadataType&&le.componentName&&(le.type!=="delete"||ta(le.metadataType))).map(le=>Ku({metadataType:le.metadataType,componentName:le.componentName}));return J.every(le=>w.has(le))?J.forEach(le=>w.delete(le)):J.forEach(le=>w.add(le)),w})},[]),ue=Se.useCallback(Y=>{H(oe=>{const se=new Set(oe);return se.has(Y)?se.delete(Y):se.add(Y),se})},[]),F=Se.useMemo(()=>m.map(Y=>({...Y,files:Y.files.filter(oe=>oe.type!=="delete"||ta(oe.metadataType??""))})).filter(Y=>Y.files.length>0),[m]),ce=Se.useMemo(()=>{const Y={};for(const oe of Ys)Y[oe]=0;for(const oe of F)Y[ep(oe.type)]++;return Y},[F]),xe=Se.useMemo(()=>{let Y=F.filter(oe=>N.has(ep(oe.type)));if(A.trim()){const oe=A.toLowerCase();Y=Y.map(se=>({...se,files:se.files.filter(w=>{const B=(w.componentName||"").toLowerCase(),J=(w.newPath||"").toLowerCase(),Te=(w.oldPath||"").toLowerCase();return B.includes(oe)||J.includes(oe)||Te.includes(oe)})})).filter(se=>se.files.length>0)}return Y},[m,A,N]),lt=Se.useMemo(()=>xe.flatMap(Y=>Y.files).filter(Y=>Y.metadataType&&Y.componentName&&(Y.type!=="delete"||ta(Y.metadataType))),[xe]),te=Se.useMemo(()=>lt.map(Y=>Ku({metadataType:Y.metadataType,componentName:Y.componentName})),[lt]);te.filter(Y=>d.has(Y)).length;const pt=Se.useMemo(()=>F.flatMap(Y=>Y.files).filter(Y=>Y.metadataType&&Y.componentName&&(Y.type!=="delete"||ta(Y.metadataType))).map(Y=>Ku({metadataType:Y.metadataType,componentName:Y.componentName})),[F]),Yt=Se.useCallback(()=>{p(Y=>{const oe=new Set(Y);return te.forEach(se=>oe.add(se)),oe})},[te]),Cn=Se.useCallback(()=>{p(Y=>{const oe=new Set(Y);return te.forEach(se=>oe.delete(se)),oe})},[te]),Gt=[...d].map(Y=>{const[oe,se]=Y.split("::");return{metadataType:oe,componentName:se}});if(a.summary.totalFiles===0)return q.jsx("div",{style:{padding:"var(--spacing-lg)",textAlign:"center",color:"var(--color-text-secondary)"},children:"No differences found between source and target."});if(!o)return q.jsx("div",{style:{padding:"var(--spacing-lg)",textAlign:"center",color:"var(--color-text-secondary)"},children:"Loading files..."});const gt=A.trim().length>0;return q.jsxs("div",{style:{padding:"var(--spacing-md)",paddingBottom:"64px"},children:[q.jsx(WT,{sourceOrg:a.sourceOrg,targetOrg:a.targetOrg}),q.jsx(FT,{activeTags:N,tagCounts:ce,onToggleTag:ue}),q.jsxs("div",{style:{position:"relative",marginBottom:"var(--spacing-md)"},children:[q.jsx("input",{type:"text",placeholder:"Search components...",value:A,onChange:Y=>R(Y.target.value),style:{width:"100%",padding:"var(--spacing-sm)",paddingRight:"28px",border:"1px solid var(--color-border)",borderRadius:"4px",fontSize:"13px",background:"var(--color-background-primary)",color:"var(--color-text-primary)",boxSizing:"border-box"}}),A&&q.jsx("button",{onClick:()=>R(""),style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",color:"var(--color-text-secondary)",fontSize:"16px",padding:"0 2px",lineHeight:1},"aria-label":"Clear search",children:"×"})]}),q.jsxs("div",{style:{display:"flex",gap:"var(--spacing-sm)",marginBottom:"var(--spacing-sm)"},children:[q.jsx("button",{onClick:()=>W(!0),style:{background:"none",border:"none",padding:0,color:"var(--color-text-secondary)",fontSize:"12px",cursor:"pointer"},children:"Expand all"}),q.jsx("span",{style:{color:"var(--color-text-secondary)",fontSize:"12px"},children:"·"}),q.jsx("button",{onClick:()=>W(!1),style:{background:"none",border:"none",padding:0,color:"var(--color-text-secondary)",fontSize:"12px",cursor:"pointer"},children:"Collapse all"})]}),xe.map(Y=>q.jsx(JT,{type:Y.type,files:Y.files,selectedComponents:d,onToggleComponent:ve,onToggleAll:Ye,app:i,workingDir:a.workingDir,defaultOpen:gt?!0:I!==void 0?I:void 0},Y.type)),q.jsxs("div",{style:{position:"fixed",bottom:0,left:0,right:0,padding:"var(--spacing-sm) var(--spacing-md)",background:"var(--color-background-primary)",borderTop:"1px solid var(--color-border)",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:100},children:[q.jsxs("span",{style:{fontSize:"13px",color:"var(--color-text-secondary)"},children:[d.size," of ",pt.length," components selected"," · ",q.jsx("a",{href:"#",onClick:Y=>{Y.preventDefault(),Yt()},style:{color:"var(--color-text-link, #007bff)",textDecoration:"none",cursor:"pointer"},children:"Select All"})," · ",q.jsx("a",{href:"#",onClick:Y=>{Y.preventDefault(),Cn()},style:{color:"var(--color-text-link, #007bff)",textDecoration:"none",cursor:"pointer"},children:"Deselect All"})]}),q.jsx("button",{disabled:d.size===0,onClick:()=>g(!0),children:"Generate Package XML"})]}),q.jsx(t2,{open:y,onClose:()=>g(!1),selectedComponents:Gt,workingDir:a.workingDir,app:i})]})}function l2(a){if(!a.content)return null;for(const i of a.content)if(i.type==="text"&&i.text.startsWith("{"))try{return JSON.parse(i.text)}catch{continue}return null}function i2(){const[a,i]=Se.useState(null),{app:o,error:c}=BT({appInfo:{name:"Metadata Diff",version:"1.0.0"},capabilities:{},onAppCreated:r=>{r.ontoolresult=async m=>{const d=l2(m);d&&i(d)},r.onerror=console.error}});return c?q.jsxs("div",{style:{padding:"var(--spacing-md)",color:"#ef4444"},children:["Connection error: ",c.message]}):o?a?q.jsx(a2,{diffResult:a,app:o}):q.jsx("div",{style:{padding:"var(--spacing-lg)",textAlign:"center",color:"var(--color-text-secondary)"},children:"Waiting for diff results..."}):q.jsx("div",{style:{padding:"var(--spacing-md)",color:"var(--color-text-secondary)"},children:"Connecting..."})}Hv.createRoot(document.getElementById("root")).render(q.jsx(Se.StrictMode,{children:q.jsx(i2,{})}));</script>
93
+ <style rel="stylesheet" crossorigin>:root{--color-text-primary: light-dark(#1a1a2e, #e0e0e0);--color-text-secondary: light-dark(#6b7280, #9ca3af);--color-background-primary: light-dark(#ffffff, #1a1a2e);--color-background-secondary: light-dark(#f3f4f6, #2a2a3e);--color-border: light-dark(#e5e7eb, #374151);--color-accent: light-dark(#3b82f6, #60a5fa);--color-text-on-accent: #ffffff;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--border-radius-md: 8px;color-scheme:light dark}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);color:var(--color-text-primary);background:var(--color-background-primary);line-height:1.5;font-size:14px}button{font-family:inherit;font-size:inherit;cursor:pointer;border:none;border-radius:var(--border-radius-md);padding:var(--spacing-sm) var(--spacing-md);background:var(--color-accent);color:var(--color-text-on-accent);font-weight:500;transition:opacity .15s}button:hover{opacity:.9}button:disabled{opacity:.5;cursor:not-allowed}</style>
94
+ </head>
95
+ <body>
96
+ <div id="root"></div>
97
+ </body>
98
+ </html>