@hamsterbase/evidra 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/sdk/conformance-rules.js +145 -17
  2. package/dist/sdk/index.d.ts +1 -1
  3. package/dist/sdk/rules.d.ts +9 -2
  4. package/dist/sdk/{types-DHfARqti.d.ts → types--o0ku6ya.d.ts} +6 -0
  5. package/dist/service/cli.js +134 -43
  6. package/dist/web/assets/{cssMode-CT7qaTm_.js → cssMode-DHNTOGta.js} +1 -1
  7. package/dist/web/assets/{editor.api-CsVhWQDt.js → editor.api-DrACi4Ft.js} +1 -1
  8. package/dist/web/assets/{freemarker2-Biydhqq4.js → freemarker2-BZwhuUrf.js} +1 -1
  9. package/dist/web/assets/{handlebars-OLGn3O0q.js → handlebars-dcBiTm2k.js} +1 -1
  10. package/dist/web/assets/{html-Cw5ATHyh.js → html-4uGnY1Hx.js} +1 -1
  11. package/dist/web/assets/{htmlMode-BI1zICew.js → htmlMode-BAZ2gLM_.js} +1 -1
  12. package/dist/web/assets/{index-C49ToWrK.js → index-Cp1GHnZQ.js} +2 -2
  13. package/dist/web/assets/{javascript-BS1aYt5R.js → javascript-D-sZtKfO.js} +1 -1
  14. package/dist/web/assets/{jsonMode-DCJhJggA.js → jsonMode-BLFT3pYI.js} +1 -1
  15. package/dist/web/assets/{liquid-DoQa4FNY.js → liquid-HD6sTxLL.js} +1 -1
  16. package/dist/web/assets/{lspLanguageFeatures-D9tA1yBW.js → lspLanguageFeatures-CfU_VfTV.js} +1 -1
  17. package/dist/web/assets/main-BJxJ6lK3.js +18 -0
  18. package/dist/web/assets/main-BTS_f34X.js +26 -0
  19. package/dist/web/assets/main-CAvFOBUt.css +2 -0
  20. package/dist/web/assets/{mdx-CA3qWzFi.js → mdx-BfzD71x2.js} +1 -1
  21. package/dist/web/assets/{monaco-BtL7JKYj.js → monaco-CoScar16.js} +4 -4
  22. package/dist/web/assets/{python-BrQiqC89.js → python-Dn3yZn9U.js} +1 -1
  23. package/dist/web/assets/{razor-08hjtCNT.js → razor-Bbpo3gmC.js} +1 -1
  24. package/dist/web/assets/{tsMode-DC-2vqQt.js → tsMode-CWTXIUQy.js} +1 -1
  25. package/dist/web/assets/{typescript-9DOCFqrz.js → typescript-BdGEKF1f.js} +1 -1
  26. package/dist/web/assets/useDisplayPreference-cWXttaFP.js +89 -0
  27. package/dist/web/assets/{workers-BcFJUhLI.js → workers-yymMcYwK.js} +1 -1
  28. package/dist/web/assets/{xml-ZJo8Un2M.js → xml-dxLH6b19.js} +1 -1
  29. package/dist/web/assets/{yaml-8EZC7v3K.js → yaml-DizpY2pm.js} +1 -1
  30. package/dist/web/index.html +1 -1
  31. package/package.json +3 -2
  32. package/packages/conformance/rules/baseline-max-diff-pixels/RULE.md +21 -0
  33. package/packages/conformance/rules/index.md +1 -1
  34. package/skills/evidra/SKILL.md +7 -1
  35. package/dist/types/modules/core/contracts/comparison.d.ts +0 -41
  36. package/dist/types/modules/core/contracts/config.d.ts +0 -19
  37. package/dist/types/modules/core/contracts/context.d.ts +0 -6
  38. package/dist/types/modules/core/contracts/functions/addCase.d.ts +0 -128
  39. package/dist/types/modules/core/contracts/functions/addTask.d.ts +0 -14
  40. package/dist/types/modules/core/contracts/functions/approve.d.ts +0 -8
  41. package/dist/types/modules/core/contracts/functions/baselineChanges.d.ts +0 -14
  42. package/dist/types/modules/core/contracts/functions/compare.d.ts +0 -14
  43. package/dist/types/modules/core/contracts/functions/compareTask.d.ts +0 -6
  44. package/dist/types/modules/core/contracts/functions/compareTasks.d.ts +0 -18
  45. package/dist/types/modules/core/contracts/functions/deleteBaselineFile.d.ts +0 -8
  46. package/dist/types/modules/core/contracts/functions/finishTask.d.ts +0 -8
  47. package/dist/types/modules/core/contracts/functions/getBaseline.d.ts +0 -10
  48. package/dist/types/modules/core/contracts/functions/getBaselineChanges.d.ts +0 -6
  49. package/dist/types/modules/core/contracts/functions/getGitChanges.d.ts +0 -6
  50. package/dist/types/modules/core/contracts/functions/getGitDiff.d.ts +0 -8
  51. package/dist/types/modules/core/contracts/functions/getTaskCase.d.ts +0 -23
  52. package/dist/types/modules/core/contracts/functions/getTaskTree.d.ts +0 -21
  53. package/dist/types/modules/core/contracts/functions/gitChanges.d.ts +0 -25
  54. package/dist/types/modules/core/contracts/functions/index.d.ts +0 -18
  55. package/dist/types/modules/core/contracts/functions/listBaselines.d.ts +0 -5
  56. package/dist/types/modules/core/contracts/functions/listRuns.d.ts +0 -7
  57. package/dist/types/modules/core/contracts/functions/listTaskSummaries.d.ts +0 -15
  58. package/dist/types/modules/core/contracts/functions/listTasks.d.ts +0 -15
  59. package/dist/types/modules/core/contracts/functions/loadConfig.d.ts +0 -5
  60. package/dist/types/modules/core/contracts/functions/readProjectInfo.d.ts +0 -5
  61. package/dist/types/modules/core/contracts/functions/readTaskReport.d.ts +0 -6
  62. package/dist/types/modules/core/contracts/functions/resolveConfig.d.ts +0 -6
  63. package/dist/types/modules/core/contracts/functions/reviewBaselineChanges.d.ts +0 -9
  64. package/dist/types/modules/core/contracts/functions/reviewCodeChanges.d.ts +0 -9
  65. package/dist/types/modules/core/contracts/functions/taskRecords.d.ts +0 -6
  66. package/dist/types/modules/core/contracts/functions/updateBaseline.d.ts +0 -20
  67. package/dist/types/modules/core/contracts/git.d.ts +0 -14
  68. package/dist/types/modules/core/contracts/imageDiffPool.d.ts +0 -5
  69. package/dist/types/modules/core/contracts/index.d.ts +0 -30
  70. package/dist/types/modules/core/contracts/internal/compare.d.ts +0 -14
  71. package/dist/types/modules/core/contracts/internal/getBaseline.d.ts +0 -10
  72. package/dist/types/modules/core/contracts/internal/listTasks.d.ts +0 -12
  73. package/dist/types/modules/core/contracts/internal/taskRecords.d.ts +0 -6
  74. package/dist/types/modules/core/contracts/internal/updateBaseline.d.ts +0 -20
  75. package/dist/types/modules/core/contracts/model.d.ts +0 -80
  76. package/dist/types/modules/core/contracts/report.d.ts +0 -52
  77. package/dist/types/modules/core/contracts/repository.d.ts +0 -5
  78. package/dist/types/modules/core/contracts/requests.d.ts +0 -23
  79. package/dist/types/modules/core/contracts/scanCases.d.ts +0 -15
  80. package/dist/types/modules/core/contracts/shared.d.ts +0 -6
  81. package/dist/types/modules/core/contracts/snapshots.d.ts +0 -6
  82. package/dist/types/modules/core/contracts/taskRecord.d.ts +0 -76
  83. package/dist/types/modules/core/implementations/Functions/addCase.d.ts +0 -4
  84. package/dist/types/modules/core/implementations/Functions/addTask.d.ts +0 -4
  85. package/dist/types/modules/core/implementations/Functions/approve.d.ts +0 -6
  86. package/dist/types/modules/core/implementations/Functions/compare.d.ts +0 -15
  87. package/dist/types/modules/core/implementations/Functions/compareTask.d.ts +0 -3
  88. package/dist/types/modules/core/implementations/Functions/compareTasks.d.ts +0 -5
  89. package/dist/types/modules/core/implementations/Functions/deleteBaselineFile.d.ts +0 -4
  90. package/dist/types/modules/core/implementations/Functions/finishTask.d.ts +0 -4
  91. package/dist/types/modules/core/implementations/Functions/getBaseline.d.ts +0 -4
  92. package/dist/types/modules/core/implementations/Functions/getBaselineChanges.d.ts +0 -4
  93. package/dist/types/modules/core/implementations/Functions/getGitChanges.d.ts +0 -3
  94. package/dist/types/modules/core/implementations/Functions/getGitDiff.d.ts +0 -3
  95. package/dist/types/modules/core/implementations/Functions/getTaskCase.d.ts +0 -5
  96. package/dist/types/modules/core/implementations/Functions/getTaskTree.d.ts +0 -5
  97. package/dist/types/modules/core/implementations/Functions/listBaselines.d.ts +0 -3
  98. package/dist/types/modules/core/implementations/Functions/listTaskSummaries.d.ts +0 -2
  99. package/dist/types/modules/core/implementations/Functions/listTasks.d.ts +0 -4
  100. package/dist/types/modules/core/implementations/Functions/loadConfig.d.ts +0 -3
  101. package/dist/types/modules/core/implementations/Functions/readProjectInfo.d.ts +0 -3
  102. package/dist/types/modules/core/implementations/Functions/readTaskReport.d.ts +0 -3
  103. package/dist/types/modules/core/implementations/Functions/resolveConfig.d.ts +0 -9
  104. package/dist/types/modules/core/implementations/Functions/reviewBaselineChanges.d.ts +0 -4
  105. package/dist/types/modules/core/implementations/Functions/reviewCodeChanges.d.ts +0 -4
  106. package/dist/types/modules/core/implementations/Functions/taskRecords.d.ts +0 -4
  107. package/dist/types/modules/core/implementations/Functions/updateBaseline.d.ts +0 -5
  108. package/dist/types/modules/core/implementations/Utils/assertNamespace.d.ts +0 -1
  109. package/dist/types/modules/core/implementations/Utils/canonical.d.ts +0 -1
  110. package/dist/types/modules/core/implementations/Utils/createTaskId.d.ts +0 -1
  111. package/dist/types/modules/core/implementations/Utils/deletionAllowed.d.ts +0 -2
  112. package/dist/types/modules/core/implementations/Utils/download.d.ts +0 -3
  113. package/dist/types/modules/core/implementations/Utils/hash.d.ts +0 -1
  114. package/dist/types/modules/core/implementations/Utils/imageDiffPool.d.ts +0 -18
  115. package/dist/types/modules/core/implementations/Utils/imageKey.d.ts +0 -1
  116. package/dist/types/modules/core/implementations/Utils/loadBaseline.d.ts +0 -4
  117. package/dist/types/modules/core/implementations/Utils/mapLimit.d.ts +0 -1
  118. package/dist/types/modules/core/implementations/Utils/observationKey.d.ts +0 -1
  119. package/dist/types/modules/core/implementations/Utils/pngSize.d.ts +0 -4
  120. package/dist/types/modules/core/implementations/Utils/readJson.d.ts +0 -1
  121. package/dist/types/modules/core/implementations/Utils/readTaskRecord.d.ts +0 -2
  122. package/dist/types/modules/core/implementations/Utils/scanCases.d.ts +0 -9
  123. package/dist/types/modules/core/implementations/Utils/taskDirectory.d.ts +0 -1
  124. package/dist/types/modules/core/implementations/Utils/toCase.d.ts +0 -3
  125. package/dist/types/modules/core/implementations/Utils/toObservation.d.ts +0 -3
  126. package/dist/types/modules/core/implementations/Utils/toSnapshot.d.ts +0 -3
  127. package/dist/types/modules/core/implementations/Utils/writeBytesAtomic.d.ts +0 -1
  128. package/dist/types/modules/core/implementations/Utils/writeJsonAtomic.d.ts +0 -1
  129. package/dist/types/modules/core/implementations/Utils/writeTextAtomic.d.ts +0 -1
  130. package/dist/types/modules/core/implementations/baselineChanges.d.ts +0 -6
  131. package/dist/types/modules/core/implementations/config.d.ts +0 -6
  132. package/dist/types/modules/core/implementations/content.d.ts +0 -1
  133. package/dist/types/modules/core/implementations/evidra.d.ts +0 -31
  134. package/dist/types/modules/core/implementations/git.d.ts +0 -11
  135. package/dist/types/modules/core/implementations/gitChanges.d.ts +0 -29
  136. package/dist/types/modules/core/implementations/index.d.ts +0 -17
  137. package/dist/types/modules/core/implementations/internal/compare.d.ts +0 -15
  138. package/dist/types/modules/core/implementations/internal/getBaseline.d.ts +0 -4
  139. package/dist/types/modules/core/implementations/internal/listTasks.d.ts +0 -2
  140. package/dist/types/modules/core/implementations/internal/taskRecords.d.ts +0 -4
  141. package/dist/types/modules/core/implementations/internal/updateBaseline.d.ts +0 -5
  142. package/dist/types/modules/core/implementations/paths.d.ts +0 -48
  143. package/dist/types/modules/core/implementations/report.d.ts +0 -3
  144. package/dist/types/modules/core/implementations/reportResources.d.ts +0 -4
  145. package/dist/types/modules/core/implementations/reportStatus.d.ts +0 -10
  146. package/dist/types/modules/core/implementations/reportTree.d.ts +0 -5
  147. package/dist/types/modules/core/implementations/repository.d.ts +0 -10
  148. package/dist/types/modules/core/implementations/requests.d.ts +0 -13
  149. package/dist/types/modules/core/implementations/snapshots.d.ts +0 -11
  150. package/dist/types/modules/core/implementations/storage/local.d.ts +0 -3
  151. package/dist/types/modules/core/implementations/storage/objects.d.ts +0 -3
  152. package/dist/types/modules/core/index.d.ts +0 -21
  153. package/dist/types/packages/sdk/src/index.d.ts +0 -21
  154. package/dist/types/packages/sdk/src/types.d.ts +0 -9
  155. package/dist/web/assets/main-BO3J7gmH.css +0 -2
  156. package/dist/web/assets/main-DqSNHHTP.js +0 -13
  157. package/dist/web/assets/main-TbSjhXd2.js +0 -18
  158. package/dist/web/assets/useDisplayPreference-B-z8NzSv.js +0 -23
@@ -0,0 +1,89 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function ee(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ee(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ee(a,u),c+=j(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ee(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ne={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ne,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),d=o(((e,t)=>{t.exports=u()})),f=l(d(),1),p=e=>{throw TypeError(e)},m=(e,t,n)=>t.has(e)||p(`Cannot `+n),h=(e,t,n)=>(m(e,t,`read from private field`),n?n.call(e):t.get(e)),g=(e,t,n)=>t.has(e)?p(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(m(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),v=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,y=/^[\\/]{2}/;function b(e,t){return t+e.replace(/\\/g,`/`)}var x=`popstate`;function S(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function C(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return O(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:k(t)}return ee(t,n,null,e)}function w(e,t){if(e===!1||e==null)throw Error(t)}function T(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function E(){return Math.random().toString(36).substring(2,10)}function D(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function O(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?A(t):t,state:n,key:t&&t.key||r||E(),mask:i}}function k({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function A(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ee(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=S(e)?e:O(h.location,e,t);n&&n(r,e),l=u()+1;let d=D(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=S(e)?e:O(h.location,e,t);n&&n(r,e),l=u();let i=D(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return te(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(x,d),c=e,()=>{i.removeEventListener(x,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function te(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),w(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:k(t);return i=i.replace(/ $/,`%20`),!n&&y.test(i)&&(i=r+i),new URL(i,r)}var j,M=class{constructor(e){if(g(this,j,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(h(this,j).has(e))return h(this,j).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){h(this,j).set(e,t)}};j=new WeakMap;var N=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function P(e){return N.has(e)}var ne=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function re(e){return ne.has(e)}function ie(e){return e.index===!0}function ae(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(w(e.index!==!0||!e.children,`Cannot specify children on an index route`),w(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ie(e)){let n={...e,id:s};return r[s]=F(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=F(n,t(n)),e.children&&(n.children=ae(e.children,t,o,r,i)),n}})}function F(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function I(e,t,n=`/`){return oe(e,t,n,!1)}function oe(e,t,n,r,i){let a=Ee((typeof t==`string`?A(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ce(e),s=null,c=Te(a);for(let e=0;s==null&&e<o.length;++e)s=xe(o[e],c,r);return s}function se(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ce(e){let t=le(e);return de(t),t}function le(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;w(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ie([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(w(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),le(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:ye(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=we(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ue(e.path))a(e,t,!0,n)}),t}function ue(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ue(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function de(e){e.sort((e,t)=>e.score===t.score?be(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var fe=/^:[\w-]+$/,pe=3,me=2,he=1,ge=10,_e=-2,ve=e=>e===`*`;function ye(e,t){let n=e.split(`/`),r=n.length;return n.some(ve)&&(r+=_e),t&&(r+=me),n.filter(e=>!ve(e)).reduce((e,t)=>e+(fe.test(t)?pe:t===``?he:ge),r)}function be(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function xe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Ce(u,l,s.matcher,s.compiledParams):Se(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Se({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ie([a,d.pathname]),pathnameBase:Re(Ie([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ie([a,d.pathnameBase]))}return o}function Se(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=we(e.path,e.caseSensitive,e.end);return Ce(e,t,n,r)}function Ce(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Le(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Le(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function we(e,t=!1,n=!0){T(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Te(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return T(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ee(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function De({basename:e,pathname:t}){return t===`/`?e:Ie([e,t])}var Oe=e=>v.test(e);function ke(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?A(e):e,a;return n?(n=Fe(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ae(n.substring(1),`/`):Ae(n,t)):a=t,{pathname:a,search:ze(r),hash:Be(i)}}function Ae(e,t){let n=Le(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function je(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Me(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ne(e){let t=Me(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Pe(e,t,n,r=!1){let i;typeof e==`string`?i=A(e):(i={...e},w(!i.pathname||!i.pathname.includes(`?`),je(`?`,`pathname`,`search`,i)),w(!i.pathname||!i.pathname.includes(`#`),je(`#`,`pathname`,`hash`,i)),w(!i.search||!i.search.includes(`#`),je(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ke(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Fe=e=>e.replace(/[\\/]{2,}/g,`/`),Ie=e=>Fe(e.join(`/`));function Le(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Re=e=>Le(e).replace(/^\/*/,`/`),ze=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Be=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ve=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},He=(e,t)=>{let n=Ve(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},Ue=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],We=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ge(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ke(e){return Ie(e.map(e=>e.route.path).filter(Boolean))||`/`}var qe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Je(e,t){let n=e;if(typeof n!=`string`||!v.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(qe)try{let e=new URL(window.location.href),r=y.test(n)?new URL(b(n,e.protocol)):new URL(n),a=Ee(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{T(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Ye=Symbol(`Uninstrumented`);function Xe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Qe(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Qe(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Ye]??i,a=Qe(n[e],t,(...e)=>et(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Ye]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Ye]??e,r=Qe(n.middleware,t,(...e)=>et(e[0]));return r?(r[Ye]=t,r):e})),r}function Ze(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Ye]??e.navigate,r=Qe(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?k(n):`.`,...tt(e,r??{})}});r&&(r[Ye]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Ye]??e.fetch,r=Qe(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...tt(e,i??{})}});r&&(r[Ye]=t,e.fetch=r)}return e}function Qe(e,t,n){return e.length===0?null:async(...r)=>{let i=await $e(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function $e(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=$e(e,t,n,r-1),a=await o,w(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function et(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:nt(t),params:{...r},pattern:i,context:rt(n)}}function tt(e,t){return{currentUrl:k(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function nt(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function rt(e){if(at(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var it=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function at(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===it}var ot=new URL(`http://localhost`);function st(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),ot)}catch{return ot}}function ct(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function lt(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function ut(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!ct(i,n),s=!ct(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!lt(e,i)||!ct(i,a)))throw Error(`External navigation is not allowed`)}var dt=[`POST`,`PUT`,`PATCH`,`DELETE`],ft=new Set(dt),pt=[`GET`,...dt],mt=new Set(pt),ht=new Set([301,302,303,307,308]),gt=new Set([307,308]),_t={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},bt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xt=`remix-router-transitions`,St=Symbol(`ResetLoaderData`),Ct,wt,Tt,Et,Dt=class{constructor(e){g(this,Ct),g(this,wt),g(this,Tt),g(this,Et),_(this,Ct,e),_(this,wt,ce(e))}get stableRoutes(){return h(this,Ct)}get activeRoutes(){return h(this,Tt)??h(this,Ct)}get branches(){return h(this,Et)??h(this,wt)}get hasHMRRoutes(){return h(this,Tt)!=null}setRoutes(e){_(this,Ct,e),_(this,wt,ce(e))}setHmrRoutes(e){_(this,Tt,e),_(this,Et,ce(e))}commitHmrRoutes(){h(this,Tt)&&(_(this,Ct,h(this,Tt)),_(this,wt,h(this,Et)),_(this,Tt,void 0),_(this,Et,void 0))}};Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap;function Ot(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;w(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||bt,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Xe(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Dt(ae(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Gt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=oe(s.activeRoutes,e.history.location,c,!1,s.branches),b=!1,x=null,S,C;if(v==null&&!e.patchRoutesOnNavigation){let t=_n(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=gn(s.activeRoutes);S=!0,C=!S,v=n,x={[r.id]:t}}else if(v&&!e.hydrationData&&lt(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){S=!1,C=!S,v=[];let t=lt(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(b=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))S=!1,C=!S;else if(!v.some(e=>Nt(e.route)))S=!0,C=!S;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}C=!1,S=!0,r.forEach(e=>{let r=Pt(e.route,t,n);C||=r.renderFallback,S&&=!r.shouldLoad})}let E,D={historyAction:e.history.action,location:e.history.location,matches:v,initialized:S,renderFallback:C,navigation:_t,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},ee=`POP`,j=null,N=!1,P,ne=!1,re=new Map,ie=null,F=!1,I=!1,ce=new Set,le=new Map,ue=0,de=-1,fe=new Map,pe=new Set,me=new Map,he=new Map,ge=new Set,_e=new Map,ve,ye=null;function be(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ve){ve(),ve=void 0;return}T(_e.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=rt({currentLocation:D.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ve=e});e.history.go(r*-1),nt(i,{state:`blocked`,location:n,proceed(){nt(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(D.blockers);e.set(i,yt),Ce({blockers:e})}}),j?.resolve(),j=null}else return ke(t,n)}),n){Vn(t,re);let e=()=>Hn(t,re);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return D.initialized||ke(`POP`,D.location,{initialHydration:!0}),E}function xe(){d&&d(),ie&&ie(),f.clear(),P&&P.abort(),D.fetchers.forEach((e,t)=>Ke(D.fetchers,t)),D.blockers.forEach((e,t)=>tt(t))}function Se(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(D,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function Ce(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),D={...D,...e};let n=[],r=[];D.fetchers.forEach((e,t)=>{e.state===`idle`&&(ge.has(t)?n.push(t):r.push(t))}),ge.forEach(e=>{!D.fetchers.has(e)&&!le.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(D,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Ke(D.fetchers,e)),r.forEach(e=>D.fetchers.delete(e))}function we(t,n,{flushSync:r}={}){let i=D.actionData!=null&&D.navigation.formMethod!=null&&Mn(D.navigation.formMethod)&&D.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let o=n.loaderData?pn(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,yt)));let l=!F&&ct(t,n.matches||D.matches),u=N===!0||D.navigation.formMethod!=null&&Mn(D.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),F||ee===`POP`||(ee===`PUSH`?e.history.push(t,t.state):ee===`REPLACE`&&e.history.replace(t,t.state));let d;if(ee===`POP`&&!F&&t!==D.location){let e=re.get(D.location.pathname);e&&e.has(t.pathname)?d={currentLocation:D.location,nextLocation:t}:re.has(t.pathname)&&(d={currentLocation:t,nextLocation:D.location})}else if(ne){let e=re.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),re.set(D.location.pathname,e)),d={currentLocation:D.location,nextLocation:t}}Ce({...n,actionData:a,loaderData:o,historyAction:ee,location:t,initialized:!0,renderFallback:!1,navigation:_t,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),ee=`POP`,N=!1,ne=!1,F=!1,I=!1,j?.resolve(),j=null,ye?.resolve(),ye=null}async function Te(t,n){if(j?.resolve(),j=null,typeof t==`number`){j||=Un();let n=j.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=jt(!1,At(D.location,D.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?A(n.mask):{...D.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},y.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),ut(typeof n.mask==`string`?n.mask:k(n.mask),k(o),e.history.createURL(`/`),`reject`)}let s=D.location,l=O(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},ut(t==null?e.history.createHref(D.location):typeof t==`string`?t:k(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Mn(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=rt({currentLocation:s,nextLocation:l,historyAction:d});m?nt(m,{state:`blocked`,location:l,proceed(){nt(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),Te(t,n)},reset(){let e=new Map(D.blockers);e.set(m,yt),Ce({blockers:e})}}):await ke(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function De(){ye||=Un(),Be(),Ce({revalidation:`loading`});let e=ye.promise;return D.navigation.state===`submitting`?e:D.navigation.state===`idle`?(ke(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ke(ee||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:ne===!0}),e)}async function ke(t,n,r){P&&P.abort(),P=null,ee=t,F=(r&&r.startUninterruptedRevalidation)===!0,st(D.location,D.matches),N=(r&&r.preventScrollReset)===!0,ne=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&D.matches&&D.matches.length>0&&!b?D.matches:oe(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&D.initialized&&!I&&bn(D.location,n)&&!(r&&r.submission&&Mn(r.submission.formMethod))){we(n,{matches:a},{flushSync:o});return}let l=lt(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);we(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;P=new AbortController;let d=sn(e.history,n,P.signal,r&&r.submission),f=e.getContext?await e.getContext():new M,p;if(r&&r.pendingError)p=[hn(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Mn(r.submission.formMethod)){let i=await Ae(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Tn(t)&&Ge(t.error)&&t.error.status===404){P=null,we(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=In(n,a,t,r.submission),o=!1,l.active=!1,d=sn(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await je(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(P=null,we(n,{matches:h||a,...mn(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function Ae(t,n,i,l,u,d,f,p,m={}){if(Be(),Ce({navigation:Ln(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await dt(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=gn(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=hn(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Pn(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:_n(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Re(t,n,Zt(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(En(h)){let n;return n=m&&m.replace!=null?m.replace:on(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===D.location.pathname+D.location.search,await Le(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Tn(h)){let e=hn(l,g.route.id);return(m&&m.replace)!==!0&&(ee=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function je(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||In(n,i,l,p),x=p||m||Fn(b),S=!F&&!g;if(d){if(S){let e=Me(v);Ce({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await dt(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=gn(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=hn(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Mt(t,u,a,o,e.history,D,i,x,n,g?[]:r,g===!0,I,ce,ge,me,pe,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(de=++ue,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(D.fetchers),t=Qe(e);return we(n,{matches:i,loaderData:{},errors:v&&Tn(v[1])?{[v[0]]:v[1].error}:null,...mn(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Me(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ne(T)),Ce(e,{flushSync:_})}T.forEach(e=>{Je(e.key),e.controller&&le.set(e.key,e.controller)});let E=()=>T.forEach(e=>Je(e.key));P&&P.signal.addEventListener(`abort`,E);let{loaderResults:O,fetcherResults:k}=await ze(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener(`abort`,E),T.forEach(e=>le.delete(e.key));let A=vn(O);if(A)return await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};if(A=vn(k),A)return pe.add(A.key),await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};let ee=new Map(D.fetchers),{loaderData:te,errors:j}=fn(D,i,O,v,T,k,ee);g&&D.errors&&(j={...D.errors,...j});let M=Qe(ee),N=$e(de,ee),ne=M||N||T.length>0;return{matches:i,loaderData:te,errors:j,...ne?{workingFetchers:ee}:{}}}function Me(e){if(e&&!Tn(e[1]))return{[e[0]]:e[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Ne(e){let t=new Map(D.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=Rn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Pe(t,n,r,i){Je(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=At(D.location,D.matches,c,r,n,i?.relative),u=oe(o,l,c,!1,s.branches),d=lt(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){He(t,n,_n(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=jt(!0,l,i);if(m){He(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new M,g=(i&&i.preventScrollReset)===!0;p&&Mn(p.formMethod)?await Fe(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(me.set(t,{routeId:n,path:f}),await Ie(t,n,f,u,h,d.active,a,g,p))}async function Fe(t,n,i,l,u,d,f,p,m,h){Be(),me.delete(t),Ve(t,zn(m,D.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=sn(e.history,i,g.signal,m);if(d){let e=await dt(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{He(t,n,_n(404,{pathname:i}),{flushSync:f});return}}let v=Pn(l,i);if(!v.route.action&&!v.route.lazy){He(t,n,_n(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}le.set(t,g);let y=ue,b=Zt(a,o,_,i,l,v,r,u),x=await Re(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){le.get(t)===g&&le.delete(t);return}if(ge.has(t)){if(En(S)||Tn(S)){Ve(t,Bn(void 0));return}}else{if(En(S)){if(le.delete(t),de>y){Ve(t,Bn(void 0));return}return pe.add(t),Ve(t,Rn(m)),Le(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(Tn(S)){He(t,n,S.error);return}}let C=D.navigation.location||D.location,T=sn(e.history,C,g.signal),E=s.activeRoutes,O=D.navigation.state===`idle`?D.matches:oe(E,D.navigation.location,c,!1,s.branches);w(O,`Didn't find any matches after fetcher action`);let k=++ue;fe.set(t,k);let{dsMatches:A,revalidatingFetchers:te}=Mt(T,u,a,o,e.history,D,O,m,C,r,!1,I,ce,ge,me,pe,E,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),j=Rn(m,S.data),M=new Map(D.fetchers);M.set(t,j),te.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=M.get(t),r=Rn(void 0,n?n.data:void 0);M.set(t,r),Je(t),e.controller&&le.set(t,e.controller)}),Ce({fetchers:M});let N=()=>te.forEach(e=>Je(e.key));g.signal.addEventListener(`abort`,N);let{loaderResults:ne,fetcherResults:re}=await ze(A,te,T,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,N),fe.delete(t),le.delete(t),te.forEach(e=>le.delete(e.key));let ie=D.fetchers.has(t),ae=e=>{if(!ie)return e;let n=new Map(e.fetchers);return n.set(t,Bn(S.data)),{...e,fetchers:n}},F=vn(ne);if(F)return D=ae(D),Le(T,F.result,!1,{preventScrollReset:p});if(F=vn(re),F)return pe.add(F.key),D=ae(D),Le(T,F.result,!1,{preventScrollReset:p});let se=new Map(D.fetchers);ie&&se.set(t,Bn(S.data));let{loaderData:he,errors:_e}=fn(D,O,ne,void 0,te,re,se);$e(k,se),D.navigation.state===`loading`&&k>de?(w(ee,`Expected pending action`),P&&P.abort(),we(D.navigation.location,{matches:O,loaderData:he,errors:_e,fetchers:se})):(Ce({errors:_e,loaderData:pn(D.loaderData,he,O,_e),fetchers:se}),I=!1)}async function Ie(t,n,i,s,c,l,u,d,f){let p=D.fetchers.get(t);Ve(t,Rn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=sn(e.history,i,m.signal);if(l){let e=await dt(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{He(t,n,_n(404,{pathname:i}),{flushSync:u});return}}let g=Pn(s,i);le.set(t,m);let _=ue,v=await Re(h,i,Zt(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(le.get(t)===m&&le.delete(t),!h.signal.aborted){if(ge.has(t))Ve(t,Bn(void 0));else if(En(y)){if(de>_){Ve(t,Bn(void 0));return}pe.add(t),await Le(h,y,!1,{preventScrollReset:d})}else Tn(y)?He(t,n,y.error):Ve(t,Bn(y.data))}}async function Le(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(j?.resolve(),j=null),i.response.headers.has(`X-Remix-Revalidate`)&&(I=!0);let d=i.response.headers.get(`Location`);w(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=on(d,p,c,e.history),ut(f,d,p,`allow-explicit`);let m=O(D.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Oe(d)){let n=te(t,d,!0);e=n.origin!==t.location.origin||Ee(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}P=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=D.navigation;!o&&!s&&g&&_&&v&&(o=Fn(D.navigation));let y=o||s;gt.has(i.response.status)&&y&&Mn(y.formMethod)?await ke(h,m,{submission:{...y,formAction:d},preventScrollReset:l||N,enableViewTransition:a?ne:void 0}):await ke(h,m,{overrideNavigation:In(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||N,enableViewTransition:a?ne:void 0})}async function Re(e,t,n,r,i){let a,o={};try{a=await Qt(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Mn(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||D.loaderData.hasOwnProperty(e.route.id)||D.errors&&D.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(wn(r)){let i=r.result;o[t]={type:`redirect`,response:nn(i,e,t,n,c)}}else o[t]=await tn(r);return o}async function ze(e,t,n,r,i){let a=Re(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Re(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:_n(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Be(){I=!0,me.forEach((e,t)=>{le.has(t)&&ce.add(t),Je(t)})}function Ve(e,t,n={}){let r=new Map(D.fetchers);r.set(e,t),Ce({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function He(e,t,n,r={}){let i=hn(D.matches,t),a=new Map(D.fetchers);Ke(a,e),Ce({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ue(e){return he.set(e,(he.get(e)||0)+1),ge.has(e)&&ge.delete(e),D.fetchers.get(e)||vt}function We(e,t){Je(e,t?.reason),Ve(e,Bn(null))}function Ke(e,t){let n=D.fetchers.get(t);le.has(t)&&!(n&&n.state===`loading`&&fe.has(t))&&Je(t),me.delete(t),fe.delete(t),pe.delete(t),ge.delete(t),ce.delete(t),e.delete(t)}function qe(e){let t=(he.get(e)||0)-1;t<=0?(he.delete(e),ge.add(e)):he.set(e,t),Ce({fetchers:new Map(D.fetchers)})}function Je(e,t){let n=le.get(e);n&&(n.abort(t),le.delete(e))}function Ye(e,t){for(let n of e){let e=t.get(n);w(e,`Expected fetcher: ${n}`);let r=Bn(e.data);t.set(n,r)}}function Qe(e){let t=[],n=!1;for(let r of pe){let i=e.get(r);w(i,`Expected fetcher: ${r}`),i.state===`loading`&&(pe.delete(r),t.push(r),n=!0)}return Ye(t,e),n}function $e(e,t){let n=[];for(let[r,i]of fe)if(i<e){let e=t.get(r);w(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Je(r),fe.delete(r),n.push(r))}return Ye(n,t),n.length>0}function et(e,t){let n=D.blockers.get(e)||yt;return _e.get(e)!==t&&_e.set(e,t),n}function tt(e){D.blockers.delete(e),_e.delete(e)}function nt(e,t){let n=D.blockers.get(e)||yt;w(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(D.blockers);r.set(e,t),Ce({blockers:r})}function rt({currentLocation:e,nextLocation:t,historyAction:n}){if(_e.size===0)return;_e.size>1&&T(!1,`A router only supports one blocker at a time`);let r=Array.from(_e.entries()),[i,a]=r[r.length-1],o=D.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function it(e){let t=_n(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=gn(n);return{notFoundMatches:r,route:i,error:t}}function at(e,t,n){if(m=e,g=t,h=n||null,!_&&D.navigation===_t){_=!0;let e=ct(D.location,D.matches);e!=null&&Ce({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function ot(e,t){return h&&h(e,t.map(e=>se(e,D.loaderData)))||e.key}function st(e,t){if(m&&g){let n=ot(e,t);m[n]=g()}}function ct(e,t){if(m){let n=ot(e,t),r=m[n];if(typeof r==`number`)return r}return null}function lt(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:oe(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:oe(n,r,c,!0,e)}}return{active:!1,matches:null}}async function dt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||Rt(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=oe(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=oe(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ft(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=oe(s.activeRoutes,n,c,!0,u),!f||ft(l,f))return{type:`success`,matches:null};l=f}}function ft(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function pt(e){o={},s.setHmrRoutes(ae(e,a,void 0,o))}function mt(e,t,n=!1){Rt(e,t,s,o,a,n),s.hasHMRRoutes||Ce({})}return E={get basename(){return c},get future(){return u},get state(){return D},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:be,subscribe:Se,enableScrollRestoration:at,navigate:Te,fetch:Pe,revalidate:De,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ue,resetFetcher:We,deleteFetcher:qe,dispose:xe,getBlocker:et,deleteBlocker:tt,patchRoutes:mt,_internalFetchControllers:le,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){Ce(e)}},e.instrumentations&&(E=Ze(E,e.instrumentations.map(e=>e.router).filter(Boolean))),E}function kt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function At(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Pe(r||`.`,Ne(o),Ee(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Nn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=De({basename:n,pathname:c.pathname})),k(c)}function jt(e,t,n){if(!n||!kt(n))return{path:t};if(n.formMethod&&!jn(n.formMethod))return{path:t,error:_n(405,{method:n.formMethod})};let r=()=>({path:t,error:_n(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=yn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Mn(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
2
+ `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Mn(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}w(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ln(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ln(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=un(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=un(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Mn(c.formMethod))return{path:t,submission:c};let l=A(t);return e&&l.search&&Nn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:k(l),submission:c}}function Mt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Tn(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Tn(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=Ke(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Nt(s))f=!1;else if(u){let{shouldLoad:e}=Pt(s,a.loaderData,a.errors);f=e}else Ft(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Xt(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?It(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=Lt(i,m);return Xt(n,r,e,c,k,i,l,t,h,m,x)}),ee=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=oe(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;ee.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Pn(b,e.path),C=new AbortController,w=sn(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Zt(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Zt(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};Lt(S,a)&&(T=Zt(n,r,w,e.path,b,S,l,t,a))}T&&ee.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:ee}}function Nt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Pt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Nt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function Ft(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function It(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Lt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Rt(e,t,n,r,i,a){let o;if(e){let t=r[e];w(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>zt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=ae(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=ae([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function zt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>zt(e,t)))??!1}var Bt=new WeakMap,Vt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(w(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Bt.get(i);o||(o={},Bt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=P(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)T(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)T(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Ht=new WeakMap;function Ut(e,t,n,r,i){let a=n[e.id];if(w(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Ht.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{w(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=re(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?T(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?T(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ht.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Vt({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Wt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Gt(e){return e.matches.some(e=>e.route.middleware)?Kt(e,()=>Wt(e)):Wt(e)}function Kt(e,t){return qt(e,t,e=>{if(An(e))throw e;return e},Sn,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=hn(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function qt(e,t,n,r,i){let{matches:a,...o}=e;return await Jt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Jt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Jt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Yt(e,t,n,r,i){let a=Vt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Ut(r.route,Mn(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Xt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Yt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Lt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Lt(a,{...l,defaultShouldRevalidate:e}):Lt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Mn(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Mn(n.method)||!p)?$t({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Zt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Xt(e,t,n,r,Ke(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Yt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Qt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:cn(t,n),pattern:Ke(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Kt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function $t({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Mn(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:cn(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw _n(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw _n(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function en(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function tn(e){let{result:t,type:n}=e;if(On(t)){let e;try{e=await en(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new We(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Dn(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:xn(t),statusCode:Ge(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ge(t)?t.status:void 0}:Dn(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function nn(e,t,n,r,i){let a=e.headers.get(`Location`);if(w(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Oe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=At(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var rn=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function an(e){try{return rn.includes(new URL(e).protocol)}catch{return!1}}function on(e,t,n,r){if(Oe(e)){let r=e,i=y.test(r)?new URL(b(r,t.protocol)):new URL(r);if(an(i.toString()))throw Error(`Invalid redirect location`);let a=Ee(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Fe(i.pathname)+i.search+i.hash}try{if(an(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function sn(e,t,n,r){let i=e.createURL(yn(t)).toString(),a={signal:n};if(r&&Mn(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?ln(r.formData):r.formData}return new Request(i,a)}function cn(e,t){let n=new URL(e.url),r=typeof t==`string`?A(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ln(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function un(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function dn(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Tn(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(w(!En(f),`Cannot handle redirect results in processLoaderData`),Tn(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=hn(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=St),c||(c=!0,s=Ge(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function fn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=dn(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(w(s,`Did not find corresponding fetcher result`),Tn(s)){let t=hn(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(En(s))w(!1,`Unhandled fetcher revalidation redirect`);else{let e=Bn(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function pn(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==St).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function mn(e){return e?Tn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function hn(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function gn(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function _n(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new We(e||500,o,Error(s),!0)}function vn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(En(r))return{key:n,result:r}}}function yn(e){return k({...typeof e==`string`?A(e):e,hash:``})}function bn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function xn(e){return new We(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Sn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Cn(t))}function Cn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function wn(e){return On(e.result)&&ht.has(e.result.status)}function Tn(e){return e.type===`error`}function En(e){return(e&&e.type)===`redirect`}function Dn(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function On(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function kn(e){return ht.has(e)}function An(e){return On(e)&&kn(e.status)&&e.headers.has(`Location`)}function jn(e){return mt.has(e.toUpperCase())}function Mn(e){return ft.has(e.toUpperCase())}function Nn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Pn(e,t){let n=typeof t==`string`?A(t).search:t.search;if(e[e.length-1].route.index&&Nn(n||``))return e[e.length-1];let r=Me(e);return r[r.length-1]}function Fn(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function In(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ln(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Rn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Bn(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Vn(e,t){try{let n=e.sessionStorage.getItem(xt);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Hn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(xt,JSON.stringify(n))}catch(e){T(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Un(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Wn=f.createContext(null);Wn.displayName=`DataRouter`;var Gn=f.createContext(null);Gn.displayName=`DataRouterState`;var Kn=f.createContext(!1);function qn(){return f.useContext(Kn)}var Jn=f.createContext({isTransitioning:!1});Jn.displayName=`ViewTransition`;var Yn=f.createContext(new Map);Yn.displayName=`Fetchers`;var Xn=f.createContext(null);Xn.displayName=`Await`;var Zn=f.createContext(null);Zn.displayName=`Navigation`;var Qn=f.createContext(null);Qn.displayName=`Location`;var $n=f.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName=`Route`;var er=f.createContext(null);er.displayName=`RouteError`;var tr=`REACT_ROUTER_ERROR`,nr=`REDIRECT`,rr=`ROUTE_ERROR_RESPONSE`;function ir(e){if(e.startsWith(`${tr}:${nr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ar(e){if(e.startsWith(`${tr}:${rr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new We(t.status,t.statusText,t.data)}catch{}}function or(e,{relative:t}={}){w(sr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=f.useContext(Zn),{hash:i,pathname:a,search:o}=gr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ie([n,a])),r.createHref({pathname:s,search:o,hash:i})}function sr(){return f.useContext(Qn)!=null}function cr(){return w(sr(),`useLocation() may be used only in the context of a <Router> component.`),f.useContext(Qn).location}var lr=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function ur(e){f.useContext(Zn).static||f.useLayoutEffect(e)}function dr(){let{isDataRoute:e}=f.useContext($n);return e?Nr():fr()}function fr(){w(sr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=f.useContext(Wn),{basename:t,navigator:n}=f.useContext(Zn),{matches:r}=f.useContext($n),{pathname:i}=cr(),a=JSON.stringify(Ne(r)),o=f.useRef(!1);return ur(()=>{o.current=!0}),f.useCallback((r,s={})=>{if(T(o.current,lr),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Pe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ie([t,c.pathname])),ut(typeof r==`string`?r:k(r),n.createHref(c),st(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var pr=f.createContext(null);function mr(e){let t=f.useContext($n).outlet;return f.useMemo(()=>t&&f.createElement(pr.Provider,{value:e},t),[t,e])}function hr(){let{matches:e}=f.useContext($n);return e[e.length-1]?.params??{}}function gr(e,{relative:t}={}){let{matches:n}=f.useContext($n),{pathname:r}=cr(),i=JSON.stringify(Ne(n));return f.useMemo(()=>Pe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function _r(e,t,n){w(sr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=f.useContext(Zn),{matches:i}=f.useContext($n),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Fr(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
3
+
4
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=cr(),d;if(t){let e=typeof t==`string`?A(t):t;w(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let p=d.pathname||`/`,m=p;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):I(e,{pathname:m});T(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),T(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=wr(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ie([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ie([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?f.createElement(Qn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function vr(){let e=Mr(),t=Ge(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=f.createElement(f.Fragment,null,f.createElement(`p`,null,`💿 Hey developer 👋`),f.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,f.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,f.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),f.createElement(f.Fragment,null,f.createElement(`h2`,null,`Unexpected Application Error!`),f.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?f.createElement(`pre`,{style:i},n):null,o)}var yr=f.createElement(vr,null),br=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ar(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:f.createElement($n.Provider,{value:this.props.routeContext},f.createElement(er.Provider,{value:e,children:this.props.component}));return this.context?f.createElement(Sr,{error:e},t):t}};br.contextType=Kn;var xr=new WeakMap;function Sr({children:e,error:t}){let{basename:n,navigator:r}=f.useContext(Zn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ir(t.digest);if(e){let i=xr.get(t);if(i)throw i;let a=Je(e.location,n),o=a.absoluteURL||a.to;if(ut(e.location,o,st(r),`allow-explicit`),an(o))throw Error(`Invalid redirect location`);if(qe&&!xr.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw xr.set(t,n),n}}return f.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Cr({routeContext:e,match:t,children:n}){let r=f.useContext(Wn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement($n.Provider,{value:e},n)}function wr(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);w(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ke(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,p=null,m=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||yr,o&&(s<0&&c===0?(Fr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===c&&(d=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?p:d?m:n.route.Component?f.createElement(n.route.Component,null):n.route.element?n.route.element:e,f.createElement(Cr,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?f.createElement(br,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function Tr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Er(e){let t=f.useContext(Wn);return w(t,Tr(e)),t}function Dr(e){let t=f.useContext(Gn);return w(t,Tr(e)),t}function Or(e){let t=f.useContext($n);return w(t,Tr(e)),t}function kr(e){let t=Or(e),n=t.matches[t.matches.length-1];return w(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ar(){return kr(`useRouteId`)}function jr(){let{matches:e,loaderData:t}=Dr(`useMatches`);return f.useMemo(()=>e.map(e=>se(e,t)),[e,t])}function Mr(){let e=f.useContext(er),t=Dr(`useRouteError`),n=kr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Nr(){let{router:e}=Er(`useNavigate`),t=kr(`useNavigate`),n=f.useRef(!1);return ur(()=>{n.current=!0}),f.useCallback(async(r,i={})=>{T(n.current,lr),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Pr={};function Fr(e,t,n){!t&&!Pr[e]&&(Pr[e]=!0,T(!1,n))}var Ir={};function Lr(e,t){!e&&!Ir[t]&&(Ir[t]=!0,console.warn(t))}var Rr=f.useOptimistic,zr=()=>void 0;function Br(e){return Rr?Rr(e):[e,zr]}function Vr(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&T(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:f.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&T(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&T(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Hr=[`HydrateFallback`,`hydrateFallbackElement`],Ur=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Wr({router:e,flushSync:t,onError:n,useTransitions:r}){r=qn()||r;let[i,a]=f.useState(e.state),[o,s]=Br(i),[c,l]=f.useState(),[u,d]=f.useState({isTransitioning:!1}),[p,m]=f.useState(),[h,g]=f.useState(),[_,v]=f.useState(),y=f.useRef(new Map),b=f.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:_})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Ke(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),Lr(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Lr(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b)t&&u?t(()=>a(i)):r===!1?a(i):f.startTransition(()=>{r===!0&&s(e=>Gr(e,i)),a(i)});else if(t&&u){t(()=>{h&&(p?.resolve(),h.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>g(n))}else h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);f.useLayoutEffect(()=>e.subscribe(b),[e,b]),f.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new Ur)},[u]),f.useEffect(()=>{if(p&&c&&e.window){let t=c,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):f.startTransition(()=>{r===!0&&s(e=>Gr(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})}),g(i)}},[c,p,e.window,r,s]),f.useEffect(()=>{p&&c&&o.location.key===c.location.key&&p.resolve()},[p,h,o.location,c]),f.useEffect(()=>{!u.isTransitioning&&_&&(l(_.state),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[u.isTransitioning,_]);let x=f.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=f.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return f.createElement(f.Fragment,null,f.createElement(Wn.Provider,{value:C},f.createElement(Gn.Provider,{value:o},f.createElement(Yn.Provider,{value:y.current},f.createElement(Jn.Provider,{value:u},f.createElement(Yr,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},f.createElement(Kr,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function Gr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Kr=f.memo(qr);function qr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return _r(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Jr(e){return mr(e.context)}function Yr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){w(!sr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=f.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=A(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:p=null,key:m=`default`,mask:h}=n,g=f.useMemo(()=>{let e=Ee(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:p,key:m,mask:h},navigationType:r}},[s,l,u,d,p,m,r,h]);return T(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Zn.Provider,{value:c},f.createElement(Qn.Provider,{children:t,value:g}))}f.Component;var Xr=`get`,Zr=`application/x-www-form-urlencoded`;function Qr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function $r(e){return Qr(e)&&e.tagName.toLowerCase()===`button`}function ei(e){return Qr(e)&&e.tagName.toLowerCase()===`form`}function ti(e){return Qr(e)&&e.tagName.toLowerCase()===`input`}function ni(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ri(e,t){return e.button===0&&(!t||t===`_self`)&&!ni(e)}function ii(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ai(e,t){let n=ii(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var oi=null;function si(){if(oi===null)try{new FormData(document.createElement(`form`),0),oi=!1}catch{oi=!0}return oi}var ci=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function li(e){return e!=null&&!ci.has(e)?(T(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zr}"`),null):e}function ui(e,t){let n,r,i,a,o;if(ei(e)){let o=e.getAttribute(`action`);r=o?Ee(o,t):null,n=e.getAttribute(`method`)||Xr,i=li(e.getAttribute(`enctype`))||Zr,a=new FormData(e)}else if($r(e)||ti(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ee(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Xr,i=li(e.getAttribute(`formenctype`))||li(o.getAttribute(`enctype`))||Zr,a=new FormData(o,e),!si()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Qr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Xr,r=null,i=Zr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function di(e,t){if(e===!1||e==null)throw Error(t)}function fi(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Ee(i.pathname,t)===`/`?`${Le(t)}/_root.${r}`:`${Le(i.pathname)}.${r}`,i}async function pi(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mi(e){return e!=null&&typeof e.page==`string`}function hi(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function gi(e,t,n){return xi((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await pi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(hi).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function _i(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function vi(e,t,{includeHydrateFallback:n}={}){return yi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function yi(e){return[...new Set(e)]}function bi(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function xi(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!mi(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(bi(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Si(){let e=f.useContext(Wn);return di(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ci(){let e=f.useContext(Gn);return di(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var wi=f.createContext(void 0);wi.displayName=`FrameworkContext`;function Ti(){let e=f.useContext(wi);return di(e,`You must render this element inside a <HydratedRouter> element`),e}function Ei(e,t){let n=f.useContext(wi),[r,i]=f.useState(!1),[a,o]=f.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,p=f.useRef(null);f.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),f.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:Di(s,m),onBlur:Di(c,h),onMouseEnter:Di(l,m),onMouseLeave:Di(u,h),onTouchStart:Di(d,m)}]:[a,p,{}]:[!1,p,{}]}function Di(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Oi({page:e,...t}){let n=qn(),{nonce:r}=Ti(),{router:i}=Si(),a=f.useMemo(()=>I(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?f.createElement(Ai,{page:e,matches:a,...t}):f.createElement(ji,{page:e,matches:a,...t})):null}function ki(e){let{manifest:t,routeModules:n}=Ti(),[r,i]=f.useState([]);return f.useEffect(()=>{let r=!1;return gi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ai({page:e,matches:t,...n}){let r=cr(),{future:i}=Ti(),{basename:a}=Si(),o=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=fi(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return f.createElement(f.Fragment,null,o.map(e=>f.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ji({page:e,matches:t,...n}){let r=cr(),{future:i,manifest:a,routeModules:o}=Ti(),{basename:s}=Si(),{loaderData:c,matches:l}=Ci(),u=f.useMemo(()=>_i(e,t,l,a,r,`data`),[e,t,l,a,r]),d=f.useMemo(()=>_i(e,t,l,a,r,`assets`),[e,t,l,a,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=fi(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),m=f.useMemo(()=>vi(d,a),[d,a]),h=ki(d);return f.createElement(f.Fragment,null,p.map(e=>f.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>f.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>f.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Mi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}f.Component;var Ni=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Ni&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Pi(e,t){return Ot({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:C({window:t?.window}),hydrationData:t?.hydrationData||L(),routes:e,mapRouteProperties:Vr,hydrationRouteProperties:Hr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function L(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Fi(e.errors)}),e}function Fi(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new We(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Ue.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Ii=f.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:y}=f.useContext(Zn),b=typeof l==`string`&&v.test(l),x=Je(l,g);l=x.to;let S=or(l,{relative:r}),C=cr(),w=null;if(o){let e=Pe(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Ie([g,e.pathname])),w=_.createHref(e)}let[T,E,D]=Ei(n,m),O=Vi(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:p,useTransitions:y});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(x.isExternal||i),ee=f.createElement(`a`,{...m,...D,href:(A?w:void 0)||x.absoluteURL||S,onClick:A?k:e,ref:Mi(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?f.createElement(f.Fragment,null,ee,f.createElement(Oi,{page:S})):ee});Ii.displayName=`Link`;var Li=f.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=gr(a,{relative:c.relative}),d=cr(),p=f.useContext(Gn),{navigator:m,basename:h}=f.useContext(Zn),g=p!=null&&qi(u)&&o===!0,_=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Ee(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return f.createElement(Ii,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Li.displayName=`NavLink`;var Ri=f.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Xr,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=f.useContext(Zn),_=Gi(),y=Ki(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&v.test(s);return f.createElement(`form`,{ref:h,method:b,action:y,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p});g&&n!==!1?f.startTransition(()=>m()):m()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ri.displayName=`Form`;function zi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bi(e){let t=f.useContext(Wn);return w(t,zi(e)),t}function Vi(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=dr(),d=cr(),p=gr(e,{relative:o});return f.useCallback(m=>{if(ri(m,t)){m.preventDefault();let t=n===void 0?k(d)===k(p):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?f.startTransition(()=>h()):h()}},[d,u,p,n,r,i,t,e,a,o,s,c,l])}function Hi(e){T(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=f.useRef(ii(e)),n=f.useRef(!1),r=cr(),i=f.useMemo(()=>ai(r.search,n.current?null:t.current),[r.search]),a=dr();return[i,f.useCallback((e,t)=>{let r=ii(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Ui=0,Wi=()=>`__${String(++Ui)}__`;function Gi(){let{router:e}=Bi(`useSubmit`),{basename:t}=f.useContext(Zn),n=Ar(),r=e.fetch,i=e.navigate;return f.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ui(e,t);if(a.navigate===!1){let e=a.fetcherKey||Wi();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ki(e,{relative:t}={}){let{basename:n}=f.useContext(Zn),r=f.useContext($n);w(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...gr(e||`.`,{relative:t})},o=cr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ie([n,a.pathname])),k(a)}function qi(e,{relative:t}={}){let n=f.useContext(Jn);w(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Bi(`useViewTransitionState`),i=gr(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ee(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ee(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Se(i.pathname,o)!=null||Se(i.pathname,a)!=null}var Ji=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),Yi=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ji()})),Xi=l(Yi(),1);function Zi(e){return f.createElement(Wr,{flushSync:Xi.flushSync,...e})}function Qi(e){let t=(0,f.useCallback)(t=>{let n=e.onDidChange(t);return()=>n.dispose()},[e]);return(0,f.useSyncExternalStore)(t,e.getSnapshot),e}var $i=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ea=o(((e,t)=>{t.exports=$i()})),R=ea(),ta=(0,f.createContext)(null);function na({services:e,children:t}){return(0,R.jsx)(ta.Provider,{value:e,children:t})}function ra(e){let t=(0,f.useContext)(ta);if(!t)throw Error(`组件必须位于 ServicesProvider 内`);return t.invokeFunction(t=>t.get(e))}var ia=class{ctor;staticArguments;supportsDelayedInstantiation;constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},aa;(function(e){e.serviceIds=new Map,e.DI_TARGET=`$di$target`,e.DI_DEPENDENCIES=`$di$dependencies`;function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(aa||={});var oa=ca(`instantiationService`);function sa(e,t,n){t[aa.DI_TARGET]===t?t[aa.DI_DEPENDENCIES].push({id:e,index:n}):(t[aa.DI_DEPENDENCIES]=[{id:e,index:n}],t[aa.DI_TARGET]=t)}function ca(e){if(aa.serviceIds.has(e))return aa.serviceIds.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);sa(t,e,r)};return t.toString=()=>e,aa.serviceIds.set(e,t),t}var la=new class{unexpectedErrorHandler;listeners;constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ga.isErrorNoTelemetry(e)?new ga(e.message+`
5
+
6
+ `+e.stack):Error(e.message+`
7
+
8
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function ua(e){fa(e)||la.onUnexpectedError(e)}var da=`Canceled`;function fa(e){return e instanceof pa||e instanceof Error&&e.name===da&&e.message===da}var pa=class extends Error{constructor(){super(da),this.name=this.message}};function ma(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}function ha(e){return Error(e?`Illegal state: ${e}`:`Illegal state`)}var ga=class e extends Error{name;constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}};function _a(e){let t=this,n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var va;(function(e){function t(e){return e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function s(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=s;function c(e){return e[Symbol.iterator]().next().value}e.first=c;function l(e,t){for(let n of e)if(t(n))return!0;return!1}e.some=l;function u(e,t){for(let n of e)if(t(n))return n}e.find=u;function*d(e,t){for(let n of e)t(n)&&(yield n)}e.filter=d;function*f(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=f;function*p(...e){for(let t of e)for(let e of t)yield e}e.concat=p;function m(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=m;function*h(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=h;function g(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=g})(va||={});var ya=null;function ba(e){return ya?.trackDisposable(e),e}function xa(e){ya?.markAsDisposed(e)}function Sa(e,t){ya?.setParent(e,t)}function Ca(e){return ya?.markAsSingleton(e),e}function wa(e){if(va.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function Ta(...e){return Ea(()=>wa(e))}function Ea(e){let t=ba({dispose:_a(()=>{xa(t),e()})});return t}var Da=class e{static DISABLE_DISPOSED_WARNING=!1;_toDispose=new Set;_isDisposed=!1;constructor(){ba(this)}dispose(){this._isDisposed||(xa(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{wa(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return Sa(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}},Oa=class{static None=Object.freeze({dispose(){}});_store=new Da;constructor(){ba(this),Sa(this._store,this)}dispose(){xa(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},ka=class{_value;_isDisposed=!1;constructor(){ba(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Sa(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,xa(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&Sa(e,null),e}},Aa=class{dispose=()=>{};unset=()=>{};isset=()=>!1;constructor(){ba(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,xa(this))},this}},ja=class e{static Undefined=new e(void 0);element;next;prev;constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},Ma=class{_first=ja.Undefined;_last=ja.Undefined;_size=0;get size(){return this._size}isEmpty(){return this._first===ja.Undefined}clear(){let e=this._first;for(;e!==ja.Undefined;){let t=e.next;e.prev=ja.Undefined,e.next=ja.Undefined,e=t}this._first=ja.Undefined,this._last=ja.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new ja(e);if(this._first===ja.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==ja.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ja.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ja.Undefined&&e.next!==ja.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ja.Undefined&&e.next===ja.Undefined?(this._first=ja.Undefined,this._last=ja.Undefined):e.next===ja.Undefined?(this._last=this._last.prev,this._last.next=ja.Undefined):e.prev===ja.Undefined&&(this._first=this._first.next,this._first.prev=ja.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==ja.Undefined;)yield e.element,e=e.next}};function Na(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),n}function Pa(e,t,...n){return Na(t,n)}var Fa=!1,Ia=!1,La=!1,Ra=!1,za=!1,Ba=void 0,Va=`en`,Ha=void 0,Ua=typeof self==`object`?self:typeof global==`object`?global:{},Wa=void 0;Ua.vscode!==void 0&&Ua.vscode.process!==void 0?Wa=Ua.vscode.process:typeof process<`u`&&(Wa=process);var Ga=typeof Wa?.versions?.electron==`string`&&Wa?.type===`renderer`;if(typeof navigator==`object`&&!Ga)Ha=navigator.userAgent,Fa=Ha.indexOf(`Windows`)>=0,Ia=Ha.indexOf(`Macintosh`)>=0,za=(Ha.indexOf(`Macintosh`)>=0||Ha.indexOf(`iPad`)>=0||Ha.indexOf(`iPhone`)>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,La=Ha.indexOf(`Linux`)>=0,Ha?.indexOf(`Mobi`),Ra=!0,Ba=(Pa({key:`ensureLoaderPluginIsLoaded`,comment:[`{Locked}`]},`_`),`en`),Va=Ba,navigator.language;else if(typeof Wa==`object`){Fa=Wa.platform===`win32`,Ia=Wa.platform===`darwin`,La=Wa.platform===`linux`,La&&Wa.env.SNAP&&Wa.env.SNAP_REVISION,Wa.env.CI||Wa.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ba=`en`,Va=`en`;let e=Wa.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages[`*`];Ba=t.locale,t.osLocale,Va=n||`en`,t._translationsConfigFile}catch{}}else console.error(`Unable to resolve platform.`);var Ka=Fa,qa=Ia,Ja=La,Ya=Ra;Ra&&Ua.importScripts;var Xa=Ha,Za=Va,Qa;(function(e){function t(){return Za}e.value=t;function n(){return Za.length===2?Za===`en`:Za.length>=3&&Za[0]===`e`&&Za[1]===`n`&&Za[2]===`-`}e.isDefaultVariant=n;function r(){return Za===`en`}e.isDefault=r})(Qa||={});var $a=typeof Ua.postMessage==`function`&&!Ua.importScripts,eo=(()=>{if($a){let e=[];Ua.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),Ua.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})(),to;(function(e){e[e.Windows=1]=`Windows`,e[e.Macintosh=2]=`Macintosh`,e[e.Linux=3]=`Linux`})(to||={});var no=Ia||za?to.Macintosh:Fa?to.Windows:to.Linux,ro=!!(Xa&&Xa.indexOf(`Chrome`)>=0),io=!!(Xa&&Xa.indexOf(`Firefox`)>=0),ao=!!(!ro&&Xa&&Xa.indexOf(`Safari`)>=0),oo=!!(Xa&&Xa.indexOf(`Edg/`)>=0);Xa&&Xa.indexOf(`Android`);var so=Ua.performance&&typeof Ua.performance.now==`function`,co=class e{_highResolution;_startTime;_stopTime;static create(t=!0){return new e(t)}constructor(e){this._highResolution=so&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}_now(){return this._highResolution?Ua.performance.now():Date.now()}},lo;(function(e){e.None=()=>Oa.None;function t(e,t){return u(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(e,t,n){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=r;function i(e,t,n){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=i;function a(e,t,n){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=a;function o(e){return e}e.signal=o;function s(...e){return(t,n=null,r)=>Ta(...e.map(e=>e(e=>t.call(n,e),null,r)))}e.any=s;function c(e,t,n,i){let a=n;return r(e,e=>(a=t(a,e),a),i)}e.reduce=c;function l(e,t){let n,r=new B({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function u(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new B({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=0,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=u;function d(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=d;function f(e,t=(e,t)=>e===t,n){let r=!0,i;return a(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=f;function p(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=p;function m(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):o.fire(e)}),a=()=>{r?.forEach(e=>o.fire(e)),r=null},o=new B({onWillAddFirstListener(){i||=e(e=>o.fire(e))},onDidAddFirstListener(){r&&(t?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return o.event}e.buffer=m;class h{event;disposables=new Da;constructor(e){this.event=e}map(e){return new h(r(this.event,e,this.disposables))}forEach(e){return new h(i(this.event,e,this.disposables))}filter(e){return new h(a(this.event,e,this.disposables))}reduce(e,t){return new h(c(this.event,e,t,this.disposables))}latch(){return new h(f(this.event,void 0,this.disposables))}debounce(e,t=100,n=!1,r=!1,i){return new h(u(this.event,e,t,n,r,i,this.disposables))}on(e,t,n){return this.event(e,t,n)}once(e,t,r){return n(this.event)(e,t,r)}dispose(){this.disposables.dispose()}}function g(e){return new h(e)}e.chain=g;function _(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new B({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=_;function v(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new B({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=v;function y(e){return new Promise(t=>n(e)(t))}e.toPromise=y;function b(e,t){return t(void 0),e(e=>t(e))}e.runAndSubscribe=b;function x(e,t){let n=null;function r(e){n?.dispose(),n=new Da,t(e,n)}r(void 0);let i=e(e=>r(e));return Ea(()=>{i.dispose(),n?.dispose()})}e.runAndSubscribeWithStore=x;class S{_observable;emitter;_counter=0;_hasChanged=!1;constructor(e,t){this._observable=e;let n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new B(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function C(e,t){return new S(e,t).emitter.event}e.fromObservable=C;function w(e){return t=>{let n=0,r=!1,i={beginUpdate(){n++},endUpdate(){n--,n===0&&(e.reportChanges(),r&&(r=!1,t()))},handlePossibleChange(){},handleChange(){r=!0}};return e.addObserver(i),{dispose(){e.removeObserver(i)}}}}e.fromObservableLight=w})(lo||={});var uo=class e{static all=new Set;static _idPool=0;name;listenerCount=0;invocationCount=0;elapsedOverall=0;durations=[];_stopWatch;constructor(t){this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new co(!0),this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},fo=-1,po=class{threshold;name;_stacks;_warnCountdown=0;constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let e,r=0;for(let[t,n]of this._stacks)(!e||r<n)&&(e=t,r=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}},z=class e{value;static create(){return new e(Error().stack??``)}constructor(e){this.value=e}print(){console.warn(this.value.split(`
9
+ `).slice(2).join(`
10
+ `))}},mo=class{callback;callbackThis;stack;subscription=new Aa;constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n}invoke(e){this.callback.call(this.callbackThis,e)}},B=class{_options;_leakageMon;_perfMon;_disposed=!1;_event;_deliveryQueue;_listeners;constructor(e){this._options=e,this._leakageMon=fo>0||this._options?.leakWarningThreshold?new po(this._options?.leakWarningThreshold??fo):void 0,this._perfMon=this._options?._profName?new uo(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),this._deliveryQueue?.clear(this),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event||=(e,t,n)=>{if(this._listeners||=new Ma,this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Oa.None;let r=this._listeners.isEmpty();r&&this._options?.onWillAddFirstListener&&this._options.onWillAddFirstListener(this);let i,a;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(a=z.create(),i=this._leakageMon.check(a,this._listeners.size+1));let o=new mo(e,t,a),s=this._listeners.push(o);r&&this._options?.onDidAddFirstListener&&this._options.onDidAddFirstListener(this),this._options?.onDidAddListener&&this._options.onDidAddListener(this,e,t);let c=o.subscription.set(()=>{i?.(),this._disposed||(this._options?.onWillRemoveListener?.(this),s(),this._options&&this._options.onDidRemoveLastListener&&(!this._listeners||this._listeners.isEmpty())&&this._options.onDidRemoveLastListener(this))});return n instanceof Da?n.add(c):Array.isArray(n)&&n.push(c),c},this._event}fire(e){if(this._listeners){this._deliveryQueue||=new go(this._options?.onListenerError);for(let t of this._listeners)this._deliveryQueue.push(this,t,e);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}},ho=class{_onListenerError;_queue=new Ma;constructor(e=ua){this._onListenerError=e}get size(){return this._queue.size}push(e,t,n){this._queue.push(new _o(e,t,n))}clear(e){let t=new Ma;for(let n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){this._onListenerError(e)}}}},go=class extends ho{clear(e){this._queue.clear()}},_o=class{emitter;listener;event;constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}},vo=class extends B{_isPaused=0;_eventQueue=new Ma;_mergeFn;constructor(e){super(e),this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(this._isPaused===0?super.fire(e):this._eventQueue.push(e))}},yo=class{_token;constructor(e,t){this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},bo=class{_token;constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}},xo;(function(){xo=typeof requestIdleCallback!=`function`||typeof cancelIdleCallback!=`function`?e=>{eo(()=>{if(t)return;let n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let t=!1;return{dispose(){t||=!0}}}:(e,t)=>{let n=requestIdleCallback(e,typeof t==`number`?{timeout:t}:void 0),r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}}})();var So=class{_executor;_handle;_didRun=!1;_value;_error;constructor(e){this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=xo(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},Co;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(Co||={}),class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static EMPTY=e.fromArray([]);_state;_results;_error;_onStateChanged;constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new B,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e instanceof Error?e:Error(String(e)))}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await lo.toPromise(this._onStateChanged.event)}while(1)}}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};var wo=class{key;data;incoming=new Map;outgoing=new Map;constructor(e,t){this.key=e,this.data=t}},To=class{_hashFn;_nodes=new Map;constructor(e){this._hashFn=e}roots(){let e=[];for(let t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){let n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing.set(r.key,r),r.incoming.set(n.key,n)}removeNode(e){let t=this._hashFn(e);this._nodes.delete(t);for(let e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){let t=this._hashFn(e),n=this._nodes.get(t);return n||(n=new wo(t,e),this._nodes.set(t,n)),n}lookup(e){return this._nodes.get(this._hashFn(e))}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[t,n]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...n.incoming.keys()].join(`, `)}]\n\t(outgoing ->)[${[...n.outgoing.keys()].join(`,`)}]\n`);return e.join(`
11
+ `)}findCycleSlow(){for(let[e,t]of this._nodes){let n=new Set([e]),r=this._findCycle(t,n);if(r)return r}}_findCycle(e,t){for(let[n,r]of e.outgoing){if(t.has(n))return[...t,n].join(` -> `);t.add(n);let e=this._findCycle(r,t);if(e)return e;t.delete(n)}}},Eo=class{_entries=new Map;constructor(...e){for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},Do=!1,Oo=class extends Error{constructor(e){super(`cyclic dependency between services`),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}},ko=class e{_services;_strict;_parent;_enableTracing;_globalGraph;_globalGraphImplicitDependency;constructor(e=new Eo,t=!1,n,r=Do){this._services=e,this._strict=t,this._parent=n,this._enableTracing=r,this._services.set(oa,this),this._globalGraph=r?n?._globalGraph??new To(e=>e):void 0}createChild(t){return new e(t,this._strict,this,this._enableTracing)}invokeFunction(e,...t){let n=Ao.traceInvocation(this._enableTracing,e),r=!1;try{return e({get:e=>{if(r)throw ha(`service accessor is only valid during the invocation of its target method`);let t=this._getOrCreateServiceInstance(e,n);if(!t)throw Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{r=!0,n.stop()}}createInstance(e,...t){let n,r;return e instanceof ia?(n=Ao.traceCreation(this._enableTracing,e.ctor),r=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=Ao.traceCreation(this._enableTracing,e),r=this._createInstance(e,t,n)),n.stop(),r}_createInstance(e,t=[],n){let r=aa.getServiceDependencies(e).sort((e,t)=>e.index-t.index),i=[];for(let t of r){let r=this._getOrCreateServiceInstance(t.id,n);r||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`,!1),i.push(r)}let a=r.length>0?r[0].index:t.length;if(t.length!==a){console.trace(`[createInstance] First service dependency of ${e.name} at position ${a+1} conflicts with ${t.length} static arguments`);let n=a-t.length;t=n>0?t.concat(Array(n)):t.slice(0,a)}return Reflect.construct(e,t.concat(i))}_setServiceInstance(e,t){if(this._services.get(e)instanceof ia)this._services.set(e,t);else if(this._parent)this._parent._setServiceInstance(e,t);else throw Error(`illegalState - setting UNKNOWN service instance`)}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));let n=this._getServiceInstanceOrDescriptor(e);return n instanceof ia?this._safeCreateAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_activeInstantiations=new Set;_safeCreateAndCacheServiceInstance(e,t,n){if(this._activeInstantiations.has(e))throw Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,n)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,n){let r=new To(e=>e.id.toString()),i=0,a=[{id:e,desc:t,_trace:n}];for(;a.length;){let t=a.pop();if(r.lookupOrInsertNode(t),i++>1e3)throw new Oo(r);for(let n of aa.getServiceDependencies(t.desc.ctor)){let i=this._getServiceInstanceOrDescriptor(n.id);if(i||this._throwIfStrict(`[createInstance] ${e} depends on ${n.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(n.id)),i instanceof ia){let e={id:n.id,desc:i,_trace:t._trace.branch(n.id,!0)};r.insertEdge(t,e),a.push(e)}}}for(;;){let e=r.roots();if(e.length===0){if(!r.isEmpty())throw new Oo(r);break}for(let{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof ia){let e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}r.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],r,i){if(this._services.get(e)instanceof ia)return this._createServiceInstance(e,t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(t,n,r=[],i,a){if(i){let i=new e(void 0,this._strict,this,this._enableTracing);i._globalGraphImplicitDependency=String(t);let o=new Map,s=new So(()=>{let e=i._createInstance(n,r,a);for(let[t,n]of o){let r=e[t];if(typeof r==`function`)for(let t of n)r.apply(e,t)}return o.clear(),e});return new Proxy(Object.create(null),{get(e,t){if(!s.isInitialized&&typeof t==`string`&&(t.startsWith(`onDid`)||t.startsWith(`onWill`))){let e=o.get(t);return e||(e=new Ma,o.set(t,e)),(t,n,r)=>Ea(e.push([t,n,r]))}if(t in e)return e[t];let n=s.value,r=n[t];return typeof r==`function`&&(r=r.bind(n),e[t]=r),r},set(e,t,n){return s.value[t]=n,!0},getPrototypeOf(e){return n.prototype}})}return this._createInstance(n,r,a)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw Error(e)}},Ao=class e{type;name;static all=new Set;static _None=new class extends e{constructor(){super(0,null)}stop(){}branch(){return this}};static traceInvocation(t,n){return t?new e(2,n.name||Error().stack.split(`
12
+ `).slice(3,4).join(`
13
+ `)):e._None}static traceCreation(t,n){return t?new e(1,n.name):e._None}static _totals=0;_start=Date.now();_dep=[];constructor(e,t){this.type=e,this.name=t}branch(t,n){let r=new e(3,t.toString());return this._dep.push([t,n,r]),r}stop(){let t=Date.now()-this._start;e._totals+=t;let n=!1;function r(e,t){let i=[],a=Array(e+1).join(` `);for(let[o,s,c]of t._dep)if(s&&c){n=!0,i.push(`${a}CREATES -> ${o}`);let t=r(e+1,c);t&&i.push(t)}else i.push(`${a}uses -> ${o}`);return i.join(`
14
+ `)}let i=[`${this.type===1?`CREATE`:`CALL`} ${this.name}`,`${r(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${e._totals.toFixed(2)}ms)`];(t>2||n)&&e.all.add(i.join(`
15
+ `))}},jo=class extends Error{status;constructor(e,t){super(t),this.status=e,this.name=`HttpError`}},Mo=class{options;constructor(e){this.options=e}get(e){return this.request(`GET`,e)}post(e,t,n=[200]){return this.request(`POST`,e,t,n)}patch(e,t){return this.request(`PATCH`,e,t)}delete(e){return this.request(`DELETE`,e)}async request(e,t,n,r=[200]){let i=await this.options.requestLib(`${this.options.endpoint??``}/api/${t}`,{method:e,headers:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),a;try{a=i.body?JSON.parse(i.body):void 0}catch{a=void 0}if(!r.includes(i.status)){let e=a&&typeof a==`object`&&`error`in a?String(a.error):i.body||`请求失败 (${i.status})`;throw new jo(i.status,e)}return a}},No=class e{options;static fetchToRequestLib=e=>async(t,n)=>{let r=await e(t,{method:n.method,headers:n.headers,body:n.body});return{status:r.status,body:await r.text()}};client;project;conformance;changelog;baselines;tasks;changes;code;constructor(e){this.options=e,this.client=new Mo(e),this.project={get:()=>this.client.get(`project`)},this.conformance={list:()=>this.client.get(`conformance`),readme:e=>this.client.get(`conformance/readme?${Po({rule:e})}`)},this.changelog={list:()=>this.client.get(`changelog`),files:e=>this.client.get(`changelog/${encodeURIComponent(e)}/files`),diff:(e,t)=>this.client.get(`changelog/${encodeURIComponent(e)}/diff?${Po({path:t})}`),update:(e,t)=>this.client.patch(`changelog/${encodeURIComponent(e)}`,t)},this.baselines={list:()=>this.client.get(`baselines`),delete:(e,t,n)=>this.client.delete(`namespaces/${encodeURIComponent(e)}/baselines?${Po({file:t,version:n})}`)},this.tasks={list:()=>this.client.get(`tasks`),detail:e=>this.client.get(`tasks/${encodeURIComponent(e)}`),removable:()=>this.client.get(`tasks/removable`),prune:()=>this.client.delete(`tasks/removable`),approve:(e,t,n)=>this.client.post(`tasks/${encodeURIComponent(e)}/approvals`,{caseIds:t,baselineVersion:n},[200,409])},this.changes={list:e=>this.client.get(`baseline-changes?${Po({ref:e})}`),review:(e,t,n,r)=>this.client.patch(`baseline-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})},this.code={list:e=>this.client.get(`code-changes?${Po({ref:e})}`),diff:(e,t,n)=>this.client.get(`code-changes/diff?${Po({ref:e,path:t,...n?{version:n}:{}})}`),review:(e,t,n,r)=>this.client.patch(`code-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})}}clone(){return new e(this.options)}};function Po(e){return new URLSearchParams(e).toString()}var Fo=class{changed;state={data:null,loading:!1,error:null};currentKey=null;get key(){return this.currentKey}generation=0;pending=null;constructor(e){this.changed=e}clear(){this.currentKey=null,this.generation++,this.pending=null,this.state={data:null,loading:!1,error:null},this.changed()}load(e,t,n=!1){if(e!==this.key&&(this.currentKey=e,this.generation++,this.pending=null,this.state={data:null,loading:!1,error:null}),this.pending&&!n)return this.pending;let r=++this.generation;return this.state={...this.state,loading:!0,error:null},this.pending=Promise.resolve().then(t).then(e=>{r===this.generation&&(this.state={data:e,loading:!1,error:null})},e=>{if(r!==this.generation)return;let t=e instanceof Error?e:Error(String(e));this.state={data:t instanceof jo&&t.status===404?null:this.state.data,loading:!1,error:t}}).then(()=>{r===this.generation&&(this.pending=null,this.changed())}),this.changed(),this.pending}dispose(){this.generation++,this.pending=null}},Io=ca(`baselineService`),Lo=class extends Oa{sdk=new No({requestLib:No.fetchToRequestLib(fetch)});changed=this._register(new B);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;get loading(){return this.list.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}list=this._register(new Fo(()=>this.publish()));get baseline(){return this.list.state}async refresh(){await this.list.load(`baseline`,()=>this.sdk.baselines.list())}async deleteBaseline(e,t,n){await this.sdk.baselines.delete(e,t,n),await this.list.load(`baseline`,()=>this.sdk.baselines.list(),!0)}dispose(){this.disposed=!0,super.dispose()}},Ro=ca(`tasksService`),zo=class extends Oa{sdk=new No({requestLib:No.fetchToRequestLib(fetch)});changed=this._register(new B);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;get loading(){return this.list.state.loading||this.detail.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}list=this._register(new Fo(()=>this.publish()));detail=this._register(new Fo(()=>this.publish()));removableCount=this._register(new Fo(()=>this.publish()));get removable(){return this.removableCount.state.data?.count??0}async prune(){let{count:e}=await this.sdk.tasks.prune();return await this.removableCount.load(`removable`,()=>this.sdk.tasks.removable(),!0),e}get tasks(){return this.list.state}get task(){return this.detail.state}async refreshTask(e,t=!1){e?(await this.detail.load(e,()=>this.sdk.tasks.detail(e),t),await this.refreshUncachedSummary()):this.detail.clear()}async refreshUncachedSummary(){let e=this.task.data;!this.disposed&&e&&this.tasks.data?.some(t=>t.id===e.task.id&&t.cached===!1)&&await this.list.load(`tasks`,()=>this.sdk.tasks.list(),!0)}async refresh(e){await Promise.all([this.list.load(`tasks`,()=>this.sdk.tasks.list()),this.removableCount.load(`removable`,()=>this.sdk.tasks.removable()),this.refreshTask(e)]),await this.refreshUncachedSummary()}async approve(e,t,n){let r=await this.sdk.tasks.approve(e,t,n);return await Promise.all([this.list.load(`tasks`,()=>this.sdk.tasks.list(),!0),this.detail.key===e?this.refreshTask(e,!0):Promise.resolve()]),await this.refreshUncachedSummary(),r}dispose(){this.disposed=!0,super.dispose()}},Bo=ca(`baselineChangeService`),Vo=class extends Oa{sdk=new No({requestLib:No.fetchToRequestLib(fetch)});changed=this._register(new B);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;get loading(){return this.projectResource.state.loading||this.changes.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}projectResource=this._register(new Fo(()=>this.publish()));changes=this._register(new Fo(()=>this.publish()));get project(){return this.projectResource.state}get baselineChanges(){return this.changes.state}async refresh(e){let t=++this.refreshRequest,n=e||this.project.data?.defaultRef;if(n&&this.changes.key!==n&&this.changes.clear(),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||t!==this.refreshRequest)return;let r=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(r,()=>this.sdk.changes.list(r))}async reviewBaseline(e,t,n,r){let i=this.refreshRequest;await this.sdk.changes.review(e,t,n,r),!(this.disposed||i!==this.refreshRequest)&&await this.changes.load(e,()=>this.sdk.changes.list(e),!0)}dispose(){this.disposed=!0,super.dispose()}};function Ho(e,t,n){return JSON.stringify([e,t,n])}var Uo=ca(`codeDiffService`),Wo=class extends Oa{sdk=new No({requestLib:No.fetchToRequestLib(fetch)});changed=this._register(new B);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;diffRequest=0;get loading(){return this.projectResource.state.loading||this.changes.state.loading||this.diff.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}projectResource=this._register(new Fo(()=>this.publish()));changes=this._register(new Fo(()=>this.publish()));diff=this._register(new Fo(()=>this.publish()));get project(){return this.projectResource.state}get codeChanges(){return this.changes.state}get codeDiff(){return this.diff.state}get codeDiffKey(){return this.diff.key}async refreshDiff(e){this.diffRequest++;let t=this.codeChanges.data,n=t?.files.find(n=>n.path===(e||t.files[0]?.path));if(!t||!n){this.diff.clear();return}let r=Ho(t.sha,n.path,n.reviewKey);await this.diff.load(r,()=>this.sdk.code.diff(t.sha,n.path,n.reviewKey))}async refresh(e,t=``,{diff:n=!0}={}){let r=++this.refreshRequest,i=this.diffRequest,a=e||this.project.data?.defaultRef;if(a&&this.changes.key!==a&&(this.changes.clear(),this.diff.clear()),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||r!==this.refreshRequest)return;let o=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(o,()=>this.sdk.code.list(o)),n&&!this.disposed&&r===this.refreshRequest&&i===this.diffRequest&&await this.refreshDiff(t)}async reviewCode(e,t,n,r,{diff:i=!0}={}){let a=this.refreshRequest,o=this.diffRequest,s=this.codeDiff.data?.path||``;await this.sdk.code.review(e,t,n,r),!(this.disposed||a!==this.refreshRequest)&&(await this.changes.load(e,()=>this.sdk.code.list(e),!0),i&&!this.disposed&&a===this.refreshRequest&&o===this.diffRequest&&await this.refreshDiff(s))}dispose(){this.disposed=!0,super.dispose()}},Go=ca(`changelogService`),Ko=class extends Oa{sdk=new No({requestLib:No.fetchToRequestLib(fetch)});changed=this._register(new B);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;writeChain=Promise.resolve();writeRevision=0;updatedNotes=new Map;publish(){this.disposed||(this.revision++,this.changed.fire())}commitResource=this._register(new Fo(()=>this.publish()));fileResource=this._register(new Fo(()=>this.publish()));diffResource=this._register(new Fo(()=>this.publish()));get commits(){return this.commitResource.state}get files(){return this.fileResource.state}get diff(){return this.diffResource.state}get loading(){return this.commits.loading||this.files.loading||this.diff.loading}async refresh(){let e=++this.refreshRequest;await this.writeChain,!(this.disposed||e!==this.refreshRequest)&&(await this.commitResource.load(`changelog`,async()=>{let e=this.writeRevision,t=await this.sdk.changelog.list();return t?{...t,commits:t.commits.map(t=>{let n=this.updatedNotes.get(t.commitId);return n&&n.revision>e?n.note:t})}:``}),this.disposed||e!==this.refreshRequest||this.commits.data&&this.commits.data.commits.length||(this.fileResource.clear(),this.diffResource.clear()))}async selectCommit(e){this.diffResource.clear(),e?await this.fileResource.load(e,()=>this.sdk.changelog.files(e)):this.fileResource.clear()}async selectFile(e,t){!e||!t?this.diffResource.clear():await this.diffResource.load(JSON.stringify([e,t]),()=>this.sdk.changelog.diff(e,t))}update(e,t){let n=this.writeChain.then(async()=>{let n=await this.sdk.changelog.update(e,t);this.updatedNotes.set(e,{revision:++this.writeRevision,note:n});let r=this.commitResource.state;return r.data&&!this.disposed&&(this.commitResource.state={...r,data:{...r.data,commits:r.data.commits.map(t=>t.commitId===e?n:t)}},this.publish()),n});return this.writeChain=n.catch(()=>{}),n}dispose(){this.disposed=!0,super.dispose()}},qo=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Jo=o(((e,t)=>{t.exports=qo()})),Yo=o((e=>{var t=Jo(),n=d(),r=Yi();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var ee=Symbol.for(`react.client.reference`);function te(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?te(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var j=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var I=ie(null),oe=ie(null),se=ie(null),ce=ie(null);function le(e,t){switch(F(se,t),F(oe,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(I),F(I,e)}function ue(){ae(I),ae(oe),ae(se)}function de(e){e.memoizedState!==null&&F(ce,e);var t=I.current,n=Ud(t,e.type);t!==n&&(F(oe,e),F(I,n))}function fe(e){oe.current===e&&(ae(I),ae(oe)),ce.current===e&&(ae(ce),$f._currentValue=P)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
16
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
17
+ `+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
18
+ `),l=s.split(`
19
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
20
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
21
+ Error generating stack: `+e.message+`
22
+ `+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=N.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function it(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ot])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Tt={},Et={};function Dt(e){return be.call(Et,e)?!0:be.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function Bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ut(e,t,n){t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(j(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&qt(e,o,t[o])}function Yt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Xt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Rt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(Su(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _n(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?_n:vn,this.isPropagationStopped=vn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=p({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=p({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(p({},Dn,{dataTransfer:0})),An=yn(p({},Sn,{relatedTarget:0})),jn=yn(p({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(p({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(p({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=yn(p({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=yn(p({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=yn(p({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=yn(p({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=yn(p({},Dn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Wn=yn(p({},bn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=ln&&`CompositionEvent`in window,qn=null;ln&&`documentMode`in document&&(qn=document.documentMode);var Jn=ln&&`TextEvent`in window&&!qn,Yn=ln&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=Od(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){xd(e,0)}function lr(e){if(Ft(_t(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(ln){var fr;if(ln){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,tn(e)),sn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!be.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=It(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=Od(jr,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};ln&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),St(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<pu)throw pu=0,mu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,I.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ci(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return pi(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=ci(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=ci(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=ci(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:ye(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:ye(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-Le(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,L=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:X(`cancel`,t),X(`close`,t);break;case`iframe`:case`object`:case`embed`:X(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)X(yd[n],t);break;case`source`:X(`error`,t);break;case`img`:case`image`:case`link`:X(`error`,t),X(`load`,t);break;case`details`:X(`toggle`,t);break;case`input`:X(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:X(`invalid`,t);break;case`textarea`:X(`invalid`,t),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Z(t.textContent,n)?(r.popover!=null&&(X(`beforetoggle`,t),X(`toggle`,t)),r.onScroll!=null&&X(`scroll`,t),r.onScrollEnd!=null&&X(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function Vi(e){if(e!==Ni)return!1;if(!L)return Bi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Wd(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=df(e)}else t===27?(t=Pi,Qd(e.type)?(e=uf,uf=null,Pi=e):Pi=t):Pi=Ni?lf(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=Ni=null,L=!1}function Ui(){var e=Fi;return e!==null&&($l===null?$l=e:$l.push.apply($l,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=ie(null),Ki=null,qi=null;function Ji(e,t,n){F(Gi,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=Gi.current,ae(Gi)}function Zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function $i(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&Qi(t,e,n,r),t.flags|=262144}function ea(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function R(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&R(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=pd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=M.S;M.S=function(e,t){nu=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=ie(null);function ya(){var e=va.current;return e===null?Hl.pooledCache:e}function ba(e,t){t===null?F(va,va.current):F(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Hl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=fi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case g:return t=gi(t,e.mode,n),t.return=e,t;case E:return t=Oa(t),f(e,t,n)}if(j(t)||A(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===x)return f(e,na(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=Oa(n),p(e,t,n,r)}if(j(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===x)return p(e,t,na(e,n),r);Ia(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=Oa(r),m(e,t,n,r,i)}if(j(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===x)return m(e,t,n,na(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&Oi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return L&&Oi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&Oi(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&Oi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&Oi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),L&&Oi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Oa(o),b(e,r,o,c)}if(j(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===x)return b(e,r,na(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(G&f)===f:(r&f)===f){f!==0&&f===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ba=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=ie(null),$a=ie(0);function eo(e,t){e=ql,F($a,e),F(Qa,t),ql=e|t.baseLanes}function to(){F($a,ql),F(Qa,Qa.current)}function no(){ql=$a.current,ae(Qa),ae($a)}var ro=ie(null),io=null;function ao(e){var t=e.alternate;F(uo,uo.current&1),F(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){F(uo,uo.current),F(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(F(uo,uo.current),F(ro,e),io===null&&(io=e)):co(e)}function co(){F(uo,uo.current),F(ro,ro.current)}function lo(e){ae(ro),io===e&&(io=null),ae(uo)}var uo=ie(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,z=null,mo=null,B=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return po=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Vs:Hs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){M.H=Bs;var t=mo!==null&&mo.next!==null;if(po=0,B=mo=z=null,ho=!1,yo=0,bo=null,t)throw Error(i(300));e===null||ac||(e=e.dependencies,e!==null&&ea(e)&&(ac=!0))}function Eo(e,t,n,r){z=e;var a=0;do{if(go&&(bo=null),yo=0,go=!1,25<=a)throw Error(i(301));if(a+=1,B=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=Us,o=t(n,r)}while(go);return o}function Do(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(z.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}po=0,B=mo=z=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return B===null?z.memoizedState=B=e:B=B.next=e,B}function Mo(){if(mo===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=B===null?z.memoizedState:B.next;if(t!==null)B=t,mo=e;else{if(e===null)throw z.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},B===null?z.memoizedState=B=e:B=B.next=e}return B}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Da(bo,e,t),t=z,(B===null?t.memoizedState:B.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Vs:Hs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===x)return ta(e)}throw Error(i(438,String(e)))}function Io(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),z.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),mo,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(G&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,z.lanes|=p,Yl|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,z.lanes|=f,Yl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(ac=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vo(e,t,n){var r=z,a=Mo(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,ac=!0),a=a.queue,fs(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||B!==null&&B.memoizedState.tag&1){if(r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),Hl===null)throw Error(i(349));o||po&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=No(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Ko(e){var t=ri(e,2);t!==null&&_u(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,zo(e,mo,typeof r==`function`?r:Lo)}function Xo(e,t,n,r,a){if(Ls(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){$o(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){V(e,t,n)},function(n){return $o(e,t,n)}):V(e,t,n)}function V(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(L){var n=Hl.formState;if(n!==null){a:{var r=z;if(L){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;)if(!a||(i=lf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=lf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ps.bind(null,z,r),r.dispatch=n,r=qo(!1),a=Is.bind(null,z,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function rs(e){return is(Mo(),mo,e)}function is(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===Sa?wa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.flags|=2048,ss(9,{destroy:void 0},as.bind(null,i,n),null)),[r,a,e]}function as(e,t){e.action=t}function os(e){var t=Mo(),n=mo;if(n!==null)return is(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ss(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=z.updateQueue,t===null&&(t=No(),z.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function cs(){return Mo().memoizedState}function ls(e,t,n,r){var i=jo();z.flags|=e,i.memoizedState=ss(1|t,{destroy:void 0},n,r===void 0?null:r)}function us(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&Co(r,mo.memoizedState.deps)?i.memoizedState=ss(t,a,n,r):(z.flags|=e,i.memoizedState=ss(1|t,a,n,r))}function ds(e,t){ls(8390656,8,e,t)}function fs(e,t){us(2048,8,e,t)}function ps(e){z.flags|=4;var t=z.updateQueue;if(t===null)t=No(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ms(e){var t=Mo().memoizedState;return ps({ref:t,nextImpl:e}),function(){if(U&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function hs(e,t){return us(4,2,e,t)}function gs(e,t){return us(4,4,e,t)}function _s(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vs(e,t,n){n=n==null?null:n.concat([e]),us(4,4,_s.bind(null,t,e),n)}function ys(){}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function Ss(e,t,n){return n===void 0||po&1073741824&&!(G&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),z.lanes|=e,Yl|=e,n)}function Cs(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(G&261930)?(ac=!0,e.memoizedState=n):(e=gu(),z.lanes|=e,Yl|=e,t):(e=Ss(e,n,r),Sr(e,t)||(ac=!0),e)}function ws(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};M.T=s,Is(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ga(c,r),hu(e)):Fs(e,t,r,hu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,P,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},hu())}function ks(){return ta($f)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(_u(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=ni(e,t,n,r),n!==null&&(_u(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,hu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Hl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return _u(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&_u(t,e,2)}function Ls(e){var t=e.alternate;return e===z||t!==null&&t===z}function Rs(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Bs={readContext:ta,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};Bs.useEffectEvent=So;var Vs={readContext:ta,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,z,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=jo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Hl===null)throw Error(i(349));G&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Wo.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=Hl.identifierPrefix;if(L){var n=Di,r=Ei;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Is.bind(null,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=Ms.bind(null,z)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(U&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:ta,use:Fo,useCallback:bs,useContext:ta,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Ro,useRef:cs,useState:function(){return Ro(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){return Cs(Mo(),mo.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){return Yo(Mo(),mo,e,t)},useMemoCache:Io,useCacheRefresh:js};Hs.useEffectEvent=ms;var Us={readContext:ta,use:Fo,useCallback:bs,useContext:ta,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Bo,useRef:cs,useState:function(){return Bo(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){var n=Mo();return mo===null?Ss(n,e,t):Cs(n,mo.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:os,useActionState:os,useOptimistic:function(e,t){var n=Mo();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Io,useCacheRefresh:js};Us.useEffectEvent=ms;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(_u(t,e,n),Ga(t,e,n))}};function Ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function Js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){Xr(e)}function Xs(e){console.error(e)}function Zs(e){Xr(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Ua(e),e.tag=3,e}function nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(au===null?au=new Set([this]):au.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$i(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?ku():n.alternate===null&&Jl===0&&(Jl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),ku(),!1}if(L)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=ec(e.stateNode,r,a),Ka(e,a),Jl!==4&&(Jl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),Ql===null?Ql=[o]:Ql.push(o),Jl!==4&&(Jl=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ec(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(au===null||!au.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=tc(a),nc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ic=Error(i(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return R(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ac?(ko(e,t,i),Ac(e,t,i)):(L&&s&&Ai(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref){if(ac=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,Ac(e,t,i)}}return _c(e,t,n,r,i)}function uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Ra(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(oo(t),(e=Pi)?(e=af(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return pc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a){if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(ac||$i(e,t,n,!1),a=(n&e.childLanes)!==0,ac||a){if(r=Hl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),_u(r,e,s),ic;ku(),t=mc(e,t,n)}else e=o.treeContext,Pi=lf(s.nextSibling),Ni=t,L=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=pc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return R(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ac?(ko(e,t,i),Ac(e,t,i)):(L&&r&&Ai(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return R(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ac?(ko(e,t,a),Ac(e,t,a)):(L&&r&&Ai(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(R(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Gs.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&qs(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Ba||Ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&qs(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Ba||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function bc(e,t,n,r){return Hi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:xa()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=q),e}function wc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(uo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(L){if(a?ao(t):co(t),(e=Pi)?(e=af(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Ec({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(ao(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Ec({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||$i(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=Hl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),_u(s,e,r),ic;of(c)||ku(),t=Dc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=lf(c.nextSibling),Ni=t,L=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ra(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function H(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,F(uo,o),oc(e,t,r,n),r=L?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&H(e,n,t);else if(e.tag===19)H(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if($i(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ea(e)))}function Mc(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:de(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Ac(e,t,n),e===null?null:e.sibling):wc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=($i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(uo,uo.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!jc(e,n)&&!(t.flags&128))return ac=!1,Mc(e,t,n);ac=!!(e.flags&131072)}}else ac=!1,L&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=sc(null,t,e,r,n);break a}if(a===T){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Js(r,t.pendingProps),yc(e,t,r,a,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Qi(t,[sa],n,!0),Ja(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=bc(e,t,r,n);break a}if(r!==a){a=vi(Error(i(424)),t),Wi(a),t=bc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=lf(e.firstChild),Ni=t,L=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Vd(se.current).createElement(n),r[ot]=t,r[st]=e,Fd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&L&&(r=t.stateNode=pf(t.type,t.pendingProps,se.current),Ni=t,Ii=!0,a=Pi,Qd(t.type)?(uf=a,Pi=lf(r.firstChild)):Pi=a),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=Pi)&&(r=nf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=lf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),de(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),$f._currentValue=a),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Pi)&&(n=rf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return wc(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,R(t),a=ta(a),r=r(a),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return R(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=Hl,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Qi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Eu())e.flags|=8192;else throw ka=Ta,Ca}}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t)){if(Eu())e.flags|=8192;else throw ka=Ta,Ca}}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,J|=t)}function Rc(e,t){if(!L)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xi(sa),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(fe(t),n=se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=I.current,Vi(t)?zi(t,e):(e=pf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=I.current,Vi(t))zi(t,o);else{var s=Vd(se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Z(e.nodeValue,n)),e||Ri(t,!0)}else e=Vd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return ue(),e===null&&wd(t.stateNode.containerInfo),zc(t),null;case 10:return Xi(t.type),zc(t),null;case 19:if(ae(uo),r=t.memoizedState,r===null)return zc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Rc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return F(uo,uo.current&1|2),L&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>ru&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return zc(t),null}else 2*Te()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=uo.current,F(uo,a?n&1|2:n&1),L&&Oi(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(sa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(sa),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(uo),null;case 4:return ue(),null;case 10:return Xi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&ae(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(sa),null;case 25:return null;default:return null}}function Hc(e,t){switch(ji(t),t.tag){case 3:Xi(sa),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:ae(uo);break;case 10:Xi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&ae(va);break;case 24:Xi(sa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Y(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Y(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Y(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Y(e,e.return,t)}}}function Kc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Y(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Y(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Y(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Y(e,t,n)}else n.current=null}}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Y(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[st]=t}catch(t){Y(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ot]=e,t[st]=n}catch(t){Y(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,zd=cp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Js(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Y(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Y(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Y(n,n.return,e)}}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Y(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,!!(n.subtreeFlags&8772)):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;Qd(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),mf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null){if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Y(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Y(n,t,e)}}break;case 18:ul!==null&&(dl?(e=ul,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Y(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Y(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Fd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode)}else e.stateNode=Lf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){Y(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Y(e,e.return,t)}}break;case 3:if(Vf=null,a=yl,yl=_f(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Y(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=_f(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Y(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Y(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){Y(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Gt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){Y(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:mf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Y(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Y(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Y(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Kf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=_f(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,U=0,Hl=null,W=null,G=0,K=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,q=0,J=0,Ql=null,$l=null,eu=!1,tu=0,nu=0,ru=1/0,iu=null,au=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return U&2&&G!==0?G&-G:M.T===null?rt():pd()}function gu(){if(q===0){if(!(G&536870912)||L){var e=He;He<<=1,!(He&3932160)&&(He=262144),q=e}else q=536870912}return e=ro.current,e!==null&&(e.flags|=32),q}function _u(e,t,n){(e===Hl&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,G,q,!1)),Xe(e,n),U&2&&e===Hl||(e===Hl&&(!(U&2)&&(Xl|=n),Jl===4&&xu(e,G,q,!1)),ad(e))}function vu(e,t,n){if(U&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Gl&&!r&&xu(e,t,0,!1);break}if(n=e.current.alternate,o&&!bu(n))a=Au(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Ql;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=o,Xl|=o,a=4;break a}o=$l,$l=a,o!==null&&($l===null?$l=o:$l.push.apply($l,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){wu(e,0),xu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:xu(r,t,q,!Wl);break a;case 2:$l=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=tu+300-Te(),10<a)){if(xu(r,t,q,!Wl),Ge(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=qd(yu.bind(null,r,n,$l,iu,eu,t,q,Xl,J,Wl,o,`Throttled`,-0,0),a);break a}yu(r,n,$l,iu,eu,t,q,Xl,J,Wl,o,null,-0,0)}break}}while(1);ad(e)}function yu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Pl(t,a,d);var m=(a&62914560)===a?tu-Te():(a&4194048)===a?nu-Te():0;if(m=Jf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xu(e,t,n,r){t&=~Zl,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function Su(){return U&6?!0:(od(0,!1),!1)}function Cu(){if(W!==null){if(K===0)var e=W.return;else e=W,qi=Ki=null,Ao(e),Ma=null,Na=0,e=W;for(;e!==null;)Hc(e.alternate,e),e=e.return;W=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),Hl=e,W=n=ui(e.current,null),G=t,K=0,Ul=null,Wl=!1,Gl=Ke(e,t),Kl=!1,J=q=Zl=Xl=Yl=Jl=0,$l=Ql=null,eu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return ql=t,ei(),n}function Tu(e,t){z=null,M.H=Bs,t===Sa||t===wa?(t=Aa(),K=3):t===Ca?(t=Aa(),K=4):K=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,W===null&&(Jl=1,Qs(e,vi(t,e.current)))}function Eu(){var e=ro.current;return e===null?!0:(G&4194048)===G?io===null:(G&62914560)===G||G&536870912?e===io:!1}function Du(){var e=M.H;return M.H=Bs,e===null?Bs:e}function Ou(){var e=M.A;return M.A=Bl,e}function ku(){Jl=4,Wl||(G&4194048)!==G&&ro.current!==null||(Gl=!0),!(Yl&134217727)&&!(Xl&134217727)||Hl===null||xu(Hl,G,q,!1)}function Au(e,t,n){var r=U;U|=2;var i=Du(),a=Ou();(Hl!==e||G!==t)&&(iu=null,wu(e,t)),t=!1;var o=Jl;a:do try{if(K!==0&&W!==null){var s=W,c=Ul;switch(K){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=K;if(K=0,Ul=null,Iu(e,s,c,l),n&&Gl){o=0;break a}break;default:l=K,K=0,Ul=null,Iu(e,s,c,l)}}ju(),o=Jl;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,U=r,M.H=i,M.A=a,W===null&&(Hl=null,G=0,ei()),o}function ju(){for(;W!==null;)Pu(W)}function Mu(e,t){var n=U;U|=2;var r=Du(),a=Ou();Hl!==e||G!==t?(iu=null,ru=Te()+500,wu(e,t)):Gl=Ke(e,t);a:do try{if(K!==0&&W!==null){t=W;var o=Ul;b:switch(K){case 1:K=0,Ul=null,Iu(e,t,o,1);break;case 2:case 9:if(Ea(o)){K=0,Ul=null,Fu(t);break}t=function(){K!==2&&K!==9||Hl!==e||(K=7),ad(e)},o.then(t,t);break a;case 3:K=7;break a;case 4:K=5;break a;case 7:Ea(o)?(K=0,Ul=null,Fu(t)):(K=0,Ul=null,Iu(e,t,o,7));break;case 5:var s=null;switch(W.tag){case 26:s=W.memoizedState;case 5:case 27:var c=W;if(s?Gf(s):c.stateNode.complete){K=0,Ul=null;var l=c.sibling;if(l!==null)W=l;else{var u=c.return;u===null?W=null:(W=u,Lu(u))}break b}}K=0,Ul=null,Iu(e,t,o,5);break;case 6:K=0,Ul=null,Iu(e,t,o,6);break;case 8:Cu(),Jl=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return qi=Ki=null,M.H=r,M.A=a,U=n,W===null?(Hl=null,G=0,ei(),Jl):0}function Nu(){for(;W!==null&&!Ce();)Pu(W)}function Pu(e){var t=Nc(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?Lu(e):W=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,G);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,G);break;case 5:Ao(t);default:Hc(n,t),t=W=di(t,ql),t=Nc(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?Lu(e):W=t}function Iu(e,t,n,r){qi=Ki=null,Ao(t),Ma=null,Na=0;var i=t.return;try{if(rc(e,i,t,n,G)){Jl=1,Qs(e,vi(n,e.current)),W=null;return}}catch(t){if(i!==null)throw W=i,t;Jl=1,Qs(e,vi(n,e.current)),W=null;return}t.flags&32768?(L||r===1?e=!0:Gl||G&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(t,Wl);return}e=t.return;var n=Bc(t.alternate,t,ql);if(n!==null){W=n;return}if(t=t.sibling,t!==null){W=t;return}W=t=e}while(t!==null);Jl===0&&(Jl=5)}function Ru(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,W=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){W=e;return}W=e=n}while(e!==null);Jl=6,W=null}function zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(U&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Ze(e,n,o,s,c,l),e===Hl&&(W=Hl=null,G=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(ke,function(){return Gu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=M.T,M.T=null,a=N.p,N.p=2,s=U,U|=4;try{sl(e,t,n)}finally{U=s,N.p=a,M.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=U;U|=4;try{bl(t,e);var a=Bd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{U=i,N.p=r,M.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=U;U|=4;try{cl(e,t.alternate,t)}finally{U=i,N.p=r,M.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,we();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(au=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=M.T,i=N.p,N.p=2,M.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{M.T=t,N.p=i}}lu&3&&Wu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,od(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=nt(lu),r=M.T,a=N.p;try{N.p=32>n?32:n,M.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,U&6)throw Error(i(331));var c=U;if(U|=4,Ll(o.current),kl(o,o.current,s,n),U=c,od(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{N.p=a,M.T=r,Uu(e,t)}}function Ku(e,t,n){t=vi(n,t),t=ec(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Xe(e,2),ad(e))}function Y(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(au===null||!au.has(r))){e=vi(n,e),n=tc(2),r=Wa(t,n,2),r!==null&&(nc(n,r,t,e),Xe(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Hl===e&&(G&n)===n&&(Jl===4||Jl===3&&(G&62914560)===G&&300>Te()-tu?!(U&2)&&wu(e,0):Zl|=n,J===G&&(J=0)),ad(e)}function Yu(e,t){t===0&&(t=Je()),e=ri(e,t),e!==null&&(Xe(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=G,a=Ge(r,r===Hl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,dd(r,a))}r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Kd()&&(e=id);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}ou!==0&&ou!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Hl,n=G,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Se(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Se(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=ud.bind(null,e),n=xe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Se(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=G;return r=Ge(e,e===Hl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ld(e,Te()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Wu())return null;vu(e,t,!0)}function fd(){Xd(function(){U&6?xe(De,sd):cd()})}function pd(){if(id===0){var e=fa;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);Es(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),Es(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Jr.length;_d++){var vd=Jr[_d];Yr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function X(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(s,c,l,d,!1),u!==null&&f!==null&&Ad(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c)){if(dr)v=br;else{v=vr;var y=_r}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Yt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Vt(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,er=!0)),y=Od(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),gd(s,e,r,n,i)}xd(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=cn(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
23
+ `).replace(Md,``)}function Z(e,t){return t=Nd(t),Nd(e)===t}function Q(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,a.name,a,null),Q(e,t,`formEncType`,a.formEncType,a,null),Q(e,t,`formMethod`,a.formMethod,a,null),Q(e,t,`formTarget`,a.formTarget,a,null)):(Q(e,t,`encType`,a.encType,a,null),Q(e,t,`method`,a.method,a,null),Q(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:X(`beforetoggle`,e),X(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function Pd(e,t,n,r,a,o){switch(n){case`style`:Jt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:X(`error`,e),X(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,o,s,n,null)}}a&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:X(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Q(e,t,r,d,n,null)}}Bt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in X(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in X(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Q(e,t,s,c,n,null)}Wt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Q(e,t,l,r,n,null)}return;case`dialog`:X(`beforetoggle`,e),X(`toggle`,e),X(`cancel`,e),X(`close`,e);break;case`iframe`:case`object`:X(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)X(yd[r],e);break;case`image`:X(`error`,e),X(`load`,e);break;case`details`:X(`toggle`,e);break;case`embed`:case`source`:case`link`:X(`error`,e),X(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Q(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Q(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Q(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Q(e,t,s,a,r,o)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Q(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Q(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Q(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e!==Gd&&(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body)}n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=N.d;N.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=Su();return e||t}function bf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=vt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);yt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=se.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Rt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),yt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Rt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,yt(a),a):(r=n,(a=hf.get(o))&&(r=p({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:x,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function np(e){return e?(e=oi,e):oi}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(_u(n,e,t),Ga(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&_u(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=hu();t=tt(t);var n=ri(e,t);n!==null&&_u(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,dp(e,t,n,r)}finally{N.p=a,M.T=i}}function up(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,dp(e,t,n,r)}finally{N.p=a,M.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Ed(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}ad(a),!(U&6)&&(ru=Te()+500,od(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&_u(s,a,2),Su(),ap(a,2)}if(a=fp(r),a===null&&Ed(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function fp(e){return e=tn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){sp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,hu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),Su(),t[ct]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.8`)throw Error(i(527,Rp,`19.2.8`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Pe=Bp.inject(zp),Fe=Bp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ys,s=Xs,c=Zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,o,s,c,Fp),e[ct]=t.current,wd(e),new Ip(t)}})),Xo=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Yo()})),Zo=ca(`clipboardService`),Qo=class{async writeText(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=t?.closest(`dialog[open]`)??document.body,r=document.createElement(`textarea`);r.value=e,r.setAttribute(`readonly`,``),r.style.position=`fixed`,r.style.opacity=`0`,r.style.pointerEvents=`none`,n.appendChild(r);try{if(r.focus({preventScroll:!0}),r.select(),r.setSelectionRange(0,e.length),!document.execCommand(`copy`))throw Error(`剪贴板写入失败`)}finally{r.remove(),t?.focus({preventScroll:!0})}}};function V(){for(var e,t=0,n=``,r=arguments.length;t<r;t++)(e=arguments[t])&&typeof e==`string`&&(n+=(n&&` `)+e);return n}var $o=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function es(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:$o(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ts=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},ns=e=>{let t=ts(e);return t.charAt(0).toUpperCase()+t.slice(1)},rs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),is={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function as(e){return e!=null}function os(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??is.width,a=e.size??e.height??is.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?rs(...c):rs(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??is[`stroke-width`])*Number(e.size??e.width??is.width)/Number(t.size??t.width??is.width):t.strokeWidth??is[`stroke-width`];return[`svg`,{...Object.entries(is).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&as(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&as(t.width)&&{[r(`width`)]:t.width},...`height`in t&&as(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ss(e,t={}){return os(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var cs=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ls=(0,f.createContext)({}),us=()=>(0,f.useContext)(ls),ds=(0,f.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=us()??{},b=!!c||cs(d),[x,S,C=[]]=ss(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:rs(y,s),hasA11yProp:b,attributes:d});return(0,f.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,f.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function fs(e,t=[],n=[]){let r=typeof e==`string`?es(e,t,n):e,i=(0,f.forwardRef)(({className:e,...t},n)=>(0,f.createElement)(ds,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ns(r.name)),i}var ps={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};ps.node;var ms=fs(ps),hs={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};hs.node;var gs=fs(hs),_s={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};_s.node;var vs=fs(_s),ys={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};ys.node;var bs=fs(ys),xs={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};xs.node;var Ss=fs(xs),Cs={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Cs.node;var ws=fs(Cs),Ts={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ts.node;var Es=fs(Ts),Ds=Symbol.for(`preact-signals`);function Os(){if(Ps>1)Ps--;else{var e,t=!1;for((function(){var e=Rs;for(Rs=void 0;e!==void 0;){var t=e.S;if(t.v===e.v)for(var n=t.t;n!==void 0;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}})();Ns!==void 0;){var n=Ns;for(Ns=void 0,Fs++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Us(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(Fs=0,Ps--,t)throw e}}function ks(e){if(Ps>0)return e();Ls=++Is,Ps++;try{return e()}finally{Os()}}var As,js=void 0;function Ms(e){var t=js,n=As;js=void 0,As=void 0;try{return e()}finally{js=t,As=n}}var Ns=void 0,Ps=0,Fs=0,Is=0,Ls=0,Rs=void 0,zs=0;function Bs(e){if(js!==void 0){var t=e.n;if(t===void 0||t.t!==js)return t={i:0,S:e,p:js.s,n:void 0,t:js,e:void 0,x:void 0,r:t},js.s!==void 0&&(js.s.n=t),js.s=t,e.n=t,32&js.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=js.s,t.n=void 0,js.s.n=t,js.s=t),t}}function Vs(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Vs.prototype.brand=Ds,Vs.prototype.h=function(){return!0},Vs.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?Ms(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},Vs.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&Ms(function(){var e;(e=t.Z)==null||e.call(t)}))}},Vs.prototype.subscribe=function(e){var t=this;return Qs(function(){var n=t.value;Ms(function(){return e(n)})},{name:`sub`})},Vs.prototype.valueOf=function(){return this.value},Vs.prototype.toString=function(){return this.value+``},Vs.prototype.toJSON=function(){return this.value},Vs.prototype.peek=function(){var e=this;return Ms(function(){return e.value})},Object.defineProperty(Vs.prototype,"value",{get:function(){var e=Bs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Fs>100)throw Error(`Cycle detected`);(function(e){Ps!==0&&Fs===0&&e.l!==Ls&&(e.l=Ls,Rs={S:e,v:e.v,i:e.i,o:Rs})})(this),this.v=e,this.i++,zs++,Ps++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Os()}}}});function Hs(e,t){return new Vs(e,t)}function Us(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ws(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Gs(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Ks(e,t){Vs.call(this,void 0,t),this.x=e,this.s=void 0,this.g=zs-1,this.f=4}Ks.prototype=new Vs,Ks.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===zs))return!0;if(this.g=zs,this.f|=1,this.i>0&&!Us(this))return this.f&=-2,!0;var e=js;try{Ws(this),js=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return js=e,Gs(this),this.f&=-2,!0},Ks.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Vs.prototype.S.call(this,e)},Ks.prototype.U=function(e){if(this.t!==void 0&&(Vs.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ks.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ks.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Bs(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function qs(e,t){return new Ks(e,t)}function Js(e){var t=e.j;if(e.j=void 0,typeof t==`function`){Ps++;var n=js;js=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ys(e),t}finally{js=n,Os()}}}function Ys(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Js(e)}function Xs(e){if(js!==this)throw Error(`Out-of-order effect`);Gs(this),js=e,this.f&=-2;try{8&this.f&&Ys(this)}finally{Os()}}function Zs(e,t){this.x=e,this.j=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,As&&As.push(this)}Zs.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.j=t)}finally{e()}},Zs.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,Js(this),Ws(this),Ps++;var e=js;return js=this,Xs.bind(this,e)},Zs.prototype.N=function(){2&this.f||(this.f|=2,this.u=Ns,Ns=this)},Zs.prototype.d=function(){this.f|=8,1&this.f||Ys(this)},Zs.prototype.dispose=function(){this.d()};function Qs(e,t){var n=new Zs(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var $s=Object.create,ec=Object.defineProperty,tc=Object.defineProperties,nc=Object.getOwnPropertyDescriptor,rc=Object.getOwnPropertyDescriptors,ic=Object.getOwnPropertySymbols,ac=Object.prototype.hasOwnProperty,oc=Object.prototype.propertyIsEnumerable,sc=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),cc=e=>{throw TypeError(e)},lc=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uc=(e,t)=>{for(var n in t||={})ac.call(t,n)&&lc(e,n,t[n]);if(ic)for(var n of ic(t))oc.call(t,n)&&lc(e,n,t[n]);return e},dc=(e,t)=>tc(e,rc(t)),fc=(e,t)=>ec(e,`name`,{value:t,configurable:!0}),pc=e=>[,,,$s(e?.[sc(`metadata`)]??null)],mc=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],hc=e=>e!==void 0&&typeof e!=`function`?cc(`Function expected`):e,gc=(e,t,n,r,i)=>({kind:mc[e],name:t,metadata:r,addInitializer:e=>n._?cc(`Already initialized`):i.push(hc(e||null))}),_c=(e,t)=>lc(t,sc(`metadata`),e[3]),vc=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},yc=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=mc[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&nc(d<4?i:{get[n](){return Sc(this,a)},set[n](e){return wc(this,a,e)}},n));d?p&&d<4&&fc(a,(d>2?`set `:d>1?`get `:``)+n):fc(i,n);for(var y=r.length-1;y>=0;y--)l=gc(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>xc(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Sc:Tc)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>wc(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?hc(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?cc(`Object expected`):(hc(o=s.get)&&(v.get=o),hc(o=s.set)&&(v.set=o),hc(o=s.init)&&g.unshift(o));return d||_c(e,i),v&&ec(i,n,v),p?d^4?a:v:i},bc=(e,t,n)=>t.has(e)||cc(`Cannot `+n),xc=(e,t)=>Object(t)===t?e.has(t):cc(`Cannot use the "in" operator on this value`),Sc=(e,t,n)=>(bc(e,t,`read from private field`),n?n.call(e):t.get(e)),Cc=(e,t,n)=>t.has(e)?cc(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),wc=(e,t,n,r)=>(bc(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Tc=(e,t,n)=>(bc(e,t,`access private method`),n);function Ec(e,t){if(t){let n;return qs(()=>{let r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return qs(e)}function Dc(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e==`function`&&typeof t==`function`)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((e,n)=>!Dc(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some(n=>!Dc(e[n],t[n]))}return!1}function H({get:e},t){return{init(e){return Hs(e)},get(){return e.call(this).value},set(t){let n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Oc(e,t){let n=new WeakMap;return function(){let t=n.get(this);return t||(t=Ec(e.bind(this)),n.set(this,t)),t.value}}function kc(e=!0){return function(t,n){n.addInitializer(function(){let t=n.kind===`field`||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,dc(uc({},r),{enumerable:e}))})}}function Ac(...e){let t=e.map(e=>Qs(e));return()=>t.forEach(e=>e())}var jc,Mc,Nc,Pc,Fc,Ic=[H],Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc;Fc=[H],Pc=[H],Nc=[kc()],Mc=[kc()],jc=[kc()];var Zc=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,vc(Lc,5,this),Cc(this,Hc),Cc(this,Rc,vc(Lc,8,this)),vc(Lc,11,this),Cc(this,Uc,vc(Lc,12,this)),vc(Lc,15,this),Cc(this,qc,vc(Lc,16,this)),vc(Lc,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Sc(this,Hc,Yc)}get initial(){return Sc(this,Hc,Bc)}get previous(){return Sc(this,Hc,Gc)}set current(e){let t=Ms(()=>Sc(this,Hc,Yc));e&&t&&this.equals(t,e)||ks(()=>{Sc(this,Hc,Bc)||wc(this,Hc,e,Vc),wc(this,Hc,t,Kc),wc(this,Hc,e,Xc)})}reset(e=this.defaultValue){ks(()=>{wc(this,Hc,void 0,Kc),wc(this,Hc,e,Vc),wc(this,Hc,e,Xc)})}};Lc=pc(null),Rc=new WeakMap,Hc=new WeakSet,Uc=new WeakMap,qc=new WeakMap,zc=yc(Lc,20,`#initial`,Ic,Hc,Rc),Bc=zc.get,Vc=zc.set,Wc=yc(Lc,20,`#previous`,Fc,Hc,Uc),Gc=Wc.get,Kc=Wc.set,Jc=yc(Lc,20,`#current`,Pc,Hc,qc),Yc=Jc.get,Xc=Jc.set,yc(Lc,2,`current`,Nc,Zc),yc(Lc,2,`initial`,Mc,Zc),yc(Lc,2,`previous`,jc,Zc),_c(Lc,Zc);function Qc(e){return Ms(()=>{let t={};for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!0,configurable:!0,writable:!0});return t})}var $c=Object.create,el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,nl=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,al=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),ol=e=>{throw TypeError(e)},sl=Math.pow,cl=(e,t,n)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ll=(e,t)=>{for(var n in t||={})rl.call(t,n)&&cl(e,n,t[n]);if(nl)for(var n of nl(t))il.call(t,n)&&cl(e,n,t[n]);return e},ul=(e,t)=>el(e,`name`,{value:t,configurable:!0}),dl=e=>[,,,$c(e?.[al(`metadata`)]??null)],fl=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],pl=e=>e!==void 0&&typeof e!=`function`?ol(`Function expected`):e,ml=(e,t,n,r,i)=>({kind:fl[e],name:t,metadata:r,addInitializer:e=>n._?ol(`Already initialized`):i.push(pl(e||null))}),hl=(e,t)=>cl(t,al(`metadata`),e[3]),gl=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},_l=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=fl[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&tl(d<4?i:{get[n](){return bl(this,a)},set[n](e){return Sl(this,a,e)}},n));d?p&&d<4&&ul(a,(d>2?`set `:d>1?`get `:``)+n):ul(i,n);for(var y=r.length-1;y>=0;y--)l=ml(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>yl(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?bl:Cl)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Sl(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?pl(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?ol(`Object expected`):(pl(o=s.get)&&(v.get=o),pl(o=s.set)&&(v.set=o),pl(o=s.init)&&g.unshift(o));return d||hl(e,i),v&&el(i,n,v),p?d^4?a:v:i},vl=(e,t,n)=>t.has(e)||ol(`Cannot `+n),yl=(e,t)=>Object(t)===t?e.has(t):ol(`Cannot use the "in" operator on this value`),bl=(e,t,n)=>(vl(e,t,`read from private field`),n?n.call(e):t.get(e)),xl=(e,t,n)=>t.has(e)?ol(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Sl=(e,t,n,r)=>(vl(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Cl=(e,t,n)=>(vl(e,t,`access private method`),n),wl=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Tl=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){let{top:r,left:i,width:a,height:o,scale:s}=this,c=new e(i+t,r+n,a,o);return c.scale=ll({},s),c}get boundingRectangle(){let{width:e,height:t,left:n,top:r,right:i,bottom:a}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:a}}get center(){let{left:e,top:t,right:n,bottom:r}=this;return new wl((e+n)/2,(t+r)/2)}get area(){let{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;let{left:n,top:r,width:i,height:a}=this;return n===t.left&&r===t.top&&i===t.width&&a===t.height}containsPoint(e){let{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?El(this,t):0}intersectionRatio(e){let{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){let{top:e,height:t}=this;return e+t}get right(){let{left:e,width:t}=this;return e+t}get aspectRatio(){let{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:`center`,y:`center`}){let r=(e,t)=>{let r=n[t],i=t===`x`?e.left:e.top,a=t===`x`?e.width:e.height;return r==`start`?i:r==`end`?i+a:i+a/2};return wl.delta({x:r(e,`x`),y:r(e,`y`)},{x:r(t,`x`),y:r(t,`y`)})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};function El(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;return r<i&&n<a?o*s:0}var Dl,Ol,kl,Al,jl,Ml=class extends (kl=Zc,Ol=[Oc],Dl=[Oc],kl){constructor(e){let t=wl.from(e);super(t,(e,t)=>wl.equals(e,t)),gl(jl,5,this),xl(this,Al,0),this.velocity={x:0,y:0}}get delta(){return wl.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=wl.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-bl(this,Al),o=e=>Math.round(e/a*100);ks(()=>{Sl(this,Al,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(wl.from(e)),this.velocity={x:0,y:0}}};jl=dl(kl),Al=new WeakMap,_l(jl,2,`delta`,Ol,Ml),_l(jl,2,`direction`,Dl,Ml),hl(jl,Ml);function Nl({x:e,y:t},n){let r=Math.abs(e),i=Math.abs(t);return typeof n==`number`?Math.sqrt(sl(r,2)+sl(i,2))>n:`x`in n&&`y`in n?r>n.x&&i>n.y:`x`in n?r>n.x:`y`in n&&i>n.y}var Pl=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(Pl||{}),Fl=Object.values(Pl),Il=Object.create,Ll=Object.defineProperty,Rl=Object.defineProperties,zl=Object.getOwnPropertyDescriptor,Bl=Object.getOwnPropertyDescriptors,Vl=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,W=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),G=e=>{throw TypeError(e)},K=(e,t,n)=>t in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ul=(e,t)=>{for(var n in t||={})U.call(t,n)&&K(e,n,t[n]);if(Vl)for(var n of Vl(t))Hl.call(t,n)&&K(e,n,t[n]);return e},Wl=(e,t)=>Rl(e,Bl(t)),Gl=(e,t)=>Ll(e,`name`,{value:t,configurable:!0}),Kl=(e,t)=>{var n={};for(var r in e)U.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Vl)for(var r of Vl(e))t.indexOf(r)<0&&Hl.call(e,r)&&(n[r]=e[r]);return n},ql=e=>[,,,Il(e?.[W(`metadata`)]??null)],Jl=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],Yl=e=>e!==void 0&&typeof e!=`function`?G(`Function expected`):e,Xl=(e,t,n,r,i)=>({kind:Jl[e],name:t,metadata:r,addInitializer:e=>n._?G(`Already initialized`):i.push(Yl(e||null))}),Zl=(e,t)=>K(t,W(`metadata`),e[3]),q=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},J=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=Jl[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&zl(d<4?i:{get[n](){return eu(this,a)},set[n](e){return nu(this,a,e)}},n));d?p&&d<4&&Gl(a,(d>2?`set `:d>1?`get `:``)+n):Gl(i,n);for(var y=r.length-1;y>=0;y--)l=Xl(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>$l(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?eu:ru)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>nu(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?Yl(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?G(`Object expected`):(Yl(o=s.get)&&(v.get=o),Yl(o=s.set)&&(v.set=o),Yl(o=s.init)&&g.unshift(o));return d||Zl(e,i),v&&Ll(i,n,v),p?d^4?a:v:i},Ql=(e,t,n)=>t.has(e)||G(`Cannot `+n),$l=(e,t)=>Object(t)===t?e.has(t):G(`Cannot use the "in" operator on this value`),eu=(e,t,n)=>(Ql(e,t,`read from private field`),n?n.call(e):t.get(e)),tu=(e,t,n)=>t.has(e)?G(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),nu=(e,t,n,r)=>(Ql(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),ru=(e,t,n)=>(Ql(e,t,`access private method`),n);function iu(e,t){return{plugin:e,options:t}}function au(e){return t=>iu(e,t)}function ou(e){return typeof e==`function`?{plugin:e,options:void 0}:e}var su=[H],cu,lu,uu,du=class{constructor(e,t){this.manager=e,this.options=t,tu(this,lu,q(cu,8,this,!1)),q(cu,11,this),tu(this,uu,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Ms(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let t=Qs(e.bind(this));return eu(this,uu).add(t),t}destroy(){eu(this,uu).forEach(e=>e())}static configure(e){return iu(this,e)}};cu=ql(null),lu=new WeakMap,uu=new WeakMap,J(cu,4,`disabled`,su,du,lu),Zl(cu,du);var fu=class extends du{},pu,mu,hu=[H],gu,_u,vu,yu,bu,xu,Su;mu=[H],pu=[H];var Cu=class e{constructor(e,t){tu(this,yu,q(vu,8,this)),q(vu,11,this),tu(this,bu),tu(this,xu,q(vu,12,this)),q(vu,15,this),tu(this,Su,q(vu,16,this)),q(vu,19,this);let{effects:n,id:r,data:i={},disabled:a=!1,register:o=!0}=e,s=r;nu(this,bu,Hs(r)),this.manager=t,this.data=i,this.disabled=a,this.effects=()=>[()=>{let{id:e,manager:t}=this;if(e!==s)return s=e,t?.registry.register(this),()=>t?.registry.unregister(this)},...n?.()??[]],this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&o&&queueMicrotask(this.register)}get id(){let t=eu(this,bu).value;return e.pendingIdChanges?.get(this)??t}set id(t){t!==(e.pendingIdChanges?.get(this)??eu(this,bu).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return ru(t=e,gu,_u).call(t)})),e.pendingIdChanges.set(this,t))}register(){return this.manager?.registry.register(this)}unregister(){var e;(e=this.manager)==null||e.registry.unregister(this)}destroy(){var e;(e=this.manager)==null||e.registry.unregister(this)}};vu=ql(null),gu=new WeakSet,_u=function(){let e=Cu.pendingIdChanges;Cu.pendingIdChanges=null,e&&ks(()=>{for(let[t,n]of e)eu(t,bu).value=n})},yu=new WeakMap,bu=new WeakMap,xu=new WeakMap,Su=new WeakMap,J(vu,4,`manager`,hu,Cu,yu),J(vu,4,`data`,mu,Cu,xu),J(vu,4,`disabled`,pu,Cu,Su),tu(Cu,gu),Zl(vu,Cu),Cu.pendingIdChanges=null;var wu=Cu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu=class extends (ju=wu,Au=[H],ku=[H],Ou=[H],Du=[Oc],Eu=[Oc],Tu=[Oc],ju){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:a,plugins:o,effects:s}=n,c=Kl(n,[`modifiers`,`type`,`sensors`,`plugins`,`effects`]);super(Wl(Ul({},c),{effects:()=>[...s?.()??[],()=>{let{manager:e,plugins:t}=this;if(e&&t)for(let n of t){let{plugin:t}=ou(n);e.registry.plugins.register(t)}}]}),t),q(Mu,5,this),tu(this,Nu,q(Mu,8,this)),q(Mu,11,this),tu(this,Pu,q(Mu,12,this)),q(Mu,15,this),tu(this,Fu,q(Mu,16,this,this.isDragSource?`dragging`:`idle`)),q(Mu,19,this),this.type=i,this.sensors=a,this.modifiers=r,this.alignment=c.alignment,this.plugins=o}pluginConfig(e){if(this.plugins)for(let t of this.plugins){let n=ou(t);if(n.plugin===e)return n.options}}get isDropping(){return this.status===`dropping`&&this.isDragSource}get isDragging(){return this.status===`dragging`&&this.isDragSource}get isDragSource(){return this.manager?.dragOperation.source?.id===this.id}};Mu=ql(ju),Nu=new WeakMap,Pu=new WeakMap,Fu=new WeakMap,J(Mu,4,`type`,Au,Iu,Nu),J(Mu,4,`modifiers`,ku,Iu,Pu),J(Mu,4,`status`,Ou,Iu,Fu),J(Mu,2,`isDropping`,Du,Iu),J(Mu,2,`isDragging`,Eu,Iu),J(Mu,2,`isDragSource`,Tu,Iu),Zl(Mu,Iu);var Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,Y,qu,Ju,Yu=class extends (Uu=wu,Hu=[H],Vu=[H],Bu=[H],zu=[H],Ru=[H],Lu=[Oc],Uu){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:a,type:o}=n,s=Kl(n,[`accept`,`collisionDetector`,`collisionPriority`,`type`]);super(s,t),q(Wu,5,this),tu(this,Gu,q(Wu,8,this)),q(Wu,11,this),tu(this,Ku,q(Wu,12,this)),q(Wu,15,this),tu(this,Y,q(Wu,16,this)),q(Wu,19,this),tu(this,qu,q(Wu,20,this)),q(Wu,23,this),tu(this,Ju,q(Wu,24,this)),q(Wu,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=a,this.type=o}accepts(e){let{accept:t}=this;return t?typeof t==`function`?t(e):e.type?Array.isArray(t)?t.includes(e.type):e.type===t:!1:!0}get isDropTarget(){return this.manager?.dragOperation.target?.id===this.id}};Wu=ql(Uu),Gu=new WeakMap,Ku=new WeakMap,Y=new WeakMap,qu=new WeakMap,Ju=new WeakMap,J(Wu,4,`accept`,Hu,Yu,Gu),J(Wu,4,`type`,Vu,Yu,Ku),J(Wu,4,`collisionDetector`,Bu,Yu,Y),J(Wu,4,`collisionPriority`,zu,Yu,qu),J(Wu,4,`shape`,Ru,Yu,Ju),J(Wu,2,`isDropTarget`,Lu,Yu),Zl(Wu,Yu);var Xu=(e=>(e[e.Lowest=0]=`Lowest`,e[e.Low=1]=`Low`,e[e.Normal=2]=`Normal`,e[e.High=3]=`High`,e[e.Highest=4]=`Highest`,e))(Xu||{}),Zu=(e=>(e[e.Collision=0]=`Collision`,e[e.ShapeIntersection=1]=`ShapeIntersection`,e[e.PointerIntersection=2]=`PointerIntersection`,e))(Zu||{}),Qu,$u,ed,td,nd,rd,id,ad=[H],od,sd;id=[Oc],rd=[Oc],nd=[Oc],td=[Oc],ed=[Oc],$u=[Oc],Qu=[Oc];var cd=class{constructor(){q(od,5,this),tu(this,sd,q(od,8,this,`idle`)),q(od,11,this)}get current(){return this.value}get idle(){return this.value===`idle`}get initializationPending(){return this.value===`initialization-pending`}get initializing(){return this.value===`initializing`}get initialized(){let{value:e}=this;return e!==`idle`&&e!==`initialization-pending`}get dragging(){return this.value===`dragging`}get dropped(){return this.value===`dropped`}set(e){this.value=e}};od=ql(null),sd=new WeakMap,J(od,4,`value`,ad,cd,sd),J(od,2,`current`,id,cd),J(od,2,`idle`,rd,cd),J(od,2,`initializationPending`,nd,cd),J(od,2,`initializing`,td,cd),J(od,2,`initialized`,ed,cd),J(od,2,`dragging`,$u,cd),J(od,2,`dropped`,Qu,cd),Zl(od,cd);var ld=class extends du{constructor(e,t){super(e,t),this.manager=e,this.options=t}},ud=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(let t of e??[])t.controller=this}onEvent(e){if(!this.activated){if(this.constraints?.length)for(let t of this.constraints)t.onEvent(e);else this.activate(e)}}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},dd,fd=class{constructor(e){this.options=e,tu(this,dd)}set controller(e){nu(this,dd,e),e.signal.addEventListener(`abort`,()=>this.abort())}activate(e){var t;(t=eu(this,dd))==null||t.activate(e)}};dd=new WeakMap;var pd,md,hd,gd,_d,vd,yd,bd,xd=[Oc],X,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad;bd=[H],yd=[H],vd=[H],_d=[H],gd=[H],hd=[Oc],md=[Oc],pd=[Oc];var jd=class{constructor(e){q(wd,5,this),tu(this,X),tu(this,Sd),tu(this,Cd,new Zc(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new cd,tu(this,Td,q(wd,8,this,!1)),q(wd,11,this),tu(this,Ed,q(wd,12,this,null)),q(wd,15,this),tu(this,Dd,q(wd,16,this,null)),q(wd,19,this),tu(this,Od,q(wd,20,this,null)),q(wd,23,this),tu(this,kd,q(wd,24,this,[])),q(wd,27,this),this.position=new Ml({x:0,y:0}),tu(this,Ad,{x:0,y:0}),nu(this,X,e)}get shape(){let{current:e,initial:t,previous:n}=eu(this,Cd);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?eu(this,Cd).current=e:eu(this,Cd).reset()}get source(){let e=this.sourceIdentifier;if(e==null)return null;let t=eu(this,X).registry.draggables.get(e);return t&&nu(this,Sd,t),t??eu(this,Sd)??null}get target(){let e=this.targetIdentifier;return e==null?null:eu(this,X).registry.droppables.get(e)??null}get transform(){let{x:e,y:t}=this.position.delta,n={x:e,y:t};for(let e of this.modifiers)n=e.apply(Wl(Ul({},this.snapshot()),{transform:n}));return nu(this,Ad,n),n}snapshot(){return Ms(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:eu(this,Ad),shape:this.shape?Qc(this.shape):null,position:Qc(this.position),status:Qc(this.status),canceled:this.canceled}))}reset(){ks(()=>{this.status.set(`idle`),this.sourceIdentifier=null,this.targetIdentifier=null,eu(this,Cd).reset(),this.position.reset({x:0,y:0}),nu(this,Ad,{x:0,y:0}),this.modifiers=[]})}};wd=ql(null),X=new WeakMap,Sd=new WeakMap,Cd=new WeakMap,Td=new WeakMap,Ed=new WeakMap,Dd=new WeakMap,Od=new WeakMap,kd=new WeakMap,Ad=new WeakMap,J(wd,2,`shape`,xd,jd),J(wd,4,`canceled`,bd,jd,Td),J(wd,4,`activatorEvent`,yd,jd,Ed),J(wd,4,`sourceIdentifier`,vd,jd,Dd),J(wd,4,`targetIdentifier`,_d,jd,Od),J(wd,4,`modifiers`,gd,jd,kd),J(wd,2,`source`,hd,jd),J(wd,2,`target`,md,jd),J(wd,2,`transform`,pd,jd),Zl(wd,jd);var Md=e=>{throw TypeError(e)},Nd=(e,t,n)=>t.has(e)||Md(`Cannot `+n),Z=(e,t,n)=>(Nd(e,t,`read from private field`),t.get(e)),Q=(e,t,n)=>t.has(e)?Md(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Pd=(e,t,n,r)=>(Nd(e,t,`write to private field`),t.set(e,n),n),Fd=(e,t,n)=>(Nd(e,t,`access private method`),n);function Id(e){return e?e instanceof KeyframeEffect||`getKeyframes`in e&&typeof e.getKeyframes==`function`:!1}function Ld(e,t){let n=e.getAnimations(),r=null;for(let e of n){if(e.playState!==`running`)continue;let{effect:n}=e,i=(Id(n)?n.getKeyframes():[]).filter(t);i.length>0&&(r=[i[i.length-1],e])}return r}function Rd(e){let{width:t,height:n,top:r,left:i,bottom:a,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:a,right:o}}function zd(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Bd(e){return`nodeType`in e}function Vd(e){return e?zd(e)?e:Bd(e)?`defaultView`in e?e.defaultView??window:e.ownerDocument?.defaultView??window:window:window}function Hd(e){let{Document:t}=Vd(e);return e instanceof t||`nodeType`in e&&e.nodeType===Node.DOCUMENT_NODE}function Ud(e){return!e||zd(e)?!1:e instanceof Vd(e).HTMLElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`html`)}function Wd(e){return e instanceof Vd(e).SVGElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`svg`)}function Gd(e){return e?zd(e)?e.document:Bd(e)?Hd(e)?e:Ud(e)||Wd(e)?e.ownerDocument:document:document:document}function Kd(e){let{documentElement:t}=Gd(e),n=Vd(e).visualViewport,r=n?.width??t.clientWidth,i=n?.height??t.clientHeight,a=n?.offsetTop??0,o=n?.offsetLeft??0;return{top:a,left:o,right:o+r,bottom:a+i,width:r,height:i}}function qd(e,t){if(Jd(e)&&e.open===!1)return!1;let{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n===`visible`&&r===`visible`&&i===`visible`}function Jd(e){return e.tagName===`DETAILS`}function Yd(e,t=e.getBoundingClientRect(),n=0){let r=t,{ownerDocument:i}=e,a=i.defaultView??window,o=e.parentElement;for(;o&&o!==i.documentElement;){if(!qd(o)){let e=o.getBoundingClientRect(),t=n*(e.bottom-e.top),i=n*(e.right-e.left),a=n*(e.bottom-e.top),s=n*(e.right-e.left);r={top:Math.max(r.top,e.top-t),right:Math.min(r.right,e.right+i),bottom:Math.min(r.bottom,e.bottom+a),left:Math.max(r.left,e.left-s),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top}o=o.parentElement}let s=a.visualViewport,c=s?.offsetTop??0,l=s?.offsetLeft??0,u=s?.width??a.innerWidth,d=s?.height??a.innerHeight,f=n*d,p=n*u;return r={top:Math.max(r.top,c-f),right:Math.min(r.right,l+u+p),bottom:Math.min(r.bottom,c+d+f),left:Math.max(r.left,l-p),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r}function Xd(e){return{x:e.clientX,y:e.clientY}}var Zd=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Qd(e=document,t=new Set){if(t.has(e))return[];t.add(e);let n=[e];for(let r of Array.from(e.querySelectorAll(`iframe, frame`)))try{let e=r.contentDocument;e&&!t.has(e)&&n.push(...Qd(e,t))}catch{}try{let r=e.defaultView;if(r&&r!==window.top){let i=r.parent;i&&i.document&&i.document!==e&&n.push(...Qd(i.document,t))}}catch{}return n}function $d(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ef(){let e=$d()?window.visualViewport:null;return{x:e?.offsetLeft??0,y:e?.offsetTop??0}}function tf(e){return!e||!Bd(e)?!1:e instanceof Vd(e).ShadowRoot}function nf(e){if(e&&Bd(e)){let t=e.getRootNode();if(tf(t)||t instanceof Document)return t}return Gd(e)}function rf(e){return e.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function af(e){let t=`input, textarea, select, canvas, [contenteditable]`,n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{let n=r[t];of(e)&&of(n)&&(e.type!==`file`&&(e.value=n.value),e.type===`radio`&&e.name&&(e.name=`Cloned__${e.name}`)),sf(e)&&sf(n)&&n.width>0&&n.height>0&&e.getContext(`2d`)?.drawImage(n,0,0)}),n}function of(e){return`value`in e}function sf(e){return e.tagName===`CANVAS`}function cf(e,{x:t,y:n}){let r=e.elementFromPoint(t,n);if(lf(r)){let{contentDocument:e}=r;if(e){let{left:i,top:a}=r.getBoundingClientRect();return cf(e,{x:t-i,y:n-a})}}return r}function lf(e){return e?.tagName===`IFRAME`}var uf=new WeakMap;function df(e){return e.closest(`
24
+ input:not([disabled]),
25
+ select:not([disabled]),
26
+ textarea:not([disabled]),
27
+ button:not([disabled]),
28
+ a[href],
29
+ [contenteditable]:not([contenteditable="false"])
30
+ `)}var ff=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){let n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(let e of n)for(let t of r){let{type:n,listener:r,options:a}=t,o=[e,t];e.addEventListener(n,r,a),this.entries.add(o),i.push(o)}let a=this.entries;return function(){for(let e of i){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i),a.delete(e)}}}};function pf(e){let t=e?.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function mf(e){let t=new Set,n=pf(e);for(;n;)t.add(n),n=pf(n);return t}function hf(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}function gf(e,t){let n=()=>performance.now(),r,i;return function(...a){let o=this;i?(r?.(),r=hf(()=>{e.apply(o,a),i=n()},t-(n()-i))):(e.apply(o,a),i=n())}}function _f(e,t){return e===t?!0:!e||!t?!1:e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}function vf(e,t=e.getBoundingClientRect()){let{width:n,height:r}=Yd(e,t);return n>0&&r>0}var yf=typeof ResizeObserver<`u`?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},bf,xf=class extends yf{constructor(e){super(t=>{Z(this,bf)?e(t,this):Pd(this,bf,!0)}),Q(this,bf,!1)}};bf=new WeakMap;var Sf=Array.from({length:100},(e,t)=>t/100),Cf=75,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Q(this,Mf),this.disconnect=()=>{var e,t,n;Pd(this,Af,!0),(e=Z(this,Ef))==null||e.disconnect(),(t=Z(this,Df))==null||t.disconnect(),Z(this,Of).disconnect(),(n=Z(this,kf))==null||n.remove()},Q(this,wf,!0),Q(this,Tf),Q(this,Ef),Q(this,Df),Q(this,Of),Q(this,kf),Q(this,Af,!1),Q(this,jf,gf(()=>{var e;let{element:t}=this;if((e=Z(this,Df))==null||e.disconnect(),Z(this,Af)||!Z(this,wf)||!t.isConnected)return;let n=t.ownerDocument??document,{innerHeight:r,innerWidth:i}=n.defaultView??window,a=t.getBoundingClientRect(),{top:o,left:s,bottom:c,right:l}=Yd(t,a),u=-Math.floor(o),d=-Math.floor(s),f=`${u}px ${-Math.floor(i-l)}px ${-Math.floor(r-c)}px ${d}px`;this.boundingClientRect=a,Pd(this,Df,new IntersectionObserver(e=>{let[n]=e,{intersectionRect:r}=n;(n.intersectionRatio===1?Tl.intersectionRatio(r,Yd(t)):n.intersectionRatio)!==1&&Z(this,jf).call(this)},{threshold:Sf,rootMargin:f,root:n})),Z(this,Df).observe(t),Fd(this,Mf,Nf).call(this)},Cf)),this.boundingClientRect=e.getBoundingClientRect(),Pd(this,wf,vf(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};let i=e.ownerDocument;n?.debug&&(Pd(this,kf,document.createElement(`div`)),Z(this,kf).style.background=`rgba(0,0,0,0.15)`,Z(this,kf).style.position=`fixed`,Z(this,kf).style.pointerEvents=`none`,i.body.appendChild(Z(this,kf))),Pd(this,Of,new IntersectionObserver(t=>{var n,r;let{boundingClientRect:i,isIntersecting:a}=t[t.length-1],{width:o,height:s}=i,c=Z(this,wf);Pd(this,wf,a),(o||s)&&(c&&!a?((n=Z(this,Df))==null||n.disconnect(),this.callback(null),(r=Z(this,Ef))==null||r.disconnect(),Pd(this,Ef,void 0),Z(this,kf)&&(Z(this,kf).style.visibility=`hidden`)):Z(this,jf).call(this),a&&!Z(this,Ef)&&(Pd(this,Ef,new xf(Z(this,jf))),Z(this,Ef).observe(e)))},{threshold:Sf,root:i})),Z(this,wf)&&!n.skipInitial&&this.callback(this.boundingClientRect),Z(this,Of).observe(e)}};wf=new WeakMap,Tf=new WeakMap,Ef=new WeakMap,Df=new WeakMap,Of=new WeakMap,kf=new WeakMap,Af=new WeakMap,jf=new WeakMap,Mf=new WeakSet,Nf=function(){Z(this,Af)||(Fd(this,Mf,Pf).call(this),!_f(this.boundingClientRect,Z(this,Tf))&&(this.callback(this.boundingClientRect),Pd(this,Tf,this.boundingClientRect)))},Pf=function(){if(Z(this,kf)){let{top:e,left:t,width:n,height:r}=Yd(this.element);Z(this,kf).style.overflow=`hidden`,Z(this,kf).style.visibility=`visible`,Z(this,kf).style.top=`${Math.floor(e)}px`,Z(this,kf).style.left=`${Math.floor(t)}px`,Z(this,kf).style.width=`${Math.floor(n)}px`,Z(this,kf).style.height=`${Math.floor(r)}px`}};var If=new WeakMap,Lf=new WeakMap;function Rf(e,t){let n=If.get(e);return n||={disconnect:new Ff(e,t=>{let n=If.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0}).disconnect,callbacks:new Set},n.callbacks.add(t),If.set(e,n),()=>{n.callbacks.delete(t),n.callbacks.size===0&&(If.delete(e),n.disconnect())}}function zf(e,t){let n=new Set;for(let r of e){let e=Rf(r,t);n.add(e)}return()=>n.forEach(e=>e())}function Bf(e,t){let n=e.ownerDocument;if(!Lf.has(n)){let e=new AbortController,t=new Set;document.addEventListener(`scroll`,e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),Lf.set(n,{disconnect:()=>e.abort(),listeners:t})}let{listeners:r,disconnect:i}=Lf.get(n)??{};return!r||!i?()=>{}:(r.add(t),()=>{r.delete(t),r.size===0&&(i(),Lf.delete(n))})}var Vf,Hf,Uf,Wf,Gf=class{constructor(e,t,n){this.callback=t,Q(this,Vf),Q(this,Hf,!1),Q(this,Uf),Q(this,Wf,gf(e=>{if(!Z(this,Hf)&&e.target&&`contains`in e.target&&typeof e.target.contains==`function`){for(let t of Z(this,Uf))if(e.target.contains(t)){this.callback(Z(this,Vf).boundingClientRect);break}}},Cf));let r=mf(e),i=zf(r,t),a=Bf(e,Z(this,Wf));Pd(this,Uf,r),Pd(this,Vf,new Ff(e,t,n)),this.disconnect=()=>{Z(this,Hf)||(Pd(this,Hf,!0),i(),a(),Z(this,Vf).disconnect())}}};Vf=new WeakMap,Hf=new WeakMap,Uf=new WeakMap,Wf=new WeakMap;function Kf(e){return`showPopover`in e&&`hidePopover`in e&&typeof e.showPopover==`function`&&typeof e.hidePopover==`function`}function qf(e){try{Kf(e)&&e.isConnected&&e.hasAttribute(`popover`)&&!e.matches(`:popover-open`)&&e.showPopover()}catch{}}var Jf=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},Yf=new Jf(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),Xf=new Jf(e=>setTimeout(e,50)),Zf=new Map,Qf=Zf.clear.bind(Zf);function $f(e,t=!1){if(!t)return ep(e);let n=Zf.get(e);return n||(n=ep(e),Zf.set(e,n),Xf.schedule(Qf),n)}function ep(e){return Vd(e).getComputedStyle(e)}function tp(e){return!Zd||!e?!1:e===Gd(e).scrollingElement}function np(e){let t=Vd(e),n=tp(e),r=n?Kd(e):Rd(e),i=t.visualViewport,a=n?{height:i?.height??t.innerHeight,width:i?.width??t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o=e.scrollWidth-a.width,s=$f(e,!0),c=n?s.direction===`rtl`:rp(s),l={current:{x:e.scrollLeft,y:e.scrollTop},min:{x:c?-o:0,y:0},max:{x:c?0:o,y:e.scrollHeight-a.height}};return{rect:r,position:l,isTop:l.current.y<=l.min.y,isLeft:l.current.x<=l.min.x,isBottom:l.current.y>=l.max.y,isRight:l.current.x>=l.max.x}}function rp(e){let{direction:t,display:n,writingMode:r}=e,i=r===`vertical-lr`||r===`vertical-rl`||r===`sideways-lr`||r===`sideways-rl`,a=i?r===`vertical-rl`||r===`sideways-rl`:t===`rtl`;if(n!==`flex`&&n!==`inline-flex`)return a;let{flexDirection:o,flexWrap:s}=e,c=o===`row`||o===`row-reverse`;return a!==((i?!c:c)?o===`row-reverse`||o===`column-reverse`:s===`wrap-reverse`)}function ip(e,t,n=np(e)){let{isTop:r,isBottom:i,isLeft:a,isRight:o,position:s}=n,{x:c,y:l}=t??{x:0,y:0},u=!r&&s.current.y+l>s.min.y,d=!i&&s.current.y+l<s.max.y,f=!a&&s.current.x+c>s.min.x,p=!o&&s.current.x+c<s.max.x;return{top:u,bottom:d,left:f,right:p,x:f||p,y:u||d}}function ap(e,t=$f(e,!0)){return t.position===`fixed`||t.position===`sticky`}function op(e,t=$f(e,!0)){let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}var sp={excludeElement:!0,escapeShadowDOM:!0};function cp(e,t=sp){let{limit:n,excludeElement:r,escapeShadowDOM:i}=t,a=new Set;function o(t){if(n!=null&&a.size>=n||!t)return a;if(Hd(t)&&t.scrollingElement!=null&&!a.has(t.scrollingElement))return a.add(t.scrollingElement),a;if(i&&tf(t))return o(t.host);if(!Ud(t))return Wd(t)?o(t.parentElement):a;if(a.has(t))return a;let s=$f(t,!0);if(r&&t===e||op(t,s)&&a.add(t),ap(t,s)){let{scrollingElement:e}=t.ownerDocument;return e&&a.add(e),a}return o(t.parentNode)}return e?o(e):a}function lp(e,t=window.frameElement){let n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=pf(e);for(;r;){if(r===t)return n;let e=Rd(r),{x:i,y:a}=up(r,e);n.x+=e.left,n.y+=e.top,n.scaleX*=i,n.scaleY*=a,r=pf(r)}return n}function up(e,t=Rd(e)){let n=Math.round(t.width),r=Math.round(t.height);if(Ud(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};let i=$f(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function dp(e){if(!e||e===`none`)return null;let t=e.split(` `),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}function fp(e){if(!e||e===`none`)return null;let[t,n,r=`0`]=e.split(` `),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function pp(e){let{scale:t,transform:n,translate:r}=e,i=dp(t),a=fp(r),o=mp(n);if(!o&&!i&&!a)return null;let s={x:i?.x??1,y:i?.y??1},c={x:a?.x??0,y:a?.y??0},l={x:o?.x??0,y:o?.y??0,scaleX:o?.scaleX??1,scaleY:o?.scaleY??1};return{x:c.x+l.x,y:c.y+l.y,z:a?.z??0,scaleX:s.x*l.scaleX,scaleY:s.y*l.scaleY}}function mp(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}var hp=(e=>(e[e.Idle=0]=`Idle`,e[e.Forward=1]=`Forward`,e[e.Reverse=-1]=`Reverse`,e))(hp||{}),gp={x:.2,y:.2},_p={x:10,y:10};function vp(e,t,n,r=25,i=gp,a=_p,o=np(e)){let{x:s,y:c}=t,{rect:l,isTop:u,isBottom:d,isLeft:f,isRight:p}=o,m=lp(e),h=pp($f(e,!0)),g=h!==null&&h?.scaleX<0,_=h!==null&&h?.scaleY<0,v=new Tl(l.left*m.scaleX+m.x,l.top*m.scaleY+m.y,l.width*m.scaleX,l.height*m.scaleY),y={x:0,y:0},b={x:0,y:0},x={height:v.height*i.y,width:v.width*i.x};return x.height>0&&(!u||_&&!d)&&c<=v.top+x.height&&n?.y!==1&&s>=v.left-a.x&&s<=v.right+a.x?(y.y=_?1:-1,b.y=r*Math.abs((v.top+x.height-c)/x.height)):x.height>0&&(!d||_&&!u)&&c>=v.bottom-x.height&&n?.y!==-1&&s>=v.left-a.x&&s<=v.right+a.x&&(y.y=_?-1:1,b.y=r*Math.abs((v.bottom-x.height-c)/x.height)),x.width>0&&(!p||g&&!f)&&s>=v.right-x.width&&n?.x!==-1&&c>=v.top-a.y&&c<=v.bottom+a.y?(y.x=g?-1:1,b.x=r*Math.abs((v.right-x.width-s)/x.width)):x.width>0&&(!f||g&&!p)&&s<=v.left+x.width&&n?.x!==1&&c>=v.top-a.y&&c<=v.bottom+a.y&&(y.x=g?1:-1,b.x=r*Math.abs((v.left+x.width-s)/x.width)),{direction:y,speed:b}}function yp(e,{block:t=`nearest`,inline:n=`nearest`}={}){if(!Ud(e))return;let r=cp(e),i=[];for(let a of r){if(!Ud(a))continue;let{top:r,left:o}=xp(e,a),s=r,c=o;for(let e of i)s-=e.scrollTop,c-=e.scrollLeft;if(t!==`none`){let n=s<a.scrollTop;n!==s+e.offsetHeight>a.scrollTop+a.clientHeight&&(a.scrollTop=t===`center`?s-a.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-a.clientHeight)}if(n!==`none`){let t=c<a.scrollLeft;t!==c+e.offsetWidth>a.scrollLeft+a.clientWidth&&(a.scrollLeft=n===`center`?c-a.clientWidth/2+e.offsetWidth/2:t?c:c+e.offsetWidth-a.clientWidth)}i.push(a)}}function bp(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;let e=r.offsetParent;if(!Ud(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function xp(e,t){let n=bp(e),r=bp(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Sp(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left+a+(1-r)*parseFloat(n),c=e.top+o+(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function Cp(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left-a-(1-r)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function wp({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}var Tp=new Jf(e=>setTimeout(e,0)),Ep=new Map,Dp=Ep.clear.bind(Ep);function Op(e){let t=e.ownerDocument,n=Ep.get(t);if(n)return n;n=t.getAnimations(),Ep.set(t,n),Tp.schedule(Dp);let r=n.filter(t=>Id(t.effect)&&t.effect.target===e);return Ep.set(e,r),n}function kp(e,t){let n=Op(e).filter(e=>{if(Id(e.effect)){let{target:n}=e.effect;if((n&&t.isValidTarget?.call(t,n))??!0)return e.effect.getKeyframes().some(e=>{for(let n of t.properties)if(e[n])return!0})}}).map(e=>{let{effect:t,currentTime:n}=e,r=t?.getComputedTiming().duration;if(!(e.pending||e.playState===`finished`)&&typeof r==`number`&&typeof n==`number`&&n<r)return e.currentTime=r,()=>{e.currentTime=n}});if(n.length>0)return()=>n.forEach(e=>e?.())}var Ap=class extends Tl{constructor(e,t={}){let{frameTransform:n=lp(e),ignoreTransforms:r,getBoundingClientRect:i=Rd}=t,a=kp(e,{properties:[`transform`,`translate`,`scale`,`width`,`height`],isValidTarget:t=>(t!==e||$d())&&t.contains(e)}),o=i(e),{top:s,left:c,width:l,height:u}=o,d,f=$f(e),p=pp(f),m={x:p?.scaleX??1,y:p?.scaleY??1},h=jp(e,f);a?.(),p&&(d=Cp(o,p,f.transformOrigin),(r||h)&&(s=d.top,c=d.left,l=d.width,u=d.height));let g={width:d?.width??l,height:d?.height??u};if(h&&!r&&d){let e=Sp(d,h,f.transformOrigin);s=e.top,c=e.left,l=e.width,u=e.height,m.x=h.scaleX,m.y=h.scaleY}n&&(r||(c*=n.scaleX,l*=n.scaleX,s*=n.scaleY,u*=n.scaleY),c+=n.x,s+=n.y),super(c,s,l,u),this.scale=m,this.intrinsicWidth=g.width,this.intrinsicHeight=g.height}};function jp(e,t){let n=e.getAnimations();if(!n.length)return null;let r,i,a,o=!1;for(let e of n){if(e.playState!==`running`)continue;let t=Id(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;let{transform:s,translate:c,scale:l}=n;typeof s==`string`&&s&&(r=s,o=!0),typeof c==`string`&&c&&(i=c,o=!0),typeof l==`string`&&l&&(a=l,o=!0)}return o?pp({transform:r??t.transform,translate:i??t.translate,scale:a??t.scale}):null}function Mp(e){return`style`in e&&typeof e.style==`object`&&e.style!==null&&`setProperty`in e.style&&`removeProperty`in e.style&&typeof e.style.setProperty==`function`&&typeof e.style.removeProperty==`function`}var Np=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=``){let{element:n}=this;if(Mp(n))for(let[r,i]of Object.entries(e)){let e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,typeof i==`string`?i:`${i}px`)}}remove(e,t=``){let{element:n}=this;if(Mp(n))for(let r of e){let e=`${t}${r}`;n.style.removeProperty(e)}}reset(){let{element:e}=this;if(Mp(e)){for(let[t,n]of this.initial)e.style.setProperty(t,n);e.getAttribute(`style`)===``&&e.removeAttribute(`style`)}}};function Pp(e){return e?e instanceof Vd(e).Element||Bd(e)&&e.nodeType===Node.ELEMENT_NODE:!1}function Fp(e){if(!e)return!1;let{KeyboardEvent:t}=Vd(e.target);return e instanceof t}function Ip(e){if(!e)return!1;let{PointerEvent:t}=Vd(e.target);return e instanceof t}function Lp(e){if(!Pp(e))return!1;let{tagName:t}=e;return t===`INPUT`||t===`TEXTAREA`||Rp(e)}function Rp(e){return e.hasAttribute(`contenteditable`)&&e.getAttribute(`contenteditable`)!==`false`}var zp={};function Bp(e){let t=zp[e]==null?0:zp[e]+1;return zp[e]=t,`${e}-${t}`}var Vp=({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/wl.distance(t.shape.center,n),type:Zu.PointerIntersection,priority:Xu.High}:null},Hp=({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!n?.current)return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,a=wl.distance(t.shape.center,i.current),o=r/(n.current.area+t.shape.area-r)/a;return{id:t.id,value:o,type:Zu.ShapeIntersection,priority:Xu.Normal}}return null},Up=e=>Vp(e)??Hp(e),Wp=Object.create,Gp=Object.defineProperty,Kp=Object.defineProperties,qp=Object.getOwnPropertyDescriptor,Jp=Object.getOwnPropertyDescriptors,Yp=Object.getOwnPropertySymbols,Xp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable,Qp=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),$p=e=>{throw TypeError(e)},em=(e,t,n)=>t in e?Gp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tm=(e,t)=>{for(var n in t||={})Xp.call(t,n)&&em(e,n,t[n]);if(Yp)for(var n of Yp(t))Zp.call(t,n)&&em(e,n,t[n]);return e},nm=(e,t)=>Kp(e,Jp(t)),rm=(e,t)=>Gp(e,`name`,{value:t,configurable:!0}),im=(e,t)=>{var n={};for(var r in e)Xp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yp)for(var r of Yp(e))t.indexOf(r)<0&&Zp.call(e,r)&&(n[r]=e[r]);return n},am=e=>[,,,Wp(e?.[Qp(`metadata`)]??null)],om=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],sm=e=>e!==void 0&&typeof e!=`function`?$p(`Function expected`):e,cm=(e,t,n,r,i)=>({kind:om[e],name:t,metadata:r,addInitializer:e=>n._?$p(`Already initialized`):i.push(sm(e||null))}),lm=(e,t)=>em(t,Qp(`metadata`),e[3]),um=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},dm=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=om[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&qp(d<4?i:{get[n](){return $(this,a)},set[n](e){return hm(this,a,e)}},n));d?p&&d<4&&rm(a,(d>2?`set `:d>1?`get `:``)+n):rm(i,n);for(var y=r.length-1;y>=0;y--)l=cm(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>pm(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?$:gm)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>hm(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?sm(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?$p(`Object expected`):(sm(o=s.get)&&(v.get=o),sm(o=s.set)&&(v.set=o),sm(o=s.init)&&g.unshift(o));return d||lm(e,i),v&&Gp(i,n,v),p?d^4?a:v:i},fm=(e,t,n)=>t.has(e)||$p(`Cannot `+n),pm=(e,t)=>Object(t)===t?e.has(t):$p(`Cannot use the "in" operator on this value`),$=(e,t,n)=>(fm(e,t,`read from private field`),n?n.call(e):t.get(e)),mm=(e,t,n)=>t.has(e)?$p(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),hm=(e,t,n,r)=>(fm(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),gm=(e,t,n)=>(fm(e,t,`access private method`),n),_m=new Map;function vm(e){return tf(e)?e.host.isConnected:e.defaultView!=null}var ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm=class extends (wm=fu,Cm=[H],Sm=[H],xm=[Oc],bm=[Oc],ym=[Oc],wm){constructor(e,t){super(e,t),um(Tm,5,this),mm(this,Am),mm(this,Em,um(Tm,8,this,new Map)),um(Tm,11,this),mm(this,Dm,um(Tm,12,this,new Set)),um(Tm,15,this),mm(this,Om,new Set),mm(this,km,new Map),this.registerEffect(gm(this,Am,jm))}register(e,t){return Ms(()=>{let n=new Map(this.registeredRules);n.set(e,t?.retain??!1),this.registeredRules=n}),()=>{Ms(()=>{let t=new Map(this.registeredRules);t.delete(e),this.registeredRules=t})}}addRoot(e){return Ms(()=>{let t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{Ms(()=>{let t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){let{source:e}=this.manager.dragOperation;return nf(e?.element??null)}get targetRoot(){let{target:e}=this.manager.dragOperation;return nf(e?.element??null)}get roots(){let{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){let e=[this.sourceRoot,this.targetRoot].filter(e=>e!=null);return new Set([...e,...this.additionalRoots])}return new Set}destroy(){for(let e of $(this,km).values())for(let t of e.values())t();$(this,km).clear(),$(this,Om).clear(),super.destroy()}};Tm=am(wm),Em=new WeakMap,Dm=new WeakMap,Om=new WeakMap,km=new WeakMap,Am=new WeakSet,jm=function(){let{roots:e,registeredRules:t}=this;for(let t of e)$(this,Om).add(t);let n=new Map;for(let r of $(this,Om)){let i=e.has(r);if(!i&&!vm(r))$(this,Om).delete(r);else for(let[e,a]of t){if(!i&&!a)continue;let t=n.get(r);t||(t=new Set,n.set(r,t)),t.add(e)}}for(let[e,t]of $(this,km)){let r=n.get(e);for(let[e,n]of t)r?.has(e)||(n(),t.delete(e));t.size===0&&$(this,km).delete(e)}for(let[e,t]of n){let n=$(this,km).get(e);n||(n=new Map,$(this,km).set(e,n));for(let r of t)n.has(r)||n.set(r,gm(this,Am,Mm).call(this,e,r))}},Mm=function(e,t){let n=_m.get(e);n||(n=new Map,_m.set(e,n));let r=n.get(t);if(!r){let i=Hd(e)?gm(this,Am,Nm).call(this,e,n,t):gm(this,Am,Pm).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,r.refCount===0&&r.cleanup())}},Nm=function(e,t,n){let r=e.createElement(`style`),{nonce:i}=this.options??{};i&&r.setAttribute(`nonce`,i),r.textContent=n,e.head.prepend(r);let a=new MutationObserver(t=>{for(let n of t)for(let t of Array.from(n.removedNodes))if(t===r){e.head.prepend(r);return}});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),r.remove(),t.delete(n),t.size===0&&_m.delete(e)}}},Pm=function(e,t,n){`adoptedStyleSheets`in e&&Array.isArray(e.adoptedStyleSheets);let{CSSStyleSheet:r}=e.ownerDocument.defaultView??{};if(!r)return null;let i=new r;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{if(tf(e)&&e.host?.isConnected){let t=e.adoptedStyleSheets.indexOf(i);t!==-1&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),t.size===0&&_m.delete(e)}}},dm(Tm,4,`registeredRules`,Cm,Fm,Em),dm(Tm,4,`additionalRoots`,Sm,Fm,Dm),dm(Tm,2,`sourceRoot`,xm,Fm),dm(Tm,2,`targetRoot`,bm,Fm),dm(Tm,2,`roots`,ym,Fm),lm(Tm,Fm),Fm.configure=au(Fm);var Im=Fm,Lm=`data-dnd-`,Rm=`${Lm}dropping`,zm=`--dnd-`,Bm=`${Lm}dragging`,Vm=`${Lm}placeholder`,Hm=[Bm,Vm,`popover`,`aria-pressed`,`aria-grabbing`],Um=[`view-transition-name`],Wm=`
31
+ :is(:root,:host) [${Bm}] {
32
+ position: fixed !important;
33
+ pointer-events: none !important;
34
+ touch-action: none;
35
+ z-index: calc(infinity);
36
+ will-change: translate;
37
+ top: var(${zm}top, 0px) !important;
38
+ left: var(${zm}left, 0px) !important;
39
+ right: unset !important;
40
+ bottom: unset !important;
41
+ width: var(${zm}width, auto);
42
+ max-width: var(${zm}width, auto);
43
+ height: var(${zm}height, auto);
44
+ max-height: var(${zm}height, auto);
45
+ transform: var(${zm}transform, none) !important;
46
+ transition: var(${zm}transition) !important;
47
+ }
48
+
49
+ :is(:root,:host) [${Vm}] {
50
+ transition: none;
51
+ }
52
+
53
+ :is(:root,:host) [${Vm}='hidden'] {
54
+ visibility: hidden;
55
+ }
56
+
57
+ [${Bm}] * {
58
+ pointer-events: none !important;
59
+ }
60
+
61
+ [${Bm}]:not([${Rm}]) {
62
+ translate: var(${zm}translate) !important;
63
+ }
64
+
65
+ [${Bm}][style*='${zm}scale'] {
66
+ scale: var(${zm}scale) !important;
67
+ transform-origin: var(${zm}transform-origin) !important;
68
+ }
69
+
70
+ @layer dnd-kit {
71
+ :where([${Bm}][popover]) {
72
+ overflow: visible;
73
+ background: unset;
74
+ border: unset;
75
+ margin: unset;
76
+ padding: unset;
77
+ color: inherit;
78
+
79
+ &:is(input, button) {
80
+ border: revert;
81
+ background: revert;
82
+ }
83
+ }
84
+ }
85
+ [${Bm}]::backdrop, [${Lm}overlay]:not([${Bm}]) {
86
+ display: none;
87
+ visibility: hidden;
88
+ }
89
+ `.replace(/\n+/g,` `).replace(/\s+/g,` `).trim();function Gm(e,t=`hidden`){return Ms(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=Km(n,r.registry.droppables),a=[],o=af(n),{remove:s}=o;return qm(i,o,a),Jm(o,t),o.remove=()=>{a.forEach(e=>e()),s.call(o)},o})}function Km(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${Lm}${Bp(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function qm(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),uf.set(o,a),n.push(()=>{uf.delete(o),r.proxy=void 0})}}function Jm(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(Vm,t)}function Ym(e,t){return e===t||pf(e)===pf(t)}function Xm(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&Pp(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>qf(t))}function Zm(e){return e.tagName===`TR`}function Qm(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||Hm.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(Mp(e)&&Mp(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(Um.includes(e)||e.startsWith(zm))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function $m(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),qf(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),qf(n);return}}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement(`afterend`,t),qf(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function eh(e){return new ResizeObserver(()=>{var t;let n=new Ap(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=ef();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},zm),(t=e.getElementMutationObserver())==null||t.takeRecords(),Zm(e.element)&&Zm(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}let s=e.getTranslate()??{x:0,y:0},c=e.left+i+o.x+s.x,l=e.top+a+o.y+s.y,u=n.width-e.widthOffset,d=n.height-e.heightOffset,f=e.frameTransform;e.dragOperation.shape=new Tl(c*f.scaleX+f.x,l*f.scaleY+f.y,u*f.scaleX,d*f.scaleY)})}var th=250,nh=`ease`;function rh(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=th,easing:i=nh}=n??{};qf(e.feedbackElement);let[,a]=Ld(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:Ym(e.feedbackElement,o)?null:void 0},c=new Ap(e.feedbackElement,s),l=fp($f(e.feedbackElement).translate)??e.translate,u=new Ap(o,s),d=Tl.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},zm),e.feedbackElement.setAttribute(Rm,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),wp({element:e.feedbackElement,keyframes:nm(tm(tm({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:rf(Vd(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(Rm),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var ih,ah,oh,sh,ch,lh,uh,dh=class extends (ah=du,ih=[H],ah){constructor(e,t){super(e,t),mm(this,ch),mm(this,sh,um(oh,8,this)),um(oh,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(Im),r=n?.register(Wm,{retain:!0});if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(gm(this,ch,lh).bind(this,n)),this.registerEffect(gm(this,ch,uh))}};oh=am(ah),sh=new WeakMap,ch=new WeakSet,lh=function(e){let{overlay:t}=this;if(!t||!e)return;let n=nf(t);if(n)return e.addRoot(n)},uh=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s}=a,c=a.pluginConfig(dh),l=c?.feedback??n?.feedback??`default`,u=typeof l==`function`?l(a,t):l;if(!s||u===`none`||!o.initialized||o.initializing)return;let{initial:d}=e,f=this.overlay??s,p=lp(f),m=lp(s),h=!Ym(s,f),g=new Ap(s,{frameTransform:h?m:null,ignoreTransforms:!h}),_={x:m.scaleX/p.scaleX,y:m.scaleY/p.scaleY},{width:v,height:y,top:b,left:x}=g;h&&(v/=_.x,y/=_.y);let S=new Np(f),C=$f(s),{transition:w,translate:T,boxSizing:E,paddingBlockStart:D,paddingBlockEnd:O,paddingInlineStart:k,paddingInlineEnd:A,borderInlineStartWidth:ee,borderInlineEndWidth:te,borderBlockStartWidth:j,borderBlockEndWidth:M}=C,N=w.split(`,`).filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(`,`),P=pp(C),ne=C.transform,re=u===`clone`,ie=E===`content-box`,ae=ie?parseInt(k)+parseInt(A)+parseInt(ee)+parseInt(te):0,F=ie?parseInt(D)+parseInt(O)+parseInt(j)+parseInt(M):0,I=u!==`move`&&!this.overlay?Gm(a,re?`clone`:`hidden`):null,oe=Ms(()=>Fp(t.dragOperation.activatorEvent));if(!d.translate){if(this.overlay&&P)d.translate={x:P.x,y:P.y};else if(T!==`none`){let e=fp(T);e&&(d.translate=e)}}if(!d.transformOrigin){let e=Ms(()=>i.current),t=x+(P?.x??0),n=b+(P?.y??0);d.transformOrigin={x:(e.x-t*p.scaleX-p.x)/(v*p.scaleX),y:(e.y-n*p.scaleY-p.y)/(y*p.scaleY)}}let{transformOrigin:se}=d,ce=b*p.scaleY+p.y,le=x*p.scaleX+p.x;if(!d.coordinates&&(d.coordinates={x:le,y:ce},_.x!==1||_.y!==1)){let{scaleX:e,scaleY:t}=m,{x:n,y:r}=se;d.coordinates.x+=(v*e-v)*n,d.coordinates.y+=(y*t-y)*r}d.dimensions||={width:v,height:y},d.frameTransform||=p;let ue={x:d.coordinates.x-le,y:d.coordinates.y-ce},de={width:(d.dimensions.width*d.frameTransform.scaleX-v*p.scaleX)*se.x,height:(d.dimensions.height*d.frameTransform.scaleY-y*p.scaleY)*se.y},fe={x:ue.x/p.scaleX+de.width,y:ue.y/p.scaleY+de.height},pe={left:x+fe.x,top:b+fe.y};f.setAttribute(Bm,`true`);let me=Ms(()=>r.transform),he=d.translate??{x:0,y:0},ge=me.x*p.scaleX+he.x,_e=me.y*p.scaleY+he.y,ve=ef();S.set({width:v-ae,height:y-F,top:pe.top+ve.y,left:pe.left+ve.x,translate:`${ge}px ${_e}px 0`,transform:this.overlay?`none`:ne,transition:N?`${N}, translate 0ms linear`:`translate 0ms linear`,scale:h?`${_.x} ${_.y}`:``,"transform-origin":`${se.x*100}% ${se.y*100}%`},zm),I&&(s.insertAdjacentElement(`afterend`,I),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),Kf(f)&&(f.hasAttribute(`popover`)||f.setAttribute(`popover`,`manual`),qf(f),f.addEventListener(`beforetoggle`,Xm));let ye,be,xe,Se=eh({placeholder:I,element:s,feedbackElement:f,frameTransform:p,transformOrigin:se,width:v,height:y,top:b,left:x,widthOffset:ae,heightOffset:F,delta:fe,styles:S,dragOperation:r,getTranslate:()=>e.current.translate,getElementMutationObserver:()=>ye,getSavedCellWidths:()=>xe,setSavedCellWidths:e=>{xe=e}}),Ce=new Ap(f);Ms(()=>r.shape=Ce);let we=Vd(f),Te=e=>{this.manager.actions.stop({event:e})},Ee=rf(we);oe&&we.addEventListener(`resize`,Te),Ms(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),I&&(Se.observe(I),ye=Qm(s,I,re),be=$m(s,I,f));let De=t.dragOperation.source?.id,Oe=()=>{if(!oe||De==null)return;let e=t.registry.draggables.get(De),n=e?.handle??e?.element;Ud(n)&&n.focus()},ke=()=>{ye?.disconnect(),be?.disconnect(),Se.disconnect(),we.removeEventListener(`resize`,Te),Kf(f)&&(f.removeEventListener(`beforetoggle`,Xm),f.removeAttribute(`popover`)),f.removeAttribute(Bm),S.reset();let t=()=>{if(xe&&Zm(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=xe[t]??``}a.status=`idle`;let t=e.current.translate!=null,n=r.status.dragging;I&&(!n&&t||I.parentElement!==f.parentElement)&&f.isConnected&&I.replaceWith(f),I?.remove()};f===this.overlay?setTimeout(t,0):t()},Ae=n?.dropAnimation,je=this,Me=Ac(()=>{let{transform:t,status:i}=r;if((t.x||t.y||e.current.translate)&&i.dragging){let i=d.translate??{x:0,y:0},a={x:t.x/p.scaleX+i.x,y:t.y/p.scaleY+i.y},o=e.current.translate,s=Ms(()=>r.modifiers),c=Ms(()=>r.shape?.current),l=n?.keyboardTransition,u=oe&&!Ee&&l!==null?`${l?.duration??250}ms ${l?.easing??`cubic-bezier(0.25, 1, 0.5, 1)`}`:`0ms linear`;if(S.set({transition:N?`${N}, translate ${u}`:`translate ${u}`,translate:`${a.x}px ${a.y}px 0`},zm),ye?.takeRecords(),c&&c!==Ce&&o&&!s.length){let e=wl.delta(a,o);r.shape=Tl.from(c.boundingRectangle).translate(e.x*p.scaleX,e.y*p.scaleY)}else r.shape=new Ap(f);e.current.translate=a}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=c?.dropAnimation===void 0?je.dropAnimation===void 0?Ae:je.dropAnimation:c.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==f&&(r={x:0,y:0}),!r||n===null){ke();return}t.renderer.rendering.then(()=>{rh({source:a,element:s,feedbackElement:f,placeholder:I,translate:r,moved:i,transition:w,alignment:a.alignment,styles:S,animation:n??void 0,getElementMutationObserver:()=>ye,cleanup:ke,restoreFocus:Oe})})}});return()=>{ke(),Me()}},dm(oh,4,`overlay`,ih,dh,sh),lm(oh,dh),dh.configure=au(dh);var fh=!0,ph=!1,mh,hh,gh=[H],_h=hp.Forward,vh,yh,bh;hh=(mh=[H],hp.Reverse);var xh=class{constructor(){mm(this,yh,um(vh,8,this,fh)),um(vh,11,this),mm(this,bh,um(vh,12,this,fh)),um(vh,15,this)}isLocked(e){return e===hp.Idle?!1:e==null?this[hp.Forward]===fh&&this[hp.Reverse]===fh:this[e]===fh}unlock(e){e!==hp.Idle&&(this[e]=ph)}};vh=am(null),yh=new WeakMap,bh=new WeakMap,dm(vh,4,_h,gh,xh,yh),dm(vh,4,hh,mh,xh,bh),lm(vh,xh);var Sh=[hp.Forward,hp.Reverse],Ch=class{constructor(){this.x=new xh,this.y=new xh}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},wh=class extends du{constructor(e){super(e);let t=Hs(new Ch),n=null;this.signal=t,Qs(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new Ch;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:Th(i.x,n.x),y:Th(i.y,n.y)},r=t.peek();ks(()=>{for(let t of Fl)for(let n of Sh)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function Th(e,t){return Math.sign(e-t)}var Eh,Dh,Oh,kh,Ah,jh,Mh=class extends (Dh=fu,Eh=[H],Dh){constructor(e){super(e),mm(this,kh,um(Oh,8,this,!1)),um(Oh,11,this),mm(this,Ah),mm(this,jh,()=>{if(!$(this,Ah))return;let{element:e,by:t}=$(this,Ah);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return hm(this,Ah,void 0),!1;let{position:r}=this.manager.dragOperation,i=r?.current;if(i){let{by:r}=e??{},a=r?{x:Nh(r.x),y:Nh(r.y)}:void 0,o=a?void 0:this.scrollIntentTracker.current;if(o?.isLocked())return!1;for(let e of n){let n=np(e),s=ip(e,r,n);if(s.x||s.y){let{speed:s,direction:c}=vp(e,i,a,t?.acceleration,t?.threshold,void 0,n);if(o)for(let e of Fl)o[e].isLocked(c[e])&&(s[e]=0,c[e]=0);if(c.x||c.y){let{x:t,y:n}=r??c,i=t*s.x,a=n*s.y;if(i||a){let t=$(this,Ah)?.by;if(this.autoScrolling&&t&&(t.x&&!i||t.y&&!a))continue;return hm(this,Ah,{element:e,by:{x:i,y:a}}),Yf.schedule($(this,jh)),!0}}}}}return hm(this,Ah,void 0),!1};let t=null,n=null,r=Ec(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=cf(nf(r?.element),n.current);return i&&(t=i),i??t}),i=Ec(()=>{let t=r.value,{documentElement:i}=Gd(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=cp(r,{excludeElement:!1});return n=e,e}}if(t){let e=cp(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},Dc);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new wh(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{!this.disabled&&!t.defaultPrevented&&Fp(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};Oh=am(Dh),kh=new WeakMap,Ah=new WeakMap,jh=new WeakMap,dm(Oh,4,`autoScrolling`,Eh,Mh,kh),lm(Oh,Mh);function Nh(e){return e>0?hp.Forward:e<0?hp.Reverse:hp.Idle}var Ph=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),Fh=10,Ih=class extends du{constructor(e,t){super(e,t);let n=e.registry.plugins.get(Mh);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=Qs(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){let e={acceleration:this.options?.acceleration,threshold:typeof this.options?.threshold==`number`?{x:this.options.threshold,y:this.options.threshold}:this.options?.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;let t=setInterval(()=>Ph.schedule(()=>n.scroll(void 0,e)),Fh);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};Ih.configure=au(Ih);var Lh=Ih;function Rh(e,t){let n=Bh(e.key);return t.some(e=>Bh(e)===n)}var zh=new Set(`alt.altgraph.backspace.capslock.control.delete.end.enter.escape.home.insert.meta.pagedown.pageup.pause.printscreen.shift.space.tab.arrowdown.arrowleft.arrowright.arrowup.f1.f2.f3.f4.f5.f6.f7.f8.f9.f10.f11.f12`.split(`.`));function Bh(e){if(e===` `||e===`Spacebar`)return`space`;if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(e.length===1)return e.toLowerCase();let t=e.toLowerCase();return zh.has(t)?t:e}var Vh=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),Hh,Uh=class extends ld{constructor(e,t){super(e),this.manager=e,this.options=t,mm(this,Hh,[]),this.listeners=new ff,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!Pp(e.target)||t.disabled)return;let{keyboardCodes:r=Vh.keyboardCodes,preventActivation:i=Vh.preventActivation}=n??{};Rh(e,r.start)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return Qs(()=>{let n=e.handle??e.element,r=n=>{Fp(n)&&this.handleSourceKeyDown(n,e,t)};if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),yp(r);let{center:i}=new Ap(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=Gd(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];$(this,Hh).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=Vh.keyboardCodes}=n??{};if(Rh(e,[...r.end,...r.cancel])){e.preventDefault();let t=Rh(e,r.cancel);this.handleEnd(e,t)}else Rh(e,r.up)?this.handleMove(`up`,e):Rh(e,r.down)&&this.handleMove(`down`,e),Rh(e,r.left)?this.handleMove(`left`,e):Rh(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??Vh.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0}}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(Lh);e?.disabled===!1&&(e.disable(),$(this,Hh).push(()=>{e.enable()}))}cleanup(){$(this,Hh).forEach(e=>e()),hm(this,Hh,[])}destroy(){this.cleanup(),this.listeners.clear()}};Hh=new WeakMap,Uh.configure=au(Uh),Uh.defaults=Vh;var Wh,Gh=class extends fd{constructor(){super(...arguments),mm(this,Wh)}onEvent(e){switch(e.type){case`pointerdown`:hm(this,Wh,Xd(e));break;case`pointermove`:if(!$(this,Wh))return;let{x:t,y:n}=Xd(e),r={x:t-$(this,Wh).x,y:n-$(this,Wh).y},{tolerance:i}=this.options;if(i&&Nl(r,i)){this.abort();return}Nl(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort()}}abort(){hm(this,Wh,void 0)}};Wh=new WeakMap;var Kh,qh,Jh=class extends fd{constructor(){super(...arguments),mm(this,Kh),mm(this,qh)}onEvent(e){switch(e.type){case`pointerdown`:hm(this,qh,Xd(e)),hm(this,Kh,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!$(this,qh))return;let{x:t,y:n}=Xd(e);Nl({x:t-$(this,qh).x,y:n-$(this,qh).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort()}}abort(){$(this,Kh)&&(clearTimeout($(this,Kh)),hm(this,qh,void 0),hm(this,Kh,void 0))}};Kh=new WeakMap,qh=new WeakMap;var Yh=class{};Yh.Delay=Jh,Yh.Distance=Gh;var Xh=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(n!==`mouse`||!Pp(r)||t.handle!==r&&!t.handle?.contains(r))return n===`touch`?[new Yh.Delay({value:250,tolerance:5})]:Lp(r)&&!e.defaultPrevented?[new Yh.Delay({value:200,tolerance:0})]:[new Yh.Delay({value:200,tolerance:10}),new Yh.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;if(n===t.element||n===t.handle||!Pp(n)||t.handle?.contains(n))return!1;let r=df(n);return r!==t.element&&!!r}}),Zh,Qh=class extends ld{constructor(e,t){super(e),this.manager=e,this.options=t,mm(this,Zh,new Set),this.listeners=new ff,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=Xh.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return Qs(()=>{let n=new AbortController,{signal:r}=n,i=n=>{Ip(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(ig(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!Pp(e.target)||t.disabled||eg(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=Xh.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=Ud(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=lp(t.element),{x:s,y:c}=Xd(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new ud(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let{pointerId:d}=e,f=e=>t=>{t.pointerId===d&&e(t)},p=Qd(),m=this.listeners.bind(p,[{type:`pointermove`,listener:f(e=>this.handlePointerMove(e,t))},{type:`pointerup`,listener:f(this.handlePointerUp),options:{capture:!0}},{type:`pointercancel`,listener:f(this.handleCancel)},{type:`dragstart`,listener:a?this.handleCancel:tg,options:{capture:!0}}]);$(this,Zh).add(()=>{m(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;this.controller?.activated===!1&&((n=this.controller)==null||n.onEvent(e));let{status:r}=this.manager.dragOperation;if(r.initializing||r.dragging){let n=Xd(e),i=lp(t.element);n.x=n.x*i.scaleX+i.x,n.y=n.y*i.scaleY+i.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,r.dragging&&Yf.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized,r=Gd(e.target),i=r.defaultView;if(!n&&i){let e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};i.addEventListener(`click`,e,!0),i.setTimeout(()=>{i.removeEventListener(`click`,e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;let i=n.actions.start({coordinates:r,event:t,source:e});if(i.signal.aborted)return this.cleanup();t.preventDefault();let a=Gd(t.target).body;try{a.setPointerCapture(t.pointerId)}catch{this.handleCancel(t);return}let o=Pp(t.target)?[t.target,a]:a,s=this.listeners.bind(o,[{type:`touchmove`,listener:tg,options:{passive:!1}},{type:`click`,listener:tg},{type:`contextmenu`,listener:tg},{type:`keydown`,listener:this.handleKeyDown}]);$(this,Zh).add(s),n.renderer.rendering.then(()=>{!i.signal.aborted&&n.dragOperation.status.dragging&&Yf.schedule(this.handleMove)})}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){let{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},$(this,Zh).forEach(e=>e()),$(this,Zh).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Zh=new WeakMap,Qh.configure=au(Qh),Qh.defaults=Xh;var $h=Qh;function eg(e){return`sensor`in e}function tg(e){e.preventDefault()}function ng(){}var rg=new WeakSet;function ig(e){e&&!rg.has(e)&&(e.addEventListener(`touchmove`,ng,{capture:!1,passive:!1}),rg.add(e))}var ag,og,sg,cg,lg,ug,dg=class extends (sg=Iu,og=[H],ag=[H],sg){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a}=n,o=im(n,[`element`,`effects`,`handle`]);super(tm({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(ou)??[...e.sensors]).map(t=>{let n=t instanceof ld?t:e.registry.register(t.plugin),r=t instanceof ld?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},o),t),mm(this,lg,um(cg,8,this)),um(cg,11,this),mm(this,ug,um(cg,12,this)),um(cg,15,this),this.element=r,this.handle=a}};cg=am(sg),lg=new WeakMap,ug=new WeakMap,dm(cg,4,`handle`,og,dg,lg),dm(cg,4,`element`,ag,dg,ug),lm(cg,dg);var fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg=class extends (mg=Yu,pg=[H],fg=[H],mg){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=im(n,[`element`,`effects`]);let{collisionDetector:o=Up}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new Ap(n),i=Ms(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=Hs(!1);super(nm(tm({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new Gf(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),mm(this,bg),mm(this,gg,um(hg,8,this)),um(hg,11,this),mm(this,xg,um(hg,12,this)),um(hg,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){hm(this,bg,e,yg)}get element(){return this.proxy??$(this,bg,vg)}};hg=am(mg),gg=new WeakMap,bg=new WeakSet,xg=new WeakMap,_g=dm(hg,20,`#element`,pg,bg,gg),vg=_g.get,yg=_g.set,dm(hg,4,`proxy`,fg,Sg,xg),lm(hg,Sg);var Cg=`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-hub-focus-ring`,wg=`peer-focus-visible:outline-1 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-hub-focus-ring`,Tg={Root:V(`inline-flex items-center justify-center gap-1.5`,`box-border select-none whitespace-nowrap rounded-full`,`border-(length:--hub-hairline) border-solid border-transparent`,`font-sans font-medium leading-[normal]`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,Cg,`disabled:cursor-not-allowed disabled:opacity-50`),variants:{primary:`bg-hub-primary-solid text-hub-primary-contrast shadow-hub-xs enabled:hover:bg-hub-primary-solid-hover focus-visible:outline-offset-2`,secondary:V(`relative bg-hub-bg-panel text-hub-fg-control shadow-hub-sm focus-visible:outline-offset-0`,`enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`),ghost:`bg-transparent text-hub-fg-control enabled:hover:bg-hub-bg-hover focus-visible:outline-offset-0`,danger:`bg-hub-error-solid text-hub-error-contrast shadow-hub-xs enabled:hover:bg-hub-error-solid-hover focus-visible:outline-offset-2`},sizes:{sm:`h-6 px-2 text-hub-sm`,md:`h-7 px-2.5 text-hub-sm`,lg:`h-8 px-3 text-hub-md`}};function Eg({variant:e=`primary`,size:t=`md`,type:n=`button`,className:r,...i}){return(0,R.jsx)(`button`,{...i,type:n,className:V(Tg.Root,Tg.variants[e],Tg.sizes[t],r)})}var Dg={Root:V(`inline-grid flex-none select-none place-items-center rounded-full border-0 focus-visible:outline-offset-0`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,Cg,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-pressed:bg-hub-bg-muted aria-pressed:text-hub-fg-title aria-pressed:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`aria-pressed:enabled:hover:bg-hub-bg-muted aria-pressed:enabled:hover:text-hub-fg-title aria-pressed:enabled:active:bg-hub-bg-muted`,`aria-pressed:enabled:hover:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`),sizes:{sm:`size-6 [&_svg]:size-3.5`,md:V(`size-7 [&_svg]:size-3.5`,`[&_.lucide-search]:scale-90 [&_.lucide-list-filter]:scale-95 [&_.lucide-square-pen]:scale-97`,`[&_.lucide-settings-2]:scale-x-115 [&_.lucide-settings-2]:scale-y-95 [&_.lucide-panel-right]:scale-x-105 [&_.lucide-panel-right]:scale-y-90`),lg:`size-8 [&_svg]:size-4`},variants:{surface:V(`bg-hub-bg-panel text-hub-fg-muted shadow-hub-sm`,`enabled:hover:bg-hub-bg-hover enabled:hover:text-hub-fg-control enabled:hover:shadow-hub-sm-hover enabled:active:bg-hub-bg-emphasized`),ghost:V(`bg-transparent text-hub-fg-secondary`,`enabled:hover:bg-hub-bg-overlay-hover enabled:hover:text-hub-fg-title enabled:active:bg-hub-bg-muted`)}};function Og({className:e,size:t=`md`,type:n=`button`,variant:r=`surface`,pressed:i,...a}){return(0,R.jsx)(`button`,{...a,type:n,"aria-pressed":i,className:V(Dg.Root,Dg.sizes[t],Dg.variants[r],e)})}var kg={Root:`group/checkbox relative inline-flex size-3.5 flex-none align-middle`,Input:V(`peer absolute inset-0 z-(--hub-z-raised) m-0 size-full cursor-pointer opacity-0`,`disabled:cursor-default`),Surface:V(`pointer-events-none box-border grid size-full place-items-center rounded-hub-sm border border-solid`,`border-hub-border-strong bg-transparent text-hub-primary-contrast`,`transition-colors duration-(--hub-duration-fast) ease-out motion-reduce:transition-none`,`peer-checked:border-hub-primary-solid peer-checked:bg-hub-primary-solid`,`peer-indeterminate:border-hub-primary-solid peer-indeterminate:bg-hub-primary-solid`,`peer-[:enabled:hover]:border-hub-primary-solid-hover`,wg,`peer-disabled:opacity-50`),Check:`hidden [grid-area:1/1] group-has-[:checked:not(:indeterminate)]/checkbox:block`,Mixed:`hidden [grid-area:1/1] group-has-[:indeterminate]/checkbox:block`};function Ag({indeterminate:e=!1,className:t,ref:n,...r}){let i=(0,f.useRef)(null),a=(0,f.useCallback)(e=>{if(i.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]);return(0,f.useLayoutEffect)(()=>{i.current&&(i.current.indeterminate=e)},[e]),(0,R.jsxs)(`span`,{className:V(kg.Root,t),children:[(0,R.jsx)(`input`,{...r,ref:a,type:`checkbox`,className:kg.Input}),(0,R.jsxs)(`span`,{className:kg.Surface,"aria-hidden":`true`,children:[(0,R.jsx)(ms,{className:kg.Check,size:12,strokeWidth:2.5}),(0,R.jsx)(ws,{className:kg.Mixed,size:12,strokeWidth:2.5})]})]})}var jg={Root:`pointer-events-none block flex-none`,orientations:{horizontal:`h-(--hub-hairline) w-full`,vertical:`w-(--hub-hairline) self-stretch`},tones:{default:`bg-hub-border`,subtle:`bg-hub-border-subtle`}};function Mg(e,t,n,r){return t?{[e]:0,left:n,right:n,width:r??`auto`}:{[e]:0,top:n,bottom:n,height:r}}function Ng(e,t,n){let r=n===void 0?{}:{alignSelf:`center`};if(!e)return{marginBlock:t,height:n,...r};let i=t?`calc(100% - ${t*2}px)`:void 0;return{marginInline:t,width:n??i,...r}}function Pg({orientation:e=`horizontal`,tone:t=`default`,edge:n,inset:r=0,length:i,className:a,style:o,...s}){let c=n?n===`left`||n===`right`?`vertical`:`horizontal`:e,l=c===`horizontal`,u=n?Mg(n,l,r,i):Ng(l,r,i);return(0,R.jsx)(`span`,{...s,"aria-hidden":`true`,"data-divider":``,"data-orientation":c,"data-tone":t,"data-edge":n,className:V(jg.Root,jg.orientations[c],jg.tones[t],n&&`absolute`,a),style:{...u,...o}})}var Fg=`pointer-events-none absolute inset-y-0 left-[calc((var(--hub-hit-area)_-_1px)_/_2)]`,Ig={Root:V(`group/resize absolute z-(--hub-z-raised) w-(--hub-hit-area) touch-none select-none cursor-col-resize outline-none`),edges:{left:`left-[calc(var(--hub-hit-area)_/_-2)]`,right:`right-[calc(var(--hub-hit-area)_/_-2)]`},Line:V(Fg,`[&]:bg-hub-border-control`),Feedback:V(Fg,`w-px origin-left scale-x-50 overflow-hidden bg-hub-border-control opacity-0`,`[mask-image:linear-gradient(transparent,black_10%,black_90%,transparent)]`,`transition-opacity duration-(--hub-duration-slow) ease-in-out motion-reduce:transition-none`,`group-hover/resize:opacity-100 group-data-[dragging=true]/resize:opacity-100`,`group-focus-visible/resize:opacity-100`),Gradient:V(`absolute -top-1/2 left-0 h-[200%] w-full bg-hub-fg`,`[mask-image:linear-gradient(transparent_5%,black_40%,black_60%,transparent_95%)]`),DragShield:`fixed inset-0 z-(--hub-z-overlay) cursor-col-resize`};function Lg({label:e,controls:t,value:n,min:r,max:i,defaultValue:a,step:o=16,showDivider:s=!0,inset:c=0,edge:l=`right`,onChange:u,className:d,style:p,...m}){let h=l===`right`?1:-1,g=(0,f.useRef)(void 0),_=(0,f.useRef)(null),v=e=>{let t=e.currentTarget.getBoundingClientRect();_.current&&(_.current.style.transform=`translateY(${e.clientY-t.top-t.height/2}px)`)},[y,b]=(0,f.useState)(!1),x=e=>u(Math.max(r,Math.min(i,e)));return(0,R.jsxs)(`div`,{...m,role:`separator`,"aria-label":e,"aria-controls":t,"aria-orientation":`vertical`,"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":n,tabIndex:0,className:V(Ig.Root,Ig.edges[l],d),style:{insetBlock:c,...p},"data-resize-handle":!0,"data-dragging":y,onDoubleClick:()=>{a!==void 0&&x(a)},onKeyDown:e=>{let t={Home:r,End:i,ArrowLeft:n-o*h,ArrowRight:n+o*h}[e.key];t!==void 0&&(e.preventDefault(),e.stopPropagation(),x(t))},onPointerEnter:v,onPointerDown:e=>{e.button===0&&e.isPrimary&&!g.current&&(e.preventDefault(),v(e),e.currentTarget.focus(),e.currentTarget.setPointerCapture(e.pointerId),g.current={pointerId:e.pointerId,x:e.clientX,width:n},b(!0))},onPointerMove:e=>{v(e);let t=g.current;t?.pointerId===e.pointerId&&x(t.width+(e.clientX-t.x)*h)},onPointerUp:e=>{g.current?.pointerId===e.pointerId&&(e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),g.current=void 0,b(!1))},onLostPointerCapture:()=>{g.current=void 0,b(!1)},onPointerCancel:()=>{g.current=void 0,b(!1)},children:[s&&(0,R.jsx)(Pg,{orientation:`vertical`,className:Ig.Line}),(0,R.jsx)(`span`,{"aria-hidden":!0,className:Ig.Feedback,children:(0,R.jsx)(`span`,{ref:_,className:Ig.Gradient})}),y?(0,R.jsx)(`div`,{"aria-hidden":!0,className:Ig.DragShield}):null]})}var Rg={Viewport:V(`fixed bottom-6 right-6 z-(--hub-z-toast)`,`flex max-w-[calc(100vw_-_var(--hub-float-gutter)_*_2)] flex-col items-end gap-2`),Root:V(`max-w-full`,`animate-[hub-toast-in_var(--hub-duration-enter)_ease]`,`data-closing:pointer-events-none data-closing:animate-[hub-toast-out_var(--hub-duration-exit)_ease_forwards]`,`motion-reduce:animate-none motion-reduce:data-closing:animate-none`),Card:V(`relative box-border flex w-96 max-w-[min(100%,calc(100vw_-_var(--hub-float-gutter)_*_2))] items-start gap-2`,`rounded-hub-lg border-(length:--hub-hairline) border-solid border-transparent bg-hub-bg-panel p-3`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-md after:ring-(length:--hub-hairline) after:ring-hub-border-subtle`,`font-sans text-hub-md leading-4 text-hub-fg-muted antialiased`),icons:{info:V(`size-4 shrink-0 text-hub-fg-muted [&_circle]:fill-current`,`[&_path]:stroke-hub-bg-panel [&_line]:stroke-hub-bg-panel`),success:V(`grid size-4 shrink-0 place-items-center rounded-full`,`bg-hub-success-solid text-hub-success-contrast`),error:`size-4 shrink-0 text-hub-error-solid`},Content:`min-w-0 flex-1 break-words`,Message:`font-medium leading-[normal] text-hub-fg-title`,Description:`mt-2 line-clamp-2 leading-5 text-hub-fg-muted`,Action:V(`mt-3 block cursor-pointer border-0 bg-transparent p-0`,`font-sans text-hub-md leading-5 text-hub-primary-solid`,`enabled:hover:underline`,Cg,`disabled:cursor-not-allowed disabled:opacity-50`),Close:`-m-1 enabled:hover:bg-hub-bg-hover-subtle enabled:hover:text-hub-fg-control`};function zg(e,t){return getComputedStyle(e).getPropertyValue(t).trim()}function Bg(e,t){return parseFloat(zg(e,t))}function Vg(e,t){let n=zg(e,t);return(n.endsWith(`ms`)?parseFloat(n):parseFloat(n)*1e3)||0}var Hg=()=>matchMedia(`(prefers-reduced-motion: reduce)`).matches;function Ug({message:e,description:t,variant:n=`info`,action:r,duration:i=n===`error`?8e3:4e3,revision:a=0,closeLabel:o,onDismiss:s,className:c,onMouseEnter:l,onMouseLeave:u,onFocus:d,onBlur:p,...m}){let h=(0,f.useRef)(null),g=(0,f.useRef)(a),_=(0,f.useRef)(s);_.current=s;let[v,y]=(0,f.useState)(!1),[b,x]=(0,f.useState)(!1),[S,C]=(0,f.useState)(!1),[w,T]=(0,f.useState)(!1),E=v||b;(0,f.useEffect)(()=>{if(g.current===a)return;g.current=a,T(!1);let e=h.current;if(!e||Hg())return;let t=e.animate([{transform:`scale(1)`,easing:`ease-out`,offset:0},{transform:`scale(1.05)`,easing:`linear`,offset:.125},{transform:`scale(1.05)`,easing:`ease-in-out`,offset:.25},{transform:`scale(1)`,offset:1}],{duration:Vg(e,`--hub-duration-emphasis`)});return()=>t.cancel()},[a]),(0,f.useEffect)(()=>{if(!i||E||S)return;let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[i,a,E,S]),(0,f.useEffect)(()=>{if(!w)return;let e=!1,t=h.current?.parentElement?.getAnimations()??[];return Promise.allSettled(t.map(e=>e.finished)).then(()=>{e||_.current()}),()=>{e=!0}},[w]);let D=async()=>{if(!S&&r){C(!0);try{await r.onClick(),T(!0)}finally{C(!1)}}};return(0,R.jsx)(`div`,{...m,className:V(Rg.Root,c),"data-closing":w||void 0,onMouseEnter:e=>{y(!0),l?.(e)},onMouseLeave:e=>{y(!1),u?.(e)},onFocus:e=>{x(!0),d?.(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1),p?.(e)},children:(0,R.jsxs)(`div`,{ref:h,className:Rg.Card,"data-variant":n,"data-expanded":!!(t||r)||void 0,children:[(0,R.jsx)(`span`,{className:Rg.icons[n],children:n===`success`?(0,R.jsx)(ms,{size:11,strokeWidth:3,"aria-hidden":!0}):n===`error`?(0,R.jsx)(bs,{size:16,"aria-hidden":!0}):(0,R.jsx)(Ss,{size:16,"aria-hidden":!0})}),(0,R.jsxs)(`div`,{className:Rg.Content,children:[(0,R.jsx)(`div`,{role:n===`error`?`alert`:`status`,"aria-atomic":`true`,className:Rg.Message,children:e}),t&&(0,R.jsx)(`div`,{className:Rg.Description,children:t}),r&&(0,R.jsx)(`button`,{type:`button`,className:Rg.Action,disabled:S,onClick:()=>void D(),children:r.label})]}),(0,R.jsx)(Og,{variant:`ghost`,size:`sm`,className:Rg.Close,"aria-label":o,disabled:S,onClick:()=>T(!0),children:(0,R.jsx)(Es,{"aria-hidden":!0})})]})})}function Wg({store:e,closeLabel:t,className:n,...r}){let i=(0,f.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot);return i.length===0?null:(0,R.jsx)(`div`,{role:`region`,...r,className:V(Rg.Viewport,n),children:i.map(({id:n,options:{onClose:r,...i},revision:a})=>(0,R.jsx)(Ug,{...i,revision:a,closeLabel:t,onDismiss:()=>e.dismiss(n)},n))})}var Gg=(e,t)=>e.message===t.message&&e.description===t.description&&(e.variant??`info`)===(t.variant??`info`)&&!e.action&&!t.action,Kg=class{items=[];listeners=new Set;max;nextId=0;constructor(e={}){this.max=Math.max(1,e.max??1)}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.items;show(e){let t=this.items.find(t=>Gg(t.options,e));if(t)return this.commit(this.items.map(n=>n===t?{...n,options:e,revision:n.revision+1}:n)),t.id;let n=`toast-${++this.nextId}`;return this.commit([...this.items,{id:n,options:e,revision:0}].slice(-this.max)),n}dismiss(e){let t=e===void 0?[]:this.items.filter(t=>t.id!==e);t.length!==this.items.length&&this.commit(t)}commit(e){let t=this.items.filter(t=>!e.some(({id:e})=>e===t.id));this.items=e;for(let e of[...this.listeners])e();for(let e of t)e.options.onClose?.()}};function qg(e){return{gutter:Bg(e,`--hub-menu-gutter`),maxHeight:Bg(e,`--hub-menu-max-height`),affordance:Bg(e,`--hub-scroll-affordance`)}}function Jg({placement:e=`auto`,trigger:t,viewport:n,metrics:r,panelWidth:i,borderHeight:a,contentHeight:o,row:s}){let{gutter:c,maxHeight:l,affordance:u}=r,d=s?.height??t.height,f=s?.top??0,p=Math.min(Math.max(t.width,i),n.width-c*2),m=Math.max(c,Math.min(t.left,n.width-p-c)),h=t.top+t.height/2,g=f+d/2,_=h-g,v=Math.min(o,l,n.height-c*2);if(e===`bottom`){let e=Math.max(0,Math.min(v,n.height-t.bottom-c-a));return{placement:`below`,top:t.bottom,left:m,width:p,maxHeight:e,scrollTop:Math.max(0,g-e/2)}}if(h-c>=u+d/2&&n.height-c-h>=u+d/2){let e=Math.max(c,_),t=Math.min(v,o-Math.max(0,e-_)),r=Math.min(t,n.height-c-e),i=s?.hasNext?u:o-(f+d);return h-e>r-i-d/2&&(e=h-r+i+d/2),{placement:`aligned`,top:e,left:m,width:p,maxHeight:Math.max(d,r),scrollTop:Math.max(0,g-(h-e))}}let y=n.height-t.bottom-c,b=t.top-c,x=y>=v||y>=b,S=Math.min(v,x?y:b),C=Math.max(d,S),w=x?t.bottom:t.top-Math.min(o,C)-a;return{placement:x?`below`:`above`,top:w,left:m,width:p,maxHeight:C,scrollTop:Math.max(0,g-S/2)}}var Yg={Root:`inline-flex min-w-0 align-middle`,Trigger:V(`relative inline-flex min-w-0 items-center gap-2 box-border cursor-default`,`rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-transparent shadow-hub-sm`,`bg-hub-bg-panel text-hub-fg-control font-sans font-normal`,`px-2.5 outline-none focus-visible:outline-offset-0 enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none aria-expanded:bg-hub-bg-muted`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`,`disabled:opacity-50 disabled:pointer-events-none`,Cg),Size:{small:`h-(--hub-control-height-sm) text-hub-sm`,default:`h-(--hub-control-height-md) text-hub-md`},Font:{small:`text-hub-sm`,default:`text-hub-md`},Row:{small:`h-(--hub-control-height-sm)`,default:`h-(--hub-row-height-md)`},Label:`min-w-0 flex-1 truncate text-left`,Icon:`inline-flex shrink-0 items-center justify-center`,Chevron:V(`pointer-events-none h-2 w-2.5 shrink-0 scale-180 text-hub-fg-muted`,`[&>path]:origin-center [&>path]:scale-x-90 [&>path]:scale-y-80 [&>path]:stroke-[3.5]`),Check:`size-4 shrink-0 text-hub-fg-muted`,Popup:V(`fixed inset-auto m-0 p-0 box-border w-max max-w-[calc(100vw-var(--hub-menu-gutter)*2)]`,`overflow-hidden rounded-hub-lg border-0 bg-hub-bg-panel text-hub-fg-control outline-none`,`ring-(length:--hub-hairline) ring-hub-border-control shadow-hub-md`,`font-sans font-normal`),List:`relative box-border overflow-y-auto overscroll-contain p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,Option:V(`relative flex box-border cursor-default items-center gap-2 px-2 aria-[selected=false]:pe-8 rounded-(--hub-radius-md)`,`whitespace-nowrap outline-none data-active:bg-hub-bg-hover aria-disabled:opacity-40`,`[&>.lucide-check>path]:origin-center [&>.lucide-check>path]:scale-x-80 [&>.lucide-check>path]:scale-y-89 [&>.lucide-check>path]:translate-y-px`,`[&>.lucide-check>path]:[vector-effect:non-scaling-stroke] [&>.lucide-check>path]:stroke-[1.5]`),Scroll:V(`absolute inset-x-0 z-(--hub-z-raised) flex h-(--hub-scroll-affordance) items-center justify-center`,`cursor-default text-hub-fg-muted backdrop-blur-sm`),ScrollTop:`top-0 bg-linear-to-b from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`,ScrollBottom:`bottom-0 bg-linear-to-t from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`},Xg=e=>e.scrollTop<=1,Zg=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1;function Qg(e){let[t,n]=(0,f.useState)({top:!1,bottom:!1}),r=(0,f.useRef)(void 0),i=()=>{let t=e.current;if(!t)return;let r=!Xg(t),i=!Zg(t);n(e=>e.top===r&&e.bottom===i?e:{top:r,bottom:i})},a=()=>{clearInterval(r.current),r.current=void 0};return(0,f.useEffect)(()=>a,[]),{edges:t,update:i,start:t=>{a();let n=t===`top`?-1:1;r.current=setInterval(()=>{let t=e.current;t?(t.scrollBy({top:n*4}),(n<0?t.scrollTop<=0:Zg(t))&&a()):a()},16)},stop:a}}function $g({value:e,defaultValue:t,onValueChange:n,trigger:r,form:i}){let[a,o]=(0,f.useState)(t??``),s=e!==void 0,c=e??a;return(0,f.useEffect)(()=>{let e=r.current?.form;if(!e||s)return;let n=new Set,i=e=>{let r=setTimeout(()=>{n.delete(r),e.defaultPrevented||o(t??``)});n.add(r)};return e.addEventListener(`reset`,i),()=>{e.removeEventListener(`reset`,i),n.forEach(clearTimeout)}},[s,t,i,r]),{current:c,commit:e=>{s||o(e),e!==c&&n?.(e)}}}var e_=new Set([`ArrowDown`,`ArrowUp`,`Enter`,` `]),t_=new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`,`Enter`,` `,`Escape`]),n_=[{side:`top`,className:Yg.ScrollTop,Icon:vs},{side:`bottom`,className:Yg.ScrollBottom,Icon:gs}];function r_({icon:e,label:t}){return(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(`span`,{className:Yg.Icon,children:e}),(0,R.jsx)(`span`,{className:Yg.Label,children:t})]})}function i_({options:e,value:t,defaultValue:n,onValueChange:r,size:i=`default`,placement:a=`auto`,placeholder:o=`请选择`,name:s,disabled:c,className:l,onKeyDown:u,onClick:d,...p}){let m=(0,f.useRef)(null),h=(0,f.useRef)(null),g=(0,f.useRef)(null),_=(0,f.useRef)(void 0),{current:v,commit:y}=$g({value:t,defaultValue:n,onValueChange:r,trigger:m,form:p.form}),b=Qg(g),[x,S]=(0,f.useState)(!1),[C,w]=(0,f.useState)(-1),T=(0,f.useId)(),E=e.findIndex(e=>e.value===v),D=e[E],O=c||!e.length,k=e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),A=e.map(e=>[e.value,e.label,+!!e.disabled].join(`\0`)).join(``),ee=()=>{b.stop(),S(!1)},te=(e=!0)=>{ee(),h.current?.matches(`:popover-open`)&&h.current.hidePopover(),e&&m.current?.focus({preventScroll:!0})},j=t=>{let n=e[t];n&&!n.disabled&&(y(n.value),te())},M=e=>{w(e);let t=g.current,n=t?.children[e];if(!t||!n)return;let r=_.current?.affordance??0,i=n.offsetTop;i<t.scrollTop+r?t.scrollTop=Math.max(0,i-r):i+n.offsetHeight>t.scrollTop+t.clientHeight-r&&(t.scrollTop=i+n.offsetHeight-t.clientHeight+r),b.update()},N=e=>{let{key:t}=e;if(!x)e_.has(t)&&(e.preventDefault(),S(!0));else if(t===`Tab`)te();else if(t_.has(t)){if(e.preventDefault(),e.stopPropagation(),t===`Escape`)te();else if(t===`Enter`||t===` `)j(C);else if(t===`Home`)M(k[0]??-1);else if(t===`End`)M(k.at(-1)??-1);else{let e=k.indexOf(C)+(t===`ArrowDown`?1:-1);M(k[Math.max(0,Math.min(k.length-1,e))]??-1)}}},P=e=>{d?.(e),!e.defaultPrevented&&(x?te():S(!0))},ne=e=>{u?.(e),e.defaultPrevented||N(e)},re=e=>{e.newState===`closed`&&ee()};return(0,f.useLayoutEffect)(()=>{if(!x||O)return;let e=h.current,t=g.current;e.showPopover(),e.style.visibility=`hidden`,e.style.width=``,t.style.maxHeight=``,t.scrollTop=0;let n=D&&!D.disabled?E:k[0]??-1;w(n),_.current=qg(e);let r=t.children[Math.max(0,n)],i=e.getBoundingClientRect(),o=Jg({placement:a,trigger:m.current.getBoundingClientRect(),viewport:{width:window.innerWidth,height:window.innerHeight},metrics:_.current,panelWidth:i.width,borderHeight:i.height-t.getBoundingClientRect().height,contentHeight:t.scrollHeight,row:r&&{top:r.offsetTop,height:r.offsetHeight,hasNext:!!r.nextElementSibling}});return e.dataset.placement=o.placement,e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,t.style.maxHeight=`${o.maxHeight}px`,t.scrollTop=o.scrollTop,e.style.visibility=``,e.focus({preventScroll:!0}),b.update(),b.stop},[x,O,A,a]),(0,f.useEffect)(()=>{if(!x||O)return;let e=h.current,t=()=>te(!1),n=n=>{e.contains(n.target)||t()};return window.addEventListener(`resize`,t),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,n,!0)}},[x,O]),(0,f.useEffect)(()=>{O&&te(!1)},[O]),(0,R.jsxs)(`span`,{className:Yg.Root,children:[s&&(0,R.jsx)(`input`,{type:`hidden`,name:s,form:p.form,value:v,disabled:O}),(0,R.jsxs)(`button`,{...p,ref:m,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":x,"aria-controls":T,disabled:O,className:V(Yg.Trigger,Yg.Size[i],l),"data-size":i,onClick:P,onKeyDown:ne,children:[(0,R.jsx)(r_,{icon:D?.icon,label:D?.label??o}),(0,R.jsx)(gs,{className:Yg.Chevron,"aria-hidden":`true`})]}),(0,R.jsxs)(`div`,{ref:h,popover:`auto`,id:T,role:`listbox`,tabIndex:-1,"aria-label":p[`aria-label`],"aria-labelledby":p[`aria-labelledby`],"aria-activedescendant":C>=0?`${T}-${C}`:void 0,className:V(Yg.Popup,Yg.Font[i]),"data-size":i,onKeyDown:N,onToggle:re,children:[(0,R.jsx)(`div`,{ref:g,className:Yg.List,onScroll:b.update,children:e.map((e,t)=>(0,R.jsxs)(`div`,{id:`${T}-${t}`,role:`option`,"aria-selected":v===e.value,"aria-disabled":e.disabled||void 0,"data-active":C===t||void 0,"data-value":e.value,className:V(Yg.Option,Yg.Row[i]),onPointerMove:n=>{(n.movementX||n.movementY)&&w(e.disabled?-1:t)},onClick:()=>j(t),children:[(0,R.jsx)(r_,{icon:e.icon,label:e.label}),v===e.value&&(0,R.jsx)(ms,{className:Yg.Check,"aria-hidden":`true`})]},e.value))}),n_.map(({side:e,className:t,Icon:n})=>b.edges[e]&&(0,R.jsx)(`div`,{"aria-hidden":`true`,className:V(Yg.Scroll,t),onPointerEnter:()=>b.start(e),onPointerLeave:b.stop,onPointerDown:e=>e.preventDefault(),children:(0,R.jsx)(n,{className:Yg.Check})},e))]})]})}var a_=[`Control`,`Alt`,`Shift`,`Meta`],o_={"⌘":`meta`,cmd:`meta`,command:`meta`,meta:`meta`,ctrl:`control`,control:`control`,"⌃":`control`,alt:`alt`,option:`alt`,"⌥":`alt`,shift:`shift`,"⇧":`shift`,esc:`escape`,escape:`escape`,enter:`enter`,return:`enter`,"↵":`enter`,space:` `,spacebar:` `,"␣":` `,"↑":`arrowup`,"↓":`arrowdown`,"←":`arrowleft`,"→":`arrowright`},s_=new Set([`process`,`dead`,`unidentified`]);function c_(e){let t=e.toLowerCase();return o_[t.trim()]??t}var l_=class{coordinator;host;hover=!1;popupHover=!1;focus=!1;shortcut=!1;disabled=!1;openTimer;closeTimer;constructor(e,t){this.coordinator=e,this.host=t}get wanted(){return!this.disabled&&(this.hover||this.popupHover||this.focus)}delay(e){let t=this.host.trigger();return t?Vg(t,e):0}clearClose(){window.clearTimeout(this.closeTimer),this.closeTimer=void 0}enter(){this.hover=!0,this.coordinator.request(this,!1)}leave(){this.hover=!1,this.coordinator.release(this,!0)}popupEnter(){this.popupHover=!0,this.coordinator.request(this,!1)}popupLeave(){this.popupHover=!1,this.coordinator.release(this,!0)}focusIn(){this.focus=!0,this.coordinator.request(this,!0)}focusOut(){this.focus=!1,this.coordinator.release(this,!1)}dismiss(){this.coordinator.dismiss(this)}setDisabled(e){this.disabled=e,e&&this.dismiss()}setShortcut(e){this.shortcut!==e&&(this.shortcut=e,this.coordinator.countShortcut(e?1:-1))}isPressed(e){return this.coordinator.isPressed(e)}dispose(){this.coordinator.unregister(this)}},u_=class{document;onEmpty;handles=new Set;visible=null;pending=null;skipUntil=0;shortcuts=0;modifiers=new Set;keys=new Map;composing=!1;constructor(e,t){this.document=e,this.onEmpty=t}register(e){let t=new l_(this,e);return this.handles.size||this.listen(!0),this.handles.add(t),t}unregister(e){this.handles.delete(e)&&(this.dismiss(e),e.setShortcut(!1),!this.handles.size&&(this.listen(!1),this.skipUntil=0,this.onEmpty()))}request(e,t){e.wanted&&(this.visible===e?e.clearClose():t||this.visible||performance.now()<this.skipUntil?this.show(e):this.pending!==e&&(this.cancelPending(),this.pending=e,e.openTimer=window.setTimeout(()=>{this.pending===e&&(this.pending=null,this.handles.has(e)&&e.wanted&&this.show(e))},e.delay(`--hub-delay-open`))))}release(e,t){e.wanted||(this.pending===e&&this.cancelPending(),this.visible===e&&(e.clearClose(),t?e.closeTimer=window.setTimeout(()=>{e.wanted||this.hide(e)},e.delay(`--hub-duration-fast`)):this.hide(e)))}dismiss(e){e.hover=e.popupHover=e.focus=!1,this.pending===e&&this.cancelPending(),this.hide(e)}countShortcut(e){this.shortcuts+=e,this.shortcuts||this.clearKeys()}isPressed(e){let t=c_(e);if(this.modifiers.has(t))return!0;for(let e of this.keys.values())if(e===t)return!0;return!1}show(e){this.cancelPending();let t=this.visible;t!==e&&(this.visible=e,t&&(t.clearClose(),t.host.onOpenChange(!1)),e.host.onOpenChange(!0))}hide(e){e.clearClose(),this.visible===e&&(this.visible=null,this.skipUntil=performance.now()+e.delay(`--hub-delay-skip`),e.host.onOpenChange(!1))}cancelPending(){this.pending&&=(window.clearTimeout(this.pending.openTimer),null)}dismissAll(){this.pending&&this.dismiss(this.pending),this.visible&&this.dismiss(this.visible)}keyState(){return[...this.modifiers,``,...this.keys.values()].join(`\0`)}clearKeys(){(this.modifiers.size||this.keys.size)&&(this.modifiers.clear(),this.keys.clear(),this.visible?.host.onKeysChange())}onKey=e=>{if(!this.shortcuts)return;let t=this.keyState(),n=e.type===`keydown`,r=e.key.toLowerCase(),i=new Set;for(let t of a_)e.getModifierState(t)&&i.add(t.toLowerCase());let a=a_.some(e=>e.toLowerCase()===r);n&&a&&i.add(r),this.modifiers=i;let o=e.code||r;n?a||this.composing||e.isComposing||s_.has(r)||this.keys.set(o,r):(this.keys.delete(o),r===`meta`&&this.keys.clear()),this.keyState()!==t&&this.visible?.host.onKeysChange()};onComposition=e=>{this.composing=e.type===`compositionstart`,this.composing&&this.keys.size&&(this.keys.clear(),this.visible?.host.onKeysChange())};onScroll=e=>{let t=e.target;for(let e of new Set([this.pending,this.visible])){let n=e?.host.trigger();e&&n&&t.contains(n)&&(e===this.visible&&e.focus&&e.host.reposition()||this.dismiss(e))}};onResize=()=>this.dismissAll();onInactive=e=>{e.type===`visibilitychange`&&!this.document.hidden||e.type===`blur`&&e.target!==this.document.defaultView||(this.dismissAll(),this.skipUntil=0,this.composing=!1,this.clearKeys())};listen(e){let t=this.document.defaultView,n=(t,n,r)=>{e?t?.addEventListener(n,r,!0):t?.removeEventListener(n,r,!0)};n(this.document,`keydown`,this.onKey),n(this.document,`keyup`,this.onKey),n(this.document,`compositionstart`,this.onComposition),n(this.document,`compositionend`,this.onComposition),n(this.document,`visibilitychange`,this.onInactive),n(t,`blur`,this.onInactive),n(t,`resize`,this.onResize),n(t,`scroll`,this.onScroll),e||this.clearKeys()}},d_=new WeakMap;function f_(e,t){let n=d_.get(e);return n||(n=new u_(e,()=>d_.delete(e)),d_.set(e,n)),n.register(t)}var p_={top:`bottom`,bottom:`top`,left:`right`,right:`left`};function m_({trigger:e,panel:t,margin:n,viewport:r,side:i,align:a,rtl:o}){let s=t.width+n*2,c=t.height+n*2,l={top:e.top,bottom:r.height-e.bottom,left:e.left,right:r.width-e.right},u=i===`top`||i===`bottom`,d=p_[i],f=l[i]<(u?c:s)&&l[d]>l[i]?d:i,p=f===`top`?e.top-c:f===`bottom`?e.bottom:f===`left`?e.left-s:e.right,m=u?e.left:e.top,h=u?e.width:e.height,g=u?s:c,_=u&&o&&a!==`center`?a===`start`?`end`:`start`:a,v=_===`start`?m-n:_===`end`?m+h-g+n:m+(h-g)/2,y=(e,t)=>Math.round(Math.max(0,Math.min(e,t)));return{side:f,top:y(u?p:v,r.height-c),left:y(u?v:p,r.width-s)}}var h_={Popup:V(`fixed inset-auto m-1.5 box-border w-max border-(length:--hub-hairline) border-solid border-hub-border-panel px-2 py-1.25`,`max-w-[min(var(--hub-float-width),calc(100vw-var(--hub-float-gutter)))]`,`max-h-[calc(100vh-var(--hub-float-gutter))] overflow-x-hidden overflow-y-auto overscroll-contain`,`open:inline-flex items-center-safe gap-2`,`rounded-(--hub-radius-md) bg-hub-bg-panel text-hub-fg-control shadow-hub-xs`,`font-sans font-[450] text-hub-xs leading-normal text-left`,`transition-opacity duration-(--hub-duration-fast) starting:opacity-0 motion-reduce:transition-none`),Content:`min-w-0 whitespace-normal wrap-anywhere`,Keys:`-mr-0.5 inline-flex shrink-0 items-center gap-0.5`,Kbd:V(`inline-flex min-w-4.5 box-border items-center justify-center p-0.5`,`rounded-(--hub-radius-compact) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-transparent text-hub-fg-muted font-sans text-hub-xs font-normal leading-[1.1]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`data-pressed:bg-hub-bg-emphasized`)};function g_(e,t){return n=>{e?.(n),t(n)}}function __(e,t,n){let r=Math.max(t.top,0),i=Math.max(t.left,0),a=Math.min(t.bottom,n.height),o=Math.min(t.right,n.width);for(let t=e;t&&t!==e.ownerDocument.documentElement;t=t.parentElement){if(t!==e){let{overflowX:e,overflowY:n}=getComputedStyle(t);if(e!==`visible`||n!==`visible`){let s=t.getBoundingClientRect();n!==`visible`&&(r=Math.max(r,s.top),a=Math.min(a,s.bottom)),e!==`visible`&&(i=Math.max(i,s.left),o=Math.min(o,s.right))}}if(t.matches(`:popover-open, :modal, :fullscreen`))break}return a>r&&o>i}function v_({children:e,content:t,shortcut:n,side:r=`bottom`,align:i=`center`,disabled:a=!1}){let o=(0,f.useRef)(null),s=(0,f.useRef)(null),c=(0,f.useRef)(null),l=(0,f.useRef)(!1),u=(0,f.useRef)(()=>!1),[d,p]=(0,f.useState)(!1),[,m]=(0,f.useState)(0),h=(0,f.useId)(),g=e,_=g.props,v=n?.length?n:void 0,y=_.ref,b=(0,f.useCallback)(e=>{if(o.current=e,typeof y==`function`){let t=y(e);if(typeof t==`function`)return()=>{o.current=null,t()}}else y&&(y.current=e)},[y]);(0,f.useLayoutEffect)(()=>{u.current=()=>{let e=o.current,t=s.current;if(!e||!t)return!1;let n=e.ownerDocument.documentElement,a={width:n.clientWidth,height:n.clientHeight},c=e.getBoundingClientRect(),l=getComputedStyle(t),u=m_({trigger:c,panel:t.getBoundingClientRect(),margin:parseFloat(l.marginTop)||0,viewport:a,side:r,align:i,rtl:l.direction===`rtl`});return t.dataset.side=u.side,t.style.top=`${u.top}px`,t.style.left=`${u.left}px`,__(e,c,a)}}),(0,f.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=f_(e.ownerDocument,{trigger:()=>o.current,onOpenChange:p,onKeysChange:()=>m(e=>e+1),reposition:()=>u.current()});return c.current=t,()=>{c.current=null,t.dispose()}},[]),(0,f.useLayoutEffect)(()=>{c.current?.setShortcut(!!v)},[!!v]),(0,f.useLayoutEffect)(()=>{c.current?.setDisabled(a)},[a]),(0,f.useLayoutEffect)(()=>{let e=s.current;if(!d||!e)return;e.showPopover(),u.current();let t=new ResizeObserver(()=>u.current());return t.observe(e),()=>{t.disconnect(),e.matches(`:popover-open`)&&e.hidePopover()}},[d]),(0,f.useLayoutEffect)(()=>{d&&u.current()},[r,i]);let x=a?_[`aria-describedby`]:[...new Set([..._[`aria-describedby`]?.split(/\s+/).filter(Boolean)??[],h])].join(` `),S=()=>{l.current=!1};return(0,R.jsxs)(R.Fragment,{children:[(0,f.cloneElement)(g,{ref:b,"aria-describedby":x,onPointerEnter:g_(_.onPointerEnter,e=>{e.pointerType!==`touch`&&c.current?.enter()}),onPointerLeave:g_(_.onPointerLeave,()=>{S(),c.current?.leave()}),onPointerDown:g_(_.onPointerDown,()=>{l.current=!0}),onPointerUp:g_(_.onPointerUp,S),onPointerCancel:g_(_.onPointerCancel,S),onFocus:g_(_.onFocus,e=>{!l.current&&e.target.matches(`:focus-visible`)&&c.current?.focusIn()}),onBlur:g_(_.onBlur,e=>{e.currentTarget.contains(e.relatedTarget)||c.current?.focusOut()}),onClick:g_(_.onClick,()=>c.current?.dismiss())}),!a&&(0,R.jsxs)(`span`,{ref:s,id:h,role:`tooltip`,popover:`manual`,tabIndex:-1,className:h_.Popup,onPointerEnter:()=>c.current?.popupEnter(),onPointerLeave:()=>c.current?.popupLeave(),children:[(0,R.jsx)(`span`,{className:h_.Content,children:t}),v&&(0,R.jsx)(`span`,{className:h_.Keys,children:v.map((e,t)=>(0,R.jsx)(`kbd`,{className:h_.Kbd,"data-pressed":d&&c.current?.isPressed(e)||void 0,children:e},t))})]})]})}V(`pointer-events-none box-border flex size-full items-center rounded-full bg-hub-bg-inactive p-0.75`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`peer-checked:bg-hub-primary-solid peer-disabled:opacity-50`,wg,`peer-[:enabled:hover:not(:checked)]:bg-hub-bg-inactive-hover peer-[:enabled:hover:checked]:bg-hub-primary-solid-hover`),V(`block size-3.5 rounded-full bg-hub-primary-contrast`,`transition-transform duration-(--hub-duration-normal) motion-reduce:transition-none`,`group-has-[:checked]/switch:translate-x-2.5`,`group-has-[:enabled:hover]/switch:w-4 group-has-[:enabled:hover:checked]/switch:translate-x-2`),V(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border max-w-[calc(100vw-2*var(--hub-menu-gutter))] overflow-y-auto`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel py-1.5`,`font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),V(`w-(--hub-popup-width-md) px-0`,`[&_[role=separator]>[data-divider]]:mx-0! [&_[role=separator]>[data-divider]]:w-full!`,`[&_[role=separator]>[data-divider]]:bg-hub-border-subtle`),V(`relative isolate flex h-8 w-full shrink-0 items-center gap-2 border-0 bg-transparent text-left`,`font-sans text-hub-md font-[450] whitespace-nowrap outline-none`,`disabled:cursor-not-allowed disabled:opacity-40 aria-disabled:cursor-not-allowed aria-disabled:opacity-40`,`[&>svg]:size-4 [&>svg]:shrink-0 [&>span]:min-w-0 [&>span]:truncate`),V(`m-0 py-0 pl-3.5 pr-4.5 leading-[normal]`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:before:bg-hub-bg-muted`),V(`rounded-(--hub-radius-inner) pl-2.5 pr-3.5 leading-5`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:bg-hub-bg-muted`),V(`opacity-0 transition-[opacity,color,background-color] duration-(--hub-duration-fast) motion-reduce:transition-none`,`group-hover/sidebar-group:opacity-100 group-focus-within/sidebar-group:opacity-100 focus-visible:opacity-100`,`[@media(hover:none)]:opacity-100`),V(`mb-px box-border flex h-7 w-full flex-none items-center gap-1.5 rounded-(--hub-radius-md)`,`border-0 py-0 pl-2.5 pr-[9px] text-left font-sans text-hub-md font-medium leading-4 no-underline`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`[&>svg]:size-4 [&>svg]:shrink-0 focus-visible:-outline-offset-1`,Cg,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50`),V(`relative data-[dragging=true]:opacity-50`,`data-[drop-edge]:after:pointer-events-none data-[drop-edge]:after:absolute data-[drop-edge]:after:inset-x-2.5`,`data-[drop-edge]:after:h-0.5 data-[drop-edge]:after:bg-hub-focus-ring`,`data-[drop-edge=top]:after:top-0 data-[drop-edge=bottom]:after:bottom-0`),V(`flex h-full min-w-0 flex-1 items-center gap-1.5 border-0 bg-transparent p-0 text-left text-inherit no-underline`,Cg),$h.configure({preventActivation:(e,t)=>{if(!(e.target instanceof Element))return!1;if(e.target.closest(`[data-sidebar-trailing], [role=menu]`))return!0;let n=e.target.closest(`button`);return!!n&&n!==t.element&&!n.hasAttribute(`data-sidebar-control`)}});var y_=`h-(--hub-row-height-md) rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-hub-border-control`,b_=V(`focus-within:outline-1 focus-within:outline-solid focus-within:-outline-offset-1`,`focus-within:outline-hub-focus-ring aria-invalid:focus-within:outline-hub-error-solid`),x_={Base:V(`box-border min-w-0 w-full bg-hub-bg-control font-sans text-hub-md font-normal text-hub-fg-title`,`outline-none transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`aria-invalid:border-hub-error-solid disabled:cursor-not-allowed disabled:opacity-50`),Frame:y_,Focus:b_,Input:V(y_,b_,`block px-3 py-1.5 placeholder:text-hub-fg-placeholder`,`enabled:not-focus:not-aria-invalid:hover:border-hub-border-control-hover`)};V(x_.Base,x_.Frame,x_.Focus,`flex items-center`,`has-disabled:opacity-50 not-has-disabled:not-focus-within:not-aria-invalid:hover:border-hub-border-control-hover`),V(`inline-grid h-full shrink-0 place-items-center rounded-(--hub-radius-md) border-0 bg-transparent px-3`,`text-hub-fg-secondary focus-visible:-outline-offset-1 disabled:cursor-not-allowed`,Cg),V(x_.Base,x_.Focus,`block resize-y rounded-(--hub-radius-card) border-0 p-4`,`shadow-hub-sm placeholder:text-hub-fg-placeholder [&[rows="3"]]:min-h-30`,`aria-invalid:ring-1 aria-invalid:ring-hub-error-solid`),V(`relative m-0.5 flex h-7 min-w-0 flex-auto items-center justify-center gap-1.5 rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-1`,`bg-hub-bg-panel font-sans text-hub-sm font-medium leading-[normal] whitespace-nowrap text-hub-fg-muted`,`transition-[border,background-color,color] duration-(--hub-duration-normal)`,`before:absolute before:-inset-0.5 before:content-['']`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-hub-sm after:transition-shadow after:duration-(--hub-duration-normal) after:content-['']`,`aria-selected:bg-hub-bg-selected aria-selected:text-hub-fg-title aria-selected:after:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`[&:not([aria-selected=true]):enabled:hover]:bg-hub-bg-hover-subtle [&:not([aria-selected=true]):enabled:hover]:text-hub-fg-control`,`[&:not([aria-selected=true]):enabled:hover]:duration-0 [&:not([aria-selected=true]):enabled:hover]:after:duration-0`,`[&:not([aria-selected=true]):enabled:hover]:after:shadow-hub-sm-hover`,`focus:outline-none focus-visible:-outline-offset-1`,Cg,`disabled:cursor-not-allowed disabled:opacity-40 motion-reduce:transition-none motion-reduce:after:transition-none`);var S_=ca(`notificationService`),C_=class extends Kg{},w_={ignoredBaseline:`baseline.ignored`,deleteBaseline:`baseline.delete`,module:{root:`module`,loading:`module.loading`,baseline:`view.baseline`,tasks:`view.tasks`,changes:`module.changes`,code:`module.code`,changelog:`module.changelog`,conformance:`module.conformance`,tooltip:e=>`module.tooltip.${e}`},conformance:{list:`conformance.list`,enabled:`conformance.enabled`,disabled:`conformance.disabled`,rule:e=>`conformance.rule.${e}`,readme:`conformance.readme`,state:`conformance.state`},changelog:{commits:`changelog.commits`,commit:e=>`changelog.commit.${e}`,review:e=>`changelog.review.${e}`,reviewCount:`changelog.reviewCount`,reviewFilter:`changelog.reviewFilter`,files:`changelog.files`,file:e=>`changelog.file.${e}`,detail:`changelog.detail`,empty:`changelog.empty`,editor:`changelog.editor`,scopes:`changelog.scopes`,entry:e=>`changelog.entry.${e}`,saveState:e=>`changelog.save.${e}`,retry:e=>`changelog.retry.${e}`,tag:e=>`changelog.tag.${e}`},code:{tree:`code.tree`,scroll:`code.scroll`,file:e=>`code.file.${e}`,content:`code.content`,empty:`code.empty`,refresh:`code.refresh`,review:e=>`code.review.${e}`,reviewCount:`code.reviewCount`},changes:{tree:`changes.tree`,review:e=>`changes.review.${e}`,reviewCount:`changes.reviewCount`},visual:{stage:{root:`visual.stage`,image:e=>`visual.stage.image.${e}`,zoom:e=>`visual.stage.zoom.${e}`,approve:`approve`}},dialog:{root:`dialog`,close:`dialog.close`},branches:`changes.branches`,resize:`sidebar.resize`,approveBatch:`approve.batch`,selectionBar:`selection.bar`,pageHeader:`page.header`,headerMetadata:`page.header.metadata`,statusBadge:`status.badge`,taskStatus:e=>`status.task.${e}`,folder:e=>`tree.folder.${e}`,clearSelection:`selection.clear`,previous:`stage.previous`,next:`stage.next`,snapshotTab:e=>`snapshot.tab.${e}`,sourceTab:e=>`source.tab.${e}`,collapse:`source.collapse`,copy:`source.copy`,source:`source.code`,sourceLineNumbers:`source.lineNumbers`,diffUnified:`diff.unified`,diffExpand:`diff.expand`,diffEditor:`diff.editor`,diffOriginal:`diff.original`,diffModified:`diff.modified`,namespace:e=>`namespace.${e}`,view:{baseline:`view.baseline`,tasks:`view.tasks`},tasks:{root:`tasks`,empty:`tasks.empty`,item:e=>`tasks.${e}`,removable:`tasks.removable`,prune:`tasks.prune`},tree:`cases`,case:e=>`case.${e}`,selectFolder:e=>`select.folder.${e}`,select:e=>`select.${e}`,detail:`detail`,snapshotContent:`detail.snapshots`,supplement:`detail.supplement`,taskInfo:`detail.taskInfo`,caseEyebrow:`detail.caseEyebrow`,taskExecutionId:`detail.taskExecutionId`,copyTaskExecutionId:`detail.copyTaskExecutionId`,caseId:`detail.caseId`,copyCaseIds:`detail.copyCaseIds`,taskError:`detail.taskError`,empty:`empty`,approve:`approve`,refresh:`refresh`,message:`message`,previewTab:e=>`preview.tab.${e}`,preview:{tabs:`preview.tabs`,title:`preview.title`,card:`preview.card`,previous:`preview.previous`,next:`preview.next`,left:`preview.left`,right:`preview.right`,position:`preview.position`,version:`preview.version`,hints:`preview.hints`,case:`preview.case`,status:`preview.status`,select:`preview.select`,evidence:`preview.evidence`,evidenceTab:e=>`preview.evidence.${e}`},snapshotPreview:e=>`snapshot.preview.${e}`,imageVersion:(e,t)=>`image.version.${e}.${t}`,snapshotViewLabel:e=>`snapshot.viewLabel.${e}`,snapshotCompare:e=>`snapshot.compare.${e}`,snapshotStatus:e=>`snapshot.status.${e}`,snapshotMetrics:e=>`snapshot.metrics.${e}`,snapshotDiff:e=>`snapshot.diff.${e}`,snapshot:e=>`snapshot.${e}`,image:(e,t)=>`image.${e}.${t}`,text:e=>`text.${e}`,observation:e=>`observation.${e}`,filter:e=>`filter.${e}`,filterGroup:`filter.group`,filterThumb:`filter.thumb`,mobile:{tabbar:`mobile.tabbar`,tab:e=>`mobile.tab.${e}`,more:`mobile.more`,moreSheet:`mobile.moreSheet`,editTabs:`mobile.editTabs`,tabOrder:e=>`mobile.tabOrder.${e}`,tabHandle:e=>`mobile.tabHandle.${e}`,saveTabs:`mobile.saveTabs`,resetTabs:`mobile.resetTabs`,rule:e=>`mobile.rule.${e}`,page:e=>`mobile.page.${e}`,back:`mobile.back`,prev:`mobile.prev`,next:`mobile.next`,empty:`mobile.empty`,toast:`mobile.toast`,diff:e=>`mobile.diff.${e}`,ref:`mobile.ref`,refDialog:`mobile.refDialog`,refOption:e=>`mobile.refOption.${e}`,review:`mobile.review`,file:e=>`mobile.file.${e}`,check:e=>`mobile.check.${e}`,commit:e=>`mobile.commit.${e}`,actionSheet:`mobile.actionSheet`,moreActions:`mobile.moreActions`,caseInfo:`mobile.caseInfo`,copyCaseId:`mobile.copyCaseId`,copyPath:`mobile.copyPath`,pathDisclosure:`mobile.pathDisclosure`,metrics:e=>`mobile.metrics.${e}`,copy:e=>`mobile.copy.${e}`,diagnostics:`mobile.diagnostics`,expandAll:`mobile.expandAll`,tag:e=>`mobile.tag.${e}`,note:e=>`mobile.note.${e}`,noteState:e=>`mobile.noteState.${e}`,task:e=>`mobile.task.${e}`,case:e=>`mobile.case.${e}`,baselineCase:e=>`mobile.baselineCase.${e}`,folder:e=>`mobile.folder.${e}`,evidence:e=>`mobile.evidence.${e}`,filter:e=>`mobile.filter.${e}`,confirm:`mobile.confirm`,confirmOk:`mobile.confirm.ok`,confirmCancel:`mobile.confirm.cancel`,image:e=>`mobile.image.${e}`,fileDiff:`mobile.fileDiff`,approve:`mobile.approve`,approveAll:`mobile.approveAll`,prune:`mobile.prune`,deleteBaseline:`mobile.deleteBaseline`}},T_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function E_(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:T_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var D_=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},O_=e=>{let t=D_(e);return t.charAt(0).toUpperCase()+t.slice(1)},k_=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),A_={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function j_(e){return e!=null}function M_(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??A_.width,a=e.size??e.height??A_.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?k_(...c):k_(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??A_[`stroke-width`])*Number(e.size??e.width??A_.width)/Number(t.size??t.width??A_.width):t.strokeWidth??A_[`stroke-width`];return[`svg`,{...Object.entries(A_).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&j_(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&j_(t.width)&&{[r(`width`)]:t.width},...`height`in t&&j_(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function N_(e,t={}){return M_(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var P_=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},F_=(0,f.createContext)({}),I_=()=>(0,f.useContext)(F_),L_=(0,f.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=I_()??{},b=!!c||P_(d),[x,S,C=[]]=N_(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:k_(y,s),hasA11yProp:b,attributes:d});return(0,f.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,f.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function R_(e,t=[],n=[]){let r=typeof e==`string`?E_(e,t,n):e,i=(0,f.forwardRef)(({className:e,...t},n)=>(0,f.createElement)(L_,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=O_(r.name)),i}var z_={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};z_.node;var B_=R_(z_),V_={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};V_.node;var H_=R_(V_),U_={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};U_.node;var W_=R_(U_),G_={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};G_.node;var K_=R_(G_),q_={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};q_.node;var J_=R_(q_),Y_={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Y_.node;var X_=R_(Y_),Z_={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Z_.node;var Q_=R_(Z_),$_={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};$_.node;var ev=R_($_),tv={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};tv.node;var nv=R_(tv),rv={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};rv.node;var iv=R_(rv),av={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};av.node;var ov=R_(av),sv={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};sv.node;var cv=R_(sv),lv={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};lv.node;var uv=R_(lv),dv={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};dv.node;var fv=R_(dv),pv={name:`git-compare-arrows`,size:24,node:[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]};pv.node;var mv=R_(pv),hv={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};hv.node;var gv=R_(hv),_v={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};_v.node;var vv=R_(_v),yv={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};yv.node;var bv=R_(yv),xv={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};xv.node;var Sv=R_(xv),Cv={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Cv.node;var wv=R_(Cv),Tv={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Tv.node;var Ev=R_(Tv),Dv={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Dv.node;var Ov=R_(Dv),kv={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};kv.node;var Av=R_(kv),jv={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};jv.node;var Mv=R_(jv);function Nv(e,t=[]){let n=(0,f.useRef)(e);n.current=e,(0,f.useEffect)(()=>{let e=()=>{n.current()};return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},t)}function Pv(e){let[t,n]=(0,f.useState)(()=>{try{return localStorage.getItem(e)===`true`}catch{return!1}});return(0,f.useEffect)(()=>{try{localStorage.setItem(e,String(t))}catch{}},[e,t]),[t,n]}export{No as $,C_ as A,ca as At,Xo as B,Jr as Bt,K_ as C,ka as Ct,R_ as D,ma as Dt,B_ as E,va as Et,i_ as F,Qi as Ft,Ho as G,jr as Gt,Go as H,Ve as Ht,Wg as I,Zi as It,Ro as J,Hi as Jt,Vo as K,dr as Kt,v_ as L,Yi as Lt,Ag as M,na as Mt,Og as N,ra as Nt,w_ as O,ha as Ot,Lg as P,ea as Pt,Fo as Q,l as Qt,Qo as R,Ii as Rt,J_ as S,Da as St,H_ as T,Ea as Tt,Wo as U,He as Ut,Ko as V,Pi as Vt,Uo as W,cr as Wt,Lo as X,o as Xt,zo as Y,d as Yt,Io as Z,s as Zt,iv as _,Ya as _t,Ov as a,B as at,Q_ as b,Ma as bt,Sv as c,no as ct,gv as d,ro as dt,jo as et,mv as f,oo as ft,ov as g,ao as gt,cv as h,qa as ht,Av as i,yo as it,Eg as j,ia as jt,S_ as k,oa as kt,bv as l,to as lt,uv as m,Ja as mt,Nv as n,Eo as nt,Ev as o,lo as ot,fv as p,io as pt,Bo as q,hr as qt,Mv as r,bo as rt,wv as s,vo as st,Pv as t,ko as tt,vv as u,Ua as ut,nv as v,Ka as vt,W_ as w,Ca as wt,X_ as x,Oa as xt,ev as y,Pa as yt,Zo as z,Li as zt};