@botpress/webchat 0.5.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/App.d.ts +10 -0
  2. package/dist/Utils/colors.d.ts +18 -0
  3. package/dist/Utils/eventEmitter.d.ts +12 -0
  4. package/dist/Utils/index.d.ts +2 -0
  5. package/dist/client/MessagingClient.d.ts +27 -0
  6. package/dist/client/adapters/Audio.d.ts +19 -0
  7. package/dist/client/adapters/Card.d.ts +188 -0
  8. package/dist/client/adapters/Carousel.d.ts +147 -0
  9. package/dist/client/adapters/Choice.d.ts +45 -0
  10. package/dist/client/adapters/Dropdown.d.ts +46 -0
  11. package/dist/client/adapters/File.d.ts +19 -0
  12. package/dist/client/adapters/Image.d.ts +19 -0
  13. package/dist/client/adapters/Location.d.ts +27 -0
  14. package/dist/client/adapters/Message.d.ts +433 -0
  15. package/dist/client/adapters/Text.d.ts +20 -0
  16. package/dist/client/adapters/Utils.d.ts +5 -0
  17. package/dist/client/adapters/Video.d.ts +19 -0
  18. package/dist/client/adapters/Voice.d.ts +15 -0
  19. package/dist/client/adapters/index.d.ts +12 -0
  20. package/dist/client/index.d.ts +2 -0
  21. package/dist/components/Avatar.d.ts +6 -0
  22. package/dist/components/Block.d.ts +4 -0
  23. package/dist/components/Composer.d.ts +12 -14
  24. package/dist/components/Container.d.ts +2 -12
  25. package/dist/components/Header.d.ts +36 -26
  26. package/dist/components/LoadingIndicator.d.ts +2 -0
  27. package/dist/components/Message.d.ts +7 -0
  28. package/dist/components/MessageList.d.ts +2 -0
  29. package/dist/components/Modal.d.ts +17 -0
  30. package/dist/components/RestartConversation.d.ts +5 -0
  31. package/dist/components/Webchat.d.ts +6 -0
  32. package/dist/components/dev-tools/DevTools.d.ts +1 -0
  33. package/dist/components/dev-tools/configuration.d.ts +2 -0
  34. package/dist/components/dev-tools/helpers.d.ts +5 -0
  35. package/dist/components/index.d.ts +12 -0
  36. package/dist/components/renderers/Audio.d.ts +3 -0
  37. package/dist/components/renderers/Bubble.d.ts +5 -0
  38. package/dist/components/renderers/Button.d.ts +4 -0
  39. package/dist/components/renderers/Carousel.d.ts +3 -0
  40. package/dist/components/renderers/Column.d.ts +5 -0
  41. package/dist/components/renderers/Dropdown.d.ts +5 -0
  42. package/dist/components/renderers/File.d.ts +3 -0
  43. package/dist/components/renderers/Image.d.ts +3 -0
  44. package/dist/components/renderers/Location.d.ts +3 -0
  45. package/dist/components/renderers/Row.d.ts +5 -0
  46. package/dist/components/renderers/Text.d.ts +4 -0
  47. package/dist/components/renderers/Video.d.ts +3 -0
  48. package/dist/components/renderers/index.d.ts +2 -0
  49. package/dist/contexts/ComposerContext.d.ts +8 -0
  50. package/dist/contexts/MessageContext.d.ts +8 -0
  51. package/dist/contexts/ModalContext.d.ts +14 -0
  52. package/dist/contexts/WebchatContext.d.ts +56 -0
  53. package/dist/contexts/index.d.ts +4 -0
  54. package/dist/hooks/index.d.ts +3 -0
  55. package/dist/hooks/useImageSize.d.ts +2 -0
  56. package/dist/hooks/useRefresh.d.ts +10 -0
  57. package/dist/hooks/useWebchatStore.d.ts +30 -0
  58. package/dist/index.d.ts +3 -17
  59. package/dist/index.js +43569 -48
  60. package/dist/index.umd.cjs +702 -0
  61. package/dist/main.d.ts +11 -13
  62. package/dist/providers/ModalProvider.d.ts +8 -0
  63. package/dist/providers/WebchatProvider.d.ts +13 -0
  64. package/dist/providers/index.d.ts +2 -0
  65. package/dist/schemas/index.d.ts +1 -0
  66. package/dist/schemas/theme.d.ts +3371 -0
  67. package/dist/services/clipboard.d.ts +1 -0
  68. package/dist/services/images.d.ts +2 -0
  69. package/dist/services/index.d.ts +3 -0
  70. package/dist/services/toast.d.ts +17 -0
  71. package/dist/themes/dawn.d.ts +2 -0
  72. package/dist/themes/duskTheme.d.ts +2 -0
  73. package/dist/themes/eggplant.d.ts +2 -0
  74. package/dist/themes/galaxy.d.ts +2 -0
  75. package/dist/themes/index.d.ts +6 -0
  76. package/dist/themes/midnight.d.ts +2 -0
  77. package/dist/themes/prism.d.ts +2 -0
  78. package/dist/twind.config.d.ts +9 -0
  79. package/dist/types/block-type.d.ts +93 -0
  80. package/dist/types/image.d.ts +11 -0
  81. package/dist/types/index.d.ts +2 -0
  82. package/package.json +61 -49
  83. package/README.md +0 -41
  84. package/assets/fonts/roboto/roboto.woff2 +0 -0
  85. package/assets/fonts/roboto/roboto500.woff2 +0 -0
  86. package/assets/fonts/roboto.css +0 -128
  87. package/assets/notification.mp3 +0 -0
  88. package/dist/components/Composer.js +0 -118
  89. package/dist/components/Container.js +0 -62
  90. package/dist/components/ConversationList.d.ts +0 -10
  91. package/dist/components/ConversationList.js +0 -41
  92. package/dist/components/Footer.d.ts +0 -3
  93. package/dist/components/Footer.js +0 -21
  94. package/dist/components/Header.js +0 -181
  95. package/dist/components/VoiceRecorder.d.ts +0 -10
  96. package/dist/components/VoiceRecorder.js +0 -137
  97. package/dist/components/common/Avatar/index.d.ts +0 -9
  98. package/dist/components/common/Avatar/index.js +0 -13
  99. package/dist/components/common/BotInfo/index.d.ts +0 -10
  100. package/dist/components/common/BotInfo/index.js +0 -107
  101. package/dist/components/common/BotInfo/style.scss +0 -88
  102. package/dist/components/common/ConfirmDialog/index.d.ts +0 -11
  103. package/dist/components/common/ConfirmDialog/index.js +0 -78
  104. package/dist/components/common/ConfirmDialog/style.module.scss +0 -48
  105. package/dist/components/common/Dialog/index.d.ts +0 -17
  106. package/dist/components/common/Dialog/index.js +0 -57
  107. package/dist/components/common/Dialog/style.module.scss +0 -29
  108. package/dist/components/common/ToolTip/index.d.ts +0 -10
  109. package/dist/components/common/ToolTip/index.js +0 -163
  110. package/dist/components/common/ToolTip/style.module.scss +0 -108
  111. package/dist/components/common/ToolTip/utils.d.ts +0 -15
  112. package/dist/components/common/ToolTip/utils.js +0 -78
  113. package/dist/components/common/variables.scss +0 -38
  114. package/dist/components/messages/InlineFeedback.d.ts +0 -11
  115. package/dist/components/messages/InlineFeedback.js +0 -56
  116. package/dist/components/messages/Message.d.ts +0 -11
  117. package/dist/components/messages/Message.js +0 -106
  118. package/dist/components/messages/MessageGroup.d.ts +0 -23
  119. package/dist/components/messages/MessageGroup.js +0 -63
  120. package/dist/components/messages/MessageList.d.ts +0 -10
  121. package/dist/components/messages/MessageList.js +0 -148
  122. package/dist/core/api.d.ts +0 -23
  123. package/dist/core/api.js +0 -117
  124. package/dist/core/constants.d.ts +0 -14
  125. package/dist/core/constants.js +0 -29
  126. package/dist/core/socket.d.ts +0 -14
  127. package/dist/core/socket.js +0 -57
  128. package/dist/declaration.d.ts +0 -2
  129. package/dist/declaration.js +0 -1
  130. package/dist/fonts/roboto.d.ts +0 -4
  131. package/dist/fonts/roboto.js +0 -9
  132. package/dist/globals.d.ts +0 -7
  133. package/dist/globals.js +0 -2
  134. package/dist/icons/Add.d.ts +0 -6
  135. package/dist/icons/Add.js +0 -10
  136. package/dist/icons/Cancel.d.ts +0 -5
  137. package/dist/icons/Cancel.js +0 -10
  138. package/dist/icons/Chat.d.ts +0 -6
  139. package/dist/icons/Chat.js +0 -9
  140. package/dist/icons/Close.d.ts +0 -3
  141. package/dist/icons/Close.js +0 -10
  142. package/dist/icons/Delete.d.ts +0 -3
  143. package/dist/icons/Delete.js +0 -11
  144. package/dist/icons/Download.d.ts +0 -3
  145. package/dist/icons/Download.js +0 -10
  146. package/dist/icons/Email.d.ts +0 -3
  147. package/dist/icons/Email.js +0 -8
  148. package/dist/icons/Information.d.ts +0 -3
  149. package/dist/icons/Information.js +0 -12
  150. package/dist/icons/List.d.ts +0 -3
  151. package/dist/icons/List.js +0 -15
  152. package/dist/icons/Microphone.d.ts +0 -5
  153. package/dist/icons/Microphone.js +0 -12
  154. package/dist/icons/Phone.d.ts +0 -3
  155. package/dist/icons/Phone.js +0 -8
  156. package/dist/icons/Reload.d.ts +0 -3
  157. package/dist/icons/Reload.js +0 -10
  158. package/dist/icons/ThumbsDown.d.ts +0 -3
  159. package/dist/icons/ThumbsDown.js +0 -11
  160. package/dist/icons/ThumbsUp.d.ts +0 -3
  161. package/dist/icons/ThumbsUp.js +0 -11
  162. package/dist/icons/Website.d.ts +0 -3
  163. package/dist/icons/Website.js +0 -8
  164. package/dist/main.js +0 -336
  165. package/dist/store/composer.d.ts +0 -17
  166. package/dist/store/composer.js +0 -98
  167. package/dist/store/index.d.ts +0 -89
  168. package/dist/store/index.js +0 -604
  169. package/dist/store/view.d.ts +0 -61
  170. package/dist/store/view.js +0 -365
  171. package/dist/translations/ar.json +0 -30
  172. package/dist/translations/de.json +0 -32
  173. package/dist/translations/en.json +0 -40
  174. package/dist/translations/es.json +0 -19
  175. package/dist/translations/fr.json +0 -40
  176. package/dist/translations/index.d.ts +0 -9
  177. package/dist/translations/index.js +0 -95
  178. package/dist/translations/it.json +0 -38
  179. package/dist/translations/pt.json +0 -19
  180. package/dist/translations/ru.json +0 -24
  181. package/dist/translations/uk.json +0 -24
  182. package/dist/typings.d.ts +0 -410
  183. package/dist/typings.js +0 -2
  184. package/dist/utils/analytics.d.ts +0 -5
  185. package/dist/utils/analytics.js +0 -37
  186. package/dist/utils/index.d.ts +0 -3
  187. package/dist/utils/index.js +0 -27
  188. package/dist/utils/storage.d.ts +0 -16
  189. package/dist/utils/storage.js +0 -129
  190. package/dist/utils/webchatEvents.d.ts +0 -2
  191. package/dist/utils/webchatEvents.js +0 -14
@@ -0,0 +1,702 @@
1
+ (function(pn,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(pn=typeof globalThis<"u"?globalThis:pn||self,j(pn.Webchat={},pn.React))})(this,function(pn,j){"use strict";var VY=Object.defineProperty;var HY=(pn,j,bc)=>j in pn?VY(pn,j,{enumerable:!0,configurable:!0,writable:!0,value:bc}):pn[j]=bc;var t6=(pn,j,bc)=>(HY(pn,typeof j!="symbol"?j+"":j,bc),bc);function bc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const Y=bc(j);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n6(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function a(){if(this instanceof a){var s=[null];s.push.apply(s,arguments);var c=Function.bind.apply(n,s);return new c}return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var pS={exports:{}},kh={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var rk;function r6(){if(rk)return kh;rk=1;var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(h,v,y){var S,E={},C=null,x=null;y!==void 0&&(C=""+y),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(x=v.ref);for(S in v)a.call(v,S)&&!c.hasOwnProperty(S)&&(E[S]=v[S]);if(h&&h.defaultProps)for(S in v=h.defaultProps,v)E[S]===void 0&&(E[S]=v[S]);return{$$typeof:n,type:h,key:C,ref:x,props:E,_owner:s.current}}return kh.Fragment=r,kh.jsx=f,kh.jsxs=f,kh}var _h={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ik;function i6(){return ik||(ik=1,process.env.NODE_ENV!=="production"&&function(){var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=Symbol.iterator,T="@@iterator";function D(W){if(W===null||typeof W!="object")return null;var Pe=R&&W[R]||W[T];return typeof Pe=="function"?Pe:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(W){{for(var Pe=arguments.length,Ke=new Array(Pe>1?Pe-1:0),St=1;St<Pe;St++)Ke[St-1]=arguments[St];N("error",W,Ke)}}function N(W,Pe,Ke){{var St=M.ReactDebugCurrentFrame,Bt=St.getStackAddendum();Bt!==""&&(Pe+="%s",Ke=Ke.concat([Bt]));var ln=Ke.map(function(Vt){return String(Vt)});ln.unshift("Warning: "+Pe),Function.prototype.apply.call(console[W],console,ln)}}var V=!1,I=!1,$=!1,H=!1,Z=!1,ne;ne=Symbol.for("react.module.reference");function ve(W){return!!(typeof W=="string"||typeof W=="function"||W===a||W===c||Z||W===s||W===y||W===S||H||W===x||V||I||$||typeof W=="object"&&W!==null&&(W.$$typeof===C||W.$$typeof===E||W.$$typeof===f||W.$$typeof===h||W.$$typeof===v||W.$$typeof===ne||W.getModuleId!==void 0))}function ee(W,Pe,Ke){var St=W.displayName;if(St)return St;var Bt=Pe.displayName||Pe.name||"";return Bt!==""?Ke+"("+Bt+")":Ke}function oe(W){return W.displayName||"Context"}function J(W){if(W==null)return null;if(typeof W.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case a:return"Fragment";case r:return"Portal";case c:return"Profiler";case s:return"StrictMode";case y:return"Suspense";case S:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case h:var Pe=W;return oe(Pe)+".Consumer";case f:var Ke=W;return oe(Ke._context)+".Provider";case v:return ee(W,W.render,"ForwardRef");case E:var St=W.displayName||null;return St!==null?St:J(W.type)||"Memo";case C:{var Bt=W,ln=Bt._payload,Vt=Bt._init;try{return J(Vt(ln))}catch{return null}}}return null}var pe=Object.assign,ke=0,xe,Ie,se,Te,L,te,ye;function U(){}U.__reactDisabledLog=!0;function _e(){{if(ke===0){xe=console.log,Ie=console.info,se=console.warn,Te=console.error,L=console.group,te=console.groupCollapsed,ye=console.groupEnd;var W={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}ke++}}function We(){{if(ke--,ke===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},W,{value:xe}),info:pe({},W,{value:Ie}),warn:pe({},W,{value:se}),error:pe({},W,{value:Te}),group:pe({},W,{value:L}),groupCollapsed:pe({},W,{value:te}),groupEnd:pe({},W,{value:ye})})}ke<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=M.ReactCurrentDispatcher,Oe;function $e(W,Pe,Ke){{if(Oe===void 0)try{throw Error()}catch(Bt){var St=Bt.stack.trim().match(/\n( *(at )?)/);Oe=St&&St[1]||""}return`
18
+ `+Oe+W}}var Ge=!1,Ue;{var Le=typeof WeakMap=="function"?WeakMap:Map;Ue=new Le}function me(W,Pe){if(!W||Ge)return"";{var Ke=Ue.get(W);if(Ke!==void 0)return Ke}var St;Ge=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ln;ln=Re.current,Re.current=null,_e();try{if(Pe){var Vt=function(){throw Error()};if(Object.defineProperty(Vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Vt,[])}catch(un){St=un}Reflect.construct(W,[],Vt)}else{try{Vt.call()}catch(un){St=un}W.call(Vt.prototype)}}else{try{throw Error()}catch(un){St=un}W()}}catch(un){if(un&&St&&typeof un.stack=="string"){for(var xt=un.stack.split(`
19
+ `),Dr=St.stack.split(`
20
+ `),Un=xt.length-1,Bn=Dr.length-1;Un>=1&&Bn>=0&&xt[Un]!==Dr[Bn];)Bn--;for(;Un>=1&&Bn>=0;Un--,Bn--)if(xt[Un]!==Dr[Bn]){if(Un!==1||Bn!==1)do if(Un--,Bn--,Bn<0||xt[Un]!==Dr[Bn]){var ci=`
21
+ `+xt[Un].replace(" at new "," at ");return W.displayName&&ci.includes("<anonymous>")&&(ci=ci.replace("<anonymous>",W.displayName)),typeof W=="function"&&Ue.set(W,ci),ci}while(Un>=1&&Bn>=0);break}}}finally{Ge=!1,Re.current=ln,We(),Error.prepareStackTrace=Bt}var fl=W?W.displayName||W.name:"",Ad=fl?$e(fl):"";return typeof W=="function"&&Ue.set(W,Ad),Ad}function ze(W,Pe,Ke){return me(W,!1)}function be(W){var Pe=W.prototype;return!!(Pe&&Pe.isReactComponent)}function ht(W,Pe,Ke){if(W==null)return"";if(typeof W=="function")return me(W,be(W));if(typeof W=="string")return $e(W);switch(W){case y:return $e("Suspense");case S:return $e("SuspenseList")}if(typeof W=="object")switch(W.$$typeof){case v:return ze(W.render);case E:return ht(W.type,Pe,Ke);case C:{var St=W,Bt=St._payload,ln=St._init;try{return ht(ln(Bt),Pe,Ke)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,Rt={},Gt=M.ReactDebugCurrentFrame;function Tn(W){if(W){var Pe=W._owner,Ke=ht(W.type,W._source,Pe?Pe.type:null);Gt.setExtraStackFrame(Ke)}else Gt.setExtraStackFrame(null)}function ar(W,Pe,Ke,St,Bt){{var ln=Function.call.bind(He);for(var Vt in W)if(ln(W,Vt)){var xt=void 0;try{if(typeof W[Vt]!="function"){var Dr=Error((St||"React class")+": "+Ke+" type `"+Vt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[Vt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Dr.name="Invariant Violation",Dr}xt=W[Vt](Pe,Vt,St,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Un){xt=Un}xt&&!(xt instanceof Error)&&(Tn(Bt),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",St||"React class",Ke,Vt,typeof xt),Tn(null)),xt instanceof Error&&!(xt.message in Rt)&&(Rt[xt.message]=!0,Tn(Bt),F("Failed %s type: %s",Ke,xt.message),Tn(null))}}}var or=Array.isArray;function dr(W){return or(W)}function Jn(W){{var Pe=typeof Symbol=="function"&&Symbol.toStringTag,Ke=Pe&&W[Symbol.toStringTag]||W.constructor.name||"Object";return Ke}}function pr(W){try{return Yn(W),!1}catch{return!0}}function Yn(W){return""+W}function Ln(W){if(pr(W))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Jn(W)),Yn(W)}var fe=M.ReactCurrentOwner,Ne={key:!0,ref:!0,__self:!0,__source:!0},mt,qt,De;De={};function it(W){if(He.call(W,"ref")){var Pe=Object.getOwnPropertyDescriptor(W,"ref").get;if(Pe&&Pe.isReactWarning)return!1}return W.ref!==void 0}function Ot(W){if(He.call(W,"key")){var Pe=Object.getOwnPropertyDescriptor(W,"key").get;if(Pe&&Pe.isReactWarning)return!1}return W.key!==void 0}function Yt(W,Pe){if(typeof W.ref=="string"&&fe.current&&Pe&&fe.current.stateNode!==Pe){var Ke=J(fe.current.type);De[Ke]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',J(fe.current.type),W.ref),De[Ke]=!0)}}function yn(W,Pe){{var Ke=function(){mt||(mt=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Pe))};Ke.isReactWarning=!0,Object.defineProperty(W,"key",{get:Ke,configurable:!0})}}function $n(W,Pe){{var Ke=function(){qt||(qt=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Pe))};Ke.isReactWarning=!0,Object.defineProperty(W,"ref",{get:Ke,configurable:!0})}}var It=function(W,Pe,Ke,St,Bt,ln,Vt){var xt={$$typeof:n,type:W,key:Pe,ref:Ke,props:Vt,_owner:ln};return xt._store={},Object.defineProperty(xt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:St}),Object.defineProperty(xt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.freeze&&(Object.freeze(xt.props),Object.freeze(xt)),xt};function Or(W,Pe,Ke,St,Bt){{var ln,Vt={},xt=null,Dr=null;Ke!==void 0&&(Ln(Ke),xt=""+Ke),Ot(Pe)&&(Ln(Pe.key),xt=""+Pe.key),it(Pe)&&(Dr=Pe.ref,Yt(Pe,Bt));for(ln in Pe)He.call(Pe,ln)&&!Ne.hasOwnProperty(ln)&&(Vt[ln]=Pe[ln]);if(W&&W.defaultProps){var Un=W.defaultProps;for(ln in Un)Vt[ln]===void 0&&(Vt[ln]=Un[ln])}if(xt||Dr){var Bn=typeof W=="function"?W.displayName||W.name||"Unknown":W;xt&&yn(Vt,Bn),Dr&&$n(Vt,Bn)}return It(W,xt,Dr,Bt,St,fe.current,Vt)}}var tn=M.ReactCurrentOwner,$i=M.ReactDebugCurrentFrame;function Rn(W){if(W){var Pe=W._owner,Ke=ht(W.type,W._source,Pe?Pe.type:null);$i.setExtraStackFrame(Ke)}else $i.setExtraStackFrame(null)}var Mn;Mn=!1;function gu(W){return typeof W=="object"&&W!==null&&W.$$typeof===n}function is(){{if(tn.current){var W=J(tn.current.type);if(W)return`
22
+
23
+ Check the render method of \``+W+"`."}return""}}function yu(W){{if(W!==void 0){var Pe=W.fileName.replace(/^.*[\\\/]/,""),Ke=W.lineNumber;return`
24
+
25
+ Check your code at `+Pe+":"+Ke+"."}return""}}var Uc={};function Dd(W){{var Pe=is();if(!Pe){var Ke=typeof W=="string"?W:W.displayName||W.name;Ke&&(Pe=`
26
+
27
+ Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var Ke=Dd(Pe);if(Uc[Ke])return;Uc[Ke]=!0;var St="";W&&W._owner&&W._owner!==tn.current&&(St=" It was passed a child from "+J(W._owner.type)+"."),Rn(W),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,St),Rn(null)}}function bu(W,Pe){{if(typeof W!="object")return;if(dr(W))for(var Ke=0;Ke<W.length;Ke++){var St=W[Ke];gu(St)&&as(St,Pe)}else if(gu(W))W._store&&(W._store.validated=!0);else if(W){var Bt=D(W);if(typeof Bt=="function"&&Bt!==W.entries)for(var ln=Bt.call(W),Vt;!(Vt=ln.next()).done;)gu(Vt.value)&&as(Vt.value,Pe)}}}function os(W){{var Pe=W.type;if(Pe==null||typeof Pe=="string")return;var Ke;if(typeof Pe=="function")Ke=Pe.propTypes;else if(typeof Pe=="object"&&(Pe.$$typeof===v||Pe.$$typeof===E))Ke=Pe.propTypes;else return;if(Ke){var St=J(Pe);ar(Ke,W.props,"prop",St,W)}else if(Pe.PropTypes!==void 0&&!Mn){Mn=!0;var Bt=J(Pe);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Pe.getDefaultProps=="function"&&!Pe.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Su(W){{for(var Pe=Object.keys(W.props),Ke=0;Ke<Pe.length;Ke++){var St=Pe[Ke];if(St!=="children"&&St!=="key"){Rn(W),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",St),Rn(null);break}}W.ref!==null&&(Rn(W),F("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}function no(W,Pe,Ke,St,Bt,ln){{var Vt=ve(W);if(!Vt){var xt="";(W===void 0||typeof W=="object"&&W!==null&&Object.keys(W).length===0)&&(xt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Dr=yu(Bt);Dr?xt+=Dr:xt+=is();var Un;W===null?Un="null":dr(W)?Un="array":W!==void 0&&W.$$typeof===n?(Un="<"+(J(W.type)||"Unknown")+" />",xt=" Did you accidentally export a JSX literal instead of a component?"):Un=typeof W,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Un,xt)}var Bn=Or(W,Pe,Ke,Bt,ln);if(Bn==null)return Bn;if(Vt){var ci=Pe.children;if(ci!==void 0)if(St)if(dr(ci)){for(var fl=0;fl<ci.length;fl++)bu(ci[fl],W);Object.freeze&&Object.freeze(ci)}else F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bu(ci,W)}return W===a?Su(Bn):os(Bn),Bn}}function ul(W,Pe,Ke){return no(W,Pe,Ke,!0)}function Ui(W,Pe,Ke){return no(W,Pe,Ke,!1)}var Ia=Ui,cl=ul;_h.Fragment=a,_h.jsx=Ia,_h.jsxs=cl}()),_h}process.env.NODE_ENV==="production"?pS.exports=r6():pS.exports=i6();var he=pS.exports;function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Xn.apply(this,arguments)}function hS(e,n=[]){let r=[];function a(c,f){const h=j.createContext(f),v=r.length;r=[...r,f];function y(E){const{scope:C,children:x,...R}=E,T=(C==null?void 0:C[e][v])||h,D=j.useMemo(()=>R,Object.values(R));return j.createElement(T.Provider,{value:D},x)}function S(E,C){const x=(C==null?void 0:C[e][v])||h,R=j.useContext(x);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${E}\` must be used within \`${c}\``)}return y.displayName=c+"Provider",[y,S]}const s=()=>{const c=r.map(f=>j.createContext(f));return function(h){const v=(h==null?void 0:h[e])||c;return j.useMemo(()=>({[`__scope${e}`]:{...h,[e]:v}}),[h,v])}};return s.scopeName=e,[a,a6(s,...n)]}function a6(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=a.reduce((h,{useScope:v,scopeName:y})=>{const E=v(c)[`__scope${y}`];return{...h,...E}},{});return j.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}function Gs(e){const n=j.useRef(e);return j.useEffect(()=>{n.current=e}),j.useMemo(()=>(...r)=>{var a;return(a=n.current)===null||a===void 0?void 0:a.call(n,...r)},[])}const Th=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{};var mS={exports:{}},ea={},M0={exports:{}},vS={};/**
28
+ * @license React
29
+ * scheduler.production.min.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */var ak;function o6(){return ak||(ak=1,function(e){function n(se,Te){var L=se.length;se.push(Te);e:for(;0<L;){var te=L-1>>>1,ye=se[te];if(0<s(ye,Te))se[te]=Te,se[L]=ye,L=te;else break e}}function r(se){return se.length===0?null:se[0]}function a(se){if(se.length===0)return null;var Te=se[0],L=se.pop();if(L!==Te){se[0]=L;e:for(var te=0,ye=se.length,U=ye>>>1;te<U;){var _e=2*(te+1)-1,We=se[_e],Re=_e+1,Oe=se[Re];if(0>s(We,L))Re<ye&&0>s(Oe,We)?(se[te]=Oe,se[Re]=L,te=Re):(se[te]=We,se[_e]=L,te=_e);else if(Re<ye&&0>s(Oe,L))se[te]=Oe,se[Re]=L,te=Re;else break e}}return Te}function s(se,Te){var L=se.sortIndex-Te.sortIndex;return L!==0?L:se.id-Te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var v=[],y=[],S=1,E=null,C=3,x=!1,R=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(se){for(var Te=r(y);Te!==null;){if(Te.callback===null)a(y);else if(Te.startTime<=se)a(y),Te.sortIndex=Te.expirationTime,n(v,Te);else break;Te=r(y)}}function V(se){if(T=!1,N(se),!R)if(r(v)!==null)R=!0,xe(I);else{var Te=r(y);Te!==null&&Ie(V,Te.startTime-se)}}function I(se,Te){R=!1,T&&(T=!1,M(Z),Z=-1),x=!0;var L=C;try{for(N(Te),E=r(v);E!==null&&(!(E.expirationTime>Te)||se&&!ee());){var te=E.callback;if(typeof te=="function"){E.callback=null,C=E.priorityLevel;var ye=te(E.expirationTime<=Te);Te=e.unstable_now(),typeof ye=="function"?E.callback=ye:E===r(v)&&a(v),N(Te)}else a(v);E=r(v)}if(E!==null)var U=!0;else{var _e=r(y);_e!==null&&Ie(V,_e.startTime-Te),U=!1}return U}finally{E=null,C=L,x=!1}}var $=!1,H=null,Z=-1,ne=5,ve=-1;function ee(){return!(e.unstable_now()-ve<ne)}function oe(){if(H!==null){var se=e.unstable_now();ve=se;var Te=!0;try{Te=H(!0,se)}finally{Te?J():($=!1,H=null)}}else $=!1}var J;if(typeof F=="function")J=function(){F(oe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ke=pe.port2;pe.port1.onmessage=oe,J=function(){ke.postMessage(null)}}else J=function(){D(oe,0)};function xe(se){H=se,$||($=!0,J())}function Ie(se,Te){Z=D(function(){se(e.unstable_now())},Te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(se){se.callback=null},e.unstable_continueExecution=function(){R||x||(R=!0,xe(I))},e.unstable_forceFrameRate=function(se){0>se||125<se?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<se?Math.floor(1e3/se):5},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_getFirstCallbackNode=function(){return r(v)},e.unstable_next=function(se){switch(C){case 1:case 2:case 3:var Te=3;break;default:Te=C}var L=C;C=Te;try{return se()}finally{C=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(se,Te){switch(se){case 1:case 2:case 3:case 4:case 5:break;default:se=3}var L=C;C=se;try{return Te()}finally{C=L}},e.unstable_scheduleCallback=function(se,Te,L){var te=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?te+L:te):L=te,se){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=L+ye,se={id:S++,callback:Te,priorityLevel:se,startTime:L,expirationTime:ye,sortIndex:-1},L>te?(se.sortIndex=L,n(y,se),r(v)===null&&se===r(y)&&(T?(M(Z),Z=-1):T=!0,Ie(V,L-te))):(se.sortIndex=ye,n(v,se),R||x||(R=!0,xe(I))),se},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(se){var Te=C;return function(){var L=C;C=Te;try{return se.apply(this,arguments)}finally{C=L}}}}(vS)),vS}var gS={};/**
36
+ * @license React
37
+ * scheduler.development.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */var ok;function l6(){return ok||(ok=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=!1,r=!1,a=5;function s(De,it){var Ot=De.length;De.push(it),h(De,it,Ot)}function c(De){return De.length===0?null:De[0]}function f(De){if(De.length===0)return null;var it=De[0],Ot=De.pop();return Ot!==it&&(De[0]=Ot,v(De,Ot,0)),it}function h(De,it,Ot){for(var Yt=Ot;Yt>0;){var yn=Yt-1>>>1,$n=De[yn];if(y($n,it)>0)De[yn]=it,De[Yt]=$n,Yt=yn;else return}}function v(De,it,Ot){for(var Yt=Ot,yn=De.length,$n=yn>>>1;Yt<$n;){var It=(Yt+1)*2-1,Or=De[It],tn=It+1,$i=De[tn];if(y(Or,it)<0)tn<yn&&y($i,Or)<0?(De[Yt]=$i,De[tn]=it,Yt=tn):(De[Yt]=Or,De[It]=it,Yt=It);else if(tn<yn&&y($i,it)<0)De[Yt]=$i,De[tn]=it,Yt=tn;else return}}function y(De,it){var Ot=De.sortIndex-it.sortIndex;return Ot!==0?Ot:De.id-it.id}var S=1,E=2,C=3,x=4,R=5;function T(De,it){}var D=typeof performance=="object"&&typeof performance.now=="function";if(D){var M=performance;e.unstable_now=function(){return M.now()}}else{var F=Date,N=F.now();e.unstable_now=function(){return F.now()-N}}var V=1073741823,I=-1,$=250,H=5e3,Z=1e4,ne=V,ve=[],ee=[],oe=1,J=null,pe=C,ke=!1,xe=!1,Ie=!1,se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function te(De){for(var it=c(ee);it!==null;){if(it.callback===null)f(ee);else if(it.startTime<=De)f(ee),it.sortIndex=it.expirationTime,s(ve,it);else return;it=c(ee)}}function ye(De){if(Ie=!1,te(De),!xe)if(c(ve)!==null)xe=!0,Ln(U);else{var it=c(ee);it!==null&&fe(ye,it.startTime-De)}}function U(De,it){xe=!1,Ie&&(Ie=!1,Ne()),ke=!0;var Ot=pe;try{var Yt;if(!r)return _e(De,it)}finally{J=null,pe=Ot,ke=!1}}function _e(De,it){var Ot=it;for(te(Ot),J=c(ve);J!==null&&!n&&!(J.expirationTime>Ot&&(!De||Tn()));){var Yt=J.callback;if(typeof Yt=="function"){J.callback=null,pe=J.priorityLevel;var yn=J.expirationTime<=Ot,$n=Yt(yn);Ot=e.unstable_now(),typeof $n=="function"?J.callback=$n:J===c(ve)&&f(ve),te(Ot)}else f(ve);J=c(ve)}if(J!==null)return!0;var It=c(ee);return It!==null&&fe(ye,It.startTime-Ot),!1}function We(De,it){switch(De){case S:case E:case C:case x:case R:break;default:De=C}var Ot=pe;pe=De;try{return it()}finally{pe=Ot}}function Re(De){var it;switch(pe){case S:case E:case C:it=C;break;default:it=pe;break}var Ot=pe;pe=it;try{return De()}finally{pe=Ot}}function Oe(De){var it=pe;return function(){var Ot=pe;pe=it;try{return De.apply(this,arguments)}finally{pe=Ot}}}function $e(De,it,Ot){var Yt=e.unstable_now(),yn;if(typeof Ot=="object"&&Ot!==null){var $n=Ot.delay;typeof $n=="number"&&$n>0?yn=Yt+$n:yn=Yt}else yn=Yt;var It;switch(De){case S:It=I;break;case E:It=$;break;case R:It=ne;break;case x:It=Z;break;case C:default:It=H;break}var Or=yn+It,tn={id:oe++,callback:it,priorityLevel:De,startTime:yn,expirationTime:Or,sortIndex:-1};return yn>Yt?(tn.sortIndex=yn,s(ee,tn),c(ve)===null&&tn===c(ee)&&(Ie?Ne():Ie=!0,fe(ye,yn-Yt))):(tn.sortIndex=Or,s(ve,tn),!xe&&!ke&&(xe=!0,Ln(U))),tn}function Ge(){}function Ue(){!xe&&!ke&&(xe=!0,Ln(U))}function Le(){return c(ve)}function me(De){De.callback=null}function ze(){return pe}var be=!1,ht=null,He=-1,Rt=a,Gt=-1;function Tn(){var De=e.unstable_now()-Gt;return!(De<Rt)}function ar(){}function or(De){if(De<0||De>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}De>0?Rt=Math.floor(1e3/De):Rt=a}var dr=function(){if(ht!==null){var De=e.unstable_now();Gt=De;var it=!0,Ot=!0;try{Ot=ht(it,De)}finally{Ot?Jn():(be=!1,ht=null)}}else be=!1},Jn;if(typeof L=="function")Jn=function(){L(dr)};else if(typeof MessageChannel<"u"){var pr=new MessageChannel,Yn=pr.port2;pr.port1.onmessage=dr,Jn=function(){Yn.postMessage(null)}}else Jn=function(){se(dr,0)};function Ln(De){ht=De,be||(be=!0,Jn())}function fe(De,it){He=se(function(){De(e.unstable_now())},it)}function Ne(){Te(He),He=-1}var mt=ar,qt=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=S,e.unstable_LowPriority=x,e.unstable_NormalPriority=C,e.unstable_Profiling=qt,e.unstable_UserBlockingPriority=E,e.unstable_cancelCallback=me,e.unstable_continueExecution=Ue,e.unstable_forceFrameRate=or,e.unstable_getCurrentPriorityLevel=ze,e.unstable_getFirstCallbackNode=Le,e.unstable_next=Re,e.unstable_pauseExecution=Ge,e.unstable_requestPaint=mt,e.unstable_runWithPriority=We,e.unstable_scheduleCallback=$e,e.unstable_shouldYield=Tn,e.unstable_wrapCallback=Oe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(gS)),gS}var lk;function sk(){return lk||(lk=1,process.env.NODE_ENV==="production"?M0.exports=o6():M0.exports=l6()),M0.exports}/**
44
+ * @license React
45
+ * react-dom.production.min.js
46
+ *
47
+ * Copyright (c) Facebook, Inc. and its affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var uk;function s6(){if(uk)return ea;uk=1;var e=j,n=sk();function r(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(o,l){f(o,l),f(o+"Capture",l)}function f(o,l){for(s[o]=l,o=0;o<l.length;o++)a.add(l[o])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,S={},E={};function C(o){return v.call(E,o)?!0:v.call(S,o)?!1:y.test(o)?E[o]=!0:(S[o]=!0,!1)}function x(o,l,p,g){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function R(o,l,p,g){if(l===null||typeof l>"u"||x(o,l,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function T(o,l,p,g,w,_,P){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=o,this.type=l,this.sanitizeURL=_,this.removeEmptyString=P}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){D[o]=new T(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];D[l]=new T(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){D[o]=new T(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){D[o]=new T(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){D[o]=new T(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){D[o]=new T(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){D[o]=new T(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){D[o]=new T(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){D[o]=new T(o,5,!1,o.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function F(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var l=o.replace(M,F);D[l]=new T(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(M,F);D[l]=new T(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(M,F);D[l]=new T(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!0,!0)});function N(o,l,p,g){var w=D.hasOwnProperty(l)?D[l]:null;(w!==null?w.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(R(l,p,w,g)&&(p=null),g||w===null?C(l)&&(p===null?o.removeAttribute(l):o.setAttribute(l,""+p)):w.mustUseProperty?o[w.propertyName]=p===null?w.type===3?!1:"":p:(l=w.attributeName,g=w.attributeNamespace,p===null?o.removeAttribute(l):(w=w.type,p=w===3||w===4&&p===!0?"":""+p,g?o.setAttributeNS(g,l,p):o.setAttribute(l,p))))}var V=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),$=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),ee=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),se=Symbol.iterator;function Te(o){return o===null||typeof o!="object"?null:(o=se&&o[se]||o["@@iterator"],typeof o=="function"?o:null)}var L=Object.assign,te;function ye(o){if(te===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);te=l&&l[1]||""}return`
52
+ `+te+o}var U=!1;function _e(o,l){if(!o||U)return"";U=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(de){var g=de}Reflect.construct(o,[],l)}else{try{l.call()}catch(de){g=de}o.call(l.prototype)}else{try{throw Error()}catch(de){g=de}o()}}catch(de){if(de&&g&&typeof de.stack=="string"){for(var w=de.stack.split(`
53
+ `),_=g.stack.split(`
54
+ `),P=w.length-1,q=_.length-1;1<=P&&0<=q&&w[P]!==_[q];)q--;for(;1<=P&&0<=q;P--,q--)if(w[P]!==_[q]){if(P!==1||q!==1)do if(P--,q--,0>q||w[P]!==_[q]){var K=`
55
+ `+w[P].replace(" at new "," at ");return o.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",o.displayName)),K}while(1<=P&&0<=q);break}}}finally{U=!1,Error.prepareStackTrace=p}return(o=o?o.displayName||o.name:"")?ye(o):""}function We(o){switch(o.tag){case 5:return ye(o.type);case 16:return ye("Lazy");case 13:return ye("Suspense");case 19:return ye("SuspenseList");case 0:case 2:case 15:return o=_e(o.type,!1),o;case 11:return o=_e(o.type.render,!1),o;case 1:return o=_e(o.type,!0),o;default:return""}}function Re(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case H:return"Fragment";case $:return"Portal";case ne:return"Profiler";case Z:return"StrictMode";case J:return"Suspense";case pe:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case ee:return(o.displayName||"Context")+".Consumer";case ve:return(o._context.displayName||"Context")+".Provider";case oe:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case ke:return l=o.displayName||null,l!==null?l:Re(o.type)||"Memo";case xe:l=o._payload,o=o._init;try{return Re(o(l))}catch{}}return null}function Oe(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Re(l);case 8:return l===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function $e(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ge(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Ue(o){var l=Ge(o)?"checked":"value",p=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),g=""+o[l];if(!o.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var w=p.get,_=p.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return w.call(this)},set:function(P){g=""+P,_.call(this,P)}}),Object.defineProperty(o,l,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(P){g=""+P},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Le(o){o._valueTracker||(o._valueTracker=Ue(o))}function me(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var p=l.getValue(),g="";return o&&(g=Ge(o)?o.checked?"true":"false":o.value),o=g,o!==p?(l.setValue(o),!0):!1}function ze(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function be(o,l){var p=l.checked;return L({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??o._wrapperState.initialChecked})}function ht(o,l){var p=l.defaultValue==null?"":l.defaultValue,g=l.checked!=null?l.checked:l.defaultChecked;p=$e(l.value!=null?l.value:p),o._wrapperState={initialChecked:g,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function He(o,l){l=l.checked,l!=null&&N(o,"checked",l,!1)}function Rt(o,l){He(o,l);var p=$e(l.value),g=l.type;if(p!=null)g==="number"?(p===0&&o.value===""||o.value!=p)&&(o.value=""+p):o.value!==""+p&&(o.value=""+p);else if(g==="submit"||g==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Tn(o,l.type,p):l.hasOwnProperty("defaultValue")&&Tn(o,l.type,$e(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Gt(o,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var g=l.type;if(!(g!=="submit"&&g!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,p||l===o.value||(o.value=l),o.defaultValue=l}p=o.name,p!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,p!==""&&(o.name=p)}function Tn(o,l,p){(l!=="number"||ze(o.ownerDocument)!==o)&&(p==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+p&&(o.defaultValue=""+p))}var ar=Array.isArray;function or(o,l,p,g){if(o=o.options,l){l={};for(var w=0;w<p.length;w++)l["$"+p[w]]=!0;for(p=0;p<o.length;p++)w=l.hasOwnProperty("$"+o[p].value),o[p].selected!==w&&(o[p].selected=w),w&&g&&(o[p].defaultSelected=!0)}else{for(p=""+$e(p),l=null,w=0;w<o.length;w++){if(o[w].value===p){o[w].selected=!0,g&&(o[w].defaultSelected=!0);return}l!==null||o[w].disabled||(l=o[w])}l!==null&&(l.selected=!0)}}function dr(o,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return L({},l,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Jn(o,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(r(92));if(ar(p)){if(1<p.length)throw Error(r(93));p=p[0]}l=p}l==null&&(l=""),p=l}o._wrapperState={initialValue:$e(p)}}function pr(o,l){var p=$e(l.value),g=$e(l.defaultValue);p!=null&&(p=""+p,p!==o.value&&(o.value=p),l.defaultValue==null&&o.defaultValue!==p&&(o.defaultValue=p)),g!=null&&(o.defaultValue=""+g)}function Yn(o){var l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function Ln(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(o,l){return o==null||o==="http://www.w3.org/1999/xhtml"?Ln(l):o==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Ne,mt=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,g,w){MSApp.execUnsafeLocalFunction(function(){return o(l,p,g,w)})}:o}(function(o,l){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=l;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Ne.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function qt(o,l){if(l){var p=o.firstChild;if(p&&p===o.lastChild&&p.nodeType===3){p.nodeValue=l;return}}o.textContent=l}var De={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=["Webkit","ms","Moz","O"];Object.keys(De).forEach(function(o){it.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),De[l]=De[o]})});function Ot(o,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||De.hasOwnProperty(o)&&De[o]?(""+l).trim():l+"px"}function Yt(o,l){o=o.style;for(var p in l)if(l.hasOwnProperty(p)){var g=p.indexOf("--")===0,w=Ot(p,l[p],g);p==="float"&&(p="cssFloat"),g?o.setProperty(p,w):o[p]=w}}var yn=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $n(o,l){if(l){if(yn[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function It(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Or=null;function tn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var $i=null,Rn=null,Mn=null;function gu(o){if(o=cf(o)){if(typeof $i!="function")throw Error(r(280));var l=o.stateNode;l&&(l=yt(l),$i(o.stateNode,o.type,l))}}function is(o){Rn?Mn?Mn.push(o):Mn=[o]:Rn=o}function yu(){if(Rn){var o=Rn,l=Mn;if(Mn=Rn=null,gu(o),l)for(o=0;o<l.length;o++)gu(l[o])}}function Uc(o,l){return o(l)}function Dd(){}var as=!1;function bu(o,l,p){if(as)return o(l,p);as=!0;try{return Uc(o,l,p)}finally{as=!1,(Rn!==null||Mn!==null)&&(Dd(),yu())}}function os(o,l){var p=o.stateNode;if(p===null)return null;var g=yt(p);if(g===null)return null;p=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(o=o.type,g=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!g;break e;default:o=!1}if(o)return null;if(p&&typeof p!="function")throw Error(r(231,l,typeof p));return p}var Su=!1;if(h)try{var no={};Object.defineProperty(no,"passive",{get:function(){Su=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Su=!1}function ul(o,l,p,g,w,_,P,q,K){var de=Array.prototype.slice.call(arguments,3);try{l.apply(p,de)}catch(Me){this.onError(Me)}}var Ui=!1,Ia=null,cl=!1,W=null,Pe={onError:function(o){Ui=!0,Ia=o}};function Ke(o,l,p,g,w,_,P,q,K){Ui=!1,Ia=null,ul.apply(Pe,arguments)}function St(o,l,p,g,w,_,P,q,K){if(Ke.apply(this,arguments),Ui){if(Ui){var de=Ia;Ui=!1,Ia=null}else throw Error(r(198));cl||(cl=!0,W=de)}}function Bt(o){var l=o,p=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,l.flags&4098&&(p=l.return),o=l.return;while(o)}return l.tag===3?p:null}function ln(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function Vt(o){if(Bt(o)!==o)throw Error(r(188))}function xt(o){var l=o.alternate;if(!l){if(l=Bt(o),l===null)throw Error(r(188));return l!==o?null:o}for(var p=o,g=l;;){var w=p.return;if(w===null)break;var _=w.alternate;if(_===null){if(g=w.return,g!==null){p=g;continue}break}if(w.child===_.child){for(_=w.child;_;){if(_===p)return Vt(w),o;if(_===g)return Vt(w),l;_=_.sibling}throw Error(r(188))}if(p.return!==g.return)p=w,g=_;else{for(var P=!1,q=w.child;q;){if(q===p){P=!0,p=w,g=_;break}if(q===g){P=!0,g=w,p=_;break}q=q.sibling}if(!P){for(q=_.child;q;){if(q===p){P=!0,p=_,g=w;break}if(q===g){P=!0,g=_,p=w;break}q=q.sibling}if(!P)throw Error(r(189))}}if(p.alternate!==g)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?o:l}function Dr(o){return o=xt(o),o!==null?Un(o):null}function Un(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var l=Un(o);if(l!==null)return l;o=o.sibling}return null}var Bn=n.unstable_scheduleCallback,ci=n.unstable_cancelCallback,fl=n.unstable_shouldYield,Ad=n.unstable_requestPaint,un=n.unstable_now,_x=n.unstable_getCurrentPriorityLevel,_o=n.unstable_ImmediatePriority,Xt=n.unstable_UserBlockingPriority,dl=n.unstable_NormalPriority,hy=n.unstable_LowPriority,vm=n.unstable_IdlePriority,Bc=null,za=null;function my(o){if(za&&typeof za.onCommitFiberRoot=="function")try{za.onCommitFiberRoot(Bc,o,void 0,(o.current.flags&128)===128)}catch{}}var ca=Math.clz32?Math.clz32:Tx,vy=Math.log,gy=Math.LN2;function Tx(o){return o>>>=0,o===0?32:31-(vy(o)/gy|0)|0}var Md=64,Eu=4194304;function ls(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ja(o,l){var p=o.pendingLanes;if(p===0)return 0;var g=0,w=o.suspendedLanes,_=o.pingedLanes,P=p&268435455;if(P!==0){var q=P&~w;q!==0?g=ls(q):(_&=P,_!==0&&(g=ls(_)))}else P=p&~w,P!==0?g=ls(P):_!==0&&(g=ls(_));if(g===0)return 0;if(l!==0&&l!==g&&!(l&w)&&(w=g&-g,_=l&-l,w>=_||w===16&&(_&4194240)!==0))return l;if(g&4&&(g|=p&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=g;0<l;)p=31-ca(l),w=1<<p,g|=o[p],l&=~w;return g}function gm(o,l){switch(o){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ld(o,l){for(var p=o.suspendedLanes,g=o.pingedLanes,w=o.expirationTimes,_=o.pendingLanes;0<_;){var P=31-ca(_),q=1<<P,K=w[P];K===-1?(!(q&p)||q&g)&&(w[P]=gm(q,l)):K<=l&&(o.expiredLanes|=q),_&=~q}}function ym(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Pd(){var o=Md;return Md<<=1,!(Md&4194240)&&(Md=64),o}function bm(o){for(var l=[],p=0;31>p;p++)l.push(o);return l}function ss(o,l,p){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-ca(l),o[l]=p}function Rx(o,l){var p=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var g=o.eventTimes;for(o=o.expirationTimes;0<p;){var w=31-ca(p),_=1<<w;l[w]=0,g[w]=-1,o[w]=-1,p&=~_}}function Vc(o,l){var p=o.entangledLanes|=l;for(o=o.entanglements;p;){var g=31-ca(p),w=1<<g;w&l|o[g]&l&&(o[g]|=l),p&=~w}}var bn=0;function Sm(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var yy,Nd,On,by,Em,Ft=!1,Hc=[],hr=null,fa=null,da=null,qc=new Map,Er=new Map,Cn=[],Ox="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $a(o,l){switch(o){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":qc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Er.delete(l.pointerId)}}function Jr(o,l,p,g,w,_){return o===null||o.nativeEvent!==_?(o={blockedOn:l,domEventName:p,eventSystemFlags:g,nativeEvent:_,targetContainers:[w]},l!==null&&(l=cf(l),l!==null&&Nd(l)),o):(o.eventSystemFlags|=g,l=o.targetContainers,w!==null&&l.indexOf(w)===-1&&l.push(w),o)}function pl(o,l,p,g,w){switch(l){case"focusin":return hr=Jr(hr,o,l,p,g,w),!0;case"dragenter":return fa=Jr(fa,o,l,p,g,w),!0;case"mouseover":return da=Jr(da,o,l,p,g,w),!0;case"pointerover":var _=w.pointerId;return qc.set(_,Jr(qc.get(_)||null,o,l,p,g,w)),!0;case"gotpointercapture":return _=w.pointerId,Er.set(_,Jr(Er.get(_)||null,o,l,p,g,w)),!0}return!1}function Sy(o){var l=ha(o.target);if(l!==null){var p=Bt(l);if(p!==null){if(l=p.tag,l===13){if(l=ln(p),l!==null){o.blockedOn=l,Em(o.priority,function(){On(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){o.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xu(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var p=zd(o.domEventName,o.eventSystemFlags,l[0],o.nativeEvent);if(p===null){p=o.nativeEvent;var g=new p.constructor(p.type,p);Or=g,p.target.dispatchEvent(g),Or=null}else return l=cf(p),l!==null&&Nd(l),o.blockedOn=p,!1;l.shift()}return!0}function xm(o,l,p){xu(o)&&p.delete(l)}function Ey(){Ft=!1,hr!==null&&xu(hr)&&(hr=null),fa!==null&&xu(fa)&&(fa=null),da!==null&&xu(da)&&(da=null),qc.forEach(xm),Er.forEach(xm)}function Wc(o,l){o.blockedOn===l&&(o.blockedOn=null,Ft||(Ft=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ey)))}function Yc(o){function l(w){return Wc(w,o)}if(0<Hc.length){Wc(Hc[0],o);for(var p=1;p<Hc.length;p++){var g=Hc[p];g.blockedOn===o&&(g.blockedOn=null)}}for(hr!==null&&Wc(hr,o),fa!==null&&Wc(fa,o),da!==null&&Wc(da,o),qc.forEach(l),Er.forEach(l),p=0;p<Cn.length;p++)g=Cn[p],g.blockedOn===o&&(g.blockedOn=null);for(;0<Cn.length&&(p=Cn[0],p.blockedOn===null);)Sy(p),p.blockedOn===null&&Cn.shift()}var wu=V.ReactCurrentBatchConfig,us=!0;function xy(o,l,p,g){var w=bn,_=wu.transition;wu.transition=null;try{bn=1,Id(o,l,p,g)}finally{bn=w,wu.transition=_}}function Fd(o,l,p,g){var w=bn,_=wu.transition;wu.transition=null;try{bn=4,Id(o,l,p,g)}finally{bn=w,wu.transition=_}}function Id(o,l,p,g){if(us){var w=zd(o,l,p,g);if(w===null)Gd(o,l,g,Zc,p),$a(o,g);else if(pl(w,o,l,p,g))g.stopPropagation();else if($a(o,g),l&4&&-1<Ox.indexOf(o)){for(;w!==null;){var _=cf(w);if(_!==null&&yy(_),_=zd(o,l,p,g),_===null&&Gd(o,l,g,Zc,p),_===w)break;w=_}w!==null&&g.stopPropagation()}else Gd(o,l,g,null,p)}}var Zc=null;function zd(o,l,p,g){if(Zc=null,o=tn(g),o=ha(o),o!==null)if(l=Bt(o),l===null)o=null;else if(p=l.tag,p===13){if(o=ln(l),o!==null)return o;o=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null);return Zc=o,null}function wm(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_x()){case _o:return 1;case Xt:return 4;case dl:case hy:return 16;case vm:return 536870912;default:return 16}default:return 16}}var To=null,Kc=null,Gc=null;function Cm(){if(Gc)return Gc;var o,l=Kc,p=l.length,g,w="value"in To?To.value:To.textContent,_=w.length;for(o=0;o<p&&l[o]===w[o];o++);var P=p-o;for(g=1;g<=P&&l[p-g]===w[_-g];g++);return Gc=w.slice(o,1<g?1-g:void 0)}function Cu(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Qc(){return!0}function wy(){return!1}function Bi(o){function l(p,g,w,_,P){this._reactName=p,this._targetInst=w,this.type=g,this.nativeEvent=_,this.target=P,this.currentTarget=null;for(var q in o)o.hasOwnProperty(q)&&(p=o[q],this[q]=p?p(_):_[q]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Qc:wy,this.isPropagationStopped=wy,this}return L(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Qc)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Qc)},persist:function(){},isPersistent:Qc}),l}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=Bi(hl),ku=L({},hl,{view:0,detail:0}),Cy=Bi(ku),$d,km,Xc,Ar=L({},ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Om,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Xc&&(Xc&&o.type==="mousemove"?($d=o.screenX-Xc.screenX,km=o.screenY-Xc.screenY):km=$d=0,Xc=o),$d)},movementY:function(o){return"movementY"in o?o.movementY:km}}),Ud=Bi(Ar),ky=L({},Ar,{dataTransfer:0}),_y=Bi(ky),Dx=L({},ku,{relatedTarget:0}),ml=Bi(Dx),_m=L({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ty=Bi(_m),Ax=L({},hl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mx=Bi(Ax),Lx=L({},hl,{data:0}),Tm=Bi(Lx),Rm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ry={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"},Oy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dy(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=Oy[o])?!!l[o]:!1}function Om(){return Dy}var Ro=L({},ku,{key:function(o){if(o.key){var l=Rm[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Cu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Ry[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Om,charCode:function(o){return o.type==="keypress"?Cu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Px=Bi(Ro),Dm=L({},Ar,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bd=Bi(Dm),Am=L({},ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Om}),Nx=Bi(Am),Vd=L({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ay=Bi(Vd),Ci=L({},Ar,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Oo=Bi(Ci),mr=[9,13,27,32],Ua=h&&"CompositionEvent"in window,cs=null;h&&"documentMode"in document&&(cs=document.documentMode);var Hd=h&&"TextEvent"in window&&!cs,My=h&&(!Ua||cs&&8<cs&&11>=cs),_u=String.fromCharCode(32),Ly=!1;function Py(o,l){switch(o){case"keyup":return mr.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Tu=!1;function Fx(o,l){switch(o){case"compositionend":return qd(l);case"keypress":return l.which!==32?null:(Ly=!0,_u);case"textInput":return o=l.data,o===_u&&Ly?null:o;default:return null}}function Ix(o,l){if(Tu)return o==="compositionend"||!Ua&&Py(o,l)?(o=Cm(),Gc=Kc=To=null,Tu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return My&&l.locale!=="ko"?null:l.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 Fy(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!Ny[o.type]:l==="textarea"}function Iy(o,l,p,g){is(g),l=lf(l,"onChange"),0<l.length&&(p=new jd("onChange","change",null,p,g),o.push({event:p,listeners:l}))}var Jc=null,Ru=null;function Ou(o){Kd(o,0)}function Du(o){var l=Mu(o);if(me(l))return o}function zy(o,l){if(o==="change")return l}var Mm=!1;if(h){var Lm;if(h){var Pm="oninput"in document;if(!Pm){var jy=document.createElement("div");jy.setAttribute("oninput","return;"),Pm=typeof jy.oninput=="function"}Lm=Pm}else Lm=!1;Mm=Lm&&(!document.documentMode||9<document.documentMode)}function $y(){Jc&&(Jc.detachEvent("onpropertychange",Uy),Ru=Jc=null)}function Uy(o){if(o.propertyName==="value"&&Du(Ru)){var l=[];Iy(l,Ru,o,tn(o)),bu(Ou,l)}}function zx(o,l,p){o==="focusin"?($y(),Jc=l,Ru=p,Jc.attachEvent("onpropertychange",Uy)):o==="focusout"&&$y()}function jx(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Du(Ru)}function $x(o,l){if(o==="click")return Du(l)}function By(o,l){if(o==="input"||o==="change")return Du(l)}function Ux(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var pa=typeof Object.is=="function"?Object.is:Ux;function ef(o,l){if(pa(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var p=Object.keys(o),g=Object.keys(l);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var w=p[g];if(!v.call(l,w)||!pa(o[w],l[w]))return!1}return!0}function Vy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Hy(o,l){var p=Vy(o);o=0;for(var g;p;){if(p.nodeType===3){if(g=o+p.textContent.length,o<=l&&g>=l)return{node:p,offset:l-o};o=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Vy(p)}}function qy(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?qy(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Wd(){for(var o=window,l=ze();l instanceof o.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)o=l.contentWindow;else break;l=ze(o.document)}return l}function Do(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function Yd(o){var l=Wd(),p=o.focusedElem,g=o.selectionRange;if(l!==p&&p&&p.ownerDocument&&qy(p.ownerDocument.documentElement,p)){if(g!==null&&Do(p)){if(l=g.start,o=g.end,o===void 0&&(o=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(o,p.value.length);else if(o=(l=p.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var w=p.textContent.length,_=Math.min(g.start,w);g=g.end===void 0?_:Math.min(g.end,w),!o.extend&&_>g&&(w=g,g=_,_=w),w=Hy(p,_);var P=Hy(p,g);w&&P&&(o.rangeCount!==1||o.anchorNode!==w.node||o.anchorOffset!==w.offset||o.focusNode!==P.node||o.focusOffset!==P.offset)&&(l=l.createRange(),l.setStart(w.node,w.offset),o.removeAllRanges(),_>g?(o.addRange(l),o.extend(P.node,P.offset)):(l.setEnd(P.node,P.offset),o.addRange(l)))}}for(l=[],o=p;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)o=l[p],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Wy=h&&"documentMode"in document&&11>=document.documentMode,Ba=null,Nm=null,tf=null,Fm=!1;function Yy(o,l,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Fm||Ba==null||Ba!==ze(g)||(g=Ba,"selectionStart"in g&&Do(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),tf&&ef(tf,g)||(tf=g,g=lf(Nm,"onSelect"),0<g.length&&(l=new jd("onSelect","select",null,l,p),o.push({event:l,listeners:g}),l.target=Ba)))}function Zd(o,l){var p={};return p[o.toLowerCase()]=l.toLowerCase(),p["Webkit"+o]="webkit"+l,p["Moz"+o]="moz"+l,p}var fs={animationend:Zd("Animation","AnimationEnd"),animationiteration:Zd("Animation","AnimationIteration"),animationstart:Zd("Animation","AnimationStart"),transitionend:Zd("Transition","TransitionEnd")},Im={},zm={};h&&(zm=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);function Mr(o){if(Im[o])return Im[o];if(!fs[o])return o;var l=fs[o],p;for(p in l)if(l.hasOwnProperty(p)&&p in zm)return Im[o]=l[p];return o}var jm=Mr("animationend"),Zy=Mr("animationiteration"),Ky=Mr("animationstart"),Gy=Mr("transitionend"),Qy=new Map,Xy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ao(o,l){Qy.set(o,l),c(l,[o])}for(var nf=0;nf<Xy.length;nf++){var ds=Xy[nf],Bx=ds.toLowerCase(),rf=ds[0].toUpperCase()+ds.slice(1);Ao(Bx,"on"+rf)}Ao(jm,"onAnimationEnd"),Ao(Zy,"onAnimationIteration"),Ao(Ky,"onAnimationStart"),Ao("dblclick","onDoubleClick"),Ao("focusin","onFocus"),Ao("focusout","onBlur"),Ao(Gy,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var af="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(" "),Vx=new Set("cancel close invalid load scroll toggle".split(" ").concat(af));function Jy(o,l,p){var g=o.type||"unknown-event";o.currentTarget=p,St(g,l,void 0,o),o.currentTarget=null}function Kd(o,l){l=(l&4)!==0;for(var p=0;p<o.length;p++){var g=o[p],w=g.event;g=g.listeners;e:{var _=void 0;if(l)for(var P=g.length-1;0<=P;P--){var q=g[P],K=q.instance,de=q.currentTarget;if(q=q.listener,K!==_&&w.isPropagationStopped())break e;Jy(w,q,de),_=K}else for(P=0;P<g.length;P++){if(q=g[P],K=q.instance,de=q.currentTarget,q=q.listener,K!==_&&w.isPropagationStopped())break e;Jy(w,q,de),_=K}}}if(cl)throw o=W,cl=!1,W=null,o}function Dn(o,l){var p=l[Wm];p===void 0&&(p=l[Wm]=new Set);var g=o+"__bubble";p.has(g)||(e1(l,o,2,!1),p.add(g))}function vl(o,l,p){var g=0;l&&(g|=4),e1(p,o,g,l)}var Mo="_reactListening"+Math.random().toString(36).slice(2);function Au(o){if(!o[Mo]){o[Mo]=!0,a.forEach(function(p){p!=="selectionchange"&&(Vx.has(p)||vl(p,!1,o),vl(p,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Mo]||(l[Mo]=!0,vl("selectionchange",!1,l))}}function e1(o,l,p,g){switch(wm(l)){case 1:var w=xy;break;case 4:w=Fd;break;default:w=Id}p=w.bind(null,l,p,o),w=void 0,!Su||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(w=!0),g?w!==void 0?o.addEventListener(l,p,{capture:!0,passive:w}):o.addEventListener(l,p,!0):w!==void 0?o.addEventListener(l,p,{passive:w}):o.addEventListener(l,p,!1)}function Gd(o,l,p,g,w){var _=g;if(!(l&1)&&!(l&2)&&g!==null)e:for(;;){if(g===null)return;var P=g.tag;if(P===3||P===4){var q=g.stateNode.containerInfo;if(q===w||q.nodeType===8&&q.parentNode===w)break;if(P===4)for(P=g.return;P!==null;){var K=P.tag;if((K===3||K===4)&&(K=P.stateNode.containerInfo,K===w||K.nodeType===8&&K.parentNode===w))return;P=P.return}for(;q!==null;){if(P=ha(q),P===null)return;if(K=P.tag,K===5||K===6){g=_=P;continue e}q=q.parentNode}}g=g.return}bu(function(){var de=_,Me=tn(p),Fe=[];e:{var Ae=Qy.get(o);if(Ae!==void 0){var Je=jd,st=o;switch(o){case"keypress":if(Cu(p)===0)break e;case"keydown":case"keyup":Je=Px;break;case"focusin":st="focus",Je=ml;break;case"focusout":st="blur",Je=ml;break;case"beforeblur":case"afterblur":Je=ml;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Je=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Je=_y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Je=Nx;break;case jm:case Zy:case Ky:Je=Ty;break;case Gy:Je=Ay;break;case"scroll":Je=Cy;break;case"wheel":Je=Oo;break;case"copy":case"cut":case"paste":Je=Mx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Je=Bd}var ft=(l&4)!==0,sr=!ft&&o==="scroll",re=ft?Ae!==null?Ae+"Capture":null:Ae;ft=[];for(var Q=de,le;Q!==null;){le=Q;var Ve=le.stateNode;if(le.tag===5&&Ve!==null&&(le=Ve,re!==null&&(Ve=os(Q,re),Ve!=null&&ft.push(of(Q,Ve,le)))),sr)break;Q=Q.return}0<ft.length&&(Ae=new Je(Ae,st,null,p,Me),Fe.push({event:Ae,listeners:ft}))}}if(!(l&7)){e:{if(Ae=o==="mouseover"||o==="pointerover",Je=o==="mouseout"||o==="pointerout",Ae&&p!==Or&&(st=p.relatedTarget||p.fromElement)&&(ha(st)||st[Lo]))break e;if((Je||Ae)&&(Ae=Me.window===Me?Me:(Ae=Me.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Je?(st=p.relatedTarget||p.toElement,Je=de,st=st?ha(st):null,st!==null&&(sr=Bt(st),st!==sr||st.tag!==5&&st.tag!==6)&&(st=null)):(Je=null,st=de),Je!==st)){if(ft=Ud,Ve="onMouseLeave",re="onMouseEnter",Q="mouse",(o==="pointerout"||o==="pointerover")&&(ft=Bd,Ve="onPointerLeave",re="onPointerEnter",Q="pointer"),sr=Je==null?Ae:Mu(Je),le=st==null?Ae:Mu(st),Ae=new ft(Ve,Q+"leave",Je,p,Me),Ae.target=sr,Ae.relatedTarget=le,Ve=null,ha(Me)===de&&(ft=new ft(re,Q+"enter",st,p,Me),ft.target=le,ft.relatedTarget=sr,Ve=ft),sr=Ve,Je&&st)t:{for(ft=Je,re=st,Q=0,le=ft;le;le=ps(le))Q++;for(le=0,Ve=re;Ve;Ve=ps(Ve))le++;for(;0<Q-le;)ft=ps(ft),Q--;for(;0<le-Q;)re=ps(re),le--;for(;Q--;){if(ft===re||re!==null&&ft===re.alternate)break t;ft=ps(ft),re=ps(re)}ft=null}else ft=null;Je!==null&&$m(Fe,Ae,Je,ft,!1),st!==null&&sr!==null&&$m(Fe,sr,st,ft,!0)}}e:{if(Ae=de?Mu(de):window,Je=Ae.nodeName&&Ae.nodeName.toLowerCase(),Je==="select"||Je==="input"&&Ae.type==="file")var dt=zy;else if(Fy(Ae))if(Mm)dt=By;else{dt=jx;var ut=zx}else(Je=Ae.nodeName)&&Je.toLowerCase()==="input"&&(Ae.type==="checkbox"||Ae.type==="radio")&&(dt=$x);if(dt&&(dt=dt(o,de))){Iy(Fe,dt,p,Me);break e}ut&&ut(o,Ae,de),o==="focusout"&&(ut=Ae._wrapperState)&&ut.controlled&&Ae.type==="number"&&Tn(Ae,"number",Ae.value)}switch(ut=de?Mu(de):window,o){case"focusin":(Fy(ut)||ut.contentEditable==="true")&&(Ba=ut,Nm=de,tf=null);break;case"focusout":tf=Nm=Ba=null;break;case"mousedown":Fm=!0;break;case"contextmenu":case"mouseup":case"dragend":Fm=!1,Yy(Fe,p,Me);break;case"selectionchange":if(Wy)break;case"keydown":case"keyup":Yy(Fe,p,Me)}var gt;if(Ua)e:{switch(o){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else Tu?Py(o,p)&&(At="onCompositionEnd"):o==="keydown"&&p.keyCode===229&&(At="onCompositionStart");At&&(My&&p.locale!=="ko"&&(Tu||At!=="onCompositionStart"?At==="onCompositionEnd"&&Tu&&(gt=Cm()):(To=Me,Kc="value"in To?To.value:To.textContent,Tu=!0)),ut=lf(de,At),0<ut.length&&(At=new Tm(At,o,null,p,Me),Fe.push({event:At,listeners:ut}),gt?At.data=gt:(gt=qd(p),gt!==null&&(At.data=gt)))),(gt=Hd?Fx(o,p):Ix(o,p))&&(de=lf(de,"onBeforeInput"),0<de.length&&(Me=new Tm("onBeforeInput","beforeinput",null,p,Me),Fe.push({event:Me,listeners:de}),Me.data=gt))}Kd(Fe,l)})}function of(o,l,p){return{instance:o,listener:l,currentTarget:p}}function lf(o,l){for(var p=l+"Capture",g=[];o!==null;){var w=o,_=w.stateNode;w.tag===5&&_!==null&&(w=_,_=os(o,p),_!=null&&g.unshift(of(o,_,w)),_=os(o,l),_!=null&&g.push(of(o,_,w))),o=o.return}return g}function ps(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function $m(o,l,p,g,w){for(var _=l._reactName,P=[];p!==null&&p!==g;){var q=p,K=q.alternate,de=q.stateNode;if(K!==null&&K===g)break;q.tag===5&&de!==null&&(q=de,w?(K=os(p,_),K!=null&&P.unshift(of(p,K,q))):w||(K=os(p,_),K!=null&&P.push(of(p,K,q)))),p=p.return}P.length!==0&&o.push({event:l,listeners:P})}var Um=/\r\n?/g,Hx=/\u0000|\uFFFD/g;function Bm(o){return(typeof o=="string"?o:""+o).replace(Um,`
56
+ `).replace(Hx,"")}function Qd(o,l,p){if(l=Bm(l),Bm(o)!==l&&p)throw Error(r(425))}function Xd(){}var Vm=null,hs=null;function sf(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var ms=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,qm=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(o){return Hm.resolve(null).then(o).catch(qx)}:ms;function qx(o){setTimeout(function(){throw o})}function gl(o,l){var p=l,g=0;do{var w=p.nextSibling;if(o.removeChild(p),w&&w.nodeType===8)if(p=w.data,p==="/$"){if(g===0){o.removeChild(w),Yc(l);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=w}while(p);Yc(l)}function Va(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return o}function uf(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var p=o.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return o;l--}else p==="/$"&&l++}o=o.previousSibling}return null}var yl=Math.random().toString(36).slice(2),ro="__reactFiber$"+yl,vs="__reactProps$"+yl,Lo="__reactContainer$"+yl,Wm="__reactEvents$"+yl,Wx="__reactListeners$"+yl,Ym="__reactHandles$"+yl;function ha(o){var l=o[ro];if(l)return l;for(var p=o.parentNode;p;){if(l=p[Lo]||p[ro]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(o=uf(o);o!==null;){if(p=o[ro])return p;o=uf(o)}return l}o=p,p=o.parentNode}return null}function cf(o){return o=o[ro]||o[Lo],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Mu(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function yt(o){return o[vs]||null}var bl=[],Pn=-1;function zt(o){return{current:o}}function dn(o){0>Pn||(o.current=bl[Pn],bl[Pn]=null,Pn--)}function mn(o,l){Pn++,bl[Pn]=o.current,o.current=l}var io={},Dt=zt(io),er=zt(!1),ki=io;function ma(o,l){var p=o.type.contextTypes;if(!p)return io;var g=o.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===l)return g.__reactInternalMemoizedMaskedChildContext;var w={},_;for(_ in p)w[_]=l[_];return g&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=w),w}function Vn(o){return o=o.childContextTypes,o!=null}function va(){dn(er),dn(Dt)}function Sl(o,l,p){if(Dt.current!==io)throw Error(r(168));mn(Dt,l),mn(er,p)}function ff(o,l,p){var g=o.stateNode;if(l=l.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var w in g)if(!(w in l))throw Error(r(108,Oe(o)||"Unknown",w));return L({},p,g)}function Jd(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||io,ki=Dt.current,mn(Dt,o),mn(er,er.current),!0}function n1(o,l,p){var g=o.stateNode;if(!g)throw Error(r(169));p?(o=ff(o,l,ki),g.__reactInternalMemoizedMergedChildContext=o,dn(er),dn(Dt),mn(Dt,o)):dn(er),mn(er,p)}var Vi=null,Lr=!1,df=!1;function Zm(o){Vi===null?Vi=[o]:Vi.push(o)}function Km(o){Lr=!0,Zm(o)}function _i(){if(!df&&Vi!==null){df=!0;var o=0,l=bn;try{var p=Vi;for(bn=1;o<p.length;o++){var g=p[o];do g=g(!0);while(g!==null)}Vi=null,Lr=!1}catch(w){throw Vi!==null&&(Vi=Vi.slice(o+1)),Bn(_o,_i),w}finally{bn=l,df=!1}}return null}var El=[],Ti=0,gs=null,Lu=0,Ri=[],ei=0,ga=null,Ur=1,Po="";function Hi(o,l){El[Ti++]=Lu,El[Ti++]=gs,gs=o,Lu=l}function Gm(o,l,p){Ri[ei++]=Ur,Ri[ei++]=Po,Ri[ei++]=ga,ga=o;var g=Ur;o=Po;var w=32-ca(g)-1;g&=~(1<<w),p+=1;var _=32-ca(l)+w;if(30<_){var P=w-w%5;_=(g&(1<<P)-1).toString(32),g>>=P,w-=P,Ur=1<<32-ca(l)+w|p<<w|g,Po=_+o}else Ur=1<<_|p<<w|g,Po=o}function ep(o){o.return!==null&&(Hi(o,1),Gm(o,1,0))}function Qm(o){for(;o===gs;)gs=El[--Ti],El[Ti]=null,Lu=El[--Ti],El[Ti]=null;for(;o===ga;)ga=Ri[--ei],Ri[ei]=null,Po=Ri[--ei],Ri[ei]=null,Ur=Ri[--ei],Ri[ei]=null}var qi=null,Oi=null,Nn=!1,ya=null;function Xm(o,l){var p=Ca(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=o,l=o.deletions,l===null?(o.deletions=[p],o.flags|=16):l.push(p)}function r1(o,l){switch(o.tag){case 5:var p=o.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(o.stateNode=l,qi=o,Oi=Va(l.firstChild),!0):!1;case 6:return l=o.pendingProps===""||l.nodeType!==3?null:l,l!==null?(o.stateNode=l,qi=o,Oi=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=ga!==null?{id:Ur,overflow:Po}:null,o.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=Ca(18,null,null,0),p.stateNode=l,p.return=o,o.child=p,qi=o,Oi=null,!0):!1;default:return!1}}function tp(o){return(o.mode&1)!==0&&(o.flags&128)===0}function np(o){if(Nn){var l=Oi;if(l){var p=l;if(!r1(o,l)){if(tp(o))throw Error(r(418));l=Va(p.nextSibling);var g=qi;l&&r1(o,l)?Xm(g,p):(o.flags=o.flags&-4097|2,Nn=!1,qi=o)}}else{if(tp(o))throw Error(r(418));o.flags=o.flags&-4097|2,Nn=!1,qi=o}}}function i1(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;qi=o}function rp(o){if(o!==qi)return!1;if(!Nn)return i1(o),Nn=!0,!1;var l;if((l=o.tag!==3)&&!(l=o.tag!==5)&&(l=o.type,l=l!=="head"&&l!=="body"&&!sf(o.type,o.memoizedProps)),l&&(l=Oi)){if(tp(o))throw a1(),Error(r(418));for(;l;)Xm(o,l),l=Va(l.nextSibling)}if(i1(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8){var p=o.data;if(p==="/$"){if(l===0){Oi=Va(o.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}o=o.nextSibling}Oi=null}}else Oi=qi?Va(o.stateNode.nextSibling):null;return!0}function a1(){for(var o=Oi;o;)o=Va(o.nextSibling)}function Zn(){Oi=qi=null,Nn=!1}function Jm(o){ya===null?ya=[o]:ya.push(o)}var ip=V.ReactCurrentBatchConfig;function Wi(o,l){if(o&&o.defaultProps){l=L({},l),o=o.defaultProps;for(var p in o)l[p]===void 0&&(l[p]=o[p]);return l}return l}var ao=zt(null),ap=null,xl=null,ev=null;function tv(){ev=xl=ap=null}function wl(o){var l=ao.current;dn(ao),o._currentValue=l}function Pr(o,l,p){for(;o!==null;){var g=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),o===p)break;o=o.return}}function Ye(o,l){ap=o,ev=xl=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&l&&(vr=!0),o.firstContext=null)}function lr(o){var l=o._currentValue;if(ev!==o)if(o={context:o,memoizedValue:l,next:null},xl===null){if(ap===null)throw Error(r(308));xl=o,ap.dependencies={lanes:0,firstContext:o}}else xl=xl.next=o;return l}var Br=null;function nv(o){Br===null?Br=[o]:Br.push(o)}function o1(o,l,p,g){var w=l.interleaved;return w===null?(p.next=p,nv(l)):(p.next=w.next,w.next=p),l.interleaved=p,No(o,g)}function No(o,l){o.lanes|=l;var p=o.alternate;for(p!==null&&(p.lanes|=l),p=o,o=o.return;o!==null;)o.childLanes|=l,p=o.alternate,p!==null&&(p.childLanes|=l),p=o,o=o.return;return p.tag===3?p.stateNode:null}var Cl=!1;function rv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xr(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Fo(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function kl(o,l,p){var g=o.updateQueue;if(g===null)return null;if(g=g.shared,Jt&2){var w=g.pending;return w===null?l.next=l:(l.next=w.next,w.next=l),g.pending=l,No(o,p)}return w=g.interleaved,w===null?(l.next=l,nv(g)):(l.next=w.next,w.next=l),g.interleaved=l,No(o,p)}function op(o,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var g=l.lanes;g&=o.pendingLanes,p|=g,l.lanes=p,Vc(o,p)}}function iv(o,l){var p=o.updateQueue,g=o.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var w=null,_=null;if(p=p.firstBaseUpdate,p!==null){do{var P={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};_===null?w=_=P:_=_.next=P,p=p.next}while(p!==null);_===null?w=_=l:_=_.next=l}else w=_=l;p={baseState:g.baseState,firstBaseUpdate:w,lastBaseUpdate:_,shared:g.shared,effects:g.effects},o.updateQueue=p;return}o=p.lastBaseUpdate,o===null?p.firstBaseUpdate=l:o.next=l,p.lastBaseUpdate=l}function _l(o,l,p,g){var w=o.updateQueue;Cl=!1;var _=w.firstBaseUpdate,P=w.lastBaseUpdate,q=w.shared.pending;if(q!==null){w.shared.pending=null;var K=q,de=K.next;K.next=null,P===null?_=de:P.next=de,P=K;var Me=o.alternate;Me!==null&&(Me=Me.updateQueue,q=Me.lastBaseUpdate,q!==P&&(q===null?Me.firstBaseUpdate=de:q.next=de,Me.lastBaseUpdate=K))}if(_!==null){var Fe=w.baseState;P=0,Me=de=K=null,q=_;do{var Ae=q.lane,Je=q.eventTime;if((g&Ae)===Ae){Me!==null&&(Me=Me.next={eventTime:Je,lane:0,tag:q.tag,payload:q.payload,callback:q.callback,next:null});e:{var st=o,ft=q;switch(Ae=l,Je=p,ft.tag){case 1:if(st=ft.payload,typeof st=="function"){Fe=st.call(Je,Fe,Ae);break e}Fe=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=ft.payload,Ae=typeof st=="function"?st.call(Je,Fe,Ae):st,Ae==null)break e;Fe=L({},Fe,Ae);break e;case 2:Cl=!0}}q.callback!==null&&q.lane!==0&&(o.flags|=64,Ae=w.effects,Ae===null?w.effects=[q]:Ae.push(q))}else Je={eventTime:Je,lane:Ae,tag:q.tag,payload:q.payload,callback:q.callback,next:null},Me===null?(de=Me=Je,K=Fe):Me=Me.next=Je,P|=Ae;if(q=q.next,q===null){if(q=w.shared.pending,q===null)break;Ae=q,q=Ae.next,Ae.next=null,w.lastBaseUpdate=Ae,w.shared.pending=null}}while(1);if(Me===null&&(K=Fe),w.baseState=K,w.firstBaseUpdate=de,w.lastBaseUpdate=Me,l=w.shared.interleaved,l!==null){w=l;do P|=w.lane,w=w.next;while(w!==l)}else _===null&&(w.shared.lanes=0);$o|=P,o.lanes=P,o.memoizedState=Fe}}function ys(o,l,p){if(o=l.effects,l.effects=null,o!==null)for(l=0;l<o.length;l++){var g=o[l],w=g.callback;if(w!==null){if(g.callback=null,g=p,typeof w!="function")throw Error(r(191,w));w.call(g)}}}var l1=new e.Component().refs;function av(o,l,p,g){l=o.memoizedState,p=p(g,l),p=p==null?l:L({},l,p),o.memoizedState=p,o.lanes===0&&(o.updateQueue.baseState=p)}var lp={isMounted:function(o){return(o=o._reactInternals)?Bt(o)===o:!1},enqueueSetState:function(o,l,p){o=o._reactInternals;var g=ii(),w=gr(o),_=Fo(g,w);_.payload=l,p!=null&&(_.callback=p),l=kl(o,_,w),l!==null&&(ai(l,o,w,g),op(l,o,w))},enqueueReplaceState:function(o,l,p){o=o._reactInternals;var g=ii(),w=gr(o),_=Fo(g,w);_.tag=1,_.payload=l,p!=null&&(_.callback=p),l=kl(o,_,w),l!==null&&(ai(l,o,w,g),op(l,o,w))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var p=ii(),g=gr(o),w=Fo(p,g);w.tag=2,l!=null&&(w.callback=l),l=kl(o,w,g),l!==null&&(ai(l,o,g,p),op(l,o,g))}};function s1(o,l,p,g,w,_,P){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(g,_,P):l.prototype&&l.prototype.isPureReactComponent?!ef(p,g)||!ef(w,_):!0}function u1(o,l,p){var g=!1,w=io,_=l.contextType;return typeof _=="object"&&_!==null?_=lr(_):(w=Vn(l)?ki:Dt.current,g=l.contextTypes,_=(g=g!=null)?ma(o,w):io),l=new l(p,_),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=lp,o.stateNode=l,l._reactInternals=o,g&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=w,o.__reactInternalMemoizedMaskedChildContext=_),l}function c1(o,l,p,g){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,g),l.state!==o&&lp.enqueueReplaceState(l,l.state,null)}function sp(o,l,p,g){var w=o.stateNode;w.props=p,w.state=o.memoizedState,w.refs=l1,rv(o);var _=l.contextType;typeof _=="object"&&_!==null?w.context=lr(_):(_=Vn(l)?ki:Dt.current,w.context=ma(o,_)),w.state=o.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(av(o,l,_,p),w.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(l=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),l!==w.state&&lp.enqueueReplaceState(w,w.state,null),_l(o,p,w,g),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308)}function Pu(o,l,p){if(o=p.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var g=p.stateNode}if(!g)throw Error(r(147,o));var w=g,_=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===_?l.ref:(l=function(P){var q=w.refs;q===l1&&(q=w.refs={}),P===null?delete q[_]:q[_]=P},l._stringRef=_,l)}if(typeof o!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,o))}return o}function up(o,l){throw o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function f1(o){var l=o._init;return l(o._payload)}function d1(o){function l(re,Q){if(o){var le=re.deletions;le===null?(re.deletions=[Q],re.flags|=16):le.push(Q)}}function p(re,Q){if(!o)return null;for(;Q!==null;)l(re,Q),Q=Q.sibling;return null}function g(re,Q){for(re=new Map;Q!==null;)Q.key!==null?re.set(Q.key,Q):re.set(Q.index,Q),Q=Q.sibling;return re}function w(re,Q){return re=Pl(re,Q),re.index=0,re.sibling=null,re}function _(re,Q,le){return re.index=le,o?(le=re.alternate,le!==null?(le=le.index,le<Q?(re.flags|=2,Q):le):(re.flags|=2,Q)):(re.flags|=1048576,Q)}function P(re){return o&&re.alternate===null&&(re.flags|=2),re}function q(re,Q,le,Ve){return Q===null||Q.tag!==6?(Q=Af(le,re.mode,Ve),Q.return=re,Q):(Q=w(Q,le),Q.return=re,Q)}function K(re,Q,le,Ve){var dt=le.type;return dt===H?Me(re,Q,le.props.children,Ve,le.key):Q!==null&&(Q.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===xe&&f1(dt)===Q.type)?(Ve=w(Q,le.props),Ve.ref=Pu(re,Q,le),Ve.return=re,Ve):(Ve=Up(le.type,le.key,le.props,null,re.mode,Ve),Ve.ref=Pu(re,Q,le),Ve.return=re,Ve)}function de(re,Q,le,Ve){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==le.containerInfo||Q.stateNode.implementation!==le.implementation?(Q=Is(le,re.mode,Ve),Q.return=re,Q):(Q=w(Q,le.children||[]),Q.return=re,Q)}function Me(re,Q,le,Ve,dt){return Q===null||Q.tag!==7?(Q=Fs(le,re.mode,Ve,dt),Q.return=re,Q):(Q=w(Q,le),Q.return=re,Q)}function Fe(re,Q,le){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=Af(""+Q,re.mode,le),Q.return=re,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case I:return le=Up(Q.type,Q.key,Q.props,null,re.mode,le),le.ref=Pu(re,null,Q),le.return=re,le;case $:return Q=Is(Q,re.mode,le),Q.return=re,Q;case xe:var Ve=Q._init;return Fe(re,Ve(Q._payload),le)}if(ar(Q)||Te(Q))return Q=Fs(Q,re.mode,le,null),Q.return=re,Q;up(re,Q)}return null}function Ae(re,Q,le,Ve){var dt=Q!==null?Q.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return dt!==null?null:q(re,Q,""+le,Ve);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case I:return le.key===dt?K(re,Q,le,Ve):null;case $:return le.key===dt?de(re,Q,le,Ve):null;case xe:return dt=le._init,Ae(re,Q,dt(le._payload),Ve)}if(ar(le)||Te(le))return dt!==null?null:Me(re,Q,le,Ve,null);up(re,le)}return null}function Je(re,Q,le,Ve,dt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number")return re=re.get(le)||null,q(Q,re,""+Ve,dt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case I:return re=re.get(Ve.key===null?le:Ve.key)||null,K(Q,re,Ve,dt);case $:return re=re.get(Ve.key===null?le:Ve.key)||null,de(Q,re,Ve,dt);case xe:var ut=Ve._init;return Je(re,Q,le,ut(Ve._payload),dt)}if(ar(Ve)||Te(Ve))return re=re.get(le)||null,Me(Q,re,Ve,dt,null);up(Q,Ve)}return null}function st(re,Q,le,Ve){for(var dt=null,ut=null,gt=Q,At=Q=0,Ir=null;gt!==null&&At<le.length;At++){gt.index>At?(Ir=gt,gt=null):Ir=gt.sibling;var sn=Ae(re,gt,le[At],Ve);if(sn===null){gt===null&&(gt=Ir);break}o&&gt&&sn.alternate===null&&l(re,gt),Q=_(sn,Q,At),ut===null?dt=sn:ut.sibling=sn,ut=sn,gt=Ir}if(At===le.length)return p(re,gt),Nn&&Hi(re,At),dt;if(gt===null){for(;At<le.length;At++)gt=Fe(re,le[At],Ve),gt!==null&&(Q=_(gt,Q,At),ut===null?dt=gt:ut.sibling=gt,ut=gt);return Nn&&Hi(re,At),dt}for(gt=g(re,gt);At<le.length;At++)Ir=Je(gt,re,At,le[At],Ve),Ir!==null&&(o&&Ir.alternate!==null&&gt.delete(Ir.key===null?At:Ir.key),Q=_(Ir,Q,At),ut===null?dt=Ir:ut.sibling=Ir,ut=Ir);return o&&gt.forEach(function(Nl){return l(re,Nl)}),Nn&&Hi(re,At),dt}function ft(re,Q,le,Ve){var dt=Te(le);if(typeof dt!="function")throw Error(r(150));if(le=dt.call(le),le==null)throw Error(r(151));for(var ut=dt=null,gt=Q,At=Q=0,Ir=null,sn=le.next();gt!==null&&!sn.done;At++,sn=le.next()){gt.index>At?(Ir=gt,gt=null):Ir=gt.sibling;var Nl=Ae(re,gt,sn.value,Ve);if(Nl===null){gt===null&&(gt=Ir);break}o&&gt&&Nl.alternate===null&&l(re,gt),Q=_(Nl,Q,At),ut===null?dt=Nl:ut.sibling=Nl,ut=Nl,gt=Ir}if(sn.done)return p(re,gt),Nn&&Hi(re,At),dt;if(gt===null){for(;!sn.done;At++,sn=le.next())sn=Fe(re,sn.value,Ve),sn!==null&&(Q=_(sn,Q,At),ut===null?dt=sn:ut.sibling=sn,ut=sn);return Nn&&Hi(re,At),dt}for(gt=g(re,gt);!sn.done;At++,sn=le.next())sn=Je(gt,re,At,sn.value,Ve),sn!==null&&(o&&sn.alternate!==null&&gt.delete(sn.key===null?At:sn.key),Q=_(sn,Q,At),ut===null?dt=sn:ut.sibling=sn,ut=sn);return o&&gt.forEach(function(dw){return l(re,dw)}),Nn&&Hi(re,At),dt}function sr(re,Q,le,Ve){if(typeof le=="object"&&le!==null&&le.type===H&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case I:e:{for(var dt=le.key,ut=Q;ut!==null;){if(ut.key===dt){if(dt=le.type,dt===H){if(ut.tag===7){p(re,ut.sibling),Q=w(ut,le.props.children),Q.return=re,re=Q;break e}}else if(ut.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===xe&&f1(dt)===ut.type){p(re,ut.sibling),Q=w(ut,le.props),Q.ref=Pu(re,ut,le),Q.return=re,re=Q;break e}p(re,ut);break}else l(re,ut);ut=ut.sibling}le.type===H?(Q=Fs(le.props.children,re.mode,Ve,le.key),Q.return=re,re=Q):(Ve=Up(le.type,le.key,le.props,null,re.mode,Ve),Ve.ref=Pu(re,Q,le),Ve.return=re,re=Ve)}return P(re);case $:e:{for(ut=le.key;Q!==null;){if(Q.key===ut)if(Q.tag===4&&Q.stateNode.containerInfo===le.containerInfo&&Q.stateNode.implementation===le.implementation){p(re,Q.sibling),Q=w(Q,le.children||[]),Q.return=re,re=Q;break e}else{p(re,Q);break}else l(re,Q);Q=Q.sibling}Q=Is(le,re.mode,Ve),Q.return=re,re=Q}return P(re);case xe:return ut=le._init,sr(re,Q,ut(le._payload),Ve)}if(ar(le))return st(re,Q,le,Ve);if(Te(le))return ft(re,Q,le,Ve);up(re,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,Q!==null&&Q.tag===6?(p(re,Q.sibling),Q=w(Q,le),Q.return=re,re=Q):(p(re,Q),Q=Af(le,re.mode,Ve),Q.return=re,re=Q),P(re)):p(re,Q)}return sr}var Nu=d1(!0),p1=d1(!1),pf={},Ha=zt(pf),hf=zt(pf),Fu=zt(pf);function bs(o){if(o===pf)throw Error(r(174));return o}function ov(o,l){switch(mn(Fu,l),mn(hf,o),mn(Ha,pf),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:fe(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=fe(l,o)}dn(Ha),mn(Ha,l)}function Tl(){dn(Ha),dn(hf),dn(Fu)}function Et(o){bs(Fu.current);var l=bs(Ha.current),p=fe(l,o.type);l!==p&&(mn(hf,o),mn(Ha,p))}function Zt(o){hf.current===o&&(dn(Ha),dn(hf))}var wt=zt(0);function Kn(o){for(var l=o;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ba=[];function cp(){for(var o=0;o<ba.length;o++)ba[o]._workInProgressVersionPrimary=null;ba.length=0}var fp=V.ReactCurrentDispatcher,lv=V.ReactCurrentBatchConfig,Ss=0,Fn=null,we=null,nn=null,kt=!1,oo=!1,Yi=0,Es=0;function In(){throw Error(r(321))}function xs(o,l){if(l===null)return!1;for(var p=0;p<l.length&&p<o.length;p++)if(!pa(o[p],l[p]))return!1;return!0}function Rl(o,l,p,g,w,_){if(Ss=_,Fn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,fp.current=o===null||o.memoizedState===null?Zx:Kx,o=p(g,w),oo){_=0;do{if(oo=!1,Yi=0,25<=_)throw Error(r(301));_+=1,nn=we=null,l.updateQueue=null,fp.current=uv,o=p(g,w)}while(oo)}if(fp.current=Tp,l=we!==null&&we.next!==null,Ss=0,nn=we=Fn=null,kt=!1,l)throw Error(r(300));return o}function ws(){var o=Yi!==0;return Yi=0,o}function Sa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Fn.memoizedState=nn=o:nn=nn.next=o,nn}function Di(){if(we===null){var o=Fn.alternate;o=o!==null?o.memoizedState:null}else o=we.next;var l=nn===null?Fn.memoizedState:nn.next;if(l!==null)nn=l,we=o;else{if(o===null)throw Error(r(310));we=o,o={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},nn===null?Fn.memoizedState=nn=o:nn=nn.next=o}return nn}function Cs(o,l){return typeof l=="function"?l(o):l}function mf(o){var l=Di(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=o;var g=we,w=g.baseQueue,_=p.pending;if(_!==null){if(w!==null){var P=w.next;w.next=_.next,_.next=P}g.baseQueue=w=_,p.pending=null}if(w!==null){_=w.next,g=g.baseState;var q=P=null,K=null,de=_;do{var Me=de.lane;if((Ss&Me)===Me)K!==null&&(K=K.next={lane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),g=de.hasEagerState?de.eagerState:o(g,de.action);else{var Fe={lane:Me,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null};K===null?(q=K=Fe,P=g):K=K.next=Fe,Fn.lanes|=Me,$o|=Me}de=de.next}while(de!==null&&de!==_);K===null?P=g:K.next=q,pa(g,l.memoizedState)||(vr=!0),l.memoizedState=g,l.baseState=P,l.baseQueue=K,p.lastRenderedState=g}if(o=p.interleaved,o!==null){w=o;do _=w.lane,Fn.lanes|=_,$o|=_,w=w.next;while(w!==o)}else w===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function vf(o){var l=Di(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=o;var g=p.dispatch,w=p.pending,_=l.memoizedState;if(w!==null){p.pending=null;var P=w=w.next;do _=o(_,P.action),P=P.next;while(P!==w);pa(_,l.memoizedState)||(vr=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),p.lastRenderedState=_}return[_,g]}function dp(){}function pp(o,l){var p=Fn,g=Di(),w=l(),_=!pa(g.memoizedState,w);if(_&&(g.memoizedState=w,vr=!0),g=g.queue,gf(vp.bind(null,p,g,o),[o]),g.getSnapshot!==l||_||nn!==null&&nn.memoizedState.tag&1){if(p.flags|=2048,ks(9,mp.bind(null,p,g,w,l),void 0,null),Gn===null)throw Error(r(349));Ss&30||hp(p,l,w)}return w}function hp(o,l,p){o.flags|=16384,o={getSnapshot:l,value:p},l=Fn.updateQueue,l===null?(l={lastEffect:null,stores:null},Fn.updateQueue=l,l.stores=[o]):(p=l.stores,p===null?l.stores=[o]:p.push(o))}function mp(o,l,p,g){l.value=p,l.getSnapshot=g,gp(l)&&yp(o)}function vp(o,l,p){return p(function(){gp(l)&&yp(o)})}function gp(o){var l=o.getSnapshot;o=o.value;try{var p=l();return!pa(o,p)}catch{return!0}}function yp(o){var l=No(o,1);l!==null&&ai(l,o,1,-1)}function bp(o){var l=Sa();return typeof o=="function"&&(o=o()),l.memoizedState=l.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:o},l.queue=o,o=o.dispatch=_p.bind(null,Fn,o),[l.memoizedState,o]}function ks(o,l,p,g){return o={tag:o,create:l,destroy:p,deps:g,next:null},l=Fn.updateQueue,l===null?(l={lastEffect:null,stores:null},Fn.updateQueue=l,l.lastEffect=o.next=o):(p=l.lastEffect,p===null?l.lastEffect=o.next=o:(g=p.next,p.next=o,o.next=g,l.lastEffect=o)),o}function Sp(){return Di().memoizedState}function _s(o,l,p,g){var w=Sa();Fn.flags|=o,w.memoizedState=ks(1|l,p,void 0,g===void 0?null:g)}function Io(o,l,p,g){var w=Di();g=g===void 0?null:g;var _=void 0;if(we!==null){var P=we.memoizedState;if(_=P.destroy,g!==null&&xs(g,P.deps)){w.memoizedState=ks(l,p,_,g);return}}Fn.flags|=o,w.memoizedState=ks(1|l,p,_,g)}function Ep(o,l){return _s(8390656,8,o,l)}function gf(o,l){return Io(2048,8,o,l)}function xp(o,l){return Io(4,2,o,l)}function wp(o,l){return Io(4,4,o,l)}function sv(o,l){if(typeof l=="function")return o=o(),l(o),function(){l(null)};if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Iu(o,l,p){return p=p!=null?p.concat([o]):null,Io(4,4,sv.bind(null,l,o),p)}function Cp(){}function zu(o,l){var p=Di();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&xs(l,g[1])?g[0]:(p.memoizedState=[o,l],o)}function Ol(o,l){var p=Di();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&xs(l,g[1])?g[0]:(o=o(),p.memoizedState=[o,l],o)}function Ai(o,l,p){return Ss&21?(pa(p,l)||(p=Pd(),Fn.lanes|=p,$o|=p,o.baseState=!0),l):(o.baseState&&(o.baseState=!1,vr=!0),o.memoizedState=p)}function Yx(o,l){var p=bn;bn=p!==0&&4>p?p:4,o(!0);var g=lv.transition;lv.transition={};try{o(!1),l()}finally{bn=p,lv.transition=g}}function An(){return Di().memoizedState}function kp(o,l,p){var g=gr(o);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},ju(o))yf(l,p);else if(p=o1(o,l,p,g),p!==null){var w=ii();ai(p,o,g,w),h1(p,l,g)}}function _p(o,l,p){var g=gr(o),w={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(ju(o))yf(l,w);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var P=l.lastRenderedState,q=_(P,p);if(w.hasEagerState=!0,w.eagerState=q,pa(q,P)){var K=l.interleaved;K===null?(w.next=w,nv(l)):(w.next=K.next,K.next=w),l.interleaved=w;return}}catch{}finally{}p=o1(o,l,w,g),p!==null&&(w=ii(),ai(p,o,g,w),h1(p,l,g))}}function ju(o){var l=o.alternate;return o===Fn||l!==null&&l===Fn}function yf(o,l){oo=kt=!0;var p=o.pending;p===null?l.next=l:(l.next=p.next,p.next=l),o.pending=l}function h1(o,l,p){if(p&4194240){var g=l.lanes;g&=o.pendingLanes,p|=g,l.lanes=p,Vc(o,p)}}var Tp={readContext:lr,useCallback:In,useContext:In,useEffect:In,useImperativeHandle:In,useInsertionEffect:In,useLayoutEffect:In,useMemo:In,useReducer:In,useRef:In,useState:In,useDebugValue:In,useDeferredValue:In,useTransition:In,useMutableSource:In,useSyncExternalStore:In,useId:In,unstable_isNewReconciler:!1},Zx={readContext:lr,useCallback:function(o,l){return Sa().memoizedState=[o,l===void 0?null:l],o},useContext:lr,useEffect:Ep,useImperativeHandle:function(o,l,p){return p=p!=null?p.concat([o]):null,_s(4194308,4,sv.bind(null,l,o),p)},useLayoutEffect:function(o,l){return _s(4194308,4,o,l)},useInsertionEffect:function(o,l){return _s(4,2,o,l)},useMemo:function(o,l){var p=Sa();return l=l===void 0?null:l,o=o(),p.memoizedState=[o,l],o},useReducer:function(o,l,p){var g=Sa();return l=p!==void 0?p(l):l,g.memoizedState=g.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},g.queue=o,o=o.dispatch=kp.bind(null,Fn,o),[g.memoizedState,o]},useRef:function(o){var l=Sa();return o={current:o},l.memoizedState=o},useState:bp,useDebugValue:Cp,useDeferredValue:function(o){return Sa().memoizedState=o},useTransition:function(){var o=bp(!1),l=o[0];return o=Yx.bind(null,o[1]),Sa().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,p){var g=Fn,w=Sa();if(Nn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=l(),Gn===null)throw Error(r(349));Ss&30||hp(g,l,p)}w.memoizedState=p;var _={value:p,getSnapshot:l};return w.queue=_,Ep(vp.bind(null,g,_,o),[o]),g.flags|=2048,ks(9,mp.bind(null,g,_,p,l),void 0,null),p},useId:function(){var o=Sa(),l=Gn.identifierPrefix;if(Nn){var p=Po,g=Ur;p=(g&~(1<<32-ca(g)-1)).toString(32)+p,l=":"+l+"R"+p,p=Yi++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=Es++,l=":"+l+"r"+p.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},Kx={readContext:lr,useCallback:zu,useContext:lr,useEffect:gf,useImperativeHandle:Iu,useInsertionEffect:xp,useLayoutEffect:wp,useMemo:Ol,useReducer:mf,useRef:Sp,useState:function(){return mf(Cs)},useDebugValue:Cp,useDeferredValue:function(o){var l=Di();return Ai(l,we.memoizedState,o)},useTransition:function(){var o=mf(Cs)[0],l=Di().memoizedState;return[o,l]},useMutableSource:dp,useSyncExternalStore:pp,useId:An,unstable_isNewReconciler:!1},uv={readContext:lr,useCallback:zu,useContext:lr,useEffect:gf,useImperativeHandle:Iu,useInsertionEffect:xp,useLayoutEffect:wp,useMemo:Ol,useReducer:vf,useRef:Sp,useState:function(){return vf(Cs)},useDebugValue:Cp,useDeferredValue:function(o){var l=Di();return we===null?l.memoizedState=o:Ai(l,we.memoizedState,o)},useTransition:function(){var o=vf(Cs)[0],l=Di().memoizedState;return[o,l]},useMutableSource:dp,useSyncExternalStore:pp,useId:An,unstable_isNewReconciler:!1};function $u(o,l){try{var p="",g=l;do p+=We(g),g=g.return;while(g);var w=p}catch(_){w=`
57
+ Error generating stack: `+_.message+`
58
+ `+_.stack}return{value:o,source:l,stack:w,digest:null}}function bf(o,l,p){return{value:o,source:null,stack:p??null,digest:l??null}}function Rp(o,l){try{console.error(l.value)}catch(p){setTimeout(function(){throw p})}}var Gx=typeof WeakMap=="function"?WeakMap:Map;function m1(o,l,p){p=Fo(-1,p),p.tag=3,p.payload={element:null};var g=l.value;return p.callback=function(){Np||(Np=!0,As=g),Rp(o,l)},p}function Sf(o,l,p){p=Fo(-1,p),p.tag=3;var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var w=l.value;p.payload=function(){return g(w)},p.callback=function(){Rp(o,l)}}var _=o.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(p.callback=function(){Rp(o,l),typeof g!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var P=l.stack;this.componentDidCatch(l.value,{componentStack:P!==null?P:""})}),p}function v1(o,l,p){var g=o.pingCache;if(g===null){g=o.pingCache=new Gx;var w=new Set;g.set(l,w)}else w=g.get(l),w===void 0&&(w=new Set,g.set(l,w));w.has(p)||(w.add(p),o=rw.bind(null,o,l,p),l.then(o,o))}function cv(o){do{var l;if((l=o.tag===13)&&(l=o.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return o;o=o.return}while(o!==null);return null}function fv(o,l,p,g,w){return o.mode&1?(o.flags|=65536,o.lanes=w,o):(o===l?o.flags|=65536:(o.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=Fo(-1,1),l.tag=2,kl(p,l,1))),p.lanes|=1),o)}var Qx=V.ReactCurrentOwner,vr=!1;function wr(o,l,p,g){l.child=o===null?p1(l,null,p,g):Nu(l,o.child,p,g)}function Dl(o,l,p,g,w){p=p.render;var _=l.ref;return Ye(l,w),g=Rl(o,l,p,g,_,w),p=ws(),o!==null&&!vr?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~w,Vr(o,l,w)):(Nn&&p&&ep(l),l.flags|=1,wr(o,l,g,w),l.child)}function Op(o,l,p,g,w){if(o===null){var _=p.type;return typeof _=="function"&&!Dv(_)&&_.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=_,Mi(o,l,_,g,w)):(o=Up(p.type,null,g,l,l.mode,w),o.ref=l.ref,o.return=l,l.child=o)}if(_=o.child,!(o.lanes&w)){var P=_.memoizedProps;if(p=p.compare,p=p!==null?p:ef,p(P,g)&&o.ref===l.ref)return Vr(o,l,w)}return l.flags|=1,o=Pl(_,g),o.ref=l.ref,o.return=l,l.child=o}function Mi(o,l,p,g,w){if(o!==null){var _=o.memoizedProps;if(ef(_,g)&&o.ref===l.ref)if(vr=!1,l.pendingProps=g=_,(o.lanes&w)!==0)o.flags&131072&&(vr=!0);else return l.lanes=o.lanes,Vr(o,l,w)}return Uu(o,l,p,g,w)}function Ts(o,l,p){var g=l.pendingProps,w=g.children,_=o!==null?o.memoizedState:null;if(g.mode==="hidden")if(!(l.mode&1))l.memoizedState={baseLanes:0,cachePool:null,transitions:null},mn(Yu,Zi),Zi|=p;else{if(!(p&1073741824))return o=_!==null?_.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,mn(Yu,Zi),Zi|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=_!==null?_.baseLanes:p,mn(Yu,Zi),Zi|=g}else _!==null?(g=_.baseLanes|p,l.memoizedState=null):g=p,mn(Yu,Zi),Zi|=g;return wr(o,l,w,p),l.child}function jt(o,l){var p=l.ref;(o===null&&p!==null||o!==null&&o.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function Uu(o,l,p,g,w){var _=Vn(p)?ki:Dt.current;return _=ma(l,_),Ye(l,w),p=Rl(o,l,p,g,_,w),g=ws(),o!==null&&!vr?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~w,Vr(o,l,w)):(Nn&&g&&ep(l),l.flags|=1,wr(o,l,p,w),l.child)}function dv(o,l,p,g,w){if(Vn(p)){var _=!0;Jd(l)}else _=!1;if(Ye(l,w),l.stateNode===null)ti(o,l),u1(l,p,g),sp(l,p,g,w),g=!0;else if(o===null){var P=l.stateNode,q=l.memoizedProps;P.props=q;var K=P.context,de=p.contextType;typeof de=="object"&&de!==null?de=lr(de):(de=Vn(p)?ki:Dt.current,de=ma(l,de));var Me=p.getDerivedStateFromProps,Fe=typeof Me=="function"||typeof P.getSnapshotBeforeUpdate=="function";Fe||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(q!==g||K!==de)&&c1(l,P,g,de),Cl=!1;var Ae=l.memoizedState;P.state=Ae,_l(l,g,P,w),K=l.memoizedState,q!==g||Ae!==K||er.current||Cl?(typeof Me=="function"&&(av(l,p,Me,g),K=l.memoizedState),(q=Cl||s1(l,p,q,g,Ae,K,de))?(Fe||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(l.flags|=4194308)):(typeof P.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=K),P.props=g,P.state=K,P.context=de,g=q):(typeof P.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{P=l.stateNode,xr(o,l),q=l.memoizedProps,de=l.type===l.elementType?q:Wi(l.type,q),P.props=de,Fe=l.pendingProps,Ae=P.context,K=p.contextType,typeof K=="object"&&K!==null?K=lr(K):(K=Vn(p)?ki:Dt.current,K=ma(l,K));var Je=p.getDerivedStateFromProps;(Me=typeof Je=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(q!==Fe||Ae!==K)&&c1(l,P,g,K),Cl=!1,Ae=l.memoizedState,P.state=Ae,_l(l,g,P,w);var st=l.memoizedState;q!==Fe||Ae!==st||er.current||Cl?(typeof Je=="function"&&(av(l,p,Je,g),st=l.memoizedState),(de=Cl||s1(l,p,de,g,Ae,st,K)||!1)?(Me||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(g,st,K),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(g,st,K)),typeof P.componentDidUpdate=="function"&&(l.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof P.componentDidUpdate!="function"||q===o.memoizedProps&&Ae===o.memoizedState||(l.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||q===o.memoizedProps&&Ae===o.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=st),P.props=g,P.state=st,P.context=K,g=de):(typeof P.componentDidUpdate!="function"||q===o.memoizedProps&&Ae===o.memoizedState||(l.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||q===o.memoizedProps&&Ae===o.memoizedState||(l.flags|=1024),g=!1)}return g1(o,l,p,g,_,w)}function g1(o,l,p,g,w,_){jt(o,l);var P=(l.flags&128)!==0;if(!g&&!P)return w&&n1(l,p,!1),Vr(o,l,_);g=l.stateNode,Qx.current=l;var q=P&&typeof p.getDerivedStateFromError!="function"?null:g.render();return l.flags|=1,o!==null&&P?(l.child=Nu(l,o.child,null,_),l.child=Nu(l,null,q,_)):wr(o,l,q,_),l.memoizedState=g.state,w&&n1(l,p,!0),l.child}function y1(o){var l=o.stateNode;l.pendingContext?Sl(o,l.pendingContext,l.pendingContext!==l.context):l.context&&Sl(o,l.context,!1),ov(o,l.containerInfo)}function Dp(o,l,p,g,w){return Zn(),Jm(w),l.flags|=256,wr(o,l,p,g),l.child}var Rs={dehydrated:null,treeContext:null,retryLane:0};function pv(o){return{baseLanes:o,cachePool:null,transitions:null}}function hv(o,l,p){var g=l.pendingProps,w=wt.current,_=!1,P=(l.flags&128)!==0,q;if((q=P)||(q=o!==null&&o.memoizedState===null?!1:(w&2)!==0),q?(_=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(w|=1),mn(wt,w&1),o===null)return np(l),o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(l.mode&1?o.data==="$!"?l.lanes=8:l.lanes=1073741824:l.lanes=1,null):(P=g.children,o=g.fallback,_?(g=l.mode,_=l.child,P={mode:"hidden",children:P},!(g&1)&&_!==null?(_.childLanes=0,_.pendingProps=P):_=Df(P,g,0,null),o=Fs(o,g,p,null),_.return=l,o.return=l,_.sibling=o,l.child=_,l.child.memoizedState=pv(p),l.memoizedState=Rs,o):mv(l,P));if(w=o.memoizedState,w!==null&&(q=w.dehydrated,q!==null))return Xx(o,l,P,g,q,w,p);if(_){_=g.fallback,P=l.mode,w=o.child,q=w.sibling;var K={mode:"hidden",children:g.children};return!(P&1)&&l.child!==w?(g=l.child,g.childLanes=0,g.pendingProps=K,l.deletions=null):(g=Pl(w,K),g.subtreeFlags=w.subtreeFlags&14680064),q!==null?_=Pl(q,_):(_=Fs(_,P,p,null),_.flags|=2),_.return=l,g.return=l,g.sibling=_,l.child=g,g=_,_=l.child,P=o.child.memoizedState,P=P===null?pv(p):{baseLanes:P.baseLanes|p,cachePool:null,transitions:P.transitions},_.memoizedState=P,_.childLanes=o.childLanes&~p,l.memoizedState=Rs,g}return _=o.child,o=_.sibling,g=Pl(_,{mode:"visible",children:g.children}),!(l.mode&1)&&(g.lanes=p),g.return=l,g.sibling=null,o!==null&&(p=l.deletions,p===null?(l.deletions=[o],l.flags|=16):p.push(o)),l.child=g,l.memoizedState=null,g}function mv(o,l){return l=Df({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function Bu(o,l,p,g){return g!==null&&Jm(g),Nu(l,o.child,null,p),o=mv(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Xx(o,l,p,g,w,_,P){if(p)return l.flags&256?(l.flags&=-257,g=bf(Error(r(422))),Bu(o,l,P,g)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(_=g.fallback,w=l.mode,g=Df({mode:"visible",children:g.children},w,0,null),_=Fs(_,w,P,null),_.flags|=2,g.return=l,_.return=l,g.sibling=_,l.child=g,l.mode&1&&Nu(l,o.child,null,P),l.child.memoizedState=pv(P),l.memoizedState=Rs,_);if(!(l.mode&1))return Bu(o,l,P,null);if(w.data==="$!"){if(g=w.nextSibling&&w.nextSibling.dataset,g)var q=g.dgst;return g=q,_=Error(r(419)),g=bf(_,g,void 0),Bu(o,l,P,g)}if(q=(P&o.childLanes)!==0,vr||q){if(g=Gn,g!==null){switch(P&-P){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=w&(g.suspendedLanes|P)?0:w,w!==0&&w!==_.retryLane&&(_.retryLane=w,No(o,w),ai(g,o,w,-1))}return Tv(),g=bf(Error(r(421))),Bu(o,l,P,g)}return w.data==="$?"?(l.flags|=128,l.child=o.child,l=iw.bind(null,o),w._reactRetry=l,null):(o=_.treeContext,Oi=Va(w.nextSibling),qi=l,Nn=!0,ya=null,o!==null&&(Ri[ei++]=Ur,Ri[ei++]=Po,Ri[ei++]=ga,Ur=o.id,Po=o.overflow,ga=l),l=mv(l,g.children),l.flags|=4096,l)}function vv(o,l,p){o.lanes|=l;var g=o.alternate;g!==null&&(g.lanes|=l),Pr(o.return,l,p)}function Ap(o,l,p,g,w){var _=o.memoizedState;_===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:w}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=g,_.tail=p,_.tailMode=w)}function gv(o,l,p){var g=l.pendingProps,w=g.revealOrder,_=g.tail;if(wr(o,l,g.children,p),g=wt.current,g&2)g=g&1|2,l.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&vv(o,p,l);else if(o.tag===19)vv(o,p,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}g&=1}if(mn(wt,g),!(l.mode&1))l.memoizedState=null;else switch(w){case"forwards":for(p=l.child,w=null;p!==null;)o=p.alternate,o!==null&&Kn(o)===null&&(w=p),p=p.sibling;p=w,p===null?(w=l.child,l.child=null):(w=p.sibling,p.sibling=null),Ap(l,!1,w,p,_);break;case"backwards":for(p=null,w=l.child,l.child=null;w!==null;){if(o=w.alternate,o!==null&&Kn(o)===null){l.child=w;break}o=w.sibling,w.sibling=p,p=w,w=o}Ap(l,!0,p,null,_);break;case"together":Ap(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function ti(o,l){!(l.mode&1)&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function Vr(o,l,p){if(o!==null&&(l.dependencies=o.dependencies),$o|=l.lanes,!(p&l.childLanes))return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,p=Pl(o,o.pendingProps),l.child=p,p.return=l;o.sibling!==null;)o=o.sibling,p=p.sibling=Pl(o,o.pendingProps),p.return=l;p.sibling=null}return l.child}function zo(o,l,p){switch(l.tag){case 3:y1(l),Zn();break;case 5:Et(l);break;case 1:Vn(l.type)&&Jd(l);break;case 4:ov(l,l.stateNode.containerInfo);break;case 10:var g=l.type._context,w=l.memoizedProps.value;mn(ao,g._currentValue),g._currentValue=w;break;case 13:if(g=l.memoizedState,g!==null)return g.dehydrated!==null?(mn(wt,wt.current&1),l.flags|=128,null):p&l.child.childLanes?hv(o,l,p):(mn(wt,wt.current&1),o=Vr(o,l,p),o!==null?o.sibling:null);mn(wt,wt.current&1);break;case 19:if(g=(p&l.childLanes)!==0,o.flags&128){if(g)return gv(o,l,p);l.flags|=128}if(w=l.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),mn(wt,wt.current),g)break;return null;case 22:case 23:return l.lanes=0,Ts(o,l,p)}return Vr(o,l,p)}var Ef,Os,Ea,Cr;Ef=function(o,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)o.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Os=function(){},Ea=function(o,l,p,g){var w=o.memoizedProps;if(w!==g){o=l.stateNode,bs(Ha.current);var _=null;switch(p){case"input":w=be(o,w),g=be(o,g),_=[];break;case"select":w=L({},w,{value:void 0}),g=L({},g,{value:void 0}),_=[];break;case"textarea":w=dr(o,w),g=dr(o,g),_=[];break;default:typeof w.onClick!="function"&&typeof g.onClick=="function"&&(o.onclick=Xd)}$n(p,g);var P;p=null;for(de in w)if(!g.hasOwnProperty(de)&&w.hasOwnProperty(de)&&w[de]!=null)if(de==="style"){var q=w[de];for(P in q)q.hasOwnProperty(P)&&(p||(p={}),p[P]="")}else de!=="dangerouslySetInnerHTML"&&de!=="children"&&de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&de!=="autoFocus"&&(s.hasOwnProperty(de)?_||(_=[]):(_=_||[]).push(de,null));for(de in g){var K=g[de];if(q=w!=null?w[de]:void 0,g.hasOwnProperty(de)&&K!==q&&(K!=null||q!=null))if(de==="style")if(q){for(P in q)!q.hasOwnProperty(P)||K&&K.hasOwnProperty(P)||(p||(p={}),p[P]="");for(P in K)K.hasOwnProperty(P)&&q[P]!==K[P]&&(p||(p={}),p[P]=K[P])}else p||(_||(_=[]),_.push(de,p)),p=K;else de==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,q=q?q.__html:void 0,K!=null&&q!==K&&(_=_||[]).push(de,K)):de==="children"?typeof K!="string"&&typeof K!="number"||(_=_||[]).push(de,""+K):de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&(s.hasOwnProperty(de)?(K!=null&&de==="onScroll"&&Dn("scroll",o),_||q===K||(_=[])):(_=_||[]).push(de,K))}p&&(_=_||[]).push("style",p);var de=_;(l.updateQueue=de)&&(l.flags|=4)}},Cr=function(o,l,p,g){p!==g&&(l.flags|=4)};function xf(o,l){if(!Nn)switch(o.tailMode){case"hidden":l=o.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?o.tail=null:p.sibling=null;break;case"collapsed":p=o.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:g.sibling=null}}function ni(o){var l=o.alternate!==null&&o.alternate.child===o.child,p=0,g=0;if(l)for(var w=o.child;w!==null;)p|=w.lanes|w.childLanes,g|=w.subtreeFlags&14680064,g|=w.flags&14680064,w.return=o,w=w.sibling;else for(w=o.child;w!==null;)p|=w.lanes|w.childLanes,g|=w.subtreeFlags,g|=w.flags,w.return=o,w=w.sibling;return o.subtreeFlags|=g,o.childLanes=p,l}function Jx(o,l,p){var g=l.pendingProps;switch(Qm(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ni(l),null;case 1:return Vn(l.type)&&va(),ni(l),null;case 3:return g=l.stateNode,Tl(),dn(er),dn(Dt),cp(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(o===null||o.child===null)&&(rp(l)?l.flags|=4:o===null||o.memoizedState.isDehydrated&&!(l.flags&256)||(l.flags|=1024,ya!==null&&(Of(ya),ya=null))),Os(o,l),ni(l),null;case 5:Zt(l);var w=bs(Fu.current);if(p=l.type,o!==null&&l.stateNode!=null)Ea(o,l,p,g,w),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!g){if(l.stateNode===null)throw Error(r(166));return ni(l),null}if(o=bs(Ha.current),rp(l)){g=l.stateNode,p=l.type;var _=l.memoizedProps;switch(g[ro]=l,g[vs]=_,o=(l.mode&1)!==0,p){case"dialog":Dn("cancel",g),Dn("close",g);break;case"iframe":case"object":case"embed":Dn("load",g);break;case"video":case"audio":for(w=0;w<af.length;w++)Dn(af[w],g);break;case"source":Dn("error",g);break;case"img":case"image":case"link":Dn("error",g),Dn("load",g);break;case"details":Dn("toggle",g);break;case"input":ht(g,_),Dn("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!_.multiple},Dn("invalid",g);break;case"textarea":Jn(g,_),Dn("invalid",g)}$n(p,_),w=null;for(var P in _)if(_.hasOwnProperty(P)){var q=_[P];P==="children"?typeof q=="string"?g.textContent!==q&&(_.suppressHydrationWarning!==!0&&Qd(g.textContent,q,o),w=["children",q]):typeof q=="number"&&g.textContent!==""+q&&(_.suppressHydrationWarning!==!0&&Qd(g.textContent,q,o),w=["children",""+q]):s.hasOwnProperty(P)&&q!=null&&P==="onScroll"&&Dn("scroll",g)}switch(p){case"input":Le(g),Gt(g,_,!0);break;case"textarea":Le(g),Yn(g);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(g.onclick=Xd)}g=w,l.updateQueue=g,g!==null&&(l.flags|=4)}else{P=w.nodeType===9?w:w.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Ln(p)),o==="http://www.w3.org/1999/xhtml"?p==="script"?(o=P.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof g.is=="string"?o=P.createElement(p,{is:g.is}):(o=P.createElement(p),p==="select"&&(P=o,g.multiple?P.multiple=!0:g.size&&(P.size=g.size))):o=P.createElementNS(o,p),o[ro]=l,o[vs]=g,Ef(o,l,!1,!1),l.stateNode=o;e:{switch(P=It(p,g),p){case"dialog":Dn("cancel",o),Dn("close",o),w=g;break;case"iframe":case"object":case"embed":Dn("load",o),w=g;break;case"video":case"audio":for(w=0;w<af.length;w++)Dn(af[w],o);w=g;break;case"source":Dn("error",o),w=g;break;case"img":case"image":case"link":Dn("error",o),Dn("load",o),w=g;break;case"details":Dn("toggle",o),w=g;break;case"input":ht(o,g),w=be(o,g),Dn("invalid",o);break;case"option":w=g;break;case"select":o._wrapperState={wasMultiple:!!g.multiple},w=L({},g,{value:void 0}),Dn("invalid",o);break;case"textarea":Jn(o,g),w=dr(o,g),Dn("invalid",o);break;default:w=g}$n(p,w),q=w;for(_ in q)if(q.hasOwnProperty(_)){var K=q[_];_==="style"?Yt(o,K):_==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&mt(o,K)):_==="children"?typeof K=="string"?(p!=="textarea"||K!=="")&&qt(o,K):typeof K=="number"&&qt(o,""+K):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(s.hasOwnProperty(_)?K!=null&&_==="onScroll"&&Dn("scroll",o):K!=null&&N(o,_,K,P))}switch(p){case"input":Le(o),Gt(o,g,!1);break;case"textarea":Le(o),Yn(o);break;case"option":g.value!=null&&o.setAttribute("value",""+$e(g.value));break;case"select":o.multiple=!!g.multiple,_=g.value,_!=null?or(o,!!g.multiple,_,!1):g.defaultValue!=null&&or(o,!!g.multiple,g.defaultValue,!0);break;default:typeof w.onClick=="function"&&(o.onclick=Xd)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return ni(l),null;case 6:if(o&&l.stateNode!=null)Cr(o,l,o.memoizedProps,g);else{if(typeof g!="string"&&l.stateNode===null)throw Error(r(166));if(p=bs(Fu.current),bs(Ha.current),rp(l)){if(g=l.stateNode,p=l.memoizedProps,g[ro]=l,(_=g.nodeValue!==p)&&(o=qi,o!==null))switch(o.tag){case 3:Qd(g.nodeValue,p,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Qd(g.nodeValue,p,(o.mode&1)!==0)}_&&(l.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[ro]=l,l.stateNode=g}return ni(l),null;case 13:if(dn(wt),g=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Nn&&Oi!==null&&l.mode&1&&!(l.flags&128))a1(),Zn(),l.flags|=98560,_=!1;else if(_=rp(l),g!==null&&g.dehydrated!==null){if(o===null){if(!_)throw Error(r(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[ro]=l}else Zn(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;ni(l),_=!1}else ya!==null&&(Of(ya),ya=null),_=!0;if(!_)return l.flags&65536?l:null}return l.flags&128?(l.lanes=p,l):(g=g!==null,g!==(o!==null&&o.memoizedState!==null)&&g&&(l.child.flags|=8192,l.mode&1&&(o===null||wt.current&1?_r===0&&(_r=3):Tv())),l.updateQueue!==null&&(l.flags|=4),ni(l),null);case 4:return Tl(),Os(o,l),o===null&&Au(l.stateNode.containerInfo),ni(l),null;case 10:return wl(l.type._context),ni(l),null;case 17:return Vn(l.type)&&va(),ni(l),null;case 19:if(dn(wt),_=l.memoizedState,_===null)return ni(l),null;if(g=(l.flags&128)!==0,P=_.rendering,P===null)if(g)xf(_,!1);else{if(_r!==0||o!==null&&o.flags&128)for(o=l.child;o!==null;){if(P=Kn(o),P!==null){for(l.flags|=128,xf(_,!1),g=P.updateQueue,g!==null&&(l.updateQueue=g,l.flags|=4),l.subtreeFlags=0,g=p,p=l.child;p!==null;)_=p,o=g,_.flags&=14680066,P=_.alternate,P===null?(_.childLanes=0,_.lanes=o,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=P.childLanes,_.lanes=P.lanes,_.child=P.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=P.memoizedProps,_.memoizedState=P.memoizedState,_.updateQueue=P.updateQueue,_.type=P.type,o=P.dependencies,_.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),p=p.sibling;return mn(wt,wt.current&1|2),l.child}o=o.sibling}_.tail!==null&&un()>Ku&&(l.flags|=128,g=!0,xf(_,!1),l.lanes=4194304)}else{if(!g)if(o=Kn(P),o!==null){if(l.flags|=128,g=!0,p=o.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),xf(_,!0),_.tail===null&&_.tailMode==="hidden"&&!P.alternate&&!Nn)return ni(l),null}else 2*un()-_.renderingStartTime>Ku&&p!==1073741824&&(l.flags|=128,g=!0,xf(_,!1),l.lanes=4194304);_.isBackwards?(P.sibling=l.child,l.child=P):(p=_.last,p!==null?p.sibling=P:l.child=P,_.last=P)}return _.tail!==null?(l=_.tail,_.rendering=l,_.tail=l.sibling,_.renderingStartTime=un(),l.sibling=null,p=wt.current,mn(wt,g?p&1|2:p&1),l):(ni(l),null);case 22:case 23:return _v(),g=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==g&&(l.flags|=8192),g&&l.mode&1?Zi&1073741824&&(ni(l),l.subtreeFlags&6&&(l.flags|=8192)):ni(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function yv(o,l){switch(Qm(l),l.tag){case 1:return Vn(l.type)&&va(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Tl(),dn(er),dn(Dt),cp(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Zt(l),null;case 13:if(dn(wt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Zn()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return dn(wt),null;case 4:return Tl(),null;case 10:return wl(l.type._context),null;case 22:case 23:return _v(),null;case 24:return null;default:return null}}var wf=!1,kr=!1,b1=typeof WeakSet=="function"?WeakSet:Set,at=null;function Vu(o,l){var p=o.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){nr(o,l,g)}else p.current=null}function Cf(o,l,p){try{p()}catch(g){nr(o,l,g)}}var S1=!1;function E1(o,l){if(Vm=us,o=Wd(),Do(o)){if("selectionStart"in o)var p={start:o.selectionStart,end:o.selectionEnd};else e:{p=(p=o.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var w=g.anchorOffset,_=g.focusNode;g=g.focusOffset;try{p.nodeType,_.nodeType}catch{p=null;break e}var P=0,q=-1,K=-1,de=0,Me=0,Fe=o,Ae=null;t:for(;;){for(var Je;Fe!==p||w!==0&&Fe.nodeType!==3||(q=P+w),Fe!==_||g!==0&&Fe.nodeType!==3||(K=P+g),Fe.nodeType===3&&(P+=Fe.nodeValue.length),(Je=Fe.firstChild)!==null;)Ae=Fe,Fe=Je;for(;;){if(Fe===o)break t;if(Ae===p&&++de===w&&(q=P),Ae===_&&++Me===g&&(K=P),(Je=Fe.nextSibling)!==null)break;Fe=Ae,Ae=Fe.parentNode}Fe=Je}p=q===-1||K===-1?null:{start:q,end:K}}else p=null}p=p||{start:0,end:0}}else p=null;for(hs={focusedElem:o,selectionRange:p},us=!1,at=l;at!==null;)if(l=at,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,at=o;else for(;at!==null;){l=at;try{var st=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(st!==null){var ft=st.memoizedProps,sr=st.memoizedState,re=l.stateNode,Q=re.getSnapshotBeforeUpdate(l.elementType===l.type?ft:Wi(l.type,ft),sr);re.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var le=l.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ve){nr(l,l.return,Ve)}if(o=l.sibling,o!==null){o.return=l.return,at=o;break}at=l.return}return st=S1,S1=!1,st}function kf(o,l,p){var g=l.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var w=g=g.next;do{if((w.tag&o)===o){var _=w.destroy;w.destroy=void 0,_!==void 0&&Cf(l,p,_)}w=w.next}while(w!==g)}}function _f(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&o)===o){var g=p.create;p.destroy=g()}p=p.next}while(p!==l)}}function bv(o){var l=o.ref;if(l!==null){var p=o.stateNode;switch(o.tag){case 5:o=p;break;default:o=p}typeof l=="function"?l(o):l.current=o}}function Sv(o){var l=o.alternate;l!==null&&(o.alternate=null,Sv(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[ro],delete l[vs],delete l[Wm],delete l[Wx],delete l[Ym])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function x1(o){return o.tag===5||o.tag===3||o.tag===4}function Mp(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||x1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Hu(o,l,p){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(o,l):p.insertBefore(o,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(o,p)):(l=p,l.appendChild(o)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=Xd));else if(g!==4&&(o=o.child,o!==null))for(Hu(o,l,p),o=o.sibling;o!==null;)Hu(o,l,p),o=o.sibling}function lo(o,l,p){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?p.insertBefore(o,l):p.appendChild(o);else if(g!==4&&(o=o.child,o!==null))for(lo(o,l,p),o=o.sibling;o!==null;)lo(o,l,p),o=o.sibling}var Hn=null,Nr=!1;function xa(o,l,p){for(p=p.child;p!==null;)qu(o,l,p),p=p.sibling}function qu(o,l,p){if(za&&typeof za.onCommitFiberUnmount=="function")try{za.onCommitFiberUnmount(Bc,p)}catch{}switch(p.tag){case 5:kr||Vu(p,l);case 6:var g=Hn,w=Nr;Hn=null,xa(o,l,p),Hn=g,Nr=w,Hn!==null&&(Nr?(o=Hn,p=p.stateNode,o.nodeType===8?o.parentNode.removeChild(p):o.removeChild(p)):Hn.removeChild(p.stateNode));break;case 18:Hn!==null&&(Nr?(o=Hn,p=p.stateNode,o.nodeType===8?gl(o.parentNode,p):o.nodeType===1&&gl(o,p),Yc(o)):gl(Hn,p.stateNode));break;case 4:g=Hn,w=Nr,Hn=p.stateNode.containerInfo,Nr=!0,xa(o,l,p),Hn=g,Nr=w;break;case 0:case 11:case 14:case 15:if(!kr&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){w=g=g.next;do{var _=w,P=_.destroy;_=_.tag,P!==void 0&&(_&2||_&4)&&Cf(p,l,P),w=w.next}while(w!==g)}xa(o,l,p);break;case 1:if(!kr&&(Vu(p,l),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(q){nr(p,l,q)}xa(o,l,p);break;case 21:xa(o,l,p);break;case 22:p.mode&1?(kr=(g=kr)||p.memoizedState!==null,xa(o,l,p),kr=g):xa(o,l,p);break;default:xa(o,l,p)}}function jo(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var p=o.stateNode;p===null&&(p=o.stateNode=new b1),l.forEach(function(g){var w=aw.bind(null,o,g);p.has(g)||(p.add(g),g.then(w,w))})}}function qa(o,l){var p=l.deletions;if(p!==null)for(var g=0;g<p.length;g++){var w=p[g];try{var _=o,P=l,q=P;e:for(;q!==null;){switch(q.tag){case 5:Hn=q.stateNode,Nr=!1;break e;case 3:Hn=q.stateNode.containerInfo,Nr=!0;break e;case 4:Hn=q.stateNode.containerInfo,Nr=!0;break e}q=q.return}if(Hn===null)throw Error(r(160));qu(_,P,w),Hn=null,Nr=!1;var K=w.alternate;K!==null&&(K.return=null),w.return=null}catch(de){nr(w,l,de)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)w1(l,o),l=l.sibling}function w1(o,l){var p=o.alternate,g=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(qa(l,o),so(o),g&4){try{kf(3,o,o.return),_f(3,o)}catch(ft){nr(o,o.return,ft)}try{kf(5,o,o.return)}catch(ft){nr(o,o.return,ft)}}break;case 1:qa(l,o),so(o),g&512&&p!==null&&Vu(p,p.return);break;case 5:if(qa(l,o),so(o),g&512&&p!==null&&Vu(p,p.return),o.flags&32){var w=o.stateNode;try{qt(w,"")}catch(ft){nr(o,o.return,ft)}}if(g&4&&(w=o.stateNode,w!=null)){var _=o.memoizedProps,P=p!==null?p.memoizedProps:_,q=o.type,K=o.updateQueue;if(o.updateQueue=null,K!==null)try{q==="input"&&_.type==="radio"&&_.name!=null&&He(w,_),It(q,P);var de=It(q,_);for(P=0;P<K.length;P+=2){var Me=K[P],Fe=K[P+1];Me==="style"?Yt(w,Fe):Me==="dangerouslySetInnerHTML"?mt(w,Fe):Me==="children"?qt(w,Fe):N(w,Me,Fe,de)}switch(q){case"input":Rt(w,_);break;case"textarea":pr(w,_);break;case"select":var Ae=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!_.multiple;var Je=_.value;Je!=null?or(w,!!_.multiple,Je,!1):Ae!==!!_.multiple&&(_.defaultValue!=null?or(w,!!_.multiple,_.defaultValue,!0):or(w,!!_.multiple,_.multiple?[]:"",!1))}w[vs]=_}catch(ft){nr(o,o.return,ft)}}break;case 6:if(qa(l,o),so(o),g&4){if(o.stateNode===null)throw Error(r(162));w=o.stateNode,_=o.memoizedProps;try{w.nodeValue=_}catch(ft){nr(o,o.return,ft)}}break;case 3:if(qa(l,o),so(o),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Yc(l.containerInfo)}catch(ft){nr(o,o.return,ft)}break;case 4:qa(l,o),so(o);break;case 13:qa(l,o),so(o),w=o.child,w.flags&8192&&(_=w.memoizedState!==null,w.stateNode.isHidden=_,!_||w.alternate!==null&&w.alternate.memoizedState!==null||(wv=un())),g&4&&jo(o);break;case 22:if(Me=p!==null&&p.memoizedState!==null,o.mode&1?(kr=(de=kr)||Me,qa(l,o),kr=de):qa(l,o),so(o),g&8192){if(de=o.memoizedState!==null,(o.stateNode.isHidden=de)&&!Me&&o.mode&1)for(at=o,Me=o.child;Me!==null;){for(Fe=at=Me;at!==null;){switch(Ae=at,Je=Ae.child,Ae.tag){case 0:case 11:case 14:case 15:kf(4,Ae,Ae.return);break;case 1:Vu(Ae,Ae.return);var st=Ae.stateNode;if(typeof st.componentWillUnmount=="function"){g=Ae,p=Ae.return;try{l=g,st.props=l.memoizedProps,st.state=l.memoizedState,st.componentWillUnmount()}catch(ft){nr(g,p,ft)}}break;case 5:Vu(Ae,Ae.return);break;case 22:if(Ae.memoizedState!==null){Ev(Fe);continue}}Je!==null?(Je.return=Ae,at=Je):Ev(Fe)}Me=Me.sibling}e:for(Me=null,Fe=o;;){if(Fe.tag===5){if(Me===null){Me=Fe;try{w=Fe.stateNode,de?(_=w.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(q=Fe.stateNode,K=Fe.memoizedProps.style,P=K!=null&&K.hasOwnProperty("display")?K.display:null,q.style.display=Ot("display",P))}catch(ft){nr(o,o.return,ft)}}}else if(Fe.tag===6){if(Me===null)try{Fe.stateNode.nodeValue=de?"":Fe.memoizedProps}catch(ft){nr(o,o.return,ft)}}else if((Fe.tag!==22&&Fe.tag!==23||Fe.memoizedState===null||Fe===o)&&Fe.child!==null){Fe.child.return=Fe,Fe=Fe.child;continue}if(Fe===o)break e;for(;Fe.sibling===null;){if(Fe.return===null||Fe.return===o)break e;Me===Fe&&(Me=null),Fe=Fe.return}Me===Fe&&(Me=null),Fe.sibling.return=Fe.return,Fe=Fe.sibling}}break;case 19:qa(l,o),so(o),g&4&&jo(o);break;case 21:break;default:qa(l,o),so(o)}}function so(o){var l=o.flags;if(l&2){try{e:{for(var p=o.return;p!==null;){if(x1(p)){var g=p;break e}p=p.return}throw Error(r(160))}switch(g.tag){case 5:var w=g.stateNode;g.flags&32&&(qt(w,""),g.flags&=-33);var _=Mp(o);lo(o,_,w);break;case 3:case 4:var P=g.stateNode.containerInfo,q=Mp(o);Hu(o,q,P);break;default:throw Error(r(161))}}catch(K){nr(o,o.return,K)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function C1(o,l,p){at=o,Wu(o)}function Wu(o,l,p){for(var g=(o.mode&1)!==0;at!==null;){var w=at,_=w.child;if(w.tag===22&&g){var P=w.memoizedState!==null||wf;if(!P){var q=w.alternate,K=q!==null&&q.memoizedState!==null||kr;q=wf;var de=kr;if(wf=P,(kr=K)&&!de)for(at=w;at!==null;)P=at,K=P.child,P.tag===22&&P.memoizedState!==null?_1(w):K!==null?(K.return=P,at=K):_1(w);for(;_!==null;)at=_,Wu(_),_=_.sibling;at=w,wf=q,kr=de}k1(o)}else w.subtreeFlags&8772&&_!==null?(_.return=w,at=_):k1(o)}}function k1(o){for(;at!==null;){var l=at;if(l.flags&8772){var p=l.alternate;try{if(l.flags&8772)switch(l.tag){case 0:case 11:case 15:kr||_f(5,l);break;case 1:var g=l.stateNode;if(l.flags&4&&!kr)if(p===null)g.componentDidMount();else{var w=l.elementType===l.type?p.memoizedProps:Wi(l.type,p.memoizedProps);g.componentDidUpdate(w,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var _=l.updateQueue;_!==null&&ys(l,_,g);break;case 3:var P=l.updateQueue;if(P!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}ys(l,P,p)}break;case 5:var q=l.stateNode;if(p===null&&l.flags&4){p=q;var K=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":K.autoFocus&&p.focus();break;case"img":K.src&&(p.src=K.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var de=l.alternate;if(de!==null){var Me=de.memoizedState;if(Me!==null){var Fe=Me.dehydrated;Fe!==null&&Yc(Fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}kr||l.flags&512&&bv(l)}catch(Ae){nr(l,l.return,Ae)}}if(l===o){at=null;break}if(p=l.sibling,p!==null){p.return=l.return,at=p;break}at=l.return}}function Ev(o){for(;at!==null;){var l=at;if(l===o){at=null;break}var p=l.sibling;if(p!==null){p.return=l.return,at=p;break}at=l.return}}function _1(o){for(;at!==null;){var l=at;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{_f(4,l)}catch(K){nr(l,p,K)}break;case 1:var g=l.stateNode;if(typeof g.componentDidMount=="function"){var w=l.return;try{g.componentDidMount()}catch(K){nr(l,w,K)}}var _=l.return;try{bv(l)}catch(K){nr(l,_,K)}break;case 5:var P=l.return;try{bv(l)}catch(K){nr(l,P,K)}}}catch(K){nr(l,l.return,K)}if(l===o){at=null;break}var q=l.sibling;if(q!==null){q.return=l.return,at=q;break}at=l.return}}var Lp=Math.ceil,Tf=V.ReactCurrentDispatcher,xv=V.ReactCurrentOwner,ri=V.ReactCurrentBatchConfig,Jt=0,Gn=null,tr=null,Fr=0,Zi=0,Yu=zt(0),_r=0,Rf=null,$o=0,Pp=0,Zu=0,Ds=null,fi=null,wv=0,Ku=1/0,Uo=null,Np=!1,As=null,uo=null,Al=!1,Ml=null,Fp=0,Gu=0,Ip=null,Ms=-1,Ls=0;function ii(){return Jt&6?un():Ms!==-1?Ms:Ms=un()}function gr(o){return o.mode&1?Jt&2&&Fr!==0?Fr&-Fr:ip.transition!==null?(Ls===0&&(Ls=Pd()),Ls):(o=bn,o!==0||(o=window.event,o=o===void 0?16:wm(o.type)),o):1}function ai(o,l,p,g){if(50<Gu)throw Gu=0,Ip=null,Error(r(185));ss(o,p,g),(!(Jt&2)||o!==Gn)&&(o===Gn&&(!(Jt&2)&&(Pp|=p),_r===4&&wa(o,Fr)),oi(o,g),p===1&&Jt===0&&!(l.mode&1)&&(Ku=un()+500,Lr&&_i()))}function oi(o,l){var p=o.callbackNode;Ld(o,l);var g=ja(o,o===Gn?Fr:0);if(g===0)p!==null&&ci(p),o.callbackNode=null,o.callbackPriority=0;else if(l=g&-g,o.callbackPriority!==l){if(p!=null&&ci(p),l===1)o.tag===0?Km(T1.bind(null,o)):Zm(T1.bind(null,o)),qm(function(){!(Jt&6)&&_i()}),p=null;else{switch(Sm(g)){case 1:p=_o;break;case 4:p=Xt;break;case 16:p=dl;break;case 536870912:p=vm;break;default:p=dl}p=Ov(p,Qu.bind(null,o))}o.callbackPriority=l,o.callbackNode=p}}function Qu(o,l){if(Ms=-1,Ls=0,Jt&6)throw Error(r(327));var p=o.callbackNode;if(Ju()&&o.callbackNode!==p)return null;var g=ja(o,o===Gn?Fr:0);if(g===0)return null;if(g&30||g&o.expiredLanes||l)l=jp(o,g);else{l=g;var w=Jt;Jt|=2;var _=zp();(Gn!==o||Fr!==l)&&(Uo=null,Ku=un()+500,Ps(o,l));do try{tw();break}catch(q){R1(o,q)}while(1);tv(),Tf.current=_,Jt=w,tr!==null?l=0:(Gn=null,Fr=0,l=_r)}if(l!==0){if(l===2&&(w=ym(o),w!==0&&(g=w,l=Cv(o,w))),l===1)throw p=Rf,Ps(o,0),wa(o,g),oi(o,un()),p;if(l===6)wa(o,g);else{if(w=o.current.alternate,!(g&30)&&!kv(w)&&(l=jp(o,g),l===2&&(_=ym(o),_!==0&&(g=_,l=Cv(o,_))),l===1))throw p=Rf,Ps(o,0),wa(o,g),oi(o,un()),p;switch(o.finishedWork=w,o.finishedLanes=g,l){case 0:case 1:throw Error(r(345));case 2:Ns(o,fi,Uo);break;case 3:if(wa(o,g),(g&130023424)===g&&(l=wv+500-un(),10<l)){if(ja(o,0)!==0)break;if(w=o.suspendedLanes,(w&g)!==g){ii(),o.pingedLanes|=o.suspendedLanes&w;break}o.timeoutHandle=ms(Ns.bind(null,o,fi,Uo),l);break}Ns(o,fi,Uo);break;case 4:if(wa(o,g),(g&4194240)===g)break;for(l=o.eventTimes,w=-1;0<g;){var P=31-ca(g);_=1<<P,P=l[P],P>w&&(w=P),g&=~_}if(g=w,g=un()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*Lp(g/1960))-g,10<g){o.timeoutHandle=ms(Ns.bind(null,o,fi,Uo),g);break}Ns(o,fi,Uo);break;case 5:Ns(o,fi,Uo);break;default:throw Error(r(329))}}}return oi(o,un()),o.callbackNode===p?Qu.bind(null,o):null}function Cv(o,l){var p=Ds;return o.current.memoizedState.isDehydrated&&(Ps(o,l).flags|=256),o=jp(o,l),o!==2&&(l=fi,fi=p,l!==null&&Of(l)),o}function Of(o){fi===null?fi=o:fi.push.apply(fi,o)}function kv(o){for(var l=o;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var w=p[g],_=w.getSnapshot;w=w.value;try{if(!pa(_(),w))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function wa(o,l){for(l&=~Zu,l&=~Pp,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var p=31-ca(l),g=1<<p;o[p]=-1,l&=~g}}function T1(o){if(Jt&6)throw Error(r(327));Ju();var l=ja(o,0);if(!(l&1))return oi(o,un()),null;var p=jp(o,l);if(o.tag!==0&&p===2){var g=ym(o);g!==0&&(l=g,p=Cv(o,g))}if(p===1)throw p=Rf,Ps(o,0),wa(o,l),oi(o,un()),p;if(p===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,Ns(o,fi,Uo),oi(o,un()),null}function Xu(o,l){var p=Jt;Jt|=1;try{return o(l)}finally{Jt=p,Jt===0&&(Ku=un()+500,Lr&&_i())}}function Ll(o){Ml!==null&&Ml.tag===0&&!(Jt&6)&&Ju();var l=Jt;Jt|=1;var p=ri.transition,g=bn;try{if(ri.transition=null,bn=1,o)return o()}finally{bn=g,ri.transition=p,Jt=l,!(Jt&6)&&_i()}}function _v(){Zi=Yu.current,dn(Yu)}function Ps(o,l){o.finishedWork=null,o.finishedLanes=0;var p=o.timeoutHandle;if(p!==-1&&(o.timeoutHandle=-1,t1(p)),tr!==null)for(p=tr.return;p!==null;){var g=p;switch(Qm(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&va();break;case 3:Tl(),dn(er),dn(Dt),cp();break;case 5:Zt(g);break;case 4:Tl();break;case 13:dn(wt);break;case 19:dn(wt);break;case 10:wl(g.type._context);break;case 22:case 23:_v()}p=p.return}if(Gn=o,tr=o=Pl(o.current,null),Fr=Zi=l,_r=0,Rf=null,Zu=Pp=$o=0,fi=Ds=null,Br!==null){for(l=0;l<Br.length;l++)if(p=Br[l],g=p.interleaved,g!==null){p.interleaved=null;var w=g.next,_=p.pending;if(_!==null){var P=_.next;_.next=w,g.next=P}p.pending=g}Br=null}return o}function R1(o,l){do{var p=tr;try{if(tv(),fp.current=Tp,kt){for(var g=Fn.memoizedState;g!==null;){var w=g.queue;w!==null&&(w.pending=null),g=g.next}kt=!1}if(Ss=0,nn=we=Fn=null,oo=!1,Yi=0,xv.current=null,p===null||p.return===null){_r=1,Rf=l,tr=null;break}e:{var _=o,P=p.return,q=p,K=l;if(l=Fr,q.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var de=K,Me=q,Fe=Me.tag;if(!(Me.mode&1)&&(Fe===0||Fe===11||Fe===15)){var Ae=Me.alternate;Ae?(Me.updateQueue=Ae.updateQueue,Me.memoizedState=Ae.memoizedState,Me.lanes=Ae.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var Je=cv(P);if(Je!==null){Je.flags&=-257,fv(Je,P,q,_,l),Je.mode&1&&v1(_,de,l),l=Je,K=de;var st=l.updateQueue;if(st===null){var ft=new Set;ft.add(K),l.updateQueue=ft}else st.add(K);break e}else{if(!(l&1)){v1(_,de,l),Tv();break e}K=Error(r(426))}}else if(Nn&&q.mode&1){var sr=cv(P);if(sr!==null){!(sr.flags&65536)&&(sr.flags|=256),fv(sr,P,q,_,l),Jm($u(K,q));break e}}_=K=$u(K,q),_r!==4&&(_r=2),Ds===null?Ds=[_]:Ds.push(_),_=P;do{switch(_.tag){case 3:_.flags|=65536,l&=-l,_.lanes|=l;var re=m1(_,K,l);iv(_,re);break e;case 1:q=K;var Q=_.type,le=_.stateNode;if(!(_.flags&128)&&(typeof Q.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(uo===null||!uo.has(le)))){_.flags|=65536,l&=-l,_.lanes|=l;var Ve=Sf(_,q,l);iv(_,Ve);break e}}_=_.return}while(_!==null)}Rv(p)}catch(dt){l=dt,tr===p&&p!==null&&(tr=p=p.return);continue}break}while(1)}function zp(){var o=Tf.current;return Tf.current=Tp,o===null?Tp:o}function Tv(){(_r===0||_r===3||_r===2)&&(_r=4),Gn===null||!($o&268435455)&&!(Pp&268435455)||wa(Gn,Fr)}function jp(o,l){var p=Jt;Jt|=2;var g=zp();(Gn!==o||Fr!==l)&&(Uo=null,Ps(o,l));do try{ew();break}catch(w){R1(o,w)}while(1);if(tv(),Jt=p,Tf.current=g,tr!==null)throw Error(r(261));return Gn=null,Fr=0,_r}function ew(){for(;tr!==null;)O1(tr)}function tw(){for(;tr!==null&&!fl();)O1(tr)}function O1(o){var l=A1(o.alternate,o,Zi);o.memoizedProps=o.pendingProps,l===null?Rv(o):tr=l,xv.current=null}function Rv(o){var l=o;do{var p=l.alternate;if(o=l.return,l.flags&32768){if(p=yv(p,l),p!==null){p.flags&=32767,tr=p;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{_r=6,tr=null;return}}else if(p=Jx(p,l,Zi),p!==null){tr=p;return}if(l=l.sibling,l!==null){tr=l;return}tr=l=o}while(l!==null);_r===0&&(_r=5)}function Ns(o,l,p){var g=bn,w=ri.transition;try{ri.transition=null,bn=1,nw(o,l,p,g)}finally{ri.transition=w,bn=g}return null}function nw(o,l,p,g){do Ju();while(Ml!==null);if(Jt&6)throw Error(r(327));p=o.finishedWork;var w=o.finishedLanes;if(p===null)return null;if(o.finishedWork=null,o.finishedLanes=0,p===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var _=p.lanes|p.childLanes;if(Rx(o,_),o===Gn&&(tr=Gn=null,Fr=0),!(p.subtreeFlags&2064)&&!(p.flags&2064)||Al||(Al=!0,Ov(dl,function(){return Ju(),null})),_=(p.flags&15990)!==0,p.subtreeFlags&15990||_){_=ri.transition,ri.transition=null;var P=bn;bn=1;var q=Jt;Jt|=4,xv.current=null,E1(o,p),w1(p,o),Yd(hs),us=!!Vm,hs=Vm=null,o.current=p,C1(p),Ad(),Jt=q,bn=P,ri.transition=_}else o.current=p;if(Al&&(Al=!1,Ml=o,Fp=w),_=o.pendingLanes,_===0&&(uo=null),my(p.stateNode),oi(o,un()),l!==null)for(g=o.onRecoverableError,p=0;p<l.length;p++)w=l[p],g(w.value,{componentStack:w.stack,digest:w.digest});if(Np)throw Np=!1,o=As,As=null,o;return Fp&1&&o.tag!==0&&Ju(),_=o.pendingLanes,_&1?o===Ip?Gu++:(Gu=0,Ip=o):Gu=0,_i(),null}function Ju(){if(Ml!==null){var o=Sm(Fp),l=ri.transition,p=bn;try{if(ri.transition=null,bn=16>o?16:o,Ml===null)var g=!1;else{if(o=Ml,Ml=null,Fp=0,Jt&6)throw Error(r(331));var w=Jt;for(Jt|=4,at=o.current;at!==null;){var _=at,P=_.child;if(at.flags&16){var q=_.deletions;if(q!==null){for(var K=0;K<q.length;K++){var de=q[K];for(at=de;at!==null;){var Me=at;switch(Me.tag){case 0:case 11:case 15:kf(8,Me,_)}var Fe=Me.child;if(Fe!==null)Fe.return=Me,at=Fe;else for(;at!==null;){Me=at;var Ae=Me.sibling,Je=Me.return;if(Sv(Me),Me===de){at=null;break}if(Ae!==null){Ae.return=Je,at=Ae;break}at=Je}}}var st=_.alternate;if(st!==null){var ft=st.child;if(ft!==null){st.child=null;do{var sr=ft.sibling;ft.sibling=null,ft=sr}while(ft!==null)}}at=_}}if(_.subtreeFlags&2064&&P!==null)P.return=_,at=P;else e:for(;at!==null;){if(_=at,_.flags&2048)switch(_.tag){case 0:case 11:case 15:kf(9,_,_.return)}var re=_.sibling;if(re!==null){re.return=_.return,at=re;break e}at=_.return}}var Q=o.current;for(at=Q;at!==null;){P=at;var le=P.child;if(P.subtreeFlags&2064&&le!==null)le.return=P,at=le;else e:for(P=Q;at!==null;){if(q=at,q.flags&2048)try{switch(q.tag){case 0:case 11:case 15:_f(9,q)}}catch(dt){nr(q,q.return,dt)}if(q===P){at=null;break e}var Ve=q.sibling;if(Ve!==null){Ve.return=q.return,at=Ve;break e}at=q.return}}if(Jt=w,_i(),za&&typeof za.onPostCommitFiberRoot=="function")try{za.onPostCommitFiberRoot(Bc,o)}catch{}g=!0}return g}finally{bn=p,ri.transition=l}}return!1}function D1(o,l,p){l=$u(p,l),l=m1(o,l,1),o=kl(o,l,1),l=ii(),o!==null&&(ss(o,1,l),oi(o,l))}function nr(o,l,p){if(o.tag===3)D1(o,o,p);else for(;l!==null;){if(l.tag===3){D1(l,o,p);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(uo===null||!uo.has(g))){o=$u(p,o),o=Sf(l,o,1),l=kl(l,o,1),o=ii(),l!==null&&(ss(l,1,o),oi(l,o));break}}l=l.return}}function rw(o,l,p){var g=o.pingCache;g!==null&&g.delete(l),l=ii(),o.pingedLanes|=o.suspendedLanes&p,Gn===o&&(Fr&p)===p&&(_r===4||_r===3&&(Fr&130023424)===Fr&&500>un()-wv?Ps(o,0):Zu|=p),oi(o,l)}function $p(o,l){l===0&&(o.mode&1?(l=Eu,Eu<<=1,!(Eu&130023424)&&(Eu=4194304)):l=1);var p=ii();o=No(o,l),o!==null&&(ss(o,l,p),oi(o,p))}function iw(o){var l=o.memoizedState,p=0;l!==null&&(p=l.retryLane),$p(o,p)}function aw(o,l){var p=0;switch(o.tag){case 13:var g=o.stateNode,w=o.memoizedState;w!==null&&(p=w.retryLane);break;case 19:g=o.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(l),$p(o,p)}var A1;A1=function(o,l,p){if(o!==null)if(o.memoizedProps!==l.pendingProps||er.current)vr=!0;else{if(!(o.lanes&p)&&!(l.flags&128))return vr=!1,zo(o,l,p);vr=!!(o.flags&131072)}else vr=!1,Nn&&l.flags&1048576&&Gm(l,Lu,l.index);switch(l.lanes=0,l.tag){case 2:var g=l.type;ti(o,l),o=l.pendingProps;var w=ma(l,Dt.current);Ye(l,p),w=Rl(null,l,g,o,w,p);var _=ws();return l.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Vn(g)?(_=!0,Jd(l)):_=!1,l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,rv(l),w.updater=lp,l.stateNode=w,w._reactInternals=l,sp(l,g,o,p),l=g1(null,l,g,!0,_,p)):(l.tag=0,Nn&&_&&ep(l),wr(null,l,w,p),l=l.child),l;case 16:g=l.elementType;e:{switch(ti(o,l),o=l.pendingProps,w=g._init,g=w(g._payload),l.type=g,w=l.tag=lw(g),o=Wi(g,o),w){case 0:l=Uu(null,l,g,o,p);break e;case 1:l=dv(null,l,g,o,p);break e;case 11:l=Dl(null,l,g,o,p);break e;case 14:l=Op(null,l,g,Wi(g.type,o),p);break e}throw Error(r(306,g,""))}return l;case 0:return g=l.type,w=l.pendingProps,w=l.elementType===g?w:Wi(g,w),Uu(o,l,g,w,p);case 1:return g=l.type,w=l.pendingProps,w=l.elementType===g?w:Wi(g,w),dv(o,l,g,w,p);case 3:e:{if(y1(l),o===null)throw Error(r(387));g=l.pendingProps,_=l.memoizedState,w=_.element,xr(o,l),_l(l,g,null,p);var P=l.memoizedState;if(g=P.element,_.isDehydrated)if(_={element:g,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){w=$u(Error(r(423)),l),l=Dp(o,l,g,p,w);break e}else if(g!==w){w=$u(Error(r(424)),l),l=Dp(o,l,g,p,w);break e}else for(Oi=Va(l.stateNode.containerInfo.firstChild),qi=l,Nn=!0,ya=null,p=p1(l,null,g,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Zn(),g===w){l=Vr(o,l,p);break e}wr(o,l,g,p)}l=l.child}return l;case 5:return Et(l),o===null&&np(l),g=l.type,w=l.pendingProps,_=o!==null?o.memoizedProps:null,P=w.children,sf(g,w)?P=null:_!==null&&sf(g,_)&&(l.flags|=32),jt(o,l),wr(o,l,P,p),l.child;case 6:return o===null&&np(l),null;case 13:return hv(o,l,p);case 4:return ov(l,l.stateNode.containerInfo),g=l.pendingProps,o===null?l.child=Nu(l,null,g,p):wr(o,l,g,p),l.child;case 11:return g=l.type,w=l.pendingProps,w=l.elementType===g?w:Wi(g,w),Dl(o,l,g,w,p);case 7:return wr(o,l,l.pendingProps,p),l.child;case 8:return wr(o,l,l.pendingProps.children,p),l.child;case 12:return wr(o,l,l.pendingProps.children,p),l.child;case 10:e:{if(g=l.type._context,w=l.pendingProps,_=l.memoizedProps,P=w.value,mn(ao,g._currentValue),g._currentValue=P,_!==null)if(pa(_.value,P)){if(_.children===w.children&&!er.current){l=Vr(o,l,p);break e}}else for(_=l.child,_!==null&&(_.return=l);_!==null;){var q=_.dependencies;if(q!==null){P=_.child;for(var K=q.firstContext;K!==null;){if(K.context===g){if(_.tag===1){K=Fo(-1,p&-p),K.tag=2;var de=_.updateQueue;if(de!==null){de=de.shared;var Me=de.pending;Me===null?K.next=K:(K.next=Me.next,Me.next=K),de.pending=K}}_.lanes|=p,K=_.alternate,K!==null&&(K.lanes|=p),Pr(_.return,p,l),q.lanes|=p;break}K=K.next}}else if(_.tag===10)P=_.type===l.type?null:_.child;else if(_.tag===18){if(P=_.return,P===null)throw Error(r(341));P.lanes|=p,q=P.alternate,q!==null&&(q.lanes|=p),Pr(P,p,l),P=_.sibling}else P=_.child;if(P!==null)P.return=_;else for(P=_;P!==null;){if(P===l){P=null;break}if(_=P.sibling,_!==null){_.return=P.return,P=_;break}P=P.return}_=P}wr(o,l,w.children,p),l=l.child}return l;case 9:return w=l.type,g=l.pendingProps.children,Ye(l,p),w=lr(w),g=g(w),l.flags|=1,wr(o,l,g,p),l.child;case 14:return g=l.type,w=Wi(g,l.pendingProps),w=Wi(g.type,w),Op(o,l,g,w,p);case 15:return Mi(o,l,l.type,l.pendingProps,p);case 17:return g=l.type,w=l.pendingProps,w=l.elementType===g?w:Wi(g,w),ti(o,l),l.tag=1,Vn(g)?(o=!0,Jd(l)):o=!1,Ye(l,p),u1(l,g,w),sp(l,g,w,p),g1(null,l,g,!0,o,p);case 19:return gv(o,l,p);case 22:return Ts(o,l,p)}throw Error(r(156,l.tag))};function Ov(o,l){return Bn(o,l)}function ow(o,l,p,g){this.tag=o,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ca(o,l,p,g){return new ow(o,l,p,g)}function Dv(o){return o=o.prototype,!(!o||!o.isReactComponent)}function lw(o){if(typeof o=="function")return Dv(o)?1:0;if(o!=null){if(o=o.$$typeof,o===oe)return 11;if(o===ke)return 14}return 2}function Pl(o,l){var p=o.alternate;return p===null?(p=Ca(o.tag,l,o.key,o.mode),p.elementType=o.elementType,p.type=o.type,p.stateNode=o.stateNode,p.alternate=o,o.alternate=p):(p.pendingProps=l,p.type=o.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=o.flags&14680064,p.childLanes=o.childLanes,p.lanes=o.lanes,p.child=o.child,p.memoizedProps=o.memoizedProps,p.memoizedState=o.memoizedState,p.updateQueue=o.updateQueue,l=o.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=o.sibling,p.index=o.index,p.ref=o.ref,p}function Up(o,l,p,g,w,_){var P=2;if(g=o,typeof o=="function")Dv(o)&&(P=1);else if(typeof o=="string")P=5;else e:switch(o){case H:return Fs(p.children,w,_,l);case Z:P=8,w|=8;break;case ne:return o=Ca(12,p,l,w|2),o.elementType=ne,o.lanes=_,o;case J:return o=Ca(13,p,l,w),o.elementType=J,o.lanes=_,o;case pe:return o=Ca(19,p,l,w),o.elementType=pe,o.lanes=_,o;case Ie:return Df(p,w,_,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case ve:P=10;break e;case ee:P=9;break e;case oe:P=11;break e;case ke:P=14;break e;case xe:P=16,g=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return l=Ca(P,p,l,w),l.elementType=o,l.type=g,l.lanes=_,l}function Fs(o,l,p,g){return o=Ca(7,o,g,l),o.lanes=p,o}function Df(o,l,p,g){return o=Ca(22,o,g,l),o.elementType=Ie,o.lanes=p,o.stateNode={isHidden:!1},o}function Af(o,l,p){return o=Ca(6,o,null,l),o.lanes=p,o}function Is(o,l,p){return l=Ca(4,o.children!==null?o.children:[],o.key,l),l.lanes=p,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function sw(o,l,p,g,w){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bm(0),this.expirationTimes=bm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bm(0),this.identifierPrefix=g,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function Bp(o,l,p,g,w,_,P,q,K){return o=new sw(o,l,p,q,K),l===1?(l=1,_===!0&&(l|=8)):l=0,_=Ca(3,null,null,l),o.current=_,_.stateNode=o,_.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},rv(_),o}function M1(o,l,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:g==null?null:""+g,children:o,containerInfo:l,implementation:p}}function Av(o){if(!o)return io;o=o._reactInternals;e:{if(Bt(o)!==o||o.tag!==1)throw Error(r(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Vn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(r(171))}if(o.tag===1){var p=o.type;if(Vn(p))return ff(o,p,l)}return l}function L1(o,l,p,g,w,_,P,q,K){return o=Bp(p,g,!0,o,w,_,P,q,K),o.context=Av(null),p=o.current,g=ii(),w=gr(p),_=Fo(g,w),_.callback=l??null,kl(p,_,w),o.current.lanes=w,ss(o,w,g),oi(o,g),o}function Mf(o,l,p,g){var w=l.current,_=ii(),P=gr(w);return p=Av(p),l.context===null?l.context=p:l.pendingContext=p,l=Fo(_,P),l.payload={element:o},g=g===void 0?null:g,g!==null&&(l.callback=g),o=kl(w,l,P),o!==null&&(ai(o,w,P,_),op(o,w,P)),P}function Vp(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function P1(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var p=o.retryLane;o.retryLane=p!==0&&p<l?p:l}}function Mv(o,l){P1(o,l),(o=o.alternate)&&P1(o,l)}function N1(){return null}var Lv=typeof reportError=="function"?reportError:function(o){console.error(o)};function Hp(o){this._internalRoot=o}Bo.prototype.render=Hp.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));Mf(o,l,null,null)},Bo.prototype.unmount=Hp.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;Ll(function(){Mf(null,o,null,null)}),l[Lo]=null}};function Bo(o){this._internalRoot=o}Bo.prototype.unstable_scheduleHydration=function(o){if(o){var l=by();o={blockedOn:null,target:o,priority:l};for(var p=0;p<Cn.length&&l!==0&&l<Cn[p].priority;p++);Cn.splice(p,0,o),p===0&&Sy(o)}};function Pv(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function qp(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function F1(){}function uw(o,l,p,g,w){if(w){if(typeof g=="function"){var _=g;g=function(){var de=Vp(P);_.call(de)}}var P=L1(l,g,o,0,null,!1,!1,"",F1);return o._reactRootContainer=P,o[Lo]=P.current,Au(o.nodeType===8?o.parentNode:o),Ll(),P}for(;w=o.lastChild;)o.removeChild(w);if(typeof g=="function"){var q=g;g=function(){var de=Vp(K);q.call(de)}}var K=Bp(o,0,!1,null,null,!1,!1,"",F1);return o._reactRootContainer=K,o[Lo]=K.current,Au(o.nodeType===8?o.parentNode:o),Ll(function(){Mf(l,K,p,g)}),K}function Wp(o,l,p,g,w){var _=p._reactRootContainer;if(_){var P=_;if(typeof w=="function"){var q=w;w=function(){var K=Vp(P);q.call(K)}}Mf(l,P,o,w)}else P=uw(p,l,o,w,g);return Vp(P)}yy=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var p=ls(l.pendingLanes);p!==0&&(Vc(l,p|1),oi(l,un()),!(Jt&6)&&(Ku=un()+500,_i()))}break;case 13:Ll(function(){var g=No(o,1);if(g!==null){var w=ii();ai(g,o,1,w)}}),Mv(o,1)}},Nd=function(o){if(o.tag===13){var l=No(o,134217728);if(l!==null){var p=ii();ai(l,o,134217728,p)}Mv(o,134217728)}},On=function(o){if(o.tag===13){var l=gr(o),p=No(o,l);if(p!==null){var g=ii();ai(p,o,l,g)}Mv(o,l)}},by=function(){return bn},Em=function(o,l){var p=bn;try{return bn=o,l()}finally{bn=p}},$i=function(o,l,p){switch(l){case"input":if(Rt(o,p),l=p.name,p.type==="radio"&&l!=null){for(p=o;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var g=p[l];if(g!==o&&g.form===o.form){var w=yt(g);if(!w)throw Error(r(90));me(g),Rt(g,w)}}}break;case"textarea":pr(o,p);break;case"select":l=p.value,l!=null&&or(o,!!p.multiple,l,!1)}},Uc=Xu,Dd=Ll;var cw={usingClientEntryPoint:!1,Events:[cf,Mu,yt,is,yu,Xu]},ec={findFiberByHostInstance:ha,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fw={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:V.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Dr(o),o===null?null:o.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||N1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yp.isDisabled&&Yp.supportsFiber)try{Bc=Yp.inject(fw),za=Yp}catch{}}return ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cw,ea.createPortal=function(o,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pv(l))throw Error(r(200));return M1(o,l,null,p)},ea.createRoot=function(o,l){if(!Pv(o))throw Error(r(299));var p=!1,g="",w=Lv;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),l=Bp(o,1,!1,null,null,p,!1,g,w),o[Lo]=l.current,Au(o.nodeType===8?o.parentNode:o),new Hp(l)},ea.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=Dr(l),o=o===null?null:o.stateNode,o},ea.flushSync=function(o){return Ll(o)},ea.hydrate=function(o,l,p){if(!qp(l))throw Error(r(200));return Wp(null,o,l,!0,p)},ea.hydrateRoot=function(o,l,p){if(!Pv(o))throw Error(r(405));var g=p!=null&&p.hydratedSources||null,w=!1,_="",P=Lv;if(p!=null&&(p.unstable_strictMode===!0&&(w=!0),p.identifierPrefix!==void 0&&(_=p.identifierPrefix),p.onRecoverableError!==void 0&&(P=p.onRecoverableError)),l=L1(l,null,o,1,p??null,w,!1,_,P),o[Lo]=l.current,Au(o),g)for(o=0;o<g.length;o++)p=g[o],w=p._getVersion,w=w(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,w]:l.mutableSourceEagerHydrationData.push(p,w);return new Bo(l)},ea.render=function(o,l,p){if(!qp(l))throw Error(r(200));return Wp(null,o,l,!1,p)},ea.unmountComponentAtNode=function(o){if(!qp(o))throw Error(r(40));return o._reactRootContainer?(Ll(function(){Wp(null,null,o,!1,function(){o._reactRootContainer=null,o[Lo]=null})}),!0):!1},ea.unstable_batchedUpdates=Xu,ea.unstable_renderSubtreeIntoContainer=function(o,l,p,g){if(!qp(p))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return Wp(o,l,p,!1,g)},ea.version="18.2.0-next-9e3b772b8-20220608",ea}var ta={};/**
59
+ * @license React
60
+ * react-dom.development.js
61
+ *
62
+ * Copyright (c) Facebook, Inc. and its affiliates.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE file in the root directory of this source tree.
66
+ */var ck;function u6(){return ck||(ck=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=sk(),r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function s(t){a=t}function c(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("warn",t,u)}}function f(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("error",t,u)}}function h(t,i,u){{var d=r.ReactDebugCurrentFrame,m=d.getStackAddendum();m!==""&&(i+="%s",u=u.concat([m]));var b=u.map(function(k){return String(k)});b.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,b)}}var v=0,y=1,S=2,E=3,C=4,x=5,R=6,T=7,D=8,M=9,F=10,N=11,V=12,I=13,$=14,H=15,Z=16,ne=17,ve=18,ee=19,oe=21,J=22,pe=23,ke=24,xe=25,Ie=!0,se=!1,Te=!1,L=!1,te=!1,ye=!0,U=!1,_e=!1,We=!0,Re=!0,Oe=!0,$e=new Set,Ge={},Ue={};function Le(t,i){me(t,i),me(t+"Capture",i)}function me(t,i){Ge[t]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ge[t]=i;{var u=t.toLowerCase();Ue[u]=t,t==="onDoubleClick"&&(Ue.ondblclick=t)}for(var d=0;d<i.length;d++)$e.add(i[d])}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",be=Object.prototype.hasOwnProperty;function ht(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function He(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function Gt(t,i){if(He(t))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function Tn(t){if(He(t))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function ar(t,i){if(He(t))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function or(t,i){if(He(t))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function dr(t){if(He(t))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function Jn(t){if(He(t))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}var pr=0,Yn=1,Ln=2,fe=3,Ne=4,mt=5,qt=6,De=":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",it=De+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ot=new RegExp("^["+De+"]["+it+"]*$"),Yt={},yn={};function $n(t){return be.call(yn,t)?!0:be.call(Yt,t)?!1:Ot.test(t)?(yn[t]=!0,!0):(Yt[t]=!0,f("Invalid attribute name: `%s`",t),!1)}function It(t,i,u){return i!==null?i.type===pr:u?!1:t.length>2&&(t[0]==="o"||t[0]==="O")&&(t[1]==="n"||t[1]==="N")}function Or(t,i,u,d){if(u!==null&&u.type===pr)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":{if(d)return!1;if(u!==null)return!u.acceptsBooleans;var m=t.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function tn(t,i,u,d){if(i===null||typeof i>"u"||Or(t,i,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case fe:return!i;case Ne:return i===!1;case mt:return isNaN(i);case qt:return isNaN(i)||i<1}return!1}function $i(t){return Mn.hasOwnProperty(t)?Mn[t]:null}function Rn(t,i,u,d,m,b,k){this.acceptsBooleans=i===Ln||i===fe||i===Ne,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=u,this.propertyName=t,this.type=i,this.sanitizeURL=b,this.removeEmptyString=k}var Mn={},gu=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];gu.forEach(function(t){Mn[t]=new Rn(t,pr,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0],u=t[1];Mn[i]=new Rn(i,Yn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){Mn[t]=new Rn(t,fe,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Mn[t]=new Rn(t,fe,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Mn[t]=new Rn(t,Ne,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Mn[t]=new Rn(t,qt,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Mn[t]=new Rn(t,mt,!1,t.toLowerCase(),null,!1,!1)});var is=/[\-\:]([a-z])/g,yu=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var i=t.replace(is,yu);Mn[i]=new Rn(i,Yn,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var i=t.replace(is,yu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(is,yu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!1,!1)});var Uc="xlinkHref";Mn[Uc]=new Rn("xlinkHref",Yn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!0,!0)});var Dd=/^[\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,as=!1;function bu(t){!as&&Dd.test(t)&&(as=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}function os(t,i,u,d){if(d.mustUseProperty){var m=d.propertyName;return t[m]}else{Gt(u,i),d.sanitizeURL&&bu(""+u);var b=d.attributeName,k=null;if(d.type===Ne){if(t.hasAttribute(b)){var O=t.getAttribute(b);return O===""?!0:tn(i,u,d,!1)?O:O===""+u?u:O}}else if(t.hasAttribute(b)){if(tn(i,u,d,!1))return t.getAttribute(b);if(d.type===fe)return u;k=t.getAttribute(b)}return tn(i,u,d,!1)?k===null?u:k:k===""+u?u:k}}function Su(t,i,u,d){{if(!$n(i))return;if(!t.hasAttribute(i))return u===void 0?void 0:null;var m=t.getAttribute(i);return Gt(u,i),m===""+u?u:m}}function no(t,i,u,d){var m=$i(i);if(!It(i,m,d)){if(tn(i,u,m,d)&&(u=null),d||m===null){if($n(i)){var b=i;u===null?t.removeAttribute(b):(Gt(u,i),t.setAttribute(b,""+u))}return}var k=m.mustUseProperty;if(k){var O=m.propertyName;if(u===null){var A=m.type;t[O]=A===fe?!1:""}else t[O]=u;return}var z=m.attributeName,B=m.attributeNamespace;if(u===null)t.removeAttribute(z);else{var X=m.type,G;X===fe||X===Ne&&u===!0?G="":(Gt(u,z),G=""+u,m.sanitizeURL&&bu(G.toString())),B?t.setAttributeNS(B,z,G):t.setAttribute(z,G)}}}var ul=Symbol.for("react.element"),Ui=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ke=Symbol.for("react.context"),St=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),ln=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),Dr=Symbol.for("react.scope"),Un=Symbol.for("react.debug_trace_mode"),Bn=Symbol.for("react.offscreen"),ci=Symbol.for("react.legacy_hidden"),fl=Symbol.for("react.cache"),Ad=Symbol.for("react.tracing_marker"),un=Symbol.iterator,_x="@@iterator";function _o(t){if(t===null||typeof t!="object")return null;var i=un&&t[un]||t[_x];return typeof i=="function"?i:null}var Xt=Object.assign,dl=0,hy,vm,Bc,za,my,ca,vy;function gy(){}gy.__reactDisabledLog=!0;function Tx(){{if(dl===0){hy=console.log,vm=console.info,Bc=console.warn,za=console.error,my=console.group,ca=console.groupCollapsed,vy=console.groupEnd;var t={configurable:!0,enumerable:!0,value:gy,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}dl++}}function Md(){{if(dl--,dl===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xt({},t,{value:hy}),info:Xt({},t,{value:vm}),warn:Xt({},t,{value:Bc}),error:Xt({},t,{value:za}),group:Xt({},t,{value:my}),groupCollapsed:Xt({},t,{value:ca}),groupEnd:Xt({},t,{value:vy})})}dl<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Eu=r.ReactCurrentDispatcher,ls;function ja(t,i,u){{if(ls===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);ls=d&&d[1]||""}return`
67
+ `+ls+t}}var gm=!1,Ld;{var ym=typeof WeakMap=="function"?WeakMap:Map;Ld=new ym}function Pd(t,i){if(!t||gm)return"";{var u=Ld.get(t);if(u!==void 0)return u}var d;gm=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=Eu.current,Eu.current=null,Tx();try{if(i){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(ce){d=ce}Reflect.construct(t,[],k)}else{try{k.call()}catch(ce){d=ce}t.call(k.prototype)}}else{try{throw Error()}catch(ce){d=ce}t()}}catch(ce){if(ce&&d&&typeof ce.stack=="string"){for(var O=ce.stack.split(`
68
+ `),A=d.stack.split(`
69
+ `),z=O.length-1,B=A.length-1;z>=1&&B>=0&&O[z]!==A[B];)B--;for(;z>=1&&B>=0;z--,B--)if(O[z]!==A[B]){if(z!==1||B!==1)do if(z--,B--,B<0||O[z]!==A[B]){var X=`
70
+ `+O[z].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ld.set(t,X),X}while(z>=1&&B>=0);break}}}finally{gm=!1,Eu.current=b,Md(),Error.prepareStackTrace=m}var G=t?t.displayName||t.name:"",ue=G?ja(G):"";return typeof t=="function"&&Ld.set(t,ue),ue}function bm(t,i,u){return Pd(t,!0)}function ss(t,i,u){return Pd(t,!1)}function Rx(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function Vc(t,i,u){if(t==null)return"";if(typeof t=="function")return Pd(t,Rx(t));if(typeof t=="string")return ja(t);switch(t){case Bt:return ja("Suspense");case ln:return ja("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case St:return ss(t.render);case Vt:return Vc(t.type,i,u);case xt:{var d=t,m=d._payload,b=d._init;try{return Vc(b(m),i,u)}catch{}}}return""}function bn(t){switch(t._debugOwner&&t._debugOwner.type,t._debugSource,t.tag){case x:return ja(t.type);case Z:return ja("Lazy");case I:return ja("Suspense");case ee:return ja("SuspenseList");case v:case S:case H:return ss(t.type);case N:return ss(t.type.render);case y:return bm(t.type);default:return""}}function Sm(t){try{var i="",u=t;do i+=bn(u),u=u.return;while(u);return i}catch(d){return`
71
+ Error generating stack: `+d.message+`
72
+ `+d.stack}}function yy(t,i,u){var d=t.displayName;if(d)return d;var m=i.displayName||i.name||"";return m!==""?u+"("+m+")":u}function Nd(t){return t.displayName||"Context"}function On(t){if(t==null)return null;if(typeof t.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ia:return"Fragment";case Ui:return"Portal";case W:return"Profiler";case cl:return"StrictMode";case Bt:return"Suspense";case ln:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ke:var i=t;return Nd(i)+".Consumer";case Pe:var u=t;return Nd(u._context)+".Provider";case St:return yy(t,t.render,"ForwardRef");case Vt:var d=t.displayName||null;return d!==null?d:On(t.type)||"Memo";case xt:{var m=t,b=m._payload,k=m._init;try{return On(k(b))}catch{return null}}}return null}function by(t,i,u){var d=i.displayName||i.name||"";return t.displayName||(d!==""?u+"("+d+")":u)}function Em(t){return t.displayName||"Context"}function Ft(t){var i=t.tag,u=t.type;switch(i){case ke:return"Cache";case M:var d=u;return Em(d)+".Consumer";case F:var m=u;return Em(m._context)+".Provider";case ve:return"DehydratedFragment";case N:return by(u,u.render,"ForwardRef");case T:return"Fragment";case x:return u;case C:return"Portal";case E:return"Root";case R:return"Text";case Z:return On(u);case D:return u===cl?"StrictMode":"Mode";case J:return"Offscreen";case V:return"Profiler";case oe:return"Scope";case I:return"Suspense";case ee:return"SuspenseList";case xe:return"TracingMarker";case y:case v:case ne:case S:case $:case H:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;break}return null}var Hc=r.ReactDebugCurrentFrame,hr=null,fa=!1;function da(){{if(hr===null)return null;var t=hr._debugOwner;if(t!==null&&typeof t<"u")return Ft(t)}return null}function qc(){return hr===null?"":Sm(hr)}function Er(){Hc.getCurrentStack=null,hr=null,fa=!1}function Cn(t){Hc.getCurrentStack=t===null?null:qc,hr=t,fa=!1}function Ox(){return hr}function $a(t){fa=t}function Jr(t){return""+t}function pl(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return Jn(t),t;default:return""}}var Sy={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function xu(t,i){Sy[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),i.onChange||i.readOnly||i.disabled||i.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function xm(t){var i=t.type,u=t.nodeName;return u&&u.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ey(t){return t._valueTracker}function Wc(t){t._valueTracker=null}function Yc(t){var i="";return t&&(xm(t)?i=t.checked?"true":"false":i=t.value),i}function wu(t){var i=xm(t)?"checked":"value",u=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);Jn(t[i]);var d=""+t[i];if(!(t.hasOwnProperty(i)||typeof u>"u"||typeof u.get!="function"||typeof u.set!="function")){var m=u.get,b=u.set;Object.defineProperty(t,i,{configurable:!0,get:function(){return m.call(this)},set:function(O){Jn(O),d=""+O,b.call(this,O)}}),Object.defineProperty(t,i,{enumerable:u.enumerable});var k={getValue:function(){return d},setValue:function(O){Jn(O),d=""+O},stopTracking:function(){Wc(t),delete t[i]}};return k}}function us(t){Ey(t)||(t._valueTracker=wu(t))}function xy(t){if(!t)return!1;var i=Ey(t);if(!i)return!0;var u=i.getValue(),d=Yc(t);return d!==u?(i.setValue(d),!0):!1}function Fd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Id=!1,Zc=!1,zd=!1,wm=!1;function To(t){var i=t.type==="checkbox"||t.type==="radio";return i?t.checked!=null:t.value!=null}function Kc(t,i){var u=t,d=i.checked,m=Xt({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??u._wrapperState.initialChecked});return m}function Gc(t,i){xu("input",i),i.checked!==void 0&&i.defaultChecked!==void 0&&!Zc&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",da()||"A component",i.type),Zc=!0),i.value!==void 0&&i.defaultValue!==void 0&&!Id&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",da()||"A component",i.type),Id=!0);var u=t,d=i.defaultValue==null?"":i.defaultValue;u._wrapperState={initialChecked:i.checked!=null?i.checked:i.defaultChecked,initialValue:pl(i.value!=null?i.value:d),controlled:To(i)}}function Cm(t,i){var u=t,d=i.checked;d!=null&&no(u,"checked",d,!1)}function Cu(t,i){var u=t;{var d=To(i);!u._wrapperState.controlled&&d&&!wm&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),wm=!0),u._wrapperState.controlled&&!d&&!zd&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),zd=!0)}Cm(t,i);var m=pl(i.value),b=i.type;if(m!=null)b==="number"?(m===0&&u.value===""||u.value!=m)&&(u.value=Jr(m)):u.value!==Jr(m)&&(u.value=Jr(m));else if(b==="submit"||b==="reset"){u.removeAttribute("value");return}i.hasOwnProperty("value")?hl(u,i.type,m):i.hasOwnProperty("defaultValue")&&hl(u,i.type,pl(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(u.defaultChecked=!!i.defaultChecked)}function Qc(t,i,u){var d=t;if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var m=i.type,b=m==="submit"||m==="reset";if(b&&(i.value===void 0||i.value===null))return;var k=Jr(d._wrapperState.initialValue);u||k!==d.value&&(d.value=k),d.defaultValue=k}var O=d.name;O!==""&&(d.name=""),d.defaultChecked=!d.defaultChecked,d.defaultChecked=!!d._wrapperState.initialChecked,O!==""&&(d.name=O)}function wy(t,i){var u=t;Cu(u,i),Bi(u,i)}function Bi(t,i){var u=i.name;if(i.type==="radio"&&u!=null){for(var d=t;d.parentNode;)d=d.parentNode;Gt(u,"name");for(var m=d.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),b=0;b<m.length;b++){var k=m[b];if(!(k===t||k.form!==t.form)){var O=J1(k);if(!O)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");xy(k),Cu(k,O)}}}}function hl(t,i,u){(i!=="number"||Fd(t.ownerDocument)!==t)&&(u==null?t.defaultValue=Jr(t._wrapperState.initialValue):t.defaultValue!==Jr(u)&&(t.defaultValue=Jr(u)))}var jd=!1,ku=!1,Cy=!1;function $d(t,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?e.Children.forEach(i.children,function(u){u!=null&&(typeof u=="string"||typeof u=="number"||ku||(ku=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):i.dangerouslySetInnerHTML!=null&&(Cy||(Cy=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),i.selected!=null&&!jd&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jd=!0)}function km(t,i){i.value!=null&&t.setAttribute("value",Jr(pl(i.value)))}var Xc=Array.isArray;function Ar(t){return Xc(t)}var Ud;Ud=!1;function ky(){var t=da();return t?`
73
+
74
+ Check the render method of \``+t+"`.":""}var _y=["value","defaultValue"];function Dx(t){{xu("select",t);for(var i=0;i<_y.length;i++){var u=_y[i];if(t[u]!=null){var d=Ar(t[u]);t.multiple&&!d?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,ky()):!t.multiple&&d&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,ky())}}}}function ml(t,i,u,d){var m=t.options;if(i){for(var b=u,k={},O=0;O<b.length;O++)k["$"+b[O]]=!0;for(var A=0;A<m.length;A++){var z=k.hasOwnProperty("$"+m[A].value);m[A].selected!==z&&(m[A].selected=z),z&&d&&(m[A].defaultSelected=!0)}}else{for(var B=Jr(pl(u)),X=null,G=0;G<m.length;G++){if(m[G].value===B){m[G].selected=!0,d&&(m[G].defaultSelected=!0);return}X===null&&!m[G].disabled&&(X=m[G])}X!==null&&(X.selected=!0)}}function _m(t,i){return Xt({},i,{value:void 0})}function Ty(t,i){var u=t;Dx(i),u._wrapperState={wasMultiple:!!i.multiple},i.value!==void 0&&i.defaultValue!==void 0&&!Ud&&(f("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ud=!0)}function Ax(t,i){var u=t;u.multiple=!!i.multiple;var d=i.value;d!=null?ml(u,!!i.multiple,d,!1):i.defaultValue!=null&&ml(u,!!i.multiple,i.defaultValue,!0)}function Mx(t,i){var u=t,d=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?ml(u,!!i.multiple,m,!1):d!==!!i.multiple&&(i.defaultValue!=null?ml(u,!!i.multiple,i.defaultValue,!0):ml(u,!!i.multiple,i.multiple?[]:"",!1))}function Lx(t,i){var u=t,d=i.value;d!=null&&ml(u,!!i.multiple,d,!1)}var Tm=!1;function Rm(t,i){var u=t;if(i.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var d=Xt({},i,{value:void 0,defaultValue:void 0,children:Jr(u._wrapperState.initialValue)});return d}function Ry(t,i){var u=t;xu("textarea",i),i.value!==void 0&&i.defaultValue!==void 0&&!Tm&&(f("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",da()||"A component"),Tm=!0);var d=i.value;if(d==null){var m=i.children,b=i.defaultValue;if(m!=null){f("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(b!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ar(m)){if(m.length>1)throw new Error("<textarea> can only have at most one child.");m=m[0]}b=m}}b==null&&(b=""),d=b}u._wrapperState={initialValue:pl(d)}}function Oy(t,i){var u=t,d=pl(i.value),m=pl(i.defaultValue);if(d!=null){var b=Jr(d);b!==u.value&&(u.value=b),i.defaultValue==null&&u.defaultValue!==b&&(u.defaultValue=b)}m!=null&&(u.defaultValue=Jr(m))}function Dy(t,i){var u=t,d=u.textContent;d===u._wrapperState.initialValue&&d!==""&&d!==null&&(u.value=d)}function Om(t,i){Oy(t,i)}var Ro="http://www.w3.org/1999/xhtml",Px="http://www.w3.org/1998/Math/MathML",Dm="http://www.w3.org/2000/svg";function Bd(t){switch(t){case"svg":return Dm;case"math":return Px;default:return Ro}}function Am(t,i){return t==null||t===Ro?Bd(i):t===Dm&&i==="foreignObject"?Ro:t}var Nx=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,u,d,m){MSApp.execUnsafeLocalFunction(function(){return t(i,u,d,m)})}:t},Vd,Ay=Nx(function(t,i){if(t.namespaceURI===Dm&&!("innerHTML"in t)){Vd=Vd||document.createElement("div"),Vd.innerHTML="<svg>"+i.valueOf().toString()+"</svg>";for(var u=Vd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;u.firstChild;)t.appendChild(u.firstChild);return}t.innerHTML=i}),Ci=1,Oo=3,mr=8,Ua=9,cs=11,Hd=function(t,i){if(i){var u=t.firstChild;if(u&&u===t.lastChild&&u.nodeType===Oo){u.nodeValue=i;return}}t.textContent=i},My={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_u={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Ly(t,i){return t+i.charAt(0).toUpperCase()+i.substring(1)}var Py=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(t){Py.forEach(function(i){_u[Ly(i,t)]=_u[t]})});function qd(t,i,u){var d=i==null||typeof i=="boolean"||i==="";return d?"":!u&&typeof i=="number"&&i!==0&&!(_u.hasOwnProperty(t)&&_u[t])?i+"px":(or(i,t),(""+i).trim())}var Tu=/([A-Z])/g,Fx=/^ms-/;function Ix(t){return t.replace(Tu,"-$1").toLowerCase().replace(Fx,"-ms-")}var Ny=function(){};{var Fy=/^(?:webkit|moz|o)[A-Z]/,Iy=/^-ms-/,Jc=/-(.)/g,Ru=/;\s*$/,Ou={},Du={},zy=!1,Mm=!1,Lm=function(t){return t.replace(Jc,function(i,u){return u.toUpperCase()})},Pm=function(t){Ou.hasOwnProperty(t)&&Ou[t]||(Ou[t]=!0,f("Unsupported style property %s. Did you mean %s?",t,Lm(t.replace(Iy,"ms-"))))},jy=function(t){Ou.hasOwnProperty(t)&&Ou[t]||(Ou[t]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},$y=function(t,i){Du.hasOwnProperty(i)&&Du[i]||(Du[i]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,i.replace(Ru,"")))},Uy=function(t,i){zy||(zy=!0,f("`NaN` is an invalid value for the `%s` css style property.",t))},zx=function(t,i){Mm||(Mm=!0,f("`Infinity` is an invalid value for the `%s` css style property.",t))};Ny=function(t,i){t.indexOf("-")>-1?Pm(t):Fy.test(t)?jy(t):Ru.test(i)&&$y(t,i),typeof i=="number"&&(isNaN(i)?Uy(t,i):isFinite(i)||zx(t,i))}}var jx=Ny;function $x(t){{var i="",u="";for(var d in t)if(t.hasOwnProperty(d)){var m=t[d];if(m!=null){var b=d.indexOf("--")===0;i+=u+(b?d:Ix(d))+":",i+=qd(d,m,b),u=";"}}return i||null}}function By(t,i){var u=t.style;for(var d in i)if(i.hasOwnProperty(d)){var m=d.indexOf("--")===0;m||jx(d,i[d]);var b=qd(d,i[d],m);d==="float"&&(d="cssFloat"),m?u.setProperty(d,b):u[d]=b}}function Ux(t){return t==null||typeof t=="boolean"||t===""}function pa(t){var i={};for(var u in t)for(var d=My[u]||[u],m=0;m<d.length;m++)i[d[m]]=u;return i}function ef(t,i){{if(!i)return;var u=pa(t),d=pa(i),m={};for(var b in u){var k=u[b],O=d[b];if(O&&k!==O){var A=k+","+O;if(m[A])continue;m[A]=!0,f("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ux(t[k])?"Removing":"Updating",k,O)}}}}var Vy={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Hy=Xt({menuitem:!0},Vy),qy="__html";function Wd(t,i){if(i){if(Hy[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw new Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof i.dangerouslySetInnerHTML!="object"||!(qy in i.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!i.suppressContentEditableWarning&&i.contentEditable&&i.children!=null&&f("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),i.style!=null&&typeof i.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Do(t,i){if(t.indexOf("-")===-1)return typeof i.is=="string";switch(t){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 Yd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Wy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ba={},Nm=new RegExp("^(aria)-["+it+"]*$"),tf=new RegExp("^(aria)[A-Z]["+it+"]*$");function Fm(t,i){{if(be.call(Ba,i)&&Ba[i])return!0;if(tf.test(i)){var u="aria-"+i.slice(4).toLowerCase(),d=Wy.hasOwnProperty(u)?u:null;if(d==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Ba[i]=!0,!0;if(i!==d)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,d),Ba[i]=!0,!0}if(Nm.test(i)){var m=i.toLowerCase(),b=Wy.hasOwnProperty(m)?m:null;if(b==null)return Ba[i]=!0,!1;if(i!==b)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,b),Ba[i]=!0,!0}}return!0}function Yy(t,i){{var u=[];for(var d in i){var m=Fm(t,d);m||u.push(d)}var b=u.map(function(k){return"`"+k+"`"}).join(", ");u.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,t):u.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,t)}}function Zd(t,i){Do(t,i)||Yy(t,i)}var fs=!1;function Im(t,i){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;i!=null&&i.value===null&&!fs&&(fs=!0,t==="select"&&i.multiple?f("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var zm=function(){};{var Mr={},jm=/^on./,Zy=/^on[^A-Z]/,Ky=new RegExp("^(aria)-["+it+"]*$"),Gy=new RegExp("^(aria)[A-Z]["+it+"]*$");zm=function(t,i,u,d){if(be.call(Mr,i)&&Mr[i])return!0;var m=i.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return f("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Mr[i]=!0,!0;if(d!=null){var b=d.registrationNameDependencies,k=d.possibleRegistrationNames;if(b.hasOwnProperty(i))return!0;var O=k.hasOwnProperty(m)?k[m]:null;if(O!=null)return f("Invalid event handler property `%s`. Did you mean `%s`?",i,O),Mr[i]=!0,!0;if(jm.test(i))return f("Unknown event handler property `%s`. It will be ignored.",i),Mr[i]=!0,!0}else if(jm.test(i))return Zy.test(i)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Mr[i]=!0,!0;if(Ky.test(i)||Gy.test(i))return!0;if(m==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mr[i]=!0,!0;if(m==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mr[i]=!0,!0;if(m==="is"&&u!==null&&u!==void 0&&typeof u!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Mr[i]=!0,!0;if(typeof u=="number"&&isNaN(u))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Mr[i]=!0,!0;var A=$i(i),z=A!==null&&A.type===pr;if(Yd.hasOwnProperty(m)){var B=Yd[m];if(B!==i)return f("Invalid DOM property `%s`. Did you mean `%s`?",i,B),Mr[i]=!0,!0}else if(!z&&i!==m)return f("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",i,m),Mr[i]=!0,!0;return typeof u=="boolean"&&Or(i,u,A,!1)?(u?f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,i,i,u,i):f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,i,i,u,i,i,i),Mr[i]=!0,!0):z?!0:Or(i,u,A,!1)?(Mr[i]=!0,!1):((u==="false"||u==="true")&&A!==null&&A.type===fe&&(f("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,i,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,u),Mr[i]=!0),!0)}}var Qy=function(t,i,u){{var d=[];for(var m in i){var b=zm(t,m,i[m],u);b||d.push(m)}var k=d.map(function(O){return"`"+O+"`"}).join(", ");d.length===1?f("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",k,t):d.length>1&&f("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",k,t)}};function Xy(t,i,u){Do(t,i)||Qy(t,i,u)}var Ao=1,nf=2,ds=4,Bx=Ao|nf|ds,rf=null;function af(t){rf!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rf=t}function Vx(){rf===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),rf=null}function Jy(t){return t===rf}function Kd(t){var i=t.target||t.srcElement||window;return i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===Oo?i.parentNode:i}var Dn=null,vl=null,Mo=null;function Au(t){var i=rc(t);if(i){if(typeof Dn!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var u=i.stateNode;if(u){var d=J1(u);Dn(i.stateNode,i.type,d)}}}function e1(t){Dn=t}function Gd(t){vl?Mo?Mo.push(t):Mo=[t]:vl=t}function of(){return vl!==null||Mo!==null}function lf(){if(vl){var t=vl,i=Mo;if(vl=null,Mo=null,Au(t),i)for(var u=0;u<i.length;u++)Au(i[u])}}var ps=function(t,i){return t(i)},$m=function(){},Um=!1;function Hx(){var t=of();t&&($m(),lf())}function Bm(t,i,u){if(Um)return t(i,u);Um=!0;try{return ps(t,i,u)}finally{Um=!1,Hx()}}function Qd(t,i,u){ps=t,$m=u}function Xd(t){return t==="button"||t==="input"||t==="select"||t==="textarea"}function Vm(t,i,u){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&Xd(i));default:return!1}}function hs(t,i){var u=t.stateNode;if(u===null)return null;var d=J1(u);if(d===null)return null;var m=d[i];if(Vm(i,t.type,d))return null;if(m&&typeof m!="function")throw new Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}var sf=!1;if(ze)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){sf=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{sf=!1}function t1(t,i,u,d,m,b,k,O,A){var z=Array.prototype.slice.call(arguments,3);try{i.apply(u,z)}catch(B){this.onError(B)}}var Hm=t1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var qm=document.createElement("react");Hm=function(i,u,d,m,b,k,O,A,z){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var B=document.createEvent("Event"),X=!1,G=!0,ue=window.event,ce=Object.getOwnPropertyDescriptor(window,"event");function Se(){qm.removeEventListener(Ee,bt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ue)}var tt=Array.prototype.slice.call(arguments,3);function bt(){X=!0,Se(),u.apply(d,tt),G=!1}var vt,an=!1,en=!1;function ie(ae){if(vt=ae.error,an=!0,vt===null&&ae.colno===0&&ae.lineno===0&&(en=!0),ae.defaultPrevented&&vt!=null&&typeof vt=="object")try{vt._suppressLogging=!0}catch{}}var Ee="react-"+(i||"invokeguardedcallback");if(window.addEventListener("error",ie),qm.addEventListener(Ee,bt,!1),B.initEvent(Ee,!1,!1),qm.dispatchEvent(B),ce&&Object.defineProperty(window,"event",ce),X&&G&&(an?en&&(vt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):vt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(vt)),window.removeEventListener("error",ie),!X)return Se(),t1.apply(this,arguments)}}var qx=Hm,gl=!1,Va=null,uf=!1,yl=null,ro={onError:function(t){gl=!0,Va=t}};function vs(t,i,u,d,m,b,k,O,A){gl=!1,Va=null,qx.apply(ro,arguments)}function Lo(t,i,u,d,m,b,k,O,A){if(vs.apply(this,arguments),gl){var z=Ym();uf||(uf=!0,yl=z)}}function Wm(){if(uf){var t=yl;throw uf=!1,yl=null,t}}function Wx(){return gl}function Ym(){if(gl){var t=Va;return gl=!1,Va=null,t}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function ha(t){return t._reactInternals}function cf(t){return t._reactInternals!==void 0}function Mu(t,i){t._reactInternals=i}var yt=0,bl=1,Pn=2,zt=4,dn=16,mn=32,io=64,Dt=128,er=256,ki=512,ma=1024,Vn=2048,va=4096,Sl=8192,ff=16384,Jd=Vn|zt|io|ki|ma|ff,n1=32767,Vi=32768,Lr=65536,df=131072,Zm=1048576,Km=2097152,_i=4194304,El=8388608,Ti=16777216,gs=33554432,Lu=zt|ma|0,Ri=Pn|zt|dn|mn|ki|va|Sl,ei=zt|io|ki|Sl,ga=Vn|dn,Ur=_i|El|Km,Po=r.ReactCurrentOwner;function Hi(t){var i=t,u=t;if(t.alternate)for(;i.return;)i=i.return;else{var d=i;do i=d,(i.flags&(Pn|va))!==yt&&(u=i.return),d=i.return;while(d)}return i.tag===E?u:null}function Gm(t){if(t.tag===I){var i=t.memoizedState;if(i===null){var u=t.alternate;u!==null&&(i=u.memoizedState)}if(i!==null)return i.dehydrated}return null}function ep(t){return t.tag===E?t.stateNode.containerInfo:null}function Qm(t){return Hi(t)===t}function qi(t){{var i=Po.current;if(i!==null&&i.tag===y){var u=i,d=u.stateNode;d._warnedAboutRefsInRender||f("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ft(u)||"A component"),d._warnedAboutRefsInRender=!0}}var m=ha(t);return m?Hi(m)===m:!1}function Oi(t){if(Hi(t)!==t)throw new Error("Unable to find node on an unmounted component.")}function Nn(t){var i=t.alternate;if(!i){var u=Hi(t);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==t?null:t}for(var d=t,m=i;;){var b=d.return;if(b===null)break;var k=b.alternate;if(k===null){var O=b.return;if(O!==null){d=m=O;continue}break}if(b.child===k.child){for(var A=b.child;A;){if(A===d)return Oi(b),t;if(A===m)return Oi(b),i;A=A.sibling}throw new Error("Unable to find node on an unmounted component.")}if(d.return!==m.return)d=b,m=k;else{for(var z=!1,B=b.child;B;){if(B===d){z=!0,d=b,m=k;break}if(B===m){z=!0,m=b,d=k;break}B=B.sibling}if(!z){for(B=k.child;B;){if(B===d){z=!0,d=k,m=b;break}if(B===m){z=!0,m=k,d=b;break}B=B.sibling}if(!z)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(d.alternate!==m)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(d.tag!==E)throw new Error("Unable to find node on an unmounted component.");return d.stateNode.current===d?t:i}function ya(t){var i=Nn(t);return i!==null?Xm(i):null}function Xm(t){if(t.tag===x||t.tag===R)return t;for(var i=t.child;i!==null;){var u=Xm(i);if(u!==null)return u;i=i.sibling}return null}function r1(t){var i=Nn(t);return i!==null?tp(i):null}function tp(t){if(t.tag===x||t.tag===R)return t;for(var i=t.child;i!==null;){if(i.tag!==C){var u=tp(i);if(u!==null)return u}i=i.sibling}return null}var np=n.unstable_scheduleCallback,i1=n.unstable_cancelCallback,rp=n.unstable_shouldYield,a1=n.unstable_requestPaint,Zn=n.unstable_now,Jm=n.unstable_getCurrentPriorityLevel,ip=n.unstable_ImmediatePriority,Wi=n.unstable_UserBlockingPriority,ao=n.unstable_NormalPriority,ap=n.unstable_LowPriority,xl=n.unstable_IdlePriority,ev=n.unstable_yieldValue,tv=n.unstable_setDisableYieldValue,wl=null,Pr=null,Ye=null,lr=!1,Br=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function nv(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return f("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{We&&(t=Xt({},t,{getLaneLabelMap:kl,injectProfilingHooks:Fo})),wl=i.inject(t),Pr=i}catch(u){f("React instrumentation encountered an error: %s.",u)}return!!i.checkDCE}function o1(t,i){if(Pr&&typeof Pr.onScheduleFiberRoot=="function")try{Pr.onScheduleFiberRoot(wl,t,i)}catch(u){lr||(lr=!0,f("React instrumentation encountered an error: %s",u))}}function No(t,i){if(Pr&&typeof Pr.onCommitFiberRoot=="function")try{var u=(t.current.flags&Dt)===Dt;if(Re){var d;switch(i){case ti:d=ip;break;case Vr:d=Wi;break;case zo:d=ao;break;case Ef:d=xl;break;default:d=ao;break}Pr.onCommitFiberRoot(wl,t,d,u)}}catch(m){lr||(lr=!0,f("React instrumentation encountered an error: %s",m))}}function Cl(t){if(Pr&&typeof Pr.onPostCommitFiberRoot=="function")try{Pr.onPostCommitFiberRoot(wl,t)}catch(i){lr||(lr=!0,f("React instrumentation encountered an error: %s",i))}}function rv(t){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(wl,t)}catch(i){lr||(lr=!0,f("React instrumentation encountered an error: %s",i))}}function xr(t){if(typeof ev=="function"&&(tv(t),s(t)),Pr&&typeof Pr.setStrictMode=="function")try{Pr.setStrictMode(wl,t)}catch(i){lr||(lr=!0,f("React instrumentation encountered an error: %s",i))}}function Fo(t){Ye=t}function kl(){{for(var t=new Map,i=1,u=0;u<Fn;u++){var d=Yx(i);t.set(i,d),i*=2}return t}}function op(t){Ye!==null&&typeof Ye.markCommitStarted=="function"&&Ye.markCommitStarted(t)}function iv(){Ye!==null&&typeof Ye.markCommitStopped=="function"&&Ye.markCommitStopped()}function _l(t){Ye!==null&&typeof Ye.markComponentRenderStarted=="function"&&Ye.markComponentRenderStarted(t)}function ys(){Ye!==null&&typeof Ye.markComponentRenderStopped=="function"&&Ye.markComponentRenderStopped()}function l1(t){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStarted=="function"&&Ye.markComponentPassiveEffectMountStarted(t)}function av(){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStopped=="function"&&Ye.markComponentPassiveEffectMountStopped()}function lp(t){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStarted=="function"&&Ye.markComponentPassiveEffectUnmountStarted(t)}function s1(){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStopped=="function"&&Ye.markComponentPassiveEffectUnmountStopped()}function u1(t){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStarted=="function"&&Ye.markComponentLayoutEffectMountStarted(t)}function c1(){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStopped=="function"&&Ye.markComponentLayoutEffectMountStopped()}function sp(t){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStarted=="function"&&Ye.markComponentLayoutEffectUnmountStarted(t)}function Pu(){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStopped=="function"&&Ye.markComponentLayoutEffectUnmountStopped()}function up(t,i,u){Ye!==null&&typeof Ye.markComponentErrored=="function"&&Ye.markComponentErrored(t,i,u)}function f1(t,i,u){Ye!==null&&typeof Ye.markComponentSuspended=="function"&&Ye.markComponentSuspended(t,i,u)}function d1(t){Ye!==null&&typeof Ye.markLayoutEffectsStarted=="function"&&Ye.markLayoutEffectsStarted(t)}function Nu(){Ye!==null&&typeof Ye.markLayoutEffectsStopped=="function"&&Ye.markLayoutEffectsStopped()}function p1(t){Ye!==null&&typeof Ye.markPassiveEffectsStarted=="function"&&Ye.markPassiveEffectsStarted(t)}function pf(){Ye!==null&&typeof Ye.markPassiveEffectsStopped=="function"&&Ye.markPassiveEffectsStopped()}function Ha(t){Ye!==null&&typeof Ye.markRenderStarted=="function"&&Ye.markRenderStarted(t)}function hf(){Ye!==null&&typeof Ye.markRenderYielded=="function"&&Ye.markRenderYielded()}function Fu(){Ye!==null&&typeof Ye.markRenderStopped=="function"&&Ye.markRenderStopped()}function bs(t){Ye!==null&&typeof Ye.markRenderScheduled=="function"&&Ye.markRenderScheduled(t)}function ov(t,i){Ye!==null&&typeof Ye.markForceUpdateScheduled=="function"&&Ye.markForceUpdateScheduled(t,i)}function Tl(t,i){Ye!==null&&typeof Ye.markStateUpdateScheduled=="function"&&Ye.markStateUpdateScheduled(t,i)}var Et=0,Zt=1,wt=2,Kn=8,ba=16,cp=Math.clz32?Math.clz32:Ss,fp=Math.log,lv=Math.LN2;function Ss(t){var i=t>>>0;return i===0?32:31-(fp(i)/lv|0)|0}var Fn=31,we=0,nn=0,kt=1,oo=2,Yi=4,Es=8,In=16,xs=32,Rl=4194240,ws=64,Sa=128,Di=256,Cs=512,mf=1024,vf=2048,dp=4096,pp=8192,hp=16384,mp=32768,vp=65536,gp=131072,yp=262144,bp=524288,ks=1048576,Sp=2097152,_s=130023424,Io=4194304,Ep=8388608,gf=16777216,xp=33554432,wp=67108864,sv=Io,Iu=134217728,Cp=268435455,zu=268435456,Ol=536870912,Ai=1073741824;function Yx(t){{if(t&kt)return"Sync";if(t&oo)return"InputContinuousHydration";if(t&Yi)return"InputContinuous";if(t&Es)return"DefaultHydration";if(t&In)return"Default";if(t&xs)return"TransitionHydration";if(t&Rl)return"Transition";if(t&_s)return"Retry";if(t&Iu)return"SelectiveHydration";if(t&zu)return"IdleHydration";if(t&Ol)return"Idle";if(t&Ai)return"Offscreen"}}var An=-1,kp=ws,_p=Io;function ju(t){switch(vr(t)){case kt:return kt;case oo:return oo;case Yi:return Yi;case Es:return Es;case In:return In;case xs:return xs;case ws:case Sa:case Di:case Cs:case mf:case vf:case dp:case pp:case hp:case mp:case vp:case gp:case yp:case bp:case ks:case Sp:return t&Rl;case Io:case Ep:case gf:case xp:case wp:return t&_s;case Iu:return Iu;case zu:return zu;case Ol:return Ol;case Ai:return Ai;default:return f("Should have found matching lanes. This is a bug in React."),t}}function yf(t,i){var u=t.pendingLanes;if(u===we)return we;var d=we,m=t.suspendedLanes,b=t.pingedLanes,k=u&Cp;if(k!==we){var O=k&~m;if(O!==we)d=ju(O);else{var A=k&b;A!==we&&(d=ju(A))}}else{var z=u&~m;z!==we?d=ju(z):b!==we&&(d=ju(b))}if(d===we)return we;if(i!==we&&i!==d&&(i&m)===we){var B=vr(d),X=vr(i);if(B>=X||B===In&&(X&Rl)!==we)return i}(d&Yi)!==we&&(d|=u&In);var G=t.entangledLanes;if(G!==we)for(var ue=t.entanglements,ce=d&G;ce>0;){var Se=Dl(ce),tt=1<<Se;d|=ue[Se],ce&=~tt}return d}function h1(t,i){for(var u=t.eventTimes,d=An;i>0;){var m=Dl(i),b=1<<m,k=u[m];k>d&&(d=k),i&=~b}return d}function Tp(t,i){switch(t){case kt:case oo:case Yi:return i+250;case Es:case In:case xs:case ws:case Sa:case Di:case Cs:case mf:case vf:case dp:case pp:case hp:case mp:case vp:case gp:case yp:case bp:case ks:case Sp:return i+5e3;case Io:case Ep:case gf:case xp:case wp:return An;case Iu:case zu:case Ol:case Ai:return An;default:return f("Should have found matching lanes. This is a bug in React."),An}}function Zx(t,i){for(var u=t.pendingLanes,d=t.suspendedLanes,m=t.pingedLanes,b=t.expirationTimes,k=u;k>0;){var O=Dl(k),A=1<<O,z=b[O];z===An?((A&d)===we||(A&m)!==we)&&(b[O]=Tp(A,i)):z<=i&&(t.expiredLanes|=A),k&=~A}}function Kx(t){return ju(t.pendingLanes)}function uv(t){var i=t.pendingLanes&~Ai;return i!==we?i:i&Ai?Ai:we}function $u(t){return(t&kt)!==we}function bf(t){return(t&Cp)!==we}function Rp(t){return(t&_s)===t}function Gx(t){var i=kt|Yi|In;return(t&i)===we}function m1(t){return(t&Rl)===t}function Sf(t,i){var u=oo|Yi|Es|In;return(i&u)!==we}function v1(t,i){return(i&t.expiredLanes)!==we}function cv(t){return(t&Rl)!==we}function fv(){var t=kp;return kp<<=1,(kp&Rl)===we&&(kp=ws),t}function Qx(){var t=_p;return _p<<=1,(_p&_s)===we&&(_p=Io),t}function vr(t){return t&-t}function wr(t){return vr(t)}function Dl(t){return 31-cp(t)}function Op(t){return Dl(t)}function Mi(t,i){return(t&i)!==we}function Ts(t,i){return(t&i)===i}function jt(t,i){return t|i}function Uu(t,i){return t&~i}function dv(t,i){return t&i}function g1(t){return t}function y1(t,i){return t!==nn&&t<i?t:i}function Dp(t){for(var i=[],u=0;u<Fn;u++)i.push(t);return i}function Rs(t,i,u){t.pendingLanes|=i,i!==Ol&&(t.suspendedLanes=we,t.pingedLanes=we);var d=t.eventTimes,m=Op(i);d[m]=u}function pv(t,i){t.suspendedLanes|=i,t.pingedLanes&=~i;for(var u=t.expirationTimes,d=i;d>0;){var m=Dl(d),b=1<<m;u[m]=An,d&=~b}}function hv(t,i,u){t.pingedLanes|=t.suspendedLanes&i}function mv(t,i){var u=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=we,t.pingedLanes=we,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i;for(var d=t.entanglements,m=t.eventTimes,b=t.expirationTimes,k=u;k>0;){var O=Dl(k),A=1<<O;d[O]=we,m[O]=An,b[O]=An,k&=~A}}function Bu(t,i){for(var u=t.entangledLanes|=i,d=t.entanglements,m=u;m;){var b=Dl(m),k=1<<b;k&i|d[b]&i&&(d[b]|=i),m&=~k}}function Xx(t,i){var u=vr(i),d;switch(u){case Yi:d=oo;break;case In:d=Es;break;case ws:case Sa:case Di:case Cs:case mf:case vf:case dp:case pp:case hp:case mp:case vp:case gp:case yp:case bp:case ks:case Sp:case Io:case Ep:case gf:case xp:case wp:d=xs;break;case Ol:d=zu;break;default:d=nn;break}return(d&(t.suspendedLanes|i))!==nn?nn:d}function vv(t,i,u){if(Br)for(var d=t.pendingUpdatersLaneMap;u>0;){var m=Op(u),b=1<<m,k=d[m];k.add(i),u&=~b}}function Ap(t,i){if(Br)for(var u=t.pendingUpdatersLaneMap,d=t.memoizedUpdaters;i>0;){var m=Op(i),b=1<<m,k=u[m];k.size>0&&(k.forEach(function(O){var A=O.alternate;(A===null||!d.has(A))&&d.add(O)}),k.clear()),i&=~b}}function gv(t,i){return null}var ti=kt,Vr=Yi,zo=In,Ef=Ol,Os=nn;function Ea(){return Os}function Cr(t){Os=t}function xf(t,i){var u=Os;try{return Os=t,i()}finally{Os=u}}function ni(t,i){return t!==0&&t<i?t:i}function Jx(t,i){return t===0||t>i?t:i}function yv(t,i){return t!==0&&t<i}function wf(t){var i=vr(t);return yv(ti,i)?yv(Vr,i)?bf(i)?zo:Ef:Vr:ti}function kr(t){var i=t.current.memoizedState;return i.isDehydrated}var b1;function at(t){b1=t}function Vu(t){b1(t)}var Cf;function S1(t){Cf=t}var E1;function kf(t){E1=t}var _f;function bv(t){_f=t}var Sv;function x1(t){Sv=t}var Mp=!1,Hu=[],lo=null,Hn=null,Nr=null,xa=new Map,qu=new Map,jo=[],qa=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function w1(t){return qa.indexOf(t)>-1}function so(t,i,u,d,m){return{blockedOn:t,domEventName:i,eventSystemFlags:u,nativeEvent:m,targetContainers:[d]}}function C1(t,i){switch(t){case"focusin":case"focusout":lo=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":{var u=i.pointerId;xa.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var d=i.pointerId;qu.delete(d);break}}}function Wu(t,i,u,d,m,b){if(t===null||t.nativeEvent!==b){var k=so(i,u,d,m,b);if(i!==null){var O=rc(i);O!==null&&Cf(O)}return k}t.eventSystemFlags|=d;var A=t.targetContainers;return m!==null&&A.indexOf(m)===-1&&A.push(m),t}function k1(t,i,u,d,m){switch(i){case"focusin":{var b=m;return lo=Wu(lo,t,i,u,d,b),!0}case"dragenter":{var k=m;return Hn=Wu(Hn,t,i,u,d,k),!0}case"mouseover":{var O=m;return Nr=Wu(Nr,t,i,u,d,O),!0}case"pointerover":{var A=m,z=A.pointerId;return xa.set(z,Wu(xa.get(z)||null,t,i,u,d,A)),!0}case"gotpointercapture":{var B=m,X=B.pointerId;return qu.set(X,Wu(qu.get(X)||null,t,i,u,d,B)),!0}}return!1}function Ev(t){var i=Nf(t.target);if(i!==null){var u=Hi(i);if(u!==null){var d=u.tag;if(d===I){var m=Gm(u);if(m!==null){t.blockedOn=m,Sv(t.priority,function(){E1(u)});return}}else if(d===E){var b=u.stateNode;if(kr(b)){t.blockedOn=ep(u);return}}}}t.blockedOn=null}function _1(t){for(var i=_f(),u={blockedOn:null,target:t,priority:i},d=0;d<jo.length&&yv(i,jo[d].priority);d++);jo.splice(d,0,u),d===0&&Ev(u)}function Lp(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;i.length>0;){var u=i[0],d=Ds(t.domEventName,t.eventSystemFlags,u,t.nativeEvent);if(d===null){var m=t.nativeEvent,b=new m.constructor(m.type,m);af(b),m.target.dispatchEvent(b),Vx()}else{var k=rc(d);return k!==null&&Cf(k),t.blockedOn=d,!1}i.shift()}return!0}function Tf(t,i,u){Lp(t)&&u.delete(i)}function xv(){Mp=!1,lo!==null&&Lp(lo)&&(lo=null),Hn!==null&&Lp(Hn)&&(Hn=null),Nr!==null&&Lp(Nr)&&(Nr=null),xa.forEach(Tf),qu.forEach(Tf)}function ri(t,i){t.blockedOn===i&&(t.blockedOn=null,Mp||(Mp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,xv)))}function Jt(t){if(Hu.length>0){ri(Hu[0],t);for(var i=1;i<Hu.length;i++){var u=Hu[i];u.blockedOn===t&&(u.blockedOn=null)}}lo!==null&&ri(lo,t),Hn!==null&&ri(Hn,t),Nr!==null&&ri(Nr,t);var d=function(O){return ri(O,t)};xa.forEach(d),qu.forEach(d);for(var m=0;m<jo.length;m++){var b=jo[m];b.blockedOn===t&&(b.blockedOn=null)}for(;jo.length>0;){var k=jo[0];if(k.blockedOn!==null)break;Ev(k),k.blockedOn===null&&jo.shift()}}var Gn=r.ReactCurrentBatchConfig,tr=!0;function Fr(t){tr=!!t}function Zi(){return tr}function Yu(t,i,u){var d=fi(i),m;switch(d){case ti:m=_r;break;case Vr:m=Rf;break;case zo:default:m=$o;break}return m.bind(null,i,u,t)}function _r(t,i,u,d){var m=Ea(),b=Gn.transition;Gn.transition=null;try{Cr(ti),$o(t,i,u,d)}finally{Cr(m),Gn.transition=b}}function Rf(t,i,u,d){var m=Ea(),b=Gn.transition;Gn.transition=null;try{Cr(Vr),$o(t,i,u,d)}finally{Cr(m),Gn.transition=b}}function $o(t,i,u,d){tr&&Pp(t,i,u,d)}function Pp(t,i,u,d){var m=Ds(t,i,u,d);if(m===null){bw(t,i,d,Zu,u),C1(t,d);return}if(k1(m,t,i,u,d)){d.stopPropagation();return}if(C1(t,d),i&ds&&w1(t)){for(;m!==null;){var b=rc(m);b!==null&&Vu(b);var k=Ds(t,i,u,d);if(k===null&&bw(t,i,d,Zu,u),k===m)break;m=k}m!==null&&d.stopPropagation();return}bw(t,i,d,null,u)}var Zu=null;function Ds(t,i,u,d){Zu=null;var m=Kd(d),b=Nf(m);if(b!==null){var k=Hi(b);if(k===null)b=null;else{var O=k.tag;if(O===I){var A=Gm(k);if(A!==null)return A;b=null}else if(O===E){var z=k.stateNode;if(kr(z))return ep(k);b=null}else k!==b&&(b=null)}}return Zu=b,null}function fi(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ti;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Vr;case"message":{var i=Jm();switch(i){case ip:return ti;case Wi:return Vr;case ao:case ap:return zo;case xl:return Ef;default:return zo}}default:return zo}}function wv(t,i,u){return t.addEventListener(i,u,!1),u}function Ku(t,i,u){return t.addEventListener(i,u,!0),u}function Uo(t,i,u,d){return t.addEventListener(i,u,{capture:!0,passive:d}),u}function Np(t,i,u,d){return t.addEventListener(i,u,{passive:d}),u}var As=null,uo=null,Al=null;function Ml(t){return As=t,uo=Ip(),!0}function Fp(){As=null,uo=null,Al=null}function Gu(){if(Al)return Al;var t,i=uo,u=i.length,d,m=Ip(),b=m.length;for(t=0;t<u&&i[t]===m[t];t++);var k=u-t;for(d=1;d<=k&&i[u-d]===m[b-d];d++);var O=d>1?1-d:void 0;return Al=m.slice(t,O),Al}function Ip(){return"value"in As?As.value:As.textContent}function Ms(t){var i,u=t.keyCode;return"charCode"in t?(i=t.charCode,i===0&&u===13&&(i=13)):i=u,i===10&&(i=13),i>=32||i===13?i:0}function Ls(){return!0}function ii(){return!1}function gr(t){function i(u,d,m,b,k){this._reactName=u,this._targetInst=m,this.type=d,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var O in t)if(t.hasOwnProperty(O)){var A=t[O];A?this[O]=A(b):this[O]=b[O]}var z=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return z?this.isDefaultPrevented=Ls:this.isDefaultPrevented=ii,this.isPropagationStopped=ii,this}return Xt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),i}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oi=gr(ai),Qu=Xt({},ai,{view:0,detail:0}),Cv=gr(Qu),Of,kv,wa;function T1(t){t!==wa&&(wa&&t.type==="mousemove"?(Of=t.screenX-wa.screenX,kv=t.screenY-wa.screenY):(Of=0,kv=0),wa=t)}var Xu=Xt({},Qu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$p,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(T1(t),Of)},movementY:function(t){return"movementY"in t?t.movementY:kv}}),Ll=gr(Xu),_v=Xt({},Xu,{dataTransfer:0}),Ps=gr(_v),R1=Xt({},Qu,{relatedTarget:0}),zp=gr(R1),Tv=Xt({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),jp=gr(Tv),ew=Xt({},ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tw=gr(ew),O1=Xt({},ai,{data:0}),Rv=gr(O1),Ns=Rv,nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ju={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"};function D1(t){if(t.key){var i=nw[t.key]||t.key;if(i!=="Unidentified")return i}if(t.type==="keypress"){var u=Ms(t);return u===13?"Enter":String.fromCharCode(u)}return t.type==="keydown"||t.type==="keyup"?Ju[t.keyCode]||"Unidentified":""}var nr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rw(t){var i=this,u=i.nativeEvent;if(u.getModifierState)return u.getModifierState(t);var d=nr[t];return d?!!u[d]:!1}function $p(t){return rw}var iw=Xt({},Qu,{key:D1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$p,charCode:function(t){return t.type==="keypress"?Ms(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ms(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),aw=gr(iw),A1=Xt({},Xu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ov=gr(A1),ow=Xt({},Qu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$p}),Ca=gr(ow),Dv=Xt({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=gr(Dv),Pl=Xt({},Xu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Up=gr(Pl),Fs=[9,13,27,32],Df=229,Af=ze&&"CompositionEvent"in window,Is=null;ze&&"documentMode"in document&&(Is=document.documentMode);var sw=ze&&"TextEvent"in window&&!Is,Bp=ze&&(!Af||Is&&Is>8&&Is<=11),M1=32,Av=String.fromCharCode(M1);function L1(){Le("onBeforeInput",["compositionend","keypress","textInput","paste"]),Le("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Le("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Le("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Mf=!1;function Vp(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function P1(t){switch(t){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Mv(t,i){return t==="keydown"&&i.keyCode===Df}function N1(t,i){switch(t){case"keyup":return Fs.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==Df;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lv(t){var i=t.detail;return typeof i=="object"&&"data"in i?i.data:null}function Hp(t){return t.locale==="ko"}var Bo=!1;function Pv(t,i,u,d,m){var b,k;if(Af?b=P1(i):Bo?N1(i,d)&&(b="onCompositionEnd"):Mv(i,d)&&(b="onCompositionStart"),!b)return null;Bp&&!Hp(d)&&(!Bo&&b==="onCompositionStart"?Bo=Ml(m):b==="onCompositionEnd"&&Bo&&(k=Gu()));var O=$1(u,b);if(O.length>0){var A=new Rv(b,i,null,d,m);if(t.push({event:A,listeners:O}),k)A.data=k;else{var z=Lv(d);z!==null&&(A.data=z)}}}function qp(t,i){switch(t){case"compositionend":return Lv(i);case"keypress":var u=i.which;return u!==M1?null:(Mf=!0,Av);case"textInput":var d=i.data;return d===Av&&Mf?null:d;default:return null}}function F1(t,i){if(Bo){if(t==="compositionend"||!Af&&N1(t,i)){var u=Gu();return Fp(),Bo=!1,u}return null}switch(t){case"paste":return null;case"keypress":if(!Vp(i)){if(i.char&&i.char.length>1)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Bp&&!Hp(i)?null:i.data;default:return null}}function uw(t,i,u,d,m){var b;if(sw?b=qp(i,d):b=F1(i,d),!b)return null;var k=$1(u,"onBeforeInput");if(k.length>0){var O=new Ns("onBeforeInput","beforeinput",null,d,m);t.push({event:O,listeners:k}),O.data=b}}function Wp(t,i,u,d,m,b,k){Pv(t,i,u,d,m),uw(t,i,u,d,m)}var cw={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 ec(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!cw[t.type]:i==="textarea"}/**
75
+ * Checks if an event is supported in the current execution environment.
76
+ *
77
+ * NOTE: This will not work correctly for non-generic events such as `change`,
78
+ * `reset`, `load`, `error`, and `select`.
79
+ *
80
+ * Borrows from Modernizr.
81
+ *
82
+ * @param {string} eventNameSuffix Event name, e.g. "click".
83
+ * @return {boolean} True if the event is supported.
84
+ * @internal
85
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
86
+ */function fw(t){if(!ze)return!1;var i="on"+t,u=i in document;if(!u){var d=document.createElement("div");d.setAttribute(i,"return;"),u=typeof d[i]=="function"}return u}function Yp(){Le("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(t,i,u,d){Gd(d);var m=$1(i,"onChange");if(m.length>0){var b=new oi("onChange","change",null,u,d);t.push({event:b,listeners:m})}}var l=null,p=null;function g(t){var i=t.nodeName&&t.nodeName.toLowerCase();return i==="select"||i==="input"&&t.type==="file"}function w(t){var i=[];o(i,p,t,Kd(t)),Bm(_,i)}function _(t){LR(t,0)}function P(t){var i=Jp(t);if(xy(i))return t}function q(t,i){if(t==="change")return i}var K=!1;ze&&(K=fw("input")&&(!document.documentMode||document.documentMode>9));function de(t,i){l=t,p=i,l.attachEvent("onpropertychange",Fe)}function Me(){l&&(l.detachEvent("onpropertychange",Fe),l=null,p=null)}function Fe(t){t.propertyName==="value"&&P(p)&&w(t)}function Ae(t,i,u){t==="focusin"?(Me(),de(i,u)):t==="focusout"&&Me()}function Je(t,i){if(t==="selectionchange"||t==="keyup"||t==="keydown")return P(p)}function st(t){var i=t.nodeName;return i&&i.toLowerCase()==="input"&&(t.type==="checkbox"||t.type==="radio")}function ft(t,i){if(t==="click")return P(i)}function sr(t,i){if(t==="input"||t==="change")return P(i)}function re(t){var i=t._wrapperState;!i||!i.controlled||t.type!=="number"||hl(t,"number",t.value)}function Q(t,i,u,d,m,b,k){var O=u?Jp(u):window,A,z;if(g(O)?A=q:ec(O)?K?A=sr:(A=Je,z=Ae):st(O)&&(A=ft),A){var B=A(i,u);if(B){o(t,B,d,m);return}}z&&z(i,O,u),i==="focusout"&&re(O)}function le(){me("onMouseEnter",["mouseout","mouseover"]),me("onMouseLeave",["mouseout","mouseover"]),me("onPointerEnter",["pointerout","pointerover"]),me("onPointerLeave",["pointerout","pointerover"])}function Ve(t,i,u,d,m,b,k){var O=i==="mouseover"||i==="pointerover",A=i==="mouseout"||i==="pointerout";if(O&&!Jy(d)){var z=d.relatedTarget||d.fromElement;if(z&&(Nf(z)||Zv(z)))return}if(!(!A&&!O)){var B;if(m.window===m)B=m;else{var X=m.ownerDocument;X?B=X.defaultView||X.parentWindow:B=window}var G,ue;if(A){var ce=d.relatedTarget||d.toElement;if(G=u,ue=ce?Nf(ce):null,ue!==null){var Se=Hi(ue);(ue!==Se||ue.tag!==x&&ue.tag!==R)&&(ue=null)}}else G=null,ue=u;if(G!==ue){var tt=Ll,bt="onMouseLeave",vt="onMouseEnter",an="mouse";(i==="pointerout"||i==="pointerover")&&(tt=Ov,bt="onPointerLeave",vt="onPointerEnter",an="pointer");var en=G==null?B:Jp(G),ie=ue==null?B:Jp(ue),Ee=new tt(bt,an+"leave",G,d,m);Ee.target=en,Ee.relatedTarget=ie;var ae=null,je=Nf(m);if(je===u){var nt=new tt(vt,an+"enter",ue,d,m);nt.target=ie,nt.relatedTarget=en,ae=nt}xB(t,Ee,ae,G,ue)}}}function dt(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var ut=typeof Object.is=="function"?Object.is:dt;function gt(t,i){if(ut(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var u=Object.keys(t),d=Object.keys(i);if(u.length!==d.length)return!1;for(var m=0;m<u.length;m++){var b=u[m];if(!be.call(i,b)||!ut(t[b],i[b]))return!1}return!0}function At(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ir(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function sn(t,i){for(var u=At(t),d=0,m=0;u;){if(u.nodeType===Oo){if(m=d+u.textContent.length,d<=i&&m>=i)return{node:u,offset:i-d};d=m}u=At(Ir(u))}}function Nl(t){var i=t.ownerDocument,u=i&&i.defaultView||window,d=u.getSelection&&u.getSelection();if(!d||d.rangeCount===0)return null;var m=d.anchorNode,b=d.anchorOffset,k=d.focusNode,O=d.focusOffset;try{m.nodeType,k.nodeType}catch{return null}return dw(t,m,b,k,O)}function dw(t,i,u,d,m){var b=0,k=-1,O=-1,A=0,z=0,B=t,X=null;e:for(;;){for(var G=null;B===i&&(u===0||B.nodeType===Oo)&&(k=b+u),B===d&&(m===0||B.nodeType===Oo)&&(O=b+m),B.nodeType===Oo&&(b+=B.nodeValue.length),(G=B.firstChild)!==null;)X=B,B=G;for(;;){if(B===t)break e;if(X===i&&++A===u&&(k=b),X===d&&++z===m&&(O=b),(G=B.nextSibling)!==null)break;B=X,X=B.parentNode}B=G}return k===-1||O===-1?null:{start:k,end:O}}function rB(t,i){var u=t.ownerDocument||document,d=u&&u.defaultView||window;if(d.getSelection){var m=d.getSelection(),b=t.textContent.length,k=Math.min(i.start,b),O=i.end===void 0?k:Math.min(i.end,b);if(!m.extend&&k>O){var A=O;O=k,k=A}var z=sn(t,k),B=sn(t,O);if(z&&B){if(m.rangeCount===1&&m.anchorNode===z.node&&m.anchorOffset===z.offset&&m.focusNode===B.node&&m.focusOffset===B.offset)return;var X=u.createRange();X.setStart(z.node,z.offset),m.removeAllRanges(),k>O?(m.addRange(X),m.extend(B.node,B.offset)):(X.setEnd(B.node,B.offset),m.addRange(X))}}}function ER(t){return t&&t.nodeType===Oo}function xR(t,i){return!t||!i?!1:t===i?!0:ER(t)?!1:ER(i)?xR(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1}function iB(t){return t&&t.ownerDocument&&xR(t.ownerDocument.documentElement,t)}function aB(t){try{return typeof t.contentWindow.location.href=="string"}catch{return!1}}function wR(){for(var t=window,i=Fd();i instanceof t.HTMLIFrameElement;){if(aB(i))t=i.contentWindow;else return i;i=Fd(t.document)}return i}function pw(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function oB(){var t=wR();return{focusedElem:t,selectionRange:pw(t)?sB(t):null}}function lB(t){var i=wR(),u=t.focusedElem,d=t.selectionRange;if(i!==u&&iB(u)){d!==null&&pw(u)&&uB(u,d);for(var m=[],b=u;b=b.parentNode;)b.nodeType===Ci&&m.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof u.focus=="function"&&u.focus();for(var k=0;k<m.length;k++){var O=m[k];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}}function sB(t){var i;return"selectionStart"in t?i={start:t.selectionStart,end:t.selectionEnd}:i=Nl(t),i||{start:0,end:0}}function uB(t,i){var u=i.start,d=i.end;d===void 0&&(d=u),"selectionStart"in t?(t.selectionStart=u,t.selectionEnd=Math.min(d,t.value.length)):rB(t,i)}var cB=ze&&"documentMode"in document&&document.documentMode<=11;function fB(){Le("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Zp=null,hw=null,Nv=null,mw=!1;function dB(t){if("selectionStart"in t&&pw(t))return{start:t.selectionStart,end:t.selectionEnd};var i=t.ownerDocument&&t.ownerDocument.defaultView||window,u=i.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function pB(t){return t.window===t?t.document:t.nodeType===Ua?t:t.ownerDocument}function CR(t,i,u){var d=pB(u);if(!(mw||Zp==null||Zp!==Fd(d))){var m=dB(Zp);if(!Nv||!gt(Nv,m)){Nv=m;var b=$1(hw,"onSelect");if(b.length>0){var k=new oi("onSelect","select",null,i,u);t.push({event:k,listeners:b}),k.target=Zp}}}}function hB(t,i,u,d,m,b,k){var O=u?Jp(u):window;switch(i){case"focusin":(ec(O)||O.contentEditable==="true")&&(Zp=O,hw=u,Nv=null);break;case"focusout":Zp=null,hw=null,Nv=null;break;case"mousedown":mw=!0;break;case"contextmenu":case"mouseup":case"dragend":mw=!1,CR(t,d,m);break;case"selectionchange":if(cB)break;case"keydown":case"keyup":CR(t,d,m)}}function I1(t,i){var u={};return u[t.toLowerCase()]=i.toLowerCase(),u["Webkit"+t]="webkit"+i,u["Moz"+t]="moz"+i,u}var Kp={animationend:I1("Animation","AnimationEnd"),animationiteration:I1("Animation","AnimationIteration"),animationstart:I1("Animation","AnimationStart"),transitionend:I1("Transition","TransitionEnd")},vw={},kR={};ze&&(kR=document.createElement("div").style,"AnimationEvent"in window||(delete Kp.animationend.animation,delete Kp.animationiteration.animation,delete Kp.animationstart.animation),"TransitionEvent"in window||delete Kp.transitionend.transition);function z1(t){if(vw[t])return vw[t];if(!Kp[t])return t;var i=Kp[t];for(var u in i)if(i.hasOwnProperty(u)&&u in kR)return vw[t]=i[u];return t}var _R=z1("animationend"),TR=z1("animationiteration"),RR=z1("animationstart"),OR=z1("transitionend"),DR=new Map,AR=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function tc(t,i){DR.set(t,i),Le(i,[t])}function mB(){for(var t=0;t<AR.length;t++){var i=AR[t],u=i.toLowerCase(),d=i[0].toUpperCase()+i.slice(1);tc(u,"on"+d)}tc(_R,"onAnimationEnd"),tc(TR,"onAnimationIteration"),tc(RR,"onAnimationStart"),tc("dblclick","onDoubleClick"),tc("focusin","onFocus"),tc("focusout","onBlur"),tc(OR,"onTransitionEnd")}function vB(t,i,u,d,m,b,k){var O=DR.get(i);if(O!==void 0){var A=oi,z=i;switch(i){case"keypress":if(Ms(d)===0)return;case"keydown":case"keyup":A=aw;break;case"focusin":z="focus",A=zp;break;case"focusout":z="blur",A=zp;break;case"beforeblur":case"afterblur":A=zp;break;case"click":if(d.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ll;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Ps;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Ca;break;case _R:case TR:case RR:A=jp;break;case OR:A=lw;break;case"scroll":A=Cv;break;case"wheel":A=Up;break;case"copy":case"cut":case"paste":A=tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Ov;break}var B=(b&ds)!==0;{var X=!B&&i==="scroll",G=SB(u,O,d.type,B,X);if(G.length>0){var ue=new A(O,z,null,d,m);t.push({event:ue,listeners:G})}}}}mB(),le(),Yp(),fB(),L1();function gB(t,i,u,d,m,b,k){vB(t,i,u,d,m,b);var O=(b&Bx)===0;O&&(Ve(t,i,u,d,m),Q(t,i,u,d,m),hB(t,i,u,d,m),Wp(t,i,u,d,m))}var Fv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],gw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Fv));function MR(t,i,u){var d=t.type||"unknown-event";t.currentTarget=u,Lo(d,i,void 0,t),t.currentTarget=null}function yB(t,i,u){var d;if(u)for(var m=i.length-1;m>=0;m--){var b=i[m],k=b.instance,O=b.currentTarget,A=b.listener;if(k!==d&&t.isPropagationStopped())return;MR(t,A,O),d=k}else for(var z=0;z<i.length;z++){var B=i[z],X=B.instance,G=B.currentTarget,ue=B.listener;if(X!==d&&t.isPropagationStopped())return;MR(t,ue,G),d=X}}function LR(t,i){for(var u=(i&ds)!==0,d=0;d<t.length;d++){var m=t[d],b=m.event,k=m.listeners;yB(b,k,u)}Wm()}function bB(t,i,u,d,m){var b=Kd(u),k=[];gB(k,t,d,u,b,i),LR(k,i)}function Qn(t,i){gw.has(t)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var u=!1,d=KV(i),m=wB(t,u);d.has(m)||(PR(i,t,nf,u),d.add(m))}function yw(t,i,u){gw.has(t)&&!i&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var d=0;i&&(d|=ds),PR(u,t,d,i)}var j1="_reactListening"+Math.random().toString(36).slice(2);function Iv(t){if(!t[j1]){t[j1]=!0,$e.forEach(function(u){u!=="selectionchange"&&(gw.has(u)||yw(u,!1,t),yw(u,!0,t))});var i=t.nodeType===Ua?t:t.ownerDocument;i!==null&&(i[j1]||(i[j1]=!0,yw("selectionchange",!1,i)))}}function PR(t,i,u,d,m){var b=Yu(t,i,u),k=void 0;sf&&(i==="touchstart"||i==="touchmove"||i==="wheel")&&(k=!0),t=t,d?k!==void 0?Uo(t,i,b,k):Ku(t,i,b):k!==void 0?Np(t,i,b,k):wv(t,i,b)}function NR(t,i){return t===i||t.nodeType===mr&&t.parentNode===i}function bw(t,i,u,d,m){var b=d;if(!(i&Ao)&&!(i&nf)){var k=m;if(d!==null){var O=d;e:for(;;){if(O===null)return;var A=O.tag;if(A===E||A===C){var z=O.stateNode.containerInfo;if(NR(z,k))break;if(A===C)for(var B=O.return;B!==null;){var X=B.tag;if(X===E||X===C){var G=B.stateNode.containerInfo;if(NR(G,k))return}B=B.return}for(;z!==null;){var ue=Nf(z);if(ue===null)return;var ce=ue.tag;if(ce===x||ce===R){O=b=ue;continue e}z=z.parentNode}}O=O.return}}}Bm(function(){return bB(t,i,u,b)})}function zv(t,i,u){return{instance:t,listener:i,currentTarget:u}}function SB(t,i,u,d,m,b){for(var k=i!==null?i+"Capture":null,O=d?k:i,A=[],z=t,B=null;z!==null;){var X=z,G=X.stateNode,ue=X.tag;if(ue===x&&G!==null&&(B=G,O!==null)){var ce=hs(z,O);ce!=null&&A.push(zv(z,ce,B))}if(m)break;z=z.return}return A}function $1(t,i){for(var u=i+"Capture",d=[],m=t;m!==null;){var b=m,k=b.stateNode,O=b.tag;if(O===x&&k!==null){var A=k,z=hs(m,u);z!=null&&d.unshift(zv(m,z,A));var B=hs(m,i);B!=null&&d.push(zv(m,B,A))}m=m.return}return d}function Gp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==x);return t||null}function EB(t,i){for(var u=t,d=i,m=0,b=u;b;b=Gp(b))m++;for(var k=0,O=d;O;O=Gp(O))k++;for(;m-k>0;)u=Gp(u),m--;for(;k-m>0;)d=Gp(d),k--;for(var A=m;A--;){if(u===d||d!==null&&u===d.alternate)return u;u=Gp(u),d=Gp(d)}return null}function FR(t,i,u,d,m){for(var b=i._reactName,k=[],O=u;O!==null&&O!==d;){var A=O,z=A.alternate,B=A.stateNode,X=A.tag;if(z!==null&&z===d)break;if(X===x&&B!==null){var G=B;if(m){var ue=hs(O,b);ue!=null&&k.unshift(zv(O,ue,G))}else if(!m){var ce=hs(O,b);ce!=null&&k.push(zv(O,ce,G))}}O=O.return}k.length!==0&&t.push({event:i,listeners:k})}function xB(t,i,u,d,m){var b=d&&m?EB(d,m):null;d!==null&&FR(t,i,d,b,!1),m!==null&&u!==null&&FR(t,u,m,b,!0)}function wB(t,i){return t+"__"+(i?"capture":"bubble")}var ka=!1,jv="dangerouslySetInnerHTML",U1="suppressContentEditableWarning",nc="suppressHydrationWarning",IR="autoFocus",Lf="children",Pf="style",B1="__html",Sw,V1,$v,zR,H1,jR,$R;Sw={dialog:!0,webview:!0},V1=function(t,i){Zd(t,i),Im(t,i),Xy(t,i,{registrationNameDependencies:Ge,possibleRegistrationNames:Ue})},jR=ze&&!document.documentMode,$v=function(t,i,u){if(!ka){var d=q1(u),m=q1(i);m!==d&&(ka=!0,f("Prop `%s` did not match. Server: %s Client: %s",t,JSON.stringify(m),JSON.stringify(d)))}},zR=function(t){if(!ka){ka=!0;var i=[];t.forEach(function(u){i.push(u)}),f("Extra attributes from the server: %s",i)}},H1=function(t,i){i===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof i)},$R=function(t,i){var u=t.namespaceURI===Ro?t.ownerDocument.createElement(t.tagName):t.ownerDocument.createElementNS(t.namespaceURI,t.tagName);return u.innerHTML=i,u.innerHTML};var CB=/\r\n?/g,kB=/\u0000|\uFFFD/g;function q1(t){dr(t);var i=typeof t=="string"?t:""+t;return i.replace(CB,`
87
+ `).replace(kB,"")}function W1(t,i,u,d){var m=q1(i),b=q1(t);if(b!==m&&(d&&(ka||(ka=!0,f('Text content did not match. Server: "%s" Client: "%s"',b,m))),u&&Ie))throw new Error("Text content does not match server-rendered HTML.")}function UR(t){return t.nodeType===Ua?t:t.ownerDocument}function _B(){}function Y1(t){t.onclick=_B}function TB(t,i,u,d,m){for(var b in d)if(d.hasOwnProperty(b)){var k=d[b];if(b===Pf)k&&Object.freeze(k),By(i,k);else if(b===jv){var O=k?k[B1]:void 0;O!=null&&Ay(i,O)}else if(b===Lf)if(typeof k=="string"){var A=t!=="textarea"||k!=="";A&&Hd(i,k)}else typeof k=="number"&&Hd(i,""+k);else b===U1||b===nc||b===IR||(Ge.hasOwnProperty(b)?k!=null&&(typeof k!="function"&&H1(b,k),b==="onScroll"&&Qn("scroll",i)):k!=null&&no(i,b,k,m))}}function RB(t,i,u,d){for(var m=0;m<i.length;m+=2){var b=i[m],k=i[m+1];b===Pf?By(t,k):b===jv?Ay(t,k):b===Lf?Hd(t,k):no(t,b,k,d)}}function OB(t,i,u,d){var m,b=UR(u),k,O=d;if(O===Ro&&(O=Bd(t)),O===Ro){if(m=Do(t,i),!m&&t!==t.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t==="script"){var A=b.createElement("div");A.innerHTML="<script><\/script>";var z=A.firstChild;k=A.removeChild(z)}else if(typeof i.is=="string")k=b.createElement(t,{is:i.is});else if(k=b.createElement(t),t==="select"){var B=k;i.multiple?B.multiple=!0:i.size&&(B.size=i.size)}}else k=b.createElementNS(O,t);return O===Ro&&!m&&Object.prototype.toString.call(k)==="[object HTMLUnknownElement]"&&!be.call(Sw,t)&&(Sw[t]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",t)),k}function DB(t,i){return UR(i).createTextNode(t)}function AB(t,i,u,d){var m=Do(i,u);V1(i,u);var b;switch(i){case"dialog":Qn("cancel",t),Qn("close",t),b=u;break;case"iframe":case"object":case"embed":Qn("load",t),b=u;break;case"video":case"audio":for(var k=0;k<Fv.length;k++)Qn(Fv[k],t);b=u;break;case"source":Qn("error",t),b=u;break;case"img":case"image":case"link":Qn("error",t),Qn("load",t),b=u;break;case"details":Qn("toggle",t),b=u;break;case"input":Gc(t,u),b=Kc(t,u),Qn("invalid",t);break;case"option":$d(t,u),b=u;break;case"select":Ty(t,u),b=_m(t,u),Qn("invalid",t);break;case"textarea":Ry(t,u),b=Rm(t,u),Qn("invalid",t);break;default:b=u}switch(Wd(i,b),TB(i,t,d,b,m),i){case"input":us(t),Qc(t,u,!1);break;case"textarea":us(t),Dy(t);break;case"option":km(t,u);break;case"select":Ax(t,u);break;default:typeof b.onClick=="function"&&Y1(t);break}}function MB(t,i,u,d,m){V1(i,d);var b=null,k,O;switch(i){case"input":k=Kc(t,u),O=Kc(t,d),b=[];break;case"select":k=_m(t,u),O=_m(t,d),b=[];break;case"textarea":k=Rm(t,u),O=Rm(t,d),b=[];break;default:k=u,O=d,typeof k.onClick!="function"&&typeof O.onClick=="function"&&Y1(t);break}Wd(i,O);var A,z,B=null;for(A in k)if(!(O.hasOwnProperty(A)||!k.hasOwnProperty(A)||k[A]==null))if(A===Pf){var X=k[A];for(z in X)X.hasOwnProperty(z)&&(B||(B={}),B[z]="")}else A===jv||A===Lf||A===U1||A===nc||A===IR||(Ge.hasOwnProperty(A)?b||(b=[]):(b=b||[]).push(A,null));for(A in O){var G=O[A],ue=k!=null?k[A]:void 0;if(!(!O.hasOwnProperty(A)||G===ue||G==null&&ue==null))if(A===Pf)if(G&&Object.freeze(G),ue){for(z in ue)ue.hasOwnProperty(z)&&(!G||!G.hasOwnProperty(z))&&(B||(B={}),B[z]="");for(z in G)G.hasOwnProperty(z)&&ue[z]!==G[z]&&(B||(B={}),B[z]=G[z])}else B||(b||(b=[]),b.push(A,B)),B=G;else if(A===jv){var ce=G?G[B1]:void 0,Se=ue?ue[B1]:void 0;ce!=null&&Se!==ce&&(b=b||[]).push(A,ce)}else A===Lf?(typeof G=="string"||typeof G=="number")&&(b=b||[]).push(A,""+G):A===U1||A===nc||(Ge.hasOwnProperty(A)?(G!=null&&(typeof G!="function"&&H1(A,G),A==="onScroll"&&Qn("scroll",t)),!b&&ue!==G&&(b=[])):(b=b||[]).push(A,G))}return B&&(ef(B,O[Pf]),(b=b||[]).push(Pf,B)),b}function LB(t,i,u,d,m){u==="input"&&m.type==="radio"&&m.name!=null&&Cm(t,m);var b=Do(u,d),k=Do(u,m);switch(RB(t,i,b,k),u){case"input":Cu(t,m);break;case"textarea":Oy(t,m);break;case"select":Mx(t,m);break}}function PB(t){{var i=t.toLowerCase();return Yd.hasOwnProperty(i)&&Yd[i]||null}}function NB(t,i,u,d,m,b,k){var O,A;switch(O=Do(i,u),V1(i,u),i){case"dialog":Qn("cancel",t),Qn("close",t);break;case"iframe":case"object":case"embed":Qn("load",t);break;case"video":case"audio":for(var z=0;z<Fv.length;z++)Qn(Fv[z],t);break;case"source":Qn("error",t);break;case"img":case"image":case"link":Qn("error",t),Qn("load",t);break;case"details":Qn("toggle",t);break;case"input":Gc(t,u),Qn("invalid",t);break;case"option":$d(t,u);break;case"select":Ty(t,u),Qn("invalid",t);break;case"textarea":Ry(t,u),Qn("invalid",t);break}Wd(i,u);{A=new Set;for(var B=t.attributes,X=0;X<B.length;X++){var G=B[X].name.toLowerCase();switch(G){case"value":break;case"checked":break;case"selected":break;default:A.add(B[X].name)}}}var ue=null;for(var ce in u)if(u.hasOwnProperty(ce)){var Se=u[ce];if(ce===Lf)typeof Se=="string"?t.textContent!==Se&&(u[nc]!==!0&&W1(t.textContent,Se,b,k),ue=[Lf,Se]):typeof Se=="number"&&t.textContent!==""+Se&&(u[nc]!==!0&&W1(t.textContent,Se,b,k),ue=[Lf,""+Se]);else if(Ge.hasOwnProperty(ce))Se!=null&&(typeof Se!="function"&&H1(ce,Se),ce==="onScroll"&&Qn("scroll",t));else if(k&&typeof O=="boolean"){var tt=void 0,bt=O&&U?null:$i(ce);if(u[nc]!==!0){if(!(ce===U1||ce===nc||ce==="value"||ce==="checked"||ce==="selected")){if(ce===jv){var vt=t.innerHTML,an=Se?Se[B1]:void 0;if(an!=null){var en=$R(t,an);en!==vt&&$v(ce,vt,en)}}else if(ce===Pf){if(A.delete(ce),jR){var ie=$x(Se);tt=t.getAttribute("style"),ie!==tt&&$v(ce,tt,ie)}}else if(O&&!U)A.delete(ce.toLowerCase()),tt=Su(t,ce,Se),Se!==tt&&$v(ce,tt,Se);else if(!It(ce,bt,O)&&!tn(ce,Se,bt,O)){var Ee=!1;if(bt!==null)A.delete(bt.attributeName),tt=os(t,ce,Se,bt);else{var ae=d;if(ae===Ro&&(ae=Bd(i)),ae===Ro)A.delete(ce.toLowerCase());else{var je=PB(ce);je!==null&&je!==ce&&(Ee=!0,A.delete(je)),A.delete(ce)}tt=Su(t,ce,Se)}var nt=U;!nt&&Se!==tt&&!Ee&&$v(ce,tt,Se)}}}}}switch(k&&A.size>0&&u[nc]!==!0&&zR(A),i){case"input":us(t),Qc(t,u,!0);break;case"textarea":us(t),Dy(t);break;case"select":case"option":break;default:typeof u.onClick=="function"&&Y1(t);break}return ue}function FB(t,i,u){var d=t.nodeValue!==i;return d}function Ew(t,i){{if(ka)return;ka=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",i.nodeName.toLowerCase(),t.nodeName.toLowerCase())}}function xw(t,i){{if(ka)return;ka=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',i.nodeValue,t.nodeName.toLowerCase())}}function ww(t,i,u){{if(ka)return;ka=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",i,t.nodeName.toLowerCase())}}function Cw(t,i){{if(i===""||ka)return;ka=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',i,t.nodeName.toLowerCase())}}function IB(t,i,u){switch(i){case"input":wy(t,u);return;case"textarea":Om(t,u);return;case"select":Lx(t,u);return}}var Uv=function(){},Bv=function(){};{var zB=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],BR=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],jB=BR.concat(["button"]),$B=["dd","dt","li","option","optgroup","p","rp","rt"],VR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Bv=function(t,i){var u=Xt({},t||VR),d={tag:i};return BR.indexOf(i)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),jB.indexOf(i)!==-1&&(u.pTagInButtonScope=null),zB.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=d,i==="form"&&(u.formTag=d),i==="a"&&(u.aTagInScope=d),i==="button"&&(u.buttonTagInScope=d),i==="nobr"&&(u.nobrTagInScope=d),i==="p"&&(u.pTagInButtonScope=d),i==="li"&&(u.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(u.dlItemTagAutoclosing=d),u};var UB=function(t,i){switch(i){case"select":return t==="option"||t==="optgroup"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return $B.indexOf(i)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null}return!0},BB=function(t,i){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null},HR={};Uv=function(t,i,u){u=u||VR;var d=u.current,m=d&&d.tag;i!=null&&(t!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),t="#text");var b=UB(t,m)?null:d,k=b?null:BB(t,u),O=b||k;if(O){var A=O.tag,z=!!b+"|"+t+"|"+A;if(!HR[z]){HR[z]=!0;var B=t,X="";if(t==="#text"?/\S/.test(i)?B="Text nodes":(B="Whitespace text nodes",X=" Make sure you don't have any extra whitespace between tags on each line of your source code."):B="<"+t+">",b){var G="";A==="table"&&t==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",B,A,X,G)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",B,A)}}}}var Z1="suppressHydrationWarning",K1="$",G1="/$",Vv="$?",Hv="$!",VB="style",kw=null,_w=null;function HB(t){var i,u,d=t.nodeType;switch(d){case Ua:case cs:{i=d===Ua?"#document":"#fragment";var m=t.documentElement;u=m?m.namespaceURI:Am(null,"");break}default:{var b=d===mr?t.parentNode:t,k=b.namespaceURI||null;i=b.tagName,u=Am(k,i);break}}{var O=i.toLowerCase(),A=Bv(null,O);return{namespace:u,ancestorInfo:A}}}function qB(t,i,u){{var d=t,m=Am(d.namespace,i),b=Bv(d.ancestorInfo,i);return{namespace:m,ancestorInfo:b}}}function PZ(t){return t}function WB(t){kw=Zi(),_w=oB();var i=null;return Fr(!1),i}function YB(t){lB(_w),Fr(kw),kw=null,_w=null}function ZB(t,i,u,d,m){var b;{var k=d;if(Uv(t,null,k.ancestorInfo),typeof i.children=="string"||typeof i.children=="number"){var O=""+i.children,A=Bv(k.ancestorInfo,t);Uv(null,O,A)}b=k.namespace}var z=OB(t,i,u,b);return Yv(m,z),Pw(z,i),z}function KB(t,i){t.appendChild(i)}function GB(t,i,u,d,m){switch(AB(t,i,u,d),i){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function QB(t,i,u,d,m,b){{var k=b;if(typeof d.children!=typeof u.children&&(typeof d.children=="string"||typeof d.children=="number")){var O=""+d.children,A=Bv(k.ancestorInfo,i);Uv(null,O,A)}}return MB(t,i,u,d)}function Tw(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function XB(t,i,u,d){{var m=u;Uv(null,t,m.ancestorInfo)}var b=DB(t,i);return Yv(d,b),b}function JB(){var t=window.event;return t===void 0?zo:fi(t.type)}var Rw=typeof setTimeout=="function"?setTimeout:void 0,eV=typeof clearTimeout=="function"?clearTimeout:void 0,Ow=-1,qR=typeof Promise=="function"?Promise:void 0,tV=typeof queueMicrotask=="function"?queueMicrotask:typeof qR<"u"?function(t){return qR.resolve(null).then(t).catch(nV)}:Rw;function nV(t){setTimeout(function(){throw t})}function rV(t,i,u,d){switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&t.focus();return;case"img":{u.src&&(t.src=u.src);return}}}function iV(t,i,u,d,m,b){LB(t,i,u,d,m),Pw(t,m)}function WR(t){Hd(t,"")}function aV(t,i,u){t.nodeValue=u}function oV(t,i){t.appendChild(i)}function lV(t,i){var u;t.nodeType===mr?(u=t.parentNode,u.insertBefore(i,t)):(u=t,u.appendChild(i));var d=t._reactRootContainer;d==null&&u.onclick===null&&Y1(u)}function sV(t,i,u){t.insertBefore(i,u)}function uV(t,i,u){t.nodeType===mr?t.parentNode.insertBefore(i,u):t.insertBefore(i,u)}function cV(t,i){t.removeChild(i)}function fV(t,i){t.nodeType===mr?t.parentNode.removeChild(i):t.removeChild(i)}function Dw(t,i){var u=i,d=0;do{var m=u.nextSibling;if(t.removeChild(u),m&&m.nodeType===mr){var b=m.data;if(b===G1)if(d===0){t.removeChild(m),Jt(i);return}else d--;else(b===K1||b===Vv||b===Hv)&&d++}u=m}while(u);Jt(i)}function dV(t,i){t.nodeType===mr?Dw(t.parentNode,i):t.nodeType===Ci&&Dw(t,i),Jt(t)}function pV(t){t=t;var i=t.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function hV(t){t.nodeValue=""}function mV(t,i){t=t;var u=i[VB],d=u!=null&&u.hasOwnProperty("display")?u.display:null;t.style.display=qd("display",d)}function vV(t,i){t.nodeValue=i}function gV(t){t.nodeType===Ci?t.textContent="":t.nodeType===Ua&&t.documentElement&&t.removeChild(t.documentElement)}function yV(t,i,u){return t.nodeType!==Ci||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t}function bV(t,i){return i===""||t.nodeType!==Oo?null:t}function SV(t){return t.nodeType!==mr?null:t}function YR(t){return t.data===Vv}function Aw(t){return t.data===Hv}function EV(t){var i=t.nextSibling&&t.nextSibling.dataset,u,d,m;return i&&(u=i.dgst,d=i.msg,m=i.stck),{message:d,digest:u,stack:m}}function xV(t,i){t._reactRetry=i}function Q1(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===Ci||i===Oo)break;if(i===mr){var u=t.data;if(u===K1||u===Hv||u===Vv)break;if(u===G1)return null}}return t}function qv(t){return Q1(t.nextSibling)}function wV(t){return Q1(t.firstChild)}function CV(t){return Q1(t.firstChild)}function kV(t){return Q1(t.nextSibling)}function _V(t,i,u,d,m,b,k){Yv(b,t),Pw(t,u);var O;{var A=m;O=A.namespace}var z=(b.mode&Zt)!==Et;return NB(t,i,u,O,d,z,k)}function TV(t,i,u,d){return Yv(u,t),u.mode&Zt,FB(t,i)}function RV(t,i){Yv(i,t)}function OV(t){for(var i=t.nextSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===G1){if(u===0)return qv(i);u--}else(d===K1||d===Hv||d===Vv)&&u++}i=i.nextSibling}return null}function ZR(t){for(var i=t.previousSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===K1||d===Hv||d===Vv){if(u===0)return i;u--}else d===G1&&u++}i=i.previousSibling}return null}function DV(t){Jt(t)}function AV(t){Jt(t)}function MV(t){return t!=="head"&&t!=="body"}function LV(t,i,u,d){var m=!0;W1(i.nodeValue,u,d,m)}function PV(t,i,u,d,m,b){if(i[Z1]!==!0){var k=!0;W1(d.nodeValue,m,b,k)}}function NV(t,i){i.nodeType===Ci?Ew(t,i):i.nodeType===mr||xw(t,i)}function FV(t,i){{var u=t.parentNode;u!==null&&(i.nodeType===Ci?Ew(u,i):i.nodeType===mr||xw(u,i))}}function IV(t,i,u,d,m){(m||i[Z1]!==!0)&&(d.nodeType===Ci?Ew(u,d):d.nodeType===mr||xw(u,d))}function zV(t,i,u){ww(t,i)}function jV(t,i){Cw(t,i)}function $V(t,i,u){{var d=t.parentNode;d!==null&&ww(d,i)}}function UV(t,i){{var u=t.parentNode;u!==null&&Cw(u,i)}}function BV(t,i,u,d,m,b){(b||i[Z1]!==!0)&&ww(u,d)}function VV(t,i,u,d,m){(m||i[Z1]!==!0)&&Cw(u,d)}function HV(t){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",t.nodeName.toLowerCase())}function qV(t){Iv(t)}var Qp=Math.random().toString(36).slice(2),Xp="__reactFiber$"+Qp,Mw="__reactProps$"+Qp,Wv="__reactContainer$"+Qp,Lw="__reactEvents$"+Qp,WV="__reactListeners$"+Qp,YV="__reactHandles$"+Qp;function ZV(t){delete t[Xp],delete t[Mw],delete t[Lw],delete t[WV],delete t[YV]}function Yv(t,i){i[Xp]=t}function X1(t,i){i[Wv]=t}function KR(t){t[Wv]=null}function Zv(t){return!!t[Wv]}function Nf(t){var i=t[Xp];if(i)return i;for(var u=t.parentNode;u;){if(i=u[Wv]||u[Xp],i){var d=i.alternate;if(i.child!==null||d!==null&&d.child!==null)for(var m=ZR(t);m!==null;){var b=m[Xp];if(b)return b;m=ZR(m)}return i}t=u,u=t.parentNode}return null}function rc(t){var i=t[Xp]||t[Wv];return i&&(i.tag===x||i.tag===R||i.tag===I||i.tag===E)?i:null}function Jp(t){if(t.tag===x||t.tag===R)return t.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function J1(t){return t[Mw]||null}function Pw(t,i){t[Mw]=i}function KV(t){var i=t[Lw];return i===void 0&&(i=t[Lw]=new Set),i}var GR={},QR=r.ReactDebugCurrentFrame;function eb(t){if(t){var i=t._owner,u=Vc(t.type,t._source,i?i.type:null);QR.setExtraStackFrame(u)}else QR.setExtraStackFrame(null)}function Vo(t,i,u,d,m){{var b=Function.call.bind(be);for(var k in t)if(b(t,k)){var O=void 0;try{if(typeof t[k]!="function"){var A=Error((d||"React class")+": "+u+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}O=t[k](i,k,d,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){O=z}O&&!(O instanceof Error)&&(eb(m),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",u,k,typeof O),eb(null)),O instanceof Error&&!(O.message in GR)&&(GR[O.message]=!0,eb(m),f("Failed %s type: %s",u,O.message),eb(null))}}}var Nw=[],tb;tb=[];var zs=-1;function ic(t){return{current:t}}function Li(t,i){if(zs<0){f("Unexpected pop.");return}i!==tb[zs]&&f("Unexpected Fiber popped."),t.current=Nw[zs],Nw[zs]=null,tb[zs]=null,zs--}function Pi(t,i,u){zs++,Nw[zs]=t.current,tb[zs]=u,t.current=i}var Fw;Fw={};var Wa={};Object.freeze(Wa);var js=ic(Wa),Fl=ic(!1),Iw=Wa;function eh(t,i,u){return u&&Il(i)?Iw:js.current}function XR(t,i,u){{var d=t.stateNode;d.__reactInternalMemoizedUnmaskedChildContext=i,d.__reactInternalMemoizedMaskedChildContext=u}}function th(t,i){{var u=t.type,d=u.contextTypes;if(!d)return Wa;var m=t.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===i)return m.__reactInternalMemoizedMaskedChildContext;var b={};for(var k in d)b[k]=i[k];{var O=Ft(t)||"Unknown";Vo(d,b,"context",O)}return m&&XR(t,i,b),b}}function nb(){return Fl.current}function Il(t){{var i=t.childContextTypes;return i!=null}}function rb(t){Li(Fl,t),Li(js,t)}function zw(t){Li(Fl,t),Li(js,t)}function JR(t,i,u){{if(js.current!==Wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Pi(js,i,t),Pi(Fl,u,t)}}function e4(t,i,u){{var d=t.stateNode,m=i.childContextTypes;if(typeof d.getChildContext!="function"){{var b=Ft(t)||"Unknown";Fw[b]||(Fw[b]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return u}var k=d.getChildContext();for(var O in k)if(!(O in m))throw new Error((Ft(t)||"Unknown")+'.getChildContext(): key "'+O+'" is not defined in childContextTypes.');{var A=Ft(t)||"Unknown";Vo(m,k,"child context",A)}return Xt({},u,k)}}function ib(t){{var i=t.stateNode,u=i&&i.__reactInternalMemoizedMergedChildContext||Wa;return Iw=js.current,Pi(js,u,t),Pi(Fl,Fl.current,t),!0}}function t4(t,i,u){{var d=t.stateNode;if(!d)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(u){var m=e4(t,i,Iw);d.__reactInternalMemoizedMergedChildContext=m,Li(Fl,t),Li(js,t),Pi(js,m,t),Pi(Fl,u,t)}else Li(Fl,t),Pi(Fl,u,t)}}function GV(t){{if(!Qm(t)||t.tag!==y)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var i=t;do{switch(i.tag){case E:return i.stateNode.context;case y:{var u=i.type;if(Il(u))return i.stateNode.__reactInternalMemoizedMergedChildContext;break}}i=i.return}while(i!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ac=0,ab=1,$s=null,jw=!1,$w=!1;function n4(t){$s===null?$s=[t]:$s.push(t)}function QV(t){jw=!0,n4(t)}function r4(){jw&&oc()}function oc(){if(!$w&&$s!==null){$w=!0;var t=0,i=Ea();try{var u=!0,d=$s;for(Cr(ti);t<d.length;t++){var m=d[t];do m=m(u);while(m!==null)}$s=null,jw=!1}catch(b){throw $s!==null&&($s=$s.slice(t+1)),np(ip,oc),b}finally{Cr(i),$w=!1}}return null}var nh=[],rh=0,ob=null,lb=0,co=[],fo=0,Ff=null,Us=1,Bs="";function XV(t){return zf(),(t.flags&Zm)!==yt}function JV(t){return zf(),lb}function eH(){var t=Bs,i=Us,u=i&~tH(i);return u.toString(32)+t}function If(t,i){zf(),nh[rh++]=lb,nh[rh++]=ob,ob=t,lb=i}function i4(t,i,u){zf(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=Ff,Ff=t;var d=Us,m=Bs,b=sb(d)-1,k=d&~(1<<b),O=u+1,A=sb(i)+b;if(A>30){var z=b-b%5,B=(1<<z)-1,X=(k&B).toString(32),G=k>>z,ue=b-z,ce=sb(i)+ue,Se=O<<ue,tt=Se|G,bt=X+m;Us=1<<ce|tt,Bs=bt}else{var vt=O<<b,an=vt|k,en=m;Us=1<<A|an,Bs=en}}function Uw(t){zf();var i=t.return;if(i!==null){var u=1,d=0;If(t,u),i4(t,u,d)}}function sb(t){return 32-cp(t)}function tH(t){return 1<<sb(t)-1}function Bw(t){for(;t===ob;)ob=nh[--rh],nh[rh]=null,lb=nh[--rh],nh[rh]=null;for(;t===Ff;)Ff=co[--fo],co[fo]=null,Bs=co[--fo],co[fo]=null,Us=co[--fo],co[fo]=null}function nH(){return zf(),Ff!==null?{id:Us,overflow:Bs}:null}function rH(t,i){zf(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=Ff,Us=i.id,Bs=i.overflow,Ff=t}function zf(){pi()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var di=null,po=null,Ho=!1,jf=!1,lc=null;function iH(){Ho&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function a4(){jf=!0}function aH(){return jf}function oH(t){var i=t.stateNode.containerInfo;return po=CV(i),di=t,Ho=!0,lc=null,jf=!1,!0}function lH(t,i,u){return po=kV(i),di=t,Ho=!0,lc=null,jf=!1,u!==null&&rH(t,u),!0}function o4(t,i){switch(t.tag){case E:{NV(t.stateNode.containerInfo,i);break}case x:{var u=(t.mode&Zt)!==Et;IV(t.type,t.memoizedProps,t.stateNode,i,u);break}case I:{var d=t.memoizedState;d.dehydrated!==null&&FV(d.dehydrated,i);break}}}function l4(t,i){o4(t,i);var u=cY();u.stateNode=i,u.return=t;var d=t.deletions;d===null?(t.deletions=[u],t.flags|=dn):d.push(u)}function Vw(t,i){{if(jf)return;switch(t.tag){case E:{var u=t.stateNode.containerInfo;switch(i.tag){case x:var d=i.type;i.pendingProps,zV(u,d);break;case R:var m=i.pendingProps;jV(u,m);break}break}case x:{var b=t.type,k=t.memoizedProps,O=t.stateNode;switch(i.tag){case x:{var A=i.type,z=i.pendingProps,B=(t.mode&Zt)!==Et;BV(b,k,O,A,z,B);break}case R:{var X=i.pendingProps,G=(t.mode&Zt)!==Et;VV(b,k,O,X,G);break}}break}case I:{var ue=t.memoizedState,ce=ue.dehydrated;if(ce!==null)switch(i.tag){case x:var Se=i.type;i.pendingProps,$V(ce,Se);break;case R:var tt=i.pendingProps;UV(ce,tt);break}break}default:return}}}function s4(t,i){i.flags=i.flags&~va|Pn,Vw(t,i)}function u4(t,i){switch(t.tag){case x:{var u=t.type;t.pendingProps;var d=yV(i,u);return d!==null?(t.stateNode=d,di=t,po=wV(d),!0):!1}case R:{var m=t.pendingProps,b=bV(i,m);return b!==null?(t.stateNode=b,di=t,po=null,!0):!1}case I:{var k=SV(i);if(k!==null){var O={dehydrated:k,treeContext:nH(),retryLane:Ai};t.memoizedState=O;var A=fY(k);return A.return=t,t.child=A,di=t,po=null,!0}return!1}default:return!1}}function Hw(t){return(t.mode&Zt)!==Et&&(t.flags&Dt)===yt}function qw(t){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Ww(t){if(Ho){var i=po;if(!i){Hw(t)&&(Vw(di,t),qw()),s4(di,t),Ho=!1,di=t;return}var u=i;if(!u4(t,i)){Hw(t)&&(Vw(di,t),qw()),i=qv(u);var d=di;if(!i||!u4(t,i)){s4(di,t),Ho=!1,di=t;return}l4(d,u)}}}function sH(t,i,u){var d=t.stateNode,m=!jf,b=_V(d,t.type,t.memoizedProps,i,u,t,m);return t.updateQueue=b,b!==null}function uH(t){var i=t.stateNode,u=t.memoizedProps,d=TV(i,u,t);if(d){var m=di;if(m!==null)switch(m.tag){case E:{var b=m.stateNode.containerInfo,k=(m.mode&Zt)!==Et;LV(b,i,u,k);break}case x:{var O=m.type,A=m.memoizedProps,z=m.stateNode,B=(m.mode&Zt)!==Et;PV(O,A,z,i,u,B);break}}}return d}function cH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");RV(u,t)}function fH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return OV(u)}function c4(t){for(var i=t.return;i!==null&&i.tag!==x&&i.tag!==E&&i.tag!==I;)i=i.return;di=i}function ub(t){if(t!==di)return!1;if(!Ho)return c4(t),Ho=!0,!1;if(t.tag!==E&&(t.tag!==x||MV(t.type)&&!Tw(t.type,t.memoizedProps))){var i=po;if(i)if(Hw(t))f4(t),qw();else for(;i;)l4(t,i),i=qv(i)}return c4(t),t.tag===I?po=fH(t):po=di?qv(t.stateNode):null,!0}function dH(){return Ho&&po!==null}function f4(t){for(var i=po;i;)o4(t,i),i=qv(i)}function ih(){di=null,po=null,Ho=!1,jf=!1}function d4(){lc!==null&&(oD(lc),lc=null)}function pi(){return Ho}function Yw(t){lc===null?lc=[t]:lc.push(t)}var pH=r.ReactCurrentBatchConfig,hH=null;function mH(){return pH.transition}var qo={recordUnsafeLifecycleWarnings:function(t,i){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(t,i){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var vH=function(t){for(var i=null,u=t;u!==null;)u.mode&Kn&&(i=u),u=u.return;return i},$f=function(t){var i=[];return t.forEach(function(u){i.push(u)}),i.sort().join(", ")},Kv=[],Gv=[],Qv=[],Xv=[],Jv=[],e0=[],Uf=new Set;qo.recordUnsafeLifecycleWarnings=function(t,i){Uf.has(t.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&Kv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillMount=="function"&&Gv.push(t),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Qv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Xv.push(t),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Jv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillUpdate=="function"&&e0.push(t))},qo.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;Kv.length>0&&(Kv.forEach(function(G){t.add(Ft(G)||"Component"),Uf.add(G.type)}),Kv=[]);var i=new Set;Gv.length>0&&(Gv.forEach(function(G){i.add(Ft(G)||"Component"),Uf.add(G.type)}),Gv=[]);var u=new Set;Qv.length>0&&(Qv.forEach(function(G){u.add(Ft(G)||"Component"),Uf.add(G.type)}),Qv=[]);var d=new Set;Xv.length>0&&(Xv.forEach(function(G){d.add(Ft(G)||"Component"),Uf.add(G.type)}),Xv=[]);var m=new Set;Jv.length>0&&(Jv.forEach(function(G){m.add(Ft(G)||"Component"),Uf.add(G.type)}),Jv=[]);var b=new Set;if(e0.length>0&&(e0.forEach(function(G){b.add(Ft(G)||"Component"),Uf.add(G.type)}),e0=[]),i.size>0){var k=$f(i);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
88
+
89
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
90
+
91
+ Please update the following components: %s`,k)}if(d.size>0){var O=$f(d);f(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
92
+
93
+ * Move data fetching code or side effects to componentDidUpdate.
94
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
95
+
96
+ Please update the following components: %s`,O)}if(b.size>0){var A=$f(b);f(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
97
+
98
+ * Move data fetching code or side effects to componentDidUpdate.
99
+
100
+ Please update the following components: %s`,A)}if(t.size>0){var z=$f(t);c(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
101
+
102
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
103
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
104
+
105
+ Please update the following components: %s`,z)}if(u.size>0){var B=$f(u);c(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
106
+
107
+ * Move data fetching code or side effects to componentDidUpdate.
108
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
109
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
110
+
111
+ Please update the following components: %s`,B)}if(m.size>0){var X=$f(m);c(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
112
+
113
+ * Move data fetching code or side effects to componentDidUpdate.
114
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
115
+
116
+ Please update the following components: %s`,X)}};var cb=new Map,p4=new Set;qo.recordLegacyContextWarning=function(t,i){var u=vH(t);if(u===null){f("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!p4.has(t.type)){var d=cb.get(u);(t.type.contextTypes!=null||t.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],cb.set(u,d)),d.push(t))}},qo.flushLegacyContextWarning=function(){cb.forEach(function(t,i){if(t.length!==0){var u=t[0],d=new Set;t.forEach(function(b){d.add(Ft(b)||"Component"),p4.add(b.type)});var m=$f(d);try{Cn(u),f(`Legacy context API has been detected within a strict-mode tree.
117
+
118
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
119
+
120
+ Please update the following components: %s
121
+
122
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,m)}finally{Er()}}})},qo.discardPendingWarnings=function(){Kv=[],Gv=[],Qv=[],Xv=[],Jv=[],e0=[],cb=new Map}}function Wo(t,i){if(t&&t.defaultProps){var u=Xt({},i),d=t.defaultProps;for(var m in d)u[m]===void 0&&(u[m]=d[m]);return u}return i}var Zw=ic(null),Kw;Kw={};var fb=null,ah=null,Gw=null,db=!1;function pb(){fb=null,ah=null,Gw=null,db=!1}function h4(){db=!0}function m4(){db=!1}function v4(t,i,u){Pi(Zw,i._currentValue,t),i._currentValue=u,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Kw&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Kw}function Qw(t,i){var u=Zw.current;Li(Zw,i),t._currentValue=u}function Xw(t,i,u){for(var d=t;d!==null;){var m=d.alternate;if(Ts(d.childLanes,i)?m!==null&&!Ts(m.childLanes,i)&&(m.childLanes=jt(m.childLanes,i)):(d.childLanes=jt(d.childLanes,i),m!==null&&(m.childLanes=jt(m.childLanes,i))),d===u)break;d=d.return}d!==u&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function gH(t,i,u){yH(t,i,u)}function yH(t,i,u){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=void 0,b=d.dependencies;if(b!==null){m=d.child;for(var k=b.firstContext;k!==null;){if(k.context===i){if(d.tag===y){var O=wr(u),A=Vs(An,O);A.tag=mb;var z=d.updateQueue;if(z!==null){var B=z.shared,X=B.pending;X===null?A.next=A:(A.next=X.next,X.next=A),B.pending=A}}d.lanes=jt(d.lanes,u);var G=d.alternate;G!==null&&(G.lanes=jt(G.lanes,u)),Xw(d.return,u,t),b.lanes=jt(b.lanes,u);break}k=k.next}}else if(d.tag===F)m=d.type===t.type?null:d.child;else if(d.tag===ve){var ue=d.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=jt(ue.lanes,u);var ce=ue.alternate;ce!==null&&(ce.lanes=jt(ce.lanes,u)),Xw(ue,u,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}var Se=m.sibling;if(Se!==null){Se.return=m.return,m=Se;break}m=m.return}d=m}}function oh(t,i){fb=t,ah=null,Gw=null;var u=t.dependencies;if(u!==null){var d=u.firstContext;d!==null&&(Mi(u.lanes,i)&&h0(),u.firstContext=null)}}function zr(t){db&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var i=t._currentValue;if(Gw!==t){var u={context:t,memoizedValue:i,next:null};if(ah===null){if(fb===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ah=u,fb.dependencies={lanes:we,firstContext:u}}else ah=ah.next=u}return i}var Bf=null;function Jw(t){Bf===null?Bf=[t]:Bf.push(t)}function bH(){if(Bf!==null){for(var t=0;t<Bf.length;t++){var i=Bf[t],u=i.interleaved;if(u!==null){i.interleaved=null;var d=u.next,m=i.pending;if(m!==null){var b=m.next;m.next=d,u.next=b}i.pending=u}}Bf=null}}function g4(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,Jw(i)):(u.next=m.next,m.next=u),i.interleaved=u,hb(t,d)}function SH(t,i,u,d){var m=i.interleaved;m===null?(u.next=u,Jw(i)):(u.next=m.next,m.next=u),i.interleaved=u}function EH(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,Jw(i)):(u.next=m.next,m.next=u),i.interleaved=u,hb(t,d)}function _a(t,i){return hb(t,i)}var xH=hb;function hb(t,i){t.lanes=jt(t.lanes,i);var u=t.alternate;u!==null&&(u.lanes=jt(u.lanes,i)),u===null&&(t.flags&(Pn|va))!==yt&&yD(t);for(var d=t,m=t.return;m!==null;)m.childLanes=jt(m.childLanes,i),u=m.alternate,u!==null?u.childLanes=jt(u.childLanes,i):(m.flags&(Pn|va))!==yt&&yD(t),d=m,m=m.return;if(d.tag===E){var b=d.stateNode;return b}else return null}var y4=0,b4=1,mb=2,eC=3,vb=!1,tC,gb;tC=!1,gb=null;function nC(t){var i={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:we},effects:null};t.updateQueue=i}function S4(t,i){var u=i.updateQueue,d=t.updateQueue;if(u===d){var m={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects};i.updateQueue=m}}function Vs(t,i){var u={eventTime:t,lane:i,tag:y4,payload:null,callback:null,next:null};return u}function sc(t,i,u){var d=t.updateQueue;if(d===null)return null;var m=d.shared;if(gb===m&&!tC&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),tC=!0),xW()){var b=m.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),m.pending=i,xH(t,u)}else return EH(t,m,i,u)}function yb(t,i,u){var d=i.updateQueue;if(d!==null){var m=d.shared;if(cv(u)){var b=m.lanes;b=dv(b,t.pendingLanes);var k=jt(b,u);m.lanes=k,Bu(t,k)}}}function rC(t,i){var u=t.updateQueue,d=t.alternate;if(d!==null){var m=d.updateQueue;if(u===m){var b=null,k=null,O=u.firstBaseUpdate;if(O!==null){var A=O;do{var z={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};k===null?b=k=z:(k.next=z,k=z),A=A.next}while(A!==null);k===null?b=k=i:(k.next=i,k=i)}else b=k=i;u={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:k,shared:m.shared,effects:m.effects},t.updateQueue=u;return}}var B=u.lastBaseUpdate;B===null?u.firstBaseUpdate=i:B.next=i,u.lastBaseUpdate=i}function wH(t,i,u,d,m,b){switch(u.tag){case b4:{var k=u.payload;if(typeof k=="function"){h4();var O=k.call(b,d,m);{if(t.mode&Kn){xr(!0);try{k.call(b,d,m)}finally{xr(!1)}}m4()}return O}return k}case eC:t.flags=t.flags&~Lr|Dt;case y4:{var A=u.payload,z;if(typeof A=="function"){h4(),z=A.call(b,d,m);{if(t.mode&Kn){xr(!0);try{A.call(b,d,m)}finally{xr(!1)}}m4()}}else z=A;return z==null?d:Xt({},d,z)}case mb:return vb=!0,d}return d}function bb(t,i,u,d){var m=t.updateQueue;vb=!1,gb=m.shared;var b=m.firstBaseUpdate,k=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var A=O,z=A.next;A.next=null,k===null?b=z:k.next=z,k=A;var B=t.alternate;if(B!==null){var X=B.updateQueue,G=X.lastBaseUpdate;G!==k&&(G===null?X.firstBaseUpdate=z:G.next=z,X.lastBaseUpdate=A)}}if(b!==null){var ue=m.baseState,ce=we,Se=null,tt=null,bt=null,vt=b;do{var an=vt.lane,en=vt.eventTime;if(Ts(d,an)){if(bt!==null){var Ee={eventTime:en,lane:nn,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt=bt.next=Ee}ue=wH(t,m,vt,ue,i,u);var ae=vt.callback;if(ae!==null&&vt.lane!==nn){t.flags|=io;var je=m.effects;je===null?m.effects=[vt]:je.push(vt)}}else{var ie={eventTime:en,lane:an,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt===null?(tt=bt=ie,Se=ue):bt=bt.next=ie,ce=jt(ce,an)}if(vt=vt.next,vt===null){if(O=m.shared.pending,O===null)break;var nt=O,Xe=nt.next;nt.next=null,vt=Xe,m.lastBaseUpdate=nt,m.shared.pending=null}}while(!0);bt===null&&(Se=ue),m.baseState=Se,m.firstBaseUpdate=tt,m.lastBaseUpdate=bt;var Tt=m.shared.interleaved;if(Tt!==null){var Nt=Tt;do ce=jt(ce,Nt.lane),Nt=Nt.next;while(Nt!==Tt)}else b===null&&(m.shared.lanes=we);_0(ce),t.lanes=ce,t.memoizedState=ue}gb=null}function CH(t,i){if(typeof t!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+t));t.call(i)}function E4(){vb=!1}function Sb(){return vb}function x4(t,i,u){var d=i.effects;if(i.effects=null,d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.callback;k!==null&&(b.callback=null,CH(k,u))}}var iC={},w4=new e.Component().refs,aC,oC,lC,sC,uC,C4,Eb,cC,fC,dC;{aC=new Set,oC=new Set,lC=new Set,sC=new Set,cC=new Set,uC=new Set,fC=new Set,dC=new Set;var k4=new Set;Eb=function(t,i){if(!(t===null||typeof t=="function")){var u=i+"_"+t;k4.has(u)||(k4.add(u),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t))}},C4=function(t,i){if(i===void 0){var u=On(t)||"Component";uC.has(u)||(uC.add(u),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",u))}},Object.defineProperty(iC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(iC)}function pC(t,i,u,d){var m=t.memoizedState,b=u(d,m);{if(t.mode&Kn){xr(!0);try{b=u(d,m)}finally{xr(!1)}}C4(i,b)}var k=b==null?m:Xt({},m,b);if(t.memoizedState=k,t.lanes===we){var O=t.updateQueue;O.baseState=k}}var hC={isMounted:qi,enqueueSetState:function(t,i,u){var d=ha(t),m=Qi(),b=vc(d),k=Vs(m,b);k.payload=i,u!=null&&(Eb(u,"setState"),k.callback=u);var O=sc(d,k,b);O!==null&&(Qr(O,d,b,m),yb(O,d,b)),Tl(d,b)},enqueueReplaceState:function(t,i,u){var d=ha(t),m=Qi(),b=vc(d),k=Vs(m,b);k.tag=b4,k.payload=i,u!=null&&(Eb(u,"replaceState"),k.callback=u);var O=sc(d,k,b);O!==null&&(Qr(O,d,b,m),yb(O,d,b)),Tl(d,b)},enqueueForceUpdate:function(t,i){var u=ha(t),d=Qi(),m=vc(u),b=Vs(d,m);b.tag=mb,i!=null&&(Eb(i,"forceUpdate"),b.callback=i);var k=sc(u,b,m);k!==null&&(Qr(k,u,m,d),yb(k,u,m)),ov(u,m)}};function _4(t,i,u,d,m,b,k){var O=t.stateNode;if(typeof O.shouldComponentUpdate=="function"){var A=O.shouldComponentUpdate(d,b,k);{if(t.mode&Kn){xr(!0);try{A=O.shouldComponentUpdate(d,b,k)}finally{xr(!1)}}A===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",On(i)||"Component")}return A}return i.prototype&&i.prototype.isPureReactComponent?!gt(u,d)||!gt(m,b):!0}function kH(t,i,u){var d=t.stateNode;{var m=On(i)||"Component",b=d.render;b||(i.prototype&&typeof i.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",m):f("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m)),d.getInitialState&&!d.getInitialState.isReactClassApproved&&!d.state&&f("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&f("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),d.propTypes&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",m),d.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),d.contextTypes&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",m),i.contextType&&i.contextTypes&&!fC.has(i)&&(fC.add(i),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",m)),typeof d.componentShouldUpdate=="function"&&f("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),i.prototype&&i.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",On(i)||"A pure component"),typeof d.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof d.componentDidReceiveProps=="function"&&f("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof d.componentWillRecieveProps=="function"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof d.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m);var k=d.props!==u;d.props!==void 0&&k&&f("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m),d.defaultProps&&f("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof d.getSnapshotBeforeUpdate=="function"&&typeof d.componentDidUpdate!="function"&&!lC.has(i)&&(lC.add(i),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",On(i))),typeof d.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof d.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof i.getSnapshotBeforeUpdate=="function"&&f("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m);var O=d.state;O&&(typeof O!="object"||Ar(O))&&f("%s.state: must be set to an object or null",m),typeof d.getChildContext=="function"&&typeof i.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m)}}function T4(t,i){i.updater=hC,t.stateNode=i,Mu(i,t),i._reactInternalInstance=iC}function R4(t,i,u){var d=!1,m=Wa,b=Wa,k=i.contextType;if("contextType"in i){var O=k===null||k!==void 0&&k.$$typeof===Ke&&k._context===void 0;if(!O&&!dC.has(i)){dC.add(i);var A="";k===void 0?A=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof k!="object"?A=" However, it is set to a "+typeof k+".":k.$$typeof===Pe?A=" Did you accidentally pass the Context.Provider instead?":k._context!==void 0?A=" Did you accidentally pass the Context.Consumer instead?":A=" However, it is set to an object with keys {"+Object.keys(k).join(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",On(i)||"Component",A)}}if(typeof k=="object"&&k!==null)b=zr(k);else{m=eh(t,i,!0);var z=i.contextTypes;d=z!=null,b=d?th(t,m):Wa}var B=new i(u,b);if(t.mode&Kn){xr(!0);try{B=new i(u,b)}finally{xr(!1)}}var X=t.memoizedState=B.state!==null&&B.state!==void 0?B.state:null;T4(t,B);{if(typeof i.getDerivedStateFromProps=="function"&&X===null){var G=On(i)||"Component";oC.has(G)||(oC.add(G),f("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",G,B.state===null?"null":"undefined",G))}if(typeof i.getDerivedStateFromProps=="function"||typeof B.getSnapshotBeforeUpdate=="function"){var ue=null,ce=null,Se=null;if(typeof B.componentWillMount=="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?ue="componentWillMount":typeof B.UNSAFE_componentWillMount=="function"&&(ue="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps=="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ce="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps=="function"&&(ce="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate=="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?Se="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate=="function"&&(Se="UNSAFE_componentWillUpdate"),ue!==null||ce!==null||Se!==null){var tt=On(i)||"Component",bt=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";sC.has(tt)||(sC.add(tt),f(`Unsafe legacy lifecycles will not be called for components using new component APIs.
123
+
124
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
125
+
126
+ The above lifecycles should be removed. Learn more about this warning here:
127
+ https://reactjs.org/link/unsafe-component-lifecycles`,tt,bt,ue!==null?`
128
+ `+ue:"",ce!==null?`
129
+ `+ce:"",Se!==null?`
130
+ `+Se:""))}}}return d&&XR(t,m,b),B}function _H(t,i){var u=i.state;typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ft(t)||"Component"),hC.enqueueReplaceState(i,i.state,null))}function O4(t,i,u,d){var m=i.state;if(typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,d),i.state!==m){{var b=Ft(t)||"Component";aC.has(b)||(aC.add(b),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}hC.enqueueReplaceState(i,i.state,null)}}function mC(t,i,u,d){kH(t,i,u);var m=t.stateNode;m.props=u,m.state=t.memoizedState,m.refs=w4,nC(t);var b=i.contextType;if(typeof b=="object"&&b!==null)m.context=zr(b);else{var k=eh(t,i,!0);m.context=th(t,k)}{if(m.state===u){var O=On(i)||"Component";cC.has(O)||(cC.add(O),f("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",O))}t.mode&Kn&&qo.recordLegacyContextWarning(t,m),qo.recordUnsafeLifecycleWarnings(t,m)}m.state=t.memoizedState;var A=i.getDerivedStateFromProps;if(typeof A=="function"&&(pC(t,i,A,u),m.state=t.memoizedState),typeof i.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(_H(t,m),bb(t,u,m,d),m.state=t.memoizedState),typeof m.componentDidMount=="function"){var z=zt;z|=_i,(t.mode&ba)!==Et&&(z|=Ti),t.flags|=z}}function TH(t,i,u,d){var m=t.stateNode,b=t.memoizedProps;m.props=b;var k=m.context,O=i.contextType,A=Wa;if(typeof O=="object"&&O!==null)A=zr(O);else{var z=eh(t,i,!0);A=th(t,z)}var B=i.getDerivedStateFromProps,X=typeof B=="function"||typeof m.getSnapshotBeforeUpdate=="function";!X&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(b!==u||k!==A)&&O4(t,m,u,A),E4();var G=t.memoizedState,ue=m.state=G;if(bb(t,u,m,d),ue=t.memoizedState,b===u&&G===ue&&!nb()&&!Sb()){if(typeof m.componentDidMount=="function"){var ce=zt;ce|=_i,(t.mode&ba)!==Et&&(ce|=Ti),t.flags|=ce}return!1}typeof B=="function"&&(pC(t,i,B,u),ue=t.memoizedState);var Se=Sb()||_4(t,i,b,u,G,ue,A);if(Se){if(!X&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"){var tt=zt;tt|=_i,(t.mode&ba)!==Et&&(tt|=Ti),t.flags|=tt}}else{if(typeof m.componentDidMount=="function"){var bt=zt;bt|=_i,(t.mode&ba)!==Et&&(bt|=Ti),t.flags|=bt}t.memoizedProps=u,t.memoizedState=ue}return m.props=u,m.state=ue,m.context=A,Se}function RH(t,i,u,d,m){var b=i.stateNode;S4(t,i);var k=i.memoizedProps,O=i.type===i.elementType?k:Wo(i.type,k);b.props=O;var A=i.pendingProps,z=b.context,B=u.contextType,X=Wa;if(typeof B=="object"&&B!==null)X=zr(B);else{var G=eh(i,u,!0);X=th(i,G)}var ue=u.getDerivedStateFromProps,ce=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function";!ce&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(k!==A||z!==X)&&O4(i,b,d,X),E4();var Se=i.memoizedState,tt=b.state=Se;if(bb(i,d,b,m),tt=i.memoizedState,k===A&&Se===tt&&!nb()&&!Sb()&&!Te)return typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),!1;typeof ue=="function"&&(pC(i,u,ue,d),tt=i.memoizedState);var bt=Sb()||_4(i,u,O,d,Se,tt,X)||Te;return bt?(!ce&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,tt,X),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,tt,X)),typeof b.componentDidUpdate=="function"&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=ma)):(typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),i.memoizedProps=d,i.memoizedState=tt),b.props=d,b.state=tt,b.context=X,bt}var vC,gC,yC,bC,SC,D4=function(t,i){};vC=!1,gC=!1,yC={},bC={},SC={},D4=function(t,i){if(!(t===null||typeof t!="object")&&!(!t._store||t._store.validated||t.key!=null)){if(typeof t._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");t._store.validated=!0;var u=Ft(i)||"Component";bC[u]||(bC[u]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function t0(t,i,u){var d=u.ref;if(d!==null&&typeof d!="function"&&typeof d!="object"){if((t.mode&Kn||_e)&&!(u._owner&&u._self&&u._owner.stateNode!==u._self)){var m=Ft(t)||"Component";yC[m]||(f('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d),yC[m]=!0)}if(u._owner){var b=u._owner,k;if(b){var O=b;if(O.tag!==y)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");k=O.stateNode}if(!k)throw new Error("Missing owner for string ref "+d+". This error is likely caused by a bug in React. Please file an issue.");var A=k;ar(d,"ref");var z=""+d;if(i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===z)return i.ref;var B=function(X){var G=A.refs;G===w4&&(G=A.refs={}),X===null?delete G[z]:G[z]=X};return B._stringRef=z,B}else{if(typeof d!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!u._owner)throw new Error("Element ref was specified as a string ("+d+`) but no owner was set. This could happen for one of the following reasons:
131
+ 1. You may be adding a ref to a function component
132
+ 2. You may be adding a ref to a component that was not created inside a component's render method
133
+ 3. You have multiple copies of React loaded
134
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return d}function xb(t,i){var u=Object.prototype.toString.call(i);throw new Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}function wb(t){{var i=Ft(t)||"Component";if(SC[i])return;SC[i]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function A4(t){var i=t._payload,u=t._init;return u(i)}function M4(t){function i(ie,Ee){if(t){var ae=ie.deletions;ae===null?(ie.deletions=[Ee],ie.flags|=dn):ae.push(Ee)}}function u(ie,Ee){if(!t)return null;for(var ae=Ee;ae!==null;)i(ie,ae),ae=ae.sibling;return null}function d(ie,Ee){for(var ae=new Map,je=Ee;je!==null;)je.key!==null?ae.set(je.key,je):ae.set(je.index,je),je=je.sibling;return ae}function m(ie,Ee){var ae=Gf(ie,Ee);return ae.index=0,ae.sibling=null,ae}function b(ie,Ee,ae){if(ie.index=ae,!t)return ie.flags|=Zm,Ee;var je=ie.alternate;if(je!==null){var nt=je.index;return nt<Ee?(ie.flags|=Pn,Ee):nt}else return ie.flags|=Pn,Ee}function k(ie){return t&&ie.alternate===null&&(ie.flags|=Pn),ie}function O(ie,Ee,ae,je){if(Ee===null||Ee.tag!==R){var nt=Y2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae);return Xe.return=ie,Xe}}function A(ie,Ee,ae,je){var nt=ae.type;if(nt===Ia)return B(ie,Ee,ae.props.children,je,ae.key);if(Ee!==null&&(Ee.elementType===nt||xD(Ee,ae)||typeof nt=="object"&&nt!==null&&nt.$$typeof===xt&&A4(nt)===Ee.type)){var Xe=m(Ee,ae.props);return Xe.ref=t0(ie,Ee,ae),Xe.return=ie,Xe._debugSource=ae._source,Xe._debugOwner=ae._owner,Xe}var Tt=W2(ae,ie.mode,je);return Tt.ref=t0(ie,Ee,ae),Tt.return=ie,Tt}function z(ie,Ee,ae,je){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ae.containerInfo||Ee.stateNode.implementation!==ae.implementation){var nt=Z2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae.children||[]);return Xe.return=ie,Xe}}function B(ie,Ee,ae,je,nt){if(Ee===null||Ee.tag!==T){var Xe=yc(ae,ie.mode,je,nt);return Xe.return=ie,Xe}else{var Tt=m(Ee,ae);return Tt.return=ie,Tt}}function X(ie,Ee,ae){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var je=Y2(""+Ee,ie.mode,ae);return je.return=ie,je}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ul:{var nt=W2(Ee,ie.mode,ae);return nt.ref=t0(ie,null,Ee),nt.return=ie,nt}case Ui:{var Xe=Z2(Ee,ie.mode,ae);return Xe.return=ie,Xe}case xt:{var Tt=Ee._payload,Nt=Ee._init;return X(ie,Nt(Tt),ae)}}if(Ar(Ee)||_o(Ee)){var _n=yc(Ee,ie.mode,ae,null);return _n.return=ie,_n}xb(ie,Ee)}return typeof Ee=="function"&&wb(ie),null}function G(ie,Ee,ae,je){var nt=Ee!==null?Ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return nt!==null?null:O(ie,Ee,""+ae,je);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return ae.key===nt?A(ie,Ee,ae,je):null;case Ui:return ae.key===nt?z(ie,Ee,ae,je):null;case xt:{var Xe=ae._payload,Tt=ae._init;return G(ie,Ee,Tt(Xe),je)}}if(Ar(ae)||_o(ae))return nt!==null?null:B(ie,Ee,ae,je,null);xb(ie,ae)}return typeof ae=="function"&&wb(ie),null}function ue(ie,Ee,ae,je,nt){if(typeof je=="string"&&je!==""||typeof je=="number"){var Xe=ie.get(ae)||null;return O(Ee,Xe,""+je,nt)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case ul:{var Tt=ie.get(je.key===null?ae:je.key)||null;return A(Ee,Tt,je,nt)}case Ui:{var Nt=ie.get(je.key===null?ae:je.key)||null;return z(Ee,Nt,je,nt)}case xt:var _n=je._payload,cn=je._init;return ue(ie,Ee,ae,cn(_n),nt)}if(Ar(je)||_o(je)){var Tr=ie.get(ae)||null;return B(Ee,Tr,je,nt,null)}xb(Ee,je)}return typeof je=="function"&&wb(Ee),null}function ce(ie,Ee,ae){{if(typeof ie!="object"||ie===null)return Ee;switch(ie.$$typeof){case ul:case Ui:D4(ie,ae);var je=ie.key;if(typeof je!="string")break;if(Ee===null){Ee=new Set,Ee.add(je);break}if(!Ee.has(je)){Ee.add(je);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case xt:var nt=ie._payload,Xe=ie._init;ce(Xe(nt),Ee,ae);break}}return Ee}function Se(ie,Ee,ae,je){for(var nt=null,Xe=0;Xe<ae.length;Xe++){var Tt=ae[Xe];nt=ce(Tt,nt,ie)}for(var Nt=null,_n=null,cn=Ee,Tr=0,fn=0,yr=null;cn!==null&&fn<ae.length;fn++){cn.index>fn?(yr=cn,cn=null):yr=cn.sibling;var Fi=G(ie,cn,ae[fn],je);if(Fi===null){cn===null&&(cn=yr);break}t&&cn&&Fi.alternate===null&&i(ie,cn),Tr=b(Fi,Tr,fn),_n===null?Nt=Fi:_n.sibling=Fi,_n=Fi,cn=yr}if(fn===ae.length){if(u(ie,cn),pi()){var Si=fn;If(ie,Si)}return Nt}if(cn===null){for(;fn<ae.length;fn++){var Za=X(ie,ae[fn],je);Za!==null&&(Tr=b(Za,Tr,fn),_n===null?Nt=Za:_n.sibling=Za,_n=Za)}if(pi()){var Xi=fn;If(ie,Xi)}return Nt}for(var Ji=d(ie,cn);fn<ae.length;fn++){var Ii=ue(Ji,ie,fn,ae[fn],je);Ii!==null&&(t&&Ii.alternate!==null&&Ji.delete(Ii.key===null?fn:Ii.key),Tr=b(Ii,Tr,fn),_n===null?Nt=Ii:_n.sibling=Ii,_n=Ii)}if(t&&Ji.forEach(function(wh){return i(ie,wh)}),pi()){var Ks=fn;If(ie,Ks)}return Nt}function tt(ie,Ee,ae,je){var nt=_o(ae);if(typeof nt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(gC||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),gC=!0),ae.entries===nt&&(vC||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vC=!0);var Xe=nt.call(ae);if(Xe)for(var Tt=null,Nt=Xe.next();!Nt.done;Nt=Xe.next()){var _n=Nt.value;Tt=ce(_n,Tt,ie)}}var cn=nt.call(ae);if(cn==null)throw new Error("An iterable object provided no iterator.");for(var Tr=null,fn=null,yr=Ee,Fi=0,Si=0,Za=null,Xi=cn.next();yr!==null&&!Xi.done;Si++,Xi=cn.next()){yr.index>Si?(Za=yr,yr=null):Za=yr.sibling;var Ji=G(ie,yr,Xi.value,je);if(Ji===null){yr===null&&(yr=Za);break}t&&yr&&Ji.alternate===null&&i(ie,yr),Fi=b(Ji,Fi,Si),fn===null?Tr=Ji:fn.sibling=Ji,fn=Ji,yr=Za}if(Xi.done){if(u(ie,yr),pi()){var Ii=Si;If(ie,Ii)}return Tr}if(yr===null){for(;!Xi.done;Si++,Xi=cn.next()){var Ks=X(ie,Xi.value,je);Ks!==null&&(Fi=b(Ks,Fi,Si),fn===null?Tr=Ks:fn.sibling=Ks,fn=Ks)}if(pi()){var wh=Si;If(ie,wh)}return Tr}for(var A0=d(ie,yr);!Xi.done;Si++,Xi=cn.next()){var ql=ue(A0,ie,Si,Xi.value,je);ql!==null&&(t&&ql.alternate!==null&&A0.delete(ql.key===null?Si:ql.key),Fi=b(ql,Fi,Si),fn===null?Tr=ql:fn.sibling=ql,fn=ql)}if(t&&A0.forEach(function(BY){return i(ie,BY)}),pi()){var UY=Si;If(ie,UY)}return Tr}function bt(ie,Ee,ae,je){if(Ee!==null&&Ee.tag===R){u(ie,Ee.sibling);var nt=m(Ee,ae);return nt.return=ie,nt}u(ie,Ee);var Xe=Y2(ae,ie.mode,je);return Xe.return=ie,Xe}function vt(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt){var Tt=ae.type;if(Tt===Ia){if(Xe.tag===T){u(ie,Xe.sibling);var Nt=m(Xe,ae.props.children);return Nt.return=ie,Nt._debugSource=ae._source,Nt._debugOwner=ae._owner,Nt}}else if(Xe.elementType===Tt||xD(Xe,ae)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===xt&&A4(Tt)===Xe.type){u(ie,Xe.sibling);var _n=m(Xe,ae.props);return _n.ref=t0(ie,Xe,ae),_n.return=ie,_n._debugSource=ae._source,_n._debugOwner=ae._owner,_n}u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}if(ae.type===Ia){var cn=yc(ae.props.children,ie.mode,je,ae.key);return cn.return=ie,cn}else{var Tr=W2(ae,ie.mode,je);return Tr.ref=t0(ie,Ee,ae),Tr.return=ie,Tr}}function an(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt)if(Xe.tag===C&&Xe.stateNode.containerInfo===ae.containerInfo&&Xe.stateNode.implementation===ae.implementation){u(ie,Xe.sibling);var Tt=m(Xe,ae.children||[]);return Tt.return=ie,Tt}else{u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}var Nt=Z2(ae,ie.mode,je);return Nt.return=ie,Nt}function en(ie,Ee,ae,je){var nt=typeof ae=="object"&&ae!==null&&ae.type===Ia&&ae.key===null;if(nt&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return k(vt(ie,Ee,ae,je));case Ui:return k(an(ie,Ee,ae,je));case xt:var Xe=ae._payload,Tt=ae._init;return en(ie,Ee,Tt(Xe),je)}if(Ar(ae))return Se(ie,Ee,ae,je);if(_o(ae))return tt(ie,Ee,ae,je);xb(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?k(bt(ie,Ee,""+ae,je)):(typeof ae=="function"&&wb(ie),u(ie,Ee))}return en}var lh=M4(!0),L4=M4(!1);function OH(t,i){if(t!==null&&i.child!==t.child)throw new Error("Resuming work not yet implemented.");if(i.child!==null){var u=i.child,d=Gf(u,u.pendingProps);for(i.child=d,d.return=i;u.sibling!==null;)u=u.sibling,d=d.sibling=Gf(u,u.pendingProps),d.return=i;d.sibling=null}}function DH(t,i){for(var u=t.child;u!==null;)aY(u,i),u=u.sibling}var n0={},uc=ic(n0),r0=ic(n0),Cb=ic(n0);function kb(t){if(t===n0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return t}function P4(){var t=kb(Cb.current);return t}function EC(t,i){Pi(Cb,i,t),Pi(r0,t,t),Pi(uc,n0,t);var u=HB(i);Li(uc,t),Pi(uc,u,t)}function sh(t){Li(uc,t),Li(r0,t),Li(Cb,t)}function xC(){var t=kb(uc.current);return t}function N4(t){kb(Cb.current);var i=kb(uc.current),u=qB(i,t.type);i!==u&&(Pi(r0,t,t),Pi(uc,u,t))}function wC(t){r0.current===t&&(Li(uc,t),Li(r0,t))}var AH=0,F4=1,I4=1,i0=2,Yo=ic(AH);function CC(t,i){return(t&i)!==0}function uh(t){return t&F4}function kC(t,i){return t&F4|i}function MH(t,i){return t|i}function cc(t,i){Pi(Yo,i,t)}function ch(t){Li(Yo,t)}function LH(t,i){var u=t.memoizedState;return u!==null?u.dehydrated!==null:(t.memoizedProps,!0)}function _b(t){for(var i=t;i!==null;){if(i.tag===I){var u=i.memoizedState;if(u!==null){var d=u.dehydrated;if(d===null||YR(d)||Aw(d))return i}}else if(i.tag===ee&&i.memoizedProps.revealOrder!==void 0){var m=(i.flags&Dt)!==yt;if(m)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)return null;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ta=0,Hr=1,zl=2,qr=4,hi=8,_C=[];function TC(){for(var t=0;t<_C.length;t++){var i=_C[t];i._workInProgressVersionPrimary=null}_C.length=0}function PH(t,i){var u=i._getVersion,d=u(i._source);t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,d]:t.mutableSourceEagerHydrationData.push(i,d)}var et=r.ReactCurrentDispatcher,a0=r.ReactCurrentBatchConfig,RC,fh;RC=new Set;var Vf=we,kn=null,Wr=null,Yr=null,Tb=!1,o0=!1,l0=0,NH=0,FH=25,Ce=null,ho=null,fc=-1,OC=!1;function vn(){{var t=Ce;ho===null?ho=[t]:ho.push(t)}}function Ze(){{var t=Ce;ho!==null&&(fc++,ho[fc]!==t&&IH(t))}}function dh(t){t!=null&&!Ar(t)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ce,typeof t)}function IH(t){{var i=Ft(kn);if(!RC.has(i)&&(RC.add(i),ho!==null)){for(var u="",d=30,m=0;m<=fc;m++){for(var b=ho[m],k=m===fc?t:b,O=m+1+". "+b;O.length<d;)O+=" ";O+=k+`
135
+ `,u+=O}f(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
136
+
137
+ Previous render Next render
138
+ ------------------------------------------------------
139
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140
+ `,i,u)}}}function Ni(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
141
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
142
+ 2. You might be breaking the Rules of Hooks
143
+ 3. You might have more than one copy of React in the same app
144
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function DC(t,i){if(OC)return!1;if(i===null)return f("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ce),!1;t.length!==i.length&&f(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
145
+
146
+ Previous: %s
147
+ Incoming: %s`,Ce,"["+i.join(", ")+"]","["+t.join(", ")+"]");for(var u=0;u<i.length&&u<t.length;u++)if(!ut(t[u],i[u]))return!1;return!0}function ph(t,i,u,d,m,b){Vf=b,kn=i,ho=t!==null?t._debugHookTypes:null,fc=-1,OC=t!==null&&t.type!==i.type,i.memoizedState=null,i.updateQueue=null,i.lanes=we,t!==null&&t.memoizedState!==null?et.current=aO:ho!==null?et.current=iO:et.current=rO;var k=u(d,m);if(o0){var O=0;do{if(o0=!1,l0=0,O>=FH)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");O+=1,OC=!1,Wr=null,Yr=null,i.updateQueue=null,fc=-1,et.current=oO,k=u(d,m)}while(o0)}et.current=$b,i._debugHookTypes=ho;var A=Wr!==null&&Wr.next!==null;if(Vf=we,kn=null,Wr=null,Yr=null,Ce=null,ho=null,fc=-1,t!==null&&(t.flags&Ur)!==(i.flags&Ur)&&(t.mode&Zt)!==Et&&f("Internal React error: Expected static flag was missing. Please notify the React team."),Tb=!1,A)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return k}function hh(){var t=l0!==0;return l0=0,t}function z4(t,i,u){i.updateQueue=t.updateQueue,(i.mode&ba)!==Et?i.flags&=~(gs|Ti|Vn|zt):i.flags&=~(Vn|zt),t.lanes=Uu(t.lanes,u)}function j4(){if(et.current=$b,Tb){for(var t=kn.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Tb=!1}Vf=we,kn=null,Wr=null,Yr=null,ho=null,fc=-1,Ce=null,X4=!1,o0=!1,l0=0}function jl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yr===null?kn.memoizedState=Yr=t:Yr=Yr.next=t,Yr}function mo(){var t;if(Wr===null){var i=kn.alternate;i!==null?t=i.memoizedState:t=null}else t=Wr.next;var u;if(Yr===null?u=kn.memoizedState:u=Yr.next,u!==null)Yr=u,u=Yr.next,Wr=t;else{if(t===null)throw new Error("Rendered more hooks than during the previous render.");Wr=t;var d={memoizedState:Wr.memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null};Yr===null?kn.memoizedState=Yr=d:Yr=Yr.next=d}return Yr}function $4(){return{lastEffect:null,stores:null}}function AC(t,i){return typeof i=="function"?i(t):i}function MC(t,i,u){var d=jl(),m;u!==void 0?m=u(i):m=i,d.memoizedState=d.baseState=m;var b={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:t,lastRenderedState:m};d.queue=b;var k=b.dispatch=UH.bind(null,kn,b);return[d.memoizedState,k]}function LC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=Wr,k=b.baseQueue,O=m.pending;if(O!==null){if(k!==null){var A=k.next,z=O.next;k.next=z,O.next=A}b.baseQueue!==k&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=k=O,m.pending=null}if(k!==null){var B=k.next,X=b.baseState,G=null,ue=null,ce=null,Se=B;do{var tt=Se.lane;if(Ts(Vf,tt)){if(ce!==null){var vt={lane:nn,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce=ce.next=vt}if(Se.hasEagerState)X=Se.eagerState;else{var an=Se.action;X=t(X,an)}}else{var bt={lane:tt,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce===null?(ue=ce=bt,G=X):ce=ce.next=bt,kn.lanes=jt(kn.lanes,tt),_0(tt)}Se=Se.next}while(Se!==null&&Se!==B);ce===null?G=X:ce.next=ue,ut(X,d.memoizedState)||h0(),d.memoizedState=X,d.baseState=G,d.baseQueue=ce,m.lastRenderedState=X}var en=m.interleaved;if(en!==null){var ie=en;do{var Ee=ie.lane;kn.lanes=jt(kn.lanes,Ee),_0(Ee),ie=ie.next}while(ie!==en)}else k===null&&(m.lanes=we);var ae=m.dispatch;return[d.memoizedState,ae]}function PC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=m.dispatch,k=m.pending,O=d.memoizedState;if(k!==null){m.pending=null;var A=k.next,z=A;do{var B=z.action;O=t(O,B),z=z.next}while(z!==A);ut(O,d.memoizedState)||h0(),d.memoizedState=O,d.baseQueue===null&&(d.baseState=O),m.lastRenderedState=O}return[O,b]}function NZ(t,i,u){}function FZ(t,i,u){}function NC(t,i,u){var d=kn,m=jl(),b,k=pi();if(k){if(u===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=u(),fh||b!==u()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),fh=!0)}else{if(b=i(),!fh){var O=i();ut(b,O)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),fh=!0)}var A=iS();if(A===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Sf(A,Vf)||U4(d,i,b)}m.memoizedState=b;var z={value:b,getSnapshot:i};return m.queue=z,Mb(V4.bind(null,d,z,t),[t]),d.flags|=Vn,s0(Hr|hi,B4.bind(null,d,z,b,i),void 0,null),b}function Rb(t,i,u){var d=kn,m=mo(),b=i();if(!fh){var k=i();ut(b,k)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),fh=!0)}var O=m.memoizedState,A=!ut(O,b);A&&(m.memoizedState=b,h0());var z=m.queue;if(c0(V4.bind(null,d,z,t),[t]),z.getSnapshot!==i||A||Yr!==null&&Yr.memoizedState.tag&Hr){d.flags|=Vn,s0(Hr|hi,B4.bind(null,d,z,b,i),void 0,null);var B=iS();if(B===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Sf(B,Vf)||U4(d,i,b)}return b}function U4(t,i,u){t.flags|=ff;var d={getSnapshot:i,value:u},m=kn.updateQueue;if(m===null)m=$4(),kn.updateQueue=m,m.stores=[d];else{var b=m.stores;b===null?m.stores=[d]:b.push(d)}}function B4(t,i,u,d){i.value=u,i.getSnapshot=d,H4(i)&&q4(t)}function V4(t,i,u){var d=function(){H4(i)&&q4(t)};return u(d)}function H4(t){var i=t.getSnapshot,u=t.value;try{var d=i();return!ut(u,d)}catch{return!0}}function q4(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)}function Ob(t){var i=jl();typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t;var u={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:AC,lastRenderedState:t};i.queue=u;var d=u.dispatch=BH.bind(null,kn,u);return[i.memoizedState,d]}function FC(t){return LC(AC)}function IC(t){return PC(AC)}function s0(t,i,u,d){var m={tag:t,create:i,destroy:u,deps:d,next:null},b=kn.updateQueue;if(b===null)b=$4(),kn.updateQueue=b,b.lastEffect=m.next=m;else{var k=b.lastEffect;if(k===null)b.lastEffect=m.next=m;else{var O=k.next;k.next=m,m.next=O,b.lastEffect=m}}return m}function zC(t){var i=jl();{var u={current:t};return i.memoizedState=u,u}}function Db(t){var i=mo();return i.memoizedState}function u0(t,i,u,d){var m=jl(),b=d===void 0?null:d;kn.flags|=t,m.memoizedState=s0(Hr|i,u,void 0,b)}function Ab(t,i,u,d){var m=mo(),b=d===void 0?null:d,k=void 0;if(Wr!==null){var O=Wr.memoizedState;if(k=O.destroy,b!==null){var A=O.deps;if(DC(b,A)){m.memoizedState=s0(i,u,k,b);return}}}kn.flags|=t,m.memoizedState=s0(Hr|i,u,k,b)}function Mb(t,i){return(kn.mode&ba)!==Et?u0(gs|Vn|El,hi,t,i):u0(Vn|El,hi,t,i)}function c0(t,i){return Ab(Vn,hi,t,i)}function jC(t,i){return u0(zt,zl,t,i)}function Lb(t,i){return Ab(zt,zl,t,i)}function $C(t,i){var u=zt;return u|=_i,(kn.mode&ba)!==Et&&(u|=Ti),u0(u,qr,t,i)}function Pb(t,i){return Ab(zt,qr,t,i)}function W4(t,i){if(typeof i=="function"){var u=i,d=t();return u(d),function(){u(null)}}else if(i!=null){var m=i;m.hasOwnProperty("current")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(m).join(", ")+"}");var b=t();return m.current=b,function(){m.current=null}}}function UC(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null,m=zt;return m|=_i,(kn.mode&ba)!==Et&&(m|=Ti),u0(m,qr,W4.bind(null,i,t),d)}function Nb(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null;return Ab(zt,qr,W4.bind(null,i,t),d)}function zH(t,i){}var Fb=zH;function BC(t,i){var u=jl(),d=i===void 0?null:i;return u.memoizedState=[t,d],t}function Ib(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(DC(d,b))return m[0]}return u.memoizedState=[t,d],t}function VC(t,i){var u=jl(),d=i===void 0?null:i,m=t();return u.memoizedState=[m,d],m}function zb(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(DC(d,b))return m[0]}var k=t();return u.memoizedState=[k,d],k}function HC(t){var i=jl();return i.memoizedState=t,t}function Y4(t){var i=mo(),u=Wr,d=u.memoizedState;return K4(i,d,t)}function Z4(t){var i=mo();if(Wr===null)return i.memoizedState=t,t;var u=Wr.memoizedState;return K4(i,u,t)}function K4(t,i,u){var d=!Gx(Vf);if(d){if(!ut(u,i)){var m=fv();kn.lanes=jt(kn.lanes,m),_0(m),t.baseState=!0}return i}else return t.baseState&&(t.baseState=!1,h0()),t.memoizedState=u,u}function jH(t,i,u){var d=Ea();Cr(ni(d,Vr)),t(!0);var m=a0.transition;a0.transition={};var b=a0.transition;a0.transition._updatedFibers=new Set;try{t(!1),i()}finally{if(Cr(d),a0.transition=m,m===null&&b._updatedFibers){var k=b._updatedFibers.size;k>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),b._updatedFibers.clear()}}}function qC(){var t=Ob(!1),i=t[0],u=t[1],d=jH.bind(null,u),m=jl();return m.memoizedState=d,[i,d]}function G4(){var t=FC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}function Q4(){var t=IC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}var X4=!1;function $H(){return X4}function WC(){var t=jl(),i=iS(),u=i.identifierPrefix,d;if(pi()){var m=eH();d=":"+u+"R"+m;var b=l0++;b>0&&(d+="H"+b.toString(32)),d+=":"}else{var k=NH++;d=":"+u+"r"+k.toString(32)+":"}return t.memoizedState=d,d}function jb(){var t=mo(),i=t.memoizedState;return i}function UH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=vc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(J4(t))eO(i,m);else{var b=g4(t,i,m,d);if(b!==null){var k=Qi();Qr(b,t,d,k),tO(b,i,d)}}nO(t,d)}function BH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=vc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(J4(t))eO(i,m);else{var b=t.alternate;if(t.lanes===we&&(b===null||b.lanes===we)){var k=i.lastRenderedReducer;if(k!==null){var O;O=et.current,et.current=Zo;try{var A=i.lastRenderedState,z=k(A,u);if(m.hasEagerState=!0,m.eagerState=z,ut(z,A)){SH(t,i,m,d);return}}catch{}finally{et.current=O}}}var B=g4(t,i,m,d);if(B!==null){var X=Qi();Qr(B,t,d,X),tO(B,i,d)}}nO(t,d)}function J4(t){var i=t.alternate;return t===kn||i!==null&&i===kn}function eO(t,i){o0=Tb=!0;var u=t.pending;u===null?i.next=i:(i.next=u.next,u.next=i),t.pending=i}function tO(t,i,u){if(cv(u)){var d=i.lanes;d=dv(d,t.pendingLanes);var m=jt(d,u);i.lanes=m,Bu(t,m)}}function nO(t,i,u){Tl(t,i)}var $b={readContext:zr,useCallback:Ni,useContext:Ni,useEffect:Ni,useImperativeHandle:Ni,useInsertionEffect:Ni,useLayoutEffect:Ni,useMemo:Ni,useReducer:Ni,useRef:Ni,useState:Ni,useDebugValue:Ni,useDeferredValue:Ni,useTransition:Ni,useMutableSource:Ni,useSyncExternalStore:Ni,useId:Ni,unstable_isNewReconciler:se},rO=null,iO=null,aO=null,oO=null,$l=null,Zo=null,Ub=null;{var YC=function(){f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Lt=function(){f("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};rO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",vn(),dh(i),BC(t,i)},useContext:function(t){return Ce="useContext",vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",vn(),dh(i),Mb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",vn(),dh(u),UC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",vn(),dh(i),jC(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",vn(),dh(i),$C(t,i)},useMemo:function(t,i){Ce="useMemo",vn(),dh(i);var u=et.current;et.current=$l;try{return VC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",vn();var d=et.current;et.current=$l;try{return MC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",vn(),zC(t)},useState:function(t){Ce="useState",vn();var i=et.current;et.current=$l;try{return Ob(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",vn(),HC(t)},useTransition:function(){return Ce="useTransition",vn(),qC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",vn(),NC(t,i,u)},useId:function(){return Ce="useId",vn(),WC()},unstable_isNewReconciler:se},iO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),BC(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),Mb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),UC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),jC(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),$C(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=$l;try{return VC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=$l;try{return MC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),zC(t)},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=$l;try{return Ob(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),HC(t)},useTransition:function(){return Ce="useTransition",Ze(),qC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),NC(t,i,u)},useId:function(){return Ce="useId",Ze(),WC()},unstable_isNewReconciler:se},aO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),Ib(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),c0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Nb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Lb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Pb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Zo;try{return zb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Zo;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Db()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Zo;try{return FC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Fb()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),Y4(t)},useTransition:function(){return Ce="useTransition",Ze(),G4()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Rb(t,i)},useId:function(){return Ce="useId",Ze(),jb()},unstable_isNewReconciler:se},oO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),Ib(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),c0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Nb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Lb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Pb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Ub;try{return zb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Ub;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Db()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Ub;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Fb()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),Z4(t)},useTransition:function(){return Ce="useTransition",Ze(),Q4()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Rb(t,i)},useId:function(){return Ce="useId",Ze(),jb()},unstable_isNewReconciler:se},$l={readContext:function(t){return YC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),vn(),BC(t,i)},useContext:function(t){return Ce="useContext",Lt(),vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),vn(),Mb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),vn(),UC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),vn(),jC(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),vn(),$C(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),vn();var u=et.current;et.current=$l;try{return VC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),vn();var d=et.current;et.current=$l;try{return MC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),vn(),zC(t)},useState:function(t){Ce="useState",Lt(),vn();var i=et.current;et.current=$l;try{return Ob(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),vn(),HC(t)},useTransition:function(){return Ce="useTransition",Lt(),vn(),qC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),vn(),NC(t,i,u)},useId:function(){return Ce="useId",Lt(),vn(),WC()},unstable_isNewReconciler:se},Zo={readContext:function(t){return YC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),Ib(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),c0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Nb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Lb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Pb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return zb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Db()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return FC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Fb()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),Y4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),G4()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Rb(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),jb()},unstable_isNewReconciler:se},Ub={readContext:function(t){return YC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),Ib(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),c0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Nb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Lb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Pb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return zb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Db()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Fb()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),Z4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),Q4()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Rb(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),jb()},unstable_isNewReconciler:se}}var dc=n.unstable_now,lO=0,Bb=-1,f0=-1,Vb=-1,ZC=!1,Hb=!1;function sO(){return ZC}function VH(){Hb=!0}function HH(){ZC=!1,Hb=!1}function qH(){ZC=Hb,Hb=!1}function uO(){return lO}function cO(){lO=dc()}function KC(t){f0=dc(),t.actualStartTime<0&&(t.actualStartTime=dc())}function fO(t){f0=-1}function qb(t,i){if(f0>=0){var u=dc()-f0;t.actualDuration+=u,i&&(t.selfBaseDuration=u),f0=-1}}function Ul(t){if(Bb>=0){var i=dc()-Bb;Bb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d.effectDuration+=i;return;case V:var m=u.stateNode;m.effectDuration+=i;return}u=u.return}}}function GC(t){if(Vb>=0){var i=dc()-Vb;Vb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d!==null&&(d.passiveEffectDuration+=i);return;case V:var m=u.stateNode;m!==null&&(m.passiveEffectDuration+=i);return}u=u.return}}}function Bl(){Bb=dc()}function QC(){Vb=dc()}function XC(t){for(var i=t.child;i;)t.actualDuration+=i.actualDuration,i=i.sibling}function Hf(t,i){return{value:t,source:i,stack:Sm(i),digest:null}}function JC(t,i,u){return{value:t,source:null,stack:u??null,digest:i??null}}function WH(t,i){return!0}function e2(t,i){try{var u=WH(t,i);if(u===!1)return;var d=i.value,m=i.source,b=i.stack,k=b!==null?b:"";if(d!=null&&d._suppressLogging){if(t.tag===y)return;console.error(d)}var O=m?Ft(m):null,A=O?"The above error occurred in the <"+O+"> component:":"The above error occurred in one of your React components:",z;if(t.tag===E)z=`Consider adding an error boundary to your tree to customize error handling behavior.
148
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var B=Ft(t)||"Anonymous";z="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+B+".")}var X=A+`
149
+ `+k+`
150
+
151
+ `+(""+z);console.error(X)}catch(G){setTimeout(function(){throw G})}}var YH=typeof WeakMap=="function"?WeakMap:Map;function dO(t,i,u){var d=Vs(An,u);d.tag=eC,d.payload={element:null};var m=i.value;return d.callback=function(){jW(m),e2(t,i)},d}function t2(t,i,u){var d=Vs(An,u);d.tag=eC;var m=t.type.getDerivedStateFromError;if(typeof m=="function"){var b=i.value;d.payload=function(){return m(b)},d.callback=function(){wD(t),e2(t,i)}}var k=t.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(d.callback=function(){wD(t),e2(t,i),typeof m!="function"&&IW(this);var A=i.value,z=i.stack;this.componentDidCatch(A,{componentStack:z!==null?z:""}),typeof m!="function"&&(Mi(t.lanes,kt)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ft(t)||"Unknown"))}),d}function pO(t,i,u){var d=t.pingCache,m;if(d===null?(d=t.pingCache=new YH,m=new Set,d.set(i,m)):(m=d.get(i),m===void 0&&(m=new Set,d.set(i,m))),!m.has(u)){m.add(u);var b=$W.bind(null,t,i,u);Br&&T0(t,u),i.then(b,b)}}function ZH(t,i,u,d){var m=t.updateQueue;if(m===null){var b=new Set;b.add(u),t.updateQueue=b}else m.add(u)}function KH(t,i){var u=t.tag;if((t.mode&Zt)===Et&&(u===v||u===N||u===H)){var d=t.alternate;d?(t.updateQueue=d.updateQueue,t.memoizedState=d.memoizedState,t.lanes=d.lanes):(t.updateQueue=null,t.memoizedState=null)}}function hO(t){var i=t;do{if(i.tag===I&&LH(i))return i;i=i.return}while(i!==null);return null}function mO(t,i,u,d,m){if((t.mode&Zt)===Et){if(t===i)t.flags|=Lr;else{if(t.flags|=Dt,u.flags|=df,u.flags&=~(Jd|Vi),u.tag===y){var b=u.alternate;if(b===null)u.tag=ne;else{var k=Vs(An,kt);k.tag=mb,sc(u,k,kt)}}u.lanes=jt(u.lanes,kt)}return t}return t.flags|=Lr,t.lanes=m,t}function GH(t,i,u,d,m){if(u.flags|=Vi,Br&&T0(t,m),d!==null&&typeof d=="object"&&typeof d.then=="function"){var b=d;KH(u),pi()&&u.mode&Zt&&a4();var k=hO(i);if(k!==null){k.flags&=~er,mO(k,i,u,t,m),k.mode&Zt&&pO(t,b,m),ZH(k,t,b);return}else{if(!$u(m)){pO(t,b,m),P2();return}var O=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");d=O}}else if(pi()&&u.mode&Zt){a4();var A=hO(i);if(A!==null){(A.flags&Lr)===yt&&(A.flags|=er),mO(A,i,u,t,m),Yw(Hf(d,u));return}}d=Hf(d,u),OW(d);var z=i;do{switch(z.tag){case E:{var B=d;z.flags|=Lr;var X=wr(m);z.lanes=jt(z.lanes,X);var G=dO(z,B,X);rC(z,G);return}case y:var ue=d,ce=z.type,Se=z.stateNode;if((z.flags&Dt)===yt&&(typeof ce.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&!hD(Se))){z.flags|=Lr;var tt=wr(m);z.lanes=jt(z.lanes,tt);var bt=t2(z,ue,tt);rC(z,bt);return}break}z=z.return}while(z!==null)}function QH(){return null}var d0=r.ReactCurrentOwner,Ko=!1,n2,p0,r2,i2,a2,qf,o2,Wb;n2={},p0={},r2={},i2={},a2={},qf=!1,o2={},Wb={};function Ki(t,i,u,d){t===null?i.child=L4(i,null,u,d):i.child=lh(i,t.child,u,d)}function XH(t,i,u,d){i.child=lh(i,t.child,null,d),i.child=lh(i,null,u,d)}function vO(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k=u.render,O=i.ref,A,z;oh(i,m),_l(i);{if(d0.current=i,$a(!0),A=ph(t,i,k,d,O,m),z=hh(),i.mode&Kn){xr(!0);try{A=ph(t,i,k,d,O,m),z=hh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(z4(t,i,m),Hs(t,i,m)):(pi()&&z&&Uw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function gO(t,i,u,d,m){if(t===null){var b=u.type;if(rY(b)&&u.compare===null&&u.defaultProps===void 0){var k=b;return k=xh(b),i.tag=H,i.type=k,u2(i,b),yO(t,i,k,d,m)}{var O=b.propTypes;O&&Vo(O,d,"prop",On(b))}var A=q2(u.type,null,d,i,i.mode,m);return A.ref=i.ref,A.return=i,i.child=A,A}{var z=u.type,B=z.propTypes;B&&Vo(B,d,"prop",On(z))}var X=t.child,G=m2(t,m);if(!G){var ue=X.memoizedProps,ce=u.compare;if(ce=ce!==null?ce:gt,ce(ue,d)&&t.ref===i.ref)return Hs(t,i,m)}i.flags|=bl;var Se=Gf(X,d);return Se.ref=i.ref,Se.return=i,i.child=Se,Se}function yO(t,i,u,d,m){if(i.type!==i.elementType){var b=i.elementType;if(b.$$typeof===xt){var k=b,O=k._payload,A=k._init;try{b=A(O)}catch{b=null}var z=b&&b.propTypes;z&&Vo(z,d,"prop",On(b))}}if(t!==null){var B=t.memoizedProps;if(gt(B,d)&&t.ref===i.ref&&i.type===t.type)if(Ko=!1,i.pendingProps=d=B,m2(t,m))(t.flags&df)!==yt&&(Ko=!0);else return i.lanes=t.lanes,Hs(t,i,m)}return l2(t,i,u,d,m)}function bO(t,i,u){var d=i.pendingProps,m=d.children,b=t!==null?t.memoizedState:null;if(d.mode==="hidden"||L)if((i.mode&Zt)===Et){var k={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=k,aS(i,u)}else if(Mi(u,Ai)){var X={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=X;var G=b!==null?b.baseLanes:u;aS(i,G)}else{var O=null,A;if(b!==null){var z=b.baseLanes;A=jt(z,u)}else A=u;i.lanes=i.childLanes=Ai;var B={baseLanes:A,cachePool:O,transitions:null};return i.memoizedState=B,i.updateQueue=null,aS(i,A),null}else{var ue;b!==null?(ue=jt(b.baseLanes,u),i.memoizedState=null):ue=u,aS(i,ue)}return Ki(t,i,m,u),i.child}function JH(t,i,u){var d=i.pendingProps;return Ki(t,i,d,u),i.child}function eq(t,i,u){var d=i.pendingProps.children;return Ki(t,i,d,u),i.child}function tq(t,i,u){{i.flags|=zt;{var d=i.stateNode;d.effectDuration=0,d.passiveEffectDuration=0}}var m=i.pendingProps,b=m.children;return Ki(t,i,b,u),i.child}function SO(t,i){var u=i.ref;(t===null&&u!==null||t!==null&&t.ref!==u)&&(i.flags|=ki,i.flags|=Km)}function l2(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k;{var O=eh(i,u,!0);k=th(i,O)}var A,z;oh(i,m),_l(i);{if(d0.current=i,$a(!0),A=ph(t,i,u,d,k,m),z=hh(),i.mode&Kn){xr(!0);try{A=ph(t,i,u,d,k,m),z=hh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(z4(t,i,m),Hs(t,i,m)):(pi()&&z&&Uw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function EO(t,i,u,d,m){{switch(yY(i)){case!1:{var b=i.stateNode,k=i.type,O=new k(i.memoizedProps,b.context),A=O.state;b.updater.enqueueSetState(b,A,null);break}case!0:{i.flags|=Dt,i.flags|=Lr;var z=new Error("Simulated error coming from DevTools"),B=wr(m);i.lanes=jt(i.lanes,B);var X=t2(i,Hf(z,i),B);rC(i,X);break}}if(i.type!==i.elementType){var G=u.propTypes;G&&Vo(G,d,"prop",On(u))}}var ue;Il(u)?(ue=!0,ib(i)):ue=!1,oh(i,m);var ce=i.stateNode,Se;ce===null?(Zb(t,i),R4(i,u,d),mC(i,u,d,m),Se=!0):t===null?Se=TH(i,u,d,m):Se=RH(t,i,u,d,m);var tt=s2(t,i,u,Se,ue,m);{var bt=i.stateNode;Se&&bt.props!==d&&(qf||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ft(i)||"a component"),qf=!0)}return tt}function s2(t,i,u,d,m,b){SO(t,i);var k=(i.flags&Dt)!==yt;if(!d&&!k)return m&&t4(i,u,!1),Hs(t,i,b);var O=i.stateNode;d0.current=i;var A;if(k&&typeof u.getDerivedStateFromError!="function")A=null,fO();else{_l(i);{if($a(!0),A=O.render(),i.mode&Kn){xr(!0);try{O.render()}finally{xr(!1)}}$a(!1)}ys()}return i.flags|=bl,t!==null&&k?XH(t,i,A,b):Ki(t,i,A,b),i.memoizedState=O.state,m&&t4(i,u,!0),i.child}function xO(t){var i=t.stateNode;i.pendingContext?JR(t,i.pendingContext,i.pendingContext!==i.context):i.context&&JR(t,i.context,!1),EC(t,i.containerInfo)}function nq(t,i,u){if(xO(i),t===null)throw new Error("Should have a current fiber. This is a bug in React.");var d=i.pendingProps,m=i.memoizedState,b=m.element;S4(t,i),bb(i,d,null,u);var k=i.memoizedState;i.stateNode;var O=k.element;if(m.isDehydrated){var A={element:O,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},z=i.updateQueue;if(z.baseState=A,i.memoizedState=A,i.flags&er){var B=Hf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),i);return wO(t,i,O,u,B)}else if(O!==b){var X=Hf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i);return wO(t,i,O,u,X)}else{oH(i);var G=L4(i,null,O,u);i.child=G;for(var ue=G;ue;)ue.flags=ue.flags&~Pn|va,ue=ue.sibling}}else{if(ih(),O===b)return Hs(t,i,u);Ki(t,i,O,u)}return i.child}function wO(t,i,u,d,m){return ih(),Yw(m),i.flags|=er,Ki(t,i,u,d),i.child}function rq(t,i,u){N4(i),t===null&&Ww(i);var d=i.type,m=i.pendingProps,b=t!==null?t.memoizedProps:null,k=m.children,O=Tw(d,m);return O?k=null:b!==null&&Tw(d,b)&&(i.flags|=mn),SO(t,i),Ki(t,i,k,u),i.child}function iq(t,i){return t===null&&Ww(i),null}function aq(t,i,u,d){Zb(t,i);var m=i.pendingProps,b=u,k=b._payload,O=b._init,A=O(k);i.type=A;var z=i.tag=iY(A),B=Wo(A,m),X;switch(z){case v:return u2(i,A),i.type=A=xh(A),X=l2(null,i,A,B,d),X;case y:return i.type=A=j2(A),X=EO(null,i,A,B,d),X;case N:return i.type=A=$2(A),X=vO(null,i,A,B,d),X;case $:{if(i.type!==i.elementType){var G=A.propTypes;G&&Vo(G,B,"prop",On(A))}return X=gO(null,i,A,Wo(A.type,B),d),X}}var ue="";throw A!==null&&typeof A=="object"&&A.$$typeof===xt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+ue))}function oq(t,i,u,d,m){Zb(t,i),i.tag=y;var b;return Il(u)?(b=!0,ib(i)):b=!1,oh(i,m),R4(i,u,d),mC(i,u,d,m),s2(null,i,u,!0,b,m)}function lq(t,i,u,d){Zb(t,i);var m=i.pendingProps,b;{var k=eh(i,u,!1);b=th(i,k)}oh(i,d);var O,A;_l(i);{if(u.prototype&&typeof u.prototype.render=="function"){var z=On(u)||"Unknown";n2[z]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",z,z),n2[z]=!0)}i.mode&Kn&&qo.recordLegacyContextWarning(i,null),$a(!0),d0.current=i,O=ph(null,i,u,m,b,d),A=hh(),$a(!1)}if(ys(),i.flags|=bl,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){var B=On(u)||"Unknown";p0[B]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",B,B,B),p0[B]=!0)}if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){{var X=On(u)||"Unknown";p0[X]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),p0[X]=!0)}i.tag=y,i.memoizedState=null,i.updateQueue=null;var G=!1;return Il(u)?(G=!0,ib(i)):G=!1,i.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,nC(i),T4(i,O),mC(i,u,m,d),s2(null,i,u,!0,G,d)}else{if(i.tag=v,i.mode&Kn){xr(!0);try{O=ph(null,i,u,m,b,d),A=hh()}finally{xr(!1)}}return pi()&&A&&Uw(i),Ki(null,i,O,d),u2(i,u),i.child}}function u2(t,i){{if(i&&i.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",i.displayName||i.name||"Component"),t.ref!==null){var u="",d=da();d&&(u+=`
152
+
153
+ Check the render method of \``+d+"`.");var m=d||"",b=t._debugSource;b&&(m=b.fileName+":"+b.lineNumber),a2[m]||(a2[m]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof i.getDerivedStateFromProps=="function"){var k=On(i)||"Unknown";i2[k]||(f("%s: Function components do not support getDerivedStateFromProps.",k),i2[k]=!0)}if(typeof i.contextType=="object"&&i.contextType!==null){var O=On(i)||"Unknown";r2[O]||(f("%s: Function components do not support contextType.",O),r2[O]=!0)}}}var c2={dehydrated:null,treeContext:null,retryLane:nn};function f2(t){return{baseLanes:t,cachePool:QH(),transitions:null}}function sq(t,i){var u=null;return{baseLanes:jt(t.baseLanes,i),cachePool:u,transitions:t.transitions}}function uq(t,i,u,d){if(i!==null){var m=i.memoizedState;if(m===null)return!1}return CC(t,i0)}function cq(t,i){return Uu(t.childLanes,i)}function CO(t,i,u){var d=i.pendingProps;bY(i)&&(i.flags|=Dt);var m=Yo.current,b=!1,k=(i.flags&Dt)!==yt;if(k||uq(m,t)?(b=!0,i.flags&=~Dt):(t===null||t.memoizedState!==null)&&(m=MH(m,I4)),m=uh(m),cc(i,m),t===null){Ww(i);var O=i.memoizedState;if(O!==null){var A=O.dehydrated;if(A!==null)return mq(i,A)}var z=d.children,B=d.fallback;if(b){var X=fq(i,z,B,u),G=i.child;return G.memoizedState=f2(u),i.memoizedState=c2,X}else return d2(i,z)}else{var ue=t.memoizedState;if(ue!==null){var ce=ue.dehydrated;if(ce!==null)return vq(t,i,k,d,ce,ue,u)}if(b){var Se=d.fallback,tt=d.children,bt=pq(t,i,tt,Se,u),vt=i.child,an=t.child.memoizedState;return vt.memoizedState=an===null?f2(u):sq(an,u),vt.childLanes=cq(t,u),i.memoizedState=c2,bt}else{var en=d.children,ie=dq(t,i,en,u);return i.memoizedState=null,ie}}}function d2(t,i,u){var d=t.mode,m={mode:"visible",children:i},b=p2(m,d);return b.return=t,t.child=b,b}function fq(t,i,u,d){var m=t.mode,b=t.child,k={mode:"hidden",children:i},O,A;return(m&Zt)===Et&&b!==null?(O=b,O.childLanes=we,O.pendingProps=k,t.mode&wt&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=0,O.treeBaseDuration=0),A=yc(u,m,d,null)):(O=p2(k,m),A=yc(u,m,d,null)),O.return=t,A.return=t,O.sibling=A,t.child=O,A}function p2(t,i,u){return kD(t,i,we,null)}function kO(t,i){return Gf(t,i)}function dq(t,i,u,d){var m=t.child,b=m.sibling,k=kO(m,{mode:"visible",children:u});if((i.mode&Zt)===Et&&(k.lanes=d),k.return=i,k.sibling=null,b!==null){var O=i.deletions;O===null?(i.deletions=[b],i.flags|=dn):O.push(b)}return i.child=k,k}function pq(t,i,u,d,m){var b=i.mode,k=t.child,O=k.sibling,A={mode:"hidden",children:u},z;if((b&Zt)===Et&&i.child!==k){var B=i.child;z=B,z.childLanes=we,z.pendingProps=A,i.mode&wt&&(z.actualDuration=0,z.actualStartTime=-1,z.selfBaseDuration=k.selfBaseDuration,z.treeBaseDuration=k.treeBaseDuration),i.deletions=null}else z=kO(k,A),z.subtreeFlags=k.subtreeFlags&Ur;var X;return O!==null?X=Gf(O,d):(X=yc(d,b,m,null),X.flags|=Pn),X.return=i,z.return=i,z.sibling=X,i.child=z,X}function Yb(t,i,u,d){d!==null&&Yw(d),lh(i,t.child,null,u);var m=i.pendingProps,b=m.children,k=d2(i,b);return k.flags|=Pn,i.memoizedState=null,k}function hq(t,i,u,d,m){var b=i.mode,k={mode:"visible",children:u},O=p2(k,b),A=yc(d,b,m,null);return A.flags|=Pn,O.return=i,A.return=i,O.sibling=A,i.child=O,(i.mode&Zt)!==Et&&lh(i,t.child,null,m),A}function mq(t,i,u){return(t.mode&Zt)===Et?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),t.lanes=kt):Aw(i)?t.lanes=Es:t.lanes=Ai,null}function vq(t,i,u,d,m,b,k){if(u)if(i.flags&er){i.flags&=~er;var ie=JC(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Yb(t,i,k,ie)}else{if(i.memoizedState!==null)return i.child=t.child,i.flags|=Dt,null;var Ee=d.children,ae=d.fallback,je=hq(t,i,Ee,ae,k),nt=i.child;return nt.memoizedState=f2(k),i.memoizedState=c2,je}else{if(iH(),(i.mode&Zt)===Et)return Yb(t,i,k,null);if(Aw(m)){var O,A,z;{var B=EV(m);O=B.digest,A=B.message,z=B.stack}var X;A?X=new Error(A):X=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var G=JC(X,O,z);return Yb(t,i,k,G)}var ue=Mi(k,t.childLanes);if(Ko||ue){var ce=iS();if(ce!==null){var Se=Xx(ce,k);if(Se!==nn&&Se!==b.retryLane){b.retryLane=Se;var tt=An;_a(t,Se),Qr(ce,t,Se,tt)}}P2();var bt=JC(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Yb(t,i,k,bt)}else if(YR(m)){i.flags|=Dt,i.child=t.child;var vt=UW.bind(null,t);return xV(m,vt),null}else{lH(i,m,b.treeContext);var an=d.children,en=d2(i,an);return en.flags|=va,en}}}function _O(t,i,u){t.lanes=jt(t.lanes,i);var d=t.alternate;d!==null&&(d.lanes=jt(d.lanes,i)),Xw(t.return,i,u)}function gq(t,i,u){for(var d=i;d!==null;){if(d.tag===I){var m=d.memoizedState;m!==null&&_O(d,u,t)}else if(d.tag===ee)_O(d,u,t);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}}function yq(t){for(var i=t,u=null;i!==null;){var d=i.alternate;d!==null&&_b(d)===null&&(u=i),i=i.sibling}return u}function bq(t){if(t!==void 0&&t!=="forwards"&&t!=="backwards"&&t!=="together"&&!o2[t])if(o2[t]=!0,typeof t=="string")switch(t.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',t,t.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',t,t.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t)}function Sq(t,i){t!==void 0&&!Wb[t]&&(t!=="collapsed"&&t!=="hidden"?(Wb[t]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',t)):i!=="forwards"&&i!=="backwards"&&(Wb[t]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',t)))}function TO(t,i){{var u=Ar(t),d=!u&&typeof _o(t)=="function";if(u||d){var m=u?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,i,m),!1}}return!0}function Eq(t,i){if((i==="forwards"||i==="backwards")&&t!==void 0&&t!==null&&t!==!1)if(Ar(t)){for(var u=0;u<t.length;u++)if(!TO(t[u],u))return}else{var d=_o(t);if(typeof d=="function"){var m=d.call(t);if(m)for(var b=m.next(),k=0;!b.done;b=m.next()){if(!TO(b.value,k))return;k++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',i)}}function h2(t,i,u,d,m){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:m}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=u,b.tailMode=m)}function RO(t,i,u){var d=i.pendingProps,m=d.revealOrder,b=d.tail,k=d.children;bq(m),Sq(b,m),Eq(k,m),Ki(t,i,k,u);var O=Yo.current,A=CC(O,i0);if(A)O=kC(O,i0),i.flags|=Dt;else{var z=t!==null&&(t.flags&Dt)!==yt;z&&gq(i,i.child,u),O=uh(O)}if(cc(i,O),(i.mode&Zt)===Et)i.memoizedState=null;else switch(m){case"forwards":{var B=yq(i.child),X;B===null?(X=i.child,i.child=null):(X=B.sibling,B.sibling=null),h2(i,!1,X,B,b);break}case"backwards":{var G=null,ue=i.child;for(i.child=null;ue!==null;){var ce=ue.alternate;if(ce!==null&&_b(ce)===null){i.child=ue;break}var Se=ue.sibling;ue.sibling=G,G=ue,ue=Se}h2(i,!0,G,null,b);break}case"together":{h2(i,!1,null,null,void 0);break}default:i.memoizedState=null}return i.child}function xq(t,i,u){EC(i,i.stateNode.containerInfo);var d=i.pendingProps;return t===null?i.child=lh(i,null,d,u):Ki(t,i,d,u),i.child}var OO=!1;function wq(t,i,u){var d=i.type,m=d._context,b=i.pendingProps,k=i.memoizedProps,O=b.value;{"value"in b||OO||(OO=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=i.type.propTypes;A&&Vo(A,b,"prop","Context.Provider")}if(v4(i,m,O),k!==null){var z=k.value;if(ut(z,O)){if(k.children===b.children&&!nb())return Hs(t,i,u)}else gH(i,m,u)}var B=b.children;return Ki(t,i,B,u),i.child}var DO=!1;function Cq(t,i,u){var d=i.type;d._context===void 0?d!==d.Consumer&&(DO||(DO=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var m=i.pendingProps,b=m.children;typeof b!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),oh(i,u);var k=zr(d);_l(i);var O;return d0.current=i,$a(!0),O=b(k),$a(!1),ys(),i.flags|=bl,Ki(t,i,O,u),i.child}function h0(){Ko=!0}function Zb(t,i){(i.mode&Zt)===Et&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=Pn)}function Hs(t,i,u){return t!==null&&(i.dependencies=t.dependencies),fO(),_0(i.lanes),Mi(u,i.childLanes)?(OH(t,i),i.child):null}function kq(t,i,u){{var d=i.return;if(d===null)throw new Error("Cannot swap the root fiber.");if(t.alternate=null,i.alternate=null,u.index=i.index,u.sibling=i.sibling,u.return=i.return,u.ref=i.ref,i===d.child)d.child=u;else{var m=d.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==i;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=u}var b=d.deletions;return b===null?(d.deletions=[t],d.flags|=dn):b.push(t),u.flags|=Pn,u}}function m2(t,i){var u=t.lanes;return!!Mi(u,i)}function _q(t,i,u){switch(i.tag){case E:xO(i),i.stateNode,ih();break;case x:N4(i);break;case y:{var d=i.type;Il(d)&&ib(i);break}case C:EC(i,i.stateNode.containerInfo);break;case F:{var m=i.memoizedProps.value,b=i.type._context;v4(i,b,m);break}case V:{var k=Mi(u,i.childLanes);k&&(i.flags|=zt);{var O=i.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}}break;case I:{var A=i.memoizedState;if(A!==null){if(A.dehydrated!==null)return cc(i,uh(Yo.current)),i.flags|=Dt,null;var z=i.child,B=z.childLanes;if(Mi(u,B))return CO(t,i,u);cc(i,uh(Yo.current));var X=Hs(t,i,u);return X!==null?X.sibling:null}else cc(i,uh(Yo.current));break}case ee:{var G=(t.flags&Dt)!==yt,ue=Mi(u,i.childLanes);if(G){if(ue)return RO(t,i,u);i.flags|=Dt}var ce=i.memoizedState;if(ce!==null&&(ce.rendering=null,ce.tail=null,ce.lastEffect=null),cc(i,Yo.current),ue)break;return null}case J:case pe:return i.lanes=we,bO(t,i,u)}return Hs(t,i,u)}function AO(t,i,u){if(i._debugNeedsRemount&&t!==null)return kq(t,i,q2(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes));if(t!==null){var d=t.memoizedProps,m=i.pendingProps;if(d!==m||nb()||i.type!==t.type)Ko=!0;else{var b=m2(t,u);if(!b&&(i.flags&Dt)===yt)return Ko=!1,_q(t,i,u);(t.flags&df)!==yt?Ko=!0:Ko=!1}}else if(Ko=!1,pi()&&XV(i)){var k=i.index,O=JV();i4(i,O,k)}switch(i.lanes=we,i.tag){case S:return lq(t,i,i.type,u);case Z:{var A=i.elementType;return aq(t,i,A,u)}case v:{var z=i.type,B=i.pendingProps,X=i.elementType===z?B:Wo(z,B);return l2(t,i,z,X,u)}case y:{var G=i.type,ue=i.pendingProps,ce=i.elementType===G?ue:Wo(G,ue);return EO(t,i,G,ce,u)}case E:return nq(t,i,u);case x:return rq(t,i,u);case R:return iq(t,i);case I:return CO(t,i,u);case C:return xq(t,i,u);case N:{var Se=i.type,tt=i.pendingProps,bt=i.elementType===Se?tt:Wo(Se,tt);return vO(t,i,Se,bt,u)}case T:return JH(t,i,u);case D:return eq(t,i,u);case V:return tq(t,i,u);case F:return wq(t,i,u);case M:return Cq(t,i,u);case $:{var vt=i.type,an=i.pendingProps,en=Wo(vt,an);if(i.type!==i.elementType){var ie=vt.propTypes;ie&&Vo(ie,en,"prop",On(vt))}return en=Wo(vt.type,en),gO(t,i,vt,en,u)}case H:return yO(t,i,i.type,i.pendingProps,u);case ne:{var Ee=i.type,ae=i.pendingProps,je=i.elementType===Ee?ae:Wo(Ee,ae);return oq(t,i,Ee,je,u)}case ee:return RO(t,i,u);case oe:break;case J:return bO(t,i,u)}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mh(t){t.flags|=zt}function MO(t){t.flags|=ki,t.flags|=Km}var LO,v2,PO,NO;LO=function(t,i,u,d){for(var m=i.child;m!==null;){if(m.tag===x||m.tag===R)KB(t,m.stateNode);else if(m.tag!==C){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===i)return;for(;m.sibling===null;){if(m.return===null||m.return===i)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},v2=function(t,i){},PO=function(t,i,u,d,m){var b=t.memoizedProps;if(b!==d){var k=i.stateNode,O=xC(),A=QB(k,u,b,d,m,O);i.updateQueue=A,A&&mh(i)}},NO=function(t,i,u,d){u!==d&&mh(i)};function m0(t,i){if(!pi())switch(t.tailMode){case"hidden":{for(var u=t.tail,d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?t.tail=null:d.sibling=null;break}case"collapsed":{for(var m=t.tail,b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?!i&&t.tail!==null?t.tail.sibling=null:t.tail=null:b.sibling=null;break}}}function mi(t){var i=t.alternate!==null&&t.alternate.child===t.child,u=we,d=yt;if(i){if((t.mode&wt)!==Et){for(var A=t.selfBaseDuration,z=t.child;z!==null;)u=jt(u,jt(z.lanes,z.childLanes)),d|=z.subtreeFlags&Ur,d|=z.flags&Ur,A+=z.treeBaseDuration,z=z.sibling;t.treeBaseDuration=A}else for(var B=t.child;B!==null;)u=jt(u,jt(B.lanes,B.childLanes)),d|=B.subtreeFlags&Ur,d|=B.flags&Ur,B.return=t,B=B.sibling;t.subtreeFlags|=d}else{if((t.mode&wt)!==Et){for(var m=t.actualDuration,b=t.selfBaseDuration,k=t.child;k!==null;)u=jt(u,jt(k.lanes,k.childLanes)),d|=k.subtreeFlags,d|=k.flags,m+=k.actualDuration,b+=k.treeBaseDuration,k=k.sibling;t.actualDuration=m,t.treeBaseDuration=b}else for(var O=t.child;O!==null;)u=jt(u,jt(O.lanes,O.childLanes)),d|=O.subtreeFlags,d|=O.flags,O.return=t,O=O.sibling;t.subtreeFlags|=d}return t.childLanes=u,i}function Tq(t,i,u){if(dH()&&(i.mode&Zt)!==Et&&(i.flags&Dt)===yt)return f4(i),ih(),i.flags|=er|Vi|Lr,!1;var d=ub(i);if(u!==null&&u.dehydrated!==null)if(t===null){if(!d)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(cH(i),mi(i),(i.mode&wt)!==Et){var m=u!==null;if(m){var b=i.child;b!==null&&(i.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(ih(),(i.flags&Dt)===yt&&(i.memoizedState=null),i.flags|=zt,mi(i),(i.mode&wt)!==Et){var k=u!==null;if(k){var O=i.child;O!==null&&(i.treeBaseDuration-=O.treeBaseDuration)}}return!1}else return d4(),!0}function FO(t,i,u){var d=i.pendingProps;switch(Bw(i),i.tag){case S:case Z:case H:case v:case N:case T:case D:case V:case M:case $:return mi(i),null;case y:{var m=i.type;return Il(m)&&rb(i),mi(i),null}case E:{var b=i.stateNode;if(sh(i),zw(i),TC(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),t===null||t.child===null){var k=ub(i);if(k)mh(i);else if(t!==null){var O=t.memoizedState;(!O.isDehydrated||(i.flags&er)!==yt)&&(i.flags|=ma,d4())}}return v2(t,i),mi(i),null}case x:{wC(i);var A=P4(),z=i.type;if(t!==null&&i.stateNode!=null)PO(t,i,z,d,A),t.ref!==i.ref&&MO(i);else{if(!d){if(i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mi(i),null}var B=xC(),X=ub(i);if(X)sH(i,A,B)&&mh(i);else{var G=ZB(z,d,A,B,i);LO(G,i,!1,!1),i.stateNode=G,GB(G,z,d,A)&&mh(i)}i.ref!==null&&MO(i)}return mi(i),null}case R:{var ue=d;if(t&&i.stateNode!=null){var ce=t.memoizedProps;NO(t,i,ce,ue)}else{if(typeof ue!="string"&&i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Se=P4(),tt=xC(),bt=ub(i);bt?uH(i)&&mh(i):i.stateNode=XB(ue,Se,tt,i)}return mi(i),null}case I:{ch(i);var vt=i.memoizedState;if(t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){var an=Tq(t,i,vt);if(!an)return i.flags&Lr?i:null}if((i.flags&Dt)!==yt)return i.lanes=u,(i.mode&wt)!==Et&&XC(i),i;var en=vt!==null,ie=t!==null&&t.memoizedState!==null;if(en!==ie&&en){var Ee=i.child;if(Ee.flags|=Sl,(i.mode&Zt)!==Et){var ae=t===null&&(i.memoizedProps.unstable_avoidThisFallback!==!0||!te);ae||CC(Yo.current,I4)?RW():P2()}}var je=i.updateQueue;if(je!==null&&(i.flags|=zt),mi(i),(i.mode&wt)!==Et&&en){var nt=i.child;nt!==null&&(i.treeBaseDuration-=nt.treeBaseDuration)}return null}case C:return sh(i),v2(t,i),t===null&&qV(i.stateNode.containerInfo),mi(i),null;case F:var Xe=i.type._context;return Qw(Xe,i),mi(i),null;case ne:{var Tt=i.type;return Il(Tt)&&rb(i),mi(i),null}case ee:{ch(i);var Nt=i.memoizedState;if(Nt===null)return mi(i),null;var _n=(i.flags&Dt)!==yt,cn=Nt.rendering;if(cn===null)if(_n)m0(Nt,!1);else{var Tr=DW()&&(t===null||(t.flags&Dt)===yt);if(!Tr)for(var fn=i.child;fn!==null;){var yr=_b(fn);if(yr!==null){_n=!0,i.flags|=Dt,m0(Nt,!1);var Fi=yr.updateQueue;return Fi!==null&&(i.updateQueue=Fi,i.flags|=zt),i.subtreeFlags=yt,DH(i,u),cc(i,kC(Yo.current,i0)),i.child}fn=fn.sibling}Nt.tail!==null&&Zn()>rD()&&(i.flags|=Dt,_n=!0,m0(Nt,!1),i.lanes=sv)}else{if(!_n){var Si=_b(cn);if(Si!==null){i.flags|=Dt,_n=!0;var Za=Si.updateQueue;if(Za!==null&&(i.updateQueue=Za,i.flags|=zt),m0(Nt,!0),Nt.tail===null&&Nt.tailMode==="hidden"&&!cn.alternate&&!pi())return mi(i),null}else Zn()*2-Nt.renderingStartTime>rD()&&u!==Ai&&(i.flags|=Dt,_n=!0,m0(Nt,!1),i.lanes=sv)}if(Nt.isBackwards)cn.sibling=i.child,i.child=cn;else{var Xi=Nt.last;Xi!==null?Xi.sibling=cn:i.child=cn,Nt.last=cn}}if(Nt.tail!==null){var Ji=Nt.tail;Nt.rendering=Ji,Nt.tail=Ji.sibling,Nt.renderingStartTime=Zn(),Ji.sibling=null;var Ii=Yo.current;return _n?Ii=kC(Ii,i0):Ii=uh(Ii),cc(i,Ii),Ji}return mi(i),null}case oe:break;case J:case pe:{L2(i);var Ks=i.memoizedState,wh=Ks!==null;if(t!==null){var A0=t.memoizedState,ql=A0!==null;ql!==wh&&!L&&(i.flags|=Sl)}return!wh||(i.mode&Zt)===Et?mi(i):Mi(Hl,Ai)&&(mi(i),i.subtreeFlags&(Pn|zt)&&(i.flags|=Sl)),null}case ke:return null;case xe:return null}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rq(t,i,u){switch(Bw(i),i.tag){case y:{var d=i.type;Il(d)&&rb(i);var m=i.flags;return m&Lr?(i.flags=m&~Lr|Dt,(i.mode&wt)!==Et&&XC(i),i):null}case E:{i.stateNode,sh(i),zw(i),TC();var b=i.flags;return(b&Lr)!==yt&&(b&Dt)===yt?(i.flags=b&~Lr|Dt,i):null}case x:return wC(i),null;case I:{ch(i);var k=i.memoizedState;if(k!==null&&k.dehydrated!==null){if(i.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ih()}var O=i.flags;return O&Lr?(i.flags=O&~Lr|Dt,(i.mode&wt)!==Et&&XC(i),i):null}case ee:return ch(i),null;case C:return sh(i),null;case F:var A=i.type._context;return Qw(A,i),null;case J:case pe:return L2(i),null;case ke:return null;default:return null}}function IO(t,i,u){switch(Bw(i),i.tag){case y:{var d=i.type.childContextTypes;d!=null&&rb(i);break}case E:{i.stateNode,sh(i),zw(i),TC();break}case x:{wC(i);break}case C:sh(i);break;case I:ch(i);break;case ee:ch(i);break;case F:var m=i.type._context;Qw(m,i);break;case J:case pe:L2(i);break}}var zO=null;zO=new Set;var Kb=!1,vi=!1,Oq=typeof WeakSet=="function"?WeakSet:Set,ct=null,vh=null,gh=null;function Dq(t){vs(null,function(){throw t}),Ym()}var Aq=function(t,i){if(i.props=t.memoizedProps,i.state=t.memoizedState,t.mode&wt)try{Bl(),i.componentWillUnmount()}finally{Ul(t)}else i.componentWillUnmount()};function jO(t,i){try{pc(qr,t)}catch(u){zn(t,i,u)}}function g2(t,i,u){try{Aq(t,u)}catch(d){zn(t,i,d)}}function Mq(t,i,u){try{u.componentDidMount()}catch(d){zn(t,i,d)}}function $O(t,i){try{BO(t)}catch(u){zn(t,i,u)}}function yh(t,i){var u=t.ref;if(u!==null)if(typeof u=="function"){var d;try{if(Re&&Oe&&t.mode&wt)try{Bl(),d=u(null)}finally{Ul(t)}else d=u(null)}catch(m){zn(t,i,m)}typeof d=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else u.current=null}function Gb(t,i,u){try{u()}catch(d){zn(t,i,d)}}var UO=!1;function Lq(t,i){WB(t.containerInfo),ct=i,Pq();var u=UO;return UO=!1,u}function Pq(){for(;ct!==null;){var t=ct,i=t.child;(t.subtreeFlags&Lu)!==yt&&i!==null?(i.return=t,ct=i):Nq()}}function Nq(){for(;ct!==null;){var t=ct;Cn(t);try{Fq(t)}catch(u){zn(t,t.return,u)}Er();var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function Fq(t){var i=t.alternate,u=t.flags;if((u&ma)!==yt){switch(Cn(t),t.tag){case v:case N:case H:break;case y:{if(i!==null){var d=i.memoizedProps,m=i.memoizedState,b=t.stateNode;t.type===t.elementType&&!qf&&(b.props!==t.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(t)||"instance"),b.state!==t.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(t)||"instance"));var k=b.getSnapshotBeforeUpdate(t.elementType===t.type?d:Wo(t.type,d),m);{var O=zO;k===void 0&&!O.has(t.type)&&(O.add(t.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ft(t)))}b.__reactInternalSnapshotBeforeUpdate=k}break}case E:{{var A=t.stateNode;gV(A.containerInfo)}break}case x:case R:case C:case ne:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Er()}}function Go(t,i,u){var d=i.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next,k=b;do{if((k.tag&t)===t){var O=k.destroy;k.destroy=void 0,O!==void 0&&((t&hi)!==Ta?lp(i):(t&qr)!==Ta&&sp(i),(t&zl)!==Ta&&R0(!0),Gb(i,u,O),(t&zl)!==Ta&&R0(!1),(t&hi)!==Ta?s1():(t&qr)!==Ta&&Pu())}k=k.next}while(k!==b)}}function pc(t,i){var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next,b=m;do{if((b.tag&t)===t){(t&hi)!==Ta?l1(i):(t&qr)!==Ta&&u1(i);var k=b.create;(t&zl)!==Ta&&R0(!0),b.destroy=k(),(t&zl)!==Ta&&R0(!1),(t&hi)!==Ta?av():(t&qr)!==Ta&&c1();{var O=b.destroy;if(O!==void 0&&typeof O!="function"){var A=void 0;(b.tag&qr)!==yt?A="useLayoutEffect":(b.tag&zl)!==yt?A="useInsertionEffect":A="useEffect";var z=void 0;O===null?z=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof O.then=="function"?z=`
154
+
155
+ It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
156
+
157
+ `+A+`(() => {
158
+ async function fetchData() {
159
+ // You can await here
160
+ const response = await MyAPI.getData(someId);
161
+ // ...
162
+ }
163
+ fetchData();
164
+ }, [someId]); // Or [] if effect doesn't need props or state
165
+
166
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:z=" You returned: "+O,f("%s must not return anything besides a function, which is used for clean-up.%s",A,z)}}}b=b.next}while(b!==m)}}function Iq(t,i){if((i.flags&zt)!==yt)switch(i.tag){case V:{var u=i.stateNode.passiveEffectDuration,d=i.memoizedProps,m=d.id,b=d.onPostCommit,k=uO(),O=i.alternate===null?"mount":"update";sO()&&(O="nested-update"),typeof b=="function"&&b(m,O,u,k);var A=i.return;e:for(;A!==null;){switch(A.tag){case E:var z=A.stateNode;z.passiveEffectDuration+=u;break e;case V:var B=A.stateNode;B.passiveEffectDuration+=u;break e}A=A.return}break}}}function zq(t,i,u,d){if((u.flags&ei)!==yt)switch(u.tag){case v:case N:case H:{if(!vi)if(u.mode&wt)try{Bl(),pc(qr|Hr,u)}finally{Ul(u)}else pc(qr|Hr,u);break}case y:{var m=u.stateNode;if(u.flags&zt&&!vi)if(i===null)if(u.type===u.elementType&&!qf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidMount()}finally{Ul(u)}else m.componentDidMount();else{var b=u.elementType===u.type?i.memoizedProps:Wo(u.type,i.memoizedProps),k=i.memoizedState;if(u.type===u.elementType&&!qf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}finally{Ul(u)}else m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}var O=u.updateQueue;O!==null&&(u.type===u.elementType&&!qf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),x4(u,O,m));break}case E:{var A=u.updateQueue;if(A!==null){var z=null;if(u.child!==null)switch(u.child.tag){case x:z=u.child.stateNode;break;case y:z=u.child.stateNode;break}x4(u,A,z)}break}case x:{var B=u.stateNode;if(i===null&&u.flags&zt){var X=u.type,G=u.memoizedProps;rV(B,X,G)}break}case R:break;case C:break;case V:{{var ue=u.memoizedProps,ce=ue.onCommit,Se=ue.onRender,tt=u.stateNode.effectDuration,bt=uO(),vt=i===null?"mount":"update";sO()&&(vt="nested-update"),typeof Se=="function"&&Se(u.memoizedProps.id,vt,u.actualDuration,u.treeBaseDuration,u.actualStartTime,bt);{typeof ce=="function"&&ce(u.memoizedProps.id,vt,tt,bt),NW(u);var an=u.return;e:for(;an!==null;){switch(an.tag){case E:var en=an.stateNode;en.effectDuration+=tt;break e;case V:var ie=an.stateNode;ie.effectDuration+=tt;break e}an=an.return}}}break}case I:{Wq(t,u);break}case ee:case ne:case oe:case J:case pe:case xe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}vi||u.flags&ki&&BO(u)}function jq(t){switch(t.tag){case v:case N:case H:{if(t.mode&wt)try{Bl(),jO(t,t.return)}finally{Ul(t)}else jO(t,t.return);break}case y:{var i=t.stateNode;typeof i.componentDidMount=="function"&&Mq(t,t.return,i),$O(t,t.return);break}case x:{$O(t,t.return);break}}}function $q(t,i){for(var u=null,d=t;;){if(d.tag===x){if(u===null){u=d;try{var m=d.stateNode;i?pV(m):mV(d.stateNode,d.memoizedProps)}catch(k){zn(t,t.return,k)}}}else if(d.tag===R){if(u===null)try{var b=d.stateNode;i?hV(b):vV(b,d.memoizedProps)}catch(k){zn(t,t.return,k)}}else if(!((d.tag===J||d.tag===pe)&&d.memoizedState!==null&&d!==t)){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}function BO(t){var i=t.ref;if(i!==null){var u=t.stateNode,d;switch(t.tag){case x:d=u;break;default:d=u}if(typeof i=="function"){var m;if(t.mode&wt)try{Bl(),m=i(d)}finally{Ul(t)}else m=i(d);typeof m=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else i.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ft(t)),i.current=d}}function Uq(t){var i=t.alternate;i!==null&&(i.return=null),t.return=null}function VO(t){var i=t.alternate;i!==null&&(t.alternate=null,VO(i));{if(t.child=null,t.deletions=null,t.sibling=null,t.tag===x){var u=t.stateNode;u!==null&&ZV(u)}t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}}function Bq(t){for(var i=t.return;i!==null;){if(HO(i))return i;i=i.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function HO(t){return t.tag===x||t.tag===E||t.tag===C}function qO(t){var i=t;e:for(;;){for(;i.sibling===null;){if(i.return===null||HO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==x&&i.tag!==R&&i.tag!==ve;){if(i.flags&Pn||i.child===null||i.tag===C)continue e;i.child.return=i,i=i.child}if(!(i.flags&Pn))return i.stateNode}}function Vq(t){var i=Bq(t);switch(i.tag){case x:{var u=i.stateNode;i.flags&mn&&(WR(u),i.flags&=~mn);var d=qO(t);b2(t,d,u);break}case E:case C:{var m=i.stateNode.containerInfo,b=qO(t);y2(t,b,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function y2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?uV(u,b,i):lV(u,b)}else if(d!==C){var k=t.child;if(k!==null){y2(k,i,u);for(var O=k.sibling;O!==null;)y2(O,i,u),O=O.sibling}}}function b2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?sV(u,b,i):oV(u,b)}else if(d!==C){var k=t.child;if(k!==null){b2(k,i,u);for(var O=k.sibling;O!==null;)b2(O,i,u),O=O.sibling}}}var gi=null,Qo=!1;function Hq(t,i,u){{var d=i;e:for(;d!==null;){switch(d.tag){case x:{gi=d.stateNode,Qo=!1;break e}case E:{gi=d.stateNode.containerInfo,Qo=!0;break e}case C:{gi=d.stateNode.containerInfo,Qo=!0;break e}}d=d.return}if(gi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");WO(t,i,u),gi=null,Qo=!1}Uq(u)}function hc(t,i,u){for(var d=u.child;d!==null;)WO(t,i,d),d=d.sibling}function WO(t,i,u){switch(rv(u),u.tag){case x:vi||yh(u,i);case R:{{var d=gi,m=Qo;gi=null,hc(t,i,u),gi=d,Qo=m,gi!==null&&(Qo?fV(gi,u.stateNode):cV(gi,u.stateNode))}return}case ve:{gi!==null&&(Qo?dV(gi,u.stateNode):Dw(gi,u.stateNode));return}case C:{{var b=gi,k=Qo;gi=u.stateNode.containerInfo,Qo=!0,hc(t,i,u),gi=b,Qo=k}return}case v:case N:case $:case H:{if(!vi){var O=u.updateQueue;if(O!==null){var A=O.lastEffect;if(A!==null){var z=A.next,B=z;do{var X=B,G=X.destroy,ue=X.tag;G!==void 0&&((ue&zl)!==Ta?Gb(u,i,G):(ue&qr)!==Ta&&(sp(u),u.mode&wt?(Bl(),Gb(u,i,G),Ul(u)):Gb(u,i,G),Pu())),B=B.next}while(B!==z)}}}hc(t,i,u);return}case y:{if(!vi){yh(u,i);var ce=u.stateNode;typeof ce.componentWillUnmount=="function"&&g2(u,i,ce)}hc(t,i,u);return}case oe:{hc(t,i,u);return}case J:{if(u.mode&Zt){var Se=vi;vi=Se||u.memoizedState!==null,hc(t,i,u),vi=Se}else hc(t,i,u);break}default:{hc(t,i,u);return}}}function qq(t){t.memoizedState}function Wq(t,i){var u=i.memoizedState;if(u===null){var d=i.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var b=m.dehydrated;b!==null&&AV(b)}}}}function YO(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var u=t.stateNode;u===null&&(u=t.stateNode=new Oq),i.forEach(function(d){var m=BW.bind(null,t,d);if(!u.has(d)){if(u.add(d),Br)if(vh!==null&&gh!==null)T0(gh,vh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");d.then(m,m)}})}}function Yq(t,i,u){vh=u,gh=t,Cn(i),ZO(i,t),Cn(i),vh=null,gh=null}function Xo(t,i,u){var d=i.deletions;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];try{Hq(t,i,b)}catch(A){zn(b,i,A)}}var k=Ox();if(i.subtreeFlags&Ri)for(var O=i.child;O!==null;)Cn(O),ZO(O,t),O=O.sibling;Cn(k)}function ZO(t,i,u){var d=t.alternate,m=t.flags;switch(t.tag){case v:case N:case $:case H:{if(Xo(i,t),Vl(t),m&zt){try{Go(zl|Hr,t,t.return),pc(zl|Hr,t)}catch(Tt){zn(t,t.return,Tt)}if(t.mode&wt){try{Bl(),Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}Ul(t)}else try{Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}}return}case y:{Xo(i,t),Vl(t),m&ki&&d!==null&&yh(d,d.return);return}case x:{Xo(i,t),Vl(t),m&ki&&d!==null&&yh(d,d.return);{if(t.flags&mn){var b=t.stateNode;try{WR(b)}catch(Tt){zn(t,t.return,Tt)}}if(m&zt){var k=t.stateNode;if(k!=null){var O=t.memoizedProps,A=d!==null?d.memoizedProps:O,z=t.type,B=t.updateQueue;if(t.updateQueue=null,B!==null)try{iV(k,B,z,A,O,t)}catch(Tt){zn(t,t.return,Tt)}}}}return}case R:{if(Xo(i,t),Vl(t),m&zt){if(t.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var X=t.stateNode,G=t.memoizedProps,ue=d!==null?d.memoizedProps:G;try{aV(X,ue,G)}catch(Tt){zn(t,t.return,Tt)}}return}case E:{if(Xo(i,t),Vl(t),m&zt&&d!==null){var ce=d.memoizedState;if(ce.isDehydrated)try{DV(i.containerInfo)}catch(Tt){zn(t,t.return,Tt)}}return}case C:{Xo(i,t),Vl(t);return}case I:{Xo(i,t),Vl(t);var Se=t.child;if(Se.flags&Sl){var tt=Se.stateNode,bt=Se.memoizedState,vt=bt!==null;if(tt.isHidden=vt,vt){var an=Se.alternate!==null&&Se.alternate.memoizedState!==null;an||TW()}}if(m&zt){try{qq(t)}catch(Tt){zn(t,t.return,Tt)}YO(t)}return}case J:{var en=d!==null&&d.memoizedState!==null;if(t.mode&Zt){var ie=vi;vi=ie||en,Xo(i,t),vi=ie}else Xo(i,t);if(Vl(t),m&Sl){var Ee=t.stateNode,ae=t.memoizedState,je=ae!==null,nt=t;if(Ee.isHidden=je,je&&!en&&(nt.mode&Zt)!==Et){ct=nt;for(var Xe=nt.child;Xe!==null;)ct=Xe,Kq(Xe),Xe=Xe.sibling}$q(nt,je)}return}case ee:{Xo(i,t),Vl(t),m&zt&&YO(t);return}case oe:return;default:{Xo(i,t),Vl(t);return}}}function Vl(t){var i=t.flags;if(i&Pn){try{Vq(t)}catch(u){zn(t,t.return,u)}t.flags&=~Pn}i&va&&(t.flags&=~va)}function Zq(t,i,u){vh=u,gh=i,ct=t,KO(t,i,u),vh=null,gh=null}function KO(t,i,u){for(var d=(t.mode&Zt)!==Et;ct!==null;){var m=ct,b=m.child;if(m.tag===J&&d){var k=m.memoizedState!==null,O=k||Kb;if(O){S2(t,i,u);continue}else{var A=m.alternate,z=A!==null&&A.memoizedState!==null,B=z||vi,X=Kb,G=vi;Kb=O,vi=B,vi&&!G&&(ct=m,Gq(m));for(var ue=b;ue!==null;)ct=ue,KO(ue,i,u),ue=ue.sibling;ct=m,Kb=X,vi=G,S2(t,i,u);continue}}(m.subtreeFlags&ei)!==yt&&b!==null?(b.return=m,ct=b):S2(t,i,u)}}function S2(t,i,u){for(;ct!==null;){var d=ct;if((d.flags&ei)!==yt){var m=d.alternate;Cn(d);try{zq(i,m,d,u)}catch(k){zn(d,d.return,k)}Er()}if(d===t){ct=null;return}var b=d.sibling;if(b!==null){b.return=d.return,ct=b;return}ct=d.return}}function Kq(t){for(;ct!==null;){var i=ct,u=i.child;switch(i.tag){case v:case N:case $:case H:{if(i.mode&wt)try{Bl(),Go(qr,i,i.return)}finally{Ul(i)}else Go(qr,i,i.return);break}case y:{yh(i,i.return);var d=i.stateNode;typeof d.componentWillUnmount=="function"&&g2(i,i.return,d);break}case x:{yh(i,i.return);break}case J:{var m=i.memoizedState!==null;if(m){GO(t);continue}break}}u!==null?(u.return=i,ct=u):GO(t)}}function GO(t){for(;ct!==null;){var i=ct;if(i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Gq(t){for(;ct!==null;){var i=ct,u=i.child;if(i.tag===J){var d=i.memoizedState!==null;if(d){QO(t);continue}}u!==null?(u.return=i,ct=u):QO(t)}}function QO(t){for(;ct!==null;){var i=ct;Cn(i);try{jq(i)}catch(d){zn(i,i.return,d)}if(Er(),i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Qq(t,i,u,d){ct=i,Xq(i,t,u,d)}function Xq(t,i,u,d){for(;ct!==null;){var m=ct,b=m.child;(m.subtreeFlags&ga)!==yt&&b!==null?(b.return=m,ct=b):Jq(t,i,u,d)}}function Jq(t,i,u,d){for(;ct!==null;){var m=ct;if((m.flags&Vn)!==yt){Cn(m);try{eW(i,m,u,d)}catch(k){zn(m,m.return,k)}Er()}if(m===t){ct=null;return}var b=m.sibling;if(b!==null){b.return=m.return,ct=b;return}ct=m.return}}function eW(t,i,u,d){switch(i.tag){case v:case N:case H:{if(i.mode&wt){QC();try{pc(hi|Hr,i)}finally{GC(i)}}else pc(hi|Hr,i);break}}}function tW(t){ct=t,nW()}function nW(){for(;ct!==null;){var t=ct,i=t.child;if((ct.flags&dn)!==yt){var u=t.deletions;if(u!==null){for(var d=0;d<u.length;d++){var m=u[d];ct=m,aW(m,t)}{var b=t.alternate;if(b!==null){var k=b.child;if(k!==null){b.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}}ct=t}}(t.subtreeFlags&ga)!==yt&&i!==null?(i.return=t,ct=i):rW()}}function rW(){for(;ct!==null;){var t=ct;(t.flags&Vn)!==yt&&(Cn(t),iW(t),Er());var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function iW(t){switch(t.tag){case v:case N:case H:{t.mode&wt?(QC(),Go(hi|Hr,t,t.return),GC(t)):Go(hi|Hr,t,t.return);break}}}function aW(t,i){for(;ct!==null;){var u=ct;Cn(u),lW(u,i),Er();var d=u.child;d!==null?(d.return=u,ct=d):oW(t)}}function oW(t){for(;ct!==null;){var i=ct,u=i.sibling,d=i.return;if(VO(i),i===t){ct=null;return}if(u!==null){u.return=d,ct=u;return}ct=d}}function lW(t,i){switch(t.tag){case v:case N:case H:{t.mode&wt?(QC(),Go(hi,t,i),GC(t)):Go(hi,t,i);break}}}function sW(t){switch(t.tag){case v:case N:case H:{try{pc(qr|Hr,t)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;try{i.componentDidMount()}catch(u){zn(t,t.return,u)}break}}}function uW(t){switch(t.tag){case v:case N:case H:{try{pc(hi|Hr,t)}catch(i){zn(t,t.return,i)}break}}}function cW(t){switch(t.tag){case v:case N:case H:{try{Go(qr|Hr,t,t.return)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;typeof i.componentWillUnmount=="function"&&g2(t,t.return,i);break}}}function fW(t){switch(t.tag){case v:case N:case H:try{Go(hi|Hr,t,t.return)}catch(i){zn(t,t.return,i)}}}if(typeof Symbol=="function"&&Symbol.for){var v0=Symbol.for;v0("selector.component"),v0("selector.has_pseudo_class"),v0("selector.role"),v0("selector.test_id"),v0("selector.text")}var dW=[];function pW(){dW.forEach(function(t){return t()})}var hW=r.ReactCurrentActQueue;function mW(t){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,u=typeof jest<"u";return u&&i!==!1}}function XO(){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!t&&hW.current!==null&&f("The current testing environment is not configured to support act(...)"),t}}var vW=Math.ceil,E2=r.ReactCurrentDispatcher,x2=r.ReactCurrentOwner,yi=r.ReactCurrentBatchConfig,Jo=r.ReactCurrentActQueue,Zr=0,JO=1,bi=2,vo=4,qs=0,g0=1,Wf=2,Qb=3,y0=4,eD=5,w2=6,rn=Zr,Gi=null,ur=null,Kr=we,Hl=we,C2=ic(we),Gr=qs,b0=null,Xb=we,S0=we,Jb=we,E0=null,Ra=null,k2=0,tD=500,nD=1/0,gW=500,Ws=null;function x0(){nD=Zn()+gW}function rD(){return nD}var eS=!1,_2=null,bh=null,Yf=!1,mc=null,w0=we,T2=[],R2=null,yW=50,C0=0,O2=null,D2=!1,tS=!1,bW=50,Sh=0,nS=null,k0=An,rS=we,iD=!1;function iS(){return Gi}function Qi(){return(rn&(bi|vo))!==Zr?Zn():(k0!==An||(k0=Zn()),k0)}function vc(t){var i=t.mode;if((i&Zt)===Et)return kt;if((rn&bi)!==Zr&&Kr!==we)return wr(Kr);var u=mH()!==hH;if(u){if(yi.transition!==null){var d=yi.transition;d._updatedFibers||(d._updatedFibers=new Set),d._updatedFibers.add(t)}return rS===nn&&(rS=fv()),rS}var m=Ea();if(m!==nn)return m;var b=JB();return b}function SW(t){var i=t.mode;return(i&Zt)===Et?kt:Qx()}function Qr(t,i,u,d){HW(),iD&&f("useInsertionEffect must not schedule updates."),D2&&(tS=!0),Rs(t,u,d),(rn&bi)!==we&&t===Gi?YW(i):(Br&&vv(t,i,u),ZW(i),t===Gi&&((rn&bi)===Zr&&(S0=jt(S0,u)),Gr===y0&&gc(t,Kr)),Oa(t,d),u===kt&&rn===Zr&&(i.mode&Zt)===Et&&!Jo.isBatchingLegacy&&(x0(),r4()))}function EW(t,i,u){var d=t.current;d.lanes=i,Rs(t,i,u),Oa(t,u)}function xW(t){return(rn&bi)!==Zr}function Oa(t,i){var u=t.callbackNode;Zx(t,i);var d=yf(t,t===Gi?Kr:we);if(d===we){u!==null&&SD(u),t.callbackNode=null,t.callbackPriority=nn;return}var m=vr(d),b=t.callbackPriority;if(b===m&&!(Jo.current!==null&&u!==I2)){u==null&&b!==kt&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}u!=null&&SD(u);var k;if(m===kt)t.tag===ac?(Jo.isBatchingLegacy!==null&&(Jo.didScheduleLegacyUpdate=!0),QV(lD.bind(null,t))):n4(lD.bind(null,t)),Jo.current!==null?Jo.current.push(oc):tV(function(){(rn&(bi|vo))===Zr&&oc()}),k=null;else{var O;switch(wf(d)){case ti:O=ip;break;case Vr:O=Wi;break;case zo:O=ao;break;case Ef:O=xl;break;default:O=ao;break}k=z2(O,aD.bind(null,t))}t.callbackPriority=m,t.callbackNode=k}function aD(t,i){if(HH(),k0=An,rS=we,(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var u=t.callbackNode,d=Zs();if(d&&t.callbackNode!==u)return null;var m=yf(t,t===Gi?Kr:we);if(m===we)return null;var b=!Sf(t,m)&&!v1(t,m)&&!i,k=b?MW(t,m):oS(t,m);if(k!==qs){if(k===Wf){var O=uv(t);O!==we&&(m=O,k=A2(t,O))}if(k===g0){var A=b0;throw Zf(t,we),gc(t,m),Oa(t,Zn()),A}if(k===w2)gc(t,m);else{var z=!Sf(t,m),B=t.current.alternate;if(z&&!CW(B)){if(k=oS(t,m),k===Wf){var X=uv(t);X!==we&&(m=X,k=A2(t,X))}if(k===g0){var G=b0;throw Zf(t,we),gc(t,m),Oa(t,Zn()),G}}t.finishedWork=B,t.finishedLanes=m,wW(t,k,m)}}return Oa(t,Zn()),t.callbackNode===u?aD.bind(null,t):null}function A2(t,i){var u=E0;if(kr(t)){var d=Zf(t,i);d.flags|=er,HV(t.containerInfo)}var m=oS(t,i);if(m!==Wf){var b=Ra;Ra=u,b!==null&&oD(b)}return m}function oD(t){Ra===null?Ra=t:Ra.push.apply(Ra,t)}function wW(t,i,u){switch(i){case qs:case g0:throw new Error("Root did not complete. This is a bug in React.");case Wf:{Kf(t,Ra,Ws);break}case Qb:{if(gc(t,u),Rp(u)&&!ED()){var d=k2+tD-Zn();if(d>10){var m=yf(t,we);if(m!==we)break;var b=t.suspendedLanes;if(!Ts(b,u)){Qi(),hv(t,b);break}t.timeoutHandle=Rw(Kf.bind(null,t,Ra,Ws),d);break}}Kf(t,Ra,Ws);break}case y0:{if(gc(t,u),m1(u))break;if(!ED()){var k=h1(t,u),O=k,A=Zn()-O,z=VW(A)-A;if(z>10){t.timeoutHandle=Rw(Kf.bind(null,t,Ra,Ws),z);break}}Kf(t,Ra,Ws);break}case eD:{Kf(t,Ra,Ws);break}default:throw new Error("Unknown root exit status.")}}function CW(t){for(var i=t;;){if(i.flags&ff){var u=i.updateQueue;if(u!==null){var d=u.stores;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.getSnapshot,O=b.value;try{if(!ut(k(),O))return!1}catch{return!1}}}}var A=i.child;if(i.subtreeFlags&ff&&A!==null){A.return=i,i=A;continue}if(i===t)return!0;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}return!0}function gc(t,i){i=Uu(i,Jb),i=Uu(i,S0),pv(t,i)}function lD(t){if(qH(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");Zs();var i=yf(t,we);if(!Mi(i,kt))return Oa(t,Zn()),null;var u=oS(t,i);if(t.tag!==ac&&u===Wf){var d=uv(t);d!==we&&(i=d,u=A2(t,d))}if(u===g0){var m=b0;throw Zf(t,we),gc(t,i),Oa(t,Zn()),m}if(u===w2)throw new Error("Root did not complete. This is a bug in React.");var b=t.current.alternate;return t.finishedWork=b,t.finishedLanes=i,Kf(t,Ra,Ws),Oa(t,Zn()),null}function kW(t,i){i!==we&&(Bu(t,jt(i,kt)),Oa(t,Zn()),(rn&(bi|vo))===Zr&&(x0(),oc()))}function M2(t,i){var u=rn;rn|=JO;try{return t(i)}finally{rn=u,rn===Zr&&!Jo.isBatchingLegacy&&(x0(),r4())}}function _W(t,i,u,d,m){var b=Ea(),k=yi.transition;try{return yi.transition=null,Cr(ti),t(i,u,d,m)}finally{Cr(b),yi.transition=k,rn===Zr&&x0()}}function Ys(t){mc!==null&&mc.tag===ac&&(rn&(bi|vo))===Zr&&Zs();var i=rn;rn|=JO;var u=yi.transition,d=Ea();try{return yi.transition=null,Cr(ti),t?t():void 0}finally{Cr(d),yi.transition=u,rn=i,(rn&(bi|vo))===Zr&&oc()}}function sD(){return(rn&(bi|vo))!==Zr}function aS(t,i){Pi(C2,Hl,t),Hl=jt(Hl,i)}function L2(t){Hl=C2.current,Li(C2,t)}function Zf(t,i){t.finishedWork=null,t.finishedLanes=we;var u=t.timeoutHandle;if(u!==Ow&&(t.timeoutHandle=Ow,eV(u)),ur!==null)for(var d=ur.return;d!==null;){var m=d.alternate;IO(m,d),d=d.return}Gi=t;var b=Gf(t.current,null);return ur=b,Kr=Hl=i,Gr=qs,b0=null,Xb=we,S0=we,Jb=we,E0=null,Ra=null,bH(),qo.discardPendingWarnings(),b}function uD(t,i){do{var u=ur;try{if(pb(),j4(),Er(),x2.current=null,u===null||u.return===null){Gr=g0,b0=i,ur=null;return}if(Re&&u.mode&wt&&qb(u,!0),We)if(ys(),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;f1(u,d,Kr)}else up(u,i,Kr);GH(t,u.return,u,i,Kr),pD(u)}catch(m){i=m,ur===u&&u!==null?(u=u.return,ur=u):u=ur;continue}return}while(!0)}function cD(){var t=E2.current;return E2.current=$b,t===null?$b:t}function fD(t){E2.current=t}function TW(){k2=Zn()}function _0(t){Xb=jt(t,Xb)}function RW(){Gr===qs&&(Gr=Qb)}function P2(){(Gr===qs||Gr===Qb||Gr===Wf)&&(Gr=y0),Gi!==null&&(bf(Xb)||bf(S0))&&gc(Gi,Kr)}function OW(t){Gr!==y0&&(Gr=Wf),E0===null?E0=[t]:E0.push(t)}function DW(){return Gr===qs}function oS(t,i){var u=rn;rn|=bi;var d=cD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(T0(t,Kr),m.clear()),Ap(t,i)}Ws=gv(),Zf(t,i)}Ha(i);do try{AW();break}catch(b){uD(t,b)}while(!0);if(pb(),rn=u,fD(d),ur!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Fu(),Gi=null,Kr=we,Gr}function AW(){for(;ur!==null;)dD(ur)}function MW(t,i){var u=rn;rn|=bi;var d=cD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(T0(t,Kr),m.clear()),Ap(t,i)}Ws=gv(),x0(),Zf(t,i)}Ha(i);do try{LW();break}catch(b){uD(t,b)}while(!0);return pb(),fD(d),rn=u,ur!==null?(hf(),qs):(Fu(),Gi=null,Kr=we,Gr)}function LW(){for(;ur!==null&&!rp();)dD(ur)}function dD(t){var i=t.alternate;Cn(t);var u;(t.mode&wt)!==Et?(KC(t),u=N2(i,t,Hl),qb(t,!0)):u=N2(i,t,Hl),Er(),t.memoizedProps=t.pendingProps,u===null?pD(t):ur=u,x2.current=null}function pD(t){var i=t;do{var u=i.alternate,d=i.return;if((i.flags&Vi)===yt){Cn(i);var m=void 0;if((i.mode&wt)===Et?m=FO(u,i,Hl):(KC(i),m=FO(u,i,Hl),qb(i,!1)),Er(),m!==null){ur=m;return}}else{var b=Rq(u,i);if(b!==null){b.flags&=n1,ur=b;return}if((i.mode&wt)!==Et){qb(i,!1);for(var k=i.actualDuration,O=i.child;O!==null;)k+=O.actualDuration,O=O.sibling;i.actualDuration=k}if(d!==null)d.flags|=Vi,d.subtreeFlags=yt,d.deletions=null;else{Gr=w2,ur=null;return}}var A=i.sibling;if(A!==null){ur=A;return}i=d,ur=i}while(i!==null);Gr===qs&&(Gr=eD)}function Kf(t,i,u){var d=Ea(),m=yi.transition;try{yi.transition=null,Cr(ti),PW(t,i,u,d)}finally{yi.transition=m,Cr(d)}return null}function PW(t,i,u,d){do Zs();while(mc!==null);if(qW(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var m=t.finishedWork,b=t.finishedLanes;if(op(b),m===null)return iv(),null;if(b===we&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),t.finishedWork=null,t.finishedLanes=we,m===t.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");t.callbackNode=null,t.callbackPriority=nn;var k=jt(m.lanes,m.childLanes);mv(t,k),t===Gi&&(Gi=null,ur=null,Kr=we),((m.subtreeFlags&ga)!==yt||(m.flags&ga)!==yt)&&(Yf||(Yf=!0,R2=u,z2(ao,function(){return Zs(),null})));var O=(m.subtreeFlags&(Lu|Ri|ei|ga))!==yt,A=(m.flags&(Lu|Ri|ei|ga))!==yt;if(O||A){var z=yi.transition;yi.transition=null;var B=Ea();Cr(ti);var X=rn;rn|=vo,x2.current=null,Lq(t,m),cO(),Yq(t,m,b),YB(t.containerInfo),t.current=m,d1(b),Zq(m,t,b),Nu(),a1(),rn=X,Cr(B),yi.transition=z}else t.current=m,cO();var G=Yf;if(Yf?(Yf=!1,mc=t,w0=b):(Sh=0,nS=null),k=t.pendingLanes,k===we&&(bh=null),G||gD(t.current,!1),No(m.stateNode,d),Br&&t.memoizedUpdaters.clear(),pW(),Oa(t,Zn()),i!==null)for(var ue=t.onRecoverableError,ce=0;ce<i.length;ce++){var Se=i[ce],tt=Se.stack,bt=Se.digest;ue(Se.value,{componentStack:tt,digest:bt})}if(eS){eS=!1;var vt=_2;throw _2=null,vt}return Mi(w0,kt)&&t.tag!==ac&&Zs(),k=t.pendingLanes,Mi(k,kt)?(VH(),t===O2?C0++:(C0=0,O2=t)):C0=0,oc(),iv(),null}function Zs(){if(mc!==null){var t=wf(w0),i=Jx(zo,t),u=yi.transition,d=Ea();try{return yi.transition=null,Cr(i),FW()}finally{Cr(d),yi.transition=u}}return!1}function NW(t){T2.push(t),Yf||(Yf=!0,z2(ao,function(){return Zs(),null}))}function FW(){if(mc===null)return!1;var t=R2;R2=null;var i=mc,u=w0;if(mc=null,w0=we,(rn&(bi|vo))!==Zr)throw new Error("Cannot flush passive effects while already rendering.");D2=!0,tS=!1,p1(u);var d=rn;rn|=vo,tW(i.current),Qq(i,i.current,u,t);{var m=T2;T2=[];for(var b=0;b<m.length;b++){var k=m[b];Iq(i,k)}}pf(),gD(i.current,!0),rn=d,oc(),tS?i===nS?Sh++:(Sh=0,nS=i):Sh=0,D2=!1,tS=!1,Cl(i);{var O=i.current.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}return!0}function hD(t){return bh!==null&&bh.has(t)}function IW(t){bh===null?bh=new Set([t]):bh.add(t)}function zW(t){eS||(eS=!0,_2=t)}var jW=zW;function mD(t,i,u){var d=Hf(u,i),m=dO(t,d,kt),b=sc(t,m,kt),k=Qi();b!==null&&(Rs(b,kt,k),Oa(b,k))}function zn(t,i,u){if(Dq(u),R0(!1),t.tag===E){mD(t,t,u);return}var d=null;for(d=i;d!==null;){if(d.tag===E){mD(d,t,u);return}else if(d.tag===y){var m=d.type,b=d.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!hD(b)){var k=Hf(u,t),O=t2(d,k,kt),A=sc(d,O,kt),z=Qi();A!==null&&(Rs(A,kt,z),Oa(A,z));return}}d=d.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
167
+
168
+ Error message:
169
+
170
+ %s`,u)}function $W(t,i,u){var d=t.pingCache;d!==null&&d.delete(i);var m=Qi();hv(t,u),KW(t),Gi===t&&Ts(Kr,u)&&(Gr===y0||Gr===Qb&&Rp(Kr)&&Zn()-k2<tD?Zf(t,we):Jb=jt(Jb,u)),Oa(t,m)}function vD(t,i){i===nn&&(i=SW(t));var u=Qi(),d=_a(t,i);d!==null&&(Rs(d,i,u),Oa(d,u))}function UW(t){var i=t.memoizedState,u=nn;i!==null&&(u=i.retryLane),vD(t,u)}function BW(t,i){var u=nn,d;switch(t.tag){case I:d=t.stateNode;var m=t.memoizedState;m!==null&&(u=m.retryLane);break;case ee:d=t.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(i),vD(t,u)}function VW(t){return t<120?120:t<480?480:t<1080?1080:t<1920?1920:t<3e3?3e3:t<4320?4320:vW(t/1960)*1960}function HW(){if(C0>yW)throw C0=0,O2=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Sh>bW&&(Sh=0,nS=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function qW(){qo.flushLegacyContextWarning(),qo.flushPendingUnsafeLifecycleWarnings()}function gD(t,i){Cn(t),lS(t,Ti,cW),i&&lS(t,gs,fW),lS(t,Ti,sW),i&&lS(t,gs,uW),Er()}function lS(t,i,u){for(var d=t,m=null;d!==null;){var b=d.subtreeFlags&i;d!==m&&d.child!==null&&b!==yt?d=d.child:((d.flags&i)!==yt&&u(d),d.sibling!==null?d=d.sibling:d=m=d.return)}}var sS=null;function yD(t){{if((rn&bi)!==Zr||!(t.mode&Zt))return;var i=t.tag;if(i!==S&&i!==E&&i!==y&&i!==v&&i!==N&&i!==$&&i!==H)return;var u=Ft(t)||"ReactComponent";if(sS!==null){if(sS.has(u))return;sS.add(u)}else sS=new Set([u]);var d=hr;try{Cn(t),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{d?Cn(t):Er()}}}var N2;{var WW=null;N2=function(t,i,u){var d=_D(WW,i);try{return AO(t,i,u)}catch(b){if(aH()||b!==null&&typeof b=="object"&&typeof b.then=="function")throw b;if(pb(),j4(),IO(t,i),_D(i,d),i.mode&wt&&KC(i),vs(null,AO,null,t,i,u),Wx()){var m=Ym();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof b=="object"&&b!==null&&!b._suppressLogging&&(b._suppressLogging=!0)}throw b}}}var bD=!1,F2;F2=new Set;function YW(t){if(fa&&!$H())switch(t.tag){case v:case N:case H:{var i=ur&&Ft(ur)||"Unknown",u=i;if(!F2.has(u)){F2.add(u);var d=Ft(t)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",d,i,i)}break}case y:{bD||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),bD=!0);break}}}function T0(t,i){if(Br){var u=t.memoizedUpdaters;u.forEach(function(d){vv(t,d,i)})}}var I2={};function z2(t,i){{var u=Jo.current;return u!==null?(u.push(i),I2):np(t,i)}}function SD(t){if(t!==I2)return i1(t)}function ED(){return Jo.current!==null}function ZW(t){{if(t.mode&Zt){if(!XO())return}else if(!mW()||rn!==Zr||t.tag!==v&&t.tag!==N&&t.tag!==H)return;if(Jo.current===null){var i=hr;try{Cn(t),f(`An update to %s inside a test was not wrapped in act(...).
171
+
172
+ When testing, code that causes React state updates should be wrapped into act(...):
173
+
174
+ act(() => {
175
+ /* fire events that update state */
176
+ });
177
+ /* assert on the output */
178
+
179
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ft(t))}finally{i?Cn(t):Er()}}}}function KW(t){t.tag!==ac&&XO()&&Jo.current===null&&f(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
180
+
181
+ When testing, code that resolves suspended data should be wrapped into act(...):
182
+
183
+ act(() => {
184
+ /* finish loading suspended data */
185
+ });
186
+ /* assert on the output */
187
+
188
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function R0(t){iD=t}var go=null,Eh=null,GW=function(t){go=t};function xh(t){{if(go===null)return t;var i=go(t);return i===void 0?t:i.current}}function j2(t){return xh(t)}function $2(t){{if(go===null)return t;var i=go(t);if(i===void 0){if(t!=null&&typeof t.render=="function"){var u=xh(t.render);if(t.render!==u){var d={$$typeof:St,render:u};return t.displayName!==void 0&&(d.displayName=t.displayName),d}}return t}return i.current}}function xD(t,i){{if(go===null)return!1;var u=t.elementType,d=i.type,m=!1,b=typeof d=="object"&&d!==null?d.$$typeof:null;switch(t.tag){case y:{typeof d=="function"&&(m=!0);break}case v:{(typeof d=="function"||b===xt)&&(m=!0);break}case N:{(b===St||b===xt)&&(m=!0);break}case $:case H:{(b===Vt||b===xt)&&(m=!0);break}default:return!1}if(m){var k=go(u);if(k!==void 0&&k===go(d))return!0}return!1}}function wD(t){{if(go===null||typeof WeakSet!="function")return;Eh===null&&(Eh=new WeakSet),Eh.add(t)}}var QW=function(t,i){{if(go===null)return;var u=i.staleFamilies,d=i.updatedFamilies;Zs(),Ys(function(){U2(t.current,d,u)})}},XW=function(t,i){{if(t.context!==Wa)return;Zs(),Ys(function(){O0(i,t,null,null)})}};function U2(t,i,u){{var d=t.alternate,m=t.child,b=t.sibling,k=t.tag,O=t.type,A=null;switch(k){case v:case H:case y:A=O;break;case N:A=O.render;break}if(go===null)throw new Error("Expected resolveFamily to be set during hot reload.");var z=!1,B=!1;if(A!==null){var X=go(A);X!==void 0&&(u.has(X)?B=!0:i.has(X)&&(k===y?B=!0:z=!0))}if(Eh!==null&&(Eh.has(t)||d!==null&&Eh.has(d))&&(B=!0),B&&(t._debugNeedsRemount=!0),B||z){var G=_a(t,kt);G!==null&&Qr(G,t,kt,An)}m!==null&&!B&&U2(m,i,u),b!==null&&U2(b,i,u)}}var JW=function(t,i){{var u=new Set,d=new Set(i.map(function(m){return m.current}));return B2(t.current,d,u),u}};function B2(t,i,u){{var d=t.child,m=t.sibling,b=t.tag,k=t.type,O=null;switch(b){case v:case H:case y:O=k;break;case N:O=k.render;break}var A=!1;O!==null&&i.has(O)&&(A=!0),A?eY(t,u):d!==null&&B2(d,i,u),m!==null&&B2(m,i,u)}}function eY(t,i){{var u=tY(t,i);if(u)return;for(var d=t;;){switch(d.tag){case x:i.add(d.stateNode);return;case C:i.add(d.stateNode.containerInfo);return;case E:i.add(d.stateNode.containerInfo);return}if(d.return===null)throw new Error("Expected to reach root first.");d=d.return}}}function tY(t,i){for(var u=t,d=!1;;){if(u.tag===x)d=!0,i.add(u.stateNode);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)return d;for(;u.sibling===null;){if(u.return===null||u.return===t)return d;u=u.return}u.sibling.return=u.return,u=u.sibling}return!1}var V2;{V2=!1;try{var CD=Object.preventExtensions({})}catch{V2=!0}}function nY(t,i,u,d){this.tag=t,this.key=u,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=i,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=d,this.flags=yt,this.subtreeFlags=yt,this.deletions=null,this.lanes=we,this.childLanes=we,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!V2&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ya=function(t,i,u,d){return new nY(t,i,u,d)};function H2(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function rY(t){return typeof t=="function"&&!H2(t)&&t.defaultProps===void 0}function iY(t){if(typeof t=="function")return H2(t)?y:v;if(t!=null){var i=t.$$typeof;if(i===St)return N;if(i===Vt)return $}return S}function Gf(t,i){var u=t.alternate;u===null?(u=Ya(t.tag,i,t.key,t.mode),u.elementType=t.elementType,u.type=t.type,u.stateNode=t.stateNode,u._debugSource=t._debugSource,u._debugOwner=t._debugOwner,u._debugHookTypes=t._debugHookTypes,u.alternate=t,t.alternate=u):(u.pendingProps=i,u.type=t.type,u.flags=yt,u.subtreeFlags=yt,u.deletions=null,u.actualDuration=0,u.actualStartTime=-1),u.flags=t.flags&Ur,u.childLanes=t.childLanes,u.lanes=t.lanes,u.child=t.child,u.memoizedProps=t.memoizedProps,u.memoizedState=t.memoizedState,u.updateQueue=t.updateQueue;var d=t.dependencies;switch(u.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},u.sibling=t.sibling,u.index=t.index,u.ref=t.ref,u.selfBaseDuration=t.selfBaseDuration,u.treeBaseDuration=t.treeBaseDuration,u._debugNeedsRemount=t._debugNeedsRemount,u.tag){case S:case v:case H:u.type=xh(t.type);break;case y:u.type=j2(t.type);break;case N:u.type=$2(t.type);break}return u}function aY(t,i){t.flags&=Ur|Pn;var u=t.alternate;if(u===null)t.childLanes=we,t.lanes=i,t.child=null,t.subtreeFlags=yt,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0;else{t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.subtreeFlags=yt,t.deletions=null,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,t.type=u.type;var d=u.dependencies;t.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},t.selfBaseDuration=u.selfBaseDuration,t.treeBaseDuration=u.treeBaseDuration}return t}function oY(t,i,u){var d;return t===ab?(d=Zt,i===!0&&(d|=Kn,d|=ba)):d=Et,Br&&(d|=wt),Ya(E,null,null,d)}function q2(t,i,u,d,m,b){var k=S,O=t;if(typeof t=="function")H2(t)?(k=y,O=j2(O)):O=xh(O);else if(typeof t=="string")k=x;else e:switch(t){case Ia:return yc(u.children,m,b,i);case cl:k=D,m|=Kn,(m&Zt)!==Et&&(m|=ba);break;case W:return lY(u,m,b,i);case Bt:return sY(u,m,b,i);case ln:return uY(u,m,b,i);case Bn:return kD(u,m,b,i);case ci:case Dr:case fl:case Ad:case Un:default:{if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Pe:k=F;break e;case Ke:k=M;break e;case St:k=N,O=$2(O);break e;case Vt:k=$;break e;case xt:k=Z,O=null;break e}var A="";{(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=d?Ft(d):null;z&&(A+=`
189
+
190
+ Check the render method of \``+z+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(t==null?t:typeof t)+"."+A))}}var B=Ya(k,u,i,m);return B.elementType=t,B.type=O,B.lanes=b,B._debugOwner=d,B}function W2(t,i,u){var d=null;d=t._owner;var m=t.type,b=t.key,k=t.props,O=q2(m,b,k,d,i,u);return O._debugSource=t._source,O._debugOwner=t._owner,O}function yc(t,i,u,d){var m=Ya(T,t,d,i);return m.lanes=u,m}function lY(t,i,u,d){typeof t.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id);var m=Ya(V,t,d,i|wt);return m.elementType=W,m.lanes=u,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function sY(t,i,u,d){var m=Ya(I,t,d,i);return m.elementType=Bt,m.lanes=u,m}function uY(t,i,u,d){var m=Ya(ee,t,d,i);return m.elementType=ln,m.lanes=u,m}function kD(t,i,u,d){var m=Ya(J,t,d,i);m.elementType=Bn,m.lanes=u;var b={isHidden:!1};return m.stateNode=b,m}function Y2(t,i,u){var d=Ya(R,t,null,i);return d.lanes=u,d}function cY(){var t=Ya(x,null,null,Et);return t.elementType="DELETED",t}function fY(t){var i=Ya(ve,null,null,Et);return i.stateNode=t,i}function Z2(t,i,u){var d=t.children!==null?t.children:[],m=Ya(C,d,t.key,i);return m.lanes=u,m.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},m}function _D(t,i){return t===null&&(t=Ya(S,null,null,Et)),t.tag=i.tag,t.key=i.key,t.elementType=i.elementType,t.type=i.type,t.stateNode=i.stateNode,t.return=i.return,t.child=i.child,t.sibling=i.sibling,t.index=i.index,t.ref=i.ref,t.pendingProps=i.pendingProps,t.memoizedProps=i.memoizedProps,t.updateQueue=i.updateQueue,t.memoizedState=i.memoizedState,t.dependencies=i.dependencies,t.mode=i.mode,t.flags=i.flags,t.subtreeFlags=i.subtreeFlags,t.deletions=i.deletions,t.lanes=i.lanes,t.childLanes=i.childLanes,t.alternate=i.alternate,t.actualDuration=i.actualDuration,t.actualStartTime=i.actualStartTime,t.selfBaseDuration=i.selfBaseDuration,t.treeBaseDuration=i.treeBaseDuration,t._debugSource=i._debugSource,t._debugOwner=i._debugOwner,t._debugNeedsRemount=i._debugNeedsRemount,t._debugHookTypes=i._debugHookTypes,t}function dY(t,i,u,d,m){this.tag=i,this.containerInfo=t,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ow,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=nn,this.eventTimes=Dp(we),this.expirationTimes=Dp(An),this.pendingLanes=we,this.suspendedLanes=we,this.pingedLanes=we,this.expiredLanes=we,this.mutableReadLanes=we,this.finishedLanes=we,this.entangledLanes=we,this.entanglements=Dp(we),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],k=0;k<Fn;k++)b.push(new Set)}switch(i){case ab:this._debugRootType=u?"hydrateRoot()":"createRoot()";break;case ac:this._debugRootType=u?"hydrate()":"render()";break}}function TD(t,i,u,d,m,b,k,O,A,z){var B=new dY(t,i,u,O,A),X=oY(i,b);B.current=X,X.stateNode=B;{var G={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null};X.memoizedState=G}return nC(X),B}var K2="18.2.0";function pY(t,i,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Tn(d),{$$typeof:Ui,key:d==null?null:""+d,children:t,containerInfo:i,implementation:u}}var G2,Q2;G2=!1,Q2={};function RD(t){if(!t)return Wa;var i=ha(t),u=GV(i);if(i.tag===y){var d=i.type;if(Il(d))return e4(i,d,u)}return u}function hY(t,i){{var u=ha(t);if(u===void 0){if(typeof t.render=="function")throw new Error("Unable to find node on an unmounted component.");var d=Object.keys(t).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+d)}var m=ya(u);if(m===null)return null;if(m.mode&Kn){var b=Ft(u)||"Component";if(!Q2[b]){Q2[b]=!0;var k=hr;try{Cn(m),u.mode&Kn?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b)}finally{k?Cn(k):Er()}}}return m.stateNode}}function OD(t,i,u,d,m,b,k,O){var A=!1,z=null;return TD(t,i,A,z,u,d,m,b,k)}function DD(t,i,u,d,m,b,k,O,A,z){var B=!0,X=TD(u,d,B,t,m,b,k,O,A);X.context=RD(null);var G=X.current,ue=Qi(),ce=vc(G),Se=Vs(ue,ce);return Se.callback=i??null,sc(G,Se,ce),EW(X,ce,ue),X}function O0(t,i,u,d){o1(i,t);var m=i.current,b=Qi(),k=vc(m);bs(k);var O=RD(u);i.context===null?i.context=O:i.pendingContext=O,fa&&hr!==null&&!G2&&(G2=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
191
+
192
+ Check the render method of %s.`,Ft(hr)||"Unknown"));var A=Vs(b,k);A.payload={element:t},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d),A.callback=d);var z=sc(m,A,k);return z!==null&&(Qr(z,m,k,b),yb(z,m,k)),k}function uS(t){var i=t.current;if(!i.child)return null;switch(i.child.tag){case x:return i.child.stateNode;default:return i.child.stateNode}}function mY(t){switch(t.tag){case E:{var i=t.stateNode;if(kr(i)){var u=Kx(i);kW(i,u)}break}case I:{Ys(function(){var m=_a(t,kt);if(m!==null){var b=Qi();Qr(m,t,kt,b)}});var d=kt;X2(t,d);break}}}function AD(t,i){var u=t.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=y1(u.retryLane,i))}function X2(t,i){AD(t,i);var u=t.alternate;u&&AD(u,i)}function vY(t){if(t.tag===I){var i=Iu,u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}X2(t,i)}}function gY(t){if(t.tag===I){var i=vc(t),u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}X2(t,i)}}function MD(t){var i=r1(t);return i===null?null:i.stateNode}var LD=function(t){return null};function yY(t){return LD(t)}var PD=function(t){return!1};function bY(t){return PD(t)}var ND=null,FD=null,ID=null,zD=null,jD=null,$D=null,UD=null,BD=null,VD=null;{var HD=function(t,i,u){var d=i[u],m=Ar(t)?t.slice():Xt({},t);return u+1===i.length?(Ar(m)?m.splice(d,1):delete m[d],m):(m[d]=HD(t[d],i,u+1),m)},qD=function(t,i){return HD(t,i,0)},WD=function(t,i,u,d){var m=i[d],b=Ar(t)?t.slice():Xt({},t);if(d+1===i.length){var k=u[d];b[k]=b[m],Ar(b)?b.splice(m,1):delete b[m]}else b[m]=WD(t[m],i,u,d+1);return b},YD=function(t,i,u){if(i.length!==u.length){c("copyWithRename() expects paths of the same length");return}else for(var d=0;d<u.length-1;d++)if(i[d]!==u[d]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return WD(t,i,u,0)},ZD=function(t,i,u,d){if(u>=i.length)return d;var m=i[u],b=Ar(t)?t.slice():Xt({},t);return b[m]=ZD(t[m],i,u+1,d),b},KD=function(t,i,u){return ZD(t,i,0,u)},J2=function(t,i){for(var u=t.memoizedState;u!==null&&i>0;)u=u.next,i--;return u};ND=function(t,i,u,d){var m=J2(t,i);if(m!==null){var b=KD(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},FD=function(t,i,u){var d=J2(t,i);if(d!==null){var m=qD(d.memoizedState,u);d.memoizedState=m,d.baseState=m,t.memoizedProps=Xt({},t.memoizedProps);var b=_a(t,kt);b!==null&&Qr(b,t,kt,An)}},ID=function(t,i,u,d){var m=J2(t,i);if(m!==null){var b=YD(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},zD=function(t,i,u){t.pendingProps=KD(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},jD=function(t,i){t.pendingProps=qD(t.memoizedProps,i),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var u=_a(t,kt);u!==null&&Qr(u,t,kt,An)},$D=function(t,i,u){t.pendingProps=YD(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},UD=function(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)},BD=function(t){LD=t},VD=function(t){PD=t}}function SY(t){var i=ya(t);return i===null?null:i.stateNode}function EY(t){return null}function xY(){return hr}function wY(t){var i=t.findFiberByHostInstance,u=r.ReactCurrentDispatcher;return nv({bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:ND,overrideHookStateDeletePath:FD,overrideHookStateRenamePath:ID,overrideProps:zD,overridePropsDeletePath:jD,overridePropsRenamePath:$D,setErrorHandler:BD,setSuspenseHandler:VD,scheduleUpdate:UD,currentDispatcherRef:u,findHostInstanceByFiber:SY,findFiberByHostInstance:i||EY,findHostInstancesForRefresh:JW,scheduleRefresh:QW,scheduleRoot:XW,setRefreshHandler:GW,getCurrentFiber:xY,reconcilerVersion:K2})}var GD=typeof reportError=="function"?reportError:function(t){console.error(t)};function ek(t){this._internalRoot=t}cS.prototype.render=ek.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):fS(arguments[1])?f("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var u=i.containerInfo;if(u.nodeType!==mr){var d=MD(i.current);d&&d.parentNode!==u&&f("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}O0(t,i,null,null)},cS.prototype.unmount=ek.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;sD()&&f("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ys(function(){O0(null,t,null,null)}),KR(i)}};function CY(t,i){if(!fS(t))throw new Error("createRoot(...): Target container is not a DOM element.");QD(t);var u=!1,d=!1,m="",b=GD;i!=null&&(i.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===ul&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
193
+
194
+ let root = createRoot(domContainer);
195
+ root.render(<App />);`),i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.transitionCallbacks!==void 0&&i.transitionCallbacks);var k=OD(t,ab,null,u,d,m,b);X1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return Iv(O),new ek(k)}function cS(t){this._internalRoot=t}function kY(t){t&&_1(t)}cS.prototype.unstable_scheduleHydration=kY;function _Y(t,i,u){if(!fS(t))throw new Error("hydrateRoot(...): Target container is not a DOM element.");QD(t),i===void 0&&f("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=u??null,m=u!=null&&u.hydratedSources||null,b=!1,k=!1,O="",A=GD;u!=null&&(u.unstable_strictMode===!0&&(b=!0),u.identifierPrefix!==void 0&&(O=u.identifierPrefix),u.onRecoverableError!==void 0&&(A=u.onRecoverableError));var z=DD(i,null,t,ab,d,b,k,O,A);if(X1(z.current,t),Iv(t),m)for(var B=0;B<m.length;B++){var X=m[B];PH(z,X)}return new cS(z)}function fS(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||!ye))}function D0(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||t.nodeType===mr&&t.nodeValue===" react-mount-point-unstable "))}function QD(t){t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Zv(t)&&(t._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var TY=r.ReactCurrentOwner,XD;XD=function(t){if(t._reactRootContainer&&t.nodeType!==mr){var i=MD(t._reactRootContainer.current);i&&i.parentNode!==t&&f("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!t._reactRootContainer,d=tk(t),m=!!(d&&rc(d));m&&!u&&f("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function tk(t){return t?t.nodeType===Ua?t.documentElement:t.firstChild:null}function JD(){}function RY(t,i,u,d,m){if(m){if(typeof d=="function"){var b=d;d=function(){var G=uS(k);b.call(G)}}var k=DD(i,d,t,ac,null,!1,!1,"",JD);t._reactRootContainer=k,X1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return Iv(O),Ys(),k}else{for(var A;A=t.lastChild;)t.removeChild(A);if(typeof d=="function"){var z=d;d=function(){var G=uS(B);z.call(G)}}var B=OD(t,ac,null,!1,!1,"",JD);t._reactRootContainer=B,X1(B.current,t);var X=t.nodeType===mr?t.parentNode:t;return Iv(X),Ys(function(){O0(i,B,u,d)}),B}}function OY(t,i){t!==null&&typeof t!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t)}function dS(t,i,u,d,m){XD(u),OY(m===void 0?null:m,"render");var b=u._reactRootContainer,k;if(!b)k=RY(u,i,t,m,d);else{if(k=b,typeof m=="function"){var O=m;m=function(){var A=uS(k);O.call(A)}}O0(i,k,t,m)}return uS(k)}function DY(t){{var i=TY.current;if(i!==null&&i.stateNode!==null){var u=i.stateNode._warnedAboutRefsInRender;u||f("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",On(i.type)||"A component"),i.stateNode._warnedAboutRefsInRender=!0}}return t==null?null:t.nodeType===Ci?t:hY(t,"findDOMNode")}function AY(t,i,u){if(f("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!D0(i))throw new Error("Target container is not a DOM element.");{var d=Zv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return dS(null,t,i,!0,u)}function MY(t,i,u){if(f("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!D0(i))throw new Error("Target container is not a DOM element.");{var d=Zv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return dS(null,t,i,!1,u)}function LY(t,i,u,d){if(f("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!D0(u))throw new Error("Target container is not a DOM element.");if(t==null||!cf(t))throw new Error("parentComponent must be a valid React Component");return dS(t,i,u,!1,d)}function PY(t){if(!D0(t))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var i=Zv(t)&&t._reactRootContainer===void 0;i&&f("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(t._reactRootContainer){{var u=tk(t),d=u&&!rc(u);d&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ys(function(){dS(null,null,t,!1,function(){t._reactRootContainer=null,KR(t)})}),!0}else{{var m=tk(t),b=!!(m&&rc(m)),k=t.nodeType===Ci&&D0(t.parentNode)&&!!t.parentNode._reactRootContainer;b&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",k?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}at(mY),S1(vY),kf(gY),bv(Ea),x1(xf),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&f("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),e1(IB),Qd(M2,_W,Ys);function NY(t,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!fS(i))throw new Error("Target container is not a DOM element.");return pY(t,i,null,u)}function FY(t,i,u,d){return LY(t,i,u,d)}var nk={usingClientEntryPoint:!1,Events:[rc,Jp,J1,Gd,lf,M2]};function IY(t,i){return nk.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),CY(t,i)}function zY(t,i,u){return nk.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),_Y(t,i,u)}function jY(t){return sD()&&f("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ys(t)}var $Y=wY({findFiberByHostInstance:Nf,bundleType:1,version:K2,rendererPackageName:"react-dom"});if(!$Y&&ze&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var e6=window.location.protocol;/^(https?|file):$/.test(e6)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(e6==="file:"?`
196
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nk,ta.createPortal=NY,ta.createRoot=IY,ta.findDOMNode=DY,ta.flushSync=jY,ta.hydrate=AY,ta.hydrateRoot=zY,ta.render=MY,ta.unmountComponentAtNode=PY,ta.unstable_batchedUpdates=M2,ta.unstable_renderSubtreeIntoContainer=FY,ta.version=K2,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ta}function fk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fk)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(fk(),mS.exports=s6()):mS.exports=u6();var L0=mS.exports;function c6(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function dk(...e){return n=>e.forEach(r=>c6(r,n))}function Sc(...e){return j.useCallback(dk(...e),e)}const yS=j.forwardRef((e,n)=>{const{children:r,...a}=e,s=j.Children.toArray(r),c=s.find(d6);if(c){const f=c.props.children,h=s.map(v=>v===c?j.Children.count(f)>1?j.Children.only(null):j.isValidElement(f)?f.props.children:null:v);return j.createElement(bS,Xn({},a,{ref:n}),j.isValidElement(f)?j.cloneElement(f,void 0,h):null)}return j.createElement(bS,Xn({},a,{ref:n}),r)});yS.displayName="Slot";const bS=j.forwardRef((e,n)=>{const{children:r,...a}=e;return j.isValidElement(r)?j.cloneElement(r,{...p6(a,r.props),ref:n?dk(n,r.ref):r.ref}):j.Children.count(r)>1?j.Children.only(null):null});bS.displayName="SlotClone";const f6=({children:e})=>j.createElement(j.Fragment,null,e);function d6(e){return j.isValidElement(e)&&e.type===f6}function p6(e,n){const r={...n};for(const a in n){const s=e[a],c=n[a];/^on[A-Z]/.test(a)?s&&c?r[a]=(...h)=>{c(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...c}:a==="className"&&(r[a]=[s,c].filter(Boolean).join(" "))}return{...e,...r}}const Ka=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=j.forwardRef((a,s)=>{const{asChild:c,...f}=a,h=c?yS:n;return j.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),j.createElement(h,Xn({},f,{ref:s}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function h6(e,n){e&&L0.flushSync(()=>e.dispatchEvent(n))}const pk="Avatar",[m6,WY]=hS(pk),[v6,hk]=m6(pk),g6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,...a}=e,[s,c]=j.useState("idle");return j.createElement(v6,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c},j.createElement(Ka.span,Xn({},a,{ref:n})))}),y6="AvatarImage",b6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:s=()=>{},...c}=e,f=hk(y6,r),h=x6(a),v=Gs(y=>{s(y),f.onImageLoadingStatusChange(y)});return Th(()=>{h!=="idle"&&v(h)},[h,v]),h==="loaded"?j.createElement(Ka.img,Xn({},c,{ref:n,src:a})):null}),S6="AvatarFallback",E6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,delayMs:a,...s}=e,c=hk(S6,r),[f,h]=j.useState(a===void 0);return j.useEffect(()=>{if(a!==void 0){const v=window.setTimeout(()=>h(!0),a);return()=>window.clearTimeout(v)}},[a]),f&&c.imageLoadingStatus!=="loaded"?j.createElement(Ka.span,Xn({},s,{ref:n})):null});function x6(e){const[n,r]=j.useState("idle");return j.useEffect(()=>{if(!e){r("error");return}let a=!0;const s=new window.Image,c=f=>()=>{a&&r(f)};return r("loading"),s.onload=c("loaded"),s.onerror=c("error"),s.src=e,()=>{a=!1}},[e]),n}const mk=g6,vk=b6,gk=E6,P0=j.forwardRef((e,n)=>he.jsx(mk,{ref:n,...e}));P0.displayName=mk.displayName;const N0=j.forwardRef((e,n)=>he.jsx(vk,{ref:n,...e}));N0.displayName=vk.displayName;const F0=j.forwardRef((e,n)=>he.jsx(gk,{ref:n,...e}));F0.displayName=gk.displayName;const yk=["http","https","mailto","tel"];function w6(e){const n=(e||"").trim(),r=n.charAt(0);if(r==="#"||r==="/")return n;const a=n.indexOf(":");if(a===-1)return n;let s=-1;for(;++s<yk.length;){const c=yk[s];if(a===c.length&&n.slice(0,c.length).toLowerCase()===c)return n}return s=n.indexOf("?"),s!==-1&&a>s||(s=n.indexOf("#"),s!==-1&&a>s)?n:"javascript:void(0)"}/*!
197
+ * Determine if an object is a Buffer
198
+ *
199
+ * @author Feross Aboukhadijeh <https://feross.org>
200
+ * @license MIT
201
+ */var C6=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const bk=Qf(C6);function Rh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sk(e.position):"start"in e||"end"in e?Sk(e):"line"in e||"column"in e?SS(e):""}function SS(e){return Ek(e&&e.line)+":"+Ek(e&&e.column)}function Sk(e){return SS(e&&e.start)+"-"+SS(e&&e.end)}function Ek(e){return e&&typeof e=="number"?e:1}class Ga extends Error{constructor(n,r,a){const s=[null,null];let c={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof r=="string"&&(a=r,r=void 0),typeof a=="string"){const f=a.indexOf(":");f===-1?s[1]=a:(s[0]=a.slice(0,f),s[1]=a.slice(f+1))}r&&("type"in r||"position"in r?r.position&&(c=r.position):"start"in r||"end"in r?c=r:("line"in r||"column"in r)&&(c.start=r)),this.name=Rh(r)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=c.start.line,this.column=c.start.column,this.position=c,this.source=s[0],this.ruleId=s[1],this.file,this.actual,this.expected,this.url,this.note}}Ga.prototype.file="",Ga.prototype.name="",Ga.prototype.reason="",Ga.prototype.message="",Ga.prototype.stack="",Ga.prototype.fatal=null,Ga.prototype.column=null,Ga.prototype.line=null,Ga.prototype.source=null,Ga.prototype.ruleId=null,Ga.prototype.position=null;const el={basename:k6,dirname:_6,extname:T6,join:R6,sep:"/"};function k6(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Oh(e);let r=0,a=-1,s=e.length,c;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else a<0&&(c=!0,a=s+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let f=-1,h=n.length-1;for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else f<0&&(c=!0,f=s+1),h>-1&&(e.charCodeAt(s)===n.charCodeAt(h--)?h<0&&(a=s):(h=-1,a=f));return r===a?a=f:a<0&&(a=e.length),e.slice(r,a)}function _6(e){if(Oh(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.charCodeAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function T6(e){Oh(e);let n=e.length,r=-1,a=0,s=-1,c=0,f;for(;n--;){const h=e.charCodeAt(n);if(h===47){if(f){a=n+1;break}continue}r<0&&(f=!0,r=n+1),h===46?s<0?s=n:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===a+1?"":e.slice(s,r)}function R6(...e){let n=-1,r;for(;++n<e.length;)Oh(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":O6(r)}function O6(e){Oh(e);const n=e.charCodeAt(0)===47;let r=D6(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.charCodeAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function D6(e,n){let r="",a=0,s=-1,c=0,f=-1,h,v;for(;++f<=e.length;){if(f<e.length)h=e.charCodeAt(f);else{if(h===47)break;h=47}if(h===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(r.length<2||a!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){if(v=r.lastIndexOf("/"),v!==r.length-1){v<0?(r="",a=0):(r=r.slice(0,v),a=r.length-1-r.lastIndexOf("/")),s=f,c=0;continue}}else if(r.length>0){r="",a=0,s=f,c=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(s+1,f):r=e.slice(s+1,f),a=f-s-1;s=f,c=0}else h===46&&c>-1?c++:c=-1}return r}function Oh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const A6={cwd:M6};function M6(){return"/"}function ES(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function L6(e){if(typeof e=="string")e=new URL(e);else if(!ES(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return P6(e)}function P6(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.charCodeAt(r)===37&&n.charCodeAt(r+1)===50){const a=n.charCodeAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const xS=["history","path","basename","stem","extname","dirname"];class xk{constructor(n){let r;n?typeof n=="string"||N6(n)?r={value:n}:ES(n)?r={path:n}:r=n:r={},this.data={},this.messages=[],this.history=[],this.cwd=A6.cwd(),this.value,this.stored,this.result,this.map;let a=-1;for(;++a<xS.length;){const c=xS[a];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)xS.includes(s)||(this[s]=r[s])}get path(){return this.history[this.history.length-1]}set path(n){ES(n)&&(n=L6(n)),CS(n,"path"),this.path!==n&&this.history.push(n)}get dirname(){return typeof this.path=="string"?el.dirname(this.path):void 0}set dirname(n){wk(this.basename,"dirname"),this.path=el.join(n||"",this.basename)}get basename(){return typeof this.path=="string"?el.basename(this.path):void 0}set basename(n){CS(n,"basename"),wS(n,"basename"),this.path=el.join(this.dirname||"",n)}get extname(){return typeof this.path=="string"?el.extname(this.path):void 0}set extname(n){if(wS(n,"extname"),wk(this.dirname,"extname"),n){if(n.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=el.join(this.dirname,this.stem+(n||""))}get stem(){return typeof this.path=="string"?el.basename(this.path,this.extname):void 0}set stem(n){CS(n,"stem"),wS(n,"stem"),this.path=el.join(this.dirname||"",n+(this.extname||""))}toString(n){return(this.value||"").toString(n||void 0)}message(n,r,a){const s=new Ga(n,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(n,r,a){const s=this.message(n,r,a);return s.fatal=null,s}fail(n,r,a){const s=this.message(n,r,a);throw s.fatal=!0,s}}function wS(e,n){if(e&&e.includes(el.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+el.sep+"`")}function CS(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function wk(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function N6(e){return bk(e)}function Ck(e){if(e)throw e}var I0=Object.prototype.hasOwnProperty,kk=Object.prototype.toString,_k=Object.defineProperty,Tk=Object.getOwnPropertyDescriptor,Rk=function(n){return typeof Array.isArray=="function"?Array.isArray(n):kk.call(n)==="[object Array]"},Ok=function(n){if(!n||kk.call(n)!=="[object Object]")return!1;var r=I0.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&I0.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!r&&!a)return!1;var s;for(s in n);return typeof s>"u"||I0.call(n,s)},Dk=function(n,r){_k&&r.name==="__proto__"?_k(n,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):n[r.name]=r.newValue},Ak=function(n,r){if(r==="__proto__")if(I0.call(n,r)){if(Tk)return Tk(n,r).value}else return;return n[r]},F6=function e(){var n,r,a,s,c,f,h=arguments[0],v=1,y=arguments.length,S=!1;for(typeof h=="boolean"&&(S=h,h=arguments[1]||{},v=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});v<y;++v)if(n=arguments[v],n!=null)for(r in n)a=Ak(h,r),s=Ak(n,r),h!==s&&(S&&s&&(Ok(s)||(c=Rk(s)))?(c?(c=!1,f=a&&Rk(a)?a:[]):f=a&&Ok(a)?a:{},Dk(h,{name:r,newValue:e(S,f,s)})):typeof s<"u"&&Dk(h,{name:r,newValue:s}));return h};const Mk=Qf(F6);function kS(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function I6(){const e=[],n={run:r,use:a};return n;function r(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...s);function h(v,...y){const S=e[++c];let E=-1;if(v){f(v);return}for(;++E<s.length;)(y[E]===null||y[E]===void 0)&&(y[E]=s[E]);s=y,S?z6(S,h)(...y):f(null,...y)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function z6(e,n){let r;return a;function a(...f){const h=e.length>f.length;let v;h&&f.push(s);try{v=e.apply(this,f)}catch(y){const S=y;if(h&&r)throw S;return s(S)}h||(v instanceof Promise?v.then(c,s):v instanceof Error?s(v):c(v))}function s(f,...h){r||(r=!0,n(f,...h))}function c(f){s(null,f)}}const j6=Pk().freeze(),Lk={}.hasOwnProperty;function Pk(){const e=I6(),n=[];let r={},a,s=-1;return c.data=f,c.Parser=void 0,c.Compiler=void 0,c.freeze=h,c.attachers=n,c.use=v,c.parse=y,c.stringify=S,c.run=E,c.runSync=C,c.process=x,c.processSync=R,c;function c(){const T=Pk();let D=-1;for(;++D<n.length;)T.use(...n[D]);return T.data(Mk(!0,{},r)),T}function f(T,D){return typeof T=="string"?arguments.length===2?(RS("data",a),r[T]=D,c):Lk.call(r,T)&&r[T]||null:T?(RS("data",a),r=T,c):r}function h(){if(a)return c;for(;++s<n.length;){const[T,...D]=n[s];if(D[0]===!1)continue;D[0]===!0&&(D[0]=void 0);const M=T.call(c,...D);typeof M=="function"&&e.use(M)}return a=!0,s=Number.POSITIVE_INFINITY,c}function v(T,...D){let M;if(RS("use",a),T!=null)if(typeof T=="function")I(T,...D);else if(typeof T=="object")Array.isArray(T)?V(T):N(T);else throw new TypeError("Expected usable value, not `"+T+"`");return M&&(r.settings=Object.assign(r.settings||{},M)),c;function F($){if(typeof $=="function")I($);else if(typeof $=="object")if(Array.isArray($)){const[H,...Z]=$;I(H,...Z)}else N($);else throw new TypeError("Expected usable value, not `"+$+"`")}function N($){V($.plugins),$.settings&&(M=Object.assign(M||{},$.settings))}function V($){let H=-1;if($!=null)if(Array.isArray($))for(;++H<$.length;){const Z=$[H];F(Z)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function I($,H){let Z=-1,ne;for(;++Z<n.length;)if(n[Z][0]===$){ne=n[Z];break}ne?(kS(ne[1])&&kS(H)&&(H=Mk(!0,ne[1],H)),ne[1]=H):n.push([...arguments])}}function y(T){c.freeze();const D=Dh(T),M=c.Parser;return _S("parse",M),Nk(M,"parse")?new M(String(D),D).parse():M(String(D),D)}function S(T,D){c.freeze();const M=Dh(D),F=c.Compiler;return TS("stringify",F),Fk(T),Nk(F,"compile")?new F(T,M).compile():F(T,M)}function E(T,D,M){if(Fk(T),c.freeze(),!M&&typeof D=="function"&&(M=D,D=void 0),!M)return new Promise(F);F(null,M);function F(N,V){e.run(T,Dh(D),I);function I($,H,Z){H=H||T,$?V($):N?N(H):M(null,H,Z)}}}function C(T,D){let M,F;return c.run(T,D,N),Ik("runSync","run",F),M;function N(V,I){Ck(V),M=I,F=!0}}function x(T,D){if(c.freeze(),_S("process",c.Parser),TS("process",c.Compiler),!D)return new Promise(M);M(null,D);function M(F,N){const V=Dh(T);c.run(c.parse(V),V,($,H,Z)=>{if($||!H||!Z)I($);else{const ne=c.stringify(H,Z);ne==null||(B6(ne)?Z.value=ne:Z.result=ne),I($,Z)}});function I($,H){$||!H?N($):F?F(H):D(null,H)}}}function R(T){let D;c.freeze(),_S("processSync",c.Parser),TS("processSync",c.Compiler);const M=Dh(T);return c.process(M,F),Ik("processSync","process",D),M;function F(N){D=!0,Ck(N)}}}function Nk(e,n){return typeof e=="function"&&e.prototype&&($6(e.prototype)||n in e.prototype)}function $6(e){let n;for(n in e)if(Lk.call(e,n))return!0;return!1}function _S(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function TS(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function RS(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fk(e){if(!kS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ik(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Dh(e){return U6(e)?e:new xk(e)}function U6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function B6(e){return typeof e=="string"||bk(e)}const V6={};function H6(e,n){const r=n||V6,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zk(e,a,s)}function zk(e,n,r){if(q6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jk(e.children,n,r)}return Array.isArray(e)?jk(e,n,r):""}function jk(e,n,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=zk(e[s],n,r);return a.join("")}function q6(e){return!!(e&&typeof e=="object")}function tl(e,n,r,a){const s=e.length;let c=0,f;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,a.length<1e4)f=Array.from(a),f.unshift(n,r),e.splice(...f);else for(r&&e.splice(n,r);c<a.length;)f=a.slice(c,c+1e4),f.unshift(n,0),e.splice(...f),c+=1e4,n+=1e4}function Qa(e,n){return e.length>0?(tl(e,e.length,0,n),e):n}const $k={}.hasOwnProperty;function W6(e){const n={};let r=-1;for(;++r<e.length;)Y6(n,e[r]);return n}function Y6(e,n){let r;for(r in n){const s=($k.call(e,r)?e[r]:void 0)||(e[r]={}),c=n[r];let f;if(c)for(f in c){$k.call(s,f)||(s[f]=[]);const h=c[f];Z6(s[f],Array.isArray(h)?h:h?[h]:[])}}}function Z6(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);tl(e,0,0,a)}const K6=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nl=Qs(/[A-Za-z]/),Da=Qs(/[\dA-Za-z]/),G6=Qs(/[#-'*+\--9=?A-Z^-~]/);function OS(e){return e!==null&&(e<32||e===127)}const DS=Qs(/\d/),Q6=Qs(/[\dA-Fa-f]/),X6=Qs(/[!-/:-@[-`{-~]/);function Pt(e){return e!==null&&e<-2}function na(e){return e!==null&&(e<0||e===32)}function gn(e){return e===-2||e===-1||e===32}const J6=Qs(K6),eA=Qs(/\s/);function Qs(e){return n;function n(r){return r!==null&&e.test(String.fromCharCode(r))}}function jn(e,n,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(v){return gn(v)?(e.enter(r),h(v)):n(v)}function h(v){return gn(v)&&c++<s?(e.consume(v),h):(e.exit(r),n(v))}}const tA={tokenize:nA};function nA(e){const n=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return n;function a(h){if(h===null){e.consume(h);return}return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),jn(e,n,"linePrefix")}function s(h){return e.enter("paragraph"),c(h)}function c(h){const v=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=v),r=v,f(h)}function f(h){if(h===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(h);return}return Pt(h)?(e.consume(h),e.exit("chunkText"),c):(e.consume(h),f)}}const rA={tokenize:iA},Uk={tokenize:aA};function iA(e){const n=this,r=[];let a=0,s,c,f;return h;function h(N){if(a<r.length){const V=r[a];return n.containerState=V[1],e.attempt(V[0].continuation,v,y)(N)}return y(N)}function v(N){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&F();const V=n.events.length;let I=V,$;for(;I--;)if(n.events[I][0]==="exit"&&n.events[I][1].type==="chunkFlow"){$=n.events[I][1].end;break}M(a);let H=V;for(;H<n.events.length;)n.events[H][1].end=Object.assign({},$),H++;return tl(n.events,I+1,0,n.events.slice(V)),n.events.length=H,y(N)}return h(N)}function y(N){if(a===r.length){if(!s)return C(N);if(s.currentConstruct&&s.currentConstruct.concrete)return R(N);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Uk,S,E)(N)}function S(N){return s&&F(),M(a),C(N)}function E(N){return n.parser.lazy[n.now().line]=a!==r.length,f=n.now().offset,R(N)}function C(N){return n.containerState={},e.attempt(Uk,x,R)(N)}function x(N){return a++,r.push([n.currentConstruct,n.containerState]),C(N)}function R(N){if(N===null){s&&F(),M(0),e.consume(N);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:c,_tokenizer:s}),T(N)}function T(N){if(N===null){D(e.exit("chunkFlow"),!0),M(0),e.consume(N);return}return Pt(N)?(e.consume(N),D(e.exit("chunkFlow")),a=0,n.interrupt=void 0,h):(e.consume(N),T)}function D(N,V){const I=n.sliceStream(N);if(V&&I.push(null),N.previous=c,c&&(c.next=N),c=N,s.defineSkip(N.start),s.write(I),n.parser.lazy[N.start.line]){let $=s.events.length;for(;$--;)if(s.events[$][1].start.offset<f&&(!s.events[$][1].end||s.events[$][1].end.offset>f))return;const H=n.events.length;let Z=H,ne,ve;for(;Z--;)if(n.events[Z][0]==="exit"&&n.events[Z][1].type==="chunkFlow"){if(ne){ve=n.events[Z][1].end;break}ne=!0}for(M(a),$=H;$<n.events.length;)n.events[$][1].end=Object.assign({},ve),$++;tl(n.events,Z+1,0,n.events.slice(H)),n.events.length=$}}function M(N){let V=r.length;for(;V-- >N;){const I=r[V];n.containerState=I[1],I[0].exit.call(n,e)}r.length=N}function F(){s.write([null]),c=void 0,s=void 0,n.containerState._closeFlow=void 0}}function aA(e,n,r){return jn(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bk(e){if(e===null||na(e)||eA(e))return 1;if(J6(e))return 2}function AS(e,n,r){const a=[];let s=-1;for(;++s<e.length;){const c=e[s].resolveAll;c&&!a.includes(c)&&(n=c(n,r),a.push(c))}return n}const MS={name:"attention",tokenize:lA,resolveAll:oA};function oA(e,n){let r=-1,a,s,c,f,h,v,y,S;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;v=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E=Object.assign({},e[a][1].end),C=Object.assign({},e[r][1].start);Vk(E,-v),Vk(C,v),f={type:v>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[a][1].end)},h={type:v>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:C},c={type:v>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},s={type:v>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},h.end)},e[a][1].end=Object.assign({},f.start),e[r][1].start=Object.assign({},h.end),y=[],e[a][1].end.offset-e[a][1].start.offset&&(y=Qa(y,[["enter",e[a][1],n],["exit",e[a][1],n]])),y=Qa(y,[["enter",s,n],["enter",f,n],["exit",f,n],["enter",c,n]]),y=Qa(y,AS(n.parser.constructs.insideSpan.null,e.slice(a+1,r),n)),y=Qa(y,[["exit",c,n],["enter",h,n],["exit",h,n],["exit",s,n]]),e[r][1].end.offset-e[r][1].start.offset?(S=2,y=Qa(y,[["enter",e[r][1],n],["exit",e[r][1],n]])):S=0,tl(e,a-1,r-a+3,y),r=a+y.length-S-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function lA(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Bk(a);let c;return f;function f(v){return c=v,e.enter("attentionSequence"),h(v)}function h(v){if(v===c)return e.consume(v),h;const y=e.exit("attentionSequence"),S=Bk(v),E=!S||S===2&&s||r.includes(v),C=!s||s===2&&S||r.includes(a);return y._open=!!(c===42?E:E&&(s||!C)),y._close=!!(c===42?C:C&&(S||!E)),n(v)}}function Vk(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const sA={name:"autolink",tokenize:uA};function uA(e,n,r){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(x){return nl(x)?(e.consume(x),f):y(x)}function f(x){return x===43||x===45||x===46||Da(x)?(a=1,h(x)):y(x)}function h(x){return x===58?(e.consume(x),a=0,v):(x===43||x===45||x===46||Da(x))&&a++<32?(e.consume(x),h):(a=0,y(x))}function v(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):x===null||x===32||x===60||OS(x)?r(x):(e.consume(x),v)}function y(x){return x===64?(e.consume(x),S):G6(x)?(e.consume(x),y):r(x)}function S(x){return Da(x)?E(x):r(x)}function E(x){return x===46?(e.consume(x),a=0,S):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):C(x)}function C(x){if((x===45||Da(x))&&a++<63){const R=x===45?C:E;return e.consume(x),R}return r(x)}}const z0={tokenize:cA,partial:!0};function cA(e,n,r){return a;function a(c){return gn(c)?jn(e,s,"linePrefix")(c):s(c)}function s(c){return c===null||Pt(c)?n(c):r(c)}}const Hk={name:"blockQuote",tokenize:fA,continuation:{tokenize:dA},exit:pA};function fA(e,n,r){const a=this;return s;function s(f){if(f===62){const h=a.containerState;return h.open||(e.enter("blockQuote",{_container:!0}),h.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),c}return r(f)}function c(f){return gn(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(f))}}function dA(e,n,r){const a=this;return s;function s(f){return gn(f)?jn(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return e.attempt(Hk,n,r)(f)}}function pA(e){e.exit("blockQuote")}const qk={name:"characterEscape",tokenize:hA};function hA(e,n,r){return a;function a(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),s}function s(c){return X6(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(c)}}const Wk=document.createElement("i");function LS(e){const n="&"+e+";";Wk.innerHTML=n;const r=Wk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}const Yk={name:"characterReference",tokenize:mA};function mA(e,n,r){const a=this;let s=0,c,f;return h;function h(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),v}function v(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),c=31,f=Da,S(E))}function y(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,f=Q6,S):(e.enter("characterReferenceValue"),c=7,f=DS,S(E))}function S(E){if(E===59&&s){const C=e.exit("characterReferenceValue");return f===Da&&!LS(a.sliceSerialize(C))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return f(E)&&s++<c?(e.consume(E),S):r(E)}}const Zk={tokenize:gA,partial:!0},Kk={name:"codeFenced",tokenize:vA,concrete:!0};function vA(e,n,r){const a=this,s={tokenize:I,partial:!0};let c=0,f=0,h;return v;function v($){return y($)}function y($){const H=a.events[a.events.length-1];return c=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,h=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),S($)}function S($){return $===h?(f++,e.consume($),S):f<3?r($):(e.exit("codeFencedFenceSequence"),gn($)?jn(e,E,"whitespace")($):E($))}function E($){return $===null||Pt($)?(e.exit("codeFencedFence"),a.interrupt?n($):e.check(Zk,T,V)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C($))}function C($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E($)):gn($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),jn(e,x,"whitespace")($)):$===96&&$===h?r($):(e.consume($),C)}function x($){return $===null||Pt($)?E($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R($))}function R($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E($)):$===96&&$===h?r($):(e.consume($),R)}function T($){return e.attempt(s,V,D)($)}function D($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),M}function M($){return c>0&&gn($)?jn(e,F,"linePrefix",c+1)($):F($)}function F($){return $===null||Pt($)?e.check(Zk,T,V)($):(e.enter("codeFlowValue"),N($))}function N($){return $===null||Pt($)?(e.exit("codeFlowValue"),F($)):(e.consume($),N)}function V($){return e.exit("codeFenced"),n($)}function I($,H,Z){let ne=0;return ve;function ve(ke){return $.enter("lineEnding"),$.consume(ke),$.exit("lineEnding"),ee}function ee(ke){return $.enter("codeFencedFence"),gn(ke)?jn($,oe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ke):oe(ke)}function oe(ke){return ke===h?($.enter("codeFencedFenceSequence"),J(ke)):Z(ke)}function J(ke){return ke===h?(ne++,$.consume(ke),J):ne>=f?($.exit("codeFencedFenceSequence"),gn(ke)?jn($,pe,"whitespace")(ke):pe(ke)):Z(ke)}function pe(ke){return ke===null||Pt(ke)?($.exit("codeFencedFence"),H(ke)):Z(ke)}}}function gA(e,n,r){const a=this;return s;function s(f){return f===null?r(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}const PS={name:"codeIndented",tokenize:bA},yA={tokenize:SA,partial:!0};function bA(e,n,r){const a=this;return s;function s(y){return e.enter("codeIndented"),jn(e,c,"linePrefix",4+1)(y)}function c(y){const S=a.events[a.events.length-1];return S&&S[1].type==="linePrefix"&&S[2].sliceSerialize(S[1],!0).length>=4?f(y):r(y)}function f(y){return y===null?v(y):Pt(y)?e.attempt(yA,f,v)(y):(e.enter("codeFlowValue"),h(y))}function h(y){return y===null||Pt(y)?(e.exit("codeFlowValue"),f(y)):(e.consume(y),h)}function v(y){return e.exit("codeIndented"),n(y)}}function SA(e,n,r){const a=this;return s;function s(f){return a.parser.lazy[a.now().line]?r(f):Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):jn(e,c,"linePrefix",4+1)(f)}function c(f){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):Pt(f)?s(f):r(f)}}const EA={name:"codeText",tokenize:CA,resolve:xA,previous:wA};function xA(e){let n=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)s===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(s=a):(a===n||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),n-=a-s-2,a=s+2),s=void 0);return e}function wA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function CA(e,n,r){let a=0,s,c;return f;function f(E){return e.enter("codeText"),e.enter("codeTextSequence"),h(E)}function h(E){return E===96?(e.consume(E),a++,h):(e.exit("codeTextSequence"),v(E))}function v(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),v):E===96?(c=e.enter("codeTextSequence"),s=0,S(E)):Pt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):(e.enter("codeTextData"),y(E))}function y(E){return E===null||E===32||E===96||Pt(E)?(e.exit("codeTextData"),v(E)):(e.consume(E),y)}function S(E){return E===96?(e.consume(E),s++,S):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(E)):(c.type="codeTextData",y(E))}}function Gk(e){const n={};let r=-1,a,s,c,f,h,v,y;for(;++r<e.length;){for(;r in n;)r=n[r];if(a=e[r],r&&a[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(v=a[1]._tokenizer.events,c=0,c<v.length&&v[c][1].type==="lineEndingBlank"&&(c+=2),c<v.length&&v[c][1].type==="content"))for(;++c<v.length&&v[c][1].type!=="content";)v[c][1].type==="chunkText"&&(v[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,kA(e,r)),r=n[r],y=!0);else if(a[1]._container){for(c=r,s=void 0;c--&&(f=e[c],f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(s&&(e[s][1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);s&&(a[1].end=Object.assign({},e[s][1].start),h=e.slice(s,r),h.unshift(a),tl(e,s,r-s+1,h))}}return!y}function kA(e,n){const r=e[n][1],a=e[n][2];let s=n-1;const c=[],f=r._tokenizer||a.parser[r.contentType](r.start),h=f.events,v=[],y={};let S,E,C=-1,x=r,R=0,T=0;const D=[T];for(;x;){for(;e[++s][1]!==x;);c.push(s),x._tokenizer||(S=a.sliceStream(x),x.next||S.push(null),E&&f.defineSkip(x.start),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(S),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),E=x,x=x.next}for(x=r;++C<h.length;)h[C][0]==="exit"&&h[C-1][0]==="enter"&&h[C][1].type===h[C-1][1].type&&h[C][1].start.line!==h[C][1].end.line&&(T=C+1,D.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(f.events=[],x?(x._tokenizer=void 0,x.previous=void 0):D.pop(),C=D.length;C--;){const M=h.slice(D[C],D[C+1]),F=c.pop();v.unshift([F,F+M.length-1]),tl(e,F,2,M)}for(C=-1;++C<v.length;)y[R+v[C][0]]=R+v[C][1],R+=v[C][1]-v[C][0]-1;return y}const _A={tokenize:OA,resolve:RA},TA={tokenize:DA,partial:!0};function RA(e){return Gk(e),e}function OA(e,n){let r;return a;function a(h){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?c(h):Pt(h)?e.check(TA,f,c)(h):(e.consume(h),s)}function c(h){return e.exit("chunkContent"),e.exit("content"),n(h)}function f(h){return e.consume(h),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function DA(e,n,r){const a=this;return s;function s(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),jn(e,c,"linePrefix")}function c(f){if(f===null||Pt(f))return r(f);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):e.interrupt(a.parser.constructs.flow,r,n)(f)}}function Qk(e,n,r,a,s,c,f,h,v){const y=v||Number.POSITIVE_INFINITY;let S=0;return E;function E(M){return M===60?(e.enter(a),e.enter(s),e.enter(c),e.consume(M),e.exit(c),C):M===null||M===32||M===41||OS(M)?r(M):(e.enter(a),e.enter(f),e.enter(h),e.enter("chunkString",{contentType:"string"}),T(M))}function C(M){return M===62?(e.enter(c),e.consume(M),e.exit(c),e.exit(s),e.exit(a),n):(e.enter(h),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===62?(e.exit("chunkString"),e.exit(h),C(M)):M===null||M===60||Pt(M)?r(M):(e.consume(M),M===92?R:x)}function R(M){return M===60||M===62||M===92?(e.consume(M),x):x(M)}function T(M){return!S&&(M===null||M===41||na(M))?(e.exit("chunkString"),e.exit(h),e.exit(f),e.exit(a),n(M)):S<y&&M===40?(e.consume(M),S++,T):M===41?(e.consume(M),S--,T):M===null||M===32||M===40||OS(M)?r(M):(e.consume(M),M===92?D:T)}function D(M){return M===40||M===41||M===92?(e.consume(M),T):T(M)}}function Xk(e,n,r,a,s,c){const f=this;let h=0,v;return y;function y(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(c),S}function S(x){return h>999||x===null||x===91||x===93&&!v||x===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?r(x):x===93?(e.exit(c),e.enter(s),e.consume(x),e.exit(s),e.exit(a),n):Pt(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),S):(e.enter("chunkString",{contentType:"string"}),E(x))}function E(x){return x===null||x===91||x===93||Pt(x)||h++>999?(e.exit("chunkString"),S(x)):(e.consume(x),v||(v=!gn(x)),x===92?C:E)}function C(x){return x===91||x===92||x===93?(e.consume(x),h++,E):E(x)}}function Jk(e,n,r,a,s,c){let f;return h;function h(C){return C===34||C===39||C===40?(e.enter(a),e.enter(s),e.consume(C),e.exit(s),f=C===40?41:C,v):r(C)}function v(C){return C===f?(e.enter(s),e.consume(C),e.exit(s),e.exit(a),n):(e.enter(c),y(C))}function y(C){return C===f?(e.exit(c),v(f)):C===null?r(C):Pt(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),jn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===f||C===null||Pt(C)?(e.exit("chunkString"),y(C)):(e.consume(C),C===92?E:S)}function E(C){return C===f||C===92?(e.consume(C),S):S(C)}}function Ah(e,n){let r;return a;function a(s){return Pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):gn(s)?jn(e,a,r?"linePrefix":"lineSuffix")(s):n(s)}}function Xf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const AA={name:"definition",tokenize:LA},MA={tokenize:PA,partial:!0};function LA(e,n,r){const a=this;let s;return c;function c(x){return e.enter("definition"),f(x)}function f(x){return Xk.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function h(x){return s=Xf(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),v):r(x)}function v(x){return na(x)?Ah(e,y)(x):y(x)}function y(x){return Qk(e,S,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function S(x){return e.attempt(MA,E,E)(x)}function E(x){return gn(x)?jn(e,C,"whitespace")(x):C(x)}function C(x){return x===null||Pt(x)?(e.exit("definition"),a.parser.defined.push(s),n(x)):r(x)}}function PA(e,n,r){return a;function a(h){return na(h)?Ah(e,s)(h):r(h)}function s(h){return Jk(e,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return gn(h)?jn(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Pt(h)?n(h):r(h)}}const NA={name:"hardBreakEscape",tokenize:FA};function FA(e,n,r){return a;function a(c){return e.enter("hardBreakEscape"),e.consume(c),s}function s(c){return Pt(c)?(e.exit("hardBreakEscape"),n(c)):r(c)}}const IA={name:"headingAtx",tokenize:jA,resolve:zA};function zA(e,n){let r=e.length-2,a=3,s,c;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},c={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},tl(e,a,r-a+1,[["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n]])),e}function jA(e,n,r){let a=0;return s;function s(S){return e.enter("atxHeading"),c(S)}function c(S){return e.enter("atxHeadingSequence"),f(S)}function f(S){return S===35&&a++<6?(e.consume(S),f):S===null||na(S)?(e.exit("atxHeadingSequence"),h(S)):r(S)}function h(S){return S===35?(e.enter("atxHeadingSequence"),v(S)):S===null||Pt(S)?(e.exit("atxHeading"),n(S)):gn(S)?jn(e,h,"whitespace")(S):(e.enter("atxHeadingText"),y(S))}function v(S){return S===35?(e.consume(S),v):(e.exit("atxHeadingSequence"),h(S))}function y(S){return S===null||S===35||na(S)?(e.exit("atxHeadingText"),h(S)):(e.consume(S),y)}}const $A=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e_=["pre","script","style","textarea"],UA={name:"htmlFlow",tokenize:qA,resolveTo:HA,concrete:!0},BA={tokenize:YA,partial:!0},VA={tokenize:WA,partial:!0};function HA(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function qA(e,n,r){const a=this;let s,c,f,h,v;return y;function y(U){return S(U)}function S(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),E}function E(U){return U===33?(e.consume(U),C):U===47?(e.consume(U),c=!0,T):U===63?(e.consume(U),s=3,a.interrupt?n:L):nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function C(U){return U===45?(e.consume(U),s=2,x):U===91?(e.consume(U),s=5,h=0,R):nl(U)?(e.consume(U),s=4,a.interrupt?n:L):r(U)}function x(U){return U===45?(e.consume(U),a.interrupt?n:L):r(U)}function R(U){const _e="CDATA[";return U===_e.charCodeAt(h++)?(e.consume(U),h===_e.length?a.interrupt?n:oe:R):r(U)}function T(U){return nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function D(U){if(U===null||U===47||U===62||na(U)){const _e=U===47,We=f.toLowerCase();return!_e&&!c&&e_.includes(We)?(s=1,a.interrupt?n(U):oe(U)):$A.includes(f.toLowerCase())?(s=6,_e?(e.consume(U),M):a.interrupt?n(U):oe(U)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(U):c?F(U):N(U))}return U===45||Da(U)?(e.consume(U),f+=String.fromCharCode(U),D):r(U)}function M(U){return U===62?(e.consume(U),a.interrupt?n:oe):r(U)}function F(U){return gn(U)?(e.consume(U),F):ve(U)}function N(U){return U===47?(e.consume(U),ve):U===58||U===95||nl(U)?(e.consume(U),V):gn(U)?(e.consume(U),N):ve(U)}function V(U){return U===45||U===46||U===58||U===95||Da(U)?(e.consume(U),V):I(U)}function I(U){return U===61?(e.consume(U),$):gn(U)?(e.consume(U),I):N(U)}function $(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(e.consume(U),v=U,H):gn(U)?(e.consume(U),$):Z(U)}function H(U){return U===v?(e.consume(U),v=null,ne):U===null||Pt(U)?r(U):(e.consume(U),H)}function Z(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||na(U)?I(U):(e.consume(U),Z)}function ne(U){return U===47||U===62||gn(U)?N(U):r(U)}function ve(U){return U===62?(e.consume(U),ee):r(U)}function ee(U){return U===null||Pt(U)?oe(U):gn(U)?(e.consume(U),ee):r(U)}function oe(U){return U===45&&s===2?(e.consume(U),xe):U===60&&s===1?(e.consume(U),Ie):U===62&&s===4?(e.consume(U),te):U===63&&s===3?(e.consume(U),L):U===93&&s===5?(e.consume(U),Te):Pt(U)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(BA,ye,J)(U)):U===null||Pt(U)?(e.exit("htmlFlowData"),J(U)):(e.consume(U),oe)}function J(U){return e.check(VA,pe,ye)(U)}function pe(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),ke}function ke(U){return U===null||Pt(U)?J(U):(e.enter("htmlFlowData"),oe(U))}function xe(U){return U===45?(e.consume(U),L):oe(U)}function Ie(U){return U===47?(e.consume(U),f="",se):oe(U)}function se(U){if(U===62){const _e=f.toLowerCase();return e_.includes(_e)?(e.consume(U),te):oe(U)}return nl(U)&&f.length<8?(e.consume(U),f+=String.fromCharCode(U),se):oe(U)}function Te(U){return U===93?(e.consume(U),L):oe(U)}function L(U){return U===62?(e.consume(U),te):U===45&&s===2?(e.consume(U),L):oe(U)}function te(U){return U===null||Pt(U)?(e.exit("htmlFlowData"),ye(U)):(e.consume(U),te)}function ye(U){return e.exit("htmlFlow"),n(U)}}function WA(e,n,r){const a=this;return s;function s(f){return Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):r(f)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}function YA(e,n,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(z0,n,r)}}const ZA={name:"htmlText",tokenize:KA};function KA(e,n,r){const a=this;let s,c,f;return h;function h(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),v}function v(L){return L===33?(e.consume(L),y):L===47?(e.consume(L),I):L===63?(e.consume(L),N):nl(L)?(e.consume(L),Z):r(L)}function y(L){return L===45?(e.consume(L),S):L===91?(e.consume(L),c=0,R):nl(L)?(e.consume(L),F):r(L)}function S(L){return L===45?(e.consume(L),x):r(L)}function E(L){return L===null?r(L):L===45?(e.consume(L),C):Pt(L)?(f=E,Ie(L)):(e.consume(L),E)}function C(L){return L===45?(e.consume(L),x):E(L)}function x(L){return L===62?xe(L):L===45?C(L):E(L)}function R(L){const te="CDATA[";return L===te.charCodeAt(c++)?(e.consume(L),c===te.length?T:R):r(L)}function T(L){return L===null?r(L):L===93?(e.consume(L),D):Pt(L)?(f=T,Ie(L)):(e.consume(L),T)}function D(L){return L===93?(e.consume(L),M):T(L)}function M(L){return L===62?xe(L):L===93?(e.consume(L),M):T(L)}function F(L){return L===null||L===62?xe(L):Pt(L)?(f=F,Ie(L)):(e.consume(L),F)}function N(L){return L===null?r(L):L===63?(e.consume(L),V):Pt(L)?(f=N,Ie(L)):(e.consume(L),N)}function V(L){return L===62?xe(L):N(L)}function I(L){return nl(L)?(e.consume(L),$):r(L)}function $(L){return L===45||Da(L)?(e.consume(L),$):H(L)}function H(L){return Pt(L)?(f=H,Ie(L)):gn(L)?(e.consume(L),H):xe(L)}function Z(L){return L===45||Da(L)?(e.consume(L),Z):L===47||L===62||na(L)?ne(L):r(L)}function ne(L){return L===47?(e.consume(L),xe):L===58||L===95||nl(L)?(e.consume(L),ve):Pt(L)?(f=ne,Ie(L)):gn(L)?(e.consume(L),ne):xe(L)}function ve(L){return L===45||L===46||L===58||L===95||Da(L)?(e.consume(L),ve):ee(L)}function ee(L){return L===61?(e.consume(L),oe):Pt(L)?(f=ee,Ie(L)):gn(L)?(e.consume(L),ee):ne(L)}function oe(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),s=L,J):Pt(L)?(f=oe,Ie(L)):gn(L)?(e.consume(L),oe):(e.consume(L),pe)}function J(L){return L===s?(e.consume(L),s=void 0,ke):L===null?r(L):Pt(L)?(f=J,Ie(L)):(e.consume(L),J)}function pe(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||na(L)?ne(L):(e.consume(L),pe)}function ke(L){return L===47||L===62||na(L)?ne(L):r(L)}function xe(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),n):r(L)}function Ie(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),se}function se(L){return gn(L)?jn(e,Te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Te(L)}function Te(L){return e.enter("htmlTextData"),f(L)}}const NS={name:"labelEnd",tokenize:tM,resolveTo:eM,resolveAll:JA},GA={tokenize:nM},QA={tokenize:rM},XA={tokenize:iM};function JA(e){let n=-1;for(;++n<e.length;){const r=e[n][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(n+1,r.type==="labelImage"?4:2),r.type="data",n++)}return e}function eM(e,n){let r=e.length,a=0,s,c,f,h;for(;r--;)if(s=e[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(f=r);const v={type:e[c][1].type==="labelLink"?"link":"image",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)},y={type:"label",start:Object.assign({},e[c][1].start),end:Object.assign({},e[f][1].end)},S={type:"labelText",start:Object.assign({},e[c+a+2][1].end),end:Object.assign({},e[f-2][1].start)};return h=[["enter",v,n],["enter",y,n]],h=Qa(h,e.slice(c+1,c+a+3)),h=Qa(h,[["enter",S,n]]),h=Qa(h,AS(n.parser.constructs.insideSpan.null,e.slice(c+a+4,f-3),n)),h=Qa(h,[["exit",S,n],e[f-2],e[f-1],["exit",y,n]]),h=Qa(h,e.slice(f+1)),h=Qa(h,[["exit",v,n]]),tl(e,c,e.length,h),e}function tM(e,n,r){const a=this;let s=a.events.length,c,f;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){c=a.events[s][1];break}return h;function h(C){return c?c._inactive?E(C):(f=a.parser.defined.includes(Xf(a.sliceSerialize({start:c.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),v):r(C)}function v(C){return C===40?e.attempt(GA,S,f?S:E)(C):C===91?e.attempt(QA,S,f?y:E)(C):f?S(C):E(C)}function y(C){return e.attempt(XA,S,E)(C)}function S(C){return n(C)}function E(C){return c._balanced=!0,r(C)}}function nM(e,n,r){return a;function a(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),s}function s(E){return na(E)?Ah(e,c)(E):c(E)}function c(E){return E===41?S(E):Qk(e,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function f(E){return na(E)?Ah(e,v)(E):S(E)}function h(E){return r(E)}function v(E){return E===34||E===39||E===40?Jk(e,y,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):S(E)}function y(E){return na(E)?Ah(e,S)(E):S(E)}function S(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),n):r(E)}}function rM(e,n,r){const a=this;return s;function s(h){return Xk.call(a,e,c,f,"reference","referenceMarker","referenceString")(h)}function c(h){return a.parser.defined.includes(Xf(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(h):r(h)}function f(h){return r(h)}}function iM(e,n,r){return a;function a(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),s}function s(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),n):r(c)}}const aM={name:"labelStartImage",tokenize:oM,resolveAll:NS.resolveAll};function oM(e,n,r){const a=this;return s;function s(h){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(h),e.exit("labelImageMarker"),c}function c(h){return h===91?(e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelImage"),f):r(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):n(h)}}const lM={name:"labelStartLink",tokenize:sM,resolveAll:NS.resolveAll};function sM(e,n,r){const a=this;return s;function s(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):n(f)}}const FS={name:"lineEnding",tokenize:uM};function uM(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),jn(e,n,"linePrefix")}}const j0={name:"thematicBreak",tokenize:cM};function cM(e,n,r){let a=0,s;return c;function c(y){return e.enter("thematicBreak"),f(y)}function f(y){return s=y,h(y)}function h(y){return y===s?(e.enter("thematicBreakSequence"),v(y)):a>=3&&(y===null||Pt(y))?(e.exit("thematicBreak"),n(y)):r(y)}function v(y){return y===s?(e.consume(y),a++,v):(e.exit("thematicBreakSequence"),gn(y)?jn(e,h,"whitespace")(y):h(y))}}const ra={name:"list",tokenize:pM,continuation:{tokenize:hM},exit:vM},fM={tokenize:gM,partial:!0},dM={tokenize:mM,partial:!0};function pM(e,n,r){const a=this,s=a.events[a.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return h;function h(x){const R=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:DS(x)){if(a.containerState.type||(a.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(j0,r,y)(x):y(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),v(x)}return r(x)}function v(x){return DS(x)&&++f<10?(e.consume(x),v):(!a.interrupt||f<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),y(x)):r(x)}function y(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(z0,a.interrupt?r:S,e.attempt(fM,C,E))}function S(x){return a.containerState.initialBlankLine=!0,c++,C(x)}function E(x){return gn(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),C):r(x)}function C(x){return a.containerState.size=c+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(x)}}function hM(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(z0,s,c);function s(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,jn(e,n,"listItemIndent",a.containerState.size+1)(h)}function c(h){return a.containerState.furtherBlankLines||!gn(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,f(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(dM,n,f)(h))}function f(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,jn(e,e.attempt(ra,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function mM(e,n,r){const a=this;return jn(e,s,"listItemIndent",a.containerState.size+1);function s(c){const f=a.events[a.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===a.containerState.size?n(c):r(c)}}function vM(e){e.exit(this.containerState.type)}function gM(e,n,r){const a=this;return jn(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(c){const f=a.events[a.events.length-1];return!gn(c)&&f&&f[1].type==="listItemPrefixWhitespace"?n(c):r(c)}}const t_={name:"setextUnderline",tokenize:bM,resolveTo:yM};function yM(e,n){let r=e.length,a,s,c;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!c&&e[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",c?(e.splice(s,0,["enter",f,n]),e.splice(c+1,0,["exit",e[a][1],n]),e[a][1].end=Object.assign({},e[c][1].end)):e[a][1]=f,e.push(["exit",f,n]),e}function bM(e,n,r){const a=this;let s;return c;function c(y){let S=a.events.length,E;for(;S--;)if(a.events[S][1].type!=="lineEnding"&&a.events[S][1].type!=="linePrefix"&&a.events[S][1].type!=="content"){E=a.events[S][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||E)?(e.enter("setextHeadingLine"),s=y,f(y)):r(y)}function f(y){return e.enter("setextHeadingLineSequence"),h(y)}function h(y){return y===s?(e.consume(y),h):(e.exit("setextHeadingLineSequence"),gn(y)?jn(e,v,"lineSuffix")(y):v(y))}function v(y){return y===null||Pt(y)?(e.exit("setextHeadingLine"),n(y)):r(y)}}const SM={tokenize:EM};function EM(e){const n=this,r=e.attempt(z0,a,e.attempt(this.parser.constructs.flowInitial,s,jn(e,e.attempt(this.parser.constructs.flow,s,e.attempt(_A,s)),"linePrefix")));return r;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const xM={resolveAll:r_()},wM=n_("string"),CM=n_("text");function n_(e){return{tokenize:n,resolveAll:r_(e==="text"?kM:void 0)};function n(r){const a=this,s=this.parser.constructs[e],c=r.attempt(s,f,h);return f;function f(S){return y(S)?c(S):h(S)}function h(S){if(S===null){r.consume(S);return}return r.enter("data"),r.consume(S),v}function v(S){return y(S)?(r.exit("data"),c(S)):(r.consume(S),v)}function y(S){if(S===null)return!0;const E=s[S];let C=-1;if(E)for(;++C<E.length;){const x=E[C];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function r_(e){return n;function n(r,a){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return e?e(r,a):r}}function kM(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=n.sliceStream(a);let c=s.length,f=-1,h=0,v;for(;c--;){const y=s[c];if(typeof y=="string"){for(f=y.length;y.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(y===-2)v=!0,h++;else if(y!==-1){c++;break}}if(h){const y={type:r===e.length||v||h<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-h,offset:a.end.offset-h,_index:a.start._index+c,_bufferIndex:c?f:a.start._bufferIndex+f},end:Object.assign({},a.end)};a.end=Object.assign({},y.start),a.start.offset===a.end.offset?Object.assign(a,y):(e.splice(r,0,["enter",y,n],["exit",y,n]),r+=2)}r++}return e}function _M(e,n,r){let a=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const s={},c=[];let f=[],h=[];const v={consume:F,enter:N,exit:V,attempt:H(I),check:H($),interrupt:H($,{interrupt:!0})},y={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:x,sliceSerialize:C,now:R,defineSkip:T,write:E};let S=n.tokenize.call(y,v);return n.resolveAll&&c.push(n),y;function E(ee){return f=Qa(f,ee),D(),f[f.length-1]!==null?[]:(Z(n,0),y.events=AS(c,y.events,y),y.events)}function C(ee,oe){return RM(x(ee),oe)}function x(ee){return TM(f,ee)}function R(){const{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}=a;return{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}}function T(ee){s[ee.line]=ee.column,ve()}function D(){let ee;for(;a._index<f.length;){const oe=f[a._index];if(typeof oe=="string")for(ee=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ee&&a._bufferIndex<oe.length;)M(oe.charCodeAt(a._bufferIndex));else M(oe)}}function M(ee){S=S(ee)}function F(ee){Pt(ee)?(a.line++,a.column=1,a.offset+=ee===-3?2:1,ve()):ee!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),y.previous=ee}function N(ee,oe){const J=oe||{};return J.type=ee,J.start=R(),y.events.push(["enter",J,y]),h.push(J),J}function V(ee){const oe=h.pop();return oe.end=R(),y.events.push(["exit",oe,y]),oe}function I(ee,oe){Z(ee,oe.from)}function $(ee,oe){oe.restore()}function H(ee,oe){return J;function J(pe,ke,xe){let Ie,se,Te,L;return Array.isArray(pe)?ye(pe):"tokenize"in pe?ye([pe]):te(pe);function te(Re){return Oe;function Oe($e){const Ge=$e!==null&&Re[$e],Ue=$e!==null&&Re.null,Le=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return ye(Le)($e)}}function ye(Re){return Ie=Re,se=0,Re.length===0?xe:U(Re[se])}function U(Re){return Oe;function Oe($e){return L=ne(),Te=Re,Re.partial||(y.currentConstruct=Re),Re.name&&y.parser.constructs.disable.null.includes(Re.name)?We():Re.tokenize.call(oe?Object.assign(Object.create(y),oe):y,v,_e,We)($e)}}function _e(Re){return ee(Te,L),ke}function We(Re){return L.restore(),++se<Ie.length?U(Ie[se]):xe}}}function Z(ee,oe){ee.resolveAll&&!c.includes(ee)&&c.push(ee),ee.resolve&&tl(y.events,oe,y.events.length-oe,ee.resolve(y.events.slice(oe),y)),ee.resolveTo&&(y.events=ee.resolveTo(y.events,y))}function ne(){const ee=R(),oe=y.previous,J=y.currentConstruct,pe=y.events.length,ke=Array.from(h);return{restore:xe,from:pe};function xe(){a=ee,y.previous=oe,y.currentConstruct=J,y.events.length=pe,h=ke,ve()}}function ve(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function TM(e,n){const r=n.start._index,a=n.start._bufferIndex,s=n.end._index,c=n.end._bufferIndex;let f;if(r===s)f=[e[r].slice(a,c)];else{if(f=e.slice(r,s),a>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(a):f.shift()}c>0&&f.push(e[s].slice(0,c))}return f}function RM(e,n){let r=-1;const a=[];let s;for(;++r<e.length;){const c=e[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
202
+ `;break}case-3:{f=`\r
203
+ `;break}case-2:{f=n?" ":" ";break}case-1:{if(!n&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,a.push(f)}return a.join("")}const OM={[42]:ra,[43]:ra,[45]:ra,[48]:ra,[49]:ra,[50]:ra,[51]:ra,[52]:ra,[53]:ra,[54]:ra,[55]:ra,[56]:ra,[57]:ra,[62]:Hk},DM={[91]:AA},AM={[-2]:PS,[-1]:PS,[32]:PS},MM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:DM,disable:{null:[]},document:OM,flow:{[35]:IA,[42]:j0,[45]:[t_,j0],[60]:UA,[61]:t_,[95]:j0,[96]:Kk,[126]:Kk},flowInitial:AM,insideSpan:{null:[MS,xM]},string:{[38]:Yk,[92]:qk},text:{[-5]:FS,[-4]:FS,[-3]:FS,[33]:aM,[38]:Yk,[42]:MS,[60]:[sA,ZA],[91]:lM,[92]:[NA,qk],[93]:NS,[95]:MS,[96]:EA}},Symbol.toStringTag,{value:"Module"}));function LM(e){const r=W6([MM,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:r,content:s(tA),document:s(rA),flow:s(SM),string:s(wM),text:s(CM)};return a;function s(c){return f;function f(h){return _M(a,c,h)}}}const i_=/[\0\t\n\r]/g;function PM(){let e=1,n="",r=!0,a;return s;function s(c,f,h){const v=[];let y,S,E,C,x;for(c=n+c.toString(f),E=0,n="",r&&(c.charCodeAt(0)===65279&&E++,r=void 0);E<c.length;){if(i_.lastIndex=E,y=i_.exec(c),C=y&&y.index!==void 0?y.index:c.length,x=c.charCodeAt(C),!y){n=c.slice(E);break}if(x===10&&E===C&&a)v.push(-3),a=void 0;else switch(a&&(v.push(-5),a=void 0),E<C&&(v.push(c.slice(E,C)),e+=C-E),x){case 0:{v.push(65533),e++;break}case 9:{for(S=Math.ceil(e/4)*4,v.push(-2);e++<S;)v.push(-1);break}case 10:{v.push(-4),e=1;break}default:a=!0,e=1}E=C+1}return h&&(a&&v.push(-5),n&&v.push(n),v.push(null)),v}}function NM(e){for(;!Gk(e););return e}function a_(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const FM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IM(e){return e.replace(FM,zM)}function zM(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return a_(r.slice(c?2:1),c?16:10)}return LS(r)||e}const o_={}.hasOwnProperty,jM=function(e,n,r){return typeof n!="string"&&(r=n,n=void 0),$M(r)(NM(LM(r).document().write(PM()(e,n,!0))))};function $M(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ar),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:h(He),blockQuote:h(Le),characterEscape:ee,characterReference:ee,codeFenced:h(me),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:h(me,v),codeText:h(ze,v),codeTextData:ee,data:ee,codeFlowValue:ee,definition:h(be),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:h(ht),hardBreakEscape:h(Rt),hardBreakTrailing:h(Rt),htmlFlow:h(Gt,v),htmlFlowData:ee,htmlText:h(Gt,v),htmlTextData:ee,image:h(Tn),label:v,link:h(ar),listItem:h(dr),listItemValue:R,listOrdered:h(or,x),listUnordered:h(or),paragraph:h(Jn),reference:We,referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:h(He),strong:h(pr),thematicBreak:h(Ln)},exit:{atxHeading:S(),atxHeadingSequence:H,autolink:S(),autolinkEmail:Ue,autolinkProtocol:Ge,blockQuote:S(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:$e,codeFenced:S(F),codeFencedFence:M,codeFencedFenceInfo:T,codeFencedFenceMeta:D,codeFlowValue:oe,codeIndented:S(N),codeText:S(Ie),codeTextData:oe,data:oe,definition:S(),definitionDestinationString:$,definitionLabelString:V,definitionTitleString:I,emphasis:S(),hardBreakEscape:S(pe),hardBreakTrailing:S(pe),htmlFlow:S(ke),htmlFlowData:oe,htmlText:S(xe),htmlTextData:oe,image:S(Te),label:te,labelText:L,lineEnding:J,link:S(se),listItem:S(),listOrdered:S(),listUnordered:S(),paragraph:S(),referenceString:Re,resourceDestinationString:ye,resourceTitleString:U,resource:_e,setextHeading:S(ve),setextHeadingLineSequence:ne,setextHeadingText:Z,strong:S(),thematicBreak:S()}};l_(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(fe){let Ne={type:"root",children:[]};const mt={stack:[Ne],tokenStack:[],config:n,enter:y,exit:E,buffer:v,resume:C,setData:c,getData:f},qt=[];let De=-1;for(;++De<fe.length;)if(fe[De][1].type==="listOrdered"||fe[De][1].type==="listUnordered")if(fe[De][0]==="enter")qt.push(De);else{const it=qt.pop();De=s(fe,it,De)}for(De=-1;++De<fe.length;){const it=n[fe[De][0]];o_.call(it,fe[De][1].type)&&it[fe[De][1].type].call(Object.assign({sliceSerialize:fe[De][2].sliceSerialize},mt),fe[De][1])}if(mt.tokenStack.length>0){const it=mt.tokenStack[mt.tokenStack.length-1];(it[1]||s_).call(mt,void 0,it[0])}for(Ne.position={start:Xs(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Xs(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<n.transforms.length;)Ne=n.transforms[De](Ne)||Ne;return Ne}function s(fe,Ne,mt){let qt=Ne-1,De=-1,it=!1,Ot,Yt,yn,$n;for(;++qt<=mt;){const It=fe[qt];if(It[1].type==="listUnordered"||It[1].type==="listOrdered"||It[1].type==="blockQuote"?(It[0]==="enter"?De++:De--,$n=void 0):It[1].type==="lineEndingBlank"?It[0]==="enter"&&(Ot&&!$n&&!De&&!yn&&(yn=qt),$n=void 0):It[1].type==="linePrefix"||It[1].type==="listItemValue"||It[1].type==="listItemMarker"||It[1].type==="listItemPrefix"||It[1].type==="listItemPrefixWhitespace"||($n=void 0),!De&&It[0]==="enter"&&It[1].type==="listItemPrefix"||De===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Ot){let Or=qt;for(Yt=void 0;Or--;){const tn=fe[Or];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;Yt&&(fe[Yt][1].type="lineEndingBlank",it=!0),tn[1].type="lineEnding",Yt=Or}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}yn&&(!Yt||yn<Yt)&&(Ot._spread=!0),Ot.end=Object.assign({},Yt?fe[Yt][1].start:It[1].end),fe.splice(Yt||qt,0,["exit",Ot,It[2]]),qt++,mt++}It[1].type==="listItemPrefix"&&(Ot={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0},fe.splice(qt,0,["enter",Ot,It[2]]),qt++,mt++,yn=void 0,$n=!0)}}return fe[Ne][1]._spread=it,mt}function c(fe,Ne){r[fe]=Ne}function f(fe){return r[fe]}function h(fe,Ne){return mt;function mt(qt){y.call(this,fe(qt),qt),Ne&&Ne.call(this,qt)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(fe,Ne,mt){return this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ne,mt]),fe.position={start:Xs(Ne.start)},fe}function S(fe){return Ne;function Ne(mt){fe&&fe.call(this,mt),E.call(this,mt)}}function E(fe,Ne){const mt=this.stack.pop(),qt=this.tokenStack.pop();if(qt)qt[0].type!==fe.type&&(Ne?Ne.call(this,fe,qt[0]):(qt[1]||s_).call(this,fe,qt[0]));else throw new Error("Cannot close `"+fe.type+"` ("+Rh({start:fe.start,end:fe.end})+"): it’s not open");return mt.position.end=Xs(fe.end),mt}function C(){return H6(this.stack.pop())}function x(){c("expectingFirstListItemValue",!0)}function R(fe){if(f("expectingFirstListItemValue")){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(fe),10),c("expectingFirstListItemValue")}}function T(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=fe}function D(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=fe}function M(){f("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))}function F(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")}function N(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/(\r?\n|\r)$/g,"")}function V(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=Xf(this.sliceSerialize(fe)).toLowerCase()}function I(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function $(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function H(fe){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const mt=this.sliceSerialize(fe).length;Ne.depth=mt}}function Z(){c("setextHeadingSlurpLineEnding",!0)}function ne(fe){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(fe).charCodeAt(0)===61?1:2}function ve(){c("setextHeadingSlurpLineEnding")}function ee(fe){const Ne=this.stack[this.stack.length-1];let mt=Ne.children[Ne.children.length-1];(!mt||mt.type!=="text")&&(mt=Yn(),mt.position={start:Xs(fe.start)},Ne.children.push(mt)),this.stack.push(mt)}function oe(fe){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(fe),Ne.position.end=Xs(fe.end)}function J(fe){const Ne=this.stack[this.stack.length-1];if(f("atHardBreak")){const mt=Ne.children[Ne.children.length-1];mt.position.end=Xs(fe.end),c("atHardBreak");return}!f("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(Ne.type)&&(ee.call(this,fe),oe.call(this,fe))}function pe(){c("atHardBreak",!0)}function ke(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function xe(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function Ie(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function se(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function Te(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function L(fe){const Ne=this.sliceSerialize(fe),mt=this.stack[this.stack.length-2];mt.label=IM(Ne),mt.identifier=Xf(Ne).toLowerCase()}function te(){const fe=this.stack[this.stack.length-1],Ne=this.resume(),mt=this.stack[this.stack.length-1];if(c("inReference",!0),mt.type==="link"){const qt=fe.children;mt.children=qt}else mt.alt=Ne}function ye(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function U(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function _e(){c("inReference")}function We(){c("referenceType","collapsed")}function Re(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=Xf(this.sliceSerialize(fe)).toLowerCase(),c("referenceType","full")}function Oe(fe){c("characterReferenceType",fe.type)}function $e(fe){const Ne=this.sliceSerialize(fe),mt=f("characterReferenceType");let qt;mt?(qt=a_(Ne,mt==="characterReferenceMarkerNumeric"?10:16),c("characterReferenceType")):qt=LS(Ne);const De=this.stack.pop();De.value+=qt,De.position.end=Xs(fe.end)}function Ge(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(fe)}function Ue(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(fe)}function Le(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:void 0,children:[]}}function Rt(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function Tn(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function or(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function dr(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function Jn(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function Yn(){return{type:"text",value:""}}function Ln(){return{type:"thematicBreak"}}}function Xs(e){return{line:e.line,column:e.column,offset:e.offset}}function l_(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?l_(e,a):UM(e,a)}}function UM(e,n){let r;for(r in n)if(o_.call(n,r)){if(r==="canContainEols"){const a=n[r];a&&e[r].push(...a)}else if(r==="transforms"){const a=n[r];a&&e[r].push(...a)}else if(r==="enter"||r==="exit"){const a=n[r];a&&Object.assign(e[r],a)}}}function s_(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Rh({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Rh({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Rh({start:n.start,end:n.end})+") is still open")}function BM(e){Object.assign(this,{Parser:r=>{const a=this.data("settings");return jM(r,Object.assign({},a,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function VM(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function HM(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
204
+ `}]}function qM(e,n){const r=n.value?n.value+`
205
+ `:"",a=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,s={};a&&(s.className=["language-"+a]);let c={type:"element",tagName:"code",properties:s,children:[{type:"text",value:r}]};return n.meta&&(c.data={meta:n.meta}),e.patch(n,c),c=e.applyData(n,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(n,c),c}function WM(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function YM(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Jf(e){const n=[];let r=-1,a=0,s=0;for(;++r<e.length;){const c=e.charCodeAt(r);let f="";if(c===37&&Da(e.charCodeAt(r+1))&&Da(e.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const h=e.charCodeAt(r+1);c<56320&&h>56319&&h<57344?(f=String.fromCharCode(c,h),s=1):f="�"}else f=String.fromCharCode(c);f&&(n.push(e.slice(a,r),encodeURIComponent(f)),a=r+s+1,f=""),s&&(r+=s,s=0)}return n.join("")+e.slice(a)}function u_(e,n){const r=String(n.identifier).toUpperCase(),a=Jf(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let c;s===-1?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,c=e.footnoteOrder.length):(e.footnoteCounts[r]++,c=s+1);const f=e.footnoteCounts[r],h={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+a,id:e.clobberPrefix+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const v={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,v),e.applyData(n,v)}function ZM(e,n){const r=e.footnoteById;let a=1;for(;a in r;)a++;const s=String(a);return r[s]={type:"footnoteDefinition",identifier:s,children:[{type:"paragraph",children:n.children}],position:n.position},u_(e,{type:"footnoteReference",identifier:s,position:n.position})}function KM(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function GM(e,n){if(e.dangerous){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}return null}function c_(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+a};const s=e.all(n),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=a:s.push({type:"text",value:a}),s}function QM(e,n){const r=e.definition(n.identifier);if(!r)return c_(e,n);const a={src:Jf(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,s),e.applyData(n,s)}function XM(e,n){const r={src:Jf(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function JM(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function e8(e,n){const r=e.definition(n.identifier);if(!r)return c_(e,n);const a={href:Jf(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function t8(e,n){const r={href:Jf(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function n8(e,n,r){const a=e.all(n),s=r?r8(r):f_(n),c={},f=[];if(typeof n.checked=="boolean"){const S=a[0];let E;S&&S.type==="element"&&S.tagName==="p"?E=S:(E={type:"element",tagName:"p",properties:{},children:[]},a.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<a.length;){const S=a[h];(s||h!==0||S.type!=="element"||S.tagName!=="p")&&f.push({type:"text",value:`
206
+ `}),S.type==="element"&&S.tagName==="p"&&!s?f.push(...S.children):f.push(S)}const v=a[a.length-1];v&&(s||v.type!=="element"||v.tagName!=="p")&&f.push({type:"text",value:`
207
+ `});const y={type:"element",tagName:"li",properties:c,children:f};return e.patch(n,y),e.applyData(n,y)}function r8(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=f_(r[a])}return n}function f_(e){const n=e.spread;return n??e.children.length>1}function i8(e,n){const r={},a=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<a.length;){const f=a[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,c),e.applyData(n,c)}function a8(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function o8(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function l8(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const IS=d_("start"),zS=d_("end");function s8(e){return{start:IS(e),end:zS(e)}}function d_(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};return{line:a.line||null,column:a.column||null,offset:a.offset>-1?a.offset:null}}}function u8(e,n){const r=e.all(n),a=r.shift(),s=[];if(a){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},h=IS(n.children[1]),v=zS(n.children[n.children.length-1]);h.line&&v.line&&(f.position={start:h,end:v}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function c8(e,n,r){const a=r?r.children:void 0,c=(a?a.indexOf(n):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,h=f?f.length:n.children.length;let v=-1;const y=[];for(;++v<h;){const E=n.children[v],C={},x=f?f[v]:void 0;x&&(C.align=x);let R={type:"element",tagName:c,properties:C,children:[]};E&&(R.children=e.all(E),e.patch(E,R),R=e.applyData(n,R)),y.push(R)}const S={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(n,S),e.applyData(n,S)}function f8(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const p_=9,h_=32;function d8(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),s=0;const c=[];for(;a;)c.push(m_(n.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(n);return c.push(m_(n.slice(s),s>0,!1)),c.join("")}function m_(e,n,r){let a=0,s=e.length;if(n){let c=e.codePointAt(a);for(;c===p_||c===h_;)a++,c=e.codePointAt(a)}if(r){let c=e.codePointAt(s-1);for(;c===p_||c===h_;)s--,c=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function p8(e,n){const r={type:"text",value:d8(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function h8(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const m8={blockquote:VM,break:HM,code:qM,delete:WM,emphasis:YM,footnoteReference:u_,footnote:ZM,heading:KM,html:GM,imageReference:QM,image:XM,inlineCode:JM,linkReference:e8,link:t8,listItem:n8,list:i8,paragraph:a8,root:o8,strong:l8,table:u8,tableCell:f8,tableRow:c8,text:p8,thematicBreak:h8,toml:$0,yaml:$0,definition:$0,footnoteDefinition:$0};function $0(){return null}const v_=function(e){if(e==null)return b8;if(typeof e=="string")return y8(e);if(typeof e=="object")return Array.isArray(e)?v8(e):g8(e);if(typeof e=="function")return U0(e);throw new Error("Expected function, string, or object as test")};function v8(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=v_(e[r]);return U0(a);function a(...s){let c=-1;for(;++c<n.length;)if(n[c].call(this,...s))return!0;return!1}}function g8(e){return U0(n);function n(r){let a;for(a in e)if(r[a]!==e[a])return!1;return!0}}function y8(e){return U0(n);function n(r){return r&&r.type===e}}function U0(e){return n;function n(r,...a){return!!(r&&typeof r=="object"&&"type"in r&&e.call(this,r,...a))}}function b8(){return!0}function JY(e){return e}const S8=!0,g_=!1,E8="skip",x8=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null);const s=v_(n),c=a?-1:1;f(e,void 0,[])();function f(h,v,y){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const C=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(h.type+(C?"<"+C+">":""))+")"})}return E;function E(){let C=[],x,R,T;if((!n||s(h,v,y[y.length-1]||null))&&(C=w8(r(h,y)),C[0]===g_))return C;if(h.children&&C[0]!==E8)for(R=(a?h.children.length:-1)+c,T=y.concat(h);R>-1&&R<h.children.length;){if(x=f(h.children[R],R,T)(),x[0]===g_)return x;R=typeof x[1]=="number"?x[1]:R+c}return C}}};function w8(e){return Array.isArray(e)?e:typeof e=="number"?[S8,e]:[e]}const jS=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null),x8(e,n,s,a);function s(c,f){const h=f[f.length-1];return r(c,h?h.children.indexOf(c):null,h)}};function C8(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const y_={}.hasOwnProperty;function k8(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return jS(e,"definition",a=>{const s=b_(a.identifier);s&&!y_.call(n,s)&&(n[s]=a)}),r;function r(a){const s=b_(a);return s&&y_.call(n,s)?n[s]:null}}function b_(e){return String(e||"").toUpperCase()}const B0={}.hasOwnProperty;function _8(e,n){const r=n||{},a=r.allowDangerousHtml||!1,s={};return f.dangerous=a,f.clobberPrefix=r.clobberPrefix===void 0||r.clobberPrefix===null?"user-content-":r.clobberPrefix,f.footnoteLabel=r.footnoteLabel||"Footnotes",f.footnoteLabelTagName=r.footnoteLabelTagName||"h2",f.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},f.footnoteBackLabel=r.footnoteBackLabel||"Back to content",f.unknownHandler=r.unknownHandler,f.passThrough=r.passThrough,f.handlers={...m8,...r.handlers},f.definition=k8(e),f.footnoteById=s,f.footnoteOrder=[],f.footnoteCounts={},f.patch=T8,f.applyData=R8,f.one=h,f.all=v,f.wrap=D8,f.augment=c,jS(e,"footnoteDefinition",y=>{const S=String(y.identifier).toUpperCase();B0.call(s,S)||(s[S]=y)}),f;function c(y,S){if(y&&"data"in y&&y.data){const E=y.data;E.hName&&(S.type!=="element"&&(S={type:"element",tagName:"",properties:{},children:[]}),S.tagName=E.hName),S.type==="element"&&E.hProperties&&(S.properties={...S.properties,...E.hProperties}),"children"in S&&S.children&&E.hChildren&&(S.children=E.hChildren)}if(y){const E="type"in y?y:{position:y};C8(E)||(S.position={start:IS(E),end:zS(E)})}return S}function f(y,S,E,C){return Array.isArray(E)&&(C=E,E={}),c(y,{type:"element",tagName:S,properties:E||{},children:C||[]})}function h(y,S){return S_(f,y,S)}function v(y){return $S(f,y)}}function T8(e,n){e.position&&(n.position=s8(e))}function R8(e,n){let r=n;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,c=e.data.hProperties;typeof a=="string"&&(r.type==="element"?r.tagName=a:r={type:"element",tagName:a,properties:{},children:[]}),r.type==="element"&&c&&(r.properties={...r.properties,...c}),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function S_(e,n,r){const a=n&&n.type;if(!a)throw new Error("Expected node, got `"+n+"`");return B0.call(e.handlers,a)?e.handlers[a](e,n,r):e.passThrough&&e.passThrough.includes(a)?"children"in n?{...n,children:$S(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,r):O8(e,n)}function $S(e,n){const r=[];if("children"in n){const a=n.children;let s=-1;for(;++s<a.length;){const c=S_(e,a[s],n);if(c){if(s&&a[s-1].type==="break"&&(!Array.isArray(c)&&c.type==="text"&&(c.value=c.value.replace(/^\s+/,"")),!Array.isArray(c)&&c.type==="element")){const f=c.children[0];f&&f.type==="text"&&(f.value=f.value.replace(/^\s+/,""))}Array.isArray(c)?r.push(...c):r.push(c)}}}return r}function O8(e,n){const r=n.data||{},a="value"in n&&!(B0.call(r,"hProperties")||B0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:$S(e,n)};return e.patch(n,a),e.applyData(n,a)}function D8(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
208
+ `});++a<e.length;)a&&r.push({type:"text",value:`
209
+ `}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:`
210
+ `}),r}function A8(e){const n=[];let r=-1;for(;++r<e.footnoteOrder.length;){const a=e.footnoteById[e.footnoteOrder[r]];if(!a)continue;const s=e.all(a),c=String(a.identifier).toUpperCase(),f=Jf(c.toLowerCase());let h=0;const v=[];for(;++h<=e.footnoteCounts[c];){const E={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};h>1&&E.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(h)}]}),v.length>0&&v.push({type:"text",value:" "}),v.push(E)}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else s.push(...v);const S={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+f},children:e.wrap(s,!0)};e.patch(a,S),n.push(S)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
211
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:`
212
+ `}]}}function E_(e,n){const r=_8(e,n),a=r.one(e,null),s=A8(r);return s&&a.children.push({type:"text",value:`
213
+ `},s),Array.isArray(a)?{type:"root",children:a}:a}const M8=function(e,n){return e&&"run"in e?L8(e,n):P8(e||n)};function L8(e,n){return(r,a,s)=>{e.run(E_(r,n),a,c=>{s(c)})}}function P8(e){return n=>E_(n,e)}var US={exports:{}},V0={exports:{}},Sn={};/** @license React v16.13.1
214
+ * react-is.production.min.js
215
+ *
216
+ * Copyright (c) Facebook, Inc. and its affiliates.
217
+ *
218
+ * This source code is licensed under the MIT license found in the
219
+ * LICENSE file in the root directory of this source tree.
220
+ */var x_;function N8(){if(x_)return Sn;x_=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function N(I){if(typeof I=="object"&&I!==null){var $=I.$$typeof;switch($){case n:switch(I=I.type,I){case v:case y:case a:case c:case s:case E:return I;default:switch(I=I&&I.$$typeof,I){case h:case S:case R:case x:case f:return I;default:return $}}case r:return $}}}function V(I){return N(I)===y}return Sn.AsyncMode=v,Sn.ConcurrentMode=y,Sn.ContextConsumer=h,Sn.ContextProvider=f,Sn.Element=n,Sn.ForwardRef=S,Sn.Fragment=a,Sn.Lazy=R,Sn.Memo=x,Sn.Portal=r,Sn.Profiler=c,Sn.StrictMode=s,Sn.Suspense=E,Sn.isAsyncMode=function(I){return V(I)||N(I)===v},Sn.isConcurrentMode=V,Sn.isContextConsumer=function(I){return N(I)===h},Sn.isContextProvider=function(I){return N(I)===f},Sn.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===n},Sn.isForwardRef=function(I){return N(I)===S},Sn.isFragment=function(I){return N(I)===a},Sn.isLazy=function(I){return N(I)===R},Sn.isMemo=function(I){return N(I)===x},Sn.isPortal=function(I){return N(I)===r},Sn.isProfiler=function(I){return N(I)===c},Sn.isStrictMode=function(I){return N(I)===s},Sn.isSuspense=function(I){return N(I)===E},Sn.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===a||I===y||I===c||I===s||I===E||I===C||typeof I=="object"&&I!==null&&(I.$$typeof===R||I.$$typeof===x||I.$$typeof===f||I.$$typeof===h||I.$$typeof===S||I.$$typeof===D||I.$$typeof===M||I.$$typeof===F||I.$$typeof===T)},Sn.typeOf=N,Sn}var En={};/** @license React v16.13.1
221
+ * react-is.development.js
222
+ *
223
+ * Copyright (c) Facebook, Inc. and its affiliates.
224
+ *
225
+ * This source code is licensed under the MIT license found in the
226
+ * LICENSE file in the root directory of this source tree.
227
+ */var w_;function F8(){return w_||(w_=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function N(me){return typeof me=="string"||typeof me=="function"||me===a||me===y||me===c||me===s||me===E||me===C||typeof me=="object"&&me!==null&&(me.$$typeof===R||me.$$typeof===x||me.$$typeof===f||me.$$typeof===h||me.$$typeof===S||me.$$typeof===D||me.$$typeof===M||me.$$typeof===F||me.$$typeof===T)}function V(me){if(typeof me=="object"&&me!==null){var ze=me.$$typeof;switch(ze){case n:var be=me.type;switch(be){case v:case y:case a:case c:case s:case E:return be;default:var ht=be&&be.$$typeof;switch(ht){case h:case S:case R:case x:case f:return ht;default:return ze}}case r:return ze}}}var I=v,$=y,H=h,Z=f,ne=n,ve=S,ee=a,oe=R,J=x,pe=r,ke=c,xe=s,Ie=E,se=!1;function Te(me){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(me)||V(me)===v}function L(me){return V(me)===y}function te(me){return V(me)===h}function ye(me){return V(me)===f}function U(me){return typeof me=="object"&&me!==null&&me.$$typeof===n}function _e(me){return V(me)===S}function We(me){return V(me)===a}function Re(me){return V(me)===R}function Oe(me){return V(me)===x}function $e(me){return V(me)===r}function Ge(me){return V(me)===c}function Ue(me){return V(me)===s}function Le(me){return V(me)===E}En.AsyncMode=I,En.ConcurrentMode=$,En.ContextConsumer=H,En.ContextProvider=Z,En.Element=ne,En.ForwardRef=ve,En.Fragment=ee,En.Lazy=oe,En.Memo=J,En.Portal=pe,En.Profiler=ke,En.StrictMode=xe,En.Suspense=Ie,En.isAsyncMode=Te,En.isConcurrentMode=L,En.isContextConsumer=te,En.isContextProvider=ye,En.isElement=U,En.isForwardRef=_e,En.isFragment=We,En.isLazy=Re,En.isMemo=Oe,En.isPortal=$e,En.isProfiler=Ge,En.isStrictMode=Ue,En.isSuspense=Le,En.isValidElementType=N,En.typeOf=V}()),En}var C_;function k_(){return C_||(C_=1,process.env.NODE_ENV==="production"?V0.exports=N8():V0.exports=F8()),V0.exports}/*
228
+ object-assign
229
+ (c) Sindre Sorhus
230
+ @license MIT
231
+ */var BS,__;function I8(){if(__)return BS;__=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function s(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},h=0;h<10;h++)f["_"+String.fromCharCode(h)]=h;var v=Object.getOwnPropertyNames(f).map(function(S){return f[S]});if(v.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(S){y[S]=S}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return BS=s()?Object.assign:function(c,f){for(var h,v=a(c),y,S=1;S<arguments.length;S++){h=Object(arguments[S]);for(var E in h)n.call(h,E)&&(v[E]=h[E]);if(e){y=e(h);for(var C=0;C<y.length;C++)r.call(h,y[C])&&(v[y[C]]=h[y[C]])}}return v},BS}var VS,T_;function HS(){if(T_)return VS;T_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return VS=e,VS}var qS,R_;function O_(){return R_||(R_=1,qS=Function.call.bind(Object.prototype.hasOwnProperty)),qS}var WS,D_;function z8(){if(D_)return WS;D_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=HS(),r={},a=O_();e=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function s(c,f,h,v,y){if(process.env.NODE_ENV!=="production"){for(var S in c)if(a(c,S)){var E;try{if(typeof c[S]!="function"){var C=Error((v||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=c[S](f,S,v,h,null,n)}catch(R){E=R}if(E&&!(E instanceof Error)&&e((v||"React class")+": type specification of "+h+" `"+S+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var x=y?y():"";e("Failed "+h+" type: "+E.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},WS=s,WS}var YS,A_;function j8(){if(A_)return YS;A_=1;var e=k_(),n=I8(),r=HS(),a=O_(),s=z8(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(h){var v="Warning: "+h;typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}});function f(){return null}return YS=function(h,v){var y=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function E(L){var te=L&&(y&&L[y]||L[S]);if(typeof te=="function")return te}var C="<<anonymous>>",x={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:F(),arrayOf:N,element:V(),elementType:I(),instanceOf:$,node:ve(),objectOf:Z,oneOf:H,oneOfType:ne,shape:oe,exact:J};function R(L,te){return L===te?L!==0||1/L===1/te:L!==L&&te!==te}function T(L,te){this.message=L,this.data=te&&typeof te=="object"?te:{},this.stack=""}T.prototype=Error.prototype;function D(L){if(process.env.NODE_ENV!=="production")var te={},ye=0;function U(We,Re,Oe,$e,Ge,Ue,Le){if($e=$e||C,Ue=Ue||Oe,Le!==r){if(v){var me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=$e+":"+Oe;!te[ze]&&ye<3&&(c("You are manually calling a React.PropTypes validation function for the `"+Ue+"` prop on `"+$e+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[ze]=!0,ye++)}}return Re[Oe]==null?We?Re[Oe]===null?new T("The "+Ge+" `"+Ue+"` is marked as required "+("in `"+$e+"`, but its value is `null`.")):new T("The "+Ge+" `"+Ue+"` is marked as required in "+("`"+$e+"`, but its value is `undefined`.")):null:L(Re,Oe,$e,Ge,Ue)}var _e=U.bind(null,!1);return _e.isRequired=U.bind(null,!0),_e}function M(L){function te(ye,U,_e,We,Re,Oe){var $e=ye[U],Ge=xe($e);if(Ge!==L){var Ue=Ie($e);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return D(te)}function F(){return D(f)}function N(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Oe=ye[U];if(!Array.isArray(Oe)){var $e=xe(Oe);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an array."))}for(var Ge=0;Ge<Oe.length;Ge++){var Ue=L(Oe,Ge,_e,We,Re+"["+Ge+"]",r);if(Ue instanceof Error)return Ue}return null}return D(te)}function V(){function L(te,ye,U,_e,We){var Re=te[ye];if(!h(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return D(L)}function I(){function L(te,ye,U,_e,We){var Re=te[ye];if(!e.isValidElementType(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return D(L)}function $(L){function te(ye,U,_e,We,Re){if(!(ye[U]instanceof L)){var Oe=L.name||C,$e=Te(ye[U]);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected ")+("instance of `"+Oe+"`."))}return null}return D(te)}function H(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),f;function te(ye,U,_e,We,Re){for(var Oe=ye[U],$e=0;$e<L.length;$e++)if(R(Oe,L[$e]))return null;var Ge=JSON.stringify(L,function(Le,me){var ze=Ie(me);return ze==="symbol"?String(me):me});return new T("Invalid "+We+" `"+Re+"` of value `"+String(Oe)+"` "+("supplied to `"+_e+"`, expected one of "+Ge+"."))}return D(te)}function Z(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an object."));for(var Ge in Oe)if(a(Oe,Ge)){var Ue=L(Oe,Ge,_e,We,Re+"."+Ge,r);if(Ue instanceof Error)return Ue}return null}return D(te)}function ne(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var te=0;te<L.length;te++){var ye=L[te];if(typeof ye!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(ye)+" at index "+te+"."),f}function U(_e,We,Re,Oe,$e){for(var Ge=[],Ue=0;Ue<L.length;Ue++){var Le=L[Ue],me=Le(_e,We,Re,Oe,$e,r);if(me==null)return null;me.data&&a(me.data,"expectedType")&&Ge.push(me.data.expectedType)}var ze=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new T("Invalid "+Oe+" `"+$e+"` supplied to "+("`"+Re+"`"+ze+"."))}return D(U)}function ve(){function L(te,ye,U,_e,We){return pe(te[ye])?null:new T("Invalid "+_e+" `"+We+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return D(L)}function ee(L,te,ye,U,_e){return new T((L||"React class")+": "+te+" type `"+ye+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function oe(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ge in L){var Ue=L[Ge];if(typeof Ue!="function")return ee(_e,We,Re,Ge,Ie(Ue));var Le=Ue(Oe,Ge,_e,We,Re+"."+Ge,r);if(Le)return Le}return null}return D(te)}function J(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));var Ge=n({},ye[U],L);for(var Ue in Ge){var Le=L[Ue];if(a(L,Ue)&&typeof Le!="function")return ee(_e,We,Re,Ue,Ie(Le));if(!Le)return new T("Invalid "+We+" `"+Re+"` key `"+Ue+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(ye[U],null," ")+`
232
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var me=Le(Oe,Ue,_e,We,Re+"."+Ue,r);if(me)return me}return null}return D(te)}function pe(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(pe);if(L===null||h(L))return!0;var te=E(L);if(te){var ye=te.call(L),U;if(te!==L.entries){for(;!(U=ye.next()).done;)if(!pe(U.value))return!1}else for(;!(U=ye.next()).done;){var _e=U.value;if(_e&&!pe(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ke(L,te){return L==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function xe(L){var te=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":ke(te,L)?"symbol":te}function Ie(L){if(typeof L>"u"||L===null)return""+L;var te=xe(L);if(te==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return te}function se(L){var te=Ie(L);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function Te(L){return!L.constructor||!L.constructor.name?C:L.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},YS}var ZS,M_;function $8(){if(M_)return ZS;M_=1;var e=HS();function n(){}function r(){}return r.resetWarningCache=n,ZS=function(){function a(f,h,v,y,S,E){if(E!==e){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}a.isRequired=a;function s(){return a}var c={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c},ZS}if(process.env.NODE_ENV!=="production"){var U8=k_(),B8=!0;US.exports=j8()(U8.isElement,B8)}else US.exports=$8()();var V8=US.exports;const $t=Qf(V8);class Mh{constructor(n,r,a){this.property=n,this.normal=r,a&&(this.space=a)}}Mh.prototype.property={},Mh.prototype.normal={},Mh.prototype.space=null;function L_(e,n){const r={},a={};let s=-1;for(;++s<e.length;)Object.assign(r,e[s].property),Object.assign(a,e[s].normal);return new Mh(r,a,n)}function KS(e){return e.toLowerCase()}class Xa{constructor(n,r){this.property=n,this.attribute=r}}Xa.prototype.space=null,Xa.prototype.boolean=!1,Xa.prototype.booleanish=!1,Xa.prototype.overloadedBoolean=!1,Xa.prototype.number=!1,Xa.prototype.commaSeparated=!1,Xa.prototype.spaceSeparated=!1,Xa.prototype.commaOrSpaceSeparated=!1,Xa.prototype.mustUseProperty=!1,Xa.prototype.defined=!1;let H8=0;const Kt=Ec(),Rr=Ec(),P_=Ec(),Be=Ec(),qn=Ec(),ed=Ec(),Aa=Ec();function Ec(){return 2**++H8}const GS=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:Rr,commaOrSpaceSeparated:Aa,commaSeparated:ed,number:Be,overloadedBoolean:P_,spaceSeparated:qn},Symbol.toStringTag,{value:"Module"})),QS=Object.keys(GS);class XS extends Xa{constructor(n,r,a,s){let c=-1;if(super(n,r),N_(this,"space",s),typeof a=="number")for(;++c<QS.length;){const f=QS[c];N_(this,QS[c],(a&GS[f])===GS[f])}}}XS.prototype.defined=!0;function N_(e,n,r){r&&(e[n]=r)}const q8={}.hasOwnProperty;function td(e){const n={},r={};let a;for(a in e.properties)if(q8.call(e.properties,a)){const s=e.properties[a],c=new XS(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),n[a]=c,r[KS(a)]=a,r[KS(c.attribute)]=a}return new Mh(n,r,e.space)}const F_=td({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),I_=td({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function z_(e,n){return n in e?e[n]:n}function j_(e,n){return z_(e,n.toLowerCase())}const $_=td({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:j_,properties:{xmlns:null,xmlnsXLink:null}}),U_=td({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Rr,ariaAutoComplete:null,ariaBusy:Rr,ariaChecked:Rr,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:qn,ariaCurrent:null,ariaDescribedBy:qn,ariaDetails:null,ariaDisabled:Rr,ariaDropEffect:qn,ariaErrorMessage:null,ariaExpanded:Rr,ariaFlowTo:qn,ariaGrabbed:Rr,ariaHasPopup:null,ariaHidden:Rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qn,ariaLevel:Be,ariaLive:null,ariaModal:Rr,ariaMultiLine:Rr,ariaMultiSelectable:Rr,ariaOrientation:null,ariaOwns:qn,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:Rr,ariaReadOnly:Rr,ariaRelevant:null,ariaRequired:Rr,ariaRoleDescription:qn,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:Rr,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null}}),W8=td({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:j_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ed,acceptCharset:qn,accessKey:qn,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:qn,autoFocus:Kt,autoPlay:Kt,capture:Kt,charSet:null,checked:Kt,cite:null,className:qn,cols:Be,colSpan:null,content:null,contentEditable:Rr,controls:Kt,controlsList:qn,coords:Be|ed,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:P_,draggable:Rr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:qn,height:Be,hidden:Kt,high:Be,href:null,hrefLang:null,htmlFor:qn,httpEquiv:qn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:qn,itemRef:qn,itemScope:Kt,itemType:qn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:Be,pattern:null,ping:qn,placeholder:null,playsInline:Kt,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:qn,required:Kt,reversed:Kt,rows:Be,rowSpan:Be,sandbox:qn,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:Rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:Rr,width:Be,wrap:null,align:null,aLink:null,archive:qn,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:Rr,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:Be,security:null,unselectable:null}}),Y8=td({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:z_,properties:{about:Aa,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:qn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ed,g2:ed,glyphName:ed,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:Aa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Aa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Aa,rev:Aa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Aa,requiredFeatures:Aa,requiredFonts:Aa,requiredFormats:Aa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:Aa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Aa,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Aa,to:null,transform:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Z8=/^data[-\w.:]+$/i,B_=/-[a-z]/g,K8=/[A-Z]/g;function G8(e,n){const r=KS(n);let a=n,s=Xa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Z8.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(B_,X8);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!B_.test(c)){let f=c.replace(K8,Q8);f.charAt(0)!=="-"&&(f="-"+f),n="data"+f}}s=XS}return new s(a,n)}function Q8(e){return"-"+e.toLowerCase()}function X8(e){return e.charAt(1).toUpperCase()}const V_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},J8=L_([I_,F_,$_,U_,W8],"html"),e7=L_([I_,F_,$_,U_,Y8],"svg");function t7(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{jS(n,"element",(r,a,s)=>{const c=s;let f;if(e.allowedElements?f=!e.allowedElements.includes(r.tagName):e.disallowedElements&&(f=e.disallowedElements.includes(r.tagName)),!f&&e.allowElement&&typeof a=="number"&&(f=!e.allowElement(r,a,c)),f&&typeof a=="number")return e.unwrapDisallowed&&r.children?c.children.splice(a,1,...r.children):c.children.splice(a,1),a})}}var JS={exports:{}},xn={};/**
233
+ * @license React
234
+ * react-is.production.min.js
235
+ *
236
+ * Copyright (c) Facebook, Inc. and its affiliates.
237
+ *
238
+ * This source code is licensed under the MIT license found in the
239
+ * LICENSE file in the root directory of this source tree.
240
+ */var H_;function n7(){if(H_)return xn;H_=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R;R=Symbol.for("react.module.reference");function T(D){if(typeof D=="object"&&D!==null){var M=D.$$typeof;switch(M){case e:switch(D=D.type,D){case r:case s:case a:case y:case S:return D;default:switch(D=D&&D.$$typeof,D){case h:case f:case v:case C:case E:case c:return D;default:return M}}case n:return M}}}return xn.ContextConsumer=f,xn.ContextProvider=c,xn.Element=e,xn.ForwardRef=v,xn.Fragment=r,xn.Lazy=C,xn.Memo=E,xn.Portal=n,xn.Profiler=s,xn.StrictMode=a,xn.Suspense=y,xn.SuspenseList=S,xn.isAsyncMode=function(){return!1},xn.isConcurrentMode=function(){return!1},xn.isContextConsumer=function(D){return T(D)===f},xn.isContextProvider=function(D){return T(D)===c},xn.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},xn.isForwardRef=function(D){return T(D)===v},xn.isFragment=function(D){return T(D)===r},xn.isLazy=function(D){return T(D)===C},xn.isMemo=function(D){return T(D)===E},xn.isPortal=function(D){return T(D)===n},xn.isProfiler=function(D){return T(D)===s},xn.isStrictMode=function(D){return T(D)===a},xn.isSuspense=function(D){return T(D)===y},xn.isSuspenseList=function(D){return T(D)===S},xn.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===s||D===a||D===y||D===S||D===x||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===E||D.$$typeof===c||D.$$typeof===f||D.$$typeof===v||D.$$typeof===R||D.getModuleId!==void 0)},xn.typeOf=T,xn}var wn={};/**
241
+ * @license React
242
+ * react-is.development.js
243
+ *
244
+ * Copyright (c) Facebook, Inc. and its affiliates.
245
+ *
246
+ * This source code is licensed under the MIT license found in the
247
+ * LICENSE file in the root directory of this source tree.
248
+ */var q_;function r7(){return q_||(q_=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=!1,T=!1,D=!1,M=!1,F=!1,N;N=Symbol.for("react.module.reference");function V(be){return!!(typeof be=="string"||typeof be=="function"||be===r||be===s||F||be===a||be===y||be===S||M||be===x||R||T||D||typeof be=="object"&&be!==null&&(be.$$typeof===C||be.$$typeof===E||be.$$typeof===c||be.$$typeof===f||be.$$typeof===v||be.$$typeof===N||be.getModuleId!==void 0))}function I(be){if(typeof be=="object"&&be!==null){var ht=be.$$typeof;switch(ht){case e:var He=be.type;switch(He){case r:case s:case a:case y:case S:return He;default:var Rt=He&&He.$$typeof;switch(Rt){case h:case f:case v:case C:case E:case c:return Rt;default:return ht}}case n:return ht}}}var $=f,H=c,Z=e,ne=v,ve=r,ee=C,oe=E,J=n,pe=s,ke=a,xe=y,Ie=S,se=!1,Te=!1;function L(be){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(be){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ye(be){return I(be)===f}function U(be){return I(be)===c}function _e(be){return typeof be=="object"&&be!==null&&be.$$typeof===e}function We(be){return I(be)===v}function Re(be){return I(be)===r}function Oe(be){return I(be)===C}function $e(be){return I(be)===E}function Ge(be){return I(be)===n}function Ue(be){return I(be)===s}function Le(be){return I(be)===a}function me(be){return I(be)===y}function ze(be){return I(be)===S}wn.ContextConsumer=$,wn.ContextProvider=H,wn.Element=Z,wn.ForwardRef=ne,wn.Fragment=ve,wn.Lazy=ee,wn.Memo=oe,wn.Portal=J,wn.Profiler=pe,wn.StrictMode=ke,wn.Suspense=xe,wn.SuspenseList=Ie,wn.isAsyncMode=L,wn.isConcurrentMode=te,wn.isContextConsumer=ye,wn.isContextProvider=U,wn.isElement=_e,wn.isForwardRef=We,wn.isFragment=Re,wn.isLazy=Oe,wn.isMemo=$e,wn.isPortal=Ge,wn.isProfiler=Ue,wn.isStrictMode=Le,wn.isSuspense=me,wn.isSuspenseList=ze,wn.isValidElementType=V,wn.typeOf=I}()),wn}process.env.NODE_ENV==="production"?JS.exports=n7():JS.exports=r7();var i7=JS.exports;const a7=Qf(i7);function o7(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}function l7(e){return e.join(" ").trim()}function s7(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var eE={exports:{}},W_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,u7=/\n/g,c7=/^\s*/,f7=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,d7=/^:\s*/,p7=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,h7=/^[;\s]*/,m7=/^\s+|\s+$/g,v7=`
249
+ `,Y_="/",Z_="*",xc="",g7="comment",y7="declaration",b7=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var r=1,a=1;function s(R){var T=R.match(u7);T&&(r+=T.length);var D=R.lastIndexOf(v7);a=~D?R.length-D:a+R.length}function c(){var R={line:r,column:a};return function(T){return T.position=new f(R),y(),T}}function f(R){this.start=R,this.end={line:r,column:a},this.source=n.source}f.prototype.content=e;function h(R){var T=new Error(n.source+":"+r+":"+a+": "+R);if(T.reason=R,T.filename=n.source,T.line=r,T.column=a,T.source=e,!n.silent)throw T}function v(R){var T=R.exec(e);if(T){var D=T[0];return s(D),e=e.slice(D.length),T}}function y(){v(c7)}function S(R){var T;for(R=R||[];T=E();)T!==!1&&R.push(T);return R}function E(){var R=c();if(!(Y_!=e.charAt(0)||Z_!=e.charAt(1))){for(var T=2;xc!=e.charAt(T)&&(Z_!=e.charAt(T)||Y_!=e.charAt(T+1));)++T;if(T+=2,xc===e.charAt(T-1))return h("End of comment missing");var D=e.slice(2,T-2);return a+=2,s(D),e=e.slice(T),a+=2,R({type:g7,comment:D})}}function C(){var R=c(),T=v(f7);if(T){if(E(),!v(d7))return h("property missing ':'");var D=v(p7),M=R({type:y7,property:K_(T[0].replace(W_,xc)),value:D?K_(D[0].replace(W_,xc)):xc});return v(h7),M}}function x(){var R=[];S(R);for(var T;T=C();)T!==!1&&(R.push(T),S(R));return R}return y(),x()};function K_(e){return e?e.replace(m7,xc):xc}var S7=b7;function G_(e,n){var r=null;if(!e||typeof e!="string")return r;for(var a,s=S7(e),c=typeof n=="function",f,h,v=0,y=s.length;v<y;v++)a=s[v],f=a.property,h=a.value,c?n(f,h,a):h&&(r||(r={}),r[f]=h);return r}eE.exports=G_,eE.exports.default=G_;var E7=eE.exports;const x7=Qf(E7),tE={}.hasOwnProperty,w7=new Set(["table","thead","tbody","tfoot","tr"]);function Q_(e,n){const r=[];let a=-1,s;for(;++a<n.children.length;)s=n.children[a],s.type==="element"?r.push(C7(e,s,a,n)):s.type==="text"?(n.type!=="element"||!w7.has(n.tagName)||!o7(s))&&r.push(s.value):s.type==="raw"&&!e.options.skipHtml&&r.push(s.value);return r}function C7(e,n,r,a){const s=e.options,c=s.transformLinkUri===void 0?w6:s.transformLinkUri,f=e.schema,h=n.tagName,v={};let y=f,S;if(f.space==="html"&&h==="svg"&&(y=e7,e.schema=y),n.properties)for(S in n.properties)tE.call(n.properties,S)&&_7(v,S,n.properties[S],e);(h==="ol"||h==="ul")&&e.listDepth++;const E=Q_(e,n);(h==="ol"||h==="ul")&&e.listDepth--,e.schema=f;const C=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},x=s.components&&tE.call(s.components,h)?s.components[h]:h,R=typeof x=="string"||x===j.Fragment;if(!a7.isValidElementType(x))throw new TypeError(`Component for name \`${h}\` not defined or is not renderable`);if(v.key=r,h==="a"&&s.linkTarget&&(v.target=typeof s.linkTarget=="function"?s.linkTarget(String(v.href||""),n.children,typeof v.title=="string"?v.title:null):s.linkTarget),h==="a"&&c&&(v.href=c(String(v.href||""),n.children,typeof v.title=="string"?v.title:null)),!R&&h==="code"&&a.type==="element"&&a.tagName!=="pre"&&(v.inline=!0),!R&&(h==="h1"||h==="h2"||h==="h3"||h==="h4"||h==="h5"||h==="h6")&&(v.level=Number.parseInt(h.charAt(1),10)),h==="img"&&s.transformImageUri&&(v.src=s.transformImageUri(String(v.src||""),String(v.alt||""),typeof v.title=="string"?v.title:null)),!R&&h==="li"&&a.type==="element"){const T=k7(n);v.checked=T&&T.properties?!!T.properties.checked:null,v.index=nE(a,n),v.ordered=a.tagName==="ol"}return!R&&(h==="ol"||h==="ul")&&(v.ordered=h==="ol",v.depth=e.listDepth),(h==="td"||h==="th")&&(v.align&&(v.style||(v.style={}),v.style.textAlign=v.align,delete v.align),R||(v.isHeader=h==="th")),!R&&h==="tr"&&a.type==="element"&&(v.isHeader=a.tagName==="thead"),s.sourcePos&&(v["data-sourcepos"]=O7(C)),!R&&s.rawSourcePos&&(v.sourcePosition=n.position),!R&&s.includeElementIndex&&(v.index=nE(a,n),v.siblingCount=nE(a)),R||(v.node=n),E.length>0?j.createElement(x,v,E):j.createElement(x,v)}function k7(e){let n=-1;for(;++n<e.children.length;){const r=e.children[n];if(r.type==="element"&&r.tagName==="input")return r}return null}function nE(e,n){let r=-1,a=0;for(;++r<e.children.length&&e.children[r]!==n;)e.children[r].type==="element"&&a++;return a}function _7(e,n,r,a){const s=G8(a.schema,n);let c=r;c==null||c!==c||(Array.isArray(c)&&(c=s.commaSeparated?s7(c):l7(c)),s.property==="style"&&typeof c=="string"&&(c=T7(c)),s.space&&s.property?e[tE.call(V_,s.property)?V_[s.property]:s.property]=c:s.attribute&&(e[s.attribute]=c))}function T7(e){const n={};try{x7(e,r)}catch{}return n;function r(a,s){const c=a.slice(0,4)==="-ms-"?`ms-${a.slice(4)}`:a;n[c.replace(/-([a-z])/g,R7)]=s}}function R7(e,n){return n.toUpperCase()}function O7(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const X_={}.hasOwnProperty,D7="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",H0={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function J_(e){for(const c in H0)if(X_.call(H0,c)&&X_.call(e,c)){const f=H0[c];console.warn(`[react-markdown] Warning: please ${f.to?`use \`${f.to}\` instead of`:"remove"} \`${c}\` (see <${D7}#${f.id}> for more info)`),delete H0[c]}const n=j6().use(BM).use(e.remarkPlugins||[]).use(M8,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(t7,e),r=new xk;typeof e.children=="string"?r.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const a=n.runSync(n.parse(r),r);if(a.type!=="root")throw new TypeError("Expected a `root` node");let s=j.createElement(j.Fragment,{},Q_({options:e,schema:J8,listDepth:0},a));return e.className&&(s=j.createElement("div",{className:e.className},s)),s}J_.propTypes={children:$t.string,className:$t.string,allowElement:$t.func,allowedElements:$t.arrayOf($t.string),disallowedElements:$t.arrayOf($t.string),unwrapDisallowed:$t.bool,remarkPlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),rehypePlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),sourcePos:$t.bool,rawSourcePos:$t.bool,skipHtml:$t.bool,includeElementIndex:$t.bool,transformLinkUri:$t.oneOfType([$t.func,$t.bool]),linkTarget:$t.oneOfType([$t.func,$t.string]),transformImageUri:$t.func,components:$t.object};const A7=({text:e,type:n,styles:r})=>{const a=r==null?void 0:r[n],s={h1:({node:c,...f})=>he.jsx("h1",{...f,...a==null?void 0:a.heading1}),h2:({node:c,...f})=>he.jsx("h2",{...f,...a==null?void 0:a.heading2}),h3:({node:c,...f})=>he.jsx("h3",{...f,...a==null?void 0:a.heading3}),h4:"h3",h5:"h3",h6:"h3",em:({node:c,...f})=>he.jsx("em",{...f,...a==null?void 0:a.italic}),strong:({node:c,...f})=>he.jsx("strong",{...f,...a==null?void 0:a.bold}),p:({node:c,...f})=>he.jsx("p",{...f,...a==null?void 0:a.text}),hr:({node:c,...f})=>he.jsx("hr",{...f,...a==null?void 0:a.horizontalRule}),a:({node:c,...f})=>he.jsx("a",{...f,...a==null?void 0:a.link}),ol:({node:c,ordered:f,...h})=>he.jsx("ol",{...h,...a==null?void 0:a.orderedList}),ul:({node:c,ordered:f,...h})=>he.jsx("ul",{...h,...a==null?void 0:a.unorderedList}),li:({node:c,ordered:f,...h})=>he.jsx("li",{...h,...a==null?void 0:a.listItem}),br:({node:c,...f})=>he.jsx("br",{...f,...a==null?void 0:a.lineBreak}),img:()=>null,pre:()=>null};return he.jsx(J_,{components:s,children:e})},eT=j.createContext(null);function tT(){const e=j.useContext(eT);if(!e)throw new Error("useComposerContext must be used within a Message");return e}const nT=j.createContext(null);function M7(){const e=j.useContext(nT);if(!e)throw new Error("useMessageContext must be used within a Message");return e}const rT=j.createContext(null);function L7(){const e=j.useContext(rT);if(!e)throw new Error("useModalContext must be used within a ModalProvider");return e}const iT=j.createContext(null);function cr(){const e=j.useContext(iT);if(!e)throw new Error("useWebchatContext must be used within a WebchatProvider");return e}const P7=({text:e,buttonValue:n,type:r,styles:a,variant:s,groupId:c,reusable:f,...h})=>{const{eventEmitter:v,client:y}=cr(),[S,E]=j.useState(!1),[C,x]=j.useState(!1),[R,T]=j.useState(!1);j.useEffect(()=>{if(c)return v.on(`button-group-${c}-click`,()=>{x(!0),f||T(!0)})},[v,c,f]);function D(){c&&v.emit(`button-group-${c}-click`),E(!0),f||T(!0),s!=="link"&&y.sendMessage(n)}return he.jsx(N7,{...h,variant:s,onClick:D,disabled:R,"data-activated":S?"":void 0,"data-group-activated":C?"":void 0,"data-type":s,value:n,...a==null?void 0:a[r],children:e})},N7=e=>{if(e.variant==="link"){const{value:a,variant:s,...c}=e;return he.jsx("a",{...c,href:a,target:"_blank",rel:"noopener noreferrer"})}const{variant:n,...r}=e;return he.jsx("button",{...r})},F7=j.forwardRef(({block:e,styles:n,type:r,...a},s)=>he.jsx("div",{...a,...n==null?void 0:n[r],ref:s,children:he.jsx(ud,{styles:n,block:e})}));function I7(e,n){const r=n?`The ${n} has been copied to your clipboard.`:"Copied to clipboard.";return navigator.clipboard.writeText(e).then(()=>JL({title:r,type:"success"}))}const z7=(e,n={})=>new Promise((r,a)=>{if(typeof window>"u")return a("Window is not defined");if(!e)return a("Url is not defined");let s=null;const c=new Image;c.addEventListener("load",()=>{s&&clearTimeout(s),r({width:c.naturalWidth,height:c.naturalHeight})}),c.addEventListener("error",f=>{s&&clearTimeout(s),a(`${f.type}: ${f.message}`)}),c.src=e,n.timeout&&(s=setTimeout(()=>a("Timeout"),n.timeout))});let j7={data:""},$7=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||j7,U7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,B7=/\/\*[^]*?\*\/| +/g,aT=/\n+/g,Js=(e,n)=>{let r="",a="",s="";for(let c in e){let f=e[c];c[0]=="@"?c[1]=="i"?r=c+" "+f+";":a+=c[1]=="f"?Js(f,c):c+"{"+Js(f,c[1]=="k"?"":n)+"}":typeof f=="object"?a+=Js(f,n?n.replace(/([^,])+/g,h=>c.replace(/(^:.*)|([^,])+/g,v=>/&/.test(v)?v.replace(/&/g,h):h?h+" "+v:v)):c):f!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Js.p?Js.p(c,f):c+":"+f+";")}return r+(n&&s?n+"{"+s+"}":s)+a},Wl={},oT=e=>{if(typeof e=="object"){let n="";for(let r in e)n+=r+oT(e[r]);return n}return e},V7=(e,n,r,a,s)=>{let c=oT(e),f=Wl[c]||(Wl[c]=(v=>{let y=0,S=11;for(;y<v.length;)S=101*S+v.charCodeAt(y++)>>>0;return"go"+S})(c));if(!Wl[f]){let v=c!==e?e:(y=>{let S,E,C=[{}];for(;S=U7.exec(y.replace(B7,""));)S[4]?C.shift():S[3]?(E=S[3].replace(aT," ").trim(),C.unshift(C[0][E]=C[0][E]||{})):C[0][S[1]]=S[2].replace(aT," ").trim();return C[0]})(e);Wl[f]=Js(s?{["@keyframes "+f]:v}:v,r?"":"."+f)}let h=r&&Wl.g?Wl.g:null;return r&&(Wl.g=Wl[f]),((v,y,S,E)=>{E?y.data=y.data.replace(E,v):y.data.indexOf(v)===-1&&(y.data=S?v+y.data:y.data+v)})(Wl[f],n,a,h),f},H7=(e,n,r)=>e.reduce((a,s,c)=>{let f=n[c];if(f&&f.call){let h=f(r),v=h&&h.props&&h.props.className||/^go/.test(h)&&h;f=v?"."+v:h&&typeof h=="object"?h.props?"":Js(h,""):h===!1?"":h}return a+s+(f??"")},"");function q0(e){let n=this||{},r=e.call?e(n.p):e;return V7(r.unshift?r.raw?H7(r,[].slice.call(arguments,1),n.p):r.reduce((a,s)=>Object.assign(a,s&&s.call?s(n.p):s),{}):r,$7(n.target),n.g,n.o,n.k)}let lT,rE,iE;q0.bind({g:1});let Yl=q0.bind({k:1});function q7(e,n,r,a){Js.p=n,lT=e,rE=r,iE=a}function eu(e,n){let r=this||{};return function(){let a=arguments;function s(c,f){let h=Object.assign({},c),v=h.className||s.className;r.p=Object.assign({theme:rE&&rE()},h),r.o=/ *go\d+/.test(v),h.className=q0.apply(r,a)+(v?" "+v:""),n&&(h.ref=f);let y=e;return e[0]&&(y=h.as||e,delete h.as),iE&&y[0]&&iE(h),lT(y,h)}return n?n(s):s}}var W7=e=>typeof e=="function",W0=(e,n)=>W7(e)?e(n):e,Y7=(()=>{let e=0;return()=>(++e).toString()})(),sT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),Z7=20,Y0=new Map,K7=1e3,uT=e=>{if(Y0.has(e))return;let n=setTimeout(()=>{Y0.delete(e),wc({type:4,toastId:e})},K7);Y0.set(e,n)},G7=e=>{let n=Y0.get(e);n&&clearTimeout(n)},aE=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,Z7)};case 1:return n.toast.id&&G7(n.toast.id),{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:r}=n;return e.toasts.find(c=>c.id===r.id)?aE(e,{type:1,toast:r}):aE(e,{type:0,toast:r});case 3:let{toastId:a}=n;return a?uT(a):e.toasts.forEach(c=>{uT(c.id)}),{...e,toasts:e.toasts.map(c=>c.id===a||a===void 0?{...c,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let s=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+s}))}}},Z0=[],K0={toasts:[],pausedAt:void 0},wc=e=>{K0=aE(K0,e),Z0.forEach(n=>{n(K0)})},Q7={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},X7=(e={})=>{let[n,r]=j.useState(K0);j.useEffect(()=>(Z0.push(r),()=>{let s=Z0.indexOf(r);s>-1&&Z0.splice(s,1)}),[n]);let a=n.toasts.map(s=>{var c,f;return{...e,...e[s.type],...s,duration:s.duration||((c=e[s.type])==null?void 0:c.duration)||(e==null?void 0:e.duration)||Q7[s.type],style:{...e.style,...(f=e[s.type])==null?void 0:f.style,...s.style}}});return{...n,toasts:a}},J7=(e,n="blank",r)=>({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Y7()}),Lh=e=>(n,r)=>{let a=J7(n,e,r);return wc({type:2,toast:a}),a.id},ia=(e,n)=>Lh("blank")(e,n);ia.error=Lh("error"),ia.success=Lh("success"),ia.loading=Lh("loading"),ia.custom=Lh("custom"),ia.dismiss=e=>{wc({type:3,toastId:e})},ia.remove=e=>wc({type:4,toastId:e}),ia.promise=(e,n,r)=>{let a=ia.loading(n.loading,{...r,...r==null?void 0:r.loading});return e.then(s=>(ia.success(W0(n.success,s),{id:a,...r,...r==null?void 0:r.success}),s)).catch(s=>{ia.error(W0(n.error,s),{id:a,...r,...r==null?void 0:r.error})}),e};var eL=(e,n)=>{wc({type:1,toast:{id:e,height:n}})},tL=()=>{wc({type:5,time:Date.now()})},nL=e=>{let{toasts:n,pausedAt:r}=X7(e);j.useEffect(()=>{if(r)return;let c=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let v=(h.duration||0)+h.pauseDuration-(c-h.createdAt);if(v<0){h.visible&&ia.dismiss(h.id);return}return setTimeout(()=>ia.dismiss(h.id),v)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r]);let a=j.useCallback(()=>{r&&wc({type:6,time:Date.now()})},[r]),s=j.useCallback((c,f)=>{let{reverseOrder:h=!1,gutter:v=8,defaultPosition:y}=f||{},S=n.filter(x=>(x.position||y)===(c.position||y)&&x.height),E=S.findIndex(x=>x.id===c.id),C=S.filter((x,R)=>R<E&&x.visible).length;return S.filter(x=>x.visible).slice(...h?[C+1]:[0,C]).reduce((x,R)=>x+(R.height||0)+v,0)},[n]);return{toasts:n,handlers:{updateHeight:eL,startPause:tL,endPause:a,calculateOffset:s}}},rL=Yl`
250
+ from {
251
+ transform: scale(0) rotate(45deg);
252
+ opacity: 0;
253
+ }
254
+ to {
255
+ transform: scale(1) rotate(45deg);
256
+ opacity: 1;
257
+ }`,iL=Yl`
258
+ from {
259
+ transform: scale(0);
260
+ opacity: 0;
261
+ }
262
+ to {
263
+ transform: scale(1);
264
+ opacity: 1;
265
+ }`,aL=Yl`
266
+ from {
267
+ transform: scale(0) rotate(90deg);
268
+ opacity: 0;
269
+ }
270
+ to {
271
+ transform: scale(1) rotate(90deg);
272
+ opacity: 1;
273
+ }`,oL=eu("div")`
274
+ width: 20px;
275
+ opacity: 0;
276
+ height: 20px;
277
+ border-radius: 10px;
278
+ background: ${e=>e.primary||"#ff4b4b"};
279
+ position: relative;
280
+ transform: rotate(45deg);
281
+
282
+ animation: ${rL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
283
+ forwards;
284
+ animation-delay: 100ms;
285
+
286
+ &:after,
287
+ &:before {
288
+ content: '';
289
+ animation: ${iL} 0.15s ease-out forwards;
290
+ animation-delay: 150ms;
291
+ position: absolute;
292
+ border-radius: 3px;
293
+ opacity: 0;
294
+ background: ${e=>e.secondary||"#fff"};
295
+ bottom: 9px;
296
+ left: 4px;
297
+ height: 2px;
298
+ width: 12px;
299
+ }
300
+
301
+ &:before {
302
+ animation: ${aL} 0.15s ease-out forwards;
303
+ animation-delay: 180ms;
304
+ transform: rotate(90deg);
305
+ }
306
+ `,lL=Yl`
307
+ from {
308
+ transform: rotate(0deg);
309
+ }
310
+ to {
311
+ transform: rotate(360deg);
312
+ }
313
+ `,sL=eu("div")`
314
+ width: 12px;
315
+ height: 12px;
316
+ box-sizing: border-box;
317
+ border: 2px solid;
318
+ border-radius: 100%;
319
+ border-color: ${e=>e.secondary||"#e0e0e0"};
320
+ border-right-color: ${e=>e.primary||"#616161"};
321
+ animation: ${lL} 1s linear infinite;
322
+ `,uL=Yl`
323
+ from {
324
+ transform: scale(0) rotate(45deg);
325
+ opacity: 0;
326
+ }
327
+ to {
328
+ transform: scale(1) rotate(45deg);
329
+ opacity: 1;
330
+ }`,cL=Yl`
331
+ 0% {
332
+ height: 0;
333
+ width: 0;
334
+ opacity: 0;
335
+ }
336
+ 40% {
337
+ height: 0;
338
+ width: 6px;
339
+ opacity: 1;
340
+ }
341
+ 100% {
342
+ opacity: 1;
343
+ height: 10px;
344
+ }`,fL=eu("div")`
345
+ width: 20px;
346
+ opacity: 0;
347
+ height: 20px;
348
+ border-radius: 10px;
349
+ background: ${e=>e.primary||"#61d345"};
350
+ position: relative;
351
+ transform: rotate(45deg);
352
+
353
+ animation: ${uL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
354
+ forwards;
355
+ animation-delay: 100ms;
356
+ &:after {
357
+ content: '';
358
+ box-sizing: border-box;
359
+ animation: ${cL} 0.2s ease-out forwards;
360
+ opacity: 0;
361
+ animation-delay: 200ms;
362
+ position: absolute;
363
+ border-right: 2px solid;
364
+ border-bottom: 2px solid;
365
+ border-color: ${e=>e.secondary||"#fff"};
366
+ bottom: 6px;
367
+ left: 6px;
368
+ height: 10px;
369
+ width: 6px;
370
+ }
371
+ `,dL=eu("div")`
372
+ position: absolute;
373
+ `,pL=eu("div")`
374
+ position: relative;
375
+ display: flex;
376
+ justify-content: center;
377
+ align-items: center;
378
+ min-width: 20px;
379
+ min-height: 20px;
380
+ `,hL=Yl`
381
+ from {
382
+ transform: scale(0.6);
383
+ opacity: 0.4;
384
+ }
385
+ to {
386
+ transform: scale(1);
387
+ opacity: 1;
388
+ }`,mL=eu("div")`
389
+ position: relative;
390
+ transform: scale(0.6);
391
+ opacity: 0.4;
392
+ min-width: 20px;
393
+ animation: ${hL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
394
+ forwards;
395
+ `,vL=({toast:e})=>{let{icon:n,type:r,iconTheme:a}=e;return n!==void 0?typeof n=="string"?Y.createElement(mL,null,n):n:r==="blank"?null:Y.createElement(pL,null,Y.createElement(sL,{...a}),r!=="loading"&&Y.createElement(dL,null,r==="error"?Y.createElement(oL,{...a}):Y.createElement(fL,{...a})))},gL=e=>`
396
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
397
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
398
+ `,yL=e=>`
399
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
400
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
401
+ `,bL="0%{opacity:0;} 100%{opacity:1;}",SL="0%{opacity:1;} 100%{opacity:0;}",EL=eu("div")`
402
+ display: flex;
403
+ align-items: center;
404
+ background: #fff;
405
+ color: #363636;
406
+ line-height: 1.3;
407
+ will-change: transform;
408
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
409
+ max-width: 350px;
410
+ pointer-events: auto;
411
+ padding: 8px 10px;
412
+ border-radius: 8px;
413
+ `,xL=eu("div")`
414
+ display: flex;
415
+ justify-content: center;
416
+ margin: 4px 10px;
417
+ color: inherit;
418
+ flex: 1 1 auto;
419
+ white-space: pre-line;
420
+ `,wL=(e,n)=>{let r=e.includes("top")?1:-1,[a,s]=sT()?[bL,SL]:[gL(r),yL(r)];return{animation:n?`${Yl(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Yl(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},CL=Y.memo(({toast:e,position:n,style:r,children:a})=>{let s=e.height?wL(e.position||n||"top-center",e.visible):{opacity:0},c=Y.createElement(vL,{toast:e}),f=Y.createElement(xL,{...e.ariaProps},W0(e.message,e));return Y.createElement(EL,{className:e.className,style:{...s,...r,...e.style}},typeof a=="function"?a({icon:c,message:f}):Y.createElement(Y.Fragment,null,c,f))});q7(Y.createElement);var kL=({id:e,className:n,style:r,onHeightUpdate:a,children:s})=>{let c=Y.useCallback(f=>{if(f){let h=()=>{let v=f.getBoundingClientRect().height;a(e,v)};h(),new MutationObserver(h).observe(f,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return Y.createElement("div",{ref:c,className:n,style:r},s)},_L=(e,n)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:sT()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(r?1:-1)}px)`,...a,...s}},TL=q0`
421
+ z-index: 9999;
422
+ > * {
423
+ pointer-events: auto;
424
+ }
425
+ `,G0=16,RL=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:a,children:s,containerStyle:c,containerClassName:f})=>{let{toasts:h,handlers:v}=nL(r);return Y.createElement("div",{style:{position:"fixed",zIndex:9999,top:G0,left:G0,right:G0,bottom:G0,pointerEvents:"none",...c},className:f,onMouseEnter:v.startPause,onMouseLeave:v.endPause},h.map(y=>{let S=y.position||n,E=v.calculateOffset(y,{reverseOrder:e,gutter:a,defaultPosition:n}),C=_L(S,E);return Y.createElement(kL,{id:y.id,key:y.id,onHeightUpdate:v.updateHeight,className:y.visible?TL:"",style:C},y.type==="custom"?W0(y.message,y):s?s(y):Y.createElement(CL,{toast:y,position:S}))}))},OL=Object.defineProperty,DL=(e,n,r)=>n in e?OL(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,oE=(e,n,r)=>(DL(e,typeof n!="symbol"?n+"":n,r),r);let AL=class{constructor(){oE(this,"current",this.detect()),oE(this,"handoffState","pending"),oE(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ph=new AL,Q0=(e,n)=>{Ph.isServer?j.useEffect(e,n):j.useLayoutEffect(e,n)};function nd(e){let n=j.useRef(e);return Q0(()=>{n.current=e},[e]),n}function ML(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function X0(){let e=[],n=[],r={enqueue(a){n.push(a)},addEventListener(a,s,c,f){return a.addEventListener(s,c,f),r.add(()=>a.removeEventListener(s,c,f))},requestAnimationFrame(...a){let s=requestAnimationFrame(...a);return r.add(()=>cancelAnimationFrame(s))},nextFrame(...a){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...a))},setTimeout(...a){let s=setTimeout(...a);return r.add(()=>clearTimeout(s))},microTask(...a){let s={current:!0};return ML(()=>{s.current&&a[0]()}),r.add(()=>{s.current=!1})},add(a){return e.push(a),()=>{let s=e.indexOf(a);if(s>=0){let[c]=e.splice(s,1);c()}}},dispose(){for(let a of e.splice(0))a()},async workQueue(){for(let a of n.splice(0))await a()},style(a,s,c){let f=a.style.getPropertyValue(s);return Object.assign(a.style,{[s]:c}),this.add(()=>{Object.assign(a.style,{[s]:f})})}};return r}function cT(){let[e]=j.useState(X0);return j.useEffect(()=>()=>e.dispose(),[e]),e}let Cc=function(e){let n=nd(e);return j.useCallback((...r)=>n.current(...r),[n])};function fT(){let[e,n]=j.useState(Ph.isHandoffComplete);return e&&Ph.isHandoffComplete===!1&&n(!1),j.useEffect(()=>{e!==!0&&n(!0)},[e]),j.useEffect(()=>Ph.handoff(),[]),e}function rl(e,n,...r){if(e in n){let s=n[e];return typeof s=="function"?s(...r):s}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,rl),a}let LL=Symbol();function dT(...e){let n=j.useRef(e);j.useEffect(()=>{n.current=e},[e]);let r=Cc(a=>{for(let s of n.current)s!=null&&(typeof s=="function"?s(a):s.current=a)});return e.every(a=>a==null||(a==null?void 0:a[LL]))?void 0:r}function pT(...e){return e.filter(Boolean).join(" ")}var hT=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hT||{}),Zl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Zl||{});function mT({ourProps:e,theirProps:n,slot:r,defaultTag:a,features:s,visible:c=!0,name:f}){let h=vT(n,e);if(c)return J0(h,r,a,f);let v=s??0;if(v&2){let{static:y=!1,...S}=h;if(y)return J0(S,r,a,f)}if(v&1){let{unmount:y=!0,...S}=h;return rl(y?0:1,{[0](){return null},[1](){return J0({...S,hidden:!0,style:{display:"none"}},r,a,f)}})}return J0(h,r,a,f)}function J0(e,n={},r,a){var s;let{as:c=r,children:f,refName:h="ref",...v}=sE(e,["unmount","static"]),y=e.ref!==void 0?{[h]:e.ref}:{},S=typeof f=="function"?f(n):f;v.className&&typeof v.className=="function"&&(v.className=v.className(n));let E={};if(n){let C=!1,x=[];for(let[R,T]of Object.entries(n))typeof T=="boolean"&&(C=!0),T===!0&&x.push(R);C&&(E["data-headlessui-state"]=x.join(" "))}if(c===j.Fragment&&Object.keys(gT(v)).length>0){if(!j.isValidElement(S)||Array.isArray(S)&&S.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(v).map(R=>` - ${R}`).join(`
426
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(R=>` - ${R}`).join(`
427
+ `)].join(`
428
+ `));let C=pT((s=S.props)==null?void 0:s.className,v.className),x=C?{className:C}:{};return j.cloneElement(S,Object.assign({},vT(S.props,gT(sE(v,["ref"]))),E,y,PL(S.ref,y.ref),x))}return j.createElement(c,Object.assign({},sE(v,["ref"]),c!==j.Fragment&&y,c!==j.Fragment&&E),S)}function PL(...e){return{ref:e.every(n=>n==null)?void 0:n=>{for(let r of e)r!=null&&(typeof r=="function"?r(n):r.current=n)}}}function vT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let a of e)for(let s in a)s.startsWith("on")&&typeof a[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(a[s])):n[s]=a[s];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(a=>[a,void 0])));for(let a in r)Object.assign(n,{[a](s,...c){let f=r[a];for(let h of f){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;h(s,...c)}}});return n}function lE(e){var n;return Object.assign(j.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function gT(e){let n=Object.assign({},e);for(let r in n)n[r]===void 0&&delete n[r];return n}function sE(e,n=[]){let r=Object.assign({},e);for(let a of n)a in r&&delete r[a];return r}let uE=j.createContext(null);uE.displayName="OpenClosedContext";var Kl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kl||{});function yT(){return j.useContext(uE)}function NL({value:e,children:n}){return j.createElement(uE.Provider,{value:e},n)}function bT(){let e=j.useRef(!1);return Q0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function FL(e=0){let[n,r]=j.useState(e),a=j.useCallback(h=>r(v=>v|h),[n]),s=j.useCallback(h=>!!(n&h),[n]),c=j.useCallback(h=>r(v=>v&~h),[r]),f=j.useCallback(h=>r(v=>v^h),[r]);return{flags:n,addFlag:a,hasFlag:s,removeFlag:c,toggleFlag:f}}function IL(e){let n={called:!1};return(...r)=>{if(!n.called)return n.called=!0,e(...r)}}function cE(e,...n){e&&n.length>0&&e.classList.add(...n)}function fE(e,...n){e&&n.length>0&&e.classList.remove(...n)}function zL(e,n){let r=X0();if(!e)return r.dispose;let{transitionDuration:a,transitionDelay:s}=getComputedStyle(e),[c,f]=[a,s].map(h=>{let[v=0]=h.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,S)=>S-y);return v});if(c+f!==0){let h=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(n(),h())})}else n();return r.add(()=>n()),r.dispose}function jL(e,n,r,a){let s=r?"enter":"leave",c=X0(),f=a!==void 0?IL(a):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let h=rl(s,{enter:()=>n.enter,leave:()=>n.leave}),v=rl(s,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),y=rl(s,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return fE(e,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),cE(e,...h,...y),c.nextFrame(()=>{fE(e,...y),cE(e,...v),zL(e,()=>(fE(e,...h),cE(e,...n.entered),f()))}),c.dispose}function $L({container:e,direction:n,classes:r,onStart:a,onStop:s}){let c=bT(),f=cT(),h=nd(n);Q0(()=>{let v=X0();f.add(v.dispose);let y=e.current;if(y&&h.current!=="idle"&&c.current)return v.dispose(),a.current(h.current),v.add(jL(y,r.current,h.current==="enter",()=>{v.dispose(),s.current(h.current)})),v.dispose},[n])}function kc(e=""){return e.split(" ").filter(n=>n.trim().length>1)}let eg=j.createContext(null);eg.displayName="TransitionContext";var UL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(UL||{});function BL(){let e=j.useContext(eg);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function VL(){let e=j.useContext(tg);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let tg=j.createContext(null);tg.displayName="NestingContext";function ng(e){return"children"in e?ng(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function ST(e,n){let r=nd(e),a=j.useRef([]),s=bT(),c=cT(),f=Cc((x,R=Zl.Hidden)=>{let T=a.current.findIndex(({el:D})=>D===x);T!==-1&&(rl(R,{[Zl.Unmount](){a.current.splice(T,1)},[Zl.Hidden](){a.current[T].state="hidden"}}),c.microTask(()=>{var D;!ng(a)&&s.current&&((D=r.current)==null||D.call(r))}))}),h=Cc(x=>{let R=a.current.find(({el:T})=>T===x);return R?R.state!=="visible"&&(R.state="visible"):a.current.push({el:x,state:"visible"}),()=>f(x,Zl.Unmount)}),v=j.useRef([]),y=j.useRef(Promise.resolve()),S=j.useRef({enter:[],leave:[],idle:[]}),E=Cc((x,R,T)=>{v.current.splice(0),n&&(n.chains.current[R]=n.chains.current[R].filter(([D])=>D!==x)),n==null||n.chains.current[R].push([x,new Promise(D=>{v.current.push(D)})]),n==null||n.chains.current[R].push([x,new Promise(D=>{Promise.all(S.current[R].map(([M,F])=>F)).then(()=>D())})]),R==="enter"?y.current=y.current.then(()=>n==null?void 0:n.wait.current).then(()=>T(R)):T(R)}),C=Cc((x,R,T)=>{Promise.all(S.current[R].splice(0).map(([D,M])=>M)).then(()=>{var D;(D=v.current.shift())==null||D()}).then(()=>T(R))});return j.useMemo(()=>({children:a,register:h,unregister:f,onStart:E,onStop:C,wait:y,chains:S}),[h,f,a,E,C,S,y])}function HL(){}let qL=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ET(e){var n;let r={};for(let a of qL)r[a]=(n=e[a])!=null?n:HL;return r}function WL(e){let n=j.useRef(ET(e));return j.useEffect(()=>{n.current=ET(e)},[e]),n}let YL="div",xT=hT.RenderStrategy,wT=lE(function(e,n){let{beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c,enter:f,enterFrom:h,enterTo:v,entered:y,leave:S,leaveFrom:E,leaveTo:C,...x}=e,R=j.useRef(null),T=dT(R,n),D=x.unmount?Zl.Unmount:Zl.Hidden,{show:M,appear:F,initial:N}=BL(),[V,I]=j.useState(M?"visible":"hidden"),$=VL(),{register:H,unregister:Z}=$,ne=j.useRef(null);j.useEffect(()=>H(R),[H,R]),j.useEffect(()=>{if(D===Zl.Hidden&&R.current){if(M&&V!=="visible"){I("visible");return}return rl(V,{hidden:()=>Z(R),visible:()=>H(R)})}},[V,R,H,Z,M,D]);let ve=nd({enter:kc(f),enterFrom:kc(h),enterTo:kc(v),entered:kc(y),leave:kc(S),leaveFrom:kc(E),leaveTo:kc(C)}),ee=WL({beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c}),oe=fT();j.useEffect(()=>{if(oe&&V==="visible"&&R.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[R,V,oe]);let J=N&&!F,pe=(()=>!oe||J||ne.current===M?"idle":M?"enter":"leave")(),ke=FL(0),xe=Cc(te=>rl(te,{enter:()=>{ke.addFlag(Kl.Opening),ee.current.beforeEnter()},leave:()=>{ke.addFlag(Kl.Closing),ee.current.beforeLeave()},idle:()=>{}})),Ie=Cc(te=>rl(te,{enter:()=>{ke.removeFlag(Kl.Opening),ee.current.afterEnter()},leave:()=>{ke.removeFlag(Kl.Closing),ee.current.afterLeave()},idle:()=>{}})),se=ST(()=>{I("hidden"),Z(R)},$);$L({container:R,classes:ve,direction:pe,onStart:nd(te=>{se.onStart(R,te,xe)}),onStop:nd(te=>{se.onStop(R,te,Ie),te==="leave"&&!ng(se)&&(I("hidden"),Z(R))})}),j.useEffect(()=>{!J||(D===Zl.Hidden?ne.current=null:ne.current=M)},[M,J,V]);let Te=x,L={ref:T};return F&&M&&Ph.isServer&&(Te={...Te,className:pT(x.className,...ve.current.enter,...ve.current.enterFrom)}),j.createElement(tg.Provider,{value:se},j.createElement(NL,{value:rl(V,{visible:Kl.Open,hidden:Kl.Closed})|ke.flags},mT({ourProps:L,theirProps:Te,defaultTag:YL,features:xT,visible:V==="visible",name:"Transition.Child"})))}),dE=lE(function(e,n){let{show:r,appear:a=!1,unmount:s,...c}=e,f=j.useRef(null),h=dT(f,n);fT();let v=yT();if(r===void 0&&v!==null&&(r=(v&Kl.Open)===Kl.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,S]=j.useState(r?"visible":"hidden"),E=ST(()=>{S("hidden")}),[C,x]=j.useState(!0),R=j.useRef([r]);Q0(()=>{C!==!1&&R.current[R.current.length-1]!==r&&(R.current.push(r),x(!1))},[R,r]);let T=j.useMemo(()=>({show:r,appear:a,initial:C}),[r,a,C]);j.useEffect(()=>{if(r)S("visible");else if(!ng(E))S("hidden");else{let M=f.current;if(!M)return;let F=M.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&S("hidden")}},[r,E]);let D={unmount:s};return j.createElement(tg.Provider,{value:E},j.createElement(eg.Provider,{value:T},mT({ourProps:{...D,as:j.Fragment,children:j.createElement(wT,{ref:h,...D,...c})},theirProps:{},defaultTag:j.Fragment,features:xT,visible:y==="visible",name:"Transition"})))}),ZL=lE(function(e,n){let r=j.useContext(eg)!==null,a=yT()!==null;return j.createElement(j.Fragment,null,!r&&a?j.createElement(dE,{ref:n,...e}):j.createElement(wT,{ref:n,...e}))}),KL=Object.assign(dE,{Child:ZL,Root:dE});const GL=e=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"})),QL=e=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},Y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})),XL=e=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));function JL(e){return ia.custom(n=>he.jsx(tP,{type:e.type,show:n.visible,children:e.type==="custom"?e.content:he.jsx(eP,{...e,toastId:n.id})}))}const eP=({icon:e,type:n,title:r,description:a,toastId:s})=>{const{theme:{notification:c}}=cr();return he.jsxs(he.Fragment,{children:[e?he.jsx(e,{...c==null?void 0:c.icon}):he.jsx(nP,{...c==null?void 0:c.icon,type:n}),he.jsx("p",{...c==null?void 0:c.title,children:r}),a?he.jsx("p",{...c==null?void 0:c.description,children:a}):null,he.jsx(QL,{...c==null?void 0:c.closeIcon,onClick:()=>ia.dismiss(s)})]})},tP=({type:e,...n})=>{const{theme:{notification:r}}=cr();return he.jsx(KL,{...n,...r==null?void 0:r.container,appear:!0,"data-type":e??"neutral"})},nP=({type:e,className:n})=>{switch(e){case"success":return he.jsx(GL,{className:n});case"error":return he.jsx(XL,{className:n});default:return null}},rP=j.forwardRef(({url:e,type:n,styles:r,orientation:a="auto",...s},c)=>{var C,x;const f=j.useId(),{setIsLoading:h}=M7(),[v,y]=j.useState(a),[S,E]=j.useState(!1);return j.useLayoutEffect(()=>{h(R=>[...R,f])},[]),j.useEffect(()=>{e&&v==="auto"&&z7(e).then(({width:R,height:T})=>{y(iP(R,T)),h(D=>D.filter(M=>M!==f))})},[e]),he.jsxs(he.Fragment,{children:[S?null:he.jsx("div",{"data-orientation":v,...(C=r==null?void 0:r[n])==null?void 0:C.placeholder}),he.jsx("img",{"data-orientation":v,"data-loaded":S,...s,...(x=r==null?void 0:r[n])==null?void 0:x.image,src:e,alt:"",ref:c,loading:"lazy",onLoad:()=>{E(!0)}})]})});function iP(e,n){const r={square:1,portrait:.75,landscape:1.3333333333333333},a=e/n;return Object.keys(r).reduce((c,f)=>Math.abs(r[f]-a)<Math.abs(r[c]-a)?f:c)}const aP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("video",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})})),oP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("audio",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})}));function lP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 01-9.201 2.466l-.312-.311h2.433a.75.75 0 000-1.5H3.989a.75.75 0 00-.75.75v4.242a.75.75 0 001.5 0v-2.43l.31.31a7 7 0 0011.712-3.138.75.75 0 00-1.449-.39zm1.23-3.723a.75.75 0 00.219-.53V2.929a.75.75 0 00-1.5 0V5.36l-.31-.31A7 7 0 003.239 8.188a.75.75 0 101.448.389A5.5 5.5 0 0113.89 6.11l.311.31h-2.432a.75.75 0 000 1.5h4.243a.75.75 0 00.53-.219z",clipRule:"evenodd"}))}const sP=Y.forwardRef(lP);function uP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm-.75-4.75a.75.75 0 001.5 0V8.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.1 0L6.2 9.74a.75.75 0 101.1 1.02l1.95-2.1v4.59z",clipRule:"evenodd"}))}const cP=Y.forwardRef(uP);function fP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const dP=Y.forwardRef(fP);function pP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 003 3.5v13A1.5 1.5 0 004.5 18h11a1.5 1.5 0 001.5-1.5V7.621a1.5 1.5 0 00-.44-1.06l-4.12-4.122A1.5 1.5 0 0011.378 2H4.5zm4.75 6.75a.75.75 0 011.5 0v2.546l.943-1.048a.75.75 0 011.114 1.004l-2.25 2.5a.75.75 0 01-1.114 0l-2.25-2.5a.75.75 0 111.114-1.004l.943 1.048V8.75z",clipRule:"evenodd"}))}const hP=Y.forwardRef(pP);function mP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z",clipRule:"evenodd"}))}const vP=Y.forwardRef(mP),gP=j.forwardRef(({type:e,latitude:n,longitude:r,title:a,styles:s,...c},f)=>{var v,y,S;const h=`https://www.google.com/maps/search/?api=1&query=${n},${r}`;return he.jsxs("a",{...c,...(v=s==null?void 0:s[e])==null?void 0:v.container,href:h,type:"_blank",rel:"noopener",ref:f,children:[he.jsx("p",{...(y=s==null?void 0:s[e])==null?void 0:y.title,children:a}),he.jsx(vP,{...(S=s==null?void 0:s[e])==null?void 0:S.icon})]})}),yP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(ud,{styles:n,block:h},v))})),bP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(ud,{styles:n,block:h},v))}));function SP(e){return Object.prototype.toString.call(e)==="[object Object]"}function CT(e){return SP(e)||Array.isArray(e)}function EP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pE(e,n){const r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),c=JSON.stringify(Object.keys(n.breakpoints||{}));return s!==c?!1:r.every(f=>{const h=e[f],v=n[f];return typeof h=="function"?`${h}`==`${v}`:!CT(h)||!CT(v)?h===v:pE(h,v)})}function kT(e){return e.concat().sort((n,r)=>n.name>r.name?1:-1).map(n=>n.options)}function xP(e,n){if(e.length!==n.length)return!1;const r=kT(e),a=kT(n);return r.every((s,c)=>{const f=a[c];return pE(s,f)})}function hE(e){return typeof e=="number"}function _T(e){return typeof e=="string"}function mE(e){return typeof e=="boolean"}function TT(e){return Object.prototype.toString.call(e)==="[object Object]"}function fr(e){return Math.abs(e)}function vE(e){return Math.sign(e)}function rg(e,n){return fr(e-n)}function wP(e,n){if(e===0||n===0||fr(e)<=fr(n))return 0;const r=rg(fr(e),fr(n));return fr(r/e)}function Nh(e){return ag(e).map(Number)}function Gl(e){return e[ig(e)]}function ig(e){return Math.max(0,e.length-1)}function ag(e){return Object.keys(e)}function RT(e,n){return[e,n].reduce((r,a)=>(ag(a).forEach(s=>{const c=r[s],f=a[s],h=TT(c)&&TT(f);r[s]=h?RT(c,f):f}),r),{})}function OT(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function CP(e,n){const r={start:a,center:s,end:c};function a(){return 0}function s(y){return c(y)/2}function c(y){return n-y}function f(){return n*Number(e)}function h(y){return hE(e)?f():r[e](y)}return{measure:h}}function kP(e,n){const r=e==="y"?"y":"x",a=e==="y"?"x":"y",s=h(),c=v();function f(S){const{width:E,height:C}=S;return r==="x"?E:C}function h(){return r==="y"?"top":n==="rtl"?"right":"left"}function v(){return r==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:r,cross:a,startEdge:s,endEdge:c,measureSize:f}}function tu(e,n){const r=fr(e-n);function a(y){return y<e}function s(y){return y>n}function c(y){return a(y)||s(y)}function f(y){return c(y)?a(y)?e:n:y}function h(y){return r?y-r*Math.ceil((y-n)/r):y}return{length:r,max:n,min:e,constrain:f,reachedAny:c,reachedMax:s,reachedMin:a,removeOffset:h}}function DT(e,n,r){const{constrain:a}=tu(0,e),s=e+1;let c=f(n);function f(C){return r?fr((s+C)%s):a(C)}function h(){return c}function v(C){return c=f(C),E}function y(C){return S().set(h()+C)}function S(){return DT(e,h(),r)}const E={get:h,set:v,add:y,clone:S};return E}function _P(e){const n=e==="rtl"?-1:1;function r(s){return s*n}return{apply:r}}function Fh(){let e=[];function n(s,c,f,h={passive:!0}){return s.addEventListener(c,f,h),e.push(()=>s.removeEventListener(c,f,h)),a}function r(){e=e.filter(s=>s())}const a={add:n,clear:r};return a}function TP(e,n,r,a,s,c,f,h,v,y,S,E,C,x,R,T,D,M,F){const{cross:N}=e,V=["INPUT","SELECT","TEXTAREA"],I={passive:!1},$=Fh(),H=Fh(),Z=tu(50,225).constrain(R.measure(20)),ne={mouse:300,touch:400},ve={mouse:500,touch:600},ee=T?43:25;let oe=!1,J=0,pe=0,ke=!1,xe=!1,Ie=!1,se=!1;function Te(Le,me){if(!me)return;function ze(ht){(mE(me)||me(Le,ht))&&We(ht)}const be=r;$.add(be,"dragstart",ht=>ht.preventDefault(),I).add(be,"touchmove",()=>{},I).add(be,"touchend",()=>{}).add(be,"touchstart",ze).add(be,"mousedown",ze).add(be,"touchcancel",Oe).add(be,"contextmenu",Oe).add(be,"click",$e,!0)}function L(){$.clear(),H.clear()}function te(){const Le=se?a:r;H.add(Le,"touchmove",Re,I).add(Le,"touchend",Oe).add(Le,"mousemove",Re,I).add(Le,"mouseup",Oe)}function ye(Le){const me=Le.nodeName||"";return V.includes(me)}function U(){return(T?ve:ne)[se?"mouse":"touch"]}function _e(Le,me){const ze=C.add(vE(Le)*-1),be=E.byDistance(Le,!T).distance;return T||fr(Le)<Z?be:M&&me?be*.5:E.byIndex(ze.get(),0).distance}function We(Le){const me=OT(Le,s);se=me,!(me&&Le.button!==0)&&(ye(Le.target)||(Ie=T&&me&&!Le.buttons&&oe,oe=rg(c.get(),h.get())>=2,ke=!0,f.pointerDown(Le),S.useFriction(0).useDuration(0),c.set(h),te(),J=f.readPoint(Le),pe=f.readPoint(Le,N),x.emit("pointerDown")))}function Re(Le){const me=f.readPoint(Le),ze=f.readPoint(Le,N),be=rg(me,J),ht=rg(ze,pe);if(!xe&&!se&&(!Le.cancelable||(xe=be>ht,!xe)))return Oe(Le);const He=f.pointerMove(Le);be>D&&(Ie=!0),S.useFriction(.3).useDuration(1),v.start(),c.add(n.apply(He)),Le.preventDefault()}function Oe(Le){const ze=E.byDistance(0,!1).index!==C.get(),be=f.pointerUp(Le)*U(),ht=_e(n.apply(be),ze),He=wP(be,ht),Rt=ee-10*He,Gt=F+He/50;xe=!1,ke=!1,H.clear(),S.useDuration(Rt).useFriction(Gt),y.distance(ht,!T),se=!1,x.emit("pointerUp")}function $e(Le){Ie&&(Le.stopPropagation(),Le.preventDefault())}function Ge(){return ke}return{init:Te,pointerDown:Ge,destroy:L}}function RP(e,n){let a,s;function c(E){return E.timeStamp}function f(E,C){const R=`client${(C||e.scroll)==="x"?"X":"Y"}`;return(OT(E,n)?E:E.touches[0])[R]}function h(E){return a=E,s=E,f(E)}function v(E){const C=f(E)-f(s),x=c(E)-c(a)>170;return s=E,x&&(a=E),C}function y(E){if(!a||!s)return 0;const C=f(s)-f(a),x=c(E)-c(a),R=c(E)-c(s)>170,T=C/x;return x&&!R&&fr(T)>.1?T:0}return{pointerDown:h,pointerMove:v,pointerUp:y,readPoint:f}}function OP(e){function n(a){return e*(a/100)}return{measure:n}}function DP(e,n,r,a,s){let c,f,h=[],v=!1;function y(x){return s.measureSize(x.getBoundingClientRect())}function S(x,R){if(!R)return;f=y(e),h=a.map(y);function T(M){for(const F of M){const N=F.target===e,V=a.indexOf(F.target),I=N?f:h[V],$=y(N?e:a[V]);if(I!==$){r.requestAnimationFrame(()=>{x.reInit(),n.emit("resize")});break}}}c=new ResizeObserver(M=>{v||(mE(R)||R(x,M))&&T(M)}),[e].concat(a).forEach(M=>c.observe(M))}function E(){c&&c.disconnect(),v=!0}return{init:S,destroy:E}}function AP(e,n,r,a){let s=!0,c=0,f=0,h=r,v=a,y=e.get(),S=0;function E(){const I=n.get()-e.get(),$=!h;let H=0;return $?(c=0,e.set(n),H=I):(c+=I/h,c*=v,y+=c,e.add(c),H=y-S),f=vE(H),S=y,s=fr(I)<.001,V}function C(){return s}function x(){return h}function R(){return f}function T(){return c}function D(){return F(r)}function M(){return N(a)}function F(I){return h=I,V}function N(I){return v=I,V}const V={direction:R,duration:x,velocity:T,seek:E,settled:C,useBaseFriction:M,useBaseDuration:D,useFriction:N,useDuration:F};return V}function MP(e,n,r,a,s){const c=s.measure(10),f=s.measure(50),h=tu(.1,.99);let v=!1;function y(){return!(v||!e.reachedAny(r.get())||!e.reachedAny(n.get()))}function S(x){if(!y())return;const R=e.reachedMin(n.get())?"min":"max",T=fr(e[R]-n.get()),D=r.get()-n.get(),M=h.constrain(T/f);r.subtract(D*M),!x&&fr(D)<c&&(r.set(e.constrain(r.get())),a.useDuration(25).useBaseFriction())}function E(x){v=!x}return{constrain:S,toggleActive:E}}function LP(e,n,r,a){const s=tu(-n+e,r[0]),c=v(),f=y();function h(){const E=c[0],C=Gl(c),x=c.lastIndexOf(E),R=c.indexOf(C)+1;return tu(x,R)}function v(){return r.map(s.constrain).map(E=>parseFloat(E.toFixed(3)))}function y(){if(n<=e)return[s.max];if(a==="keepSnaps")return c;const{min:E,max:C}=h();return c.slice(E,C)}return{snapsContained:f}}function PP(e,n,r){const a=n[0],s=r?a-e:Gl(n);return{limit:tu(s,a)}}function NP(e,n,r,a){const c=n.min+.1,f=n.max+.1,{reachedMin:h,reachedMax:v}=tu(c,f);function y(C){return C===1?v(r.get()):C===-1?h(r.get()):!1}function S(C){if(!y(C))return;const x=e*(C*-1);a.forEach(R=>R.add(x))}return{loop:S}}function FP(e){const{max:n,length:r}=e;function a(c){return(c-n)/-r}return{get:a}}function IP(e,n,r,a,s,c,f){const{startEdge:h,endEdge:v}=e,{groupSlides:y}=c,S=x().map(n.measure),E=R(),C=T();function x(){return y(a).map(M=>Gl(M)[v]-M[0][h]).map(fr)}function R(){return a.map(M=>r[h]-M[h]).map(M=>-fr(M))}function T(){const F=Gl(E)-Gl(s);return y(E).map(N=>N[0]).map((N,V,I)=>{const $=!V,H=V===ig(I);return f&&$?0:f&&H?F:N+S[V]})}return{snaps:E,snapsAligned:C}}function zP(e,n,r,a,s){const{reachedAny:c,removeOffset:f,constrain:h}=a;function v(R){return R.concat().sort((T,D)=>fr(T)-fr(D))[0]}function y(R){const T=e?f(R):h(R),D=n.map(F=>F-T).map(F=>S(F,0)).map((F,N)=>({diff:F,index:N})).sort((F,N)=>fr(F.diff)-fr(N.diff)),{index:M}=D[0];return{index:M,distance:T}}function S(R,T){const D=[R,R+r,R-r];if(!e)return D[0];if(!T)return v(D);const M=D.filter(F=>vE(F)===T);return v(M)}function E(R,T){const D=n[R]-s.get(),M=S(D,T);return{index:R,distance:M}}function C(R,T){const D=s.get()+R,{index:M,distance:F}=y(D),N=!e&&c(D);if(!T||N)return{index:M,distance:R};const V=n[M]-F,I=R+S(V,0);return{index:M,distance:I}}return{byDistance:C,byIndex:E,shortcut:S}}function jP(e,n,r,a,s,c,f){function h(E){const C=E.distance,x=E.index!==n.get();c.add(C),C&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),x&&(r.set(n.get()),n.set(E.index),f.emit("select"))}function v(E,C){const x=a.byDistance(E,C);h(x)}function y(E,C){const x=n.clone().set(E),R=a.byIndex(x.get(),C);h(R)}return{distance:v,index:y}}function og(e){let n=e;function r(){return n}function a(v){n=f(v)}function s(v){n+=f(v)}function c(v){n-=f(v)}function f(v){return hE(v)?v:v.get()}return{get:r,set:a,add:s,subtract:c}}function AT(e,n,r){const a=e.scroll==="x"?f:h,s=r.style;let c=!1;function f(C){return`translate3d(${C}px,0px,0px)`}function h(C){return`translate3d(0px,${C}px,0px)`}function v(C){c||(s.transform=a(n.apply(C)))}function y(C){c=!C}function S(){c||(s.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:S,to:v,toggleActive:y}}function $P(e,n,r,a,s,c,f,h,v){const y=Nh(s),S=Nh(s).reverse(),E=T().concat(D());function C(I,$){return I.reduce((H,Z)=>H-s[Z],$)}function x(I,$){return I.reduce((H,Z)=>C(H,$)>0?H.concat([Z]):H,[])}function R(I,$){const H=$==="start",Z=H?-a:a,ne=f.findSlideBounds([Z]);return I.map(ve=>{const ee=H?0:-a,oe=H?a:0,pe=ne.filter(ke=>ke.index===ve)[0][H?"end":"start"];return{index:ve,slideLocation:og(-1),translate:AT(e,n,v[ve]),target:()=>h.get()>pe?ee:oe}})}function T(){const I=c[0]-1,$=x(S,I);return R($,"end")}function D(){const I=r-c[0]-1,$=x(y,I);return R($,"start")}function M(){return E.every(({index:I})=>{const $=y.filter(H=>H!==I);return C($,r)<=.1})}function F(){E.forEach(I=>{const{target:$,translate:H,slideLocation:Z}=I,ne=$();ne!==Z.get()&&(H.to(ne),Z.set(ne))})}function N(){E.forEach(I=>I.translate.clear())}return{canLoop:M,clear:N,loop:F,loopPoints:E}}function UP(e,n){let r,a=!1;function s(h,v){if(!v)return;function y(S){for(const E of S)if(E.type==="childList"){h.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(S=>{a||(mE(v)||v(h,S))&&y(S)}),r.observe(e,{childList:!0})}function c(){r&&r.disconnect(),a=!0}return{init:s,destroy:c}}function BP(e,n,r,a,s,c,f){const{removeOffset:h,constrain:v}=s,y=.5,S=c?[0,n,-n]:[0],E=x(S,f);function C(D){const M=D||0;return r.map(F=>tu(y,F-y).constrain(F*M))}function x(D,M){const F=D||S,N=C(M);return F.reduce((V,I)=>{const $=a.map((H,Z)=>({start:H-r[Z]+N[Z]+I,end:H+e-N[Z]+I,index:Z}));return V.concat($)},[])}function R(D,M){const F=c?h(D):v(D);return(M||E).reduce((V,I)=>{const{index:$,start:H,end:Z}=I,ne=V.includes($),ve=H<F&&Z>F;return!ne&&ve?V.concat([$]):V},[])}return{check:R,findSlideBounds:x}}function VP(e,n,r,a,s,c){const{measureSize:f,startEdge:h,endEdge:v}=e,y=r[0]&&s,S=R(),E=T(),C=r.map(f),x=D();function R(){if(!y)return 0;const F=r[0];return fr(n[h]-F[h])}function T(){if(!y)return 0;const F=c.getComputedStyle(Gl(a));return parseFloat(F.getPropertyValue(`margin-${v}`))}function D(){return r.map((F,N,V)=>{const I=!N,$=N===ig(V);return I?C[N]+S:$?C[N]+E:V[N+1][h]-F[h]}).map(fr)}return{slideSizes:C,slideSizesWithGaps:x}}function HP(e,n,r){const a=hE(r);function s(v,y){return Nh(v).filter(S=>S%y===0).map(S=>v.slice(S,S+y))}function c(v){return Nh(v).reduce((y,S)=>{const C=n.slice(Gl(y),S+1).reduce((x,R)=>x+R,0);return!S||C>e?y.concat(S):y},[]).map((y,S,E)=>v.slice(y,E[S+1]))}function f(v){return a?s(v,r):c(v)}return{groupSlides:f}}function qP(e,n,r,a,s,c,f,h){const{align:v,axis:y,direction:S,startIndex:E,inViewThreshold:C,loop:x,duration:R,dragFree:T,dragThreshold:D,slidesToScroll:M,skipSnaps:F,containScroll:N}=c,V=n.getBoundingClientRect(),I=r.map(Gt=>Gt.getBoundingClientRect()),$=_P(S),H=kP(y,S),Z=H.measureSize(V),ne=OP(Z),ve=CP(v,Z),ee=!x&&!!N,oe=x||!!N,{slideSizes:J,slideSizesWithGaps:pe}=VP(H,V,I,r,oe,s),ke=HP(Z,pe,M),{snaps:xe,snapsAligned:Ie}=IP(H,ve,V,I,pe,ke,ee),se=-Gl(xe)+Gl(pe),{snapsContained:Te}=LP(Z,se,Ie,N),L=ee?Te:Ie,{limit:te}=PP(se,L,x),ye=DT(ig(L),E,x),U=ye.clone(),_e=Nh(r),We=({dragHandler:Gt,scrollBody:Tn,scrollBounds:ar,eventHandler:or,animation:dr,options:{loop:Jn}})=>{const pr=Gt.pointerDown();Jn||ar.constrain(pr);const Yn=Tn.seek().settled();Yn&&!pr&&(dr.stop(),or.emit("settle")),Yn||or.emit("scroll")},Re=({scrollBody:Gt,translate:Tn,location:ar,offsetLocation:or,scrollLooper:dr,slideLooper:Jn,options:{loop:pr}},Yn)=>{const Ln=Gt.velocity();or.set(ar.get()-Ln+Ln*Yn),pr&&(dr.loop(Gt.direction()),Jn.loop()),Tn.to(or.get())},Oe={start:()=>h.start(Rt),stop:()=>h.stop(Rt),update:()=>We(Rt),render:Gt=>Re(Rt,Gt)},$e=.68,Ge=L[ye.get()],Ue=og(Ge),Le=og(Ge),me=og(Ge),ze=AP(Ue,me,R,$e),be=zP(x,L,se,te,me),ht=jP(Oe,ye,U,be,ze,me,f),He=BP(Z,se,J,xe,te,x,C),Rt={ownerDocument:a,ownerWindow:s,eventHandler:f,containerRect:V,slideRects:I,animation:Oe,axis:H,direction:$,dragHandler:TP(H,$,e,a,s,me,RP(H,s),Ue,Oe,ht,ze,be,ye,f,ne,T,D,F,$e),eventStore:Fh(),percentOfView:ne,index:ye,indexPrevious:U,limit:te,location:Ue,offsetLocation:Le,options:c,resizeHandler:DP(n,f,s,r,H),scrollBody:ze,scrollBounds:MP(te,Ue,me,ze,ne),scrollLooper:NP(se,te,Le,[Ue,Le,me]),scrollProgress:FP(te),scrollSnaps:L,scrollTarget:be,scrollTo:ht,slideLooper:$P(H,$,Z,se,pe,L,He,Le,r),slidesHandler:UP(n,f),slidesInView:He,slideIndexes:_e,slidesToScroll:ke,target:me,translate:AT(H,$,n)};return Rt}function WP(e){const n=16.666666666666668;let r=[],a=null,s=0,c=0;function f(E){a||(a=E);const C=E-a;for(a=E,s+=C;s>=n;)r.forEach(({animation:R})=>R.update()),s-=n;const x=fr(s/n);r.forEach(({animation:R})=>R.render(x)),c&&e.requestAnimationFrame(f)}function h(E){r.includes(E)||r.push(E),!c&&(c=e.requestAnimationFrame(f))}function v(E){r=r.filter(C=>C!==E),!r.length&&(e.cancelAnimationFrame(c),a=null,s=0,c=0)}function y(){a=null,s=0}return{start:h,stop:v,reset:y,window:e}}function YP(){const e={};let n;function r(v){n=v}function a(v){return e[v]||[]}function s(v){return a(v).forEach(y=>y(n,v)),h}function c(v,y){return e[v]=a(v).concat([y]),h}function f(v,y){return e[v]=a(v).filter(S=>S!==y),h}const h={init:r,emit:s,off:f,on:c};return h}const ZP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,dragThreshold:10,inViewThreshold:0,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function KP(e){function n(c,f){return RT(c,f||{})}function r(c){const f=c.breakpoints||{},h=ag(f).filter(v=>e.matchMedia(v).matches).map(v=>f[v]).reduce((v,y)=>n(v,y),{});return n(c,h)}function a(c){return c.map(f=>ag(f.breakpoints||{})).reduce((f,h)=>f.concat(h),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:a}}function GP(e){let n=[];function r(c,f){return n=c.filter(({options:h})=>e.optionsAtMedia(h).active!==!1),n.forEach(h=>h.init(f,e)),c.reduce((h,v)=>Object.assign(h,{[v.name]:v}),{})}function a(){n=n.filter(c=>c.destroy())}return{init:r,destroy:a}}function rd(e,n,r){const a=e.ownerDocument,s=a.defaultView,c=KP(s),f=GP(c),h=Fh(),v=Fh(),y=YP(),{animationRealms:S}=rd,{mergeOptions:E,optionsAtMedia:C,optionsMediaQueries:x}=c,{on:R,off:T,emit:D}=y,M=J;let F=!1,N,V=E(ZP,rd.globalOptions),I=E(V),$=[],H,Z,ne;function ve(){const{container:ze,slides:be}=I;Z=(_T(ze)?e.querySelector(ze):ze)||e.children[0];const He=_T(be)?Z.querySelectorAll(be):be;ne=[].slice.call(He||Z.children)}function ee(ze,be){const ht=qP(e,Z,ne,a,s,ze,y,be);if(ze.loop&&!ht.slideLooper.canLoop()){const He=Object.assign({},ze,{loop:!1});return ee(He,be)}return ht}function oe(ze,be){if(F)return;const ht=S.find(Rt=>Rt.window===s),He=ht||WP(s);ht||S.push(He),V=E(V,ze),I=C(V),$=be||$,ve(),N=ee(I,He),x([V,...$.map(({options:Rt})=>Rt)]).forEach(Rt=>h.add(Rt,"change",J)),I.active&&(N.translate.to(N.location.get()),N.eventHandler.init(me),N.resizeHandler.init(me,I.watchResize),N.slidesHandler.init(me,I.watchSlides),v.add(a,"visibilitychange",()=>{a.hidden&&He.reset()}),N.options.loop&&N.slideLooper.loop(),Z.offsetParent&&ne.length&&N.dragHandler.init(me,I.watchDrag),H=f.init($,me))}function J(ze,be){const ht=We();pe(),oe(E({startIndex:ht},ze),be),y.emit("reInit")}function pe(){N.dragHandler.destroy(),N.animation.stop(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),f.destroy(),h.clear(),v.clear()}function ke(){F||(F=!0,h.clear(),pe(),y.emit("destroy"))}function xe(ze){const be=N[ze?"target":"location"].get(),ht=I.loop?"removeOffset":"constrain";return N.slidesInView.check(N.limit[ht](be))}function Ie(ze){const be=xe(ze);return N.slideIndexes.filter(ht=>!be.includes(ht))}function se(ze,be,ht){!I.active||F||(N.scrollBody.useBaseFriction().useDuration(be?0:I.duration),N.scrollTo.index(ze,ht||0))}function Te(ze){const be=N.index.add(1).get();se(be,ze===!0,-1)}function L(ze){const be=N.index.add(-1).get();se(be,ze===!0,1)}function te(){return N.index.add(1).get()!==We()}function ye(){return N.index.add(-1).get()!==We()}function U(){return N.scrollSnaps.map(N.scrollProgress.get)}function _e(){return N.scrollProgress.get(N.location.get())}function We(){return N.index.get()}function Re(){return N.indexPrevious.get()}function Oe(){return H}function $e(){return N}function Ge(){return e}function Ue(){return Z}function Le(){return ne}const me={canScrollNext:te,canScrollPrev:ye,containerNode:Ue,internalEngine:$e,destroy:ke,off:T,on:R,emit:D,plugins:Oe,previousScrollSnap:Re,reInit:M,rootNode:Ge,scrollNext:Te,scrollPrev:L,scrollProgress:_e,scrollSnapList:U,scrollTo:se,selectedScrollSnap:We,slideNodes:Le,slidesInView:xe,slidesNotInView:Ie};return oe(n,r),setTimeout(()=>y.emit("init"),0),me}rd.animationRealms=[],rd.globalOptions=void 0;function gE(e={},n=[]){const r=j.useRef(e),a=j.useRef(n),[s,c]=j.useState(),[f,h]=j.useState(),v=j.useCallback(()=>{s&&s.reInit(r.current,a.current)},[s]);return j.useEffect(()=>{if(EP()&&f){rd.globalOptions=gE.globalOptions;const y=rd(f,r.current,a.current);return c(y),()=>y.destroy()}else c(void 0)},[f,c]),j.useEffect(()=>{pE(r.current,e)||(r.current=e,v())},[e,v]),j.useEffect(()=>{xP(a.current,n)||(a.current=n,v())},[n,v]),[h,s]}gE.globalOptions=void 0;function QP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))}const XP=Y.forwardRef(QP);function JP({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))}const e9=Y.forwardRef(JP);function t9({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625zM7.5 15a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5A.75.75 0 017.5 15zm.75 2.25a.75.75 0 000 1.5H12a.75.75 0 000-1.5H8.25z",clipRule:"evenodd"}),Y.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"}))}const n9=Y.forwardRef(t9);function r9({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{d:"M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"}),Y.createElement("path",{d:"M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"}))}const i9=Y.forwardRef(r9);function a9({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{d:"M21.721 12.752a9.711 9.711 0 00-.945-5.003 12.754 12.754 0 01-4.339 2.708 18.991 18.991 0 01-.214 4.772 17.165 17.165 0 005.498-2.477zM14.634 15.55a17.324 17.324 0 00.332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 00.332 4.647 17.385 17.385 0 005.268 0zM9.772 17.119a18.963 18.963 0 004.456 0A17.182 17.182 0 0112 21.724a17.18 17.18 0 01-2.228-4.605zM7.777 15.23a18.87 18.87 0 01-.214-4.774 12.753 12.753 0 01-4.34-2.708 9.711 9.711 0 00-.944 5.004 17.165 17.165 0 005.498 2.477zM21.356 14.752a9.765 9.765 0 01-7.478 6.817 18.64 18.64 0 001.988-4.718 18.627 18.627 0 005.49-2.098zM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 001.988 4.718 9.765 9.765 0 01-7.478-6.816zM13.878 2.43a9.755 9.755 0 016.116 3.986 11.267 11.267 0 01-3.746 2.504 18.63 18.63 0 00-2.37-6.49zM12 2.276a17.152 17.152 0 012.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0112 2.276zM10.122 2.43a18.629 18.629 0 00-2.37 6.49 11.266 11.266 0 01-3.746-2.504 9.754 9.754 0 016.116-3.985z"}))}const o9=Y.forwardRef(a9);function l9({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 00-5.25 5.25v3a3 3 0 00-3 3v6.75a3 3 0 003 3h10.5a3 3 0 003-3v-6.75a3 3 0 00-3-3v-3c0-2.9-2.35-5.25-5.25-5.25zm3.75 8.25v-3a3.75 3.75 0 10-7.5 0v3h7.5z",clipRule:"evenodd"}))}const s9=Y.forwardRef(l9);function u9({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z",clipRule:"evenodd"}))}const c9=Y.forwardRef(u9),f9=j.forwardRef(({type:e,styles:n,blocks:r},a)=>{const[s,c]=gE({skipSnaps:!0}),[f,h]=j.useState(!0),[v,y]=j.useState(!0),S=j.useCallback(()=>c&&c.scrollPrev(),[c]),E=j.useCallback(()=>c&&c.scrollNext(),[c]),C=n==null?void 0:n[e],x=j.useCallback(R=>{h(!R.canScrollPrev()),y(!R.canScrollNext())},[]);return j.useEffect(()=>{c&&(x(c),c.on("reInit",x),c.on("select",x))},[c,x]),he.jsxs("div",{...C==null?void 0:C.container,"data-container":"carousel",ref:s,children:[he.jsx("div",{ref:a,...C==null?void 0:C.slidesContainer,children:r.map((R,T)=>he.jsx(ud,{styles:n,block:R},T))}),he.jsx(XP,{...C==null?void 0:C.backButton,"data-disabled":f?"":void 0,onClick:S}),he.jsx(e9,{...C==null?void 0:C.nextButton,"data-disabled":v?"":void 0,onClick:E})]})}),Ih=Math.min,Ja=Math.max,lg=Math.round,id=Math.floor,nu=e=>({x:e,y:e}),d9={left:"right",right:"left",bottom:"top",top:"bottom"},p9={start:"end",end:"start"};function sg(e,n){return typeof e=="function"?e(n):e}function _c(e){return e.split("-")[0]}function zh(e){return e.split("-")[1]}function h9(e){return e==="x"?"y":"x"}function MT(e){return e==="y"?"height":"width"}function ug(e){return["top","bottom"].includes(_c(e))?"y":"x"}function LT(e){return h9(ug(e))}function m9(e,n,r){r===void 0&&(r=!1);const a=zh(e),s=LT(e),c=MT(s);let f=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=cg(f)),[f,cg(f)]}function v9(e){const n=cg(e);return[yE(e),n,yE(n)]}function yE(e){return e.replace(/start|end/g,n=>p9[n])}function g9(e,n,r){const a=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?n?s:a:n?a:s;case"left":case"right":return n?c:f;default:return[]}}function y9(e,n,r,a){const s=zh(e);let c=g9(_c(e),r==="start",a);return s&&(c=c.map(f=>f+"-"+s),n&&(c=c.concat(c.map(yE)))),c}function cg(e){return e.replace(/left|right|bottom|top/g,n=>d9[n])}function b9(e){return{top:0,right:0,bottom:0,left:0,...e}}function S9(e){return typeof e!="number"?b9(e):{top:e,right:e,bottom:e,left:e}}function fg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ru(e){return PT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ma(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ql(e){var n;return(n=(PT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function PT(e){return e instanceof Node||e instanceof Ma(e).Node}function br(e){return e instanceof Element||e instanceof Ma(e).Element}function Ei(e){return e instanceof HTMLElement||e instanceof Ma(e).HTMLElement}function bE(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ma(e).ShadowRoot}function jh(e){const{overflow:n,overflowX:r,overflowY:a,display:s}=La(e);return/auto|scroll|overlay|hidden|clip/.test(n+a+r)&&!["inline","contents"].includes(s)}function E9(e){return["table","td","th"].includes(ru(e))}function SE(e){const n=EE(),r=La(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function x9(e){let n=Tc(e);for(;Ei(n)&&!$h(n);){if(SE(n))return n;n=Tc(n)}return null}function EE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $h(e){return["html","body","#document"].includes(ru(e))}function La(e){return Ma(e).getComputedStyle(e)}function dg(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Tc(e){if(ru(e)==="html")return e;const n=e.assignedSlot||e.parentNode||bE(e)&&e.host||Ql(e);return bE(n)?n.host:n}function NT(e){const n=Tc(e);return $h(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ei(n)&&jh(n)?n:NT(n)}function iu(e,n,r){var a;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=NT(e),c=s===((a=e.ownerDocument)==null?void 0:a.body),f=Ma(s);return c?n.concat(f,f.visualViewport||[],jh(s)?s:[],f.frameElement&&r?iu(f.frameElement):[]):n.concat(s,iu(s,[],r))}function au(e){let n=e.activeElement;for(;((r=n)==null||(a=r.shadowRoot)==null?void 0:a.activeElement)!=null;){var r,a;n=n.shadowRoot.activeElement}return n}function aa(e,n){if(!e||!n)return!1;const r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&bE(r)){let a=n;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function FT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function w9(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(n=>{let{brand:r,version:a}=n;return r+"/"+a}).join(" "):navigator.userAgent}function IT(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const n=/Android/i;return(n.test(FT())||n.test(w9()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zT(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function jT(){return/apple/i.test(navigator.vendor)}function C9(){return FT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function $T(e,n){const r=["mouse","pen"];return n||r.push("",void 0),r.includes(e)}function k9(e){return"nativeEvent"in e}function _9(e){return e.matches("html,body")}function yo(e){return(e==null?void 0:e.ownerDocument)||document}function xE(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const r=e;return r.target!=null&&n.contains(r.target)}function UT(e){return"composedPath"in e?e.composedPath()[0]:e.target}const T9="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function BT(e){return Ei(e)&&e.matches(T9)}function li(e){e.preventDefault(),e.stopPropagation()}function VT(e,n,r){let{reference:a,floating:s}=e;const c=ug(n),f=LT(n),h=MT(f),v=_c(n),y=c==="y",S=a.x+a.width/2-s.width/2,E=a.y+a.height/2-s.height/2,C=a[h]/2-s[h]/2;let x;switch(v){case"top":x={x:S,y:a.y-s.height};break;case"bottom":x={x:S,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:E};break;case"left":x={x:a.x-s.width,y:E};break;default:x={x:a.x,y:a.y}}switch(zh(n)){case"start":x[f]-=C*(r&&y?-1:1);break;case"end":x[f]+=C*(r&&y?-1:1);break}return x}const R9=async(e,n,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,h=c.filter(Boolean),v=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:e,floating:n,strategy:s}),{x:S,y:E}=VT(y,a,v),C=a,x={},R=0;for(let T=0;T<h.length;T++){const{name:D,fn:M}=h[T],{x:F,y:N,data:V,reset:I}=await M({x:S,y:E,initialPlacement:a,placement:C,strategy:s,middlewareData:x,rects:y,platform:f,elements:{reference:e,floating:n}});if(S=F??S,E=N??E,x={...x,[D]:{...x[D],...V}},I&&R<=50){R++,typeof I=="object"&&(I.placement&&(C=I.placement),I.rects&&(y=I.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:s}):I.rects),{x:S,y:E}=VT(y,C,v)),T=-1;continue}}return{x:S,y:E,placement:C,strategy:s,middlewareData:x}};async function HT(e,n){var r;n===void 0&&(n={});const{x:a,y:s,platform:c,rects:f,elements:h,strategy:v}=e,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:E="floating",altBoundary:C=!1,padding:x=0}=sg(n,e),R=S9(x),D=h[C?E==="floating"?"reference":"floating":E],M=fg(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(D)))==null||r?D:D.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:y,rootBoundary:S,strategy:v})),F=E==="floating"?{...f.floating,x:a,y:s}:f.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),V=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},I=fg(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:F,offsetParent:N,strategy:v}):F);return{top:(M.top-I.top+R.top)/V.y,bottom:(I.bottom-M.bottom+R.bottom)/V.y,left:(M.left-I.left+R.left)/V.x,right:(I.right-M.right+R.right)/V.x}}const O9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,a;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:v,elements:y}=n,{mainAxis:S=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:T=!0,...D}=sg(e,n);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=_c(s),F=_c(h)===h,N=await(v.isRTL==null?void 0:v.isRTL(y.floating)),V=C||(F||!T?[cg(h)]:v9(h));!C&&R!=="none"&&V.push(...y9(h,T,R,N));const I=[h,...V],$=await HT(n,D),H=[];let Z=((a=c.flip)==null?void 0:a.overflows)||[];if(S&&H.push($[M]),E){const oe=m9(s,f,N);H.push($[oe[0]],$[oe[1]])}if(Z=[...Z,{placement:s,overflows:H}],!H.every(oe=>oe<=0)){var ne,ve;const oe=(((ne=c.flip)==null?void 0:ne.index)||0)+1,J=I[oe];if(J)return{data:{index:oe,overflows:Z},reset:{placement:J}};let pe=(ve=Z.filter(ke=>ke.overflows[0]<=0).sort((ke,xe)=>ke.overflows[1]-xe.overflows[1])[0])==null?void 0:ve.placement;if(!pe)switch(x){case"bestFit":{var ee;const ke=(ee=Z.map(xe=>[xe.placement,xe.overflows.filter(Ie=>Ie>0).reduce((Ie,se)=>Ie+se,0)]).sort((xe,Ie)=>xe[1]-Ie[1])[0])==null?void 0:ee[0];ke&&(pe=ke);break}case"initialPlacement":pe=h;break}if(s!==pe)return{reset:{placement:pe}}}return{}}}};async function D9(e,n){const{placement:r,platform:a,elements:s}=e,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),f=_c(r),h=zh(r),v=ug(r)==="y",y=["left","top"].includes(f)?-1:1,S=c&&v?-1:1,E=sg(n,e);let{mainAxis:C,crossAxis:x,alignmentAxis:R}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return h&&typeof R=="number"&&(x=h==="end"?R*-1:R),v?{x:x*S,y:C*y}:{x:C*y,y:x*S}}const A9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:r,y:a}=n,s=await D9(n,e);return{x:r+s.x,y:a+s.y,data:s}}}},M9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:r,rects:a,platform:s,elements:c}=n,{apply:f=()=>{},...h}=sg(e,n),v=await HT(n,h),y=_c(r),S=zh(r),E=ug(r)==="y",{width:C,height:x}=a.floating;let R,T;y==="top"||y==="bottom"?(R=y,T=S===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=y,R=S==="end"?"top":"bottom");const D=x-v[R],M=C-v[T],F=!n.middlewareData.shift;let N=D,V=M;if(E){const $=C-v.left-v.right;V=S||F?Ih(M,$):$}else{const $=x-v.top-v.bottom;N=S||F?Ih(D,$):$}if(F&&!S){const $=Ja(v.left,0),H=Ja(v.right,0),Z=Ja(v.top,0),ne=Ja(v.bottom,0);E?V=C-2*($!==0||H!==0?$+H:Ja(v.left,v.right)):N=x-2*(Z!==0||ne!==0?Z+ne:Ja(v.top,v.bottom))}await f({...n,availableWidth:V,availableHeight:N});const I=await s.getDimensions(c.floating);return C!==I.width||x!==I.height?{reset:{rects:!0}}:{}}}};function qT(e){const n=La(e);let r=parseFloat(n.width)||0,a=parseFloat(n.height)||0;const s=Ei(e),c=s?e.offsetWidth:r,f=s?e.offsetHeight:a,h=lg(r)!==c||lg(a)!==f;return h&&(r=c,a=f),{width:r,height:a,$:h}}function wE(e){return br(e)?e:e.contextElement}function ad(e){const n=wE(e);if(!Ei(n))return nu(1);const r=n.getBoundingClientRect(),{width:a,height:s,$:c}=qT(n);let f=(c?lg(r.width):r.width)/a,h=(c?lg(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const L9=nu(0);function WT(e){const n=Ma(e);return!EE()||!n.visualViewport?L9:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function P9(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Ma(e)?!1:n}function Rc(e,n,r,a){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=wE(e);let f=nu(1);n&&(a?br(a)&&(f=ad(a)):f=ad(e));const h=P9(c,r,a)?WT(c):nu(0);let v=(s.left+h.x)/f.x,y=(s.top+h.y)/f.y,S=s.width/f.x,E=s.height/f.y;if(c){const C=Ma(c),x=a&&br(a)?Ma(a):a;let R=C.frameElement;for(;R&&a&&x!==C;){const T=ad(R),D=R.getBoundingClientRect(),M=La(R),F=D.left+(R.clientLeft+parseFloat(M.paddingLeft))*T.x,N=D.top+(R.clientTop+parseFloat(M.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,E*=T.y,v+=F,y+=N,R=Ma(R).frameElement}}return fg({width:S,height:E,x:v,y})}function N9(e){let{rect:n,offsetParent:r,strategy:a}=e;const s=Ei(r),c=Ql(r);if(r===c)return n;let f={scrollLeft:0,scrollTop:0},h=nu(1);const v=nu(0);if((s||!s&&a!=="fixed")&&((ru(r)!=="body"||jh(c))&&(f=dg(r)),Ei(r))){const y=Rc(r);h=ad(r),v.x=y.x+r.clientLeft,v.y=y.y+r.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+v.x,y:n.y*h.y-f.scrollTop*h.y+v.y}}function F9(e){return Array.from(e.getClientRects())}function YT(e){return Rc(Ql(e)).left+dg(e).scrollLeft}function I9(e){const n=Ql(e),r=dg(e),a=e.ownerDocument.body,s=Ja(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),c=Ja(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let f=-r.scrollLeft+YT(e);const h=-r.scrollTop;return La(a).direction==="rtl"&&(f+=Ja(n.clientWidth,a.clientWidth)-s),{width:s,height:c,x:f,y:h}}function z9(e,n){const r=Ma(e),a=Ql(e),s=r.visualViewport;let c=a.clientWidth,f=a.clientHeight,h=0,v=0;if(s){c=s.width,f=s.height;const y=EE();(!y||y&&n==="fixed")&&(h=s.offsetLeft,v=s.offsetTop)}return{width:c,height:f,x:h,y:v}}function j9(e,n){const r=Rc(e,!0,n==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,c=Ei(e)?ad(e):nu(1),f=e.clientWidth*c.x,h=e.clientHeight*c.y,v=s*c.x,y=a*c.y;return{width:f,height:h,x:v,y}}function ZT(e,n,r){let a;if(n==="viewport")a=z9(e,r);else if(n==="document")a=I9(Ql(e));else if(br(n))a=j9(n,r);else{const s=WT(e);a={...n,x:n.x-s.x,y:n.y-s.y}}return fg(a)}function KT(e,n){const r=Tc(e);return r===n||!br(r)||$h(r)?!1:La(r).position==="fixed"||KT(r,n)}function $9(e,n){const r=n.get(e);if(r)return r;let a=iu(e,[],!1).filter(h=>br(h)&&ru(h)!=="body"),s=null;const c=La(e).position==="fixed";let f=c?Tc(e):e;for(;br(f)&&!$h(f);){const h=La(f),v=SE(f);!v&&h.position==="fixed"&&(s=null),(c?!v&&!s:!v&&h.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||jh(f)&&!v&&KT(e,f))?a=a.filter(S=>S!==f):s=h,f=Tc(f)}return n.set(e,a),a}function U9(e){let{element:n,boundary:r,rootBoundary:a,strategy:s}=e;const f=[...r==="clippingAncestors"?$9(n,this._c):[].concat(r),a],h=f[0],v=f.reduce((y,S)=>{const E=ZT(n,S,s);return y.top=Ja(E.top,y.top),y.right=Ih(E.right,y.right),y.bottom=Ih(E.bottom,y.bottom),y.left=Ja(E.left,y.left),y},ZT(n,h,s));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function B9(e){return qT(e)}function V9(e,n,r){const a=Ei(n),s=Ql(n),c=r==="fixed",f=Rc(e,!0,c,n);let h={scrollLeft:0,scrollTop:0};const v=nu(0);if(a||!a&&!c)if((ru(n)!=="body"||jh(s))&&(h=dg(n)),a){const y=Rc(n,!0,c,n);v.x=y.x+n.clientLeft,v.y=y.y+n.clientTop}else s&&(v.x=YT(s));return{x:f.left+h.scrollLeft-v.x,y:f.top+h.scrollTop-v.y,width:f.width,height:f.height}}function GT(e,n){return!Ei(e)||La(e).position==="fixed"?null:n?n(e):e.offsetParent}function QT(e,n){const r=Ma(e);if(!Ei(e))return r;let a=GT(e,n);for(;a&&E9(a)&&La(a).position==="static";)a=GT(a,n);return a&&(ru(a)==="html"||ru(a)==="body"&&La(a).position==="static"&&!SE(a))?r:a||x9(e)||r}const H9=async function(e){let{reference:n,floating:r,strategy:a}=e;const s=this.getOffsetParent||QT,c=this.getDimensions;return{reference:V9(n,await s(r),a),floating:{x:0,y:0,...await c(r)}}};function q9(e){return La(e).direction==="rtl"}const W9={convertOffsetParentRelativeRectToViewportRelativeRect:N9,getDocumentElement:Ql,getClippingRect:U9,getOffsetParent:QT,getElementRects:H9,getClientRects:F9,getDimensions:B9,getScale:ad,isElement:br,isRTL:q9};function Y9(e,n){let r=null,a;const s=Ql(e);function c(){clearTimeout(a),r&&r.disconnect(),r=null}function f(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),c();const{left:y,top:S,width:E,height:C}=e.getBoundingClientRect();if(h||n(),!E||!C)return;const x=id(S),R=id(s.clientWidth-(y+E)),T=id(s.clientHeight-(S+C)),D=id(y),F={rootMargin:-x+"px "+-R+"px "+-T+"px "+-D+"px",threshold:Ja(0,Ih(1,v))||1};let N=!0;function V(I){const $=I[0].intersectionRatio;if($!==v){if(!N)return f();$?f(!1,$):a=setTimeout(()=>{f(!1,1e-7)},100)}N=!1}try{r=new IntersectionObserver(V,{...F,root:s.ownerDocument})}catch{r=new IntersectionObserver(V,F)}r.observe(e)}return f(!0),c}function Z9(e,n,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=a,y=wE(e),S=s||c?[...y?iu(y):[],...iu(n)]:[];S.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),c&&M.addEventListener("resize",r)});const E=y&&h?Y9(y,r):null;let C=-1,x=null;f&&(x=new ResizeObserver(M=>{let[F]=M;F&&F.target===y&&x&&(x.unobserve(n),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{x&&x.observe(n)})),r()}),y&&!v&&x.observe(y),x.observe(n));let R,T=v?Rc(e):null;v&&D();function D(){const M=Rc(e);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&r(),T=M,R=requestAnimationFrame(D)}return r(),()=>{S.forEach(M=>{s&&M.removeEventListener("scroll",r),c&&M.removeEventListener("resize",r)}),E&&E(),x&&x.disconnect(),x=null,v&&cancelAnimationFrame(R)}}const K9=(e,n,r)=>{const a=new Map,s={platform:W9,...r},c={...s.platform,_c:a};return R9(e,n,{...s,platform:c})};var pg=typeof document<"u"?j.useLayoutEffect:j.useEffect;function hg(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,a,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!hg(e[a],n[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){const c=s[a];if(!(c==="_owner"&&e.$$typeof)&&!hg(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function XT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function JT(e,n){const r=XT(e);return Math.round(n*r)/r}function e5(e){const n=Y.useRef(e);return pg(()=>{n.current=e}),n}function G9(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:v,open:y}=e,[S,E]=Y.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[C,x]=Y.useState(a);hg(C,a)||x(a);const[R,T]=Y.useState(null),[D,M]=Y.useState(null),F=Y.useCallback(xe=>{xe!=$.current&&($.current=xe,T(xe))},[T]),N=Y.useCallback(xe=>{xe!==H.current&&(H.current=xe,M(xe))},[M]),V=c||R,I=f||D,$=Y.useRef(null),H=Y.useRef(null),Z=Y.useRef(S),ne=e5(v),ve=e5(s),ee=Y.useCallback(()=>{if(!$.current||!H.current)return;const xe={placement:n,strategy:r,middleware:C};ve.current&&(xe.platform=ve.current),K9($.current,H.current,xe).then(Ie=>{const se={...Ie,isPositioned:!0};oe.current&&!hg(Z.current,se)&&(Z.current=se,L0.flushSync(()=>{E(se)}))})},[C,n,r,ve]);pg(()=>{y===!1&&Z.current.isPositioned&&(Z.current.isPositioned=!1,E(xe=>({...xe,isPositioned:!1})))},[y]);const oe=Y.useRef(!1);pg(()=>(oe.current=!0,()=>{oe.current=!1}),[]),pg(()=>{if(V&&($.current=V),I&&(H.current=I),V&&I){if(ne.current)return ne.current(V,I,ee);ee()}},[V,I,ee,ne]);const J=Y.useMemo(()=>({reference:$,floating:H,setReference:F,setFloating:N}),[F,N]),pe=Y.useMemo(()=>({reference:V,floating:I}),[V,I]),ke=Y.useMemo(()=>{const xe={position:r,left:0,top:0};if(!pe.floating)return xe;const Ie=JT(pe.floating,S.x),se=JT(pe.floating,S.y);return h?{...xe,transform:"translate("+Ie+"px, "+se+"px)",...XT(pe.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Ie,top:se}},[r,h,pe.floating,S.x,S.y]);return Y.useMemo(()=>({...S,update:ee,refs:J,elements:pe,floatingStyles:ke}),[S,ee,J,pe,ke])}/*!
429
+ * tabbable 6.2.0
430
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
431
+ */var Q9=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],CE=Q9.join(","),t5=typeof Element>"u",Uh=t5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mg=!t5&&Element.prototype.getRootNode?function(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}:function(e){return e==null?void 0:e.ownerDocument},vg=function e(n,r){var a;r===void 0&&(r=!0);var s=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"inert"),c=s===""||s==="true",f=c||r&&n&&e(n.parentNode);return f},X9=function(n){var r,a=n==null||(r=n.getAttribute)===null||r===void 0?void 0:r.call(n,"contenteditable");return a===""||a==="true"},J9=function(n,r,a){if(vg(n))return[];var s=Array.prototype.slice.apply(n.querySelectorAll(CE));return r&&Uh.call(n,CE)&&s.unshift(n),s=s.filter(a),s},eN=function e(n,r,a){for(var s=[],c=Array.from(n);c.length;){var f=c.shift();if(!vg(f,!1))if(f.tagName==="SLOT"){var h=f.assignedElements(),v=h.length?h:f.children,y=e(v,!0,a);a.flatten?s.push.apply(s,y):s.push({scopeParent:f,candidates:y})}else{var S=Uh.call(f,CE);S&&a.filter(f)&&(r||!n.includes(f))&&s.push(f);var E=f.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(f),C=!vg(E,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(f));if(E&&C){var x=e(E===!0?f.children:E.children,!0,a);a.flatten?s.push.apply(s,x):s.push({scopeParent:f,candidates:x})}else c.unshift.apply(c,f.children)}}return s},n5=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},r5=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||X9(n))&&!n5(n)?0:n.tabIndex},tN=function(n,r){var a=r5(n);return a<0&&r&&!n5(n)?0:a},nN=function(n,r){return n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex},i5=function(n){return n.tagName==="INPUT"},rN=function(n){return i5(n)&&n.type==="hidden"},iN=function(n){var r=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(a){return a.tagName==="SUMMARY"});return r},aN=function(n,r){for(var a=0;a<n.length;a++)if(n[a].checked&&n[a].form===r)return n[a]},oN=function(n){if(!n.name)return!0;var r=n.form||mg(n),a=function(h){return r.querySelectorAll('input[type="radio"][name="'+h+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(n.name));else try{s=a(n.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var c=aN(s,n.form);return!c||c===n},lN=function(n){return i5(n)&&n.type==="radio"},sN=function(n){return lN(n)&&!oN(n)},uN=function(n){var r,a=n&&mg(n),s=(r=a)===null||r===void 0?void 0:r.host,c=!1;if(a&&a!==n){var f,h,v;for(c=!!((f=s)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(s)||n!=null&&(v=n.ownerDocument)!==null&&v!==void 0&&v.contains(n));!c&&s;){var y,S,E;a=mg(s),s=(y=a)===null||y===void 0?void 0:y.host,c=!!((S=s)!==null&&S!==void 0&&(E=S.ownerDocument)!==null&&E!==void 0&&E.contains(s))}}return c},a5=function(n){var r=n.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},cN=function(n,r){var a=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var c=Uh.call(n,"details>summary:first-of-type"),f=c?n.parentElement:n;if(Uh.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof s=="function"){for(var h=n;n;){var v=n.parentElement,y=mg(n);if(v&&!v.shadowRoot&&s(v)===!0)return a5(n);n.assignedSlot?n=n.assignedSlot:!v&&y!==n.ownerDocument?n=y.host:n=v}n=h}if(uN(n))return!n.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return a5(n);return!1},fN=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var r=n.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return Uh.call(r,"fieldset[disabled] *")?!0:!s.contains(n)}return!0}r=r.parentElement}return!1},dN=function(n,r){return!(r.disabled||vg(r)||rN(r)||cN(r,n)||iN(r)||fN(r))},o5=function(n,r){return!(sN(r)||r5(r)<0||!dN(n,r))},pN=function(n){var r=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},hN=function e(n){var r=[],a=[];return n.forEach(function(s,c){var f=!!s.scopeParent,h=f?s.scopeParent:s,v=tN(h,f),y=f?e(s.candidates):h;v===0?f?r.push.apply(r,y):r.push(h):a.push({documentOrder:c,tabIndex:v,item:s,isScope:f,content:y})}),a.sort(nN).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(r)},kE=function(n,r){r=r||{};var a;return r.getShadowRoot?a=eN([n],r.includeContainer,{filter:o5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:pN}):a=J9(n,r.includeContainer,o5.bind(null,r)),hN(a)};const _E="ArrowUp",gg="ArrowDown",od="ArrowLeft",Bh="ArrowRight";function yg(e,n,r){return Math.floor(e/n)!==r}function Vh(e,n){return n<0||n>=e.current.length}function TE(e,n){return xi(e,{disabledIndices:n})}function l5(e,n){return xi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function xi(e,n){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:s,amount:c=1}=n===void 0?{}:n;const f=e.current;let h=r;do{var v,y;h=h+(a?-c:c)}while(h>=0&&h<=f.length-1&&(s?s.includes(h):f[h]==null||(v=f[h])!=null&&v.hasAttribute("disabled")||((y=f[h])==null?void 0:y.getAttribute("aria-disabled"))==="true"));return h}function mN(e,n){let{event:r,orientation:a,loop:s,cols:c,disabledIndices:f,minIndex:h,maxIndex:v,prevIndex:y,stopEvent:S=!1}=n,E=y;if(r.key===_E){if(S&&li(r),y===-1)E=v;else if(E=xi(e,{startingIndex:E,amount:c,decrement:!0,disabledIndices:f}),s&&(y-c<h||E<0)){const C=y%c,x=v%c,R=v-(x-C);x===C?E=v:E=x>C?R:R-c}Vh(e,E)&&(E=y)}if(r.key===gg&&(S&&li(r),y===-1?E=h:(E=xi(e,{startingIndex:y,amount:c,disabledIndices:f}),s&&y+c>v&&(E=xi(e,{startingIndex:y%c-c,amount:c,disabledIndices:f}))),Vh(e,E)&&(E=y)),a==="both"){const C=id(y/c);r.key===Bh&&(S&&li(r),y%c!==c-1?(E=xi(e,{startingIndex:y,disabledIndices:f}),s&&yg(E,c,C)&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f})),yg(E,c,C)&&(E=y)),r.key===od&&(S&&li(r),y%c!==0?(E=xi(e,{startingIndex:y,disabledIndices:f,decrement:!0}),s&&yg(E,c,C)&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f})),yg(E,c,C)&&(E=y));const x=id(v/c)===C;Vh(e,E)&&(s&&x?E=r.key===od?v:xi(e,{startingIndex:y-y%c-1,disabledIndices:f}):E=y)}return E}let s5=0;function Xl(e,n){n===void 0&&(n={});const{preventScroll:r=!1,cancelPrevious:a=!0,sync:s=!1}=n;a&&cancelAnimationFrame(s5);const c=()=>e==null?void 0:e.focus({preventScroll:r});s?c():s5=requestAnimationFrame(c)}var jr=typeof document<"u"?j.useLayoutEffect:j.useEffect;function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},bg.apply(this,arguments)}let RE=!1,vN=0;const u5=()=>"floating-ui-"+vN++;function gN(){const[e,n]=Y.useState(()=>RE?u5():void 0);return jr(()=>{e==null&&n(u5())},[]),Y.useEffect(()=>{RE||(RE=!0)},[]),e}const OE=Y["useId".toString()]||gN;function yN(){const e=new Map;return{emit(n,r){var a;(a=e.get(n))==null||a.forEach(s=>s(r))},on(n,r){e.set(n,[...e.get(n)||[],r])},off(n,r){var a;e.set(n,((a=e.get(n))==null?void 0:a.filter(s=>s!==r))||[])}}}const bN=Y.createContext(null),SN=Y.createContext(null),c5=()=>{var e;return((e=Y.useContext(bN))==null?void 0:e.id)||null},Sg=()=>Y.useContext(SN);function Hh(e){return"data-floating-ui-"+e}function ou(e){const n=j.useRef(e);return jr(()=>{n.current=e}),n}function EN(e,n){var r;let a=[],s=(r=e.find(c=>c.id===n))==null?void 0:r.parentId;for(;s;){const c=e.find(f=>f.id===s);s=c==null?void 0:c.parentId,c&&(a=a.concat(c))}return a}function ld(e,n){let r=e.filter(s=>{var c;return s.parentId===n&&((c=s.context)==null?void 0:c.open)}),a=r;for(;a.length;)a=e.filter(s=>{var c;return(c=a)==null?void 0:c.some(f=>{var h;return s.parentId===f.id&&((h=s.context)==null?void 0:h.open)})}),r=r.concat(a);return r}function xN(e,n){let r,a=-1;function s(c,f){f>a&&(r=c,a=f),ld(e,c).forEach(v=>{s(v.id,f+1)})}return s(n,0),e.find(c=>c.id===r)}let sd=new WeakMap,Eg=new WeakSet,xg={},DE=0;const wN=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,f5=e=>e&&(e.host||f5(e.parentNode)),CN=(e,n)=>n.map(r=>{if(e.contains(r))return r;const a=f5(r);return e.contains(a)?a:null}).filter(r=>r!=null);function kN(e,n,r,a){const s="data-floating-ui-inert",c=a?"inert":r?"aria-hidden":null,f=CN(n,e),h=new Set,v=new Set(f),y=[];xg[s]||(xg[s]=new WeakMap);const S=xg[s];f.forEach(E),C(n),h.clear();function E(x){!x||h.has(x)||(h.add(x),x.parentNode&&E(x.parentNode))}function C(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,R=>{if(h.has(R))C(R);else{const T=c?R.getAttribute(c):null,D=T!==null&&T!=="false",M=(sd.get(R)||0)+1,F=(S.get(R)||0)+1;sd.set(R,M),S.set(R,F),y.push(R),M===1&&D&&Eg.add(R),F===1&&R.setAttribute(s,""),!D&&c&&R.setAttribute(c,"true")}})}return DE++,()=>{y.forEach(x=>{const R=(sd.get(x)||0)-1,T=(S.get(x)||0)-1;sd.set(x,R),S.set(x,T),R||(!Eg.has(x)&&c&&x.removeAttribute(c),Eg.delete(x)),T||x.removeAttribute(s)}),DE--,DE||(sd=new WeakMap,sd=new WeakMap,Eg=new WeakSet,xg={})}}function d5(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);const a=yo(e[0]).body;return kN(e.concat(Array.from(a.querySelectorAll("[aria-live]"))),a,n,r)}const AE=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function p5(e,n){const r=kE(e,AE());n==="prev"&&r.reverse();const a=r.indexOf(au(yo(e)));return r.slice(a+1)[0]}function h5(){return p5(document.body,"next")}function m5(){return p5(document.body,"prev")}function qh(e,n){const r=n||e.currentTarget,a=e.relatedTarget;return!a||!aa(r,a)}function _N(e){kE(e,AE()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function TN(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}const ME={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let RN;function v5(e){e.key==="Tab"&&(e.target,clearTimeout(RN))}const wg=Y.forwardRef(function(n,r){const[a,s]=Y.useState();jr(()=>(jT()&&s("button"),document.addEventListener("keydown",v5),()=>{document.removeEventListener("keydown",v5)}),[]);const c={ref:r,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[Hh("focus-guard")]:"",style:ME};return Y.createElement("span",bg({},n,c))}),g5=Y.createContext(null);function ON(e){let{id:n,root:r}=e===void 0?{}:e;const[a,s]=Y.useState(null),c=OE(),f=y5(),h=Y.useMemo(()=>({id:n,root:r,portalContext:f,uniqueId:c}),[n,r,f,c]),v=Y.useRef();return jr(()=>()=>{a==null||a.remove()},[a,h]),jr(()=>{if(v.current===h)return;v.current=h;const{id:y,root:S,portalContext:E,uniqueId:C}=h,x=y?document.getElementById(y):null,R=Hh("portal");if(x){const T=document.createElement("div");T.id=C,T.setAttribute(R,""),x.appendChild(T),s(T)}else{let T=S||(E==null?void 0:E.portalNode);T&&!br(T)&&(T=T.current),T=T||document.body;let D=null;y&&(D=document.createElement("div"),D.id=y,T.appendChild(D));const M=document.createElement("div");M.id=C,M.setAttribute(R,""),T=D||T,T.appendChild(M),s(M)}},[h]),a}function DN(e){let{children:n,id:r,root:a=null,preserveTabOrder:s=!0}=e;const c=ON({id:r,root:a}),[f,h]=Y.useState(null),v=Y.useRef(null),y=Y.useRef(null),S=Y.useRef(null),E=Y.useRef(null),C=!!f&&!f.modal&&f.open&&s&&!!(a||c);return Y.useEffect(()=>{if(!c||!s||f!=null&&f.modal)return;function x(R){c&&qh(R)&&(R.type==="focusin"?TN:_N)(c)}return c.addEventListener("focusin",x,!0),c.addEventListener("focusout",x,!0),()=>{c.removeEventListener("focusin",x,!0),c.removeEventListener("focusout",x,!0)}},[c,s,f==null?void 0:f.modal]),Y.createElement(g5.Provider,{value:Y.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:v,afterOutsideRef:y,beforeInsideRef:S,afterInsideRef:E,portalNode:c,setFocusManagerState:h}),[s,c])},C&&c&&Y.createElement(wg,{"data-type":"outside",ref:v,onFocus:x=>{if(qh(x,c)){var R;(R=S.current)==null||R.focus()}else{const T=m5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus()}}}),C&&c&&Y.createElement("span",{"aria-owns":c.id,style:ME}),c&&L0.createPortal(n,c),C&&c&&Y.createElement(wg,{"data-type":"outside",ref:y,onFocus:x=>{if(qh(x,c)){var R;(R=E.current)==null||R.focus()}else{const T=h5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus(),f!=null&&f.closeOnFocusOut&&(f==null||f.onOpenChange(!1,x.nativeEvent))}}}))}const y5=()=>Y.useContext(g5),AN=Y.forwardRef(function(n,r){return Y.createElement("button",bg({},n,{type:"button",ref:r,tabIndex:-1,style:ME}))});function MN(e){const{context:n,children:r,disabled:a=!1,order:s=["content"],guards:c=!0,initialFocus:f=0,returnFocus:h=!0,modal:v=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:S=!0}=e,{open:E,refs:C,nodeId:x,onOpenChange:R,events:T,dataRef:D,elements:{domReference:M,floating:F}}=n,N=wN()?c:!0,V=ou(s),I=ou(f),$=ou(h),H=Sg(),Z=y5(),ne=typeof f=="number"&&f<0,ve=Y.useRef(null),ee=Y.useRef(null),oe=Y.useRef(!1),J=Y.useRef(null),pe=Y.useRef(!1),ke=Z!=null,xe=M&&M.getAttribute("role")==="combobox"&&BT(M)&&ne,Ie=Y.useCallback(function(te){return te===void 0&&(te=F),te?kE(te,AE()):[]},[F]),se=Y.useCallback(te=>{const ye=Ie(te);return V.current.map(U=>M&&U==="reference"?M:F&&U==="floating"?F:ye).filter(Boolean).flat()},[M,F,V,Ie]);Y.useEffect(()=>{if(a||!v)return;function te(U){if(U.key==="Tab"){aa(F,au(yo(F)))&&Ie().length===0&&!xe&&li(U);const _e=se(),We=UT(U);V.current[0]==="reference"&&We===M&&(li(U),U.shiftKey?Xl(_e[_e.length-1]):Xl(_e[1])),V.current[1]==="floating"&&We===F&&U.shiftKey&&(li(U),Xl(_e[0]))}}const ye=yo(F);return ye.addEventListener("keydown",te),()=>{ye.removeEventListener("keydown",te)}},[a,M,F,v,V,C,xe,Ie,se]),Y.useEffect(()=>{if(a||!S)return;function te(){pe.current=!0,setTimeout(()=>{pe.current=!1})}function ye(U){const _e=U.relatedTarget;queueMicrotask(()=>{const We=!(aa(M,_e)||aa(F,_e)||aa(_e,F)||aa(Z==null?void 0:Z.portalNode,_e)||_e!=null&&_e.hasAttribute(Hh("focus-guard"))||H&&(ld(H.nodesRef.current,x).find(Re=>{var Oe,$e;return aa((Oe=Re.context)==null?void 0:Oe.elements.floating,_e)||aa(($e=Re.context)==null?void 0:$e.elements.domReference,_e)})||EN(H.nodesRef.current,x).find(Re=>{var Oe,$e;return((Oe=Re.context)==null?void 0:Oe.elements.floating)===_e||(($e=Re.context)==null?void 0:$e.elements.domReference)===_e})));_e&&We&&!pe.current&&_e!==J.current&&(oe.current=!0,R(!1,U))})}if(F&&Ei(M))return M.addEventListener("focusout",ye),M.addEventListener("pointerdown",te),!v&&F.addEventListener("focusout",ye),()=>{M.removeEventListener("focusout",ye),M.removeEventListener("pointerdown",te),!v&&F.removeEventListener("focusout",ye)}},[a,M,F,v,x,H,Z,R,S]),Y.useEffect(()=>{var te;if(a)return;const ye=Array.from((Z==null||(te=Z.portalNode)==null?void 0:te.querySelectorAll("["+Hh("portal")+"]"))||[]);if(F){const U=[F,...ye,ve.current,ee.current,V.current.includes("reference")||xe?M:null].filter(We=>We!=null),_e=v?d5(U,N,!N):d5(U);return()=>{_e()}}},[a,M,F,v,V,Z,xe,N]),jr(()=>{if(a||!F)return;const te=yo(F),ye=au(te);queueMicrotask(()=>{const U=se(F),_e=I.current,We=(typeof _e=="number"?U[_e]:_e.current)||F,Re=aa(F,ye);!ne&&!Re&&E&&Xl(We,{preventScroll:We===F})})},[a,E,F,ne,se,I]),jr(()=>{if(a||!F)return;let te=!1;const ye=yo(F),U=au(ye),_e=D.current;J.current=U;function We(Re){if(Re.type==="escapeKey"&&C.domReference.current&&(J.current=C.domReference.current),["referencePress","escapeKey"].includes(Re.type))return;const Oe=Re.data.returnFocus;typeof Oe=="object"?(oe.current=!1,te=Oe.preventScroll):oe.current=!Oe}return T.on("dismiss",We),()=>{T.off("dismiss",We);const Re=au(ye);(aa(F,Re)||H&&ld(H.nodesRef.current,x).some($e=>{var Ge;return aa((Ge=$e.context)==null?void 0:Ge.elements.floating,Re)})||_e.openEvent&&["click","mousedown"].includes(_e.openEvent.type))&&C.domReference.current&&(J.current=C.domReference.current),$.current&&Ei(J.current)&&!oe.current&&Xl(J.current,{cancelPrevious:!1,preventScroll:te})}},[a,F,$,D,C,T,H,x]),jr(()=>{if(!(a||!Z))return Z.setFocusManagerState({modal:v,closeOnFocusOut:S,open:E,onOpenChange:R,refs:C}),()=>{Z.setFocusManagerState(null)}},[a,Z,v,E,R,C,S]),jr(()=>{if(!a&&F&&typeof MutationObserver=="function"&&!ne){const te=()=>{const U=F.getAttribute("tabindex");V.current.includes("floating")||au(yo(F))!==C.domReference.current&&Ie().length===0?U!=="0"&&F.setAttribute("tabindex","0"):U!=="-1"&&F.setAttribute("tabindex","-1")};te();const ye=new MutationObserver(te);return ye.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{ye.disconnect()}}},[a,F,C,V,Ie,ne]);function Te(te){return a||!y||!v?null:Y.createElement(AN,{ref:te==="start"?ve:ee,onClick:ye=>R(!1,ye.nativeEvent)},typeof y=="string"?y:"Dismiss")}const L=!a&&N&&!xe&&(ke||v);return Y.createElement(Y.Fragment,null,L&&Y.createElement(wg,{"data-type":"inside",ref:Z==null?void 0:Z.beforeInsideRef,onFocus:te=>{if(v){const U=se();Xl(s[0]==="reference"?U[0]:U[U.length-1])}else if(Z!=null&&Z.preserveTabOrder&&Z.portalNode)if(oe.current=!1,qh(te,Z.portalNode)){const U=h5()||M;U==null||U.focus()}else{var ye;(ye=Z.beforeOutsideRef.current)==null||ye.focus()}}}),!xe&&Te("start"),r,Te("end"),L&&Y.createElement(wg,{"data-type":"inside",ref:Z==null?void 0:Z.afterInsideRef,onFocus:te=>{if(v)Xl(se()[0]);else if(Z!=null&&Z.preserveTabOrder&&Z.portalNode)if(S&&(oe.current=!0),qh(te,Z.portalNode)){const U=m5()||M;U==null||U.focus()}else{var ye;(ye=Z.afterOutsideRef.current)==null||ye.focus()}}}))}function b5(e){return Ei(e.target)&&e.target.tagName==="BUTTON"}function S5(e){return BT(e)}function LN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,dataRef:s,elements:{domReference:c}}=e,{enabled:f=!0,event:h="click",toggle:v=!0,ignoreMouse:y=!1,keyboardHandlers:S=!0}=n,E=Y.useRef(),C=Y.useRef(!1);return Y.useMemo(()=>f?{reference:{onPointerDown(x){E.current=x.pointerType},onMouseDown(x){x.button===0&&($T(E.current,!0)&&y||h!=="click"&&(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?a(!1,x.nativeEvent):(x.preventDefault(),a(!0,x.nativeEvent))))},onClick(x){if(h==="mousedown"&&E.current){E.current=void 0;return}$T(E.current,!0)&&y||(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="click")?a(!1,x.nativeEvent):a(!0,x.nativeEvent))},onKeyDown(x){E.current=void 0,!(x.defaultPrevented||!S||b5(x))&&(x.key===" "&&!S5(c)&&(x.preventDefault(),C.current=!0),x.key==="Enter"&&a(!(r&&v),x.nativeEvent))},onKeyUp(x){x.defaultPrevented||!S||b5(x)||S5(c)||x.key===" "&&C.current&&(C.current=!1,a(!(r&&v),x.nativeEvent))}}}:{},[f,s,h,y,S,c,v,r,a])}const PN=Y["useInsertionEffect".toString()]||(e=>e());function lu(e){const n=Y.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return PN(()=>{n.current=e}),Y.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n.current==null?void 0:n.current(...a)},[])}const NN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},FN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},IN=e=>{var n,r;return{escapeKeyBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.escapeKey)!=null?n:!1,outsidePressBubbles:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function zN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,events:s,nodeId:c,elements:{reference:f,domReference:h,floating:v},dataRef:y}=e,{enabled:S=!0,escapeKey:E=!0,outsidePress:C=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:T="pointerdown",ancestorScroll:D=!1,bubbles:M}=n,F=Sg(),N=c5()!=null,V=lu(typeof C=="function"?C:()=>!1),I=typeof C=="function"?V:C,$=Y.useRef(!1),{escapeKeyBubbles:H,outsidePressBubbles:Z}=IN(M),ne=lu(ee=>{if(!r||!S||!E||ee.key!=="Escape")return;const oe=F?ld(F.nodesRef.current,c):[];if(!H&&(ee.stopPropagation(),oe.length>0)){let J=!0;if(oe.forEach(pe=>{var ke;if((ke=pe.context)!=null&&ke.open&&!pe.context.dataRef.current.__escapeKeyBubbles){J=!1;return}}),!J)return}s.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1,k9(ee)?ee.nativeEvent:ee)}),ve=lu(ee=>{const oe=$.current;if($.current=!1,oe||typeof I=="function"&&!I(ee))return;const J=UT(ee),pe="["+Hh("inert")+"]",ke=yo(v).querySelectorAll(pe);let xe=br(J)?J:null;for(;xe&&!$h(xe);){const Te=Tc(xe);if(Te===yo(v).body||!br(Te))break;xe=Te}if(ke.length&&br(J)&&!_9(J)&&!aa(J,v)&&Array.from(ke).every(Te=>!aa(xe,Te)))return;if(Ei(J)&&v){const Te=J.clientWidth>0&&J.scrollWidth>J.clientWidth,L=J.clientHeight>0&&J.scrollHeight>J.clientHeight;let te=L&&ee.offsetX>J.clientWidth;if(L&&La(J).direction==="rtl"&&(te=ee.offsetX<=J.offsetWidth-J.clientWidth),te||Te&&ee.offsetY>J.clientHeight)return}const Ie=F&&ld(F.nodesRef.current,c).some(Te=>{var L;return xE(ee,(L=Te.context)==null?void 0:L.elements.floating)});if(xE(ee,v)||xE(ee,h)||Ie)return;const se=F?ld(F.nodesRef.current,c):[];if(se.length>0){let Te=!0;if(se.forEach(L=>{var te;if((te=L.context)!=null&&te.open&&!L.context.dataRef.current.__outsidePressBubbles){Te=!1;return}}),!Te)return}s.emit("dismiss",{type:"outsidePress",data:{returnFocus:N?{preventScroll:!0}:IT(ee)||zT(ee)}}),a(!1,ee)});return Y.useEffect(()=>{if(!r||!S)return;y.current.__escapeKeyBubbles=H,y.current.__outsidePressBubbles=Z;function ee(pe){a(!1,pe)}const oe=yo(v);E&&oe.addEventListener("keydown",ne),I&&oe.addEventListener(x,ve);let J=[];return D&&(br(h)&&(J=iu(h)),br(v)&&(J=J.concat(iu(v))),!br(f)&&f&&f.contextElement&&(J=J.concat(iu(f.contextElement)))),J=J.filter(pe=>{var ke;return pe!==((ke=oe.defaultView)==null?void 0:ke.visualViewport)}),J.forEach(pe=>{pe.addEventListener("scroll",ee,{passive:!0})}),()=>{E&&oe.removeEventListener("keydown",ne),I&&oe.removeEventListener(x,ve),J.forEach(pe=>{pe.removeEventListener("scroll",ee)})}},[y,v,h,f,E,I,x,r,a,D,S,H,Z,ne,ve]),Y.useEffect(()=>{$.current=!1},[I,x]),Y.useMemo(()=>S?{reference:{onKeyDown:ne,[NN[T]]:ee=>{R&&(s.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1,ee.nativeEvent))}},floating:{onKeyDown:ne,[FN[x]]:()=>{$.current=!0}}}:{},[S,s,R,x,T,a,ne])}let LE;process.env.NODE_ENV!=="production"&&(LE=new Set);function jN(e){var n;e===void 0&&(e={});const{open:r=!1,onOpenChange:a,nodeId:s}=e;if(process.env.NODE_ENV!=="production"){var c;const H="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((c=e.elements)!=null&&c.reference&&!br(e.elements.reference)){var f;if(!((f=LE)!=null&&f.has(H))){var h;(h=LE)==null||h.add(H),console.error(H)}}}const[v,y]=Y.useState(null),S=((n=e.elements)==null?void 0:n.reference)||v,E=G9(e),C=Sg(),x=lu((H,Z)=>{H&&(T.current.openEvent=Z),a==null||a(H,Z)}),R=Y.useRef(null),T=Y.useRef({}),D=Y.useState(()=>yN())[0],M=OE(),F=Y.useCallback(H=>{const Z=br(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),contextElement:H}:H;E.refs.setReference(Z)},[E.refs]),N=Y.useCallback(H=>{(br(H)||H===null)&&(R.current=H,y(H)),(br(E.refs.reference.current)||E.refs.reference.current===null||H!==null&&!br(H))&&E.refs.setReference(H)},[E.refs]),V=Y.useMemo(()=>({...E.refs,setReference:N,setPositionReference:F,domReference:R}),[E.refs,N,F]),I=Y.useMemo(()=>({...E.elements,domReference:S}),[E.elements,S]),$=Y.useMemo(()=>({...E,refs:V,elements:I,dataRef:T,nodeId:s,floatingId:M,events:D,open:r,onOpenChange:x}),[E,s,M,D,r,x,V,I]);return jr(()=>{const H=C==null?void 0:C.nodesRef.current.find(Z=>Z.id===s);H&&(H.context=$)}),Y.useMemo(()=>({...E,context:$,refs:V,elements:I}),[E,V,I,$])}function PE(e,n,r){const a=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...n.map(s=>s?s[r]:null).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(f=>{let[h,v]=f;if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof v=="function"){var y;(y=a.get(h))==null||y.push(v),s[h]=function(){for(var S,E=arguments.length,C=new Array(E),x=0;x<E;x++)C[x]=arguments[x];return(S=a.get(h))==null?void 0:S.map(R=>R(...C)).find(R=>R!==void 0)}}}else s[h]=v}),s),{})}}function $N(e){e===void 0&&(e=[]);const n=e,r=Y.useCallback(c=>PE(c,e,"reference"),n),a=Y.useCallback(c=>PE(c,e,"floating"),n),s=Y.useCallback(c=>PE(c,e,"item"),e.map(c=>c==null?void 0:c.item));return Y.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])}let E5=!1;function Cg(e,n,r){switch(e){case"vertical":return n;case"horizontal":return r;default:return n||r}}function x5(e,n){return Cg(n,e===_E||e===gg,e===od||e===Bh)}function NE(e,n,r){return Cg(n,e===gg,r?e===od:e===Bh)||e==="Enter"||e==" "||e===""}function UN(e,n,r){return Cg(n,r?e===od:e===Bh,e===gg)}function w5(e,n,r){return Cg(n,r?e===Bh:e===od,e===_E)}function BN(e,n){const{open:r,onOpenChange:a,refs:s,elements:{domReference:c,floating:f}}=e,{listRef:h,activeIndex:v,onNavigate:y=()=>{},enabled:S=!0,selectedIndex:E=null,allowEscape:C=!1,loop:x=!1,nested:R=!1,rtl:T=!1,virtual:D=!1,focusItemOnOpen:M="auto",focusItemOnHover:F=!0,openOnArrowKeyDown:N=!0,disabledIndices:V=void 0,orientation:I="vertical",cols:$=1,scrollItemIntoView:H=!0,virtualItemRef:Z}=n;process.env.NODE_ENV!=="production"&&(C&&(x||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),D||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),I==="vertical"&&$>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const ne=c5(),ve=Sg(),ee=lu(y),oe=Y.useRef(M),J=Y.useRef(E??-1),pe=Y.useRef(null),ke=Y.useRef(!0),xe=Y.useRef(ee),Ie=Y.useRef(!!f),se=Y.useRef(!1),Te=Y.useRef(!1),L=ou(V),te=ou(r),ye=ou(H),[U,_e]=Y.useState(),[We,Re]=Y.useState(),Oe=lu(function(Ue,Le,me){me===void 0&&(me=!1);const ze=Ue.current[Le.current];ze&&(D?(_e(ze.id),ve==null||ve.events.emit("virtualfocus",ze),Z&&(Z.current=ze)):Xl(ze,{preventScroll:!0,sync:C9()&&jT()?E5||se.current:!1}),requestAnimationFrame(()=>{const be=ye.current;be&&ze&&(me||!ke.current)&&(ze.scrollIntoView==null||ze.scrollIntoView(typeof be=="boolean"?{block:"nearest",inline:"nearest"}:be))}))});jr(()=>{document.createElement("div").focus({get preventScroll(){return E5=!0,!1}})},[]),jr(()=>{S&&(r&&f?oe.current&&E!=null&&(Te.current=!0,ee(E)):Ie.current&&(J.current=-1,xe.current(null)))},[S,r,f,E,ee]),jr(()=>{if(S&&r&&f)if(v==null){if(se.current=!1,E!=null)return;if(Ie.current&&(J.current=-1,Oe(h,J)),!Ie.current&&oe.current&&(pe.current!=null||oe.current===!0&&pe.current==null)){let Ue=0;const Le=()=>{h.current[0]==null?(Ue<2&&(Ue?requestAnimationFrame:queueMicrotask)(Le),Ue++):(J.current=pe.current==null||NE(pe.current,I,T)||R?TE(h,L.current):l5(h,L.current),pe.current=null,ee(J.current))};Le()}}else Vh(h,v)||(J.current=v,Oe(h,J,Te.current),Te.current=!1)},[S,r,f,v,E,R,h,I,T,ee,Oe,L]),jr(()=>{var Ue,Le;if(!S||f||!ve||D||!Ie.current)return;const me=ve.nodesRef.current,ze=(Ue=me.find(He=>He.id===ne))==null||(Le=Ue.context)==null?void 0:Le.elements.floating,be=au(yo(f)),ht=me.some(He=>He.context&&aa(He.context.elements.floating,be));ze&&!ht&&ke.current&&ze.focus({preventScroll:!0})},[S,f,ve,ne,D]),jr(()=>{if(!S||!ve||!D||ne)return;function Ue(Le){Re(Le.id),Z&&(Z.current=Le)}return ve.events.on("virtualfocus",Ue),()=>{ve.events.off("virtualfocus",Ue)}},[S,ve,D,ne,Z]),jr(()=>{xe.current=ee,Ie.current=!!f}),jr(()=>{r||(pe.current=null)},[r]);const $e=v!=null,Ge=Y.useMemo(()=>{function Ue(me){if(!r)return;const ze=h.current.indexOf(me);ze!==-1&&ee(ze)}return{onFocus(me){let{currentTarget:ze}=me;Ue(ze)},onClick:me=>{let{currentTarget:ze}=me;return ze.focus({preventScroll:!0})},...F&&{onMouseMove(me){let{currentTarget:ze}=me;Ue(ze)},onPointerLeave(me){let{pointerType:ze}=me;!ke.current||ze==="touch"||(J.current=-1,Oe(h,J),ee(null),D||Xl(s.floating.current,{preventScroll:!0}))}}}},[r,s,Oe,F,h,ee,D]);return Y.useMemo(()=>{if(!S)return{};const Ue=L.current;function Le(He){if(ke.current=!1,se.current=!0,!te.current&&He.currentTarget===s.floating.current)return;if(R&&w5(He.key,I,T)){li(He),a(!1,He.nativeEvent),Ei(c)&&!D&&c.focus();return}const Rt=J.current,Gt=TE(h,Ue),Tn=l5(h,Ue);if(He.key==="Home"&&(li(He),J.current=Gt,ee(J.current)),He.key==="End"&&(li(He),J.current=Tn,ee(J.current)),!($>1&&(J.current=mN(h,{event:He,orientation:I,loop:x,cols:$,disabledIndices:Ue,minIndex:Gt,maxIndex:Tn,prevIndex:J.current,stopEvent:!0}),ee(J.current),I==="both"))&&x5(He.key,I)){if(li(He),r&&!D&&au(He.currentTarget.ownerDocument)===He.currentTarget){J.current=NE(He.key,I,T)?Gt:Tn,ee(J.current);return}NE(He.key,I,T)?x?J.current=Rt>=Tn?C&&Rt!==h.current.length?-1:Gt:xi(h,{startingIndex:Rt,disabledIndices:Ue}):J.current=Math.min(Tn,xi(h,{startingIndex:Rt,disabledIndices:Ue})):x?J.current=Rt<=Gt?C&&Rt!==-1?h.current.length:Tn:xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue}):J.current=Math.max(Gt,xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue})),Vh(h,J.current)?ee(null):ee(J.current)}}function me(He){M==="auto"&&IT(He.nativeEvent)&&(oe.current=!0)}function ze(He){oe.current=M,M==="auto"&&zT(He.nativeEvent)&&(oe.current=!0)}const be=D&&r&&$e&&{"aria-activedescendant":We||U},ht=h.current.find(He=>(He==null?void 0:He.id)===U);return{reference:{...be,onKeyDown(He){ke.current=!1;const Rt=He.key.indexOf("Arrow")===0,Gt=UN(He.key,I,T),Tn=w5(He.key,I,T),ar=x5(He.key,I),or=(R?Gt:ar)||He.key==="Enter"||He.key.trim()==="";if(D&&r){const Yn=ve==null?void 0:ve.nodesRef.current.find(fe=>fe.parentId==null),Ln=ve&&Yn?xN(ve.nodesRef.current,Yn.id):null;if(Rt&&Ln&&Z){const fe=new KeyboardEvent("keydown",{key:He.key,bubbles:!0});if(Gt||Tn){var dr,Jn;const Ne=((dr=Ln.context)==null?void 0:dr.elements.domReference)===He.currentTarget,mt=Tn&&!Ne?(Jn=Ln.context)==null?void 0:Jn.elements.domReference:Gt?ht:null;mt&&(li(He),mt.dispatchEvent(fe),Re(void 0))}if(ar&&Ln.context&&Ln.context.open&&Ln.parentId&&He.currentTarget!==Ln.context.elements.domReference){var pr;li(He),(pr=Ln.context.elements.domReference)==null||pr.dispatchEvent(fe);return}}return Le(He)}if(!(!r&&!N&&Rt)){if(or&&(pe.current=R&&ar?null:He.key),R){Gt&&(li(He),r?(J.current=TE(h,Ue),ee(J.current)):a(!0,He.nativeEvent));return}ar&&(E!=null&&(J.current=E),li(He),!r&&N?a(!0,He.nativeEvent):Le(He),r&&ee(J.current))}},onFocus(){r&&ee(null)},onPointerDown:ze,onMouseDown:me,onClick:me},floating:{"aria-orientation":I==="both"?void 0:I,...be,onKeyDown:Le,onPointerMove(){ke.current=!0}},item:Ge}},[c,s,U,We,L,te,h,S,I,T,D,r,$e,R,E,N,C,$,x,M,ee,a,Ge,ve,Z])}function VN(e,n){n===void 0&&(n={});const{open:r,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=n,f=OE();return Y.useMemo(()=>{const h={id:a,role:c};return s?c==="tooltip"?{reference:{"aria-describedby":r?a:void 0},floating:h}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?a:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:f}},floating:{...h,...c==="menu"&&{"aria-labelledby":f}}}:{}},[s,c,r,a,f])}function HN(e,n){var r;const{open:a,dataRef:s}=e,{listRef:c,activeIndex:f,onMatch:h,onTypingChange:v,enabled:y=!0,findMatch:S=null,resetMs:E=750,ignoreKeys:C=[],selectedIndex:x=null}=n,R=Y.useRef(),T=Y.useRef(""),D=Y.useRef((r=x??f)!=null?r:-1),M=Y.useRef(null),F=lu(h),N=lu(v),V=ou(S),I=ou(C);return jr(()=>{a&&(clearTimeout(R.current),M.current=null,T.current="")},[a]),jr(()=>{if(a&&T.current===""){var $;D.current=($=x??f)!=null?$:-1}},[a,x,f]),Y.useMemo(()=>{if(!y)return{};function $(ne){ne?s.current.typing||(s.current.typing=ne,N(ne)):s.current.typing&&(s.current.typing=ne,N(ne))}function H(ne,ve,ee){const oe=V.current?V.current(ve,ee):ve.find(J=>(J==null?void 0:J.toLocaleLowerCase().indexOf(ee.toLocaleLowerCase()))===0);return oe?ne.indexOf(oe):-1}function Z(ne){const ve=c.current;if(T.current.length>0&&T.current[0]!==" "&&(H(ve,ve,T.current)===-1?$(!1):ne.key===" "&&li(ne)),ve==null||I.current.includes(ne.key)||ne.key.length!==1||ne.ctrlKey||ne.metaKey||ne.altKey)return;a&&ne.key!==" "&&(li(ne),$(!0)),ve.every(pe=>{var ke,xe;return pe?((ke=pe[0])==null?void 0:ke.toLocaleLowerCase())!==((xe=pe[1])==null?void 0:xe.toLocaleLowerCase()):!0})&&T.current===ne.key&&(T.current="",D.current=M.current),T.current+=ne.key,clearTimeout(R.current),R.current=setTimeout(()=>{T.current="",D.current=M.current,$(!1)},E);const oe=D.current,J=H(ve,[...ve.slice((oe||0)+1),...ve.slice(0,(oe||0)+1)],T.current);J!==-1?(F(J),M.current=J):ne.key!==" "&&(T.current="",$(!1))}return{reference:{onKeyDown:Z},floating:{onKeyDown:Z,onKeyUp(ne){ne.key===" "&&$(!1)}}}},[y,a,s,c,E,I,V,F,N])}const qN=({styles:e,type:n,options:r,label:a,reusable:s})=>{var ke,xe,Ie,se,Te,L,te,ye,U,_e,We,Re;const[c,f]=Y.useState(!1),[h,v]=Y.useState(null),[y,S]=Y.useState(null),{client:E}=cr(),C=r.reduce((Oe,$e)=>(Oe[$e.label]=$e.value,Oe),{}),x=C?Object.keys(C):[],R=Oe=>{f(y!==null&&!s?!1:Oe)},{refs:T,floatingStyles:D,context:M}=jN({placement:"bottom-start",open:c,onOpenChange:R,whileElementsMounted:Z9,middleware:[A9(5),O9({padding:10}),M9({apply({rects:Oe,elements:$e,availableHeight:Ge}){Object.assign($e.floating.style,{maxHeight:`${Ge}px`,minWidth:`${Oe.reference.width}px`})},padding:10})]}),F=Y.useRef([]),N=Y.useRef(x),V=Y.useRef(!1),I=LN(M,{event:"mousedown"}),$=zN(M),H=VN(M,{role:"listbox"}),Z=BN(M,{listRef:F,activeIndex:h,selectedIndex:y,onNavigate:v,loop:!0}),ne=HN(M,{listRef:N,activeIndex:h,selectedIndex:y,onMatch:c?v:S,onTypingChange(Oe){V.current=Oe}}),{getReferenceProps:ve,getFloatingProps:ee,getItemProps:oe}=$N([$,H,Z,ne,I]),J=Oe=>{S(Oe),E.sendMessage(C[x[Oe]]),f(!1)},pe=y!==null?x[y]:void 0;return he.jsxs(he.Fragment,{children:[he.jsxs("div",{tabIndex:0,ref:T.setReference,"aria-labelledby":"select-label","aria-autocomplete":"none","data-disabled":y!==null&&!s?"":void 0,...(xe=(ke=e==null?void 0:e[n])==null?void 0:ke.button)==null?void 0:xe.container,...ve(),children:[he.jsx("span",{...(se=(Ie=e==null?void 0:e[n])==null?void 0:Ie.button)==null?void 0:se.text,children:pe||a||"Select..."}),he.jsx(dP,{...(L=(Te=e==null?void 0:e[n])==null?void 0:Te.button)==null?void 0:L.icon})]}),c&&he.jsx(DN,{children:he.jsx(MN,{context:M,modal:!1,children:he.jsx("div",{ref:T.setFloating,className:(U=(ye=(te=e==null?void 0:e[n])==null?void 0:te.content)==null?void 0:ye.container)==null?void 0:U.className,style:{...D,...(Re=(We=(_e=e==null?void 0:e[n])==null?void 0:_e.content)==null?void 0:We.container)==null?void 0:Re.style},...ee(),children:x.map((Oe,$e)=>{var Ge,Ue;return he.jsx("div",{ref:Le=>{F.current[$e]=Le},role:"option",tabIndex:$e===h?0:-1,"aria-selected":$e===y&&$e===h,"data-active":$e===h?"":void 0,...(Ue=(Ge=e==null?void 0:e[n])==null?void 0:Ge.content)==null?void 0:Ue.item,...oe({onClick(){J($e)},onKeyDown(Le){Le.key==="Enter"&&(Le.preventDefault(),J($e)),Le.key===" "&&!V.current&&(Le.preventDefault(),J($e))}}),children:Oe},Oe)})})})})]})},WN=j.forwardRef(({type:e,title:n,styles:r,url:a,...s},c)=>{var f,h,v;return he.jsxs("a",{...s,...(f=r==null?void 0:r[e])==null?void 0:f.container,href:a,download:!0,ref:c,children:[he.jsx("p",{...(h=r==null?void 0:r[e])==null?void 0:h.title,children:n||a}),he.jsx(hP,{...(v=r==null?void 0:r[e])==null?void 0:v.icon})]})}),FE={text:A7,button:P7,bubble:F7,audio:oP,column:yP,file:WN,image:rP,location:gP,row:bP,video:aP,carousel:f9,dropdown:qN},ud=({block:e,styles:n,...r})=>{const a=FE[e.type];return he.jsx(a,{...r,...e,styles:n})},C5=e=>{let n;const r=new Set,a=(v,y)=>{const S=typeof v=="function"?v(n):v;if(!Object.is(S,n)){const E=n;n=y??typeof S!="object"?S:Object.assign({},n,S),r.forEach(C=>C(n,E))}},s=()=>n,h={setState:a,getState:s,subscribe:v=>(r.add(v),()=>r.delete(v)),destroy:()=>{r.clear()}};return n=e(a,s,h),h},YN=e=>e?C5(e):C5;var IE={exports:{}},zE={},kg={exports:{}},jE={};/**
432
+ * @license React
433
+ * use-sync-external-store-shim.production.min.js
434
+ *
435
+ * Copyright (c) Facebook, Inc. and its affiliates.
436
+ *
437
+ * This source code is licensed under the MIT license found in the
438
+ * LICENSE file in the root directory of this source tree.
439
+ */var k5;function ZN(){if(k5)return jE;k5=1;var e=j;function n(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}var r=typeof Object.is=="function"?Object.is:n,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue;function h(E,C){var x=C(),R=a({inst:{value:x,getSnapshot:C}}),T=R[0].inst,D=R[1];return c(function(){T.value=x,T.getSnapshot=C,v(T)&&D({inst:T})},[E,x,C]),s(function(){return v(T)&&D({inst:T}),E(function(){v(T)&&D({inst:T})})},[E]),f(x),x}function v(E){var C=E.getSnapshot;E=E.value;try{var x=C();return!r(E,x)}catch{return!0}}function y(E,C){return C()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return jE.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:S,jE}var $E={};/**
440
+ * @license React
441
+ * use-sync-external-store-shim.development.js
442
+ *
443
+ * Copyright (c) Facebook, Inc. and its affiliates.
444
+ *
445
+ * This source code is licensed under the MIT license found in the
446
+ * LICENSE file in the root directory of this source tree.
447
+ */var _5;function KN(){return _5||(_5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(N){{for(var V=arguments.length,I=new Array(V>1?V-1:0),$=1;$<V;$++)I[$-1]=arguments[$];a("error",N,I)}}function a(N,V,I){{var $=n.ReactDebugCurrentFrame,H=$.getStackAddendum();H!==""&&(V+="%s",I=I.concat([H]));var Z=I.map(function(ne){return String(ne)});Z.unshift("Warning: "+V),Function.prototype.apply.call(console[N],console,Z)}}function s(N,V){return N===V&&(N!==0||1/N===1/V)||N!==N&&V!==V}var c=typeof Object.is=="function"?Object.is:s,f=e.useState,h=e.useEffect,v=e.useLayoutEffect,y=e.useDebugValue,S=!1,E=!1;function C(N,V,I){S||e.startTransition!==void 0&&(S=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var $=V();if(!E){var H=V();c($,H)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),E=!0)}var Z=f({inst:{value:$,getSnapshot:V}}),ne=Z[0].inst,ve=Z[1];return v(function(){ne.value=$,ne.getSnapshot=V,x(ne)&&ve({inst:ne})},[N,$,V]),h(function(){x(ne)&&ve({inst:ne});var ee=function(){x(ne)&&ve({inst:ne})};return N(ee)},[N]),y($),$}function x(N){var V=N.getSnapshot,I=N.value;try{var $=V();return!c(I,$)}catch{return!0}}function R(N,V,I){return V()}var T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D=!T,M=D?R:C,F=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:M;$E.useSyncExternalStore=F,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),$E}var T5;function R5(){return T5||(T5=1,process.env.NODE_ENV==="production"?kg.exports=ZN():kg.exports=KN()),kg.exports}/**
448
+ * @license React
449
+ * use-sync-external-store-shim/with-selector.production.min.js
450
+ *
451
+ * Copyright (c) Facebook, Inc. and its affiliates.
452
+ *
453
+ * This source code is licensed under the MIT license found in the
454
+ * LICENSE file in the root directory of this source tree.
455
+ */var O5;function GN(){if(O5)return zE;O5=1;var e=j,n=R5();function r(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;return zE.useSyncExternalStoreWithSelector=function(y,S,E,C,x){var R=c(null);if(R.current===null){var T={hasValue:!1,value:null};R.current=T}else T=R.current;R=h(function(){function M($){if(!F){if(F=!0,N=$,$=C($),x!==void 0&&T.hasValue){var H=T.value;if(x(H,$))return V=H}return V=$}if(H=V,a(N,$))return H;var Z=C($);return x!==void 0&&x(H,Z)?H:(N=$,V=Z)}var F=!1,N,V,I=E===void 0?null:E;return[function(){return M(S())},I===null?void 0:function(){return M(I())}]},[S,E,C,x]);var D=s(y,R[0],R[1]);return f(function(){T.hasValue=!0,T.value=D},[D]),v(D),D},zE}var UE={};/**
456
+ * @license React
457
+ * use-sync-external-store-shim/with-selector.development.js
458
+ *
459
+ * Copyright (c) Facebook, Inc. and its affiliates.
460
+ *
461
+ * This source code is licensed under the MIT license found in the
462
+ * LICENSE file in the root directory of this source tree.
463
+ */var D5;function QN(){return D5||(D5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=R5();function r(S,E){return S===E&&(S!==0||1/S===1/E)||S!==S&&E!==E}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;function y(S,E,C,x,R){var T=c(null),D;T.current===null?(D={hasValue:!1,value:null},T.current=D):D=T.current;var M=h(function(){var I=!1,$,H,Z=function(oe){if(!I){I=!0,$=oe;var J=x(oe);if(R!==void 0&&D.hasValue){var pe=D.value;if(R(pe,J))return H=pe,pe}return H=J,J}var ke=$,xe=H;if(a(ke,oe))return xe;var Ie=x(oe);return R!==void 0&&R(xe,Ie)?xe:($=oe,H=Ie,Ie)},ne=C===void 0?null:C,ve=function(){return Z(E())},ee=ne===null?void 0:function(){return Z(ne())};return[ve,ee]},[E,C,x,R]),F=M[0],N=M[1],V=s(S,F,N);return f(function(){D.hasValue=!0,D.value=V},[V]),v(V),V}UE.useSyncExternalStoreWithSelector=y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),UE}process.env.NODE_ENV==="production"?IE.exports=GN():IE.exports=QN();var XN=IE.exports;const JN=Qf(XN),{useSyncExternalStoreWithSelector:eF}=JN;let mZ=!1;function tF(e,n=e.getState,r){const a=eF(e.subscribe,e.getState,e.getServerState||e.getState,n,r);return j.useDebugValue(a),a}const A5=e=>{const n=typeof e=="function"?YN(e):e,r=(a,s)=>tF(n,a,s);return Object.assign(r,n),r},nF=e=>e?A5(e):A5,BE=new Map,_g=e=>{const n=BE.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([r,a])=>[r,a.getState()])):{}},rF=(e,n,r)=>{if(e===void 0)return{type:"untracked",connection:n.connect(r)};const a=BE.get(r.name);if(a)return{type:"tracked",store:e,...a};const s={connection:n.connect(r),stores:{}};return BE.set(r.name,s),{type:"tracked",store:e,...s}},iF=(e,n={})=>(r,a,s)=>{const{enabled:c,anonymousActionType:f,store:h,...v}=n;let y;try{y=(c??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!y)return e(r,a,s);const{connection:S,...E}=rF(h,y,v);let C=!0;s.setState=(T,D,M)=>{const F=r(T,D);if(!C)return F;const N=M===void 0?{type:f||"anonymous"}:typeof M=="string"?{type:M}:M;return h===void 0?(S==null||S.send(N,a()),F):(S==null||S.send({...N,type:`${h}/${N.type}`},{..._g(v.name),[h]:s.getState()}),F)};const x=(...T)=>{const D=C;C=!1,r(...T),C=D},R=e(s.setState,a,s);if(E.type==="untracked"?S==null||S.init(R):(E.stores[E.store]=s,S==null||S.init(Object.fromEntries(Object.entries(E.stores).map(([T,D])=>[T,T===E.store?R:D.getState()])))),s.dispatchFromDevtools&&typeof s.dispatch=="function"){let T=!1;const D=s.dispatch;s.dispatch=(...M)=>{D(...M)}}return S.subscribe(T=>{var D;switch(T.type){case"ACTION":if(typeof T.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return VE(T.payload,M=>{if(M.type==="__setState"){if(h===void 0){x(M.state);return}Object.keys(M.state).length!==1&&console.error(`
464
+ [zustand devtools middleware] Unsupported __setState action format.
465
+ When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
466
+ and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
467
+ `);const F=M.state[h];if(F==null)return;JSON.stringify(s.getState())!==JSON.stringify(F)&&x(F);return}s.dispatchFromDevtools&&typeof s.dispatch=="function"&&s.dispatch(M)});case"DISPATCH":switch(T.payload.type){case"RESET":return x(R),h===void 0?S==null?void 0:S.init(s.getState()):S==null?void 0:S.init(_g(v.name));case"COMMIT":if(h===void 0){S==null||S.init(s.getState());return}return S==null?void 0:S.init(_g(v.name));case"ROLLBACK":return VE(T.state,M=>{if(h===void 0){x(M),S==null||S.init(s.getState());return}x(M[h]),S==null||S.init(_g(v.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return VE(T.state,M=>{if(h===void 0){x(M);return}JSON.stringify(s.getState())!==JSON.stringify(M[h])&&x(M[h])});case"IMPORT_STATE":{const{nextLiftedState:M}=T.payload,F=(D=M.computedStates.slice(-1)[0])==null?void 0:D.state;if(!F)return;x(h===void 0?F:F[h]),S==null||S.send(null,M);return}case"PAUSE_RECORDING":return C=!C}return}}),R},VE=(e,n)=>{let r;try{r=JSON.parse(e)}catch(a){console.error("[zustand devtools middleware] Could not parse the received json",a)}r!==void 0&&n(r)};function aF(e,n){let r;try{r=e()}catch{return}return{getItem:s=>{var c;const f=v=>v===null?null:JSON.parse(v,n==null?void 0:n.reviver),h=(c=r.getItem(s))!=null?c:null;return h instanceof Promise?h.then(f):f(h)},setItem:(s,c)=>r.setItem(s,JSON.stringify(c,n==null?void 0:n.replacer)),removeItem:s=>r.removeItem(s)}}const Wh=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(a){return Wh(a)(r)},catch(a){return this}}}catch(r){return{then(a){return this},catch(a){return Wh(a)(r)}}}},oF=(e,n)=>(r,a,s)=>{let c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:D=>D,version:0,merge:(D,M)=>({...M,...D}),...n},f=!1;const h=new Set,v=new Set;let y;try{y=c.getStorage()}catch{}if(!y)return e((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...D)},a,s);const S=Wh(c.serialize),E=()=>{const D=c.partialize({...a()});let M;const F=S({state:D,version:c.version}).then(N=>y.setItem(c.name,N)).catch(N=>{M=N});if(M)throw M;return F},C=s.setState;s.setState=(D,M)=>{C(D,M),E()};const x=e((...D)=>{r(...D),E()},a,s);let R;const T=()=>{var D;if(!y)return;f=!1,h.forEach(F=>F(a()));const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,a()))||void 0;return Wh(y.getItem.bind(y))(c.name).then(F=>{if(F)return c.deserialize(F)}).then(F=>{if(F)if(typeof F.version=="number"&&F.version!==c.version){if(c.migrate)return c.migrate(F.state,F.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return F.state}).then(F=>{var N;return R=c.merge(F,(N=a())!=null?N:x),r(R,!0),E()}).then(()=>{M==null||M(R,void 0),f=!0,v.forEach(F=>F(R))}).catch(F=>{M==null||M(void 0,F)})};return s.persist={setOptions:D=>{c={...c,...D},D.getStorage&&(y=D.getStorage())},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>T(),hasHydrated:()=>f,onHydrate:D=>(h.add(D),()=>{h.delete(D)}),onFinishHydration:D=>(v.add(D),()=>{v.delete(D)})},T(),R||x},lF=(e,n)=>(r,a,s)=>{let c={storage:aF(()=>localStorage),partialize:T=>T,version:0,merge:(T,D)=>({...D,...T}),...n},f=!1;const h=new Set,v=new Set;let y=c.storage;if(!y)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...T)},a,s);const S=()=>{const T=c.partialize({...a()});return y.setItem(c.name,{state:T,version:c.version})},E=s.setState;s.setState=(T,D)=>{E(T,D),S()};const C=e((...T)=>{r(...T),S()},a,s);let x;const R=()=>{var T,D;if(!y)return;f=!1,h.forEach(F=>{var N;return F((N=a())!=null?N:C)});const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,(T=a())!=null?T:C))||void 0;return Wh(y.getItem.bind(y))(c.name).then(F=>{if(F)if(typeof F.version=="number"&&F.version!==c.version){if(c.migrate)return c.migrate(F.state,F.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return F.state}).then(F=>{var N;return x=c.merge(F,(N=a())!=null?N:C),r(x,!0),S()}).then(()=>{M==null||M(x,void 0),x=a(),f=!0,v.forEach(F=>F(x))}).catch(F=>{M==null||M(void 0,F)})};return s.persist={setOptions:T=>{c={...c,...T},T.storage&&(y=T.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>R(),hasHydrated:()=>f,onHydrate:T=>(h.add(T),()=>{h.delete(T)}),onFinishHydration:T=>(v.add(T),()=>{v.delete(T)})},c.skipHydration||R(),x||C},sF=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?oF(e,n):lF(e,n),cd=nF()(iF(sF(e=>({messageHistory:{},addMessageToHistory:({userId:n,message:r})=>e(a=>({...a,messageHistory:{...a.messageHistory,[n]:[r,...(a.messageHistory[n]??[]).slice(0,100)]}})),setUser:n=>e(r=>({...r,user:n})),setConversationId:n=>e(r=>({...r,conversationId:n}))}),{name:"botpress-webchat"})));var eo=function(){return eo=Object.assign||function(n){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},eo.apply(this,arguments)};function M5(e,n){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function uF(e,n,r){if(r||arguments.length===2)for(var a=0,s=n.length,c;a<s;a++)(c||!(a in n))&&(c||(c=Array.prototype.slice.call(n,0,a)),c[a]=n[a]);return e.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function cF(){var e=j.useRef(!1),n=j.useCallback(function(){return e.current},[]);return j.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),n}function fF(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={loading:!1});var a=j.useRef(0),s=cF(),c=j.useState(r),f=c[0],h=c[1],v=j.useCallback(function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];var E=++a.current;return f.loading||h(function(C){return eo(eo({},C),{loading:!0})}),e.apply(void 0,y).then(function(C){return s()&&E===a.current&&h({value:C,loading:!1}),C},function(C){return s()&&E===a.current&&h({error:C,loading:!1}),C})},n);return[f,v]}function L5(e,n){n===void 0&&(n=[]);var r=fF(e,n,{loading:!0}),a=r[0],s=r[1];return j.useEffect(function(){s()},[s]),a}function dF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function pF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var hF=function(e){j.useEffect(e,[])};const fd=hF;var mF=function(e){fd(function(){e()})};const vF=mF;var gF=function(e){var n=j.useRef(e);n.current=e,fd(function(){return function(){return n.current()}})};const yF=gF;var bF=function(e){var n=j.useRef(0),r=j.useState(e),a=r[0],s=r[1],c=j.useCallback(function(f){cancelAnimationFrame(n.current),n.current=requestAnimationFrame(function(){s(f)})},[]);return yF(function(){cancelAnimationFrame(n.current)}),[a,c]};const SF=bF;var EF=function(e){process.env.NODE_ENV==="development"&&(typeof e!="object"||typeof e.current>"u")&&console.error("`useScroll` expects a single ref argument.");var n=SF({x:0,y:0}),r=n[0],a=n[1];return j.useEffect(function(){var s=function(){e.current&&a({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&dF(e.current,"scroll",s,{capture:!1,passive:!0}),function(){e.current&&pF(e.current,"scroll",s)}},[e]),r};const xF=EF,wF=e=>{const n=new Date;return e.getTime()-n.getTime()},CF=(e=wF)=>{const[n,r]=j.useState(0),[a,s]=j.useState(),c=()=>r(f=>f+1);return L5(async()=>{if(a){const f=setTimeout(c,e(a));return()=>{clearTimeout(f)}}},[a]),[n,s]},P5=j.memo(j.forwardRef((e,n)=>{const{state:r,theme:{composer:a}}=cr(),[s,c]=j.useState("");return he.jsx(eT.Provider,{value:{value:s,setValue:c},children:he.jsx("div",{"data-disabled":r.disableComposer,...e,...a==null?void 0:a.container,ref:n})})})),N5=j.memo(({...e})=>{const{state:n,theme:{composer:r},client:a}=cr(),{value:s,setValue:c}=tT(),f=j.useRef(null),[h,v]=j.useState(-1),y=cd(C=>C.user),S=cd(C=>C.messageHistory),E=()=>{s&&(a.sendMessage(s),c(""))};return j.useEffect(()=>{f.current&&(f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[s]),he.jsx("textarea",{...r==null?void 0:r.input,disabled:n.disableComposer,ref:f,value:s,"data-has-value":!!s,onChange:C=>c(C.target.value),onKeyDown:C=>{if(!n.disableComposer){if(C.key==="Enter"&&(C.preventDefault(),E(),v(-1)),C.key==="ArrowUp"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];h<x.length-1&&c(x[h+1]),v(()=>Math.min(h+1,x.length-1))}if(C.key==="ArrowDown"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];c(h===0?"":x[h-1]),v(()=>Math.max(h-1,-1))}}},...e})}),F5=j.memo(j.forwardRef(({icon:e=cP,...n},r)=>{var h,v;const{value:a,setValue:s}=tT(),c=()=>{a&&s("")},{theme:{composer:f}}=cr();return he.jsx("button",{ref:r,...n,...(h=f==null?void 0:f.button)==null?void 0:h.container,disabled:!a,onClick:c,children:he.jsx(e,{...(v=f==null?void 0:f.button)==null?void 0:v.icon})})})),I5=({children:e})=>{const[n,r]=j.useState(!1),[a,s]=j.useState(""),[c,f]=j.useState(null),h=({title:y,content:S})=>{s(y),f(S),r(!0)},v=()=>{r(!1)};return he.jsxs(rT.Provider,{value:{hideModal:v,showModal:h,title:a,content:c,open:n},children:[he.jsx($c,{open:n,onOpenChange:r,children:he.jsx($c.Content,{title:a,children:c})}),e]})};/**
468
+ * @license
469
+ * Copyright 2021 Google LLC
470
+ *
471
+ * Licensed under the Apache License, Version 2.0 (the "License");
472
+ * you may not use this file except in compliance with the License.
473
+ * You may obtain a copy of the License at
474
+ *
475
+ * http://www.apache.org/licenses/LICENSE-2.0
476
+ *
477
+ * Unless required by applicable law or agreed to in writing, software
478
+ * distributed under the License is distributed on an "AS IS" BASIS,
479
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
480
+ * See the License for the specific language governing permissions and
481
+ * limitations under the License.
482
+ */function oa(e){return e<0?-1:e===0?0:1}function Yh(e,n,r){return(1-r)*e+r*n}function kF(e,n,r){return r<e?e:r>n?n:r}function Tg(e,n,r){return r<e?e:r>n?n:r}function _F(e){return e=e%360,e<0&&(e=e+360),e}function HE(e,n){const r=e[0]*n[0][0]+e[1]*n[0][1]+e[2]*n[0][2],a=e[0]*n[1][0]+e[1]*n[1][1]+e[2]*n[1][2],s=e[0]*n[2][0]+e[1]*n[2][1]+e[2]*n[2][2];return[r,a,s]}/**
483
+ * @license
484
+ * Copyright 2021 Google LLC
485
+ *
486
+ * Licensed under the Apache License, Version 2.0 (the "License");
487
+ * you may not use this file except in compliance with the License.
488
+ * You may obtain a copy of the License at
489
+ *
490
+ * http://www.apache.org/licenses/LICENSE-2.0
491
+ *
492
+ * Unless required by applicable law or agreed to in writing, software
493
+ * distributed under the License is distributed on an "AS IS" BASIS,
494
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
495
+ * See the License for the specific language governing permissions and
496
+ * limitations under the License.
497
+ */const TF=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],RF=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],OF=[95.047,100,108.883];function qE(e,n,r){return(255<<24|(e&255)<<16|(n&255)<<8|r&255)>>>0}function z5(e){const n=Oc(e[0]),r=Oc(e[1]),a=Oc(e[2]);return qE(n,r,a)}function DF(e){return e>>16&255}function AF(e){return e>>8&255}function MF(e){return e&255}function LF(e,n,r){const a=RF,s=a[0][0]*e+a[0][1]*n+a[0][2]*r,c=a[1][0]*e+a[1][1]*n+a[1][2]*r,f=a[2][0]*e+a[2][1]*n+a[2][2]*r,h=Oc(s),v=Oc(c),y=Oc(f);return qE(h,v,y)}function PF(e){const n=dd(DF(e)),r=dd(AF(e)),a=dd(MF(e));return HE([n,r,a],TF)}function NF(e){const n=su(e),r=Oc(n);return qE(r,r,r)}function j5(e){const n=PF(e)[1];return 116*$5(n/100)-16}function su(e){return 100*IF((e+16)/116)}function WE(e){return $5(e/100)*116-16}function dd(e){const n=e/255;return n<=.040449936?n/12.92*100:Math.pow((n+.055)/1.055,2.4)*100}function Oc(e){const n=e/100;let r=0;return n<=.0031308?r=n*12.92:r=1.055*Math.pow(n,1/2.4)-.055,kF(0,255,Math.round(r*255))}function FF(){return OF}function $5(e){const n=.008856451679035631,r=24389/27;return e>n?Math.pow(e,1/3):(r*e+16)/116}function IF(e){const n=.008856451679035631,r=24389/27,a=e*e*e;return a>n?a:(116*e-16)/r}/**
498
+ * @license
499
+ * Copyright 2021 Google LLC
500
+ *
501
+ * Licensed under the Apache License, Version 2.0 (the "License");
502
+ * you may not use this file except in compliance with the License.
503
+ * You may obtain a copy of the License at
504
+ *
505
+ * http://www.apache.org/licenses/LICENSE-2.0
506
+ *
507
+ * Unless required by applicable law or agreed to in writing, software
508
+ * distributed under the License is distributed on an "AS IS" BASIS,
509
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
510
+ * See the License for the specific language governing permissions and
511
+ * limitations under the License.
512
+ */class bo{static make(n=FF(),r=200/Math.PI*su(50)/100,a=50,s=2,c=!1){const f=n,h=f[0]*.401288+f[1]*.650173+f[2]*-.051461,v=f[0]*-.250268+f[1]*1.204414+f[2]*.045854,y=f[0]*-.002079+f[1]*.048952+f[2]*.953127,S=.8+s/10,E=S>=.9?Yh(.59,.69,(S-.9)*10):Yh(.525,.59,(S-.8)*10);let C=c?1:S*(1-1/3.6*Math.exp((-r-42)/92));C=C>1?1:C<0?0:C;const x=S,R=[C*(100/h)+1-C,C*(100/v)+1-C,C*(100/y)+1-C],T=1/(5*r+1),D=T*T*T*T,M=1-D,F=D*r+.1*M*M*Math.cbrt(5*r),N=su(a)/n[1],V=1.48+Math.sqrt(N),I=.725/Math.pow(N,.2),$=I,H=[Math.pow(F*R[0]*h/100,.42),Math.pow(F*R[1]*v/100,.42),Math.pow(F*R[2]*y/100,.42)],Z=[400*H[0]/(H[0]+27.13),400*H[1]/(H[1]+27.13),400*H[2]/(H[2]+27.13)],ne=(2*Z[0]+Z[1]+.05*Z[2])*I;return new bo(N,ne,I,$,E,x,R,F,Math.pow(F,.25),V)}constructor(n,r,a,s,c,f,h,v,y,S){this.n=n,this.aw=r,this.nbb=a,this.ncb=s,this.c=c,this.nc=f,this.rgbD=h,this.fl=v,this.fLRoot=y,this.z=S}}bo.DEFAULT=bo.make();/**
513
+ * @license
514
+ * Copyright 2021 Google LLC
515
+ *
516
+ * Licensed under the Apache License, Version 2.0 (the "License");
517
+ * you may not use this file except in compliance with the License.
518
+ * You may obtain a copy of the License at
519
+ *
520
+ * http://www.apache.org/licenses/LICENSE-2.0
521
+ *
522
+ * Unless required by applicable law or agreed to in writing, software
523
+ * distributed under the License is distributed on an "AS IS" BASIS,
524
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
525
+ * See the License for the specific language governing permissions and
526
+ * limitations under the License.
527
+ */class Pa{constructor(n,r,a,s,c,f,h,v,y){this.hue=n,this.chroma=r,this.j=a,this.q=s,this.m=c,this.s=f,this.jstar=h,this.astar=v,this.bstar=y}distance(n){const r=this.jstar-n.jstar,a=this.astar-n.astar,s=this.bstar-n.bstar,c=Math.sqrt(r*r+a*a+s*s);return 1.41*Math.pow(c,.63)}static fromInt(n){return Pa.fromIntInViewingConditions(n,bo.DEFAULT)}static fromIntInViewingConditions(n,r){const a=(n&16711680)>>16,s=(n&65280)>>8,c=n&255,f=dd(a),h=dd(s),v=dd(c),y=.41233895*f+.35762064*h+.18051042*v,S=.2126*f+.7152*h+.0722*v,E=.01932141*f+.11916382*h+.95034478*v,C=.401288*y+.650173*S-.051461*E,x=-.250268*y+1.204414*S+.045854*E,R=-.002079*y+.048952*S+.953127*E,T=r.rgbD[0]*C,D=r.rgbD[1]*x,M=r.rgbD[2]*R,F=Math.pow(r.fl*Math.abs(T)/100,.42),N=Math.pow(r.fl*Math.abs(D)/100,.42),V=Math.pow(r.fl*Math.abs(M)/100,.42),I=oa(T)*400*F/(F+27.13),$=oa(D)*400*N/(N+27.13),H=oa(M)*400*V/(V+27.13),Z=(11*I+-12*$+H)/11,ne=(I+$-2*H)/9,ve=(20*I+20*$+21*H)/20,ee=(40*I+20*$+H)/20,J=Math.atan2(ne,Z)*180/Math.PI,pe=J<0?J+360:J>=360?J-360:J,ke=pe*Math.PI/180,xe=ee*r.nbb,Ie=100*Math.pow(xe/r.aw,r.c*r.z),se=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Te=pe<20.14?pe+360:pe,L=.25*(Math.cos(Te*Math.PI/180+2)+3.8),ye=5e4/13*L*r.nc*r.ncb*Math.sqrt(Z*Z+ne*ne)/(ve+.305),U=Math.pow(ye,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),_e=U*Math.sqrt(Ie/100),We=_e*r.fLRoot,Re=50*Math.sqrt(U*r.c/(r.aw+4)),Oe=(1+100*.007)*Ie/(1+.007*Ie),$e=1/.0228*Math.log(1+.0228*We),Ge=$e*Math.cos(ke),Ue=$e*Math.sin(ke);return new Pa(pe,_e,Ie,se,We,Re,Oe,Ge,Ue)}static fromJch(n,r,a){return Pa.fromJchInViewingConditions(n,r,a,bo.DEFAULT)}static fromJchInViewingConditions(n,r,a,s){const c=4/s.c*Math.sqrt(n/100)*(s.aw+4)*s.fLRoot,f=r*s.fLRoot,h=r/Math.sqrt(n/100),v=50*Math.sqrt(h*s.c/(s.aw+4)),y=a*Math.PI/180,S=(1+100*.007)*n/(1+.007*n),E=1/.0228*Math.log(1+.0228*f),C=E*Math.cos(y),x=E*Math.sin(y);return new Pa(a,r,n,c,f,v,S,C,x)}static fromUcs(n,r,a){return Pa.fromUcsInViewingConditions(n,r,a,bo.DEFAULT)}static fromUcsInViewingConditions(n,r,a,s){const c=r,f=a,h=Math.sqrt(c*c+f*f),y=(Math.exp(h*.0228)-1)/.0228/s.fLRoot;let S=Math.atan2(f,c)*(180/Math.PI);S<0&&(S+=360);const E=n/(1-(n-100)*.007);return Pa.fromJchInViewingConditions(E,y,S,s)}toInt(){return this.viewed(bo.DEFAULT)}viewed(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),F=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=oa(T)*(100/n.fl)*Math.pow(N,1/.42),I=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(I,1/.42),H=F/n.rgbD[0],Z=V/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Z+.14918677*ne,ee=.38752654*H+.62144744*Z-.00897398*ne,oe=-.0158415*H-.03412294*Z+1.04996444*ne;return LF(ve,ee,oe)}static fromXyzInViewingConditions(n,r,a,s){const c=.401288*n+.650173*r-.051461*a,f=-.250268*n+1.204414*r+.045854*a,h=-.002079*n+.048952*r+.953127*a,v=s.rgbD[0]*c,y=s.rgbD[1]*f,S=s.rgbD[2]*h,E=Math.pow(s.fl*Math.abs(v)/100,.42),C=Math.pow(s.fl*Math.abs(y)/100,.42),x=Math.pow(s.fl*Math.abs(S)/100,.42),R=oa(v)*400*E/(E+27.13),T=oa(y)*400*C/(C+27.13),D=oa(S)*400*x/(x+27.13),M=(11*R+-12*T+D)/11,F=(R+T-2*D)/9,N=(20*R+20*T+21*D)/20,V=(40*R+20*T+D)/20,$=Math.atan2(F,M)*180/Math.PI,H=$<0?$+360:$>=360?$-360:$,Z=H*Math.PI/180,ne=V*s.nbb,ve=100*Math.pow(ne/s.aw,s.c*s.z),ee=4/s.c*Math.sqrt(ve/100)*(s.aw+4)*s.fLRoot,oe=H<20.14?H+360:H,J=1/4*(Math.cos(oe*Math.PI/180+2)+3.8),ke=5e4/13*J*s.nc*s.ncb*Math.sqrt(M*M+F*F)/(N+.305),xe=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),Ie=xe*Math.sqrt(ve/100),se=Ie*s.fLRoot,Te=50*Math.sqrt(xe*s.c/(s.aw+4)),L=(1+100*.007)*ve/(1+.007*ve),te=Math.log(1+.0228*se)/.0228,ye=te*Math.cos(Z),U=te*Math.sin(Z);return new Pa(H,Ie,ve,ee,se,Te,L,ye,U)}xyzInViewingConditions(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),F=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),V=oa(T)*(100/n.fl)*Math.pow(N,1/.42),I=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(I,1/.42),H=F/n.rgbD[0],Z=V/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Z+.14918677*ne,ee=.38752654*H+.62144744*Z-.00897398*ne,oe=-.0158415*H-.03412294*Z+1.04996444*ne;return[ve,ee,oe]}}/**
528
+ * @license
529
+ * Copyright 2021 Google LLC
530
+ *
531
+ * Licensed under the Apache License, Version 2.0 (the "License");
532
+ * you may not use this file except in compliance with the License.
533
+ * You may obtain a copy of the License at
534
+ *
535
+ * http://www.apache.org/licenses/LICENSE-2.0
536
+ *
537
+ * Unless required by applicable law or agreed to in writing, software
538
+ * distributed under the License is distributed on an "AS IS" BASIS,
539
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
540
+ * See the License for the specific language governing permissions and
541
+ * limitations under the License.
542
+ */class _t{static sanitizeRadians(n){return(n+Math.PI*8)%(Math.PI*2)}static trueDelinearized(n){const r=n/100;let a=0;return r<=.0031308?a=r*12.92:a=1.055*Math.pow(r,1/2.4)-.055,a*255}static chromaticAdaptation(n){const r=Math.pow(Math.abs(n),.42);return oa(n)*400*r/(r+27.13)}static hueOf(n){const r=HE(n,_t.SCALED_DISCOUNT_FROM_LINRGB),a=_t.chromaticAdaptation(r[0]),s=_t.chromaticAdaptation(r[1]),c=_t.chromaticAdaptation(r[2]),f=(11*a+-12*s+c)/11,h=(a+s-2*c)/9;return Math.atan2(h,f)}static areInCyclicOrder(n,r,a){const s=_t.sanitizeRadians(r-n),c=_t.sanitizeRadians(a-n);return s<c}static intercept(n,r,a){return(r-n)/(a-n)}static lerpPoint(n,r,a){return[n[0]+(a[0]-n[0])*r,n[1]+(a[1]-n[1])*r,n[2]+(a[2]-n[2])*r]}static setCoordinate(n,r,a,s){const c=_t.intercept(n[s],r,a[s]);return _t.lerpPoint(n,c,a)}static isBounded(n){return 0<=n&&n<=100}static nthVertex(n,r){const a=_t.Y_FROM_LINRGB[0],s=_t.Y_FROM_LINRGB[1],c=_t.Y_FROM_LINRGB[2],f=r%4<=1?0:100,h=r%2===0?0:100;if(r<4){const v=f,y=h,S=(n-v*s-y*c)/a;return _t.isBounded(S)?[S,v,y]:[-1,-1,-1]}else if(r<8){const v=f,y=h,S=(n-y*a-v*c)/s;return _t.isBounded(S)?[y,S,v]:[-1,-1,-1]}else{const v=f,y=h,S=(n-v*a-y*s)/c;return _t.isBounded(S)?[v,y,S]:[-1,-1,-1]}}static bisectToSegment(n,r){let a=[-1,-1,-1],s=a,c=0,f=0,h=!1,v=!0;for(let y=0;y<12;y++){const S=_t.nthVertex(n,y);if(S[0]<0)continue;const E=_t.hueOf(S);if(!h){a=S,s=S,c=E,f=E,h=!0;continue}(v||_t.areInCyclicOrder(c,E,f))&&(v=!1,_t.areInCyclicOrder(c,r,E)?(s=S,f=E):(a=S,c=E))}return[a,s]}static midpoint(n,r){return[(n[0]+r[0])/2,(n[1]+r[1])/2,(n[2]+r[2])/2]}static criticalPlaneBelow(n){return Math.floor(n-.5)}static criticalPlaneAbove(n){return Math.ceil(n-.5)}static bisectToLimit(n,r){const a=_t.bisectToSegment(n,r);let s=a[0],c=_t.hueOf(s),f=a[1];for(let h=0;h<3;h++)if(s[h]!==f[h]){let v=-1,y=255;s[h]<f[h]?(v=_t.criticalPlaneBelow(_t.trueDelinearized(s[h])),y=_t.criticalPlaneAbove(_t.trueDelinearized(f[h]))):(v=_t.criticalPlaneAbove(_t.trueDelinearized(s[h])),y=_t.criticalPlaneBelow(_t.trueDelinearized(f[h])));for(let S=0;S<8&&!(Math.abs(y-v)<=1);S++){const E=Math.floor((v+y)/2),C=_t.CRITICAL_PLANES[E],x=_t.setCoordinate(s,C,f,h),R=_t.hueOf(x);_t.areInCyclicOrder(c,r,R)?(f=x,y=E):(s=x,c=R,v=E)}}return _t.midpoint(s,f)}static inverseChromaticAdaptation(n){const r=Math.abs(n),a=Math.max(0,27.13*r/(400-r));return oa(n)*Math.pow(a,1/.42)}static findResultByJ(n,r,a){let s=Math.sqrt(a)*11;const c=bo.DEFAULT,f=1/Math.pow(1.64-Math.pow(.29,c.n),.73),v=.25*(Math.cos(n+2)+3.8)*(5e4/13)*c.nc*c.ncb,y=Math.sin(n),S=Math.cos(n);for(let E=0;E<5;E++){const C=s/100,x=r===0||s===0?0:r/Math.sqrt(C),R=Math.pow(x*f,1/.9),D=c.aw*Math.pow(C,1/c.c/c.z)/c.nbb,M=23*(D+.305)*R/(23*v+11*R*S+108*R*y),F=M*S,N=M*y,V=(460*D+451*F+288*N)/1403,I=(460*D-891*F-261*N)/1403,$=(460*D-220*F-6300*N)/1403,H=_t.inverseChromaticAdaptation(V),Z=_t.inverseChromaticAdaptation(I),ne=_t.inverseChromaticAdaptation($),ve=HE([H,Z,ne],_t.LINRGB_FROM_SCALED_DISCOUNT);if(ve[0]<0||ve[1]<0||ve[2]<0)return 0;const ee=_t.Y_FROM_LINRGB[0],oe=_t.Y_FROM_LINRGB[1],J=_t.Y_FROM_LINRGB[2],pe=ee*ve[0]+oe*ve[1]+J*ve[2];if(pe<=0)return 0;if(E===4||Math.abs(pe-a)<.002)return ve[0]>100.01||ve[1]>100.01||ve[2]>100.01?0:z5(ve);s=s-(pe-a)*s/(2*pe)}return 0}static solveToInt(n,r,a){if(r<1e-4||a<1e-4||a>99.9999)return NF(a);n=_F(n);const s=n/180*Math.PI,c=su(a),f=_t.findResultByJ(s,r,c);if(f!==0)return f;const h=_t.bisectToLimit(c,s);return z5(h)}static solveToCam(n,r,a){return Pa.fromInt(_t.solveToInt(n,r,a))}}_t.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],_t.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],_t.Y_FROM_LINRGB=[.2126,.7152,.0722],_t.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/**
543
+ * @license
544
+ * Copyright 2021 Google LLC
545
+ *
546
+ * Licensed under the Apache License, Version 2.0 (the "License");
547
+ * you may not use this file except in compliance with the License.
548
+ * You may obtain a copy of the License at
549
+ *
550
+ * http://www.apache.org/licenses/LICENSE-2.0
551
+ *
552
+ * Unless required by applicable law or agreed to in writing, software
553
+ * distributed under the License is distributed on an "AS IS" BASIS,
554
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
555
+ * See the License for the specific language governing permissions and
556
+ * limitations under the License.
557
+ */class Dc{static from(n,r,a){return new Dc(_t.solveToInt(n,r,a))}static fromInt(n){return new Dc(n)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(n){this.setInternalState(_t.solveToInt(n,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(n){this.setInternalState(_t.solveToInt(this.internalHue,n,this.internalTone))}get tone(){return this.internalTone}set tone(n){this.setInternalState(_t.solveToInt(this.internalHue,this.internalChroma,n))}constructor(n){this.argb=n;const r=Pa.fromInt(n);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=j5(n),this.argb=n}setInternalState(n){const r=Pa.fromInt(n);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=j5(n),this.argb=n}inViewingConditions(n){const a=Pa.fromInt(this.toInt()).xyzInViewingConditions(n),s=Pa.fromXyzInViewingConditions(a[0],a[1],a[2],bo.make());return Dc.from(s.hue,s.chroma,WE(a[1]))}}/**
558
+ * @license
559
+ * Copyright 2022 Google LLC
560
+ *
561
+ * Licensed under the Apache License, Version 2.0 (the "License");
562
+ * you may not use this file except in compliance with the License.
563
+ * You may obtain a copy of the License at
564
+ *
565
+ * http://www.apache.org/licenses/LICENSE-2.0
566
+ *
567
+ * Unless required by applicable law or agreed to in writing, software
568
+ * distributed under the License is distributed on an "AS IS" BASIS,
569
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
570
+ * See the License for the specific language governing permissions and
571
+ * limitations under the License.
572
+ */class Xr{static ratioOfTones(n,r){return n=Tg(0,100,n),r=Tg(0,100,r),Xr.ratioOfYs(su(n),su(r))}static ratioOfYs(n,r){const a=n>r?n:r,s=a===r?n:r;return(a+5)/(s+5)}static lighter(n,r){if(n<0||n>100)return-1;const a=su(n),s=r*(a+5)-5,c=Xr.ratioOfYs(s,a),f=Math.abs(c-r);if(c<r&&f>.04)return-1;const h=WE(s)+.4;return h<0||h>100?-1:h}static darker(n,r){if(n<0||n>100)return-1;const a=su(n),s=(a+5)/r-5,c=Xr.ratioOfYs(a,s),f=Math.abs(c-r);if(c<r&&f>.04)return-1;const h=WE(s)-.4;return h<0||h>100?-1:h}static lighterUnsafe(n,r){const a=Xr.lighter(n,r);return a<0?100:a}static darkerUnsafe(n,r){const a=Xr.darker(n,r);return a<0?0:a}}/**
573
+ * @license
574
+ * Copyright 2023 Google LLC
575
+ *
576
+ * Licensed under the Apache License, Version 2.0 (the "License");
577
+ * you may not use this file except in compliance with the License.
578
+ * You may obtain a copy of the License at
579
+ *
580
+ * http://www.apache.org/licenses/LICENSE-2.0
581
+ *
582
+ * Unless required by applicable law or agreed to in writing, software
583
+ * distributed under the License is distributed on an "AS IS" BASIS,
584
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
585
+ * See the License for the specific language governing permissions and
586
+ * limitations under the License.
587
+ */class YE{static isDisliked(n){const r=Math.round(n.hue)>=90&&Math.round(n.hue)<=111,a=Math.round(n.chroma)>16,s=Math.round(n.tone)<65;return r&&a&&s}static fixIfDisliked(n){return YE.isDisliked(n)?Dc.from(n.hue,n.chroma,70):n}}/**
588
+ * @license
589
+ * Copyright 2022 Google LLC
590
+ *
591
+ * Licensed under the Apache License, Version 2.0 (the "License");
592
+ * you may not use this file except in compliance with the License.
593
+ * You may obtain a copy of the License at
594
+ *
595
+ * http://www.apache.org/licenses/LICENSE-2.0
596
+ *
597
+ * Unless required by applicable law or agreed to in writing, software
598
+ * distributed under the License is distributed on an "AS IS" BASIS,
599
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
600
+ * See the License for the specific language governing permissions and
601
+ * limitations under the License.
602
+ */class Qe{static fromPalette(n){return new Qe(n.name??"",n.palette,n.tone,n.isBackground??!1,n.background,n.secondBackground,n.contrastCurve,n.toneDeltaPair)}constructor(n,r,a,s,c,f,h,v){if(this.name=n,this.palette=r,this.tone=a,this.isBackground=s,this.background=c,this.secondBackground=f,this.contrastCurve=h,this.toneDeltaPair=v,this.hctCache=new Map,!c&&f)throw new Error(`Color ${n} has secondBackgrounddefined, but background is not defined.`);if(!c&&h)throw new Error(`Color ${n} has contrastCurvedefined, but background is not defined.`);if(c&&!h)throw new Error(`Color ${n} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(n){return this.getHct(n).toInt()}getHct(n){const r=this.hctCache.get(n);if(r!=null)return r;const a=this.getTone(n),s=this.palette(n).getHct(a);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(n,s),s}getTone(n){const r=n.contrastLevel<0;if(this.toneDeltaPair){const a=this.toneDeltaPair(n),s=a.roleA,c=a.roleB,f=a.delta,h=a.polarity,v=a.stayTogether,S=this.background(n).getTone(n),E=h==="nearer"||h==="lighter"&&!n.isDark||h==="darker"&&n.isDark,C=E?s:c,x=E?c:s,R=this.name===C.name,T=n.isDark?1:-1,D=C.contrastCurve.getContrast(n.contrastLevel),M=x.contrastCurve.getContrast(n.contrastLevel),F=C.tone(n);let N=Xr.ratioOfTones(S,F)>=D?F:Qe.foregroundTone(S,D);const V=x.tone(n);let I=Xr.ratioOfTones(S,V)>=M?V:Qe.foregroundTone(S,M);return r&&(N=Qe.foregroundTone(S,D),I=Qe.foregroundTone(S,M)),(I-N)*T>=f||(I=Tg(0,100,N+f*T),(I-N)*T>=f||(N=Tg(0,100,I-f*T))),50<=N&&N<60?T>0?(N=60,I=Math.max(I,N+f*T)):(N=49,I=Math.min(I,N+f*T)):50<=I&&I<60&&(v?T>0?(N=60,I=Math.max(I,N+f*T)):(N=49,I=Math.min(I,N+f*T)):T>0?I=60:I=49),R?N:I}else{let a=this.tone(n);if(this.background==null)return a;const s=this.background(n).getTone(n),c=this.contrastCurve.getContrast(n.contrastLevel);if(Xr.ratioOfTones(s,a)>=c||(a=Qe.foregroundTone(s,c)),r&&(a=Qe.foregroundTone(s,c)),this.isBackground&&50<=a&&a<60&&(Xr.ratioOfTones(49,s)>=c?a=49:a=60),this.secondBackground){const[f,h]=[this.background,this.secondBackground],[v,y]=[f(n).getTone(n),h(n).getTone(n)],[S,E]=[Math.max(v,y),Math.min(v,y)];if(Xr.ratioOfTones(S,a)>=c&&Xr.ratioOfTones(E,a)>=c)return a;const C=Xr.lighter(S,c),x=Xr.darker(E,c),R=[];return C!==-1&&R.push(C),x!==-1&&R.push(x),Qe.tonePrefersLightForeground(v)||Qe.tonePrefersLightForeground(y)?C<0?100:C:R.length===1?R[0]:x<0?0:x}return a}}static foregroundTone(n,r){const a=Xr.lighterUnsafe(n,r),s=Xr.darkerUnsafe(n,r),c=Xr.ratioOfTones(a,n),f=Xr.ratioOfTones(s,n);if(Qe.tonePrefersLightForeground(n)){const v=Math.abs(c-f)<.1&&c<r&&f<r;return c>=r||c>=f||v?a:s}else return f>=r||f>=c?s:a}static tonePrefersLightForeground(n){return Math.round(n)<60}static toneAllowsLightForeground(n){return Math.round(n)<=49}static enableLightForeground(n){return Qe.tonePrefersLightForeground(n)&&!Qe.toneAllowsLightForeground(n)?49:n}}/**
603
+ * @license
604
+ * Copyright 2022 Google LLC
605
+ *
606
+ * Licensed under the Apache License, Version 2.0 (the "License");
607
+ * you may not use this file except in compliance with the License.
608
+ * You may obtain a copy of the License at
609
+ *
610
+ * http://www.apache.org/licenses/LICENSE-2.0
611
+ *
612
+ * Unless required by applicable law or agreed to in writing, software
613
+ * distributed under the License is distributed on an "AS IS" BASIS,
614
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
615
+ * See the License for the specific language governing permissions and
616
+ * limitations under the License.
617
+ */var Zh;(function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"})(Zh||(Zh={}));/**
618
+ * @license
619
+ * Copyright 2023 Google LLC
620
+ *
621
+ * Licensed under the Apache License, Version 2.0 (the "License");
622
+ * you may not use this file except in compliance with the License.
623
+ * You may obtain a copy of the License at
624
+ *
625
+ * http://www.apache.org/licenses/LICENSE-2.0
626
+ *
627
+ * Unless required by applicable law or agreed to in writing, software
628
+ * distributed under the License is distributed on an "AS IS" BASIS,
629
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
630
+ * See the License for the specific language governing permissions and
631
+ * limitations under the License.
632
+ */class on{constructor(n,r,a,s){this.low=n,this.normal=r,this.medium=a,this.high=s}getContrast(n){return n<=-1?this.low:n<0?Yh(this.low,this.normal,(n- -1)/1):n<.5?Yh(this.normal,this.medium,(n-0)/.5):n<1?Yh(this.medium,this.high,(n-.5)/.5):this.high}}/**
633
+ * @license
634
+ * Copyright 2023 Google LLC
635
+ *
636
+ * Licensed under the Apache License, Version 2.0 (the "License");
637
+ * you may not use this file except in compliance with the License.
638
+ * You may obtain a copy of the License at
639
+ *
640
+ * http://www.apache.org/licenses/LICENSE-2.0
641
+ *
642
+ * Unless required by applicable law or agreed to in writing, software
643
+ * distributed under the License is distributed on an "AS IS" BASIS,
644
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
645
+ * See the License for the specific language governing permissions and
646
+ * limitations under the License.
647
+ */class la{constructor(n,r,a,s,c){this.roleA=n,this.roleB=r,this.delta=a,this.polarity=s,this.stayTogether=c}}/**
648
+ * @license
649
+ * Copyright 2022 Google LLC
650
+ *
651
+ * Licensed under the Apache License, Version 2.0 (the "License");
652
+ * you may not use this file except in compliance with the License.
653
+ * You may obtain a copy of the License at
654
+ *
655
+ * http://www.apache.org/licenses/LICENSE-2.0
656
+ *
657
+ * Unless required by applicable law or agreed to in writing, software
658
+ * distributed under the License is distributed on an "AS IS" BASIS,
659
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
660
+ * See the License for the specific language governing permissions and
661
+ * limitations under the License.
662
+ */function pd(e){return e.variant===Zh.FIDELITY||e.variant===Zh.CONTENT}function Sr(e){return e.variant===Zh.MONOCHROME}function zF(e,n,r,a){let s=r,c=Dc.from(e,n,r);if(c.chroma<n){let f=c.chroma;for(;c.chroma<n;){s+=a?-1:1;const h=Dc.from(e,n,s);if(f>h.chroma||Math.abs(h.chroma-n)<.4)break;const v=Math.abs(h.chroma-n),y=Math.abs(c.chroma-n);v<y&&(c=h),f=Math.max(f,h.chroma)}}return s}function jF(e){return bo.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function ZE(e,n){const r=e.inViewingConditions(jF(n));return Qe.tonePrefersLightForeground(e.tone)&&!Qe.toneAllowsLightForeground(r.tone)?Qe.enableLightForeground(e.tone):Qe.enableLightForeground(r.tone)}class ge{static highestSurface(n){return n.isDark?ge.surfaceBright:ge.surfaceDim}}ge.contentAccentToneDelta=15,ge.primaryPaletteKeyColor=Qe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),ge.secondaryPaletteKeyColor=Qe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),ge.tertiaryPaletteKeyColor=Qe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),ge.neutralPaletteKeyColor=Qe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),ge.neutralVariantPaletteKeyColor=Qe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),ge.background=Qe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.onBackground=Qe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.background,contrastCurve:new on(3,3,4.5,7)}),ge.surface=Qe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.surfaceDim=Qe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0}),ge.surfaceBright=Qe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0}),ge.surfaceContainerLowest=Qe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0}),ge.surfaceContainerLow=Qe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0}),ge.surfaceContainer=Qe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0}),ge.surfaceContainerHigh=Qe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0}),ge.surfaceContainerHighest=Qe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0}),ge.onSurface=Qe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.highestSurface(e),contrastCurve:new on(4.5,7,11,21)}),ge.surfaceVariant=Qe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),ge.onSurfaceVariant=Qe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11)}),ge.inverseSurface=Qe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),ge.inverseOnSurface=Qe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>ge.inverseSurface,contrastCurve:new on(4.5,7,11,21)}),ge.outline=Qe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>ge.highestSurface(e),contrastCurve:new on(1.5,3,4.5,7)}),ge.outlineVariant=Qe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7)}),ge.shadow=Qe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),ge.scrim=Qe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),ge.surfaceTint=Qe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),ge.primary=Qe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimary=Qe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.primary,contrastCurve:new on(4.5,7,11,21)}),ge.primaryContainer=Qe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>pd(e)?ZE(e.sourceColorHct,e):Sr(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimaryContainer=Qe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>pd(e)?Qe.foregroundTone(ge.primaryContainer.tone(e),4.5):Sr(e)?e.isDark?0:100:e.isDark?90:10,background:e=>ge.primaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.inversePrimary=Qe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>ge.inverseSurface,contrastCurve:new on(3,4.5,7,11)}),ge.secondary=Qe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondary=Qe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?e.isDark?10:100:e.isDark?20:100,background:e=>ge.secondary,contrastCurve:new on(4.5,7,11,21)}),ge.secondaryContainer=Qe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const n=e.isDark?30:90;if(Sr(e))return e.isDark?30:85;if(!pd(e))return n;let r=zF(e.secondaryPalette.hue,e.secondaryPalette.chroma,n,!e.isDark);return r=ZE(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondaryContainer=Qe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>pd(e)?Qe.foregroundTone(ge.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.secondaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.tertiary=Qe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiary=Qe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.tertiary,contrastCurve:new on(4.5,7,11,21)}),ge.tertiaryContainer=Qe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Sr(e))return e.isDark?60:49;if(!pd(e))return e.isDark?30:90;const n=ZE(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(n);return YE.fixIfDisliked(r).tone},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiaryContainer=Qe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?0:100:pd(e)?Qe.foregroundTone(ge.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.tertiaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.error=Qe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onError=Qe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>ge.error,contrastCurve:new on(4.5,7,11,21)}),ge.errorContainer=Qe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onErrorContainer=Qe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>ge.errorContainer,contrastCurve:new on(4.5,7,11,21)}),ge.primaryFixed=Qe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.primaryFixedDim=Qe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.onPrimaryFixed=Qe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onPrimaryFixedVariant=Qe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.secondaryFixed=Qe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?80:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.secondaryFixedDim=Qe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?70:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.onSecondaryFixed=Qe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onSecondaryFixedVariant=Qe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?25:30,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.tertiaryFixed=Qe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.tertiaryFixedDim=Qe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.onTertiaryFixed=Qe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onTertiaryFixedVariant=Qe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(3,4.5,7,11)});var $F={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Kh=$F,U5={};for(const e of Object.keys(Kh))U5[Kh[e]]=e;const pt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var B5=pt;for(const e of Object.keys(pt)){if(!("channels"in pt[e]))throw new Error("missing channels property: "+e);if(!("labels"in pt[e]))throw new Error("missing channel labels property: "+e);if(pt[e].labels.length!==pt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:n,labels:r}=pt[e];delete pt[e].channels,delete pt[e].labels,Object.defineProperty(pt[e],"channels",{value:n}),Object.defineProperty(pt[e],"labels",{value:r})}pt.rgb.hsl=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(n,r,a),c=Math.max(n,r,a),f=c-s;let h,v;c===s?h=0:n===c?h=(r-a)/f:r===c?h=2+(a-n)/f:a===c&&(h=4+(n-r)/f),h=Math.min(h*60,360),h<0&&(h+=360);const y=(s+c)/2;return c===s?v=0:y<=.5?v=f/(c+s):v=f/(2-c-s),[h,v*100,y*100]},pt.rgb.hsv=function(e){let n,r,a,s,c;const f=e[0]/255,h=e[1]/255,v=e[2]/255,y=Math.max(f,h,v),S=y-Math.min(f,h,v),E=function(C){return(y-C)/6/S+1/2};return S===0?(s=0,c=0):(c=S/y,n=E(f),r=E(h),a=E(v),f===y?s=a-r:h===y?s=1/3+n-a:v===y&&(s=2/3+r-n),s<0?s+=1:s>1&&(s-=1)),[s*360,c*100,y*100]},pt.rgb.hwb=function(e){const n=e[0],r=e[1];let a=e[2];const s=pt.rgb.hsl(e)[0],c=1/255*Math.min(n,Math.min(r,a));return a=1-1/255*Math.max(n,Math.max(r,a)),[s,c*100,a*100]},pt.rgb.cmyk=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(1-n,1-r,1-a),c=(1-n-s)/(1-s)||0,f=(1-r-s)/(1-s)||0,h=(1-a-s)/(1-s)||0;return[c*100,f*100,h*100,s*100]};function UF(e,n){return(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2}pt.rgb.keyword=function(e){const n=U5[e];if(n)return n;let r=1/0,a;for(const s of Object.keys(Kh)){const c=Kh[s],f=UF(e,c);f<r&&(r=f,a=s)}return a},pt.keyword.rgb=function(e){return Kh[e]},pt.rgb.xyz=function(e){let n=e[0]/255,r=e[1]/255,a=e[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const s=n*.4124+r*.3576+a*.1805,c=n*.2126+r*.7152+a*.0722,f=n*.0193+r*.1192+a*.9505;return[s*100,c*100,f*100]},pt.rgb.lab=function(e){const n=pt.rgb.xyz(e);let r=n[0],a=n[1],s=n[2];r/=95.047,a/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const c=116*a-16,f=500*(r-a),h=200*(a-s);return[c,f,h]},pt.hsl.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;let s,c,f;if(r===0)return f=a*255,[f,f,f];a<.5?s=a*(1+r):s=a+r-a*r;const h=2*a-s,v=[0,0,0];for(let y=0;y<3;y++)c=n+1/3*-(y-1),c<0&&c++,c>1&&c--,6*c<1?f=h+(s-h)*6*c:2*c<1?f=s:3*c<2?f=h+(s-h)*(2/3-c)*6:f=h,v[y]=f*255;return v},pt.hsl.hsv=function(e){const n=e[0];let r=e[1]/100,a=e[2]/100,s=r;const c=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,s*=c<=1?c:2-c;const f=(a+r)/2,h=a===0?2*s/(c+s):2*r/(a+r);return[n,h*100,f*100]},pt.hsv.rgb=function(e){const n=e[0]/60,r=e[1]/100;let a=e[2]/100;const s=Math.floor(n)%6,c=n-Math.floor(n),f=255*a*(1-r),h=255*a*(1-r*c),v=255*a*(1-r*(1-c));switch(a*=255,s){case 0:return[a,v,f];case 1:return[h,a,f];case 2:return[f,a,v];case 3:return[f,h,a];case 4:return[v,f,a];case 5:return[a,f,h]}},pt.hsv.hsl=function(e){const n=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);let c,f;f=(2-r)*a;const h=(2-r)*s;return c=r*s,c/=h<=1?h:2-h,c=c||0,f/=2,[n,c*100,f*100]},pt.hwb.rgb=function(e){const n=e[0]/360;let r=e[1]/100,a=e[2]/100;const s=r+a;let c;s>1&&(r/=s,a/=s);const f=Math.floor(6*n),h=1-a;c=6*n-f,f&1&&(c=1-c);const v=r+c*(h-r);let y,S,E;switch(f){default:case 6:case 0:y=h,S=v,E=r;break;case 1:y=v,S=h,E=r;break;case 2:y=r,S=h,E=v;break;case 3:y=r,S=v,E=h;break;case 4:y=v,S=r,E=h;break;case 5:y=h,S=r,E=v;break}return[y*255,S*255,E*255]},pt.cmyk.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100,s=e[3]/100,c=1-Math.min(1,n*(1-s)+s),f=1-Math.min(1,r*(1-s)+s),h=1-Math.min(1,a*(1-s)+s);return[c*255,f*255,h*255]},pt.xyz.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100;let s,c,f;return s=n*3.2406+r*-1.5372+a*-.4986,c=n*-.9689+r*1.8758+a*.0415,f=n*.0557+r*-.204+a*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,s=Math.min(Math.max(0,s),1),c=Math.min(Math.max(0,c),1),f=Math.min(Math.max(0,f),1),[s*255,c*255,f*255]},pt.xyz.lab=function(e){let n=e[0],r=e[1],a=e[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const s=116*r-16,c=500*(n-r),f=200*(r-a);return[s,c,f]},pt.lab.xyz=function(e){const n=e[0],r=e[1],a=e[2];let s,c,f;c=(n+16)/116,s=r/500+c,f=c-a/200;const h=c**3,v=s**3,y=f**3;return c=h>.008856?h:(c-16/116)/7.787,s=v>.008856?v:(s-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,s*=95.047,c*=100,f*=108.883,[s,c,f]},pt.lab.lch=function(e){const n=e[0],r=e[1],a=e[2];let s;s=Math.atan2(a,r)*360/2/Math.PI,s<0&&(s+=360);const f=Math.sqrt(r*r+a*a);return[n,f,s]},pt.lch.lab=function(e){const n=e[0],r=e[1],s=e[2]/360*2*Math.PI,c=r*Math.cos(s),f=r*Math.sin(s);return[n,c,f]},pt.rgb.ansi16=function(e,n=null){const[r,a,s]=e;let c=n===null?pt.rgb.hsv(e)[2]:n;if(c=Math.round(c/50),c===0)return 30;let f=30+(Math.round(s/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return c===2&&(f+=60),f},pt.hsv.ansi16=function(e){return pt.rgb.ansi16(pt.hsv.rgb(e),e[2])},pt.rgb.ansi256=function(e){const n=e[0],r=e[1],a=e[2];return n===r&&r===a?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},pt.ansi16.rgb=function(e){let n=e%10;if(n===0||n===7)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const r=(~~(e>50)+1)*.5,a=(n&1)*r*255,s=(n>>1&1)*r*255,c=(n>>2&1)*r*255;return[a,s,c]},pt.ansi256.rgb=function(e){if(e>=232){const c=(e-232)*10+8;return[c,c,c]}e-=16;let n;const r=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,s=n%6/5*255;return[r,a,s]},pt.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},pt.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let r=n[0];n[0].length===3&&(r=r.split("").map(h=>h+h).join(""));const a=parseInt(r,16),s=a>>16&255,c=a>>8&255,f=a&255;return[s,c,f]},pt.rgb.hcg=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.max(Math.max(n,r),a),c=Math.min(Math.min(n,r),a),f=s-c;let h,v;return f<1?h=c/(1-f):h=0,f<=0?v=0:s===n?v=(r-a)/f%6:s===r?v=2+(a-n)/f:v=4+(n-r)/f,v/=6,v%=1,[v*360,f*100,h*100]},pt.hsl.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=r<.5?2*n*r:2*n*(1-r);let s=0;return a<1&&(s=(r-.5*a)/(1-a)),[e[0],a*100,s*100]},pt.hsv.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=n*r;let s=0;return a<1&&(s=(r-a)/(1-a)),[e[0],a*100,s*100]},pt.hcg.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];const s=[0,0,0],c=n%1*6,f=c%1,h=1-f;let v=0;switch(Math.floor(c)){case 0:s[0]=1,s[1]=f,s[2]=0;break;case 1:s[0]=h,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=f;break;case 3:s[0]=0,s[1]=h,s[2]=1;break;case 4:s[0]=f,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=h}return v=(1-r)*a,[(r*s[0]+v)*255,(r*s[1]+v)*255,(r*s[2]+v)*255]},pt.hcg.hsv=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);let s=0;return a>0&&(s=n/a),[e[0],s*100,a*100]},pt.hcg.hsl=function(e){const n=e[1]/100,a=e[2]/100*(1-n)+.5*n;let s=0;return a>0&&a<.5?s=n/(2*a):a>=.5&&a<1&&(s=n/(2*(1-a))),[e[0],s*100,a*100]},pt.hcg.hwb=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);return[e[0],(a-n)*100,(1-a)*100]},pt.hwb.hcg=function(e){const n=e[1]/100,a=1-e[2]/100,s=a-n;let c=0;return s<1&&(c=(a-s)/(1-s)),[e[0],s*100,c*100]},pt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},pt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},pt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},pt.gray.hsl=function(e){return[0,0,e[0]]},pt.gray.hsv=pt.gray.hsl,pt.gray.hwb=function(e){return[0,100,e[0]]},pt.gray.cmyk=function(e){return[0,0,0,e[0]]},pt.gray.lab=function(e){return[e[0],0,0]},pt.gray.hex=function(e){const n=Math.round(e[0]/100*255)&255,a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(a.length)+a},pt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Rg=B5;function BF(){const e={},n=Object.keys(Rg);for(let r=n.length,a=0;a<r;a++)e[n[a]]={distance:-1,parent:null};return e}function VF(e){const n=BF(),r=[e];for(n[e].distance=0;r.length;){const a=r.pop(),s=Object.keys(Rg[a]);for(let c=s.length,f=0;f<c;f++){const h=s[f],v=n[h];v.distance===-1&&(v.distance=n[a].distance+1,v.parent=a,r.unshift(h))}}return n}function HF(e,n){return function(r){return n(e(r))}}function qF(e,n){const r=[n[e].parent,e];let a=Rg[n[e].parent][e],s=n[e].parent;for(;n[s].parent;)r.unshift(n[s].parent),a=HF(Rg[n[s].parent][s],a),s=n[s].parent;return a.conversion=r,a}var WF=function(e){const n=VF(e),r={},a=Object.keys(n);for(let s=a.length,c=0;c<s;c++){const f=a[c];n[f].parent!==null&&(r[f]=qF(f,n))}return r};const KE=B5,YF=WF,Gh={},ZF=Object.keys(KE);function KF(e){const n=function(...r){const a=r[0];return a==null?a:(a.length>1&&(r=a),e(r))};return"conversion"in e&&(n.conversion=e.conversion),n}function GF(e){const n=function(...r){const a=r[0];if(a==null)return a;a.length>1&&(r=a);const s=e(r);if(typeof s=="object")for(let c=s.length,f=0;f<c;f++)s[f]=Math.round(s[f]);return s};return"conversion"in e&&(n.conversion=e.conversion),n}ZF.forEach(e=>{Gh[e]={},Object.defineProperty(Gh[e],"channels",{value:KE[e].channels}),Object.defineProperty(Gh[e],"labels",{value:KE[e].labels});const n=YF(e);Object.keys(n).forEach(a=>{const s=n[a];Gh[e][a]=GF(s),Gh[e][a].raw=KF(s)})});var V5={},H5={},GE={exports:{}},Wn=String,q5=function(){return{isColorSupported:!1,reset:Wn,bold:Wn,dim:Wn,italic:Wn,underline:Wn,inverse:Wn,hidden:Wn,strikethrough:Wn,black:Wn,red:Wn,green:Wn,yellow:Wn,blue:Wn,magenta:Wn,cyan:Wn,white:Wn,gray:Wn,bgBlack:Wn,bgRed:Wn,bgGreen:Wn,bgYellow:Wn,bgBlue:Wn,bgMagenta:Wn,bgCyan:Wn,bgWhite:Wn}};GE.exports=q5(),GE.exports.createColors=q5;var QF=GE.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(v,y){for(var S in y)Object.defineProperty(v,S,{enumerable:!0,get:y[S]})}n(e,{dim:function(){return f},default:function(){return h}});const r=a(QF);function a(v){return v&&v.__esModule?v:{default:v}}let s=new Set;function c(v,y,S){typeof process<"u"&&process.env.JEST_WORKER_ID||S&&s.has(S)||(S&&s.add(S),console.warn(""),y.forEach(E=>console.warn(v,"-",E)))}function f(v){return r.default.dim(v)}const h={info(v,y){c(r.default.bold(r.default.cyan("info")),...Array.isArray(v)?[v]:[y,v])},warn(v,y){c(r.default.bold(r.default.yellow("warn")),...Array.isArray(v)?[v]:[y,v])},risk(v,y){c(r.default.bold(r.default.magenta("risk")),...Array.isArray(v)?[v]:[y,v])}}})(H5),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const n=r(H5);function r(c){return c&&c.__esModule?c:{default:c}}function a({version:c,from:f,to:h}){n.default.warn(`${f}-color-renamed`,[`As of Tailwind CSS ${c}, \`${f}\` has been renamed to \`${h}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(V5);let QE=V5;(QE.__esModule?QE:{default:QE}).default;class XF{constructor(){t6(this,"eventMap");this.eventMap={}}on(n,r){var a;return this.eventMap[n]||(this.eventMap[n]=new Set),(a=this.eventMap[n])==null||a.add(r),()=>{var s;(s=this.eventMap[n])==null||s.delete(r)}}emit(n,r){var a;(a=this.eventMap[n])==null||a.forEach(s=>{s(r)})}}const JF=new XF;var hn;(function(e){e.assertEqual=s=>s;function n(s){}e.assertIs=n;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const c={};for(const f of s)c[f]=f;return c},e.getValidEnumValues=s=>{const c=e.objectKeys(s).filter(h=>typeof s[s[h]]!="number"),f={};for(const h of c)f[h]=s[h];return e.objectValues(f)},e.objectValues=s=>e.objectKeys(s).map(function(c){return s[c]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const c=[];for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&c.push(f);return c},e.find=(s,c)=>{for(const f of s)if(c(f))return f},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function a(s,c=" | "){return s.map(f=>typeof f=="string"?`'${f}'`:f).join(c)}e.joinValues=a,e.jsonStringifyReplacer=(s,c)=>typeof c=="bigint"?c.toString():c})(hn||(hn={}));var XE;(function(e){e.mergeShapes=(n,r)=>({...n,...r})})(XE||(XE={}));const rt=hn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),uu=e=>{switch(typeof e){case"undefined":return rt.undefined;case"string":return rt.string;case"number":return isNaN(e)?rt.nan:rt.number;case"boolean":return rt.boolean;case"function":return rt.function;case"bigint":return rt.bigint;case"symbol":return rt.symbol;case"object":return Array.isArray(e)?rt.array:e===null?rt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?rt.promise:typeof Map<"u"&&e instanceof Map?rt.map:typeof Set<"u"&&e instanceof Set?rt.set:typeof Date<"u"&&e instanceof Date?rt.date:rt.object;default:return rt.unknown}},qe=hn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),eI=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class So extends Error{constructor(n){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}get errors(){return this.issues}format(n){const r=n||function(c){return c.message},a={_errors:[]},s=c=>{for(const f of c.issues)if(f.code==="invalid_union")f.unionErrors.map(s);else if(f.code==="invalid_return_type")s(f.returnTypeError);else if(f.code==="invalid_arguments")s(f.argumentsError);else if(f.path.length===0)a._errors.push(r(f));else{let h=a,v=0;for(;v<f.path.length;){const y=f.path[v];v===f.path.length-1?(h[y]=h[y]||{_errors:[]},h[y]._errors.push(r(f))):h[y]=h[y]||{_errors:[]},h=h[y],v++}}};return s(this),a}toString(){return this.message}get message(){return JSON.stringify(this.issues,hn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},a=[];for(const s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):a.push(n(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}So.create=e=>new So(e);const Qh=(e,n)=>{let r;switch(e.code){case qe.invalid_type:e.received===rt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case qe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,hn.jsonStringifyReplacer)}`;break;case qe.unrecognized_keys:r=`Unrecognized key(s) in object: ${hn.joinValues(e.keys,", ")}`;break;case qe.invalid_union:r="Invalid input";break;case qe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${hn.joinValues(e.options)}`;break;case qe.invalid_enum_value:r=`Invalid enum value. Expected ${hn.joinValues(e.options)}, received '${e.received}'`;break;case qe.invalid_arguments:r="Invalid function arguments";break;case qe.invalid_return_type:r="Invalid function return type";break;case qe.invalid_date:r="Invalid date";break;case qe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:hn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case qe.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case qe.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case qe.custom:r="Invalid input";break;case qe.invalid_intersection_types:r="Intersection results could not be merged";break;case qe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case qe.not_finite:r="Number must be finite";break;default:r=n.defaultError,hn.assertNever(e)}return{message:r}};let W5=Qh;function tI(e){W5=e}function Og(){return W5}const Dg=e=>{const{data:n,path:r,errorMaps:a,issueData:s}=e,c=[...r,...s.path||[]],f={...s,path:c};let h="";const v=a.filter(y=>!!y).slice().reverse();for(const y of v)h=y(f,{data:n,defaultError:h}).message;return{...s,path:c,message:s.message||h}},nI=[];function ot(e,n){const r=Dg({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Og(),Qh].filter(a=>!!a)});e.common.issues.push(r)}class wi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const a=[];for(const s of r){if(s.status==="aborted")return Ut;s.status==="dirty"&&n.dirty(),a.push(s.value)}return{status:n.value,value:a}}static async mergeObjectAsync(n,r){const a=[];for(const s of r)a.push({key:await s.key,value:await s.value});return wi.mergeObjectSync(n,a)}static mergeObjectSync(n,r){const a={};for(const s of r){const{key:c,value:f}=s;if(c.status==="aborted"||f.status==="aborted")return Ut;c.status==="dirty"&&n.dirty(),f.status==="dirty"&&n.dirty(),(typeof f.value<"u"||s.alwaysSet)&&(a[c.value]=f.value)}return{status:n.value,value:a}}}const Ut=Object.freeze({status:"aborted"}),Y5=e=>({status:"dirty",value:e}),zi=e=>({status:"valid",value:e}),JE=e=>e.status==="aborted",ex=e=>e.status==="dirty",Ag=e=>e.status==="valid",Mg=e=>typeof Promise<"u"&&e instanceof Promise;var Ct;(function(e){e.errToObj=n=>typeof n=="string"?{message:n}:n||{},e.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(Ct||(Ct={}));class il{constructor(n,r,a,s){this._cachedPath=[],this.parent=n,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z5=(e,n)=>{if(Ag(n))return{success:!0,data:n.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new So(e.common.issues);return this._error=r,this._error}}};function Wt(e){if(!e)return{};const{errorMap:n,invalid_type_error:r,required_error:a,description:s}=e;if(n&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:s}:{errorMap:(f,h)=>f.code!=="invalid_type"?{message:h.defaultError}:typeof h.data>"u"?{message:a??h.defaultError}:{message:r??h.defaultError},description:s}}class Qt{constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(n){return uu(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:uu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new wi,ctx:{common:n.parent.common,data:n.data,parsedType:uu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(Mg(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const a=this.safeParse(n,r);if(a.success)return a.data;throw a.error}safeParse(n,r){var a;const s={common:{issues:[],async:(a=r==null?void 0:r.async)!==null&&a!==void 0?a:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:uu(n)},c=this._parseSync({data:n,path:s.path,parent:s});return Z5(s,c)}async parseAsync(n,r){const a=await this.safeParseAsync(n,r);if(a.success)return a.data;throw a.error}async safeParseAsync(n,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:uu(n)},s=this._parse({data:n,path:a.path,parent:a}),c=await(Mg(s)?s:Promise.resolve(s));return Z5(a,c)}refine(n,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,c)=>{const f=n(s),h=()=>c.addIssue({code:qe.custom,...a(s)});return typeof Promise<"u"&&f instanceof Promise?f.then(v=>v?!0:(h(),!1)):f?!0:(h(),!1)})}refinement(n,r){return this._refinement((a,s)=>n(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}_refinement(n){return new wo({schema:this,typeName:Mt.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}optional(){return es.create(this,this._def)}nullable(){return Pc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xo.create(this,this._def)}promise(){return gd.create(this,this._def)}or(n){return tm.create([this,n],this._def)}and(n){return nm.create(this,n,this._def)}transform(n){return new wo({...Wt(this._def),schema:this,typeName:Mt.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new lm({...Wt(this._def),innerType:this,defaultValue:r,typeName:Mt.ZodDefault})}brand(){return new G5({typeName:Mt.ZodBranded,type:this,...Wt(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new zg({...Wt(this._def),innerType:this,catchValue:r,typeName:Mt.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return sm.create(this,n)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const rI=/^c[^\s-]{8,}$/i,iI=/^[a-z][a-z0-9]*$/,aI=/[0-9A-HJKMNP-TV-Z]{26}/,oI=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,lI=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,sI=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,uI=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,cI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,fI=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function dI(e,n){return!!((n==="v4"||!n)&&uI.test(e)||(n==="v6"||!n)&&cI.test(e))}class Eo extends Qt{constructor(){super(...arguments),this._regex=(n,r,a)=>this.refinement(s=>n.test(s),{validation:r,code:qe.invalid_string,...Ct.errToObj(a)}),this.nonempty=n=>this.min(1,Ct.errToObj(n)),this.trim=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==rt.string){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.string,received:c.parsedType}),Ut}const a=new wi;let s;for(const c of this._def.checks)if(c.kind==="min")n.data.length<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="max")n.data.length>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="length"){const f=n.data.length>c.value,h=n.data.length<c.value;(f||h)&&(s=this._getOrReturnCtx(n,s),f?ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),a.dirty())}else if(c.kind==="email")lI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"email",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="emoji")sI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"emoji",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="uuid")oI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"uuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid")rI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid2")iI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid2",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="ulid")aI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ulid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="url")try{new URL(n.data)}catch{s=this._getOrReturnCtx(n,s),ot(s,{validation:"url",code:qe.invalid_string,message:c.message}),a.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"regex",code:qe.invalid_string,message:c.message}),a.dirty())):c.kind==="trim"?n.data=n.data.trim():c.kind==="includes"?n.data.includes(c.value,c.position)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),a.dirty()):c.kind==="toLowerCase"?n.data=n.data.toLowerCase():c.kind==="toUpperCase"?n.data=n.data.toUpperCase():c.kind==="startsWith"?n.data.startsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{startsWith:c.value},message:c.message}),a.dirty()):c.kind==="endsWith"?n.data.endsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{endsWith:c.value},message:c.message}),a.dirty()):c.kind==="datetime"?fI(c).test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:"datetime",message:c.message}),a.dirty()):c.kind==="ip"?dI(n.data,c.version)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ip",code:qe.invalid_string,message:c.message}),a.dirty()):hn.assertNever(c);return{status:a.value,value:n.data}}_addCheck(n){return new Eo({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...Ct.errToObj(n)})}url(n){return this._addCheck({kind:"url",...Ct.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...Ct.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...Ct.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...Ct.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...Ct.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...Ct.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...Ct.errToObj(n)})}datetime(n){var r;return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(r=n==null?void 0:n.offset)!==null&&r!==void 0?r:!1,...Ct.errToObj(n==null?void 0:n.message)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,...Ct.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r==null?void 0:r.position,...Ct.errToObj(r==null?void 0:r.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,...Ct.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,...Ct.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,...Ct.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,...Ct.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,...Ct.errToObj(r)})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Eo.create=e=>{var n;return new Eo({checks:[],typeName:Mt.ZodString,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};function pI(e,n){const r=(e.toString().split(".")[1]||"").length,a=(n.toString().split(".")[1]||"").length,s=r>a?r:a,c=parseInt(e.toFixed(s).replace(".","")),f=parseInt(n.toFixed(s).replace(".",""));return c%f/Math.pow(10,s)}class cu extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==rt.number){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.number,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="int"?hn.isInteger(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.invalid_type,expected:"integer",received:"float",message:c.message}),s.dirty()):c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="multipleOf"?pI(n.data,c.value)!==0&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):c.kind==="finite"?Number.isFinite(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_finite,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new cu({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new cu({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:Ct.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:Ct.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ct.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ct.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&hn.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}return Number.isFinite(r)&&Number.isFinite(n)}}cu.create=e=>new cu({checks:[],typeName:Mt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class fu extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce&&(n.data=BigInt(n.data)),this._getType(n)!==rt.bigint){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.bigint,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="multipleOf"?n.data%c.value!==BigInt(0)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new fu({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new fu({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}fu.create=e=>{var n;return new fu({checks:[],typeName:Mt.ZodBigInt,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};class Xh extends Qt{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==rt.boolean){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.boolean,received:a.parsedType}),Ut}return zi(n.data)}}Xh.create=e=>new Xh({typeName:Mt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class Ac extends Qt{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==rt.date){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.date,received:c.parsedType}),Ut}if(isNaN(n.data.getTime())){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_date}),Ut}const a=new wi;let s;for(const c of this._def.checks)c.kind==="min"?n.data.getTime()<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),a.dirty()):c.kind==="max"?n.data.getTime()>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),a.dirty()):hn.assertNever(c);return{status:a.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Ac({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:Ct.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:Ct.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}Ac.create=e=>new Ac({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Mt.ZodDate,...Wt(e)});class Lg extends Qt{_parse(n){if(this._getType(n)!==rt.symbol){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.symbol,received:a.parsedType}),Ut}return zi(n.data)}}Lg.create=e=>new Lg({typeName:Mt.ZodSymbol,...Wt(e)});class Jh extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.undefined,received:a.parsedType}),Ut}return zi(n.data)}}Jh.create=e=>new Jh({typeName:Mt.ZodUndefined,...Wt(e)});class em extends Qt{_parse(n){if(this._getType(n)!==rt.null){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.null,received:a.parsedType}),Ut}return zi(n.data)}}em.create=e=>new em({typeName:Mt.ZodNull,...Wt(e)});class hd extends Qt{constructor(){super(...arguments),this._any=!0}_parse(n){return zi(n.data)}}hd.create=e=>new hd({typeName:Mt.ZodAny,...Wt(e)});class Mc extends Qt{constructor(){super(...arguments),this._unknown=!0}_parse(n){return zi(n.data)}}Mc.create=e=>new Mc({typeName:Mt.ZodUnknown,...Wt(e)});class Jl extends Qt{_parse(n){const r=this._getOrReturnCtx(n);return ot(r,{code:qe.invalid_type,expected:rt.never,received:r.parsedType}),Ut}}Jl.create=e=>new Jl({typeName:Mt.ZodNever,...Wt(e)});class Pg extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.void,received:a.parsedType}),Ut}return zi(n.data)}}Pg.create=e=>new Pg({typeName:Mt.ZodVoid,...Wt(e)});class xo extends Qt{_parse(n){const{ctx:r,status:a}=this._processInputParams(n),s=this._def;if(r.parsedType!==rt.array)return ot(r,{code:qe.invalid_type,expected:rt.array,received:r.parsedType}),Ut;if(s.exactLength!==null){const f=r.data.length>s.exactLength.value,h=r.data.length<s.exactLength.value;(f||h)&&(ot(r,{code:f?qe.too_big:qe.too_small,minimum:h?s.exactLength.value:void 0,maximum:f?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(ot(r,{code:qe.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(ot(r,{code:qe.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((f,h)=>s.type._parseAsync(new il(r,f,r.path,h)))).then(f=>wi.mergeArray(a,f));const c=[...r.data].map((f,h)=>s.type._parseSync(new il(r,f,r.path,h)));return wi.mergeArray(a,c)}get element(){return this._def.type}min(n,r){return new xo({...this._def,minLength:{value:n,message:Ct.toString(r)}})}max(n,r){return new xo({...this._def,maxLength:{value:n,message:Ct.toString(r)}})}length(n,r){return new xo({...this._def,exactLength:{value:n,message:Ct.toString(r)}})}nonempty(n){return this.min(1,n)}}xo.create=(e,n)=>new xo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Mt.ZodArray,...Wt(n)});function md(e){if(e instanceof rr){const n={};for(const r in e.shape){const a=e.shape[r];n[r]=es.create(md(a))}return new rr({...e._def,shape:()=>n})}else return e instanceof xo?new xo({...e._def,type:md(e.element)}):e instanceof es?es.create(md(e.unwrap())):e instanceof Pc?Pc.create(md(e.unwrap())):e instanceof al?al.create(e.items.map(n=>md(n))):e}class rr extends Qt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),r=hn.objectKeys(n);return this._cached={shape:n,keys:r}}_parse(n){if(this._getType(n)!==rt.object){const y=this._getOrReturnCtx(n);return ot(y,{code:qe.invalid_type,expected:rt.object,received:y.parsedType}),Ut}const{status:a,ctx:s}=this._processInputParams(n),{shape:c,keys:f}=this._getCached(),h=[];if(!(this._def.catchall instanceof Jl&&this._def.unknownKeys==="strip"))for(const y in s.data)f.includes(y)||h.push(y);const v=[];for(const y of f){const S=c[y],E=s.data[y];v.push({key:{status:"valid",value:y},value:S._parse(new il(s,E,s.path,y)),alwaysSet:y in s.data})}if(this._def.catchall instanceof Jl){const y=this._def.unknownKeys;if(y==="passthrough")for(const S of h)v.push({key:{status:"valid",value:S},value:{status:"valid",value:s.data[S]}});else if(y==="strict")h.length>0&&(ot(s,{code:qe.unrecognized_keys,keys:h}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const S of h){const E=s.data[S];v.push({key:{status:"valid",value:S},value:y._parse(new il(s,E,s.path,S)),alwaysSet:S in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const y=[];for(const S of v){const E=await S.key;y.push({key:E,value:await S.value,alwaysSet:S.alwaysSet})}return y}).then(y=>wi.mergeObjectSync(a,y)):wi.mergeObjectSync(a,v)}get shape(){return this._def.shape()}strict(n){return Ct.errToObj,new rr({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,a)=>{var s,c,f,h;const v=(f=(c=(s=this._def).errorMap)===null||c===void 0?void 0:c.call(s,r,a).message)!==null&&f!==void 0?f:a.defaultError;return r.code==="unrecognized_keys"?{message:(h=Ct.errToObj(n).message)!==null&&h!==void 0?h:v}:{message:v}}}:{}})}strip(){return new rr({...this._def,unknownKeys:"strip"})}passthrough(){return new rr({...this._def,unknownKeys:"passthrough"})}extend(n){return new rr({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new rr({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:Mt.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new rr({...this._def,catchall:n})}pick(n){const r={};return hn.objectKeys(n).forEach(a=>{n[a]&&this.shape[a]&&(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}omit(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{n[a]||(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}deepPartial(){return md(this)}partial(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{const s=this.shape[a];n&&!n[a]?r[a]=s:r[a]=s.optional()}),new rr({...this._def,shape:()=>r})}required(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{if(n&&!n[a])r[a]=this.shape[a];else{let c=this.shape[a];for(;c instanceof es;)c=c._def.innerType;r[a]=c}}),new rr({...this._def,shape:()=>r})}keyof(){return K5(hn.objectKeys(this.shape))}}rr.create=(e,n)=>new rr({shape:()=>e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.strictCreate=(e,n)=>new rr({shape:()=>e,unknownKeys:"strict",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.lazycreate=(e,n)=>new rr({shape:e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)});class tm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=this._def.options;function s(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return r.common.issues.push(...h.ctx.common.issues),h.result;const f=c.map(h=>new So(h.ctx.common.issues));return ot(r,{code:qe.invalid_union,unionErrors:f}),Ut}if(r.common.async)return Promise.all(a.map(async c=>{const f={...r,common:{...r.common,issues:[]},parent:null};return{result:await c._parseAsync({data:r.data,path:r.path,parent:f}),ctx:f}})).then(s);{let c;const f=[];for(const v of a){const y={...r,common:{...r.common,issues:[]},parent:null},S=v._parseSync({data:r.data,path:r.path,parent:y});if(S.status==="valid")return S;S.status==="dirty"&&!c&&(c={result:S,ctx:y}),y.common.issues.length&&f.push(y.common.issues)}if(c)return r.common.issues.push(...c.ctx.common.issues),c.result;const h=f.map(v=>new So(v));return ot(r,{code:qe.invalid_union,unionErrors:h}),Ut}}get options(){return this._def.options}}tm.create=(e,n)=>new tm({options:e,typeName:Mt.ZodUnion,...Wt(n)});const Ng=e=>e instanceof im?Ng(e.schema):e instanceof wo?Ng(e.innerType()):e instanceof am?[e.value]:e instanceof du?e.options:e instanceof om?Object.keys(e.enum):e instanceof lm?Ng(e._def.innerType):e instanceof Jh?[void 0]:e instanceof em?[null]:null;class Fg extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.object)return ot(r,{code:qe.invalid_type,expected:rt.object,received:r.parsedType}),Ut;const a=this.discriminator,s=r.data[a],c=this.optionsMap.get(s);return c?r.common.async?c._parseAsync({data:r.data,path:r.path,parent:r}):c._parseSync({data:r.data,path:r.path,parent:r}):(ot(r,{code:qe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),Ut)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,r,a){const s=new Map;for(const c of r){const f=Ng(c.shape[n]);if(!f)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(const h of f){if(s.has(h))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(h)}`);s.set(h,c)}}return new Fg({typeName:Mt.ZodDiscriminatedUnion,discriminator:n,options:r,optionsMap:s,...Wt(a)})}}function tx(e,n){const r=uu(e),a=uu(n);if(e===n)return{valid:!0,data:e};if(r===rt.object&&a===rt.object){const s=hn.objectKeys(n),c=hn.objectKeys(e).filter(h=>s.indexOf(h)!==-1),f={...e,...n};for(const h of c){const v=tx(e[h],n[h]);if(!v.valid)return{valid:!1};f[h]=v.data}return{valid:!0,data:f}}else if(r===rt.array&&a===rt.array){if(e.length!==n.length)return{valid:!1};const s=[];for(let c=0;c<e.length;c++){const f=e[c],h=n[c],v=tx(f,h);if(!v.valid)return{valid:!1};s.push(v.data)}return{valid:!0,data:s}}else return r===rt.date&&a===rt.date&&+e==+n?{valid:!0,data:e}:{valid:!1}}class nm extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=(c,f)=>{if(JE(c)||JE(f))return Ut;const h=tx(c.value,f.value);return h.valid?((ex(c)||ex(f))&&r.dirty(),{status:r.value,value:h.data}):(ot(a,{code:qe.invalid_intersection_types}),Ut)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([c,f])=>s(c,f)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}nm.create=(e,n,r)=>new nm({left:e,right:n,typeName:Mt.ZodIntersection,...Wt(r)});class al extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.array)return ot(a,{code:qe.invalid_type,expected:rt.array,received:a.parsedType}),Ut;if(a.data.length<this._def.items.length)return ot(a,{code:qe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ut;!this._def.rest&&a.data.length>this._def.items.length&&(ot(a,{code:qe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const c=[...a.data].map((f,h)=>{const v=this._def.items[h]||this._def.rest;return v?v._parse(new il(a,f,a.path,h)):null}).filter(f=>!!f);return a.common.async?Promise.all(c).then(f=>wi.mergeArray(r,f)):wi.mergeArray(r,c)}get items(){return this._def.items}rest(n){return new al({...this._def,rest:n})}}al.create=(e,n)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new al({items:e,typeName:Mt.ZodTuple,rest:null,...Wt(n)})};class rm extends Qt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.object)return ot(a,{code:qe.invalid_type,expected:rt.object,received:a.parsedType}),Ut;const s=[],c=this._def.keyType,f=this._def.valueType;for(const h in a.data)s.push({key:c._parse(new il(a,h,a.path,h)),value:f._parse(new il(a,a.data[h],a.path,h))});return a.common.async?wi.mergeObjectAsync(r,s):wi.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(n,r,a){return r instanceof Qt?new rm({keyType:n,valueType:r,typeName:Mt.ZodRecord,...Wt(a)}):new rm({keyType:Eo.create(),valueType:n,typeName:Mt.ZodRecord,...Wt(r)})}}class Ig extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.map)return ot(a,{code:qe.invalid_type,expected:rt.map,received:a.parsedType}),Ut;const s=this._def.keyType,c=this._def.valueType,f=[...a.data.entries()].map(([h,v],y)=>({key:s._parse(new il(a,h,a.path,[y,"key"])),value:c._parse(new il(a,v,a.path,[y,"value"]))}));if(a.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const v of f){const y=await v.key,S=await v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}})}else{const h=new Map;for(const v of f){const y=v.key,S=v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}}}}Ig.create=(e,n,r)=>new Ig({valueType:n,keyType:e,typeName:Mt.ZodMap,...Wt(r)});class Lc extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.set)return ot(a,{code:qe.invalid_type,expected:rt.set,received:a.parsedType}),Ut;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(ot(a,{code:qe.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(ot(a,{code:qe.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const c=this._def.valueType;function f(v){const y=new Set;for(const S of v){if(S.status==="aborted")return Ut;S.status==="dirty"&&r.dirty(),y.add(S.value)}return{status:r.value,value:y}}const h=[...a.data.values()].map((v,y)=>c._parse(new il(a,v,a.path,y)));return a.common.async?Promise.all(h).then(v=>f(v)):f(h)}min(n,r){return new Lc({...this._def,minSize:{value:n,message:Ct.toString(r)}})}max(n,r){return new Lc({...this._def,maxSize:{value:n,message:Ct.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}Lc.create=(e,n)=>new Lc({valueType:e,minSize:null,maxSize:null,typeName:Mt.ZodSet,...Wt(n)});class vd extends Qt{constructor(){super(...arguments),this.validate=this.implement}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.function)return ot(r,{code:qe.invalid_type,expected:rt.function,received:r.parsedType}),Ut;function a(h,v){return Dg({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Og(),Qh].filter(y=>!!y),issueData:{code:qe.invalid_arguments,argumentsError:v}})}function s(h,v){return Dg({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Og(),Qh].filter(y=>!!y),issueData:{code:qe.invalid_return_type,returnTypeError:v}})}const c={errorMap:r.common.contextualErrorMap},f=r.data;return this._def.returns instanceof gd?zi(async(...h)=>{const v=new So([]),y=await this._def.args.parseAsync(h,c).catch(C=>{throw v.addIssue(a(h,C)),v}),S=await f(...y);return await this._def.returns._def.type.parseAsync(S,c).catch(C=>{throw v.addIssue(s(S,C)),v})}):zi((...h)=>{const v=this._def.args.safeParse(h,c);if(!v.success)throw new So([a(h,v.error)]);const y=f(...v.data),S=this._def.returns.safeParse(y,c);if(!S.success)throw new So([s(y,S.error)]);return S.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...n){return new vd({...this._def,args:al.create(n).rest(Mc.create())})}returns(n){return new vd({...this._def,returns:n})}implement(n){return this.parse(n)}strictImplement(n){return this.parse(n)}static create(n,r,a){return new vd({args:n||al.create([]).rest(Mc.create()),returns:r||Mc.create(),typeName:Mt.ZodFunction,...Wt(a)})}}class im extends Qt{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}im.create=(e,n)=>new im({getter:e,typeName:Mt.ZodLazy,...Wt(n)});class am extends Qt{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return ot(r,{received:r.data,code:qe.invalid_literal,expected:this._def.value}),Ut}return{status:"valid",value:n.data}}get value(){return this._def.value}}am.create=(e,n)=>new am({value:e,typeName:Mt.ZodLiteral,...Wt(n)});function K5(e,n){return new du({values:e,typeName:Mt.ZodEnum,...Wt(n)})}class du extends Qt{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{expected:hn.joinValues(a),received:r.parsedType,code:qe.invalid_type}),Ut}if(this._def.values.indexOf(n.data)===-1){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{received:r.data,code:qe.invalid_enum_value,options:a}),Ut}return zi(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n){return du.create(n)}exclude(n){return du.create(this.options.filter(r=>!n.includes(r)))}}du.create=K5;class om extends Qt{_parse(n){const r=hn.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(n);if(a.parsedType!==rt.string&&a.parsedType!==rt.number){const s=hn.objectValues(r);return ot(a,{expected:hn.joinValues(s),received:a.parsedType,code:qe.invalid_type}),Ut}if(r.indexOf(n.data)===-1){const s=hn.objectValues(r);return ot(a,{received:a.data,code:qe.invalid_enum_value,options:s}),Ut}return zi(n.data)}get enum(){return this._def.values}}om.create=(e,n)=>new om({values:e,typeName:Mt.ZodNativeEnum,...Wt(n)});class gd extends Qt{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.promise&&r.common.async===!1)return ot(r,{code:qe.invalid_type,expected:rt.promise,received:r.parsedType}),Ut;const a=r.parsedType===rt.promise?r.data:Promise.resolve(r.data);return zi(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}gd.create=(e,n)=>new gd({type:e,typeName:Mt.ZodPromise,...Wt(n)});class wo extends Qt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Mt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=this._def.effect||null;if(s.type==="preprocess"){const f=s.transform(a.data);return a.common.async?Promise.resolve(f).then(h=>this._def.schema._parseAsync({data:h,path:a.path,parent:a})):this._def.schema._parseSync({data:f,path:a.path,parent:a})}const c={addIssue:f=>{ot(a,f),f.fatal?r.abort():r.dirty()},get path(){return a.path}};if(c.addIssue=c.addIssue.bind(c),s.type==="refinement"){const f=h=>{const v=s.refinement(h,c);if(a.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(a.common.async===!1){const h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value),{status:r.value,value:h.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(h=>h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value).then(()=>({status:r.value,value:h.value}))))}if(s.type==="transform")if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Ag(f))return f;const h=s.transform(f.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:h}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>Ag(f)?Promise.resolve(s.transform(f.value,c)).then(h=>({status:r.value,value:h})):f);hn.assertNever(s)}}wo.create=(e,n,r)=>new wo({schema:e,typeName:Mt.ZodEffects,effect:n,...Wt(r)}),wo.createWithPreprocess=(e,n,r)=>new wo({schema:n,effect:{type:"preprocess",transform:e},typeName:Mt.ZodEffects,...Wt(r)});class es extends Qt{_parse(n){return this._getType(n)===rt.undefined?zi(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}es.create=(e,n)=>new es({innerType:e,typeName:Mt.ZodOptional,...Wt(n)});class Pc extends Qt{_parse(n){return this._getType(n)===rt.null?zi(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Pc.create=(e,n)=>new Pc({innerType:e,typeName:Mt.ZodNullable,...Wt(n)});class lm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);let a=r.data;return r.parsedType===rt.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}lm.create=(e,n)=>new lm({innerType:e,typeName:Mt.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...Wt(n)});class zg extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Mg(s)?s.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}zg.create=(e,n)=>new zg({innerType:e,typeName:Mt.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...Wt(n)});class jg extends Qt{_parse(n){if(this._getType(n)!==rt.nan){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.nan,received:a.parsedType}),Ut}return{status:"valid",value:n.data}}}jg.create=e=>new jg({typeName:Mt.ZodNaN,...Wt(e)});const hI=Symbol("zod_brand");class G5 extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class sm extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return c.status==="aborted"?Ut:c.status==="dirty"?(r.dirty(),Y5(c.value)):this._def.out._parseAsync({data:c.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ut:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(n,r){return new sm({in:n,out:r,typeName:Mt.ZodPipeline})}}const Q5=(e,n={},r)=>e?hd.create().superRefine((a,s)=>{var c,f;if(!e(a)){const h=typeof n=="function"?n(a):typeof n=="string"?{message:n}:n,v=(f=(c=h.fatal)!==null&&c!==void 0?c:r)!==null&&f!==void 0?f:!0,y=typeof h=="string"?{message:h}:h;s.addIssue({code:"custom",...y,fatal:v})}}):hd.create(),mI={object:rr.lazycreate};var Mt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Mt||(Mt={}));const vI=(e,n={message:`Input not instance of ${e.name}`})=>Q5(r=>r instanceof e,n),X5=Eo.create,J5=cu.create,gI=jg.create,yI=fu.create,e3=Xh.create,bI=Ac.create,SI=Lg.create,EI=Jh.create,xI=em.create,wI=hd.create,CI=Mc.create,kI=Jl.create,_I=Pg.create,TI=xo.create,RI=rr.create,OI=rr.strictCreate,DI=tm.create,AI=Fg.create,MI=nm.create,LI=al.create,PI=rm.create,NI=Ig.create,FI=Lc.create,II=vd.create,zI=im.create,jI=am.create,$I=du.create,UI=om.create,BI=gd.create,t3=wo.create,VI=es.create,HI=Pc.create,qI=wo.createWithPreprocess,WI=sm.create;var lt=Object.freeze({__proto__:null,defaultErrorMap:Qh,setErrorMap:tI,getErrorMap:Og,makeIssue:Dg,EMPTY_PATH:nI,addIssueToContext:ot,ParseStatus:wi,INVALID:Ut,DIRTY:Y5,OK:zi,isAborted:JE,isDirty:ex,isValid:Ag,isAsync:Mg,get util(){return hn},get objectUtil(){return XE},ZodParsedType:rt,getParsedType:uu,ZodType:Qt,ZodString:Eo,ZodNumber:cu,ZodBigInt:fu,ZodBoolean:Xh,ZodDate:Ac,ZodSymbol:Lg,ZodUndefined:Jh,ZodNull:em,ZodAny:hd,ZodUnknown:Mc,ZodNever:Jl,ZodVoid:Pg,ZodArray:xo,ZodObject:rr,ZodUnion:tm,ZodDiscriminatedUnion:Fg,ZodIntersection:nm,ZodTuple:al,ZodRecord:rm,ZodMap:Ig,ZodSet:Lc,ZodFunction:vd,ZodLazy:im,ZodLiteral:am,ZodEnum:du,ZodNativeEnum:om,ZodPromise:gd,ZodEffects:wo,ZodTransformer:wo,ZodOptional:es,ZodNullable:Pc,ZodDefault:lm,ZodCatch:zg,ZodNaN:jg,BRAND:hI,ZodBranded:G5,ZodPipeline:sm,custom:Q5,Schema:Qt,ZodSchema:Qt,late:mI,get ZodFirstPartyTypeKind(){return Mt},coerce:{string:e=>Eo.create({...e,coerce:!0}),number:e=>cu.create({...e,coerce:!0}),boolean:e=>Xh.create({...e,coerce:!0}),bigint:e=>fu.create({...e,coerce:!0}),date:e=>Ac.create({...e,coerce:!0})},any:wI,array:TI,bigint:yI,boolean:e3,date:bI,discriminatedUnion:AI,effect:t3,enum:$I,function:II,instanceof:vI,intersection:MI,lazy:zI,literal:jI,map:NI,nan:gI,nativeEnum:UI,never:kI,null:xI,nullable:HI,number:J5,object:RI,oboolean:()=>e3().optional(),onumber:()=>J5().optional(),optional:VI,ostring:()=>X5().optional(),pipeline:WI,preprocess:qI,promise:BI,record:PI,set:FI,strictObject:OI,string:X5,symbol:SI,transformer:t3,tuple:LI,undefined:EI,union:DI,unknown:CI,void:_I,NEVER:Ut,ZodIssueCode:qe,quotelessJson:eI,ZodError:So});const YI=lt.object({type:lt.literal("audio"),audio:lt.string(),title:lt.string().optional()}).transform(({type:e,audio:n})=>({type:e,url:n}));function $g(e){return{block:e,type:"bubble"}}const ZI=lt.object({title:lt.string(),action:lt.literal("Say something"),text:lt.string()}).transform(({title:e,text:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),KI=lt.object({title:lt.string(),action:lt.literal("Open URL"),url:lt.string()}).transform(({title:e,url:n})=>({type:"button",variant:"link",text:e,buttonValue:n,reusable:!0})),GI=lt.object({title:lt.string(),action:lt.literal("Postback"),payload:lt.string()}).transform(({title:e,payload:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),QI=lt.union([ZI,KI,GI]),n3=lt.object({type:lt.literal("card"),title:lt.string().optional(),subtitle:lt.string().optional(),image:lt.string().optional(),actions:lt.array(QI)}),r3=({title:e,image:n,actions:r,subtitle:a})=>{const s=[];return n&&s.push({type:"image",url:n}),e&&s.push({type:"text",text:`## ${e}`}),a&&s.push({type:"text",text:a}),r.length>0&&s.push({type:"row",blocks:r}),{type:"column",horizontalAlignment:"center",blocks:[...s]}},XI=n3.transform(e=>$g(r3(e))),JI=lt.object({type:lt.literal("carousel"),items:lt.array(n3.omit({type:!0}).transform(r3))}).transform(({items:e})=>({type:"carousel",blocks:e}));let Ug;const ez=new Uint8Array(16);function tz(){if(!Ug&&(Ug=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ug))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ug(ez)}const si=[];for(let e=0;e<256;++e)si.push((e+256).toString(16).slice(1));function nz(e,n=0){return(si[e[n+0]]+si[e[n+1]]+si[e[n+2]]+si[e[n+3]]+"-"+si[e[n+4]]+si[e[n+5]]+"-"+si[e[n+6]]+si[e[n+7]]+"-"+si[e[n+8]]+si[e[n+9]]+"-"+si[e[n+10]]+si[e[n+11]]+si[e[n+12]]+si[e[n+13]]+si[e[n+14]]+si[e[n+15]]).toLowerCase()}const i3={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function rz(e,n,r){if(i3.randomUUID&&!n&&!e)return i3.randomUUID();e=e||{};const a=e.random||(e.rng||tz)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){r=r||0;for(let s=0;s<16;++s)n[r+s]=a[s];return n}return nz(a)}const iz=lt.object({type:lt.literal("single-choice"),text:lt.string(),choices:lt.array(lt.object({title:lt.string(),value:lt.string()}))}).transform(({choices:e,text:n})=>{const r=rz(),a=[{type:"row",blocks:e.map(({title:s,value:c})=>({type:"button",variant:"action",text:s,buttonValue:c,groupId:r}))}];return n&&a.unshift({type:"text",text:n}),$g({type:"column",blocks:a})}),az=lt.object({type:lt.literal("file"),file:lt.string(),title:lt.string().optional()}).transform(({file:e,...n})=>({url:e,...n})),oz=lt.object({type:lt.literal("image"),image:lt.string(),title:lt.string().optional()}).transform(({type:e,image:n})=>({type:e,url:n})),lz=lt.object({type:lt.literal("location"),latitude:lt.number(),longitude:lt.number(),address:lt.string().optional(),title:lt.string().optional()}).transform(({type:e,latitude:n,longitude:r,title:a,address:s})=>({type:e,latitude:n,longitude:r,title:a??s??"View on map"})),sz=lt.object({type:lt.literal("text"),text:lt.string(),markdown:lt.boolean().optional()}).transform(({type:e,text:n})=>$g({type:e,text:n})),uz=lt.object({type:lt.literal("video"),video:lt.string(),title:lt.string().optional()}).transform(({type:e,video:n})=>({type:e,url:n})),cz=lt.object({type:lt.literal("voice"),audio:lt.string()}).transform(({audio:e})=>({type:"audio",url:e})),fz=lt.object({type:lt.literal("dropdown"),text:lt.string().optional(),message:lt.string().optional(),options:lt.array(lt.object({label:lt.string(),value:lt.string()}))}).transform(({options:e,text:n})=>{const r=[{type:"dropdown",label:n??"Select an option",options:e}];return n&&r.unshift({type:"text",text:n}),$g({type:"column",blocks:r})}),dz=lt.union([sz,oz,YI,uz,JI,XI,lz,az,cz,iz,fz]);var pz={},nx={},a3={};Object.defineProperty(a3,"__esModule",{value:!0});var Bg={},hz=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.Emitter=void 0;let mz=class{constructor(){this.listeners={}}on(n,r,a=!1){const s=this.listeners[n];s?a?s.unshift(r):s.push(r):this.listeners[n]=[r]}emit(n,r){return hz(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}};Bg.Emitter=mz;var o3={};Object.defineProperty(o3,"__esModule",{value:!0});var l3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HealthEventType=void 0,function(n){n.Create="create",n.Configure="configure",n.Start="start",n.StartFailure="start-failure",n.Initialize="initialize",n.InitializeFailure="initialize-failure",n.Sleep="sleep",n.Delete="delete"}(e.HealthEventType||(e.HealthEventType={}))})(l3);var s3={};Object.defineProperty(s3,"__esModule",{value:!0});var u3={};Object.defineProperty(u3,"__esModule",{value:!0});var c3={};Object.defineProperty(c3,"__esModule",{value:!0});var f3={};Object.defineProperty(f3,"__esModule",{value:!0}),function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(a3,e),r(Bg,e),r(o3,e),r(l3,e),r(s3,e),r(u3,e),r(c3,e),r(f3,e)}(nx);var Vg={},d3={},rx={exports:{}},Hg={},ix={},qg={},um={},yd={},Nc={},bd={},Sd={},ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.ERROR_PACKET=ol.PACKET_TYPES_REVERSE=ol.PACKET_TYPES=void 0;const ll=Object.create(null);ol.PACKET_TYPES=ll,ll.open="0",ll.close="1",ll.ping="2",ll.pong="3",ll.message="4",ll.upgrade="5",ll.noop="6";const p3=Object.create(null);ol.PACKET_TYPES_REVERSE=p3,Object.keys(ll).forEach(e=>{p3[ll[e]]=e});const vz={type:"error",data:"parser error"};ol.ERROR_PACKET=vz,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.encodePacket=Sd.encodePacketToBinary=void 0;const gz=ol,h3=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",m3=typeof ArrayBuffer=="function",v3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,g3=({type:e,data:n},r,a)=>h3&&n instanceof Blob?r?a(n):y3(n,a):m3&&(n instanceof ArrayBuffer||v3(n))?r?a(n):y3(new Blob([n]),a):a(gz.PACKET_TYPES[e]+(n||""));Sd.encodePacket=g3;const y3=(e,n)=>{const r=new FileReader;return r.onload=function(){const a=r.result.split(",")[1];n("b"+(a||""))},r.readAsDataURL(e)};function b3(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ax;function yz(e,n){if(h3&&e.data instanceof Blob)return e.data.arrayBuffer().then(b3).then(n);if(m3&&(e.data instanceof ArrayBuffer||v3(e.data)))return n(b3(e.data));g3(e,!1,r=>{ax||(ax=new TextEncoder),n(ax.encode(r))})}Sd.encodePacketToBinary=yz;var Wg={},Ed={};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.decode=Ed.encode=void 0;const xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<xd.length;e++)cm[xd.charCodeAt(e)]=e;const bz=e=>{let n=new Uint8Array(e),r,a=n.length,s="";for(r=0;r<a;r+=3)s+=xd[n[r]>>2],s+=xd[(n[r]&3)<<4|n[r+1]>>4],s+=xd[(n[r+1]&15)<<2|n[r+2]>>6],s+=xd[n[r+2]&63];return a%3===2?s=s.substring(0,s.length-1)+"=":a%3===1&&(s=s.substring(0,s.length-2)+"=="),s};Ed.encode=bz;const Sz=e=>{let n=e.length*.75,r=e.length,a,s=0,c,f,h,v;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const y=new ArrayBuffer(n),S=new Uint8Array(y);for(a=0;a<r;a+=4)c=cm[e.charCodeAt(a)],f=cm[e.charCodeAt(a+1)],h=cm[e.charCodeAt(a+2)],v=cm[e.charCodeAt(a+3)],S[s++]=c<<2|f>>4,S[s++]=(f&15)<<4|h>>2,S[s++]=(h&3)<<6|v&63;return y};Ed.decode=Sz,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.decodePacket=void 0;const Yg=ol,Ez=Ed,xz=typeof ArrayBuffer=="function",wz=(e,n)=>{if(typeof e!="string")return{type:"message",data:S3(e,n)};const r=e.charAt(0);return r==="b"?{type:"message",data:Cz(e.substring(1),n)}:Yg.PACKET_TYPES_REVERSE[r]?e.length>1?{type:Yg.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:Yg.PACKET_TYPES_REVERSE[r]}:Yg.ERROR_PACKET};Wg.decodePacket=wz;const Cz=(e,n)=>{if(xz){const r=(0,Ez.decode)(e);return S3(r,n)}else return{base64:!0,data:e}},S3=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const n=Sd;Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const r=Wg;Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const a=ol,s=String.fromCharCode(30),c=(C,x)=>{const R=C.length,T=new Array(R);let D=0;C.forEach((M,F)=>{(0,n.encodePacket)(M,!1,N=>{T[F]=N,++D===R&&x(T.join(s))})})};e.encodePayload=c;const f=(C,x)=>{const R=C.split(s),T=[];for(let D=0;D<R.length;D++){const M=(0,r.decodePacket)(R[D],x);if(T.push(M),M.type==="error")break}return T};e.decodePayload=f;function h(){return new TransformStream({transform(C,x){(0,n.encodePacketToBinary)(C,R=>{const T=R.length;let D;if(T<126)D=new Uint8Array(1),new DataView(D.buffer).setUint8(0,T);else if(T<65536){D=new Uint8Array(3);const M=new DataView(D.buffer);M.setUint8(0,126),M.setUint16(1,T)}else{D=new Uint8Array(9);const M=new DataView(D.buffer);M.setUint8(0,127),M.setBigUint64(1,BigInt(T))}C.data&&typeof C.data!="string"&&(D[0]|=128),x.enqueue(D),x.enqueue(R)})}})}e.createPacketEncoderStream=h;let v;function y(C){return C.reduce((x,R)=>x+R.length,0)}function S(C,x){if(C[0].length===x)return C.shift();const R=new Uint8Array(x);let T=0;for(let D=0;D<x;D++)R[D]=C[0][T++],T===C[0].length&&(C.shift(),T=0);return C.length&&T<C[0].length&&(C[0]=C[0].slice(T)),R}function E(C,x){v||(v=new TextDecoder);const R=[];let T=0,D=-1,M=!1;return new TransformStream({transform(F,N){for(R.push(F);;){if(T===0){if(y(R)<1)break;const V=S(R,1);M=(V[0]&128)===128,D=V[0]&127,D<126?T=3:D===126?T=1:T=2}else if(T===1){if(y(R)<2)break;const V=S(R,2);D=new DataView(V.buffer,V.byteOffset,V.length).getUint16(0),T=3}else if(T===2){if(y(R)<8)break;const V=S(R,8),I=new DataView(V.buffer,V.byteOffset,V.length),$=I.getUint32(0);if($>Math.pow(2,53-32)-1){N.enqueue(a.ERROR_PACKET);break}D=$*Math.pow(2,32)+I.getUint32(4),T=3}else{if(y(R)<D)break;const V=S(R,D);N.enqueue((0,r.decodePacket)(M?V:v.decode(V),x)),T=0}if(D===0||D>C){N.enqueue(a.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=E,e.protocol=4})(bd);function ji(e){if(e)return kz(e)}function kz(e){for(var n in ji.prototype)e[n]=ji.prototype[n];return e}ji.prototype.on=ji.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this},ji.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this},ji.prototype.off=ji.prototype.removeListener=ji.prototype.removeAllListeners=ji.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,s=0;s<r.length;s++)if(a=r[s],a===n||a.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this},ji.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+e],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(r){r=r.slice(0);for(var a=0,s=r.length;a<s;++a)r[a].apply(this,n)}return this},ji.prototype.emitReserved=ji.prototype.emit,ji.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ji.prototype.hasListeners=function(e){return!!this.listeners(e).length};const wd=n6(Object.freeze(Object.defineProperty({__proto__:null,Emitter:ji},Symbol.toStringTag,{value:"Module"})));var to={},Fc={};Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.globalThisShim=void 0,Fc.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),Object.defineProperty(to,"__esModule",{value:!0}),to.byteLength=to.installTimerFunctions=to.pick=void 0;const pu=Fc;function _z(e,...n){return n.reduce((r,a)=>(e.hasOwnProperty(a)&&(r[a]=e[a]),r),{})}to.pick=_z;const Tz=pu.globalThisShim.setTimeout,Rz=pu.globalThisShim.clearTimeout;function Oz(e,n){n.useNativeTimers?(e.setTimeoutFn=Tz.bind(pu.globalThisShim),e.clearTimeoutFn=Rz.bind(pu.globalThisShim)):(e.setTimeoutFn=pu.globalThisShim.setTimeout.bind(pu.globalThisShim),e.clearTimeoutFn=pu.globalThisShim.clearTimeout.bind(pu.globalThisShim))}to.installTimerFunctions=Oz;const Dz=1.33;function Az(e){return typeof e=="string"?Mz(e):Math.ceil((e.byteLength||e.size)*Dz)}to.byteLength=Az;function Mz(e){let n=0,r=0;for(let a=0,s=e.length;a<s;a++)n=e.charCodeAt(a),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(a++,r+=4);return r}var ox={exports:{}},lx,E3;function Lz(){if(E3)return lx;E3=1;var e=1e3,n=e*60,r=n*60,a=r*24,s=a*7,c=a*365.25;lx=function(S,E){E=E||{};var C=typeof S;if(C==="string"&&S.length>0)return f(S);if(C==="number"&&isFinite(S))return E.long?v(S):h(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function f(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var C=parseFloat(E[1]),x=(E[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return C*c;case"weeks":case"week":case"w":return C*s;case"days":case"day":case"d":return C*a;case"hours":case"hour":case"hrs":case"hr":case"h":return C*r;case"minutes":case"minute":case"mins":case"min":case"m":return C*n;case"seconds":case"second":case"secs":case"sec":case"s":return C*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function h(S){var E=Math.abs(S);return E>=a?Math.round(S/a)+"d":E>=r?Math.round(S/r)+"h":E>=n?Math.round(S/n)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}function v(S){var E=Math.abs(S);return E>=a?y(S,E,a,"day"):E>=r?y(S,E,r,"hour"):E>=n?y(S,E,n,"minute"):E>=e?y(S,E,e,"second"):S+" ms"}function y(S,E,C,x){var R=E>=C*1.5;return Math.round(S/C)+" "+x+(R?"s":"")}return lx}function Pz(e){r.debug=r,r.default=r,r.coerce=v,r.disable=c,r.enable=s,r.enabled=f,r.humanize=Lz(),r.destroy=y,Object.keys(e).forEach(S=>{r[S]=e[S]}),r.names=[],r.skips=[],r.formatters={};function n(S){let E=0;for(let C=0;C<S.length;C++)E=(E<<5)-E+S.charCodeAt(C),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=n;function r(S){let E,C=null,x,R;function T(...D){if(!T.enabled)return;const M=T,F=Number(new Date),N=F-(E||F);M.diff=N,M.prev=E,M.curr=F,E=F,D[0]=r.coerce(D[0]),typeof D[0]!="string"&&D.unshift("%O");let V=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,($,H)=>{if($==="%%")return"%";V++;const Z=r.formatters[H];if(typeof Z=="function"){const ne=D[V];$=Z.call(M,ne),D.splice(V,1),V--}return $}),r.formatArgs.call(M,D),(M.log||r.log).apply(M,D)}return T.namespace=S,T.useColors=r.useColors(),T.color=r.selectColor(S),T.extend=a,T.destroy=r.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(x!==r.namespaces&&(x=r.namespaces,R=r.enabled(S)),R),set:D=>{C=D}}),typeof r.init=="function"&&r.init(T),T}function a(S,E){const C=r(this.namespace+(typeof E>"u"?":":E)+S);return C.log=this.log,C}function s(S){r.save(S),r.namespaces=S,r.names=[],r.skips=[];let E;const C=(typeof S=="string"?S:"").split(/[\s,]+/),x=C.length;for(E=0;E<x;E++)C[E]&&(S=C[E].replace(/\*/g,".*?"),S[0]==="-"?r.skips.push(new RegExp("^"+S.slice(1)+"$")):r.names.push(new RegExp("^"+S+"$")))}function c(){const S=[...r.names.map(h),...r.skips.map(h).map(E=>"-"+E)].join(",");return r.enable(""),S}function f(S){if(S[S.length-1]==="*")return!0;let E,C;for(E=0,C=r.skips.length;E<C;E++)if(r.skips[E].test(S))return!1;for(E=0,C=r.names.length;E<C;E++)if(r.names[E].test(S))return!0;return!1}function h(S){return S.toString().substring(2,S.toString().length-2).replace(/\.\*\?$/,"*")}function v(S){return S instanceof Error?S.stack||S.message:S}function y(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var Nz=Pz;(function(e,n){n.formatArgs=a,n.save=s,n.load=c,n.useColors=r,n.storage=f(),n.destroy=(()=>{let v=!1;return()=>{v||(v=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(v){if(v[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+v[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;v.splice(1,0,y,"color: inherit");let S=0,E=0;v[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(S++,C==="%c"&&(E=S))}),v.splice(E,0,y)}n.log=console.debug||console.log||(()=>{});function s(v){try{v?n.storage.setItem("debug",v):n.storage.removeItem("debug")}catch{}}function c(){let v;try{v=n.storage.getItem("debug")}catch{}return!v&&typeof process<"u"&&"env"in process&&(v=process.env.DEBUG),v}function f(){try{return localStorage}catch{}}e.exports=Nz(n);const{formatters:h}=e.exports;h.j=function(v){try{return JSON.stringify(v)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(ox,ox.exports);var sl=ox.exports,Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.decode=Ic.encode=void 0;function Fz(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}Ic.encode=Fz;function Iz(e){let n={},r=e.split("&");for(let a=0,s=r.length;a<s;a++){let c=r[a].split("=");n[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return n}Ic.decode=Iz;var zz=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.Transport=void 0;const jz=bd,$z=wd,Uz=to,Bz=zz(sl),Vz=Ic,Hz=(0,Bz.default)("engine.io-client:transport");class qz extends Error{constructor(n,r,a){super(n),this.description=r,this.context=a,this.type="TransportError"}}class Wz extends $z.Emitter{constructor(n){super(),this.writable=!1,(0,Uz.installTimerFunctions)(this,n),this.opts=n,this.query=n.query,this.socket=n.socket}onError(n,r,a){return super.emitReserved("error",new qz(n,r,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"?this.write(n):Hz("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=(0,jz.decodePacket)(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=(0,Vz.encode)(n);return r.length?"?"+r:""}}Nc.Transport=Wz;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.yeast=ts.decode=ts.encode=void 0;const x3="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Zg=64,w3={};let C3=0,hu=0,k3;function sx(e){let n="";do n=x3[e%Zg]+n,e=Math.floor(e/Zg);while(e>0);return n}ts.encode=sx;function Yz(e){let n=0;for(hu=0;hu<e.length;hu++)n=n*Zg+w3[e.charAt(hu)];return n}ts.decode=Yz;function Zz(){const e=sx(+new Date);return e!==k3?(C3=0,k3=e):e+"."+sx(C3++)}for(ts.yeast=Zz;hu<Zg;hu++)w3[x3[hu]]=hu;var Cd={},Kg={};Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.hasCORS=void 0;let _3=!1;try{_3=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}Kg.hasCORS=_3,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.createCookieJar=Cd.XHR=void 0;const Kz=Kg,Gz=Fc;function Qz(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||Kz.hasCORS))return new XMLHttpRequest}catch{}if(!n)try{return new Gz.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Cd.XHR=Qz;function Xz(){}Cd.createCookieJar=Xz;var Jz=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yd,"__esModule",{value:!0}),yd.Request=yd.Polling=void 0;const ej=Nc,tj=Jz(sl),nj=ts,T3=bd,ux=Cd,rj=wd,R3=to,ij=Fc,sa=(0,tj.default)("engine.io-client:polling");function aj(){}const oj=function(){return new ux.XHR({xdomain:!1}).responseType!=null}();class lj extends ej.Transport{constructor(n){if(super(n),this.polling=!1,typeof location<"u"){const a=location.protocol==="https:";let s=location.port;s||(s=a?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}const r=n&&n.forceBase64;this.supportsBinary=oj&&!r,this.opts.withCredentials&&(this.cookieJar=(0,ux.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const r=()=>{sa("paused"),this.readyState="paused",n()};if(this.polling||!this.writable){let a=0;this.polling&&(sa("we are currently polling - waiting to pause"),a++,this.once("pollComplete",function(){sa("pre-pause polling complete"),--a||r()})),this.writable||(sa("we are currently writing - waiting to pause"),a++,this.once("drain",function(){sa("pre-pause writing complete"),--a||r()}))}else r()}poll(){sa("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){sa("polling got data %s",n);const r=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};(0,T3.decodePayload)(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():sa('ignoring poll - transport state "%s"',this.readyState))}doClose(){const n=()=>{sa("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(sa("transport open - closing"),n()):(sa("transport not open - deferring close"),this.once("open",n))}write(n){this.writable=!1,(0,T3.encodePayload)(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=(0,nj.yeast)()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Co(this.uri(),n)}doWrite(n,r){const a=this.request({method:"POST",data:n});a.on("success",r),a.on("error",(s,c)=>{this.onError("xhr post error",s,c)})}doPoll(){sa("xhr poll");const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,a)=>{this.onError("xhr poll error",r,a)}),this.pollXhr=n}}yd.Polling=lj;class Co extends rj.Emitter{constructor(n,r){super(),(0,R3.installTimerFunctions)(this,r),this.opts=r,this.method=r.method||"GET",this.uri=n,this.data=r.data!==void 0?r.data:null,this.create()}create(){var n;const r=(0,R3.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;const a=this.xhr=new ux.XHR(r);try{sa("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(a),"withCredentials"in a&&(a.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(a.timeout=this.opts.requestTimeout),a.onreadystatechange=()=>{var s;a.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(a)),a.readyState===4&&(a.status===200||a.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof a.status=="number"?a.status:0)},0))},sa("xhr data %s",this.data),a.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Co.requestsCount++,Co.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=aj,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Co.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(yd.Request=Co,Co.requestsCount=0,Co.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",O3);else if(typeof addEventListener=="function"){const e="onpagehide"in ij.globalThisShim?"pagehide":"unload";addEventListener(e,O3,!1)}}function O3(){for(let e in Co.requests)Co.requests.hasOwnProperty(e)&&Co.requests[e].abort()}var Gg={},Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.defaultBinaryType=Na.usingBrowserWebSocket=Na.WebSocket=Na.nextTick=void 0;const D3=Fc;Na.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Na.WebSocket=D3.globalThisShim.WebSocket||D3.globalThisShim.MozWebSocket,Na.usingBrowserWebSocket=!0,Na.defaultBinaryType="arraybuffer";var sj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.WS=void 0;const uj=Nc,cj=ts,fj=to,mu=Na,dj=sj(sl),pj=bd,hj=(0,dj.default)("engine.io-client:websocket"),A3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mj extends uj.Transport{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),r=this.opts.protocols,a=A3?{}:(0,fj.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=mu.usingBrowserWebSocket&&!A3?r?new mu.WebSocket(n,r):new mu.WebSocket(n):new mu.WebSocket(n,r,a)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;(0,pj.encodePacket)(a,this.supportsBinary,c=>{const f={};mu.usingBrowserWebSocket||(a.options&&(f.compress=a.options.compress),this.opts.perMessageDeflate&&(typeof c=="string"?Buffer.byteLength(c):c.length)<this.opts.perMessageDeflate.threshold&&(f.compress=!1));try{mu.usingBrowserWebSocket?this.ws.send(c):this.ws.send(c,f)}catch{hj("websocket closed before onclose event")}s&&(0,mu.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=(0,cj.yeast)()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}check(){return!!mu.WebSocket}}Gg.WS=mj;var Qg={},vj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.WT=void 0;const gj=Nc,yj=Na,M3=bd,fm=(0,vj(sl).default)("engine.io-client:webtransport");class bj extends gj.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{fm("transport closed gracefully"),this.onClose()}).catch(n=>{fm("transport closed due to %s",n),this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const r=(0,M3.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=n.readable.pipeThrough(r).getReader(),s=(0,M3.createPacketEncoderStream)();s.readable.pipeTo(n.writable),this.writer=s.writable.getWriter();const c=()=>{a.read().then(({done:h,value:v})=>{if(h){fm("session is closed");return}fm("received chunk: %o",v),this.onPacket(v),c()}).catch(h=>{fm("an error occurred while reading: %s",h)})};c();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;this.writer.write(a).then(()=>{s&&(0,yj.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}}Qg.WT=bj,Object.defineProperty(um,"__esModule",{value:!0}),um.transports=void 0;const Sj=yd,Ej=Gg,xj=Qg;um.transports={websocket:Ej.WS,webtransport:xj.WT,polling:Sj.Polling};var dm={};Object.defineProperty(dm,"__esModule",{value:!0}),dm.parse=void 0;const wj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function kj(e){const n=e,r=e.indexOf("["),a=e.indexOf("]");r!=-1&&a!=-1&&(e=e.substring(0,r)+e.substring(r,a).replace(/:/g,";")+e.substring(a,e.length));let s=wj.exec(e||""),c={},f=14;for(;f--;)c[Cj[f]]=s[f]||"";return r!=-1&&a!=-1&&(c.source=n,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=_j(c,c.path),c.queryKey=Tj(c,c.query),c}dm.parse=kj;function _j(e,n){const r=/\/{2,9}/g,a=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&a.splice(0,1),n.slice(-1)=="/"&&a.splice(a.length-1,1),a}function Tj(e,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,s,c){s&&(r[s]=c)}),r}var Rj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qg,"__esModule",{value:!0}),qg.Socket=void 0;const Oj=um,L3=to,Dj=Ic,P3=dm,Aj=Rj(sl),Mj=wd,N3=bd,Lj=Na,ir=(0,Aj.default)("engine.io-client:socket");let F3=class Ch extends Mj.Emitter{constructor(n,r={}){super(),this.binaryType=Lj.defaultBinaryType,this.writeBuffer=[],n&&typeof n=="object"&&(r=n,n=null),n?(n=(0,P3.parse)(n),r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=(0,P3.parse)(r.host).host),(0,L3.installTimerFunctions)(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,Dj.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){ir('creating transport "%s"',n);const r=Object.assign({},this.opts.query);r.EIO=N3.protocol,r.transport=n,this.id&&(r.sid=this.id);const a=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return ir("options: %j",a),new Oj.transports[n](a)}open(){let n;if(this.opts.rememberUpgrade&&Ch.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch(r){ir("error while creating transport: %s",r),this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){ir("setting transport %s",n.name),this.transport&&(ir("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){ir('probing transport "%s"',n);let r=this.createTransport(n),a=!1;Ch.priorWebsocketSuccess=!1;const s=()=>{a||(ir('probe transport "%s" opened',n),r.send([{type:"ping",data:"probe"}]),r.once("packet",E=>{if(!a)if(E.type==="pong"&&E.data==="probe"){if(ir('probe transport "%s" pong',n),this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ch.priorWebsocketSuccess=r.name==="websocket",ir('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{a||this.readyState!=="closed"&&(ir("changing transport and sending upgrade packet"),S(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{ir('probe transport "%s" failed',n);const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){a||(a=!0,S(),r.close(),r=null)}const f=E=>{const C=new Error("probe error: "+E);C.transport=r.name,c(),ir('probe transport "%s" failed because of error: %s',n,E),this.emitReserved("upgradeError",C)};function h(){f("transport closed")}function v(){f("socket closed")}function y(E){r&&E.name!==r.name&&(ir('"%s" works - aborting "%s"',E.name,r.name),c())}const S=()=>{r.removeListener("open",s),r.removeListener("error",f),r.removeListener("close",h),this.off("close",v),this.off("upgrading",y)};r.once("open",s),r.once("error",f),r.once("close",h),this.once("close",v),this.once("upgrading",y),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{a||r.open()},200):r.open()}onOpen(){if(ir("socket open"),this.readyState="open",Ch.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){ir("starting upgrade probes");let n=0;const r=this.upgrades.length;for(;n<r;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(ir('socket receive: type "%s", data "%s"',n.type,n.data),this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=n.data,this.onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}else ir('packet received with socket readyState "%s"',this.readyState)}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this.getWritablePackets();ir("flushing %d packets in socket",n.length),this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let a=0;a<this.writeBuffer.length;a++){const s=this.writeBuffer[a].data;if(s&&(r+=(0,L3.byteLength)(s)),a>0&&r>this.maxPayload)return ir("only send %d out of %d packets",a,this.writeBuffer.length),this.writeBuffer.slice(0,a);r+=2}return ir("payload size is %d (max: %d)",r,this.maxPayload),this.writeBuffer}write(n,r,a){return this.sendPacket("message",n,r,a),this}send(n,r,a){return this.sendPacket("message",n,r,a),this}sendPacket(n,r,a,s){if(typeof r=="function"&&(s=r,r=void 0),typeof a=="function"&&(s=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const c={type:n,data:r,options:a};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this.onClose("forced close"),ir("socket closing - telling transport to close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},a=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():n()}):this.upgrading?a():n()),this}onError(n){ir("socket error %j",n),Ch.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(ir('socket close with reason: "%s"',n),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const r=[];let a=0;const s=n.length;for(;a<s;a++)~this.transports.indexOf(n[a])&&r.push(n[a]);return r}};qg.Socket=F3,F3.protocol=N3.protocol,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const n=qg;Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return n.Socket}}),e.protocol=n.Socket.protocol;var r=Nc;Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var a=um;Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return a.transports}});var s=to;Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var c=dm;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.parse}});var f=Na;Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return f.nextTick}})}(ix);var Pj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.url=void 0;const Nj=ix,I3=Pj(sl).default("socket.io-client:url");function Fj(e,n="",r){let a=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(I3("protocol-less url %s",e),typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),I3("parse %s",e),a=Nj.parse(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const c=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+c+":"+a.port+n,a.href=a.protocol+"://"+c+(r&&r.port===a.port?"":":"+a.port),a}Hg.url=Fj;var Xg={},pm={},Jg={},kd={},zc={};Object.defineProperty(zc,"__esModule",{value:!0}),zc.hasBinary=zc.isBinary=void 0;const Ij=typeof ArrayBuffer=="function",zj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,z3=Object.prototype.toString,jj=typeof Blob=="function"||typeof Blob<"u"&&z3.call(Blob)==="[object BlobConstructor]",$j=typeof File=="function"||typeof File<"u"&&z3.call(File)==="[object FileConstructor]";function j3(e){return Ij&&(e instanceof ArrayBuffer||zj(e))||jj&&e instanceof Blob||$j&&e instanceof File}zc.isBinary=j3;function ey(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,a=e.length;r<a;r++)if(ey(e[r]))return!0;return!1}if(j3(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ey(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&ey(e[r]))return!0;return!1}zc.hasBinary=ey,Object.defineProperty(kd,"__esModule",{value:!0}),kd.reconstructPacket=kd.deconstructPacket=void 0;const Uj=zc;function Bj(e){const n=[],r=e.data,a=e;return a.data=cx(r,n),a.attachments=n.length,{packet:a,buffers:n}}kd.deconstructPacket=Bj;function cx(e,n){if(!e)return e;if((0,Uj.isBinary)(e)){const r={_placeholder:!0,num:n.length};return n.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let a=0;a<e.length;a++)r[a]=cx(e[a],n);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=cx(e[a],n));return r}return e}function Vj(e,n){return e.data=fx(e.data,n),delete e.attachments,e}kd.reconstructPacket=Vj;function fx(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=fx(e[r],n);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=fx(e[r],n));return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const n=wd,r=kd,a=zc,c=(0,sl.default)("socket.io-parser"),f=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var h;(function(C){C[C.CONNECT=0]="CONNECT",C[C.DISCONNECT=1]="DISCONNECT",C[C.EVENT=2]="EVENT",C[C.ACK=3]="ACK",C[C.CONNECT_ERROR=4]="CONNECT_ERROR",C[C.BINARY_EVENT=5]="BINARY_EVENT",C[C.BINARY_ACK=6]="BINARY_ACK"})(h=e.PacketType||(e.PacketType={}));class v{constructor(x){this.replacer=x}encode(x){return c("encoding packet %j",x),(x.type===h.EVENT||x.type===h.ACK)&&(0,a.hasBinary)(x)?this.encodeAsBinary({type:x.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:x.nsp,data:x.data,id:x.id}):[this.encodeAsString(x)]}encodeAsString(x){let R=""+x.type;return(x.type===h.BINARY_EVENT||x.type===h.BINARY_ACK)&&(R+=x.attachments+"-"),x.nsp&&x.nsp!=="/"&&(R+=x.nsp+","),x.id!=null&&(R+=x.id),x.data!=null&&(R+=JSON.stringify(x.data,this.replacer)),c("encoded %j as %s",x,R),R}encodeAsBinary(x){const R=(0,r.deconstructPacket)(x),T=this.encodeAsString(R.packet),D=R.buffers;return D.unshift(T),D}}e.Encoder=v;function y(C){return Object.prototype.toString.call(C)==="[object Object]"}class S extends n.Emitter{constructor(x){super(),this.reviver=x}add(x){let R;if(typeof x=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");R=this.decodeString(x);const T=R.type===h.BINARY_EVENT;T||R.type===h.BINARY_ACK?(R.type=T?h.EVENT:h.ACK,this.reconstructor=new E(R),R.attachments===0&&super.emitReserved("decoded",R)):super.emitReserved("decoded",R)}else if((0,a.isBinary)(x)||x.base64)if(this.reconstructor)R=this.reconstructor.takeBinaryData(x),R&&(this.reconstructor=null,super.emitReserved("decoded",R));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+x)}decodeString(x){let R=0;const T={type:Number(x.charAt(0))};if(h[T.type]===void 0)throw new Error("unknown packet type "+T.type);if(T.type===h.BINARY_EVENT||T.type===h.BINARY_ACK){const M=R+1;for(;x.charAt(++R)!=="-"&&R!=x.length;);const F=x.substring(M,R);if(F!=Number(F)||x.charAt(R)!=="-")throw new Error("Illegal attachments");T.attachments=Number(F)}if(x.charAt(R+1)==="/"){const M=R+1;for(;++R&&!(x.charAt(R)===","||R===x.length););T.nsp=x.substring(M,R)}else T.nsp="/";const D=x.charAt(R+1);if(D!==""&&Number(D)==D){const M=R+1;for(;++R;){const F=x.charAt(R);if(F==null||Number(F)!=F){--R;break}if(R===x.length)break}T.id=Number(x.substring(M,R+1))}if(x.charAt(++R)){const M=this.tryParse(x.substr(R));if(S.isPayloadValid(T.type,M))T.data=M;else throw new Error("invalid payload")}return c("decoded %s as %j",x,T),T}tryParse(x){try{return JSON.parse(x,this.reviver)}catch{return!1}}static isPayloadValid(x,R){switch(x){case h.CONNECT:return y(R);case h.DISCONNECT:return R===void 0;case h.CONNECT_ERROR:return typeof R=="string"||y(R);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(R)&&(typeof R[0]=="number"||typeof R[0]=="string"&&f.indexOf(R[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(R)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=S;class E{constructor(x){this.packet=x,this.buffers=[],this.reconPack=x}takeBinaryData(x){if(this.buffers.push(x),this.buffers.length===this.reconPack.attachments){const R=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),R}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(Jg);var hm={};Object.defineProperty(hm,"__esModule",{value:!0}),hm.on=void 0;function Hj(e,n,r){return e.on(n,r),function(){e.off(n,r)}}hm.on=Hj;var qj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pm,"__esModule",{value:!0}),pm.Socket=void 0;const ko=Jg,ty=hm,Wj=wd,$r=qj(sl).default("socket.io-client:socket"),Yj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zj extends Wj.Emitter{constructor(n,r,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=r,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[ty.on(n,"open",this.onopen.bind(this)),ty.on(n,"packet",this.onpacket.bind(this)),ty.on(n,"error",this.onerror.bind(this)),ty.on(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){if(Yj.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const a={type:ko.PacketType.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++;$r("emitting packet with ack id %d",f);const h=r.pop();this._registerAckCallback(f,h),a.id=f}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)?$r("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a),this.flags={},this}_registerAckCallback(n,r){var a;const s=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===n&&($r("removing packet with ack id %d from the buffer",n),this.sendBuffer.splice(f,1));$r("event with ack id %d has timed out after %d ms",n,s),r.call(this,new Error("operation has timed out"))},s);this.acks[n]=(...f)=>{this.io.clearTimeoutFn(c),r.apply(this,[null,...f])}}emitWithAck(n,...r){const a=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,c)=>{r.push((f,h)=>a?f?c(f):s(h):s(f)),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...c)=>a!==this._queue[0]?void 0:(s!==null?a.tryCount>this._opts.retries&&($r("packet [%d] is discarded after %d tries",a.id,a.tryCount),this._queue.shift(),r&&r(s)):($r("packet [%d] was successfully sent",a.id),this._queue.shift(),r&&r(null,...c)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(n=!1){if($r("draining queue"),!this.connected||this._queue.length===0)return;const r=this._queue[0];if(r.pending&&!n){$r("packet [%d] has already been sent and is waiting for an ack",r.id);return}r.pending=!0,r.tryCount++,$r("sending packet [%d] (try n°%d)",r.id,r.tryCount),this.flags=r.flags,this.emit.apply(this,r.args)}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){$r("transport is open - connecting"),typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:ko.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){$r("close (%s)",n),this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r)}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case ko.PacketType.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ko.PacketType.EVENT:case ko.PacketType.BINARY_EVENT:this.onevent(n);break;case ko.PacketType.ACK:case ko.PacketType.BINARY_ACK:this.onack(n);break;case ko.PacketType.DISCONNECT:this.ondisconnect();break;case ko.PacketType.CONNECT_ERROR:this.destroy();const a=new Error(n.data.message);a.data=n.data.data,this.emitReserved("connect_error",a);break}}onevent(n){const r=n.data||[];$r("emitting event %j",r),n.id!=null&&($r("attaching ack callback to event"),r.push(this.ack(n.id))),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const a of r)a.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let a=!1;return function(...s){a||(a=!0,$r("sending ack %j",s),r.packet({type:ko.PacketType.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"?($r("calling ack %s with %j",n.id,n.data),r.apply(this,n.data),delete this.acks[n.id]):$r("bad ack %s",n.id)}onconnect(n,r){$r("socket connected with id %s",n),this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){$r("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&($r("performing disconnect (%s)",this.nsp),this.packet({type:ko.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const a of r)a.apply(this,n.data)}}}pm.Socket=Zj;var ny={};Object.defineProperty(ny,"__esModule",{value:!0}),ny.Backoff=void 0;function _d(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ny.Backoff=_d,_d.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+r:e-r}return Math.min(e,this.max)|0},_d.prototype.reset=function(){this.attempts=0},_d.prototype.setMin=function(e){this.ms=e},_d.prototype.setMax=function(e){this.max=e},_d.prototype.setJitter=function(e){this.jitter=e};var Kj=Ht&&Ht.__createBinding||(Object.create?function(e,n,r,a){a===void 0&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return n[r]}})}:function(e,n,r,a){a===void 0&&(a=r),e[a]=n[r]}),Gj=Ht&&Ht.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),Qj=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Kj(n,e,r);return Gj(n,e),n},Xj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.Manager=void 0;const dx=ix,Jj=pm,e$=Qj(Jg),jc=hm,t$=ny,n$=wd,ui=Xj(sl).default("socket.io-client:manager");class r$ extends n$.Emitter{constructor(n,r){var a;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,dx.installTimerFunctions(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((a=r.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new t$.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||e$;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(ui("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;ui("opening %s",this.uri),this.engine=new dx.Socket(this.uri,this.opts);const r=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const s=jc.on(r,"open",function(){a.onopen(),n&&n()}),c=h=>{ui("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=jc.on(r,"error",c);if(this._timeout!==!1){const h=this._timeout;ui("connect attempt will timeout after %d",h);const v=this.setTimeoutFn(()=>{ui("connect attempt timed out after %d",h),s(),c(new Error("timeout")),r.close()},h);this.opts.autoUnref&&v.unref(),this.subs.push(()=>{this.clearTimeoutFn(v)})}return this.subs.push(s),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){ui("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(jc.on(n,"ping",this.onping.bind(this)),jc.on(n,"data",this.ondata.bind(this)),jc.on(n,"error",this.onerror.bind(this)),jc.on(n,"close",this.onclose.bind(this)),jc.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){dx.nextTick(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){ui("error",n),this.emitReserved("error",n)}socket(n,r){let a=this.nsps[n];return a?this._autoConnect&&!a.active&&a.connect():(a=new Jj.Socket(this,n,r),this.nsps[n]=a),a}_destroy(n){const r=Object.keys(this.nsps);for(const a of r)if(this.nsps[a].active){ui("socket %s is still active, skipping close",a);return}this._close()}_packet(n){ui("writing packet %j",n);const r=this.encoder.encode(n);for(let a=0;a<r.length;a++)this.engine.write(r[a],n.options)}cleanup(){ui("cleanup"),this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){ui("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(n,r){ui("closed due to %s",n),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)ui("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();ui("will wait %dms before reconnect attempt",r),this._reconnecting=!0;const a=this.setTimeoutFn(()=>{n.skipReconnect||(ui("attempting reconnect"),this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(ui("reconnect attempt error"),n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):(ui("reconnect success"),n.onreconnect())}))},r);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}Xg.Manager=r$,function(e,n){var r=Ht&&Ht.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.connect=n.io=n.Socket=n.Manager=n.protocol=void 0;const a=Hg,s=Xg;Object.defineProperty(n,"Manager",{enumerable:!0,get:function(){return s.Manager}});const c=pm;Object.defineProperty(n,"Socket",{enumerable:!0,get:function(){return c.Socket}});const h=r(sl).default("socket.io-client"),v={};function y(E,C){typeof E=="object"&&(C=E,E=void 0),C=C||{};const x=a.url(E,C.path||"/socket.io"),R=x.source,T=x.id,D=x.path,M=v[T]&&D in v[T].nsps,F=C.forceNew||C["force new connection"]||C.multiplex===!1||M;let N;return F?(h("ignoring socket cache for %s",R),N=new s.Manager(R,C)):(v[T]||(h("new io instance for %s",R),v[T]=new s.Manager(R,C)),N=v[T]),x.query&&!C.query&&(C.query=x.queryKey),N.socket(x.path,C)}n.io=y,n.connect=y,n.default=y,Object.assign(y,{Manager:s.Manager,Socket:c.Socket,io:y,connect:y});var S=Jg;Object.defineProperty(n,"protocol",{enumerable:!0,get:function(){return S.protocol}}),e.exports=y}(rx,rx.exports);var i$=rx.exports;(function(e){var n=Ht&&Ht.__awaiter||function(v,y,S,E){function C(x){return x instanceof S?x:new S(function(R){R(x)})}return new(S||(S=Promise))(function(x,R){function T(F){try{M(E.next(F))}catch(N){R(N)}}function D(F){try{M(E.throw(F))}catch(N){R(N)}}function M(F){F.done?x(F.value):C(F.value).then(T,D)}M((E=E.apply(v,y||[])).next())})},r=Ht&&Ht.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketComEmitter=e.SocketComEvents=e.SocketCom=void 0;const a=nx,s=r(i$);class c{constructor(y){this.url=y,this.pending={},this.emitter=new h,this.events=this.emitter}connect(y){return n(this,void 0,void 0,function*(){return new Promise((S,E)=>{this.disconnect(),this.socket=(0,s.default)(this.url,{transports:["websocket"],auth:y,autoConnect:!1});const C=setTimeout(()=>{E("connection timed out")},5e3);this.socket.on("login",x=>n(this,void 0,void 0,function*(){clearTimeout(C),S(x)})),this.socket.on("connect_error",x=>{var R;(R=this.socket)===null||R===void 0||R.close(),clearTimeout(C),E(x.message)}),this.socket.on("message",x=>n(this,void 0,void 0,function*(){var R;this.pending[x.request]&&(!((R=x.data)===null||R===void 0)&&R.error?this.pending[x.request].reject(new Error(x.data.message)):this.pending[x.request].resolve(x.data),delete this.pending[x.request]),yield this.emitter.emit(f.Message,x)})),this.socket.connect()})})}disconnect(){var y;this.socket&&!(!((y=this.socket)===null||y===void 0)&&y.disconnected)&&this.socket.disconnect()}request(y,S){var E;return n(this,void 0,void 0,function*(){if(!(!((E=this.socket)===null||E===void 0)&&E.connected))throw new Error("Client is disconnected");const C=this.random(32),x=new Promise((R,T)=>{this.pending[C]={resolve:R,reject:T}});return this.socket.send({request:C,type:y,data:S}),x})}random(y){const S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let E="";for(let C=0;C<y;C++)E+=S.charAt(Math.floor(Math.random()*S.length));return E}}e.SocketCom=c;var f;(function(v){v.Message="message"})(f=e.SocketComEvents||(e.SocketComEvents={}));class h extends a.Emitter{}e.SocketComEmitter=h})(d3);var ry={},a$=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(ry,"__esModule",{value:!0}),ry.SocketEmitter=void 0;class o${constructor(){this.listeners={}}on(n,r){const a=this.listeners[n];a?a.push(r):this.listeners[n]=[r]}removeListeners(n){this.listeners[n]=[]}emit(n,r){return a$(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}}ry.SocketEmitter=o$;var ua=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.MessagingSocket=void 0;const $3=d3,l$=ry;class s$ extends l$.SocketEmitter{constructor(n){super(),this.clientId=n.clientId,this.com=new $3.SocketCom(n.url),this.com.events.on($3.SocketComEvents.Message,r=>ua(this,void 0,void 0,function*(){r.type==="message.new"&&(yield this.emit("message",r.data.message))}))}get creds(){return this._creds}get userId(){var n;return(n=this._creds)===null||n===void 0?void 0:n.userId}get conversationId(){return this._conversationId}connect(n){return ua(this,void 0,void 0,function*(){const r=yield this.com.connect({clientId:this.clientId,creds:n});return r.userId===(n==null?void 0:n.userId)&&!r.userToken&&(r.userToken=n.userToken),this._creds=r,yield this.emit("connect",this._creds),yield this.emit("user",this._creds.userId),r})}disconnect(){return ua(this,void 0,void 0,function*(){this.com.disconnect(),yield this.emit("disconnect",void 0)})}getUser(){return ua(this,void 0,void 0,function*(){return this.request("users.get",{})})}switchConversation(n){return ua(this,void 0,void 0,function*(){this._conversationId=n,yield this.emit("conversation",this._conversationId)})}createConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.create",{});return(n==null?void 0:n.switch)!==!1&&(yield this.switchConversation(r.id)),r})}startConversation(n){return ua(this,void 0,void 0,function*(){yield this.request("conversations.start",{id:n||this._conversationId})})}getConversation(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.get",{id:n||this._conversationId})})}deleteConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.delete",{id:n||this._conversationId});return r&&(yield this.switchConversation(void 0)),r})}listConversations(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.list",{limit:n||20})})}sendText(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:{type:"text",text:n}})})}sendPayload(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:n})})}listMessages(n){return ua(this,void 0,void 0,function*(){return this.request("messages.list",{conversationId:this._conversationId,limit:n||20})})}sendFeedback(n,r){return ua(this,void 0,void 0,function*(){yield this.request("messages.feedback",{messageId:n,feedback:r})})}request(n,r){return this.com.request(n,r)}}Vg.MessagingSocket=s$,function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(nx,e),r(Vg,e)}(pz);const u$=({styles:e={},renderers:n,client:r,children:a,configuration:s,...c})=>{const[f,h]=j.useState([]),[v,y]=j.useState({disableComposer:!1}),[S,E]=j.useState(s),[C,x]=j.useState(e),R=cd(N=>N.addMessageToHistory),T=cd(N=>N.setConversationId),D=cd(N=>N.user),M=cd(N=>N.setUser),F={...c,value:{theme:C,renderers:{...FE,...n},messages:f,eventEmitter:JF,configuration:s,setConfiguration:E,state:v,setState:N=>y({...v,...N}),setTheme:x,client:{sendMessage:async N=>{await r.sendMessage(N),h(V=>[...V,{direction:"outgoing",sender:{name:"You"},timestamp:new Date,block:{type:"bubble",block:{type:"text",text:N}}}]),r.userId&&R({message:N,userId:r.userId})},on:r.on,restartConversation:async()=>{await r.newConversation(),h([])}}}};return fd(()=>r.on("message",N=>{try{const V=dz.parse(N.payload);h(I=>[...I,{direction:"incoming",sender:{name:"Bot",avatar:S.botAvatar},timestamp:N.sentOn,block:V}])}catch{console.error("Invalid message payload")}})),fd(()=>r.on("conversation",N=>{T(N)})),L5(async()=>{const N=await r.connect(D);return M(N),()=>{r.disconnect()}},[]),he.jsx(iT.Provider,{...F,children:typeof a=="function"?a(S):a})},U3=j.forwardRef(({children:e,...n},r)=>{const{theme:{container:a}}=cr();return he.jsxs("div",{...n,...a,ref:r,children:[he.jsx(RL,{}),he.jsx(I5,{children:e})]})});function ns(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function B3({prop:e,defaultProp:n,onChange:r=()=>{}}){const[a,s]=c$({defaultProp:n,onChange:r}),c=e!==void 0,f=c?e:a,h=Gs(r),v=j.useCallback(y=>{if(c){const E=typeof y=="function"?y(e):y;E!==e&&h(E)}else s(y)},[c,e,s,h]);return[f,v]}function c$({defaultProp:e,onChange:n}){const r=j.useState(e),[a]=r,s=j.useRef(a),c=Gs(n);return j.useEffect(()=>{s.current!==a&&(c(a),s.current=a)},[a,s,c]),r}function f$(e,n){return j.useReducer((r,a)=>{const s=n[r][a];return s??r},e)}const iy=e=>{const{present:n,children:r}=e,a=d$(n),s=typeof r=="function"?r({present:a.isPresent}):j.Children.only(r),c=Sc(a.ref,s.ref);return typeof r=="function"||a.isPresent?j.cloneElement(s,{ref:c}):null};iy.displayName="Presence";function d$(e){const[n,r]=j.useState(),a=j.useRef({}),s=j.useRef(e),c=j.useRef("none"),f=e?"mounted":"unmounted",[h,v]=f$(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const y=ay(a.current);c.current=h==="mounted"?y:"none"},[h]),Th(()=>{const y=a.current,S=s.current;if(S!==e){const C=c.current,x=ay(y);e?v("MOUNT"):x==="none"||(y==null?void 0:y.display)==="none"?v("UNMOUNT"):v(S&&C!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,v]),Th(()=>{if(n){const y=E=>{const x=ay(a.current).includes(E.animationName);E.target===n&&x&&L0.flushSync(()=>v("ANIMATION_END"))},S=E=>{E.target===n&&(c.current=ay(a.current))};return n.addEventListener("animationstart",S),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{n.removeEventListener("animationstart",S),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[n,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:j.useCallback(y=>{y&&(a.current=getComputedStyle(y)),r(y)},[])}}function ay(e){return(e==null?void 0:e.animationName)||"none"}const p$=Y["useId".toString()]||(()=>{});let h$=0;function oy(e){const[n,r]=Y.useState(p$());return Th(()=>{e||r(a=>a??String(h$++))},[e]),e||(n?`radix-${n}`:"")}const V3="Collapsible",[m$,OZ]=hS(V3),[v$,px]=m$(V3),g$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,open:a,defaultOpen:s,disabled:c,onOpenChange:f,...h}=e,[v=!1,y]=B3({prop:a,defaultProp:s,onChange:f});return j.createElement(v$,{scope:r,disabled:c,contentId:oy(),open:v,onOpenToggle:j.useCallback(()=>y(S=>!S),[y])},j.createElement(Ka.div,Xn({"data-state":hx(v),"data-disabled":c?"":void 0},h,{ref:n})))}),y$="CollapsibleTrigger",b$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,...a}=e,s=px(y$,r);return j.createElement(Ka.button,Xn({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":hx(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},a,{ref:n,onClick:ns(e.onClick,s.onOpenToggle)}))}),H3="CollapsibleContent",S$=j.forwardRef((e,n)=>{const{forceMount:r,...a}=e,s=px(H3,e.__scopeCollapsible);return j.createElement(iy,{present:r||s.open},({present:c})=>j.createElement(E$,Xn({},a,{ref:n,present:c})))}),E$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:a,children:s,...c}=e,f=px(H3,r),[h,v]=j.useState(a),y=j.useRef(null),S=Sc(n,y),E=j.useRef(0),C=E.current,x=j.useRef(0),R=x.current,T=f.open||h,D=j.useRef(T),M=j.useRef();return j.useEffect(()=>{const F=requestAnimationFrame(()=>D.current=!1);return()=>cancelAnimationFrame(F)},[]),Th(()=>{const F=y.current;if(F){M.current=M.current||{transitionDuration:F.style.transitionDuration,animationName:F.style.animationName},F.style.transitionDuration="0s",F.style.animationName="none";const N=F.getBoundingClientRect();E.current=N.height,x.current=N.width,D.current||(F.style.transitionDuration=M.current.transitionDuration,F.style.animationName=M.current.animationName),v(a)}},[f.open,a]),j.createElement(Ka.div,Xn({"data-state":hx(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!T},c,{ref:S,style:{["--radix-collapsible-content-height"]:C?`${C}px`:void 0,["--radix-collapsible-content-width"]:R?`${R}px`:void 0,...e.style}}),T&&s)});function hx(e){return e?"open":"closed"}const x$=g$,w$=b$,C$=S$,k$=e=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e},Y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667"})),_$=j.memo(j.forwardRef((e,n)=>{const{theme:{header:r}}=cr(),[a,s]=j.useState(!1);return he.jsx(x$,{...e,...r==null?void 0:r.container,open:a,onOpenChange:s,ref:n})})),T$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(w$,{...e,...(a=r==null?void 0:r.content)==null?void 0:a.container,ref:n})}),R$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(C$,{...e,...(a=r==null?void 0:r.expandedContent)==null?void 0:a.container,ref:n})}),O$=j.forwardRef(({src:e,children:n},r)=>{var s,c,f,h,v,y;const{theme:{header:a}}=cr();return he.jsxs(P0,{ref:r,...(c=(s=a==null?void 0:a.content)==null?void 0:s.avatar)==null?void 0:c.container,children:[he.jsx(N0,{...(h=(f=a==null?void 0:a.content)==null?void 0:f.avatar)==null?void 0:h.image,src:e}),he.jsx(F0,{...(y=(v=a==null?void 0:a.content)==null?void 0:v.avatar)==null?void 0:y.fallback,children:n})]})}),D$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("h2",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.title,ref:n})}),A$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("p",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.description,ref:n})}),M$=j.forwardRef((e,n)=>{var a,s;const{theme:{header:r}}=cr();return he.jsx("div",{...e,...(s=(a=r==null?void 0:r.content)==null?void 0:a.actions)==null?void 0:s.container,ref:n})}),Fa=Object.assign(_$,{Content:T$,ExpandedContent:R$,Avatar:O$,Description:A$,Title:D$,Actions:M$,DescriptionItem:({icon:e,title:n,link:r,...a})=>{var h,v,y,S,E,C,x,R,T,D,M,F;const{theme:{header:s}}=cr(),c=e??k$,f=N=>{N&&I7(N)};return!r&&!n?null:r?he.jsxs("a",{...a,...(v=(h=s==null?void 0:s.expandedContent)==null?void 0:h.descriptionItems)==null?void 0:v.container,href:r,target:"_blank",rel:"noopener",children:[he.jsx(c,{...(S=(y=s==null?void 0:s.expandedContent)==null?void 0:y.descriptionItems)==null?void 0:S.icon}),he.jsx("p",{...(C=(E=s==null?void 0:s.expandedContent)==null?void 0:E.descriptionItems)==null?void 0:C.link,children:n})]}):he.jsxs("div",{...a,...(R=(x=s==null?void 0:s.expandedContent)==null?void 0:x.descriptionItems)==null?void 0:R.container,onClick:N=>{f(N.currentTarget.textContent)},children:[he.jsx(c,{...(D=(T=s==null?void 0:s.expandedContent)==null?void 0:T.descriptionItems)==null?void 0:D.icon}),he.jsx("p",{...(F=(M=s==null?void 0:s.expandedContent)==null?void 0:M.descriptionItems)==null?void 0:F.text,children:n})]})}}),q3=j.memo(({...e})=>{const{theme:{loadingIndicator:n}}=cr();return he.jsx("div",{...e,...n==null?void 0:n.container,children:he.jsx("div",{...n==null?void 0:n.loader})})}),mx=j.forwardRef(({direction:e,block:n,scroll:r,disableInput:a,children:s,sender:c,...f},h)=>{var x,R,T;const[v,y]=j.useState([]),{theme:{message:S},configuration:{botAvatar:E,botName:C}}=cr();return vF(()=>{r()}),j.useEffect(()=>{v.length===0&&r()},[v.length]),he.jsx(nT.Provider,{value:{isLoading:v,setIsLoading:y},children:he.jsxs("div",{...f,...S==null?void 0:S.container,"data-loaded":v.length===0,"data-disable-input":!!a,"data-direction":e,ref:h,children:[he.jsxs(P0,{...(x=S==null?void 0:S.avatar)==null?void 0:x.container,children:[he.jsx(N0,{...(R=S==null?void 0:S.avatar)==null?void 0:R.image,src:(c==null?void 0:c.avatar)??E}),he.jsx(F0,{...(T=S==null?void 0:S.avatar)==null?void 0:T.fallback,children:(c==null?void 0:c.name[0])??(C==null?void 0:C[0])})]}),n&&he.jsx(ud,{block:n,styles:S==null?void 0:S.blocks}),s]})})}),W3=1e4,Y3=j.memo(({...e})=>{const{theme:{messageList:n}}=cr(),{messages:r,setState:a,client:s}=cr(),[c,f]=j.useState(!0),h=j.useRef(null),{y:v}=xF(h),[y,S]=j.useState(!1),[E,C]=CF(),x=()=>{if(!h.current)return;const{scrollHeight:R}=h.current;c&&h.current.scrollTo({top:R})};return j.useEffect(()=>{const R=new Date(Date.now()-W3+2e3);r.length>0&&r[r.length-1].timestamp<R&&S(!1)},[E]),fd(()=>s.on("messageSent",()=>{S(!0),C(new Date(Date.now()+W3))})),fd(()=>s.on("message",()=>{S(!1)})),j.useEffect(()=>{const R=r[r.length-1];a({disableComposer:!!(R!=null&&R.disableInput)})},[r.length]),j.useEffect(()=>{if(!h.current)return;const{offsetHeight:R,scrollHeight:T,scrollTop:D}=h.current;f(T<=D+R+100)},[v]),he.jsxs("ul",{...e,...n,ref:h,children:[r.map((R,T)=>he.jsx(mx,{scroll:x,...R},T)),y&&he.jsx(mx,{scroll:x,direction:"incoming",children:he.jsx(q3,{})})]})});function L$(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e);j.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",a),()=>n.removeEventListener("keydown",a)},[r,n])}const vx="dismissableLayer.update",P$="dismissableLayer.pointerDownOutside",N$="dismissableLayer.focusOutside";let Z3;const F$=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I$=j.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,...y}=e,S=j.useContext(F$),[E,C]=j.useState(null),x=(r=E==null?void 0:E.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,R]=j.useState({}),T=Sc(n,Z=>C(Z)),D=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),F=D.indexOf(M),N=E?D.indexOf(E):-1,V=S.layersWithOutsidePointerEventsDisabled.size>0,I=N>=F,$=z$(Z=>{const ne=Z.target,ve=[...S.branches].some(ee=>ee.contains(ne));!I||ve||(c==null||c(Z),h==null||h(Z),Z.defaultPrevented||v==null||v())},x),H=j$(Z=>{const ne=Z.target;[...S.branches].some(ee=>ee.contains(ne))||(f==null||f(Z),h==null||h(Z),Z.defaultPrevented||v==null||v())},x);return L$(Z=>{N===S.layers.size-1&&(s==null||s(Z),!Z.defaultPrevented&&v&&(Z.preventDefault(),v()))},x),j.useEffect(()=>{if(E)return a&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(Z3=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(E)),S.layers.add(E),K3(),()=>{a&&S.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Z3)}},[E,x,a,S]),j.useEffect(()=>()=>{E&&(S.layers.delete(E),S.layersWithOutsidePointerEventsDisabled.delete(E),K3())},[E,S]),j.useEffect(()=>{const Z=()=>R({});return document.addEventListener(vx,Z),()=>document.removeEventListener(vx,Z)},[]),j.createElement(Ka.div,Xn({},y,{ref:T,style:{pointerEvents:V?I?"auto":"none":void 0,...e.style},onFocusCapture:ns(e.onFocusCapture,H.onFocusCapture),onBlurCapture:ns(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:ns(e.onPointerDownCapture,$.onPointerDownCapture)}))});function z$(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e),a=j.useRef(!1),s=j.useRef(()=>{});return j.useEffect(()=>{const c=h=>{if(h.target&&!a.current){let y=function(){G3(P$,r,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=y,n.addEventListener("click",s.current,{once:!0})):y()}a.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}function j$(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e),a=j.useRef(!1);return j.useEffect(()=>{const s=c=>{c.target&&!a.current&&G3(N$,r,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function K3(){const e=new CustomEvent(vx);document.dispatchEvent(e)}function G3(e,n,r,{discrete:a}){const s=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),a?h6(s,c):s.dispatchEvent(c)}const gx="focusScope.autoFocusOnMount",yx="focusScope.autoFocusOnUnmount",Q3={bubbles:!1,cancelable:!0},$$=j.forwardRef((e,n)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=e,[h,v]=j.useState(null),y=Gs(s),S=Gs(c),E=j.useRef(null),C=Sc(n,T=>v(T)),x=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(a){let T=function(N){if(x.paused||!h)return;const V=N.target;h.contains(V)?E.current=V:vu(E.current,{select:!0})},D=function(N){if(x.paused||!h)return;const V=N.relatedTarget;V!==null&&(h.contains(V)||vu(E.current,{select:!0}))},M=function(N){const V=document.activeElement;for(const I of N)I.removedNodes.length>0&&(h!=null&&h.contains(V)||vu(h))};document.addEventListener("focusin",T),document.addEventListener("focusout",D);const F=new MutationObserver(M);return h&&F.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",D),F.disconnect()}}},[a,h,x.paused]),j.useEffect(()=>{if(h){eR.add(x);const T=document.activeElement;if(!h.contains(T)){const M=new CustomEvent(gx,Q3);h.addEventListener(gx,y),h.dispatchEvent(M),M.defaultPrevented||(U$(W$(X3(h)),{select:!0}),document.activeElement===T&&vu(h))}return()=>{h.removeEventListener(gx,y),setTimeout(()=>{const M=new CustomEvent(yx,Q3);h.addEventListener(yx,S),h.dispatchEvent(M),M.defaultPrevented||vu(T??document.body,{select:!0}),h.removeEventListener(yx,S),eR.remove(x)},0)}}},[h,y,S,x]);const R=j.useCallback(T=>{if(!r&&!a||x.paused)return;const D=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,M=document.activeElement;if(D&&M){const F=T.currentTarget,[N,V]=B$(F);N&&V?!T.shiftKey&&M===V?(T.preventDefault(),r&&vu(N,{select:!0})):T.shiftKey&&M===N&&(T.preventDefault(),r&&vu(V,{select:!0})):M===F&&T.preventDefault()}},[r,a,x.paused]);return j.createElement(Ka.div,Xn({tabIndex:-1},f,{ref:C,onKeyDown:R}))});function U$(e,{select:n=!1}={}){const r=document.activeElement;for(const a of e)if(vu(a,{select:n}),document.activeElement!==r)return}function B$(e){const n=X3(e),r=J3(n,e),a=J3(n.reverse(),e);return[r,a]}function X3(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function J3(e,n){for(const r of e)if(!V$(r,{upTo:n}))return r}function V$(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H$(e){return e instanceof HTMLInputElement&&"select"in e}function vu(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&H$(e)&&n&&e.select()}}const eR=q$();function q$(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=tR(e,n),e.unshift(n)},remove(n){var r;e=tR(e,n),(r=e[0])===null||r===void 0||r.resume()}}}function tR(e,n){const r=[...e],a=r.indexOf(n);return a!==-1&&r.splice(a,1),r}function W$(e){return e.filter(n=>n.tagName!=="A")}let bx=0;function Y$(){j.useEffect(()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:nR()),document.body.insertAdjacentElement("beforeend",(n=r[1])!==null&&n!==void 0?n:nR()),bx++,()=>{bx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),bx--}},[])}function nR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ly="right-scroll-bar-position",sy="width-before-scroll-bar",Z$="with-scroll-bars-hidden",K$="--removed-body-scroll-bar-size";function G$(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function Q$(e,n){var r=j.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=n,r.facade}function X$(e,n){return Q$(n||null,function(r){return e.forEach(function(a){return G$(a,r)})})}function J$(e){return e}function eU(e,n){n===void 0&&(n=J$);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var f=n(c,a);return r.push(f),function(){r=r.filter(function(h){return h!==f})}},assignSyncMedium:function(c){for(a=!0;r.length;){var f=r;r=[],f.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){a=!0;var f=[];if(r.length){var h=r;r=[],h.forEach(c),f=r}var v=function(){var S=f;f=[],S.forEach(c)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){f.push(S),y()},filter:function(S){return f=f.filter(S),r}}}};return s}function tU(e){e===void 0&&(e={});var n=eU(null);return n.options=eo({async:!0,ssr:!1},e),n}var rR=function(e){var n=e.sideCar,r=M5(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=n.read();if(!a)throw new Error("Sidecar medium not found");return Y.createElement(a,eo({},r))};rR.isSideCarExport=!0;function nU(e,n){return e.useMedium(n),rR}var iR=tU(),Sx=function(){},uy=Y.forwardRef(function(e,n){var r=Y.useRef(null),a=Y.useState({onScrollCapture:Sx,onWheelCapture:Sx,onTouchMoveCapture:Sx}),s=a[0],c=a[1],f=e.forwardProps,h=e.children,v=e.className,y=e.removeScrollBar,S=e.enabled,E=e.shards,C=e.sideCar,x=e.noIsolation,R=e.inert,T=e.allowPinchZoom,D=e.as,M=D===void 0?"div":D,F=M5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),N=C,V=X$([r,n]),I=eo(eo({},F),s);return Y.createElement(Y.Fragment,null,S&&Y.createElement(N,{sideCar:iR,removeScrollBar:y,shards:E,noIsolation:x,inert:R,setCallbacks:c,allowPinchZoom:!!T,lockRef:r}),f?Y.cloneElement(Y.Children.only(h),eo(eo({},I),{ref:V})):Y.createElement(M,eo({},I,{className:v,ref:V}),h))});uy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},uy.classNames={fullWidth:sy,zeroRight:ly};var aR,rU=function(){if(aR)return aR;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=rU();return n&&e.setAttribute("nonce",n),e}function aU(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function oU(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var lU=function(){var e=0,n=null;return{add:function(r){e==0&&(n=iU())&&(aU(n,r),oU(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},sU=function(){var e=lU();return function(n,r){Y.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},oR=function(){var e=sU(),n=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return n},uU={left:0,top:0,right:0,gap:0},Ex=function(e){return parseInt(e||"",10)||0},cU=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],a=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[Ex(r),Ex(a),Ex(s)]},fU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uU;var n=cU(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-r+n[2]-n[0])}},dU=oR(),pU=function(e,n,r,a){var s=e.left,c=e.top,f=e.right,h=e.gap;return r===void 0&&(r="margin"),`
663
+ .`.concat(Z$,` {
664
+ overflow: hidden `).concat(a,`;
665
+ padding-right: `).concat(h,"px ").concat(a,`;
666
+ }
667
+ body {
668
+ overflow: hidden `).concat(a,`;
669
+ overscroll-behavior: contain;
670
+ `).concat([n&&"position: relative ".concat(a,";"),r==="margin"&&`
671
+ padding-left: `.concat(s,`px;
672
+ padding-top: `).concat(c,`px;
673
+ padding-right: `).concat(f,`px;
674
+ margin-left:0;
675
+ margin-top:0;
676
+ margin-right: `).concat(h,"px ").concat(a,`;
677
+ `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";")].filter(Boolean).join(""),`
678
+ }
679
+
680
+ .`).concat(ly,` {
681
+ right: `).concat(h,"px ").concat(a,`;
682
+ }
683
+
684
+ .`).concat(sy,` {
685
+ margin-right: `).concat(h,"px ").concat(a,`;
686
+ }
687
+
688
+ .`).concat(ly," .").concat(ly,` {
689
+ right: 0 `).concat(a,`;
690
+ }
691
+
692
+ .`).concat(sy," .").concat(sy,` {
693
+ margin-right: 0 `).concat(a,`;
694
+ }
695
+
696
+ body {
697
+ `).concat(K$,": ").concat(h,`px;
698
+ }
699
+ `)},hU=function(e){var n=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a,c=Y.useMemo(function(){return fU(s)},[s]);return Y.createElement(dU,{styles:pU(c,!n,s,r?"":"!important")})},xx=!1;if(typeof window<"u")try{var cy=Object.defineProperty({},"passive",{get:function(){return xx=!0,!0}});window.addEventListener("test",cy,cy),window.removeEventListener("test",cy,cy)}catch{xx=!1}var Td=xx?{passive:!1}:!1,mU=function(e){return e.tagName==="TEXTAREA"},lR=function(e,n){var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!mU(e)&&r[n]==="visible")},vU=function(e){return lR(e,"overflowY")},gU=function(e){return lR(e,"overflowX")},sR=function(e,n){var r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=uR(e,r);if(a){var s=cR(e,r),c=s[1],f=s[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},yU=function(e){var n=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[n,r,a]},bU=function(e){var n=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[n,r,a]},uR=function(e,n){return e==="v"?vU(n):gU(n)},cR=function(e,n){return e==="v"?yU(n):bU(n)},SU=function(e,n){return e==="h"&&n==="rtl"?-1:1},EU=function(e,n,r,a,s){var c=SU(e,window.getComputedStyle(n).direction),f=c*a,h=r.target,v=n.contains(h),y=!1,S=f>0,E=0,C=0;do{var x=cR(e,h),R=x[0],T=x[1],D=x[2],M=T-D-c*R;(R||M)&&uR(e,h)&&(E+=M,C+=R),h=h.parentNode}while(!v&&h!==document.body||v&&(n.contains(h)||n===h));return(S&&(s&&E===0||!s&&f>E)||!S&&(s&&C===0||!s&&-f>C))&&(y=!0),y},fy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fR=function(e){return[e.deltaX,e.deltaY]},dR=function(e){return e&&"current"in e?e.current:e},xU=function(e,n){return e[0]===n[0]&&e[1]===n[1]},wU=function(e){return`
700
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
701
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
702
+ `)},CU=0,Rd=[];function kU(e){var n=Y.useRef([]),r=Y.useRef([0,0]),a=Y.useRef(),s=Y.useState(CU++)[0],c=Y.useState(function(){return oR()})[0],f=Y.useRef(e);Y.useEffect(function(){f.current=e},[e]),Y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var T=uF([e.lockRef.current],(e.shards||[]).map(dR),!0).filter(Boolean);return T.forEach(function(D){return D.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=Y.useCallback(function(T,D){if("touches"in T&&T.touches.length===2)return!f.current.allowPinchZoom;var M=fy(T),F=r.current,N="deltaX"in T?T.deltaX:F[0]-M[0],V="deltaY"in T?T.deltaY:F[1]-M[1],I,$=T.target,H=Math.abs(N)>Math.abs(V)?"h":"v";if("touches"in T&&H==="h"&&$.type==="range")return!1;var Z=sR(H,$);if(!Z)return!0;if(Z?I=H:(I=H==="v"?"h":"v",Z=sR(H,$)),!Z)return!1;if(!a.current&&"changedTouches"in T&&(N||V)&&(a.current=I),!I)return!0;var ne=a.current||I;return EU(ne,D,T,ne==="h"?N:V,!0)},[]),v=Y.useCallback(function(T){var D=T;if(!(!Rd.length||Rd[Rd.length-1]!==c)){var M="deltaY"in D?fR(D):fy(D),F=n.current.filter(function(I){return I.name===D.type&&I.target===D.target&&xU(I.delta,M)})[0];if(F&&F.should){D.cancelable&&D.preventDefault();return}if(!F){var N=(f.current.shards||[]).map(dR).filter(Boolean).filter(function(I){return I.contains(D.target)}),V=N.length>0?h(D,N[0]):!f.current.noIsolation;V&&D.cancelable&&D.preventDefault()}}},[]),y=Y.useCallback(function(T,D,M,F){var N={name:T,delta:D,target:M,should:F};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(V){return V!==N})},1)},[]),S=Y.useCallback(function(T){r.current=fy(T),a.current=void 0},[]),E=Y.useCallback(function(T){y(T.type,fR(T),T.target,h(T,e.lockRef.current))},[]),C=Y.useCallback(function(T){y(T.type,fy(T),T.target,h(T,e.lockRef.current))},[]);Y.useEffect(function(){return Rd.push(c),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Td),document.addEventListener("touchmove",v,Td),document.addEventListener("touchstart",S,Td),function(){Rd=Rd.filter(function(T){return T!==c}),document.removeEventListener("wheel",v,Td),document.removeEventListener("touchmove",v,Td),document.removeEventListener("touchstart",S,Td)}},[]);var x=e.removeScrollBar,R=e.inert;return Y.createElement(Y.Fragment,null,R?Y.createElement(c,{styles:wU(s)}):null,x?Y.createElement(hU,{gapMode:"margin"}):null)}const _U=nU(iR,kU);var pR=Y.forwardRef(function(e,n){return Y.createElement(uy,eo({},e,{ref:n,sideCar:_U}))});pR.classNames=uy.classNames;const TU=pR;var RU=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Od=new WeakMap,dy=new WeakMap,py={},wx=0,hR=function(e){return e&&(e.host||hR(e.parentNode))},OU=function(e,n){return n.map(function(r){if(e.contains(r))return r;var a=hR(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},DU=function(e,n,r,a){var s=OU(n,Array.isArray(e)?e:[e]);py[r]||(py[r]=new WeakMap);var c=py[r],f=[],h=new Set,v=new Set(s),y=function(E){!E||h.has(E)||(h.add(E),y(E.parentNode))};s.forEach(y);var S=function(E){!E||v.has(E)||Array.prototype.forEach.call(E.children,function(C){if(h.has(C))S(C);else{var x=C.getAttribute(a),R=x!==null&&x!=="false",T=(Od.get(C)||0)+1,D=(c.get(C)||0)+1;Od.set(C,T),c.set(C,D),f.push(C),T===1&&R&&dy.set(C,!0),D===1&&C.setAttribute(r,"true"),R||C.setAttribute(a,"true")}})};return S(n),h.clear(),wx++,function(){f.forEach(function(E){var C=Od.get(E)-1,x=c.get(E)-1;Od.set(E,C),c.set(E,x),C||(dy.has(E)||E.removeAttribute(a),dy.delete(E)),x||E.removeAttribute(r)}),wx--,wx||(Od=new WeakMap,Od=new WeakMap,dy=new WeakMap,py={})}},AU=function(e,n,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=n||RU(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live]"))),DU(a,s,r,"aria-hidden")):function(){return null}};const mR="Dialog",[vR,AZ]=hS(mR),[MU,rs]=vR(mR),LU=e=>{const{__scopeDialog:n,children:r,open:a,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,h=j.useRef(null),v=j.useRef(null),[y=!1,S]=B3({prop:a,defaultProp:s,onChange:c});return j.createElement(MU,{scope:n,triggerRef:h,contentRef:v,contentId:oy(),titleId:oy(),descriptionId:oy(),open:y,onOpenChange:S,onOpenToggle:j.useCallback(()=>S(E=>!E),[S]),modal:f},r)},PU="DialogTrigger",NU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(PU,r),c=Sc(n,s.triggerRef);return j.createElement(Ka.button,Xn({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":kx(s.open)},a,{ref:c,onClick:ns(e.onClick,s.onOpenToggle)}))}),FU="DialogPortal",[MZ,gR]=vR(FU,{forceMount:void 0}),Cx="DialogOverlay",IU=j.forwardRef((e,n)=>{const r=gR(Cx,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(Cx,e.__scopeDialog);return c.modal?j.createElement(iy,{present:a||c.open},j.createElement(zU,Xn({},s,{ref:n}))):null}),zU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(Cx,r);return j.createElement(TU,{as:yS,allowPinchZoom:!0,shards:[s.contentRef]},j.createElement(Ka.div,Xn({"data-state":kx(s.open)},a,{ref:n,style:{pointerEvents:"auto",...a.style}})))}),mm="DialogContent",jU=j.forwardRef((e,n)=>{const r=gR(mm,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(mm,e.__scopeDialog);return j.createElement(iy,{present:a||c.open},c.modal?j.createElement($U,Xn({},s,{ref:n})):j.createElement(UU,Xn({},s,{ref:n})))}),$U=j.forwardRef((e,n)=>{const r=rs(mm,e.__scopeDialog),a=j.useRef(null),s=Sc(n,r.contentRef,a);return j.useEffect(()=>{const c=a.current;if(c)return AU(c)},[]),j.createElement(yR,Xn({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ns(e.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=r.triggerRef.current)===null||f===void 0||f.focus()}),onPointerDownOutside:ns(e.onPointerDownOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&c.preventDefault()}),onFocusOutside:ns(e.onFocusOutside,c=>c.preventDefault())}))}),UU=j.forwardRef((e,n)=>{const r=rs(mm,e.__scopeDialog),a=j.useRef(!1),s=j.useRef(!1);return j.createElement(yR,Xn({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f;if((f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),!c.defaultPrevented){var h;a.current||(h=r.triggerRef.current)===null||h===void 0||h.focus(),c.preventDefault()}a.current=!1,s.current=!1},onInteractOutside:c=>{var f,h;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const v=c.target;((h=r.triggerRef.current)===null||h===void 0?void 0:h.contains(v))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}}))}),yR=j.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=e,h=rs(mm,r),v=j.useRef(null),y=Sc(n,v);return Y$(),j.createElement(j.Fragment,null,j.createElement($$,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:c},j.createElement(I$,Xn({role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":kx(h.open)},f,{ref:y,onDismiss:()=>h.onOpenChange(!1)}))),!1)}),BU="DialogTitle",VU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(BU,r);return j.createElement(Ka.h2,Xn({id:s.titleId},a,{ref:n}))}),HU="DialogClose",qU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(HU,r);return j.createElement(Ka.button,Xn({type:"button"},a,{ref:n,onClick:ns(e.onClick,()=>s.onOpenChange(!1))}))});function kx(e){return e?"open":"closed"}const WU=LU,YU=NU,ZU=IU,KU=jU,GU=VU,bR=qU;function QU({title:e,titleId:n,...r},a){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Y.createElement("title",{id:n},e):null,Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const XU=Y.forwardRef(QU);function $c({open:e,onOpenChange:n,children:r}){return he.jsx(WU,{open:e,onOpenChange:n,children:r})}function JU({title:e,children:n}){var a,s,c,f,h,v,y,S;const{theme:{modal:r}}=cr();return he.jsxs(he.Fragment,{children:[he.jsx(ZU,{...r==null?void 0:r.overlay}),he.jsx("div",{...r==null?void 0:r.container,children:he.jsxs(KU,{...(a=r==null?void 0:r.dialog)==null?void 0:a.container,children:[he.jsxs("div",{...(c=(s=r==null?void 0:r.dialog)==null?void 0:s.title)==null?void 0:c.container,children:[he.jsx(GU,{...(h=(f=r==null?void 0:r.dialog)==null?void 0:f.title)==null?void 0:h.text,children:e}),he.jsx(bR,{children:he.jsx(XU,{role:"button",tabIndex:0,...(y=(v=r==null?void 0:r.dialog)==null?void 0:v.title)==null?void 0:y.closeIcon})})]}),he.jsx("div",{...(S=r==null?void 0:r.dialog)==null?void 0:S.content,children:n})]})})]})}$c.Button=YU,$c.Close=bR,$c.Content=JU;const SR=({...e})=>{var c,f;const{theme:{header:n},client:{restartConversation:r}}=cr(),{showModal:a}=L7(),s=h=>{h.stopPropagation(),a({title:"Restart Conversation",content:he.jsxs(he.Fragment,{children:[he.jsx("p",{children:"Are you sure you want to restart a new conversation?"}),he.jsx($c.Close,{asChild:!0,children:he.jsx("button",{className:"ml-auto mt-4 rounded-md border border-blue-700 bg-blue-600 px-2 py-1 text-white",onClick:r,children:"clear"})})]})})};return he.jsx(sP,{...e,...(f=(c=n==null?void 0:n.content)==null?void 0:c.actions)==null?void 0:f.icons,role:"button",tabIndex:0,onClick:s,onKeyDown:h=>{h.key==="Enter"&&s(h)}})},eB=({configuration:e})=>{var n,r,a,s,c,f,h,v,y,S;return he.jsxs(U3,{children:[he.jsxs(Fa,{children:[he.jsxs(Fa.Content,{children:[he.jsx(Fa.Avatar,{src:e.botAvatar,children:(e.botName||"My Bot").slice(0,2)}),he.jsx(Fa.Title,{children:e.botName||"My Bot"}),he.jsx(Fa.Description,{children:e.botDescription}),he.jsx(Fa.Actions,{children:he.jsx(SR,{})})]}),he.jsxs(Fa.ExpandedContent,{children:[he.jsx(Fa.DescriptionItem,{"data-email":"",icon:i9,title:(n=e.email)==null?void 0:n.title,link:(r=e.email)==null?void 0:r.link}),he.jsx(Fa.DescriptionItem,{"data-phone":"",icon:c9,title:(a=e.phone)==null?void 0:a.title,link:(s=e.phone)==null?void 0:s.link}),he.jsx(Fa.DescriptionItem,{"data-website":"",link:(c=e.website)==null?void 0:c.link,icon:o9,title:(f=e.website)==null?void 0:f.title}),he.jsx(Fa.DescriptionItem,{"data-terms":"",link:(h=e.termsOfService)==null?void 0:h.link,icon:n9,title:(v=e.termsOfService)==null?void 0:v.title}),he.jsx(Fa.DescriptionItem,{"data-privacy":"",link:(y=e.privacyPolicy)==null?void 0:y.link,icon:s9,title:(S=e.privacyPolicy)==null?void 0:S.title})]})]}),he.jsx(Y3,{}),he.jsxs(P5,{children:[he.jsx(N5,{placeholder:e.composerPlaceholder||"Type your message"}),he.jsx(F5,{})]})]})},tB=["button","text","image","audio","video","file","location","column","row","bubble","carousel","dropdown"],nB=["heading1","heading2","heading3","text","horizontalRule","link","italic","bold","orderedList","unorderedList","listItem","lineBreak","pre"];pn.Avatar=P0,pn.AvatarFallback=F0,pn.AvatarImage=N0,pn.Block=ud,pn.Composer=P5,pn.ComposerButton=F5,pn.ComposerInput=N5,pn.Container=U3,pn.Header=Fa,pn.LoadingIndicator=q3,pn.Message=mx,pn.MessageList=Y3,pn.Modal=$c,pn.ModalProvider=I5,pn.RestartConversation=SR,pn.Webchat=eB,pn.WebchatProvider=u$,pn.blockTypes=tB,pn.markdownTypes=nB,pn.renderers=FE,Object.defineProperty(pn,Symbol.toStringTag,{value:"Module"})});