@hamsterbase/evidra 0.0.0-stage → 0.1.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 (228) hide show
  1. package/README.md +2 -2
  2. package/bin/evidra.mjs +2 -0
  3. package/dist/sdk/main.d.ts +176 -0
  4. package/dist/sdk/main.js +1322 -0
  5. package/dist/service/cli.js +2645 -0
  6. package/dist/types/modules/core/contracts/comparison.d.ts +41 -0
  7. package/dist/types/modules/core/contracts/config.d.ts +19 -0
  8. package/dist/types/modules/core/contracts/context.d.ts +6 -0
  9. package/dist/types/modules/core/contracts/functions/addCase.d.ts +128 -0
  10. package/dist/types/modules/core/contracts/functions/addTask.d.ts +14 -0
  11. package/dist/types/modules/core/contracts/functions/approve.d.ts +8 -0
  12. package/dist/types/modules/core/contracts/functions/baselineChanges.d.ts +14 -0
  13. package/dist/types/modules/core/contracts/functions/compare.d.ts +14 -0
  14. package/dist/types/modules/core/contracts/functions/compareTask.d.ts +6 -0
  15. package/dist/types/modules/core/contracts/functions/compareTasks.d.ts +18 -0
  16. package/dist/types/modules/core/contracts/functions/deleteBaselineFile.d.ts +8 -0
  17. package/dist/types/modules/core/contracts/functions/finishTask.d.ts +8 -0
  18. package/dist/types/modules/core/contracts/functions/getBaseline.d.ts +10 -0
  19. package/dist/types/modules/core/contracts/functions/getBaselineChanges.d.ts +6 -0
  20. package/dist/types/modules/core/contracts/functions/getGitChanges.d.ts +6 -0
  21. package/dist/types/modules/core/contracts/functions/getGitDiff.d.ts +8 -0
  22. package/dist/types/modules/core/contracts/functions/getTaskCase.d.ts +23 -0
  23. package/dist/types/modules/core/contracts/functions/getTaskTree.d.ts +21 -0
  24. package/dist/types/modules/core/contracts/functions/gitChanges.d.ts +25 -0
  25. package/dist/types/modules/core/contracts/functions/index.d.ts +18 -0
  26. package/dist/types/modules/core/contracts/functions/listBaselines.d.ts +5 -0
  27. package/dist/types/modules/core/contracts/functions/listRuns.d.ts +7 -0
  28. package/dist/types/modules/core/contracts/functions/listTaskSummaries.d.ts +15 -0
  29. package/dist/types/modules/core/contracts/functions/listTasks.d.ts +15 -0
  30. package/dist/types/modules/core/contracts/functions/loadConfig.d.ts +5 -0
  31. package/dist/types/modules/core/contracts/functions/readProjectInfo.d.ts +5 -0
  32. package/dist/types/modules/core/contracts/functions/readTaskReport.d.ts +6 -0
  33. package/dist/types/modules/core/contracts/functions/resolveConfig.d.ts +6 -0
  34. package/dist/types/modules/core/contracts/functions/reviewBaselineChanges.d.ts +9 -0
  35. package/dist/types/modules/core/contracts/functions/reviewCodeChanges.d.ts +9 -0
  36. package/dist/types/modules/core/contracts/functions/taskRecords.d.ts +6 -0
  37. package/dist/types/modules/core/contracts/functions/updateBaseline.d.ts +20 -0
  38. package/dist/types/modules/core/contracts/git.d.ts +14 -0
  39. package/dist/types/modules/core/contracts/imageDiffPool.d.ts +5 -0
  40. package/dist/types/modules/core/contracts/index.d.ts +30 -0
  41. package/dist/types/modules/core/contracts/internal/compare.d.ts +14 -0
  42. package/dist/types/modules/core/contracts/internal/getBaseline.d.ts +10 -0
  43. package/dist/types/modules/core/contracts/internal/listTasks.d.ts +12 -0
  44. package/dist/types/modules/core/contracts/internal/taskRecords.d.ts +6 -0
  45. package/dist/types/modules/core/contracts/internal/updateBaseline.d.ts +20 -0
  46. package/dist/types/modules/core/contracts/model.d.ts +80 -0
  47. package/dist/types/modules/core/contracts/report.d.ts +52 -0
  48. package/dist/types/modules/core/contracts/repository.d.ts +5 -0
  49. package/dist/types/modules/core/contracts/requests.d.ts +23 -0
  50. package/dist/types/modules/core/contracts/scanCases.d.ts +15 -0
  51. package/dist/types/modules/core/contracts/shared.d.ts +6 -0
  52. package/dist/types/modules/core/contracts/snapshots.d.ts +6 -0
  53. package/dist/types/modules/core/contracts/taskRecord.d.ts +76 -0
  54. package/dist/types/modules/core/implementations/Functions/addCase.d.ts +4 -0
  55. package/dist/types/modules/core/implementations/Functions/addTask.d.ts +4 -0
  56. package/dist/types/modules/core/implementations/Functions/approve.d.ts +6 -0
  57. package/dist/types/modules/core/implementations/Functions/compare.d.ts +15 -0
  58. package/dist/types/modules/core/implementations/Functions/compareTask.d.ts +3 -0
  59. package/dist/types/modules/core/implementations/Functions/compareTasks.d.ts +5 -0
  60. package/dist/types/modules/core/implementations/Functions/deleteBaselineFile.d.ts +4 -0
  61. package/dist/types/modules/core/implementations/Functions/finishTask.d.ts +4 -0
  62. package/dist/types/modules/core/implementations/Functions/getBaseline.d.ts +4 -0
  63. package/dist/types/modules/core/implementations/Functions/getBaselineChanges.d.ts +4 -0
  64. package/dist/types/modules/core/implementations/Functions/getGitChanges.d.ts +3 -0
  65. package/dist/types/modules/core/implementations/Functions/getGitDiff.d.ts +3 -0
  66. package/dist/types/modules/core/implementations/Functions/getTaskCase.d.ts +5 -0
  67. package/dist/types/modules/core/implementations/Functions/getTaskTree.d.ts +5 -0
  68. package/dist/types/modules/core/implementations/Functions/listBaselines.d.ts +3 -0
  69. package/dist/types/modules/core/implementations/Functions/listTaskSummaries.d.ts +2 -0
  70. package/dist/types/modules/core/implementations/Functions/listTasks.d.ts +4 -0
  71. package/dist/types/modules/core/implementations/Functions/loadConfig.d.ts +3 -0
  72. package/dist/types/modules/core/implementations/Functions/readProjectInfo.d.ts +3 -0
  73. package/dist/types/modules/core/implementations/Functions/readTaskReport.d.ts +3 -0
  74. package/dist/types/modules/core/implementations/Functions/resolveConfig.d.ts +9 -0
  75. package/dist/types/modules/core/implementations/Functions/reviewBaselineChanges.d.ts +4 -0
  76. package/dist/types/modules/core/implementations/Functions/reviewCodeChanges.d.ts +4 -0
  77. package/dist/types/modules/core/implementations/Functions/taskRecords.d.ts +4 -0
  78. package/dist/types/modules/core/implementations/Functions/updateBaseline.d.ts +5 -0
  79. package/dist/types/modules/core/implementations/Utils/assertNamespace.d.ts +1 -0
  80. package/dist/types/modules/core/implementations/Utils/canonical.d.ts +1 -0
  81. package/dist/types/modules/core/implementations/Utils/createTaskId.d.ts +1 -0
  82. package/dist/types/modules/core/implementations/Utils/deletionAllowed.d.ts +2 -0
  83. package/dist/types/modules/core/implementations/Utils/download.d.ts +3 -0
  84. package/dist/types/modules/core/implementations/Utils/hash.d.ts +1 -0
  85. package/dist/types/modules/core/implementations/Utils/imageDiffPool.d.ts +18 -0
  86. package/dist/types/modules/core/implementations/Utils/imageKey.d.ts +1 -0
  87. package/dist/types/modules/core/implementations/Utils/loadBaseline.d.ts +4 -0
  88. package/dist/types/modules/core/implementations/Utils/mapLimit.d.ts +1 -0
  89. package/dist/types/modules/core/implementations/Utils/observationKey.d.ts +1 -0
  90. package/dist/types/modules/core/implementations/Utils/pngSize.d.ts +4 -0
  91. package/dist/types/modules/core/implementations/Utils/readJson.d.ts +1 -0
  92. package/dist/types/modules/core/implementations/Utils/readTaskRecord.d.ts +2 -0
  93. package/dist/types/modules/core/implementations/Utils/scanCases.d.ts +9 -0
  94. package/dist/types/modules/core/implementations/Utils/taskDirectory.d.ts +1 -0
  95. package/dist/types/modules/core/implementations/Utils/toCase.d.ts +3 -0
  96. package/dist/types/modules/core/implementations/Utils/toObservation.d.ts +3 -0
  97. package/dist/types/modules/core/implementations/Utils/toSnapshot.d.ts +3 -0
  98. package/dist/types/modules/core/implementations/Utils/writeBytesAtomic.d.ts +1 -0
  99. package/dist/types/modules/core/implementations/Utils/writeJsonAtomic.d.ts +1 -0
  100. package/dist/types/modules/core/implementations/Utils/writeTextAtomic.d.ts +1 -0
  101. package/dist/types/modules/core/implementations/baselineChanges.d.ts +6 -0
  102. package/dist/types/modules/core/implementations/config.d.ts +6 -0
  103. package/dist/types/modules/core/implementations/content.d.ts +1 -0
  104. package/dist/types/modules/core/implementations/evidra.d.ts +31 -0
  105. package/dist/types/modules/core/implementations/git.d.ts +11 -0
  106. package/dist/types/modules/core/implementations/gitChanges.d.ts +29 -0
  107. package/dist/types/modules/core/implementations/index.d.ts +17 -0
  108. package/dist/types/modules/core/implementations/internal/compare.d.ts +15 -0
  109. package/dist/types/modules/core/implementations/internal/getBaseline.d.ts +4 -0
  110. package/dist/types/modules/core/implementations/internal/listTasks.d.ts +2 -0
  111. package/dist/types/modules/core/implementations/internal/taskRecords.d.ts +4 -0
  112. package/dist/types/modules/core/implementations/internal/updateBaseline.d.ts +5 -0
  113. package/dist/types/modules/core/implementations/paths.d.ts +48 -0
  114. package/dist/types/modules/core/implementations/report.d.ts +3 -0
  115. package/dist/types/modules/core/implementations/reportResources.d.ts +4 -0
  116. package/dist/types/modules/core/implementations/reportStatus.d.ts +10 -0
  117. package/dist/types/modules/core/implementations/reportTree.d.ts +5 -0
  118. package/dist/types/modules/core/implementations/repository.d.ts +10 -0
  119. package/dist/types/modules/core/implementations/requests.d.ts +13 -0
  120. package/dist/types/modules/core/implementations/snapshots.d.ts +11 -0
  121. package/dist/types/modules/core/implementations/storage/local.d.ts +3 -0
  122. package/dist/types/modules/core/implementations/storage/objects.d.ts +3 -0
  123. package/dist/types/modules/core/index.d.ts +21 -0
  124. package/dist/types/packages/sdk/src/index.d.ts +21 -0
  125. package/dist/types/packages/sdk/src/types.d.ts +9 -0
  126. package/dist/web/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
  127. package/dist/web/assets/abap-08VXUWAP.js +1 -0
  128. package/dist/web/assets/apex-BWPQTe0t.js +1 -0
  129. package/dist/web/assets/azcli-Bc_sGQ0U.js +1 -0
  130. package/dist/web/assets/bat-i0X4ZdIN.js +1 -0
  131. package/dist/web/assets/bicep-B5-_aFwp.js +2 -0
  132. package/dist/web/assets/cameligo-DMUM7wLl.js +1 -0
  133. package/dist/web/assets/clojure-Cm7r79vr.js +1 -0
  134. package/dist/web/assets/codicon-DF1abBS2.ttf +0 -0
  135. package/dist/web/assets/coffee-Ba7i2nA0.js +1 -0
  136. package/dist/web/assets/cpp-C7h46wYY.js +1 -0
  137. package/dist/web/assets/csharp-BKxtCVv1.js +1 -0
  138. package/dist/web/assets/csp-bTuwJoIa.js +1 -0
  139. package/dist/web/assets/css-DIMkf-bt.js +3 -0
  140. package/dist/web/assets/css.worker-DwfUZ3fB.js +96 -0
  141. package/dist/web/assets/cssMode-B8lMpRZk.js +1 -0
  142. package/dist/web/assets/cypher-CVaqCwHa.js +1 -0
  143. package/dist/web/assets/dart-onAF5SnQ.js +1 -0
  144. package/dist/web/assets/dockerfile-DZFCIeNp.js +1 -0
  145. package/dist/web/assets/ecl-94qehhXe.js +1 -0
  146. package/dist/web/assets/editor-DjpsE8to.css +1 -0
  147. package/dist/web/assets/editor.api-v7kHj8A9.js +908 -0
  148. package/dist/web/assets/editor.worker-CRz__AKW.js +33 -0
  149. package/dist/web/assets/elixir-6RTg0lbw.js +1 -0
  150. package/dist/web/assets/flow9-C5_-GSwl.js +1 -0
  151. package/dist/web/assets/freemarker2-DGeBHzes.js +3 -0
  152. package/dist/web/assets/fsharp-C8Ef5oNN.js +1 -0
  153. package/dist/web/assets/go-C-y9NEjX.js +1 -0
  154. package/dist/web/assets/graphql-fmXr3nnJ.js +1 -0
  155. package/dist/web/assets/handlebars-CJj8r50C.js +1 -0
  156. package/dist/web/assets/hcl-CpzslTdj.js +1 -0
  157. package/dist/web/assets/html-DjzDFsf0.js +1 -0
  158. package/dist/web/assets/html.worker-D9ugpX4y.js +509 -0
  159. package/dist/web/assets/htmlMode-CkwZJBoD.js +1 -0
  160. package/dist/web/assets/index-CSk5TcTU.js +37 -0
  161. package/dist/web/assets/index-jRxy440Y.css +2 -0
  162. package/dist/web/assets/ini-sBoK_t0W.js +1 -0
  163. package/dist/web/assets/java-BEtHBSE6.js +1 -0
  164. package/dist/web/assets/javascript-C-MAHJiN.js +1 -0
  165. package/dist/web/assets/json.worker-CV9fqkUp.js +65 -0
  166. package/dist/web/assets/jsonMode-CkXjaZv2.js +7 -0
  167. package/dist/web/assets/julia-Bri6UV-V.js +1 -0
  168. package/dist/web/assets/kotlin-BOotOW0E.js +1 -0
  169. package/dist/web/assets/less-B9JPFI3C.js +2 -0
  170. package/dist/web/assets/lexon-CfSJPG6W.js +1 -0
  171. package/dist/web/assets/liquid-7k8-ZDme.js +1 -0
  172. package/dist/web/assets/lspLanguageFeatures-CUP45dUg.js +4 -0
  173. package/dist/web/assets/lua-CsQS60Ue.js +1 -0
  174. package/dist/web/assets/m3-D-oSqn_W.js +1 -0
  175. package/dist/web/assets/markdown-Cimd5fb3.js +1 -0
  176. package/dist/web/assets/mdx-D-hYSOvW.js +1 -0
  177. package/dist/web/assets/mips-CIPQ_RoX.js +1 -0
  178. package/dist/web/assets/monaco-Dq3bzBUw.js +58 -0
  179. package/dist/web/assets/monaco-n7clI0si.css +1 -0
  180. package/dist/web/assets/msdax-DauUninz.js +1 -0
  181. package/dist/web/assets/mysql-SOo6toE5.js +1 -0
  182. package/dist/web/assets/objective-c-FvmIjYaQ.js +1 -0
  183. package/dist/web/assets/pascal-DrH0SRf2.js +1 -0
  184. package/dist/web/assets/pascaligo-D-ptJ9y-.js +1 -0
  185. package/dist/web/assets/perl-oz_6vUea.js +1 -0
  186. package/dist/web/assets/pgsql-DTj74zXo.js +1 -0
  187. package/dist/web/assets/php-nr791fC2.js +1 -0
  188. package/dist/web/assets/pla-CopQ2nXW.js +1 -0
  189. package/dist/web/assets/postiats-43DmfD33.js +1 -0
  190. package/dist/web/assets/powerquery-D3hlyOfw.js +1 -0
  191. package/dist/web/assets/powershell-DmHpPYUd.js +1 -0
  192. package/dist/web/assets/protobuf-C531GsRP.js +2 -0
  193. package/dist/web/assets/pug-Z5eAx3Zn.js +1 -0
  194. package/dist/web/assets/python-BpkAjkSI.js +1 -0
  195. package/dist/web/assets/qsharp-DkqhCAOL.js +1 -0
  196. package/dist/web/assets/r-BwWrilGY.js +1 -0
  197. package/dist/web/assets/razor-CxgXgZt1.js +1 -0
  198. package/dist/web/assets/redis-ClamHrr6.js +1 -0
  199. package/dist/web/assets/redshift-DT7zqm-g.js +1 -0
  200. package/dist/web/assets/restructuredtext-BYgofb2h.js +1 -0
  201. package/dist/web/assets/ruby-DezsRK8O.js +1 -0
  202. package/dist/web/assets/rust-DdL9SqIa.js +1 -0
  203. package/dist/web/assets/sb-CcwsVR0C.js +1 -0
  204. package/dist/web/assets/scala-DHpiXF5c.js +1 -0
  205. package/dist/web/assets/scheme-BeGwcela.js +1 -0
  206. package/dist/web/assets/scss-gp-XZpBa.js +3 -0
  207. package/dist/web/assets/shell-CC2rA5mh.js +1 -0
  208. package/dist/web/assets/solidity-BEEn4gHE.js +1 -0
  209. package/dist/web/assets/sophia-CRfGWb83.js +1 -0
  210. package/dist/web/assets/sparql-D_Lu-MrJ.js +1 -0
  211. package/dist/web/assets/sql-NEE52Syq.js +1 -0
  212. package/dist/web/assets/st-DbInun42.js +1 -0
  213. package/dist/web/assets/swift-Bxkupp3x.js +1 -0
  214. package/dist/web/assets/systemverilog-Bz4Y3fRF.js +1 -0
  215. package/dist/web/assets/tcl-DISqw1ZD.js +1 -0
  216. package/dist/web/assets/ts.worker-DIAQkoB3.js +67741 -0
  217. package/dist/web/assets/tsMode-BUKs-FlJ.js +11 -0
  218. package/dist/web/assets/twig-De2hgUGE.js +1 -0
  219. package/dist/web/assets/typescript-DVSIawmK.js +1 -0
  220. package/dist/web/assets/typespec-B8J7ngcE.js +1 -0
  221. package/dist/web/assets/vb-DV3o63ZY.js +1 -0
  222. package/dist/web/assets/wgsl-DpFanUEy.js +298 -0
  223. package/dist/web/assets/workers-v4-uKnr3.js +1 -0
  224. package/dist/web/assets/xml-D2x86430.js +1 -0
  225. package/dist/web/assets/yaml-nb07hHZ9.js +1 -0
  226. package/dist/web/index.html +13 -0
  227. package/package.json +77 -4
  228. package/skills/evidra/SKILL.md +112 -0
@@ -0,0 +1,37 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-Dq3bzBUw.js","assets/editor.api-v7kHj8A9.js","assets/editor-DjpsE8to.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
+ 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));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var 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 j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(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 N(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,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(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+j(a,u),c+=N(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+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(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 P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(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 I=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)},ee={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(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=ee,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:F}},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,I)}catch(e){I(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 j(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 j(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 M(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 M(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 N,P=class{constructor(e){if(g(this,N,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(h(this,N).has(e))return h(this,N).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){h(this,N).set(e,t)}};N=new WeakMap;var F=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function I(e){return F.has(e)}var ee=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function L(e){return ee.has(e)}function te(e){return e.index===!0}function R(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`),te(e)){let n={...e,id:s};return r[s]=z(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=z(n,t(n)),e.children&&(n.children=R(e.children,t,o,r,i)),n}})}function z(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ne(e,t,n=`/`){return re(e,t,n,!1)}function re(e,t,n,r,i){let a=Ce((typeof t==`string`?A(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ae(e),s=null,c=Se(a);for(let e=0;s==null&&e<o.length;++e)s=ve(o[e],c,r);return s}function ie(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 ae(e){let t=oe(e);return ce(t),t}function oe(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=Ne([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}".`),oe(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:ge(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=xe(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 se(e.path))a(e,t,!0,n)}),t}function se(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=se(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 ce(e){e.sort((e,t)=>e.score===t.score?_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var le=/^:[\w-]+$/,ue=3,de=2,fe=1,pe=10,me=-2,he=e=>e===`*`;function ge(e,t){let n=e.split(`/`),r=n.length;return n.some(he)&&(r+=me),t&&(r+=de),n.filter(e=>!he(e)).reduce((e,t)=>e+(le.test(t)?ue:t===``?fe:pe),r)}function _e(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 ve(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?be(u,l,s.matcher,s.compiledParams):ye(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=ye({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ne([a,d.pathname]),pathnameBase:Fe(Ne([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ne([a,d.pathnameBase]))}return o}function ye(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xe(e.path,e.caseSensitive,e.end);return be(e,t,n,r)}function be(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Pe(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Pe(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 xe(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 Se(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 Ce(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 we({basename:e,pathname:t}){return t===`/`?e:Ne([e,t])}var Te=e=>v.test(e);function Ee(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?A(e):e,a;return n?(n=Me(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?De(n.substring(1),`/`):De(n,t)):a=t,{pathname:a,search:Ie(r),hash:Le(i)}}function De(e,t){let n=Pe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Oe(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 ke(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ae(e){let t=ke(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function je(e,t,n,r=!1){let i;typeof e==`string`?i=A(e):(i={...e},w(!i.pathname||!i.pathname.includes(`?`),Oe(`?`,`pathname`,`search`,i)),w(!i.pathname||!i.pathname.includes(`#`),Oe(`#`,`pathname`,`hash`,i)),w(!i.search||!i.search.includes(`#`),Oe(`#`,`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=Ee(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Me=e=>e.replace(/[\\/]{2,}/g,`/`),Ne=e=>Me(e.join(`/`));function Pe(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 Fe=e=>Pe(e).replace(/^\/*/,`/`),Ie=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Le=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Re=(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})},ze=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Be=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 Ve(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function He(e){return Ne(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ue=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function We(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(Ue)try{let e=new URL(window.location.href),r=y.test(n)?new URL(b(n,e.protocol)):new URL(n),a=Ce(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 Ge=Symbol(`Uninstrumented`);function Ke(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=Je(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=Je(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[Ge]??i,a=Je(n[e],t,(...e)=>Xe(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Ge]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Ge]??e,r=Je(n.middleware,t,(...e)=>Xe(e[0]));return r?(r[Ge]=t,r):e})),r}function qe(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[Ge]??e.navigate,r=Je(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?k(n):`.`,...Ze(e,r??{})}});r&&(r[Ge]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Ge]??e.fetch,r=Je(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Ze(e,i??{})}});r&&(r[Ge]=t,e.fetch=r)}return e}function Je(e,t,n){return e.length===0?null:async(...r)=>{let i=await Ye(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Ye(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=Ye(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 Xe(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Qe(t),params:{...r},pattern:i,context:$e(n)}}function Ze(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 Qe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function $e(e){if(tt(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var et=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function tt(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`)===et}var nt=new URL(`http://localhost`);function rt(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),nt)}catch{return nt}}function it(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function at(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 ot(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&&!it(i,n),s=!it(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!at(e,i)||!it(i,a)))throw Error(`External navigation is not allowed`)}var st=[`POST`,`PUT`,`PATCH`,`DELETE`],ct=new Set(st),lt=[`GET`,...st],ut=new Set(lt),dt=new Set([301,302,303,307,308]),ft=new Set([307,308]),pt={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},mt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ht={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},gt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),_t=`remix-router-transitions`,vt=Symbol(`ResetLoaderData`),yt,bt,xt,St,Ct=class{constructor(e){g(this,yt),g(this,bt),g(this,xt),g(this,St),_(this,yt,e),_(this,bt,ae(e))}get stableRoutes(){return h(this,yt)}get activeRoutes(){return h(this,xt)??h(this,yt)}get branches(){return h(this,St)??h(this,bt)}get hasHMRRoutes(){return h(this,xt)!=null}setRoutes(e){_(this,yt,e),_(this,bt,ae(e))}setHmrRoutes(e){_(this,xt,e),_(this,St,ae(e))}commitHmrRoutes(){h(this,xt)&&(_(this,yt,h(this,xt)),_(this,bt,h(this,St)),_(this,xt,void 0),_(this,St,void 0))}};yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap;function wt(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||gt,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Ke(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Ct(R(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Vt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=re(s.activeRoutes,e.history.location,c,!1,s.branches),b=!1,x=null,S,C;if(v==null&&!e.patchRoutesOnNavigation){let t=pn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=fn(s.activeRoutes);S=!0,C=!S,v=n,x={[r.id]:t}}else if(v&&!e.hydrationData&&st(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){S=!1,C=!S,v=[];let t=st(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=>kt(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=At(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:pt,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},j=`POP`,N=null,F=!1,I,ee=!1,L=new Map,te=null,z=!1,ne=!1,ae=new Set,oe=new Map,se=0,ce=-1,le=new Map,ue=new Set,de=new Map,fe=new Map,pe=new Set,me=new Map,he,ge=null;function _e(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(he){he(),he=void 0;return}T(me.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=et({currentLocation:D.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{he=e});e.history.go(r*-1),$e(i,{state:`blocked`,location:n,proceed(){$e(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,ht),be({blockers:e})}}),N?.resolve(),N=null}else return Ee(t,n)}),n){Ln(t,L);let e=()=>Rn(t,L);t.addEventListener(`pagehide`,e),te=()=>t.removeEventListener(`pagehide`,e)}return D.initialized||Ee(`POP`,D.location,{initialHydration:!0}),E}function ve(){d&&d(),te&&te(),f.clear(),I&&I.abort(),D.fetchers.forEach((e,t)=>Ue(D.fetchers,t)),D.blockers.forEach((e,t)=>Qe(t))}function ye(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 be(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`&&(pe.has(t)?n.push(t):r.push(t))}),pe.forEach(e=>{!D.fetchers.has(e)&&!oe.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=>Ue(D.fetchers,e)),r.forEach(e=>D.fetchers.delete(e))}function xe(t,n,{flushSync:r}={}){let i=D.actionData!=null&&D.navigation.formMethod!=null&&On(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?ln(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,ht)));let l=!z&&at(t,n.matches||D.matches),u=F===!0||D.navigation.formMethod!=null&&On(D.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),z||j===`POP`||(j===`PUSH`?e.history.push(t,t.state):j===`REPLACE`&&e.history.replace(t,t.state));let d;if(j===`POP`&&!z&&t!==D.location){let e=L.get(D.location.pathname);e&&e.has(t.pathname)?d={currentLocation:D.location,nextLocation:t}:L.has(t.pathname)&&(d={currentLocation:t,nextLocation:D.location})}else if(ee){let e=L.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),L.set(D.location.pathname,e)),d={currentLocation:D.location,nextLocation:t}}be({...n,actionData:a,loaderData:o,historyAction:j,location:t,initialized:!0,renderFallback:!1,navigation:pt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),j=`POP`,F=!1,ee=!1,z=!1,ne=!1,N?.resolve(),N=null,ge?.resolve(),ge=null}async function Se(t,n){if(N?.resolve(),N=null,typeof t==`number`){N||=zn();let n=N.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Dt(!1,Et(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(/^\\+/,`/`)),ot(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)},ot(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&&On(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=et({currentLocation:s,nextLocation:l,historyAction:d});m?$e(m,{state:`blocked`,location:l,proceed(){$e(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),Se(t,n)},reset(){let e=new Map(D.blockers);e.set(m,ht),be({blockers:e})}}):await Ee(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function we(){ge||=zn(),Le(),be({revalidation:`loading`});let e=ge.promise;return D.navigation.state===`submitting`?e:D.navigation.state===`idle`?(Ee(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(Ee(j||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:ee===!0}),e)}async function Ee(t,n,r){I&&I.abort(),I=null,j=t,z=(r&&r.startUninterruptedRevalidation)===!0,it(D.location,D.matches),F=(r&&r.preventScrollReset)===!0,ee=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&D.matches&&D.matches.length>0&&!b?D.matches:re(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&D.initialized&&!ne&&gn(D.location,n)&&!(r&&r.submission&&On(r.submission.formMethod))){xe(n,{matches:a},{flushSync:o});return}let l=st(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);xe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;I=new AbortController;let d=nn(e.history,n,I.signal,r&&r.submission),f=e.getContext?await e.getContext():new P,p;if(r&&r.pendingError)p=[dn(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&On(r.submission.formMethod)){let i=await De(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(xn(t)&&Ve(t.error)&&t.error.status===404){I=null,xe(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=Mn(n,a,t,r.submission),o=!1,l.active=!1,d=nn(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await Oe(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||(I=null,xe(n,{matches:h||a,...un(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function De(t,n,i,l,u,d,f,p,m={}){if(Le(),be({navigation:Nn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await ct(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}=fn(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=dn(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}=tt(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=An(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:pn(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Fe(t,n,qt(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(Sn(h)){let n;return n=m&&m.replace!=null?m.replace:tn(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===D.location.pathname+D.location.search,await Pe(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(xn(h)){let e=dn(l,g.route.id);return(m&&m.replace)!==!0&&(j=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function Oe(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||Mn(n,i,l,p),x=p||m||jn(b),S=!z&&!g;if(d){if(S){let e=ke(v);be({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await ct(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}=fn(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=dn(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}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Ot(t,u,a,o,e.history,D,i,x,n,g?[]:r,g===!0,ne,ae,pe,de,ue,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(ce=++se,!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=Ye(e);return xe(n,{matches:i,loaderData:{},errors:v&&xn(v[1])?{[v[0]]:v[1].error}:null,...un(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=ke(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ae(T)),be(e,{flushSync:_})}T.forEach(e=>{Ge(e.key),e.controller&&oe.set(e.key,e.controller)});let E=()=>T.forEach(e=>Ge(e.key));I&&I.signal.addEventListener(`abort`,E);let{loaderResults:O,fetcherResults:k}=await Ie(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener(`abort`,E),T.forEach(e=>oe.delete(e.key));let A=mn(O);if(A)return await Pe(t,A.result,!0,{replace:h}),{shortCircuited:!0};if(A=mn(k),A)return ue.add(A.key),await Pe(t,A.result,!0,{replace:h}),{shortCircuited:!0};let j=new Map(D.fetchers),{loaderData:M,errors:N}=cn(D,i,O,v,T,k,j);g&&D.errors&&(N={...D.errors,...N});let P=Ye(j),F=Xe(ce,j),ee=P||F||T.length>0;return{matches:i,loaderData:M,errors:N,...ee?{workingFetchers:j}:{}}}function ke(e){if(e&&!xn(e[1]))return{[e[0]]:e[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Ae(e){let t=new Map(D.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=Pn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function je(t,n,r,i){Ge(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=Et(D.location,D.matches,c,r,n,i?.relative),u=re(o,l,c,!1,s.branches),d=st(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){ze(t,n,pn(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Dt(!0,l,i);if(m){ze(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new P,g=(i&&i.preventScrollReset)===!0;p&&On(p.formMethod)?await Me(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(de.set(t,{routeId:n,path:f}),await Ne(t,n,f,u,h,d.active,a,g,p))}async function Me(t,n,i,l,u,d,f,p,m,h){Le(),de.delete(t),Re(t,Fn(m,D.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=nn(e.history,i,g.signal,m);if(d){let e=await ct(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ze(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{ze(t,n,pn(404,{pathname:i}),{flushSync:f});return}}let v=An(l,i);if(!v.route.action&&!v.route.lazy){ze(t,n,pn(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}oe.set(t,g);let y=se,b=qt(a,o,_,i,l,v,r,u),x=await Fe(_,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){oe.get(t)===g&&oe.delete(t);return}if(pe.has(t)){if(Sn(S)||xn(S)){Re(t,In(void 0));return}}else{if(Sn(S)){if(oe.delete(t),ce>y){Re(t,In(void 0));return}return ue.add(t),Re(t,Pn(m)),Pe(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(xn(S)){ze(t,n,S.error);return}}let C=D.navigation.location||D.location,T=nn(e.history,C,g.signal),E=s.activeRoutes,O=D.navigation.state===`idle`?D.matches:re(E,D.navigation.location,c,!1,s.branches);w(O,`Didn't find any matches after fetcher action`);let k=++se;le.set(t,k);let{dsMatches:A,revalidatingFetchers:M}=Ot(T,u,a,o,e.history,D,O,m,C,r,!1,ne,ae,pe,de,ue,E,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),N=Pn(m,S.data),P=new Map(D.fetchers);P.set(t,N),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=Pn(void 0,n?n.data:void 0);P.set(t,r),Ge(t),e.controller&&oe.set(t,e.controller)}),be({fetchers:P});let F=()=>M.forEach(e=>Ge(e.key));g.signal.addEventListener(`abort`,F);let{loaderResults:ee,fetcherResults:L}=await Ie(A,M,T,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,F),le.delete(t),oe.delete(t),M.forEach(e=>oe.delete(e.key));let te=D.fetchers.has(t),R=e=>{if(!te)return e;let n=new Map(e.fetchers);return n.set(t,In(S.data)),{...e,fetchers:n}},z=mn(ee);if(z)return D=R(D),Pe(T,z.result,!1,{preventScrollReset:p});if(z=mn(L),z)return ue.add(z.key),D=R(D),Pe(T,z.result,!1,{preventScrollReset:p});let ie=new Map(D.fetchers);te&&ie.set(t,In(S.data));let{loaderData:fe,errors:me}=cn(D,O,ee,void 0,M,L,ie);Xe(k,ie),D.navigation.state===`loading`&&k>ce?(w(j,`Expected pending action`),I&&I.abort(),xe(D.navigation.location,{matches:O,loaderData:fe,errors:me,fetchers:ie})):(be({errors:me,loaderData:ln(D.loaderData,fe,O,me),fetchers:ie}),ne=!1)}async function Ne(t,n,i,s,c,l,u,d,f){let p=D.fetchers.get(t);Re(t,Pn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=nn(e.history,i,m.signal);if(l){let e=await ct(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ze(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{ze(t,n,pn(404,{pathname:i}),{flushSync:u});return}}let g=An(s,i);oe.set(t,m);let _=se,v=await Fe(h,i,qt(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(oe.get(t)===m&&oe.delete(t),!h.signal.aborted){if(pe.has(t))Re(t,In(void 0));else if(Sn(y)){if(ce>_){Re(t,In(void 0));return}ue.add(t),await Pe(h,y,!1,{preventScrollReset:d})}else xn(y)?ze(t,n,y.error):Re(t,In(y.data))}}async function Pe(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(N?.resolve(),N=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ne=!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=tn(d,p,c,e.history),ot(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(Te(d)){let n=M(t,d,!0);e=n.origin!==t.location.origin||Ce(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}I=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=jn(D.navigation));let y=o||s;ft.has(i.response.status)&&y&&On(y.formMethod)?await Ee(h,m,{submission:{...y,formAction:d},preventScrollReset:l||F,enableViewTransition:a?ee:void 0}):await Ee(h,m,{overrideNavigation:Mn(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||F,enableViewTransition:a?ee:void 0})}async function Fe(e,t,n,r,i){let a,o={};try{a=await Jt(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(!On(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(bn(r)){let i=r.result;o[t]={type:`redirect`,response:Qt(i,e,t,n,c)}}else o[t]=await Zt(r);return o}async function Ie(e,t,n,r,i){let a=Fe(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Fe(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:pn(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Le(){ne=!0,de.forEach((e,t)=>{oe.has(t)&&ae.add(t),Ge(t)})}function Re(e,t,n={}){let r=new Map(D.fetchers);r.set(e,t),be({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function ze(e,t,n,r={}){let i=dn(D.matches,t),a=new Map(D.fetchers);Ue(a,e),be({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Be(e){return fe.set(e,(fe.get(e)||0)+1),pe.has(e)&&pe.delete(e),D.fetchers.get(e)||mt}function He(e,t){Ge(e,t?.reason),Re(e,In(null))}function Ue(e,t){let n=D.fetchers.get(t);oe.has(t)&&!(n&&n.state===`loading`&&le.has(t))&&Ge(t),de.delete(t),le.delete(t),ue.delete(t),pe.delete(t),ae.delete(t),e.delete(t)}function We(e){let t=(fe.get(e)||0)-1;t<=0?(fe.delete(e),pe.add(e)):fe.set(e,t),be({fetchers:new Map(D.fetchers)})}function Ge(e,t){let n=oe.get(e);n&&(n.abort(t),oe.delete(e))}function Je(e,t){for(let n of e){let e=t.get(n);w(e,`Expected fetcher: ${n}`);let r=In(e.data);t.set(n,r)}}function Ye(e){let t=[],n=!1;for(let r of ue){let i=e.get(r);w(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ue.delete(r),t.push(r),n=!0)}return Je(t,e),n}function Xe(e,t){let n=[];for(let[r,i]of le)if(i<e){let e=t.get(r);w(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Ge(r),le.delete(r),n.push(r))}return Je(n,t),n.length>0}function Ze(e,t){let n=D.blockers.get(e)||ht;return me.get(e)!==t&&me.set(e,t),n}function Qe(e){D.blockers.delete(e),me.delete(e)}function $e(e,t){let n=D.blockers.get(e)||ht;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),be({blockers:r})}function et({currentLocation:e,nextLocation:t,historyAction:n}){if(me.size===0)return;me.size>1&&T(!1,`A router only supports one blocker at a time`);let r=Array.from(me.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 tt(e){let t=pn(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=fn(n);return{notFoundMatches:r,route:i,error:t}}function nt(e,t,n){if(m=e,g=t,h=n||null,!_&&D.navigation===pt){_=!0;let e=at(D.location,D.matches);e!=null&&be({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function rt(e,t){return h&&h(e,t.map(e=>ie(e,D.loaderData)))||e.key}function it(e,t){if(m&&g){let n=rt(e,t);m[n]=g()}}function at(e,t){if(m){let n=rt(e,t),r=m[n];if(typeof r==`number`)return r}return null}function st(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:re(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:re(n,r,c,!0,e)}}return{active:!1,matches:null}}async function ct(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||Pt(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=re(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=re(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&lt(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=re(s.activeRoutes,n,c,!0,u),!f||lt(l,f))return{type:`success`,matches:null};l=f}}function lt(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function ut(e){o={},s.setHmrRoutes(R(e,a,void 0,o))}function dt(e,t,n=!1){Pt(e,t,s,o,a,n),s.hasHMRRoutes||be({})}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:_e,subscribe:ye,enableScrollRestoration:nt,navigate:Se,fetch:je,revalidate:we,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Be,resetFetcher:He,deleteFetcher:We,dispose:ve,getBlocker:Ze,deleteBlocker:Qe,patchRoutes:dt,_internalFetchControllers:oe,_internalSetRoutes:ut,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){be(e)}},e.instrumentations&&(E=qe(E,e.instrumentations.map(e=>e.router).filter(Boolean))),E}function Tt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Et(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=je(r||`.`,Ae(o),Ce(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=kn(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=we({basename:n,pathname:c.pathname})),k(c)}function Dt(e,t,n){if(!n||!Tt(n))return{path:t};if(n.formMethod&&!Dn(n.formMethod))return{path:t,error:pn(405,{method:n.formMethod})};let r=()=>({path:t,error:pn(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=hn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!On(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}
3
+ `,``):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(!On(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=an(n.formData),s=n.formData;else if(n.body instanceof FormData)o=an(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=on(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=on(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(On(c.formMethod))return{path:t,submission:c};let l=A(t);return e&&l.search&&kn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:k(l),submission:c}}function Ot(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?xn(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&&xn(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=He(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(!kt(s))f=!1;else if(u){let{shouldLoad:e}=At(s,a.loaderData,a.errors);f=e}else jt(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Kt(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?Mt(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=Nt(i,m);return Kt(n,r,e,c,k,i,l,t,h,m,x)}),j=[];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=re(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.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=An(b,e.path),C=new AbortController,w=nn(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=qt(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=qt(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};Nt(S,a)&&(T=qt(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function kt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function At(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!kt(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 jt(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Mt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Nt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Pt(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=>Ft(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=R(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]=R([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 Ft(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=>Ft(e,t)))??!1}var It=new WeakMap,Lt=({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=It.get(i);o||(o={},It.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=I(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},Rt=new WeakMap;function zt(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=Rt.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=L(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 Rt.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=Lt({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 Bt(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 Vt(e){return e.matches.some(e=>e.route.middleware)?Ht(e,()=>Bt(e)):Bt(e)}function Ht(e,t){return Ut(e,t,e=>{if(En(e))throw e;return e},vn,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=dn(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 Ut(e,t,n,r,i){let{matches:a,...o}=e;return await Wt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Wt(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 Wt(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 Gt(e,t,n,r,i){let a=Lt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=zt(r.route,On(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Kt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Gt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Nt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Nt(a,{...l,defaultShouldRevalidate:e}):Nt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!On(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(On(n.method)||!p)?Yt({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 qt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Kt(e,t,n,r,He(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Gt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Jt(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:rn(t,n),pattern:He(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 Ht(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 Yt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=On(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:rn(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 pn(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 pn(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Xt(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 Zt(e){let{result:t,type:n}=e;if(wn(t)){let e;try{e=await Xt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Be(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Cn(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:_n(t),statusCode:Ve(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ve(t)?t.status:void 0}:Cn(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 Qt(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`),!Te(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Et(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var $t=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function en(e){try{return $t.includes(new URL(e).protocol)}catch{return!1}}function tn(e,t,n,r){if(Te(e)){let r=e,i=y.test(r)?new URL(b(r,t.protocol)):new URL(r);if(en(i.toString()))throw Error(`Invalid redirect location`);let a=Ce(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Me(i.pathname)+i.search+i.hash}try{if(en(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function nn(e,t,n,r){let i=e.createURL(hn(t)).toString(),a={signal:n};if(r&&On(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?an(r.formData):r.formData}return new Request(i,a)}function rn(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 an(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function on(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function sn(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&xn(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(!Sn(f),`Cannot handle redirect results in processLoaderData`),xn(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=dn(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=vt),c||(c=!0,s=Ve(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 cn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=sn(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`),xn(s)){let t=dn(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Sn(s))w(!1,`Unhandled fetcher revalidation redirect`);else{let e=In(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function ln(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==vt).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 un(e){return e?xn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function dn(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 fn(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 pn(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 Be(e||500,o,Error(s),!0)}function mn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Sn(r))return{key:n,result:r}}}function hn(e){return k({...typeof e==`string`?A(e):e,hash:``})}function gn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function _n(e){return new Be(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function vn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&yn(t))}function yn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function bn(e){return wn(e.result)&&dt.has(e.result.status)}function xn(e){return e.type===`error`}function Sn(e){return(e&&e.type)===`redirect`}function Cn(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function wn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Tn(e){return dt.has(e)}function En(e){return wn(e)&&Tn(e.status)&&e.headers.has(`Location`)}function Dn(e){return ut.has(e.toUpperCase())}function On(e){return ct.has(e.toUpperCase())}function kn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function An(e,t){let n=typeof t==`string`?A(t).search:t.search;if(e[e.length-1].route.index&&kn(n||``))return e[e.length-1];let r=ke(e);return r[r.length-1]}function jn(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 Mn(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 Nn(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 Pn(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 Fn(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 In(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 Ln(e,t){try{let n=e.sessionStorage.getItem(_t);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 Rn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(_t,JSON.stringify(n))}catch(e){T(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function zn(){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 Bn=f.createContext(null);Bn.displayName=`DataRouter`;var Vn=f.createContext(null);Vn.displayName=`DataRouterState`;var Hn=f.createContext(!1);function Un(){return f.useContext(Hn)}var Wn=f.createContext({isTransitioning:!1});Wn.displayName=`ViewTransition`;var Gn=f.createContext(new Map);Gn.displayName=`Fetchers`;var Kn=f.createContext(null);Kn.displayName=`Await`;var qn=f.createContext(null);qn.displayName=`Navigation`;var Jn=f.createContext(null);Jn.displayName=`Location`;var Yn=f.createContext({outlet:null,matches:[],isDataRoute:!1});Yn.displayName=`Route`;var Xn=f.createContext(null);Xn.displayName=`RouteError`;var Zn=`REACT_ROUTER_ERROR`,Qn=`REDIRECT`,$n=`ROUTE_ERROR_RESPONSE`;function er(e){if(e.startsWith(`${Zn}:${Qn}:{`))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 tr(e){if(e.startsWith(`${Zn}:${$n}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Be(t.status,t.statusText,t.data)}catch{}}function nr(e,{relative:t}={}){w(rr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=f.useContext(qn),{hash:i,pathname:a,search:o}=ur(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ne([n,a])),r.createHref({pathname:s,search:o,hash:i})}function rr(){return f.useContext(Jn)!=null}function ir(){return w(rr(),`useLocation() may be used only in the context of a <Router> component.`),f.useContext(Jn).location}var ar=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function or(e){f.useContext(qn).static||f.useLayoutEffect(e)}function sr(){let{isDataRoute:e}=f.useContext(Yn);return e?Dr():cr()}function cr(){w(rr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=f.useContext(Bn),{basename:t,navigator:n}=f.useContext(qn),{matches:r}=f.useContext(Yn),{pathname:i}=ir(),a=JSON.stringify(Ae(r)),o=f.useRef(!1);return or(()=>{o.current=!0}),f.useCallback((r,s={})=>{if(T(o.current,ar),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=je(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ne([t,c.pathname])),ot(typeof r==`string`?r:k(r),n.createHref(c),rt(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}f.createContext(null);function lr(){let{matches:e}=f.useContext(Yn);return e[e.length-1]?.params??{}}function ur(e,{relative:t}={}){let{matches:n}=f.useContext(Yn),{pathname:r}=ir(),i=JSON.stringify(Ae(n));return f.useMemo(()=>je(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function dr(e,t,n){w(rr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=f.useContext(qn),{matches:i}=f.useContext(Yn),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||``;kr(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.
4
+
5
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ir(),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})):ne(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=vr(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ne([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ne([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(Jn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function fr(){let e=Er(),t=Ve(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 pr=f.createElement(fr,null),mr=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=tr(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:f.createElement(Yn.Provider,{value:this.props.routeContext},f.createElement(Xn.Provider,{value:e,children:this.props.component}));return this.context?f.createElement(gr,{error:e},t):t}};mr.contextType=Hn;var hr=new WeakMap;function gr({children:e,error:t}){let{basename:n,navigator:r}=f.useContext(qn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=er(t.digest);if(e){let i=hr.get(t);if(i)throw i;let a=We(e.location,n),o=a.absoluteURL||a.to;if(ot(e.location,o,rt(r),`allow-explicit`),en(o))throw Error(`Invalid redirect location`);if(Ue&&!hr.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 hr.set(t,n),n}}return f.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function _r({routeContext:e,match:t,children:n}){let r=f.useContext(Bn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Yn.Provider,{value:e},n)}function vr(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:He(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||pr,o&&(s<0&&c===0?(kr(`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(_r,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?f.createElement(mr,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function yr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function br(e){let t=f.useContext(Bn);return w(t,yr(e)),t}function xr(e){let t=f.useContext(Vn);return w(t,yr(e)),t}function Sr(e){let t=f.useContext(Yn);return w(t,yr(e)),t}function Cr(e){let t=Sr(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 wr(){return Cr(`useRouteId`)}function Tr(){let{matches:e,loaderData:t}=xr(`useMatches`);return f.useMemo(()=>e.map(e=>ie(e,t)),[e,t])}function Er(){let e=f.useContext(Xn),t=xr(`useRouteError`),n=Cr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Dr(){let{router:e}=br(`useNavigate`),t=Cr(`useNavigate`),n=f.useRef(!1);return or(()=>{n.current=!0}),f.useCallback(async(r,i={})=>{T(n.current,ar),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Or={};function kr(e,t,n){!t&&!Or[e]&&(Or[e]=!0,T(!1,n))}var Ar={};function jr(e,t){!e&&!Ar[t]&&(Ar[t]=!0,console.warn(t))}var Mr=f.useOptimistic,Nr=()=>void 0;function Pr(e){return Mr?Mr(e):[e,Nr]}function Fr(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 Ir=[`HydrateFallback`,`hydrateFallbackElement`],Lr=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 Rr({router:e,flushSync:t,onError:n,useTransitions:r}){r=Un()||r;let[i,a]=f.useState(e.state),[o,s]=Pr(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:He(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),jr(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(jr(_==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=>zr(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 Lr)},[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=>zr(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(Bn.Provider,{value:C},f.createElement(Vn.Provider,{value:o},f.createElement(Gn.Provider,{value:y.current},f.createElement(Wn.Provider,{value:u},f.createElement(Hr,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},f.createElement(Br,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function zr(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 Br=f.memo(Vr);function Vr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return dr(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Hr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){w(!rr(),`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=Ce(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(qn.Provider,{value:c},f.createElement(Jn.Provider,{children:t,value:g}))}f.Component;var Ur=`get`,Wr=`application/x-www-form-urlencoded`;function Gr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Kr(e){return Gr(e)&&e.tagName.toLowerCase()===`button`}function qr(e){return Gr(e)&&e.tagName.toLowerCase()===`form`}function Jr(e){return Gr(e)&&e.tagName.toLowerCase()===`input`}function Yr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xr(e,t){return e.button===0&&(!t||t===`_self`)&&!Yr(e)}var Zr=null;function Qr(){if(Zr===null)try{new FormData(document.createElement(`form`),0),Zr=!1}catch{Zr=!0}return Zr}var $r=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ei(e){return e!=null&&!$r.has(e)?(T(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wr}"`),null):e}function ti(e,t){let n,r,i,a,o;if(qr(e)){let o=e.getAttribute(`action`);r=o?Ce(o,t):null,n=e.getAttribute(`method`)||Ur,i=ei(e.getAttribute(`enctype`))||Wr,a=new FormData(e)}else if(Kr(e)||Jr(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?Ce(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Ur,i=ei(e.getAttribute(`formenctype`))||ei(o.getAttribute(`enctype`))||Wr,a=new FormData(o,e),!Qr()){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(Gr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Ur,r=null,i=Wr,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 ni(e,t){if(e===!1||e==null)throw Error(t)}function ri(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&&Ce(i.pathname,t)===`/`?`${Pe(t)}/_root.${r}`:`${Pe(i.pathname)}.${r}`,i}async function ii(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 ai(e){return e!=null&&typeof e.page==`string`}function oi(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 si(e,t,n){return fi((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ii(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(oi).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function ci(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 li(e,t,{includeHydrateFallback:n}={}){return ui(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 ui(e){return[...new Set(e)]}function di(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function fi(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ai(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(di(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function pi(){let e=f.useContext(Bn);return ni(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function mi(){let e=f.useContext(Vn);return ni(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var hi=f.createContext(void 0);hi.displayName=`FrameworkContext`;function gi(){let e=f.useContext(hi);return ni(e,`You must render this element inside a <HydratedRouter> element`),e}function _i(e,t){let n=f.useContext(hi),[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:vi(s,m),onBlur:vi(c,h),onMouseEnter:vi(l,m),onMouseLeave:vi(u,h),onTouchStart:vi(d,m)}]:[a,p,{}]:[!1,p,{}]}function vi(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function yi({page:e,...t}){let n=Un(),{nonce:r}=gi(),{router:i}=pi(),a=f.useMemo(()=>ne(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?f.createElement(xi,{page:e,matches:a,...t}):f.createElement(Si,{page:e,matches:a,...t})):null}function bi(e){let{manifest:t,routeModules:n}=gi(),[r,i]=f.useState([]);return f.useEffect(()=>{let r=!1;return si(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function xi({page:e,matches:t,...n}){let r=ir(),{future:i}=gi(),{basename:a}=pi(),o=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ri(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 Si({page:e,matches:t,...n}){let r=ir(),{future:i,manifest:a,routeModules:o}=gi(),{basename:s}=pi(),{loaderData:c,matches:l}=mi(),u=f.useMemo(()=>ci(e,t,l,a,r,`data`),[e,t,l,a,r]),d=f.useMemo(()=>ci(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=ri(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(()=>li(d,a),[d,a]),h=bi(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 Ci(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}f.Component;var wi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{wi&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Ti(e,t){return wt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:C({window:t?.window}),hydrationData:t?.hydrationData||Ei(),routes:e,mapRouteProperties:Fr,hydrationRouteProperties:Ir,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ei(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Di(e.errors)}),e}function Di(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 Be(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&ze.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 Oi=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(qn),b=typeof l==`string`&&v.test(l),x=We(l,g);l=x.to;let S=nr(l,{relative:r}),C=ir(),w=null;if(o){let e=je(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Ne([g,e.pathname])),w=_.createHref(e)}let[T,E,D]=_i(n,m),O=Mi(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),j=f.createElement(`a`,{...m,...D,href:(A?w:void 0)||x.absoluteURL||S,onClick:A?k:e,ref:Ci(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?f.createElement(f.Fragment,null,j,f.createElement(yi,{page:S})):j});Oi.displayName=`Link`;var ki=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=ur(a,{relative:c.relative}),d=ir(),p=f.useContext(Vn),{navigator:m,basename:h}=f.useContext(qn),g=p!=null&&Li(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=Ce(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(Oi,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});ki.displayName=`NavLink`;var Ai=f.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ur,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=f.useContext(qn),_=Fi(),y=Ii(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})});Ai.displayName=`Form`;function ji(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B(e){let t=f.useContext(Bn);return w(t,ji(e)),t}function Mi(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=sr(),d=ir(),p=ur(e,{relative:o});return f.useCallback(m=>{if(Xr(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])}var Ni=0,Pi=()=>`__${String(++Ni)}__`;function Fi(){let{router:e}=B(`useSubmit`),{basename:t}=f.useContext(qn),n=wr(),r=e.fetch,i=e.navigate;return f.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ti(e,t);if(a.navigate===!1){let e=a.fetcherKey||Pi();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 Ii(e,{relative:t}={}){let{basename:n}=f.useContext(qn),r=f.useContext(Yn);w(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ur(e||`.`,{relative:t})},o=ir();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:Ne([n,a.pathname])),k(a)}function Li(e,{relative:t}={}){let n=f.useContext(Wn);w(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=B(`useViewTransitionState`),i=ur(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ce(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ce(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ye(i.pathname,o)!=null||ye(i.pathname,a)!=null}var Ri=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`})),zi=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=Ri()})),Bi=l(zi(),1);function Vi(e){return f.createElement(Rr,{flushSync:Bi.flushSync,...e})}function Hi(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 Ui=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})),V=o(((e,t)=>{t.exports=Ui()}))(),Wi=(0,f.createContext)(null);function Gi({services:e,children:t}){return(0,V.jsx)(Wi.Provider,{value:e,children:t})}function Ki(e){let t=(0,f.useContext)(Wi);if(!t)throw Error(`组件必须位于 ServicesProvider 内`);return t.invokeFunction(t=>t.get(e))}var qi=class{ctor;staticArguments;supportsDelayedInstantiation;constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},Ji;(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})(Ji||={});var Yi=Zi(`instantiationService`);function Xi(e,t,n){t[Ji.DI_TARGET]===t?t[Ji.DI_DEPENDENCIES].push({id:e,index:n}):(t[Ji.DI_DEPENDENCIES]=[{id:e,index:n}],t[Ji.DI_TARGET]=t)}function Zi(e){if(Ji.serviceIds.has(e))return Ji.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`);Xi(t,e,r)};return t.toString=()=>e,Ji.serviceIds.set(e,t),t}var Qi=new class{unexpectedErrorHandler;listeners;constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?aa.isErrorNoTelemetry(e)?new aa(e.message+`
6
+
7
+ `+e.stack):Error(e.message+`
8
+
9
+ `+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 $i(e){ta(e)||Qi.onUnexpectedError(e)}var ea=`Canceled`;function ta(e){return e instanceof na||e instanceof Error&&e.name===ea&&e.message===ea}var na=class extends Error{constructor(){super(ea),this.name=this.message}};function ra(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}function ia(e){return Error(e?`Illegal state: ${e}`:`Illegal state`)}var aa=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 oa(e){let t=this,n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var sa;(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})(sa||={});var ca=null;function la(e){return ca?.trackDisposable(e),e}function ua(e){ca?.markAsDisposed(e)}function da(e,t){ca?.setParent(e,t)}function fa(e){return ca?.markAsSingleton(e),e}function pa(e){if(sa.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 ma(...e){return ha(()=>pa(e))}function ha(e){let t=la({dispose:oa(()=>{ua(t),e()})});return t}var ga=class e{static DISABLE_DISPOSED_WARNING=!1;_toDispose=new Set;_isDisposed=!1;constructor(){la(this)}dispose(){this._isDisposed||(ua(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{pa(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return da(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}},_a=class{static None=Object.freeze({dispose(){}});_store=new ga;constructor(){la(this),da(this._store,this)}dispose(){ua(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},va=class{_value;_isDisposed=!1;constructor(){la(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&da(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,ua(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&da(e,null),e}},ya=class{dispose=()=>{};unset=()=>{};isset=()=>!1;constructor(){la(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,ua(this))},this}},ba=class e{static Undefined=new e(void 0);element;next;prev;constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},xa=class{_first=ba.Undefined;_last=ba.Undefined;_size=0;get size(){return this._size}isEmpty(){return this._first===ba.Undefined}clear(){let e=this._first;for(;e!==ba.Undefined;){let t=e.next;e.prev=ba.Undefined,e.next=ba.Undefined,e=t}this._first=ba.Undefined,this._last=ba.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new ba(e);if(this._first===ba.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!==ba.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ba.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ba.Undefined&&e.next!==ba.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ba.Undefined&&e.next===ba.Undefined?(this._first=ba.Undefined,this._last=ba.Undefined):e.next===ba.Undefined?(this._last=this._last.prev,this._last.next=ba.Undefined):e.prev===ba.Undefined&&(this._first=this._first.next,this._first.prev=ba.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==ba.Undefined;)yield e.element,e=e.next}};function Sa(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 H(e,t,...n){return Sa(t,n)}var Ca=!1,wa=!1,Ta=!1,Ea=!1,Da=!1,Oa=void 0,ka=`en`,Aa=void 0,ja=typeof self==`object`?self:typeof global==`object`?global:{},Ma=void 0;ja.vscode!==void 0&&ja.vscode.process!==void 0?Ma=ja.vscode.process:typeof process<`u`&&(Ma=process);var Na=typeof Ma?.versions?.electron==`string`&&Ma?.type===`renderer`;if(typeof navigator==`object`&&!Na)Aa=navigator.userAgent,Ca=Aa.indexOf(`Windows`)>=0,wa=Aa.indexOf(`Macintosh`)>=0,Da=(Aa.indexOf(`Macintosh`)>=0||Aa.indexOf(`iPad`)>=0||Aa.indexOf(`iPhone`)>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ta=Aa.indexOf(`Linux`)>=0,Aa?.indexOf(`Mobi`),Ea=!0,Oa=(H({key:`ensureLoaderPluginIsLoaded`,comment:[`{Locked}`]},`_`),`en`),ka=Oa,navigator.language;else if(typeof Ma==`object`){Ca=Ma.platform===`win32`,wa=Ma.platform===`darwin`,Ta=Ma.platform===`linux`,Ta&&Ma.env.SNAP&&Ma.env.SNAP_REVISION,Ma.env.CI||Ma.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Oa=`en`,ka=`en`;let e=Ma.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages[`*`];Oa=t.locale,t.osLocale,ka=n||`en`,t._translationsConfigFile}catch{}}else console.error(`Unable to resolve platform.`);var Pa=Ca,Fa=wa,Ia=Ta,La=Ea;Ea&&ja.importScripts;var Ra=Aa,za=ka,Ba;(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})(Ba||={});var Va=typeof ja.postMessage==`function`&&!ja.importScripts,Ha=(()=>{if(Va){let e=[];ja.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}),ja.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})(),Ua;(function(e){e[e.Windows=1]=`Windows`,e[e.Macintosh=2]=`Macintosh`,e[e.Linux=3]=`Linux`})(Ua||={});var Wa=wa||Da?Ua.Macintosh:Ca?Ua.Windows:Ua.Linux,Ga=!!(Ra&&Ra.indexOf(`Chrome`)>=0),Ka=!!(Ra&&Ra.indexOf(`Firefox`)>=0),qa=!!(!Ga&&Ra&&Ra.indexOf(`Safari`)>=0),Ja=!!(Ra&&Ra.indexOf(`Edg/`)>=0);Ra&&Ra.indexOf(`Android`);var Ya=ja.performance&&typeof ja.performance.now==`function`,Xa=class e{_highResolution;_startTime;_stopTime;static create(t=!0){return new e(t)}constructor(e){this._highResolution=Ya&&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?ja.performance.now():Date.now()}},Za;(function(e){e.None=()=>_a.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)=>ma(...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 ro({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 ro({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 ro({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 ga;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 ro({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 ro({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 ga,t(e,n)}r(void 0);let i=e(e=>r(e));return ha(()=>{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 ro(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})(Za||={});var Qa=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 Xa(!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}}},$a=-1,eo=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)}}},to=class e{value;static create(){return new e(Error().stack??``)}constructor(e){this.value=e}print(){console.warn(this.value.split(`
10
+ `).slice(2).join(`
11
+ `))}},no=class{callback;callbackThis;stack;subscription=new ya;constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n}invoke(e){this.callback.call(this.callbackThis,e)}},ro=class{_options;_leakageMon;_perfMon;_disposed=!1;_event;_deliveryQueue;_listeners;constructor(e){this._options=e,this._leakageMon=$a>0||this._options?.leakWarningThreshold?new eo(this._options?.leakWarningThreshold??$a):void 0,this._perfMon=this._options?._profName?new Qa(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 xa,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`),_a.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=to.create(),i=this._leakageMon.check(a,this._listeners.size+1));let o=new no(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 ga?n.add(c):Array.isArray(n)&&n.push(c),c},this._event}fire(e){if(this._listeners){this._deliveryQueue||=new ao(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}},io=class{_onListenerError;_queue=new xa;constructor(e=$i){this._onListenerError=e}get size(){return this._queue.size}push(e,t,n){this._queue.push(new oo(e,t,n))}clear(e){let t=new xa;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)}}}},ao=class extends io{clear(e){this._queue.clear()}},oo=class{emitter;listener;event;constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}},so=class extends ro{_isPaused=0;_eventQueue=new xa;_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))}},co;if(ja.vscode!==void 0&&ja.vscode.process!==void 0){let e=ja.vscode.process;co={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else co=typeof process<`u`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return Pa?`win32`:Fa?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};var U=co.cwd,lo=co.env,uo=co.platform;co.arch;var fo=65,po=97,mo=90,ho=122,go=46,_o=47,vo=92,yo=58,bo=63,xo=class extends Error{code;constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function So(e,t){if(typeof e!=`object`||!e)throw new xo(t,`Object`,e)}function Co(e,t){if(typeof e!=`string`)throw new xo(t,`string`,e)}var wo=uo===`win32`;function W(e){return e===_o||e===vo}function To(e){return e===_o}function Eo(e){return e>=fo&&e<=mo||e>=po&&e<=ho}function Do(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=_o;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==go||i.charCodeAt(i.length-2)!==go){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===go&&s!==-1?++s:s=-1}return i}function Oo(e,t){So(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${t.ext||``}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var ko={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],Co(a,`path`),a.length===0)continue}else t.length===0?a=U():(a=lo[`=${t}`]||U(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===vo)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)W(u)&&(s=1,l=!0);else if(W(u)){if(l=!0,W(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!W(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&W(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!W(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else Eo(u)&&a.charCodeAt(1)===yo&&(c=a.slice(0,2),s=2,o>2&&W(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=Do(n,!r,`\\`,W),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){Co(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return To(a)?`\\`:e;if(W(a)){if(i=!0,W(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!W(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&W(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!W(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else Eo(a)&&e.charCodeAt(1)===yo&&(r=e.slice(0,2),n=2,t>2&&W(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?Do(e.slice(n),!i,`\\`,W):``;return o.length===0&&!i&&(o=`.`),o.length>0&&W(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){Co(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return W(n)||t>2&&Eo(n)&&e.charCodeAt(1)===yo&&W(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];Co(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&W(n.charCodeAt(0))){++i;let e=n.length;e>1&&W(n.charCodeAt(1))&&(++i,e>2&&(W(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&W(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return ko.normalize(t)},relative(e,t){if(Co(e,`from`),Co(t,`to`),e===t)return``;let n=ko.resolve(e),r=ko.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0;for(;i<e.length&&e.charCodeAt(i)===vo;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===vo;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===vo;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===vo;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===vo&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===vo)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===vo?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===vo)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===vo&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=ko.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===vo){if(t.charCodeAt(1)===vo){let e=t.charCodeAt(2);if(e!==bo&&e!==go)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Eo(t.charCodeAt(0))&&t.charCodeAt(1)===yo&&t.charCodeAt(2)===vo)return`\\\\?\\${t}`;return e},dirname(e){Co(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return W(i)?e:`.`;if(W(i)){if(n=r=1,W(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!W(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&W(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!W(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else Eo(i)&&e.charCodeAt(1)===yo&&(n=t>2&&W(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(W(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&Co(t,`ext`),Co(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&Eo(e.charCodeAt(0))&&e.charCodeAt(1)===yo&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(W(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(W(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Co(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===yo&&Eo(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(W(t)){if(!a){r=s+1;break}}else i===-1&&(a=!1,i=s+1),t===go?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:Oo.bind(null,`\\`),parse(e){Co(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return W(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(W(i)){if(r=1,W(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!W(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&W(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!W(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(Eo(i)&&e.charCodeAt(1)===yo){if(n<=2)return t.root=t.dir=e,t;if(r=2,W(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),W(i)){if(!c){o=l+1;break}}else s===-1&&(c=!1,s=l+1),i===go?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1);return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},Ao=(()=>{if(wo){let e=/\\/g;return()=>{let t=U().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>U()})(),jo={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ao();Co(i,`path`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===_o)}return t=Do(t,!n,`/`,To),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(Co(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===_o,n=e.charCodeAt(e.length-1)===_o;return e=Do(e,!t,`/`,To),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return Co(e,`path`),e.length>0&&e.charCodeAt(0)===_o},join(...e){if(e.length===0)return`.`;let t;for(let n=0;n<e.length;++n){let r=e[n];Co(r,`path`),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?`.`:jo.normalize(t)},relative(e,t){if(Co(e,`from`),Co(t,`to`),e===t||(e=jo.resolve(e),t=jo.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===_o&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===_o)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===_o?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===_o)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(Co(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===_o,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===_o){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&Co(t,`ext`),Co(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===_o){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===_o){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Co(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e.charCodeAt(o);if(s===_o){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1),s===go?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:Oo.bind(null,`/`),parse(e){Co(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===_o,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===_o){if(!s){a=c+1;break}}else o===-1&&(s=!1,o=c+1),t===go?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};jo.win32=ko.win32=ko,jo.posix=ko.posix=jo,wo?ko.normalize:jo.normalize,wo?ko.isAbsolute:jo.isAbsolute,wo?ko.join:jo.join,wo?ko.resolve:jo.resolve,wo?ko.relative:jo.relative,wo?ko.dirname:jo.dirname,wo?ko.basename:jo.basename,wo?ko.extname:jo.extname,wo?ko.format:jo.format,wo?ko.parse:jo.parse,wo?ko.toNamespacedPath:jo.toNamespacedPath,wo?ko.sep:jo.sep,wo?ko.delimiter:jo.delimiter;var Mo=class{fn;lastCache=void 0;lastArgKey=void 0;constructor(e){this.fn=e}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}},No=class{executor;_didRun=!1;_value;_error;constructor(e){this.executor=e}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e instanceof Error?e:Error(String(e))}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Po(e){return!e||typeof e!=`string`||e.trim().length===0}(class e{confusableDictionary;static ambiguousCharacterData=new No(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}`));static cache=new Mo(t=>{function n(e){let t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function r(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function i(e,t){if(!e)return t;let n=new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let a=this.ambiguousCharacterData.value,o=t.filter(e=>!e.startsWith(`_`)&&e in a);o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)});static getInstance(t){return e.cache.get(Array.from(t))}static _locales=new No(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)));static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}});function Fo(e){return typeof e==`string`}function Io(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Lo(e){return e===void 0}function Ro(e){return Lo(e)||e===null}function zo(e){return typeof e==`function`}function Bo(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)Vo(e[r],t[r])}function Vo(e,t){if(Fo(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(zo(t)){try{if(e instanceof t)return}catch{}if(!Ro(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw Error(`argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true`)}}var Ho=/^\w[\w\d+.-]*$/,Uo=/^\//,Wo=/^\/\//;function Go(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ho.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!Uo.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(Wo.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function Ko(e,t){return!e&&!t?`file`:e}function qo(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==Yo&&(t=Yo+t):t=Yo}return t}var Jo=``,Yo=`/`,Xo=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Zo=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`:!1}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||Jo,this.authority=e.authority||Jo,this.path=e.path||Jo,this.query=e.query||Jo,this.fragment=e.fragment||Jo):(this.scheme=Ko(e,a),this.authority=t||Jo,this.path=qo(this.scheme,n||Jo),this.query=r||Jo,this.fragment=i||Jo,Go(this,a))}get fsPath(){return rs(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=Jo),n===void 0?n=this.authority:n===null&&(n=Jo),r===void 0?r=this.path:r===null&&(r=Jo),i===void 0?i=this.query:i===null&&(i=Jo),a===void 0?a=this.fragment:a===null&&(a=Jo),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new $o(t,n,r,i,a)}static parse(e,t=!1){let n=Xo.exec(e);return n?new $o(n[2]||Jo,ss(n[4]||Jo),ss(n[5]||Jo),ss(n[7]||Jo),ss(n[9]||Jo),t):new $o(Jo,Jo,Jo,Jo,Jo)}static file(e){let t=Jo;if(Pa&&(e=e.replace(/\\/g,Yo)),e[0]===Yo&&e[1]===Yo){let n=e.indexOf(Yo,2);n===-1?(t=e.substring(2),e=Yo):(t=e.substring(2,n),e=e.substring(n)||Yo)}return new $o(`file`,t,e,Jo,Jo)}static from(e){let t=new $o(e.scheme,e.authority,e.path,e.query,e.fragment);return Go(t,!0),t}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=Pa&&t.scheme===`file`?e.file(ko.join(rs(t,!0),...n)).path:jo.join(t.path,...n),t.with({path:r})}toString(e=!1){return is(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new $o(t);return e._formatted=t.external,e._fsPath=t._sep===Qo?t.fsPath:null,e}}},Qo=Pa?1:void 0,$o=class extends Zo{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=rs(this,!1),this._fsPath}toString(e=!1){return e?is(this,!0):(this._formatted||=is(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Qo),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},es={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function ts(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=es[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function ns(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=es[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function rs(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,Pa&&(n=n.replace(/\//g,`\\`)),n}function is(e,t){let n=t?ns:ts,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=Yo,r+=Yo),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:ts(c,!1,!1)),r}function as(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+as(e.substr(3)):e}}var os=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ss(e){return e.match(os)?e.replace(os,e=>as(e)):e}var cs=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))}},ls=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)}},us;(function(){us=typeof requestIdleCallback!=`function`||typeof cancelIdleCallback!=`function`?e=>{Ha(()=>{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 ds=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=us(()=>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}},fs;(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})(fs||={}),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 ro,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 Za.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 ps=class{key;data;incoming=new Map;outgoing=new Map;constructor(e,t){this.key=e,this.data=t}},ms=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 ps(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(`
12
+ `)}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)}}},hs=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)}},gs=!1,_s=class extends Error{constructor(e){super(`cyclic dependency between services`),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}},vs=class e{_services;_strict;_parent;_enableTracing;_globalGraph;_globalGraphImplicitDependency;constructor(e=new hs,t=!1,n,r=gs){this._services=e,this._strict=t,this._parent=n,this._enableTracing=r,this._services.set(Yi,this),this._globalGraph=r?n?._globalGraph??new ms(e=>e):void 0}createChild(t){return new e(t,this._strict,this,this._enableTracing)}invokeFunction(e,...t){let n=ys.traceInvocation(this._enableTracing,e),r=!1;try{return e({get:e=>{if(r)throw ia(`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 qi?(n=ys.traceCreation(this._enableTracing,e.ctor),r=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=ys.traceCreation(this._enableTracing,e),r=this._createInstance(e,t,n)),n.stop(),r}_createInstance(e,t=[],n){let r=Ji.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 qi)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 qi?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 ms(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 _s(r);for(let n of Ji.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 qi){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 _s(r);break}for(let{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof qi){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 qi)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 ds(()=>{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 xa,o.set(t,e)),(t,n,r)=>ha(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)}},ys=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(`
13
+ `).slice(3,4).join(`
14
+ `)):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(`
15
+ `)}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(`
16
+ `))}},bs=class extends Error{status;constructor(e,t){super(t),this.status=e,this.name=`HttpError`}},xs=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 bs(i.status,e)}return a}},Ss=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;baselines;tasks;changes;code;constructor(e){this.options=e,this.client=new xs(e),this.project={get:()=>this.client.get(`project`)},this.baselines={list:()=>this.client.get(`baselines`),delete:(e,t,n)=>this.client.delete(`namespaces/${encodeURIComponent(e)}/baselines?${Cs({file:t,version:n})}`)},this.tasks={list:()=>this.client.get(`tasks`),detail:e=>this.client.get(`tasks/${encodeURIComponent(e)}`),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?${Cs({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?${Cs({ref:e})}`),diff:(e,t,n)=>this.client.get(`code-changes/diff?${Cs({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 Cs(e){return new URLSearchParams(e).toString()}var ws=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 bs&&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}},Ts=Zi(`baselineService`),Es=class extends _a{sdk=new Ss({requestLib:Ss.fetchToRequestLib(fetch)});changed=this._register(new ro);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 ws(()=>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()}},Ds=Zi(`tasksService`),Os=class extends _a{sdk=new Ss({requestLib:Ss.fetchToRequestLib(fetch)});changed=this._register(new ro);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 ws(()=>this.publish()));detail=this._register(new ws(()=>this.publish()));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.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()}},ks=Zi(`baselineChangeService`),As=class extends _a{sdk=new Ss({requestLib:Ss.fetchToRequestLib(fetch)});changed=this._register(new ro);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 ws(()=>this.publish()));changes=this._register(new ws(()=>this.publish()));get project(){return this.projectResource.state}get baselineChanges(){return this.changes.state}async refresh(e){let t=++this.refreshRequest;if(e&&this.changes.key!==e&&this.changes.clear(),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||t!==this.refreshRequest)return;let n=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(n,()=>this.sdk.changes.list(n))}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()}},js=Zi(`codeDiffService`),Ms=class extends _a{sdk=new Ss({requestLib:Ss.fetchToRequestLib(fetch)});changed=this._register(new ro);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 ws(()=>this.publish()));changes=this._register(new ws(()=>this.publish()));diff=this._register(new ws(()=>this.publish()));get project(){return this.projectResource.state}get codeChanges(){return this.changes.state}get codeDiff(){return this.diff.state}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=JSON.stringify([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=``){let n=++this.refreshRequest,r=this.diffRequest;if(e&&this.changes.key!==e&&(this.changes.clear(),this.diff.clear()),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||n!==this.refreshRequest)return;let i=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(i,()=>this.sdk.code.list(i)),!(this.disposed||n!==this.refreshRequest||r!==this.diffRequest)&&await this.refreshDiff(t)}async reviewCode(e,t,n,r){let i=this.refreshRequest,a=this.diffRequest,o=this.codeDiff.data?.path||``;await this.sdk.code.review(e,t,n,r),!(this.disposed||i!==this.refreshRequest)&&(await this.changes.load(e,()=>this.sdk.code.list(e),!0),!(this.disposed||i!==this.refreshRequest||a!==this.diffRequest)&&await this.refreshDiff(o))}dispose(){this.disposed=!0,super.dispose()}},Ns={baseline:`/baselines`,tasks:`/tasks`,changes:`/baseline-changes`,code:`/code-changes`};function Ps(e){return Ns[e]}var Fs=[{index:!0,loader:({request:e})=>{let t=new URL(e.url).searchParams,n=t.get(`workspace`)===`code`?Ns.code:t.get(`workspace`)===`changes`?Ns.changes:t.get(`view`)===`baseline`?Ns.baseline:t.get(`task`)?`${Ns.tasks}/${encodeURIComponent(t.get(`task`))}`:Ns.tasks;for(let e of[`workspace`,`view`,`task`])t.delete(e);let r=t.toString();return Re(n+(r?`?`+r:``))}},{path:`baselines`,handle:`baseline`},{path:`tasks`,handle:`tasks`},{path:`tasks/:taskId`,handle:`tasks`},{path:`baseline-changes`,handle:`changes`},{path:`code-changes`,handle:`code`},{path:`*`,handle:`not-found`}];function Is(e){if(e.page===`not-found`)return``;let t=e.page===`tasks`&&e.taskId?`${Ns.tasks}/${encodeURIComponent(e.taskId)}`:Ns[e.page],n=new URLSearchParams;for(let[t,r]of Object.entries({namespace:e.namespace,case:e.caseId,file:e.file,ref:e.ref}))r&&n.set(t,r);return t+(n.size?`?${n}`:``)}function Ls(){let e=ir(),t=Tr(),n=lr(),r=sr(),i=t.at(-1)?.handle??`not-found`,a=Ki(Ts),o=Ki(Ds),s=Ki(ks),c=Ki(js),l=Hi(i===`tasks`?o:i===`changes`?s:i===`code`?c:a),[u,d]=(0,f.useState)(()=>{let t=new URLSearchParams(e.search),r={};for(let e of[`baseline`,`tasks`,`changes`,`code`,`not-found`])r[e]={page:e,taskId:``,namespace:``,caseId:``,file:``,ref:``};return r[i]={page:i,taskId:n.taskId??``,namespace:t.get(`namespace`)??``,caseId:t.get(`case`)??``,file:t.get(`file`)??``,ref:t.get(`ref`)??``},r}),p=(0,f.useRef)(u);p.current=u;let m=u[i],h=l.loading,g=Is(m);return(0,f.useEffect)(()=>{!l.loading&&g&&p.current[i]===m&&e.pathname+e.search!==g&&r(g,{replace:!0})},[h,g,m,i,l,e.pathname,e.search,r]),{...m,page:i,loading:h,pathname:g.split(`?`)[0]||e.pathname,href:g||e.pathname,navigate:r,update(e,t=!0){let n={...p.current[i]};for(let[t,r]of Object.entries(e)){let e=t===`case`?`caseId`:t;[`taskId`,`namespace`,`caseId`,`file`,`ref`].includes(e)&&(n[e]=r??``)}p.current={...p.current,[i]:n},d(p.current);let a=Is(n);a&&r(a,{replace:t})}}}var Rs=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&&j(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&&j(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 j(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,j(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}}}})),zs=o(((e,t)=>{t.exports=Rs()})),Bs=o((e=>{var t=zs(),n=d(),r=zi();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 j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?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?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],L=-1;function te(e){return{current:e}}function R(e){0>L||(e.current=ee[L],ee[L]=null,L--)}function z(e,t){L++,ee[L]=e.current,e.current=t}var ne=te(null),re=te(null),ie=te(null),ae=te(null);function oe(e,t){switch(z(ie,t),z(re,e),z(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}R(ne),z(ne,e)}function se(){R(ne),R(re),R(ie)}function ce(e){e.memoizedState!==null&&z(ae,e);var t=ne.current,n=Hd(t,e.type);t!==n&&(z(re,e),z(ne,n))}function le(e){re.current===e&&(R(ne),R(re)),ae.current===e&&(R(ae),Qf._currentValue=I)}var ue,de;function fe(e){if(ue===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ue=t&&t[1]||``,de=-1<e.stack.indexOf(`
17
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
18
+ `+ue+e+de}var pe=!1;function me(e,t){if(!e||pe)return``;pe=!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(`
19
+ `),l=s.split(`
20
+ `);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=`
21
+ `+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{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
22
+ Error generating stack: `+e.message+`
23
+ `+e.stack}}var _e=Object.prototype.hasOwnProperty,ve=t.unstable_scheduleCallback,ye=t.unstable_cancelCallback,be=t.unstable_shouldYield,xe=t.unstable_requestPaint,Se=t.unstable_now,Ce=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Te=t.unstable_UserBlockingPriority,Ee=t.unstable_NormalPriority,De=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,ke=t.log,Ae=t.unstable_setDisableYieldValue,je=null,Me=null;function Ne(e){if(typeof ke==`function`&&Ae(e),Me&&typeof Me.setStrictMode==`function`)try{Me.setStrictMode(je,e)}catch{}}var Pe=Math.clz32?Math.clz32:Le,Fe=Math.log,Ie=Math.LN2;function Le(e){return e>>>=0,e===0?32:31-(Fe(e)/Ie|0)|0}var Re=256,ze=262144,Be=4194304;function Ve(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 He(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=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(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 Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(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 Ge(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(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-Pe(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&&Ye(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ye(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Xe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ze(e,t){var n=t&-t;return n=n&42?1:Qe(n),(n&(e.suspendedLanes|t))===0?n:0}function Qe(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 $e(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function et(){var e=F.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function tt(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var nt=Math.random().toString(36).slice(2),rt=`__reactFiber$`+nt,it=`__reactProps$`+nt,at=`__reactContainer$`+nt,ot=`__reactEvents$`+nt,st=`__reactListeners$`+nt,ct=`__reactHandles$`+nt,lt=`__reactResources$`+nt,ut=`__reactMarker$`+nt;function dt(e){delete e[rt],delete e[it],delete e[ot],delete e[st],delete e[ct]}function ft(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[rt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[rt]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=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]*$`),St={},Ct={};function wt(e){return _e.call(Ct,e)?!0:_e.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(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 Et(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 Dt(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 Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(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 jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(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 Pt=/[\n"\\]/g;function Ft(e){return e.replace(Pt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function It(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=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Rt(e,o,Ot(n)):Rt(e,o,Ot(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=``+Ot(s):e.removeAttribute(`name`)}function Lt(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)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(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),jt(e)}function Rt(e,t,n){t===`number`&&Nt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function zt(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=``+Ot(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 Bt(e,t,n){t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Ot(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(N(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=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 Wt(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||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(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&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(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 qt=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`]]),Jt=/^[\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 Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[it]||null;a:switch(e=t.stateNode,t.type){case`input`:if(It(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="`+Ft(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[it]||null;if(!a)throw Error(i(90));It(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&&Mt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(bu(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[it]||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 on=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.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 dn=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(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)?mn:hn,this.isPropagationStopped=hn,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=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=p({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=p({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,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!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(p({},wn,{dataTransfer:0})),Dn=gn(p({},yn,{relatedTarget:0})),On=gn(p({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(p({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(p({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(p({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(p({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(p({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(p({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(p({},wn,{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})),Vn=gn(p({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=Td(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){vd(e,0)}function or(e){if(Mt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(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(!_e.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(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=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(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=Nt(e.document)}return t}function Tr(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 Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Nt(r)||(r=Dr,`selectionStart`in r&&Tr(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}),kr&&br(kr,r)||(kr=r,r=Td(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`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(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=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)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[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&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(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-Pe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<pu)throw pu=0,Y=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(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 ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(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 ci(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 li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ne.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ai(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return ui(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=ai(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=ai(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=ai(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=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:ge(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:ge(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Pe(r)-1;r&=~(1<<i),n+=1;var a=32-Pe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Pe(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,B=!1,Mi=null,Ni=!1,Pi=Error(i(519));function Fi(e){throw Hi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Pi}function Ii(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rt]=e,t[it]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Lt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Vt(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||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Fi(e,!0)}function Li(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Ni=!1;return;case 27:case 3:Ni=!0;return;default:Ai=Ai.return}}function Ri(e){if(e!==Ai)return!1;if(!B)return Li(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&ji&&Fi(e),Li(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=uf(e)}else t===27?(t=ji,Zd(e.type)?(e=lf,lf=null,ji=e):ji=t):ji=Ai?cf(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,B=!1}function Vi(){var e=Mi;return e!==null&&($l===null?$l=e:$l.push.apply($l,e),Mi=null),e}function Hi(e){Mi===null?Mi=[e]:Mi.push(e)}var Ui=te(null),V=null,Wi=null;function Gi(e,t,n){z(Ui,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Ui.current,R(Ui)}function qi(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 Ji(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),qi(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),qi(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 Yi(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;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ae.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){V=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return ea(V,e)}function $i(e,t){return V===null&&Zi(e),ea(e,t)}function ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(i(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ta=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()})}},na=t.unstable_scheduleCallback,ra=t.unstable_NormalPriority,ia={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function aa(){return{controller:new ta,data:new Map,refCount:0}}function oa(e){e.refCount--,e.refCount===0&&na(ra,function(){e.controller.abort()})}var sa=null,ca=0,la=0,ua=null;function da(e,t){if(sa===null){var n=sa=[];ca=0,la=ud(),ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ca++,t.then(fa,fa),t}function fa(){if(--ca===0&&sa!==null){ua!==null&&(ua.status=`fulfilled`);var e=sa;sa=null,la=0,ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pa(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 ma=P.S;P.S=function(e,t){nu=Se(),typeof t==`object`&&t&&typeof t.then==`function`&&da(e,t),ma!==null&&ma(e,t)};var ha=te(null);function ga(){var e=ha.current;return e===null?zl.pooledCache:e}function _a(e,t){t===null?z(ha,ha.current):z(ha,t.pool)}function va(){var e=ga();return e===null?null:{parent:ia._currentValue,pool:e}}var ya=Error(i(460)),ba=Error(i(474)),xa=Error(i(542)),Sa={then:function(){}};function H(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ca(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=zl,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,Da(e),e}throw Ta=t,ya}}function wa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ta=e,ya):e}}var Ta=null;function Ea(){if(Ta===null)throw Error(i(459));var e=Ta;return Ta=null,e}function Da(e){if(e===ya||e===xa)throw Error(i(483))}var Oa=null,ka=0;function Aa(e){var t=ka;return ka+=1,Oa===null&&(Oa=[]),Ca(Oa,e,t)}function ja(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ma(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 Na(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=si(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=di(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&&wa(i)===t.type)?(t=a(t,n.props),ja(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),ja(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=pi(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=ui(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=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=li(t.type,t.key,t.props,null,e.mode,n),ja(n,t),n.return=e,n;case g:return t=pi(t,e.mode,n),t.return=e,t;case E:return t=wa(t),f(e,t,n)}if(N(t)||A(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Aa(t),n);if(t.$$typeof===x)return f(e,$i(e,t),n);Ma(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=wa(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Aa(n),r);if(n.$$typeof===x)return p(e,t,$i(e,n),r);Ma(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=wa(r),m(e,t,n,r,i)}if(N(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,Aa(r),i);if(r.$$typeof===x)return m(e,t,n,$i(t,r),i);Ma(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),B&&Ti(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 B&&Ti(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)}),B&&Ti(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),B&&Ti(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 B&&Ti(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)}),B&&Ti(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&&wa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ja(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),ja(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=pi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=wa(o),b(e,r,o,c)}if(N(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,Aa(o),c);if(o.$$typeof===x)return b(e,r,$i(e,o),c);Ma(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=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ka=0;var i=b(e,t,n,r);return Oa=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Pa=Na(!0),Fa=Na(!1),Ia=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ra(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Va(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,Xe(e,n)}}function Ha(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 Ua=!1;function Wa(){if(Ua){var e=ua;if(e!==null)throw e}}function Ga(e,t,n,r){Ua=!1;var i=e.updateQueue;Ia=!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?(J&f)===f:(r&f)===f){f!==0&&f===la&&(Ua=!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:Ia=!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),ql|=o,e.lanes=o,e.memoizedState=d}}function Ka(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ka(n[e],t)}var Ja=te(null),Ya=te(0);function Xa(e,t){e=Gl,z(Ya,e),z(Ja,t),Gl=e|t.baseLanes}function Za(){z(Ya,Gl),z(Ja,Ja.current)}function Qa(){Gl=Ya.current,R(Ja),R(Ya)}var $a=te(null),eo=null;function to(e){var t=e.alternate;z(oo,oo.current&1),z($a,e),eo===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(eo=e)}function no(e){z(oo,oo.current),z($a,e),eo===null&&(eo=e)}function ro(e){e.tag===22?(z(oo,oo.current),z($a,e),eo===null&&(eo=e)):io(e)}function io(){z(oo,oo.current),z($a,$a.current)}function ao(e){R($a),eo===e&&(eo=null),R(oo)}var oo=te(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(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 co=0,U=null,lo=null,uo=null,fo=!1,po=!1,mo=!1,ho=0,go=0,_o=null,vo=0;function yo(){throw Error(i(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function xo(e,t,n,r,i,a){return co=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ls:Rs,mo=!1,a=n(r,i),mo=!1,po&&(a=Co(t,n,r,i)),So(e),a}function So(e){P.H=Is;var t=lo!==null&&lo.next!==null;if(co=0,uo=lo=U=null,fo=!1,go=0,_o=null,t)throw Error(i(300));e===null||nc||(e=e.dependencies,e!==null&&Xi(e)&&(nc=!0))}function Co(e,t,n,r){U=e;var a=0;do{if(po&&(_o=null),go=0,po=!1,25<=a)throw Error(i(301));if(a+=1,uo=lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Bs,o=t(n,r)}while(po);return o}function wo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(lo===null?null:lo.memoizedState)!==e&&(U.flags|=1024),t}function W(){var e=ho!==0;return ho=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}co=0,uo=lo=U=null,po=!1,go=ho=0,_o=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return uo===null?U.memoizedState=uo=e:uo=uo.next=e,uo}function Oo(){if(lo===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=lo.next;var t=uo===null?U.memoizedState:uo.next;if(t!==null)uo=t,lo=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));lo=e,e={memoizedState:lo.memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},uo===null?U.memoizedState=uo=e:uo=uo.next=e}return uo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=go;return go+=1,_o===null&&(_o=[]),e=Ca(_o,e,t),t=U,(uo===null?t.memoizedState:uo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===x)return Qi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.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=ko(),U.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 No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),lo,e)}function Fo(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?(co&f)===f:(J&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===la&&(d=!0);else if((co&p)===p){u=u.next,p===la&&(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,U.lanes|=p,ql|=p;f=u.action,mo&&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,U.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(nc=!0,d&&(n=ua,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 Io(e){var t=Oo(),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);yr(o,t.memoizedState)||(nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=U,a=Oo(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((lo||a).memoizedState,n);if(s&&(a.memoizedState=n,nc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||uo!==null&&uo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),zl===null)throw Error(i(349));o||co&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=ko(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ho(e){var t=ei(e,2);t!==null&&X(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),mo){Ne(!0);try{n()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,lo,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(Ns(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)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(B){var n=zl.formState;if(n!==null){a:{var r=U;if(B){if(ji){b:{for(var i=ji,a=Ni;i.nodeType!==8;)if(!a||(i=cf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=cf(i.nextSibling),r=i.data===`F!`;break a}}Fi(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,U,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,U,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),lo,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===ya?xa:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=lo;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=ko(),U.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 is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();U.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;lo!==null&&r!==null&&bo(r,lo.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(U.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=ko(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(K&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(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 ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bo(t,r[1]))return r[0];if(r=e(),mo){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||co&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),U.lanes|=e,ql|=e,n)}function ys(e,t,n,r){return yr(n,t)?n:Ja.current===null?!(co&42)||co&1073741824&&!(J&261930)?(nc=!0,e.memoizedState=n):(e=hu(),U.lanes|=e,ql|=e,t):(e=vs(e,n,r),yr(e,t)||(nc=!0),e)}function bs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ms(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,pa(c,r),mu(e)):js(e,t,r,mu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,I,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},mu())}function Ts(){return Qi(Qf)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=za(n);var r=Ba(t,e,n);r!==null&&(X(r,t,n),Va(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=$r(e,t,n,r),n!==null&&(X(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,mu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(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,yr(s,o))return Qr(e,t,i,0),zl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return X(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&X(t,e,2)}function Ns(e){var t=e.alternate;return e===U||t!==null&&t===U}function Ps(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var Is={readContext:Qi,use:jo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Is.useEffectEvent=yo;var Ls={readContext:Qi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(mo){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(mo){Ne(!0);try{n(t)}finally{Ne(!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=ks.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,U,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=Do();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),zl===null)throw Error(i(349));J&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=zl.identifierPrefix;if(B){var n=wi,r=Ci;n=(r&~(1<<32-Pe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,U)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Qi,use:jo,useCallback:gs,useContext:Qi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),lo.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),lo,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var Bs={readContext:Qi,use:jo,useCallback:gs,useContext:Qi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return lo===null?vs(n,e,t):ys(n,lo.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return lo===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,lo,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Bs.useEffectEvent=us;function Vs(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 Hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=za(r);i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(X(t,e,r),Va(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(X(t,e,r),Va(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=za(n);r.tag=2,t!=null&&(r.callback=t),t=Ba(e,r,n),t!==null&&(X(t,e,n),Va(t,e,n))}};function Us(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?!br(n,r)||!br(i,a):!0}function Ws(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&&Hs.enqueueReplaceState(t,t.state,null)}function Gs(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 Ks(e){qr(e)}function qs(e){console.error(e)}function Js(e){qr(e)}function Ys(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Xs(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 Zs(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Ys(e,t)},n}function Qs(e){return e=za(e),e.tag=3,e}function $s(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(){Xs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Xs(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 ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=$a.current,n!==null){switch(n.tag){case 31:case 13:return eo===null?Eu():n.alternate===null&&Kl===0&&(Kl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===Sa?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)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Eu(),!1}if(B)return t=$a.current,t===null?(r!==Pi&&(t=Error(i(423),{cause:r}),Hi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=Zs(e.stateNode,r,a),Ha(e,a),Kl!==4&&(Kl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Pi&&(e=Error(i(422),{cause:r}),Hi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),Ql===null?Ql=[o]:Ql.push(o),Kl!==4&&(Kl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Zs(n.stateNode,r,e),Ha(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=Qs(a),$s(a,e,n,r),Ha(n,a),!1}n=n.return}while(n!==null);return!1}var tc=Error(i(461)),nc=!1;function rc(e,t,n,r){t.child=e===null?Fa(t,null,n,r):Pa(t,e.child,n,r)}function ic(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 Zi(t),r=xo(e,t,n,o,a,i),s=W(),e!==null&&!nc?(To(e,t,i),Oc(e,t,i)):(B&&s&&Di(t),t.flags|=1,rc(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,oc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!kc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Oc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(nc=!1,t.pendingProps=r=a,kc(e,i))e.flags&131072&&(nc=!0);else return t.lanes=e.lanes,Oc(e,t,i)}}return mc(e,t,n,r,i)}function sc(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 lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_a(t,a===null?null:a.cachePool),a===null?Za():Xa(t,a),ro(t);else return r=t.lanes=536870912,lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&_a(t,null),Za(),io(t)):(_a(t,a.cachePool),Xa(t,a),io(t),t.memoizedState=null);return rc(e,t,i,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lc(e,t,n,r,i){var a=ga();return a=a===null?null:{parent:ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&_a(t,null),Za(),ro(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function uc(e,t){return t=Cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dc(e,t,n){return Pa(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,ao(t),t.memoizedState=null,e}function fc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=uc(t,r),t.lanes=536870912,cc(null,e);if(no(t),(e=ji)?(e=rf(e,Ni),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(no(t),a){if(t.flags&256)t.flags&=-257,t=dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(nc||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,nc||a){if(r=zl,r!==null&&(s=Ze(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),X(r,e,s),tc;Eu(),t=dc(e,t,n)}else e=o.treeContext,ji=cf(s.nextSibling),Ai=t,B=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=uc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pc(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 mc(e,t,n,r,i){return Zi(t),n=xo(e,t,n,r,void 0,i),r=W(),e!==null&&!nc?(To(e,t,i),Oc(e,t,i)):(B&&r&&Di(t),t.flags|=1,rc(e,t,n,i),t.child)}function hc(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=Co(t,r,n,i),So(e),r=W(),e!==null&&!nc?(To(e,t,a),Oc(e,t,a)):(B&&r&&Di(t),t.flags|=1,rc(e,t,n,a),t.child)}function gc(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Hs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},La(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Vs(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&&Hs.enqueueReplaceState(a,a.state,null),Ga(t,r,a,i),Wa(),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=Gs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=Qi(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)&&Ws(t,a,r,o),Ia=!1;var f=t.memoizedState;a.state=f,Ga(t,r,a,i),Wa(),l=t.memoizedState,s||f!==l||Ia?(typeof d==`function`&&(Vs(t,n,d,r),l=t.memoizedState),(c=Ia||Us(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,Ra(e,t),o=t.memoizedProps,u=Gs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=Qi(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)&&Ws(t,a,r,c),Ia=!1,f=t.memoizedState,a.state=f,Ga(t,r,a,i),Wa();var p=t.memoizedState;o!==d||f!==p||Ia||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Vs(t,n,s,r),p=t.memoizedState),(u=Ia||Us(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(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,pc(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=Pa(t,e.child,null,i),t.child=Pa(t,null,n,i)):rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Oc(e,t,i),e}function _c(e,t,n,r){return Bi(),t.flags|=256,rc(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:va()}}function bc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Xl),e}function xc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(oo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(B){if(a?to(t):io(t),(e=ji)?(e=rf(e,Ni),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(io(t),a=t.mode,c=Cc({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(null,r)):(to(t),Sc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(to(t),t.flags&=-257,t=wc(e,t,n)):t.memoizedState===null?(io(t),c=r.fallback,a=t.mode,r=Cc({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Pa(t,e.child,null,n),r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,t=cc(null,r)):(io(t),t.child=e.child,t.flags|=128,t=null);else if(to(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=wc(e,t,n)}else if(nc||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,nc||s){if(s=zl,s!==null&&(r=Ze(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),X(s,e,r),tc;af(c)||Eu(),t=wc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=cf(c.nextSibling),Ai=t,B=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=Sc(t,r.children),t.flags|=4096);return t}return a?(io(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,cc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=yc(n):(a=c.cachePool,a===null?a=va():(l=ia._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(e.child,r)):(to(t),n=e.child,e=n.sibling,n=si(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 Sc(e,t){return t=Cc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Cc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function wc(e,t,n){return Pa(t,e.child,null,n),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function Ec(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 Dc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=oo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,z(oo,o),rc(e,t,r,n),r=B?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tc(e,n,t);else if(e.tag===19)Tc(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&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ec(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&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ec(t,!0,n,null,a,r);break;case`together`:Ec(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Oc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Yi(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=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Xi(e)))}function Ac(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Gi(t,ia,e.memoizedState.cache),Bi();break;case 27:case 5:ce(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,no(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(to(t),e=Oc(e,t,n),e===null?null:e.sibling):xc(e,t,n):(to(t),t.flags|=128,null);to(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Yi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Dc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(oo,oo.current),r)break;return null;case 22:return t.lanes=0,sc(e,t,n,t.pendingProps);case 24:Gi(t,ia,e.memoizedState.cache)}return Oc(e,t,n)}function jc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)nc=!0;else{if(!kc(e,n)&&!(t.flags&128))return nc=!1,Ac(e,t,n);nc=!!(e.flags&131072)}}else nc=!1,B&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Gs(e,r),t.tag=1,t=gc(null,t,e,r,n)):(t.tag=0,t=mc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=ic(null,t,e,r,n);break a}if(a===T){t.tag=14,t=ac(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Gs(r,t.pendingProps),gc(e,t,r,a,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ra(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ia,r),r!==o.cache&&Ji(t,[ia],n,!0),Wa(),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=_c(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),Hi(a),t=_c(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(ji=cf(e.firstChild),Ai=t,B=!0,Mi=null,Ni=!0,n=Fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=Oc(e,t,n);break a}rc(e,t,r,n)}t=t.child}return t;case 26:return pc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Bd(ie.current).createElement(n),r[rt]=t,r[it]=e,Pd(r,n,e),gt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&B&&(r=t.stateNode=ff(t.type,t.pendingProps,ie.current),Ai=t,Ni=!0,a=ji,Zd(t.type)?(lf=a,ji=cf(r.firstChild)):ji=a),rc(e,t,t.pendingProps.children,n),pc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=ji)&&(r=tf(r,t.type,t.pendingProps,Ni),r===null?a=!1:(t.stateNode=r,Ai=t,ji=cf(r.firstChild),Ni=!1,a=!0)),a||Fi(t)),ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=xo(e,t,wo,null,null,n),Qf._currentValue=a),pc(e,t),rc(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=ji)&&(n=nf(n,t.pendingProps,Ni),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Fi(t)),null;case 13:return xc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pa(t,null,r,n):rc(e,t,r,n),t.child;case 11:return ic(e,t,t.type,t.pendingProps,n);case 7:return rc(e,t,t.pendingProps,n),t.child;case 8:return rc(e,t,t.pendingProps.children,n),t.child;case 12:return rc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),rc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Qi(a),r=r(a),t.flags|=1,rc(e,t,r,n),t.child;case 14:return ac(e,t,t.type,t.pendingProps,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 19:return Dc(e,t,n);case 31:return fc(e,t,n);case 22:return sc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ia),e===null?(a=ga(),a===null&&(a=zl,o=aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},La(t),Gi(t,ia,a)):((e.lanes&n)!==0&&(Ra(e,t),Ga(t,null,null,n),Wa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Gi(t,ia,r),r!==a.cache&&Ji(t,[ia],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Gi(t,ia,r))),rc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Mc(e){e.flags|=4}function Nc(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(wu())e.flags|=8192;else throw Ta=Sa,ba}}else e.flags&=-16777217}function Pc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(wu())e.flags|=8192;else throw Ta=Sa,ba}}function Fc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ge(),e.lanes|=t,Zl|=t)}function Ic(e,t){if(!B)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 Lc(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 Rc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lc(t),null;case 1:return Lc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ia),se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?Mc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Lc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Mc(t),o===null?(Lc(t),Nc(t,a,null,r,n)):(Lc(t),Pc(t,o))):o?o===e.memoizedState?(Lc(t),t.flags&=-16777217):(Mc(t),Lc(t),Pc(t,o)):(e=e.memoizedProps,e!==r&&Mc(t),Lc(t),Nc(t,a,e,r,n)),null;case 27:if(le(t),n=ie.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}e=ne.current,Ri(t)?Ii(t,e):(e=ff(a,r,n),t.stateNode=e,Mc(t))}return Lc(t),null;case 5:if(le(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}if(o=ne.current,Ri(t))Ii(t,o);else{var s=Bd(ie.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[rt]=t,o[it]=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(Pd(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&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ie.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Fi(t,!0)}else e=Bd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(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[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ao(t),t):(ao(t),null);if(t.flags&128)throw Error(i(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ri(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[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ao(t),t):(ao(t),null)}return ao(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),Fc(t,t.updateQueue),Lc(t),null);case 4:return se(),e===null&&xd(t.stateNode.containerInfo),Lc(t),null;case 10:return Ki(t.type),Lc(t),null;case 19:if(R(oo),r=t.memoizedState,r===null)return Lc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Ic(r,!1);else{if(Kl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=so(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return z(oo,oo.current&1|2),B&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Se()>ru&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304)}}else{if(!a){if(e=so(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return Lc(t),null}else 2*Se()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Ic(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?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Se(),e.sibling=null,n=oo.current,z(oo,a?n&1|2:n&1),B&&Ti(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(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&&R(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ia),Lc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ia),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(ao(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(oo),null;case 4:return se(),null;case 10:return Ki(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&R(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ia),null;case 25:return null;default:return null}}function Bc(e,t){switch(Oi(t),t.tag){case 3:Ki(ia),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:R(oo);break;case 10:Ki(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&R(ha);break;case 24:Ki(ia)}}function Vc(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){Q(t,t.return,e)}}function Hc(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){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qa(t,n)}catch(t){Q(e,e.return,t)}}}function Wc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function Gc(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){Q(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(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){Q(e,t,n)}else n.current=null}}function qc(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){Q(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[it]=t}catch(t){Q(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(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&&Zd(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 Zc(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=Xt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(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&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[rt]=e,t[it]=n}catch(t){Q(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,Rd=sp,e=wr(e),Tr(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(zd={focusedElem:e,selectionRange:n},sp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,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=Gs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Q(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(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,il=e;break}il=t.return}}function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Vc(5,n);break;case 1:if(bl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Q(n,n.return,e)}else{var i=Gs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Q(n,n.return,e)}}}r&64&&Uc(n),r&512&&Gc(n,n.return);break;case 3:if(bl(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{qa(e,t)}catch(e){Q(n,n.return,e)}}break;case 27:t===null&&r&4&&$c(n);case 26:case 5:bl(e,n),t===null&&r&4&&qc(n),r&512&&Gc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||el,!r){t=t!==null&&t.memoizedState!==null||tl,i=el;var a=tl;el=r,(tl=t)&&!a?Sl(e,n,!!(n.subtreeFlags&8772)):bl(e,n),el=i,tl=a}break;case 30:break;default:bl(e,n)}}function sl(e){var t=e.alternate;t!==null&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(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 cl=null,ll=!1;function G(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Me&&typeof Me.onCommitFiberUnmount==`function`)try{Me.onCommitFiberUnmount(je,n)}catch{}switch(n.tag){case 26:tl||Kc(n,t),G(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tl||Kc(n,t);var r=cl,i=ll;Zd(n.type)&&(cl=n.stateNode,ll=!1),G(e,t,n),pf(n.stateNode),cl=r,ll=i;break;case 5:tl||Kc(n,t);case 6:if(r=cl,i=ll,cl=null,G(e,t,n),cl=r,ll=i,cl!==null){if(ll)try{(cl.nodeType===9?cl.body:cl.nodeName===`HTML`?cl.ownerDocument.body:cl).removeChild(n.stateNode)}catch(e){Q(n,t,e)}else try{cl.removeChild(n.stateNode)}catch(e){Q(n,t,e)}}break;case 18:cl!==null&&(ll?(e=cl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(cl,n.stateNode));break;case 4:r=cl,i=ll,cl=n.stateNode.containerInfo,ll=!0,G(e,t,n),cl=r,ll=i;break;case 0:case 11:case 14:case 15:Hc(2,n,t),tl||Hc(4,n,t),G(e,t,n);break;case 1:tl||(Kc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Wc(n,t,r)),G(e,t,n);break;case 21:G(e,t,n);break;case 22:tl=(r=tl)||n.memoizedState!==null,G(e,t,n),tl=r;break;default:G(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Q(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Q(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function hl(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(Zd(c.type)){cl=c.stateNode,ll=!1;break a}break;case 5:cl=c.stateNode,ll=!1;break a;case 3:case 4:cl=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(cl===null)throw Error(i(160));ul(o,s,a),cl=null,ll=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Hc(3,e,e.return),Vc(3,e),Hc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(tl||n===null||Kc(n,n.return)),r&64&&el&&(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=gl;if(hl(t,e),vl(e),r&512&&(tl||n===null||Kc(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[ut]||o[rt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Vf(`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),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`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),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[rt]=e,gt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Jc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(tl||n===null||Kc(n,n.return)),n!==null&&r&4&&Jc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(tl||n===null||Kc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Q(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Jc(e,a,n===null?a:n.memoizedProps)),r&1024&&(nl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Q(e,e.return,t)}}break;case 3:if(Bf=null,a=gl,gl=gf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Q(e,e.return,t)}nl&&(nl=!1,yl(e));break;case 4:r=gl,gl=gf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=Se()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=el,d=tl;if(el=u||a,tl=d||l,hl(t,e),tl=d,el=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||el||tl||xl(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){Q(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Q(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Q(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,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Yc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Qc(e,Xc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),Qc(e,Xc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Zc(e,Xc(e),s);break;default:throw Error(i(161))}}catch(t){Q(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ol(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hc(4,t,t.return),xl(t);break;case 1:Kc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Wc(t,t.return,n),xl(t);break;case 27:pf(t.stateNode);case 26:case 5:Kc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(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:Sl(i,a,n),Vc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Q(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++)Ka(c[i],s)}catch(e){Q(r,r.return,e)}}n&&o&64&&Uc(a),Gc(a,a.return);break;case 27:$c(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&qc(a),Gc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Gc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(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&&oa(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oa(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Vc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(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&&oa(e)));break;case 12:if(i&2048){Tl(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){Q(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(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:Dl(a,o,s,c,i),Vc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(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:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Gf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=gf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(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 Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Hc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;il!==null;){var n=il;switch(n.tag){case 0:case 11:case 15:Hc(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:oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,il=r;else a:for(n=e;il!==null;){r=il;var i=r.sibling,a=r.return;if(sl(r),r===n){il=null;break a}if(i!==null){i.return=a,il=i;break a}il=a}}}var Ll={getCacheForType:function(e){var t=Qi(ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ia).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,K=0,zl=null,q=null,J=0,Bl=0,Vl=null,Hl=!1,Ul=!1,Wl=!1,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=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,Y=null;function mu(){return K&2&&J!==0?J&-J:P.T===null?et():ud()}function hu(){if(Xl===0){if(!(J&536870912)||B){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),Xl=e}else Xl=536870912}return e=$a.current,e!==null&&(e.flags|=32),Xl}function X(e,t,n){(e===zl&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,J,Xl,!1)),qe(e,n),K&2&&e===zl||(e===zl&&(!(K&2)&&(Jl|=n),Kl===4&&yu(e,J,Xl,!1)),nd(e))}function gu(e,t,n){if(K&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ue(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Ul&&!r&&yu(e,t,0,!1);break}if(n=e.current.alternate,o&&!vu(n))a=Du(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&&(Su(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Wl&&!l){c.errorRecoveryDisabledLanes|=o,Jl|=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){Su(e,0),yu(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:yu(r,t,Xl,!Hl);break a;case 2:$l=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=tu+300-Se(),10<a)){if(yu(r,t,Xl,!Hl),He(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=Kd(_u.bind(null,r,n,$l,iu,eu,t,Xl,Jl,Zl,Hl,o,`Throttled`,-0,0),a);break a}_u(r,n,$l,iu,eu,t,Xl,Jl,Zl,Hl,o,null,-0,0)}break}}while(1);nd(e)}function _u(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:Xt},jl(t,a,d);var m=(a&62914560)===a?tu-Se():(a&4194048)===a?nu-Se():0;if(m=qf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function vu(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(!yr(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 yu(e,t,n,r){t&=~Yl,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Pe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ye(e,n,t)}function bu(){return K&6?!0:(rd(0,!1),!1)}function xu(){if(q!==null){if(Bl===0)var e=q.return;else e=q,Wi=V=null,Eo(e),Oa=null,ka=0,e=q;for(;e!==null;)Bc(e.alternate,e),e=e.return;q=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,xu(),zl=e,q=n=si(e.current,null),J=t,Bl=0,Vl=null,Hl=!1,Ul=Ue(e,t),Wl=!1,Zl=Xl=Yl=Jl=ql=Kl=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-Pe(r),a=1<<i;t|=e[i],r&=~a}return Gl=t,Zr(),n}function Cu(e,t){U=null,P.H=Is,t===ya||t===xa?(t=Ea(),Bl=3):t===ba?(t=Ea(),Bl=4):Bl=t===tc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Vl=t,q===null&&(Kl=1,Ys(e,hi(t,e.current)))}function wu(){var e=$a.current;return e===null?!0:(J&4194048)===J?eo===null:(J&62914560)===J||J&536870912?e===eo:!1}function Tu(){var e=P.H;return P.H=Is,e===null?Is:e}function Z(){var e=P.A;return P.A=Ll,e}function Eu(){Kl=4,Hl||(J&4194048)!==J&&$a.current!==null||(Ul=!0),!(ql&134217727)&&!(Jl&134217727)||zl===null||yu(zl,J,Xl,!1)}function Du(e,t,n){var r=K;K|=2;var i=Tu(),a=Z();(zl!==e||J!==t)&&(iu=null,Su(e,t)),t=!1;var o=Kl;a:do try{if(Bl!==0&&q!==null){var s=q,c=Vl;switch(Bl){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:$a.current===null&&(t=!0);var l=Bl;if(Bl=0,Vl=null,Nu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Bl,Bl=0,Vl=null,Nu(e,s,c,l)}}Ou(),o=Kl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=V=null,K=r,P.H=i,P.A=a,q===null&&(zl=null,J=0,Zr()),o}function Ou(){for(;q!==null;)ju(q)}function ku(e,t){var n=K;K|=2;var r=Tu(),a=Z();zl!==e||J!==t?(iu=null,ru=Se()+500,Su(e,t)):Ul=Ue(e,t);a:do try{if(Bl!==0&&q!==null){t=q;var o=Vl;b:switch(Bl){case 1:Bl=0,Vl=null,Nu(e,t,o,1);break;case 2:case 9:if(H(o)){Bl=0,Vl=null,Mu(t);break}t=function(){Bl!==2&&Bl!==9||zl!==e||(Bl=7),nd(e)},o.then(t,t);break a;case 3:Bl=7;break a;case 4:Bl=5;break a;case 7:H(o)?(Bl=0,Vl=null,Mu(t)):(Bl=0,Vl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Wf(s):c.stateNode.complete){Bl=0,Vl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Pu(u))}break b}}Bl=0,Vl=null,Nu(e,t,o,5);break;case 6:Bl=0,Vl=null,Nu(e,t,o,6);break;case 8:xu(),Kl=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Cu(e,t)}while(1);return Wi=V=null,P.H=r,P.A=a,K=n,q===null?(zl=null,J=0,Zr(),Kl):0}function Au(){for(;q!==null&&!be();)ju(q)}function ju(e){var t=jc(e.alternate,e,Gl);e.memoizedProps=e.pendingProps,t===null?Pu(e):q=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=hc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:Eo(t);default:Bc(n,t),t=q=ci(t,Gl),t=jc(n,t,Gl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):q=t}function Nu(e,t,n,r){Wi=V=null,Eo(t),Oa=null,ka=0;var i=t.return;try{if(ec(e,i,t,n,J)){Kl=1,Ys(e,hi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;Kl=1,Ys(e,hi(n,e.current)),q=null;return}t.flags&32768?(B||r===1?e=!0:Ul||J&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=$a.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,Hl);return}e=t.return;var n=Rc(t.alternate,t,Gl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Kl===0&&(Kl=5)}function Fu(e,t){do{var n=zc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);Kl=6,q=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ou!==0);if(K&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,Je(e,n,o,s,c,l),e===zl&&(q=zl=null,J=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,Yu(Ee,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=K,K|=4;try{al(e,t,n)}finally{K=s,F.p=a,P.T=r}}ou=1,Lu(),Ru(),zu()}}function Lu(){if(ou===1){ou=0;var e=su,t=cu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=K;K|=4;try{_l(t,e);var a=zd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(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 _=Sr(s,h),v=Sr(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}}sp=!!Rd,zd=Rd=null}finally{K=i,F.p=r,P.T=n}}e.current=t,ou=2}}function Ru(){if(ou===2){ou=0;var e=su,t=cu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=K;K|=4;try{ol(e,t.alternate,t)}finally{K=i,F.p=r,P.T=n}}ou=3}}function zu(){if(ou===4||ou===3){ou=0,xe();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(au=null),$e(n),t=t.stateNode,Me&&typeof Me.onCommitFiberRoot==`function`)try{Me.onCommitFiberRoot(je,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.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{P.T=t,F.p=i}}lu&3&&Vu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===Y?pu++:(pu=0,Y=e):pu=0,rd(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oa(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=$e(lu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,K&6)throw Error(i(331));var c=K;if(K|=4,Pl(o.current),El(o,o.current,s,n),K=c,rd(0,!1),Me&&typeof Me.onPostCommitFiberRoot==`function`)try{Me.onPostCommitFiberRoot(je,o)}catch{}return!0}finally{F.p=a,P.T=r,Bu(e,t)}}function Uu(e,t,n){t=hi(n,t),t=Zs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(qe(e,2),nd(e))}function Q(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(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=hi(n,e),n=Qs(2),r=Ba(t,n,2),r!==null&&($s(n,r,t,e),qe(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;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)||(Wl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(J&n)===n&&(Kl===4||Kl===3&&(J&62914560)===J&&300>Se()-tu?!(K&2)&&Su(e,0):Yl|=n,Zl===J&&(Zl=0)),nd(e)}function Ku(e,t){t===0&&(t=Ge()),e=ei(e,t),e!==null&&(qe(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(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),Ku(e,n)}function Yu(e,t){return ve(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;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-Pe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=J,a=He(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=Se(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}ou!==0&&ou!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Pe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=We(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zl,n=J,n=He(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ye(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ue(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ye(r),$e(n)){case 2:case 8:n=Te;break;case 32:n=Ee;break;case 268435456:n=Oe;break;default:n=Ee}return r=sd.bind(null,e),n=ve(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ye(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=J;return r=He(e,e===zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),od(e,Se()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Vu())return null;gu(e,t,!0)}function ld(){Yd(function(){K&6?ve(we,id):ad()})}function ud(){if(td===0){var e=la;e===0&&(e=Re,Re<<=1,!(Re&261888)&&(Re=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function fd(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 pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[it]||null).action),o=r.submitter;o&&(t=(t=o[it]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Gr.length;md++){var hd=Gr[md];Kr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(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){qr(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){qr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[ot];n===void 0&&(n=t[ot]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,_t.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!sn||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 Cd(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=ft(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}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;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=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}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=an(m,p),g!=null&&d.push(wd(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!==Zt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[at]))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?ft(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=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:mt(l),h=u==null?c:mt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ft(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=Ed,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&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Rt(c,`number`,c.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)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 Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Td(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(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=an(e,n),i!=null&&r.unshift(wd(e,i,a)),i=an(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(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=an(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
24
+ `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(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=Yt(``+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`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`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=Yt(``+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`:$(`beforetoggle`,e),$(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(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=qt.get(n)||n,Tt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Gt(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`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.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[it]||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,``):Tt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`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:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`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:Md(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`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:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in $(`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:Md(e,t,s,c,n,null)}Vt(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:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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:Md(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(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)||Md(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&&Md(e,t,p,m,r,f)}}It(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)||Md(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&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(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:Md(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&&Md(e,t,s,a,r,o)}Bt(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:Md(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:Md(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)&&Md(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:Md(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(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||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(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||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){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&&Id(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&&Id(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 Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(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 Ud(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 Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(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),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(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 ef(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`:ef(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(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[ut])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=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(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 cf(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 lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(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 ff(e,t,n){switch(t=Bd(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 pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=F.d;F.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ht(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);gt(c),Pd(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,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=ie.current)?gf(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=Af(n.href),n=ht(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=Af(n.href);var o=ht(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(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.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},mf.set(e,n),o||Nf(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=Pf(n),n=ht(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 Af(e){return`href="`+Ft(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(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}),Pd(t,`link`,n),gt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Ft(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(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`),gt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,gt(a),a):(r=n,(a=mf.get(o))&&(r=p({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Pd(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,Lf(r,n.precedence,e));return t.instance}function Lf(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 Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,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[ut]||a[rt]||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 Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(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=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.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=Jf.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 Qf={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function $f(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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(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 ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},La(a),e}function tp(e){return e?(e=ri,e):ri}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ba(e,r,t),n!==null&&(X(n,e,t),Va(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&X(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=mu();t=Qe(t);var n=ei(e,t);n!==null&&X(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,up(e,t,n,r)}finally{F.p=a,P.T=i}}function lp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,up(e,t,n,r)}finally{F.p=a,P.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Pe(o);s.entanglements[1]|=c,o&=~c}nd(a),!(K&6)&&(ru=Se()+500,rd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&X(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Qt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ft(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 fp=e,null}function mp(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(Ce()){case we:return 2;case Te:return 8;case Ee:case De:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(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=pt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ft(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,tt(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,tt(e.priority,function(){op(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 Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=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(pp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.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[it]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){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 Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,mu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[at]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));F.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 Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{je=zp.inject(Rp),Me=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ks,s=qs,c=Js;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=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[at]=t.current,xd(e),new Fp(t)}})),Vs=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=Bs()})),Hs=Object.prototype.hasOwnProperty;function Us(e,t){return Ws(e,t,new Set)}function Ws(e,t,n){if(Ro(e))return e;let r=t(e);if(r!==void 0)return r;if(Array.isArray(e)){let r=[];for(let i of e)r.push(Ws(i,t,n));return r}if(Io(e)){if(n.has(e))throw Error(`Cannot clone recursive data-structure`);n.add(e);let r={};for(let i in e)Hs.call(e,i)&&(r[i]=Ws(e[i],t,n));return n.delete(e),r}return e}function Gs(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Gs(e[n],t[n]))return!1}else{let i=[];for(r in e)i.push(r);i.sort();let a=[];for(r in t)a.push(r);if(a.sort(),!Gs(i,a))return!1;for(n=0;n<i.length;n++)if(!Gs(e[i[n]],t[i[n]]))return!1}return!0}function Ks(e,t){let n=Object.create(null);return!e||!t||Object.keys(t).forEach(r=>{let i=e[r],a=t[r];Gs(i,a)||(n[r]=a)}),n}var qs=Zi(`commandService`),Js=new class{_commands=new Map;_onDidRegisterCommand=new ro;onDidRegisterCommand=this._onDidRegisterCommand.event;registerCommand(e,t){if(!e)throw Error(`invalid command`);if(typeof e==`string`){if(!t)throw Error(`invalid command`);return this.registerCommand({id:e,handler:t})}if(e.description){let t=[];for(let n of e.description.args)t.push(n.constraint);let n=e.handler;e.handler=function(e,...r){return Bo(r,t),n(e,...r)}}let{id:n}=e,r=this._commands.get(n);r||(r=new xa,this._commands.set(n,r));let i=r.unshift(e),a=ha(()=>{i(),this._commands.get(n)?.isEmpty()&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),a}registerCommandAlias(e,t){return Js.registerCommand(e,(e,...n)=>e.get(qs).executeCommand(t,...n))}getCommand(e){let t=this._commands.get(e);if(t&&!t.isEmpty())return sa.first(t)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let n=this.getCommand(t);n&&e.set(t,n)}return e}};Js.registerCommand(`noop`,()=>{});function Ys(...e){switch(e.length){case 1:return H(`contextkey.scanner.hint.didYouMean1`,`Did you mean {0}?`,e[0]);case 2:return H(`contextkey.scanner.hint.didYouMean2`,`Did you mean {0} or {1}?`,e[0],e[1]);case 3:return H(`contextkey.scanner.hint.didYouMean3`,`Did you mean {0}, {1} or {2}?`,e[0],e[1],e[2]);default:return}}var Xs=H(`contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote`,`Did you forget to open or close the quote?`),Zs=H(`contextkey.scanner.hint.didYouForgetToEscapeSlash`,`Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.`),Qs=class e{static getLexeme(e){switch(e.type){case 0:return`(`;case 1:return`)`;case 2:return`!`;case 3:return e.isTripleEq?`===`:`==`;case 4:return e.isTripleEq?`!==`:`!=`;case 5:return`<`;case 6:return`<=`;case 7:return`>=`;case 8:return`>=`;case 9:return`=~`;case 10:return e.lexeme;case 11:return`true`;case 12:return`false`;case 13:return`in`;case 14:return`not`;case 15:return`&&`;case 16:return`||`;case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return`EOF`;default:throw ia(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static _regexFlags=new Set([`i`,`g`,`s`,`m`,`y`,`u`].map(e=>e.charCodeAt(0)));static _keywords=new Map([[`not`,14],[`in`,13],[`false`,12],[`true`,11]]);_input=``;_start=0;_current=0;_tokens=[];_errors=[];get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(Ys(`==`,`=~`));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Ys(`&&`));break;case 124:this._match(124)?this._addToken(16):this._error(Ys(`||`));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy;_string(){this.stringRe.lastIndex=this._start;let t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;let n=this._input.substring(this._start,this._current),r=e._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(Xs):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let t=this._current,n=!1,r=!1;for(;;){if(t>=this._input.length){this._current=t,this._error(Zs);return}let e=this._input.charCodeAt(t);if(n)n=!1;else if(e===47&&!r){t++;break}else e===91?r=!0:e===92?n=!0:e===93&&(r=!1);t++}for(;t<this._input.length&&e._regexFlags.has(this._input.charCodeAt(t));)t++;this._current=t;let i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}},$s=new Map;$s.set(`false`,!1),$s.set(`true`,!0),$s.set(`isMac`,Fa),$s.set(`isLinux`,Ia),$s.set(`isWindows`,Pa),$s.set(`isWeb`,La),$s.set(`isMacNative`,Fa&&!La),$s.set(`isEdge`,Ja),$s.set(`isFirefox`,Ka),$s.set(`isChrome`,Ga),$s.set(`isSafari`,qa);var ec=Object.prototype.hasOwnProperty,tc={regexParsingWithErrorRecovery:!0},nc=H(`contextkey.parser.error.emptyString`,`Empty context key expression`),rc=H(`contextkey.parser.error.emptyString.hint`,`Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.`),ic=H(`contextkey.parser.error.noInAfterNot`,`'in' after 'not'.`),ac=H(`contextkey.parser.error.closingParenthesis`,`closing parenthesis ')'`),oc=H(`contextkey.parser.error.unexpectedToken`,`Unexpected token`),sc=H(`contextkey.parser.error.unexpectedToken.hint`,`Did you forget to put && or || before the token?`),cc=H(`contextkey.parser.error.unexpectedEOF`,`Unexpected end of expression`),lc=H(`contextkey.parser.error.unexpectedEOF.hint`,`Did you forget to put a context key?`),uc=class e{_config;static _parseError=Error();_scanner=new Qs;_tokens=[];_current=0;_parsingErrors=[];get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=tc){this._config=e}parse(t){if(t===``)this._parsingErrors.push({message:nc,offset:0,lexeme:``,additionalInfo:rc});else{this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let t=this._peek(),n=t.type===17?sc:void 0;throw this._parsingErrors.push({message:oc,offset:t.offset,lexeme:Qs.getLexeme(t),additionalInfo:n}),e._parseError}return t}catch(t){if(t!==e._parseError)throw t;return}}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:dc.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:dc.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),mc.INSTANCE;case 12:return this._advance(),hc.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,ac),e?.negate()}case 17:return this._advance(),xc.create(e.lexeme);default:throw this._errExpectedButGot(`KEY | true | false | '(' expression ')'`,e)}}return this._primary()}_primary(){let t=this._peek();switch(t.type){case 11:return this._advance(),dc.true();case 12:return this._advance(),dc.false();case 0:{this._advance();let e=this._expr();return this._consume(1,ac),e}case 17:{let e=t.lexeme;if(this._advance(),this._matchOne(9)){let t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),t.type!==10)throw this._errExpectedButGot(`REGEX`,t);let n=t.lexeme,r=n.lastIndexOf(`/`),i=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1)),a;try{a=new RegExp(n.substring(1,r),i)}catch{throw this._errExpectedButGot(`REGEX`,t)}return Dc.create(e,a)}switch(t.type){case 10:case 19:{let n=[t.lexeme];this._advance();let r=this._peek(),i=0;for(let e=0;e<t.lexeme.length;e++)t.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let e=0;e<r.lexeme.length;e++)r.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--}if(i<0)break;n.push(Qs.getLexeme(r)),this._advance(),r=this._peek()}let a=n.join(``),o=a.lastIndexOf(`/`),s=o===a.length-1?void 0:this._removeFlagsGY(a.substring(o+1)),c;try{c=new RegExp(a.substring(1,o),s)}catch{throw this._errExpectedButGot(`REGEX`,t)}return dc.regex(e,c)}case 18:{let n=t.lexeme;this._advance();let r=null;if(!Po(n)){let e=n.indexOf(`/`),i=n.lastIndexOf(`/`);if(e!==i&&e>=0){let a=n.slice(e+1,i),o=n[i+1]===`i`?`i`:``;try{r=new RegExp(a,o)}catch{throw this._errExpectedButGot(`REGEX`,t)}}}if(r===null)throw this._errExpectedButGot(`REGEX`,t);return Dc.create(e,r)}default:throw this._errExpectedButGot(`REGEX`,this._peek())}}if(this._matchOne(14)){this._consume(13,ic);let t=this._value();return dc.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();let t=this._value();if(this._previous().type===18)return dc.equals(e,t);switch(t){case`true`:return dc.has(e);case`false`:return dc.not(e);default:return dc.equals(e,t)}}case 4:{this._advance();let t=this._value();if(this._previous().type===18)return dc.notEquals(e,t);switch(t){case`true`:return dc.not(e);case`false`:return dc.has(e);default:return dc.notEquals(e,t)}}case 5:return this._advance(),Tc.create(e,this._value());case 6:return this._advance(),Ec.create(e,this._value());case 7:return this._advance(),Cc.create(e,this._value());case 8:return this._advance(),wc.create(e,this._value());case 13:return this._advance(),dc.in(e,this._value());default:return dc.has(e)}}case 20:throw this._parsingErrors.push({message:cc,offset:t.offset,lexeme:``,additionalInfo:lc}),e._parseError;default:throw this._errExpectedButGot(`true | false | KEY
25
+ | KEY '=~' REGEX
26
+ | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),`true`;case 12:return this._advance(),`false`;case 13:return this._advance(),`in`;default:return``}}_flagsGYRe=/g|y/g;_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,``)}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(t,n,r){let i=H(`contextkey.parser.error.expectedButGot`,`Expected: {0}
27
+ Received: '{1}'.`,t,Qs.getLexeme(n)),a=n.offset,o=Qs.getLexeme(n);return this._parsingErrors.push({message:i,offset:a,lexeme:o,additionalInfo:r}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},dc=class{static false(){return mc.INSTANCE}static true(){return hc.INSTANCE}static has(e){return gc.create(e)}static equals(e,t){return _c.create(e,t)}static notEquals(e,t){return bc.create(e,t)}static regex(e,t){return Dc.create(e,t)}static in(e,t){return vc.create(e,t)}static notIn(e,t){return yc.create(e,t)}static not(e){return xc.create(e)}static and(...e){return Ac.create(e,null,!0)}static or(...e){return jc.create(e,null,!0)}static greater(e,t){return Cc.create(e,t)}static greaterEquals(e,t){return wc.create(e,t)}static smaller(e,t){return Tc.create(e,t)}static smallerEquals(e,t){return Ec.create(e,t)}static _parser=new uc({regexParsingWithErrorRecovery:!1});static deserialize(e){if(e!=null)return this._parser.parse(e)}};function fc(e,t){let n=e?e.substituteConstants():void 0,r=t?t.substituteConstants():void 0;return!n&&!r?!0:!n||!r?!1:n.equals(r)}function pc(e,t){return e.cmp(t)}var mc=class e{static INSTANCE=new e;type=0;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return`false`}keys(){return[]}map(e){return this}negate(){return hc.INSTANCE}},hc=class e{static INSTANCE=new e;type=1;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return`true`}keys(){return[]}map(e){return this}negate(){return mc.INSTANCE}},gc=class e{key;negated;static create(t,n=null){let r=$s.get(t);return typeof r==`boolean`?r?hc.INSTANCE:mc.INSTANCE:new e(t,n)}type=2;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?Pc(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=$s.get(this.key);return typeof e==`boolean`?e?hc.INSTANCE:mc.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||=xc.create(this.key,this),this.negated}},_c=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?gc.create(t,r):xc.create(t,r);let i=$s.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?hc.INSTANCE:mc.INSTANCE:new e(t,n,r)}type=4;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=$s.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?hc.INSTANCE:mc.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||=bc.create(this.key,this.value,this),this.negated}},vc=class e{key;valueKey;static create(t,n){return new e(t,n)}type=10;negated=null;constructor(e,t){this.key=e,this.valueKey=t}cmp(e){return e.type===this.type?Fc(this.key,this.valueKey,e.key,e.valueKey):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n==`string`&&typeof t==`object`&&t?ec.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||=yc.create(this.key,this.valueKey),this.negated}},yc=class e{key;valueKey;static create(t,n){return new e(t,n)}type=11;_negated;constructor(e,t){this.key=e,this.valueKey=t,this._negated=vc.create(e,t)}cmp(e){return e.type===this.type?this._negated.cmp(e._negated):this.type-e.type}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}},bc=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?xc.create(t,r):gc.create(t,r);let i=$s.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?mc.INSTANCE:hc.INSTANCE:new e(t,n,r)}type=5;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=$s.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?mc.INSTANCE:hc.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||=_c.create(this.key,this.value,this),this.negated}},xc=class e{key;negated;static create(t,n=null){let r=$s.get(t);return typeof r==`boolean`?r?mc.INSTANCE:hc.INSTANCE:new e(t,n)}type=3;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?Pc(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=$s.get(this.key);return typeof e==`boolean`?e?mc.INSTANCE:hc.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||=gc.create(this.key,this),this.negated}};function Sc(e,t){if(typeof e==`string`){let t=parseFloat(e);isNaN(t)||(e=t)}return typeof e==`string`||typeof e==`number`?t(e):mc.INSTANCE}var Cc=class e{key;value;negated;static create(t,n,r=null){return Sc(n,n=>new e(t,n,r))}type=12;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||=Ec.create(this.key,this.value,this),this.negated}},wc=class e{key;value;negated;static create(t,n,r=null){return Sc(n,n=>new e(t,n,r))}type=13;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||=Tc.create(this.key,this.value,this),this.negated}},Tc=class e{key;value;negated;static create(t,n,r=null){return Sc(n,n=>new e(t,n,r))}type=14;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||=wc.create(this.key,this.value,this),this.negated}},Ec=class e{key;value;negated;static create(t,n,r=null){return Sc(n,n=>new e(t,n,r))}type=15;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?Fc(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||=Cc.create(this.key,this.value,this),this.negated}},Dc=class e{key;regexp;static create(t,n){return new e(t,n)}type=7;negated=null;constructor(e,t){this.key=e,this.regexp=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return t<n?-1:+(t>n)}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:`/invalid/`;return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||=Oc.create(this),this.negated}},Oc=class e{_actual;static create(t){return new e(t)}type=8;constructor(e){this._actual=e}cmp(e){return e.type===this.type?this._actual.cmp(e._actual):this.type-e.type}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(t){return new e(this._actual.map(t))}negate(){return this._actual}};function kc(e){let t=null;for(let n=0,r=e.length;n<r;n++){let r=e[n].substituteConstants();if(e[n]!==r&&t===null){t=[];for(let r=0;r<n;r++)t[r]=e[r]}t!==null&&(t[n]=r)}return t===null?e:t}var Ac=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=6;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=pc(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=kc(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(t,n,r){let i=[],a=!1;for(let e of t)if(e){if(e.type===1)a=!0;else{if(e.type===0)return mc.INSTANCE;e.type===6?i.push(...e.expr):i.push(e)}}if(i.length===0&&a)return hc.INSTANCE;if(i.length!==0){if(i.length===1)return i[0];i.sort(pc);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];for(;i.length>1;){let t=i[i.length-1];if(t.type!==9)break;i.pop();let n=i.pop(),a=i.length===0,o=jc.create(t.expr.map(t=>e.create([t,n],null,r)),null,a);o&&(i.push(o),i.sort(pc))}if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return mc.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` && `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=jc.create(e,this,!0)}return this.negated}},jc=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=9;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=pc(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=kc(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(t,n,r){let i=[],a=!1;if(t){for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n){if(n.type===0)a=!0;else{if(n.type===1)return hc.INSTANCE;n.type===9?i=i.concat(n.expr):i.push(n)}}}if(i.length===0&&a)return mc.INSTANCE;i.sort(pc)}if(i.length!==0){if(i.length===1)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return hc.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` || `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){let n=t.shift(),r=t.shift(),i=[];for(let e of Rc(n))for(let t of Rc(r))i.push(Ac.create([e,t],null,!1));t.unshift(e.create(i,null,!1))}this.negated=e.create(t,this,!0)}return this.negated}},Mc=class e extends gc{static _info=[];static all(){return e._info.values()}_defaultValue;constructor(t,n,r){super(t,null),this._defaultValue=n,typeof r==`object`?e._info.push({...r,key:t}):r!==!0&&e._info.push({key:t,description:r,type:n==null?void 0:typeof n})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return _c.create(this.key,e)}notEqualsTo(e){return bc.create(this.key,e)}},Nc=Zi(`contextKeyService`);function Pc(e,t){return e<t?-1:+(e>t)}function Fc(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:+(t>r)}function Ic(e,t){if(e.type===0||t.type===1)return!0;if(e.type===9)return t.type===9&&Lc(e.expr,t.expr);if(t.type===9){for(let n of t.expr)if(Ic(e,n))return!0;return!1}if(e.type===6){if(t.type===6)return Lc(t.expr,e.expr);for(let n of e.expr)if(Ic(n,t))return!0;return!1}return e.equals(t)}function Lc(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e[n].cmp(t[r]);if(i<0)return!1;i===0&&n++,r++}return n===e.length}function Rc(e){return e.type===9?e.expr:[e]}var zc=`data-keybinding-context`,Bc=class{_parent;_value;_id;constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){let t=this._value[e];return t===void 0&&this._parent?this._parent.getValue(e):t}updateParent(e){this._parent=e}collectAllValues(){let e=this._parent?this._parent.collectAllValues():Object.create(null);return e={...e,...this._value},delete e._contextId,e}},Vc=class e extends Bc{static INSTANCE=new e;constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}collectAllValues(){return Object.create(null)}},Hc=class{_service;_key;_defaultValue;constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){this._defaultValue===void 0?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},Uc=class{key;constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}},Wc=class{keys;constructor(e){this.keys=e}affectsSome(e){for(let t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}},Gc=class{events;constructor(e){this.events=e}affectsSome(e){for(let t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}};function Kc(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}var qc=class{_isDisposed;_myContextId;_onDidChangeContext=new so({merge:e=>new Gc(e)});onDidChangeContext=this._onDidChangeContext.event;constructor(e){this._isDisposed=!1,this._myContextId=e}get contextId(){return this._myContextId}createKey(e,t){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Hc(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Yc(this,e)}createOverlay(e=sa.empty()){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Zc(this,e)}contextMatchesRules(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);let t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;let n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Uc(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Uc(e))}getContext(e){return this._isDisposed?Vc.INSTANCE:this.getContextValuesContainer(Qc(e))}},Jc=class extends qc{_lastContextId;_contexts=new Map;_toDispose=new ga;constructor(){super(0),this._lastContextId=0;let e=new Bc(this._myContextId,null);this._contexts.set(this._myContextId,e)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?Vc.INSTANCE:this._contexts.get(e)||Vc.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ContextKeyService has been disposed`);let t=++this._lastContextId;return this._contexts.set(t,new Bc(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}updateParent(e){throw Error(`Cannot update parent of root ContextKeyService`)}},Yc=class extends qc{_parent;_domNode;_parentChangeListener=new va;constructor(e,t){if(super(e.createChildContext()),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(zc)){let e=``;this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(`, `)),console.error(`Element already has context attribute${e?`: `+e:``}`)}this._domNode.setAttribute(zc,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let t=this._parent.getContextValuesContainer(this._myContextId).value;Kc(e,t)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||=(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(zc),!0)}getContextValuesContainer(e){return this._isDisposed?Vc.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ScopedContextKeyService has been disposed`);return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}updateParent(e){if(this._parent===e)return;let t=this._parent.getContextValuesContainer(this._myContextId),n=t.collectAllValues();this._parent=e,this._updateParentChangeListener();let r=this._parent.getContextValuesContainer(this._parent.contextId);t.updateParent(r);let i=t.collectAllValues(),a={...Ks(n,i),...Ks(i,n)},o=Object.keys(a);this._onDidChangeContext.fire(new Wc(o))}},Xc=class{parent;overlay;constructor(e,t){this.parent=e,this.overlay=t}getValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getValue(e)}},Zc=class e{parent;overlay;get contextId(){return this.parent.contextId}get onDidChangeContext(){return this.parent.onDidChangeContext}constructor(e,t){this.parent=e,this.overlay=new Map(t)}bufferChangeEvents(e){this.parent.bufferChangeEvents(e)}createKey(){throw Error(`Not supported.`)}getContext(e){return new Xc(this.parent.getContext(e),this.overlay)}getContextValuesContainer(e){return new Xc(this.parent.getContextValuesContainer(e),this.overlay)}contextMatchesRules(e){let t=this.getContextValuesContainer(this.contextId);return!e||e.evaluate(t)}getContextKeyValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getContextKeyValue(e)}createScoped(){throw Error(`Not supported.`)}createOverlay(t=sa.empty()){return new e(this,t)}updateParent(){throw Error(`Not supported.`)}};function Qc(e){for(;e;){if(e.hasAttribute(zc)){let t=e.getAttribute(zc);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function $c(e,t,n){e.get(Nc).createKey(String(t),el(n))}function el(e){return Us(e,e=>{if(typeof e==`object`&&e.$mid===1)return Zo.revive(e).toString();if(e instanceof Zo)return e.toString()})}Js.registerCommand(`_setContext`,$c),Js.registerCommand({id:`getContextKeyInfo`,handler(){return[...Mc.all()].sort((e,t)=>e.key.localeCompare(t.key))},description:{description:H(`getContextKeyInfo`,`A command that returns information about context keys`),args:[]}}),Js.registerCommand(`_generateContextKeyInfo`,function(){let e=[],t=new Set;for(let n of Mc.all())t.has(n.key)||(t.add(n.key),e.push(n));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))});var tl=class e{static INSTANCE=new e;_zoomLevel=0;getZoomLevel(){return this._zoomLevel}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e)}_zoomFactor=1;getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}_fullscreen=!1;_onDidChangeFullscreen=new ro;onDidChangeFullscreen=this._onDidChangeFullscreen.event;setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}},nl=class extends _a{_onDidChange=this._register(new ro);onDidChange=this._onDidChange.event;_listener;_mediaQueryList;constructor(){super(),this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList?.removeEventListener(`change`,this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener(`change`,this._listener),e&&this._onDidChange.fire()}},rl=class extends _a{_onDidChange=this._register(new ro);onDidChange=this._onDidChange.event;_value;get value(){return this._value}constructor(){super(),this._value=this._getPixelRatio();let e=this._register(new nl);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement(`canvas`).getContext(`2d`);return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},il=class{_pixelRatioMonitor=null;_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||=fa(new rl),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}};function al(e,t){typeof e==`string`&&(e=window.matchMedia(e)),e.addEventListener(`change`,t)}new il,tl.INSTANCE.onDidChangeFullscreen;var ol=navigator.userAgent,sl=ol.indexOf(`Firefox`)>=0,cl=ol.indexOf(`AppleWebKit`)>=0;!(ol.indexOf(`Chrome`)>=0)&&ol.indexOf(`Safari`),ol.indexOf(`Electron/`),ol.indexOf(`Android`);var ll=!1;if(window.matchMedia){let e=window.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=window.matchMedia(`(display-mode: fullscreen)`);ll=e.matches,al(e,({matches:e})=>{ll&&t.matches||(ll=e)})}var G;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(G||={});var ul=class{_keyCodeToStr;_strToKeyCode;constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||G.Unknown}},dl=new ul,fl=new ul,pl=new ul,ml=Array(230),hl={},gl=[],_l=Object.create(null),vl=Object.create(null),yl=[],bl=[];for(let e=0;e<=193;e++)yl[e]=G.DependsOnKbLayout;for(let e=0;e<=G.MAX_VALUE;e++)bl[e]=-1;(function(){let e=[[1,0,`None`,G.Unknown,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,G.Unknown,``,0,``,``,``],[1,2,`Super`,G.Unknown,``,0,``,``,``],[1,3,`Fn`,G.Unknown,``,0,``,``,``],[1,4,`FnLock`,G.Unknown,``,0,``,``,``],[1,5,`Suspend`,G.Unknown,``,0,``,``,``],[1,6,`Resume`,G.Unknown,``,0,``,``,``],[1,7,`Turbo`,G.Unknown,``,0,``,``,``],[1,8,`Sleep`,G.Unknown,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,G.Unknown,``,0,``,``,``],[0,10,`KeyA`,G.KeyA,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,G.KeyB,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,G.KeyC,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,G.KeyD,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,G.KeyE,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,G.KeyF,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,G.KeyG,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,G.KeyH,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,G.KeyI,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,G.KeyJ,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,G.KeyK,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,G.KeyL,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,G.KeyM,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,G.KeyN,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,G.KeyO,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,G.KeyP,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,G.KeyQ,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,G.KeyR,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,G.KeyS,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,G.KeyT,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,G.KeyU,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,G.KeyV,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,G.KeyW,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,G.KeyX,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,G.KeyY,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,G.KeyZ,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,G.Digit1,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,G.Digit2,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,G.Digit3,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,G.Digit4,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,G.Digit5,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,G.Digit6,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,G.Digit7,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,G.Digit8,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,G.Digit9,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,G.Digit0,`0`,48,`VK_0`,``,``],[1,46,`Enter`,G.Enter,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,G.Escape,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,G.Backspace,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,G.Tab,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,G.Space,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,G.Minus,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,G.Equal,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,G.BracketLeft,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,G.BracketRight,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,G.Backslash,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,G.Unknown,``,0,``,``,``],[0,57,`Semicolon`,G.Semicolon,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,G.Quote,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,G.Backquote,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,G.Comma,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,G.Period,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,G.Slash,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,G.CapsLock,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,G.F1,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,G.F2,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,G.F3,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,G.F4,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,G.F5,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,G.F6,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,G.F7,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,G.F8,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,G.F9,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,G.F10,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,G.F11,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,G.F12,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,G.Unknown,``,0,``,``,``],[1,77,`ScrollLock`,G.ScrollLock,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,G.PauseBreak,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,G.Insert,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,G.Home,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,G.PageUp,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,G.Delete,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,G.End,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,G.PageDown,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,G.RightArrow,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,G.LeftArrow,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,G.DownArrow,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,G.UpArrow,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,G.NumLock,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,G.NumpadDivide,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,G.NumpadMultiply,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,G.NumpadSubtract,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,G.NumpadAdd,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,G.Enter,``,0,``,``,``],[1,95,`Numpad1`,G.Numpad1,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,G.Numpad2,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,G.Numpad3,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,G.Numpad4,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,G.Numpad5,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,G.Numpad6,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,G.Numpad7,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,G.Numpad8,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,G.Numpad9,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,G.Numpad0,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,G.NumpadDecimal,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,G.IntlBackslash,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,G.ContextMenu,`ContextMenu`,93,``,``,``],[1,108,`Power`,G.Unknown,``,0,``,``,``],[1,109,`NumpadEqual`,G.Unknown,``,0,``,``,``],[1,110,`F13`,G.F13,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,G.F14,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,G.F15,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,G.F16,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,G.F17,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,G.F18,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,G.F19,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,G.F20,`F20`,0,`VK_F20`,``,``],[1,118,`F21`,G.F21,`F21`,0,`VK_F21`,``,``],[1,119,`F22`,G.F22,`F22`,0,`VK_F22`,``,``],[1,120,`F23`,G.F23,`F23`,0,`VK_F23`,``,``],[1,121,`F24`,G.F24,`F24`,0,`VK_F24`,``,``],[1,122,`Open`,G.Unknown,``,0,``,``,``],[1,123,`Help`,G.Unknown,``,0,``,``,``],[1,124,`Select`,G.Unknown,``,0,``,``,``],[1,125,`Again`,G.Unknown,``,0,``,``,``],[1,126,`Undo`,G.Unknown,``,0,``,``,``],[1,127,`Cut`,G.Unknown,``,0,``,``,``],[1,128,`Copy`,G.Unknown,``,0,``,``,``],[1,129,`Paste`,G.Unknown,``,0,``,``,``],[1,130,`Find`,G.Unknown,``,0,``,``,``],[1,131,`AudioVolumeMute`,G.AudioVolumeMute,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,G.AudioVolumeUp,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,G.AudioVolumeDown,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,G.NUMPAD_SEPARATOR,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,G.ABNT_C1,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,G.Unknown,``,0,``,``,``],[0,137,`IntlYen`,G.Unknown,``,0,``,``,``],[1,138,`Convert`,G.Unknown,``,0,``,``,``],[1,139,`NonConvert`,G.Unknown,``,0,``,``,``],[1,140,`Lang1`,G.Unknown,``,0,``,``,``],[1,141,`Lang2`,G.Unknown,``,0,``,``,``],[1,142,`Lang3`,G.Unknown,``,0,``,``,``],[1,143,`Lang4`,G.Unknown,``,0,``,``,``],[1,144,`Lang5`,G.Unknown,``,0,``,``,``],[1,145,`Abort`,G.Unknown,``,0,``,``,``],[1,146,`Props`,G.Unknown,``,0,``,``,``],[1,147,`NumpadParenLeft`,G.Unknown,``,0,``,``,``],[1,148,`NumpadParenRight`,G.Unknown,``,0,``,``,``],[1,149,`NumpadBackspace`,G.Unknown,``,0,``,``,``],[1,150,`NumpadMemoryStore`,G.Unknown,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,G.Unknown,``,0,``,``,``],[1,152,`NumpadMemoryClear`,G.Unknown,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,G.Unknown,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,G.Unknown,``,0,``,``,``],[1,155,`NumpadClear`,G.Clear,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,G.Unknown,``,0,``,``,``],[1,0,``,G.Ctrl,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,G.Shift,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,G.Alt,`Alt`,18,`VK_MENU`,``,``],[1,0,``,G.Meta,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,G.Ctrl,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,G.Shift,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,G.Alt,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,G.Meta,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,G.Ctrl,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,G.Shift,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,G.Alt,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,G.Meta,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,G.Unknown,``,0,``,``,``],[1,166,`BrightnessDown`,G.Unknown,``,0,``,``,``],[1,167,`MediaPlay`,G.Unknown,``,0,``,``,``],[1,168,`MediaRecord`,G.Unknown,``,0,``,``,``],[1,169,`MediaFastForward`,G.Unknown,``,0,``,``,``],[1,170,`MediaRewind`,G.Unknown,``,0,``,``,``],[1,171,`MediaTrackNext`,G.MediaTrackNext,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,G.MediaTrackPrevious,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,G.MediaStop,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,G.Unknown,``,0,``,``,``],[1,175,`MediaPlayPause`,G.MediaPlayPause,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,G.LaunchMediaPlayer,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,G.LaunchMail,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,G.LaunchApp2,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,G.Unknown,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,G.Unknown,``,0,``,``,``],[1,181,`LaunchScreenSaver`,G.Unknown,``,0,``,``,``],[1,182,`BrowserSearch`,G.BrowserSearch,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,G.BrowserHome,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,G.BrowserBack,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,G.BrowserForward,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,G.Unknown,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,G.Unknown,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,G.Unknown,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,G.Unknown,``,0,``,``,``],[1,190,`MailReply`,G.Unknown,``,0,``,``,``],[1,191,`MailForward`,G.Unknown,``,0,``,``,``],[1,192,`MailSend`,G.Unknown,``,0,``,``,``],[1,0,``,G.KEY_IN_COMPOSITION,`KeyInComposition`,229,``,``,``],[1,0,``,G.ABNT_C2,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,G.OEM_8,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANA`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANGUL`,``,``],[1,0,``,G.Unknown,``,0,`VK_JUNJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_FINAL`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANJI`,``,``],[1,0,``,G.Unknown,``,0,`VK_CONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONCONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_ACCEPT`,``,``],[1,0,``,G.Unknown,``,0,`VK_MODECHANGE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SELECT`,``,``],[1,0,``,G.Unknown,``,0,`VK_PRINT`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXECUTE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,G.Unknown,``,0,`VK_HELP`,``,``],[1,0,``,G.Unknown,``,0,`VK_APPS`,``,``],[1,0,``,G.Unknown,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,G.Unknown,``,0,`VK_PACKET`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_ATTN`,``,``],[1,0,``,G.Unknown,``,0,`VK_CRSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EREOF`,``,``],[1,0,``,G.Unknown,``,0,`VK_PLAY`,``,``],[1,0,``,G.Unknown,``,0,`VK_ZOOM`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONAME`,``,``],[1,0,``,G.Unknown,``,0,`VK_PA1`,``,``],[1,0,``,G.Unknown,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,gl[i]=a,_l[a]=i,vl[a.toLowerCase()]=i,e&&(yl[i]=o,o!==G.Unknown&&o!==G.Enter&&o!==G.Ctrl&&o!==G.Shift&&o!==G.Alt&&o!==G.Meta&&(bl[o]=i))),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);dl.define(o,s),fl.define(o,u||s),pl.define(o,d||u||s)}c&&(ml[c]=o),l&&(hl[l]=o)}bl[G.Enter]=46})();var xl;(function(e){function t(e){return dl.keyCodeToStr(e)}e.toString=t;function n(e){return dl.strToKeyCode(e)}e.fromString=n;function r(e){return fl.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return pl.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return fl.strToKeyCode(e)||pl.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=G.Numpad0&&e<=G.NumpadDivide)return null;switch(e){case G.UpArrow:return`Up`;case G.DownArrow:return`Down`;case G.LeftArrow:return`Left`;case G.RightArrow:return`Right`}return dl.keyCodeToStr(e)}e.toElectronAccelerator=o})(xl||={});var Sl;(function(e){e[e.CtrlCmd=2048]=`CtrlCmd`,e[e.Shift=1024]=`Shift`,e[e.Alt=512]=`Alt`,e[e.WinCtrl=256]=`WinCtrl`})(Sl||={});function Cl(e,t){if(typeof e==`number`){if(e===0)return null;let n=(e&65535)>>>0,r=(e&4294901760)>>>16;return r===0?new El([wl(n,t)]):new El([wl(n,t),wl(r,t)])}{let n=[];for(let r=0;r<e.length;r++)n.push(wl(e[r],t));return new El(n)}}function wl(e,t){let n=!!(e&2048),r=!!(e&256);return new Tl(t===Ua.Macintosh?r:n,!!(e&1024),!!(e&512),t===Ua.Macintosh?n:r,e&255)}var Tl=class e{ctrlKey;shiftKey;altKey;metaKey;keyCode;constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){return`K${this.ctrlKey?`1`:`0`}${this.shiftKey?`1`:`0`}${this.altKey?`1`:`0`}${this.metaKey?`1`:`0`}${this.keyCode}`}isModifierKey(){return this.keyCode===G.Unknown||this.keyCode===G.Ctrl||this.keyCode===G.Meta||this.keyCode===G.Alt||this.keyCode===G.Shift}toKeybinding(){return new El([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===G.Ctrl||this.shiftKey&&this.keyCode===G.Shift||this.altKey&&this.keyCode===G.Alt||this.metaKey&&this.keyCode===G.Meta}},El=class{chords;constructor(e){if(e.length===0)throw ra(`chords`);this.chords=e}getHashCode(){let e=``;for(let t=0,n=this.chords.length;t<n;t++)t!==0&&(e+=`;`),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}},Dl=class{ctrlKey;shiftKey;altKey;metaKey;keyLabel;keyAriaLabel;constructor(e,t,n,r,i,a){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=a}},Ol=class{};function kl(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return xl.fromString(t)}let t=e.keyCode;if(t===3)return G.PauseBreak;if(sl)switch(t){case 59:return G.Semicolon;case 60:if(Ia)return G.IntlBackslash;break;case 61:return G.Equal;case 107:return G.NumpadAdd;case 109:return G.NumpadSubtract;case 173:return G.Minus;case 224:if(Fa)return G.Meta}else if(cl&&(Fa&&t===93||!Fa&&t===92))return G.Meta;return ml[t]||G.Unknown}var Al=Fa?Sl.WinCtrl:Sl.CtrlCmd,jl=Sl.Alt,Ml=Sl.Shift,Nl=Fa?Sl.CtrlCmd:Sl.WinCtrl,Pl=class{_standardKeyboardEventBrand=!0;browserEvent;target;ctrlKey;shiftKey;altKey;metaKey;altGraphKey;keyCode;code;_asKeybinding;_asKeyCodeChord;constructor(e){let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState(`AltGraph`),this.keyCode=kl(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===G.Ctrl,this.altKey=this.altKey||this.keyCode===G.Alt,this.shiftKey=this.shiftKey||this.keyCode===G.Shift,this.metaKey=this.metaKey||this.keyCode===G.Meta,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=G.Unknown;this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Al),this.altKey&&(t|=jl),this.shiftKey&&(t|=Ml),this.metaKey&&(t|=Nl),t|=e,t}_computeKeyCodeChord(){let e=G.Unknown;return this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode),new Tl(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}};function Fl(e){return e.filter(e=>!!e)}var Il;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e>0}e.isGreaterThan=n;function r(e){return e===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Il||={}),class e{iterate;static empty=new e(e=>{});constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>!e(n)||(t=n,!1)),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Il.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};var Ll=new class{_onDidChange=new ro;onDidChange=this._onDidChange.event;_enabled=!0;get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},Rl=class extends _a{_contextKeyService;_commandService;_showMessage;_logMessage;_serviceBrand;_onDidUpdateKeybindings=this._register(new ro);get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Za.None}_currentChords;_currentChordChecker;_currentChordStatusMessage;_ignoreSingleModifiers;_currentSingleModifier;_currentSingleModifierClearTimeout;_logging;get inChordMode(){return this._currentChords.length>0}constructor(e,t,n,r){super(),this._contextKeyService=e,this._commandService=t,this._showMessage=n,this._logMessage=r,this._currentChords=[],this._currentChordChecker=new ls,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=K.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new cs,this._logging=!1}dispose(){super.dispose()}getDefaultKeybindingsContent(){return``}toggleLogging(){return this._logging=!this._logging,this._logging}_log(e){this._logging&&this._logMessage(`[KeybindingService]: ${e}`)}getDefaultKeybindings(){return this._getResolver().getDefaultKeybindings()}getKeybindings(){return this._getResolver().getKeybindings()}customKeybindingsCount(){return 0}lookupKeybindings(e){return Fl(this._getResolver().lookupKeybindings(e).map(e=>e.resolvedKeybinding))}lookupKeybinding(e,t){let n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(n)return n.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log(`/ Soft dispatching keyboard event`);let n=this.resolveKeyboardEvent(e);if(n.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),null;let[r]=n.getDispatchChords();if(r===null)return this._log(`\\ Keyboard event cannot be dispatched`),null;let i=this._contextKeyService.getContext(t),a=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(i,a,r)}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw ia(`impossible`);case 1:this._currentChordStatusMessage=this._showMessage(H(`first.chord`,`({0}) was pressed. Waiting for second key of chord...`,t));break;default:{let e=this._currentChords.map(({label:e})=>e).join(`, `);this._currentChordStatusMessage=this._showMessage(H(`next.chord`,`({0}) was pressed. Waiting for next key of chord...`,e))}}this._scheduleLeaveChordMode(),Ll.enabled&&Ll.disable()}_leaveChordMode(){this._currentChordStatusMessage&&=(this._currentChordStatusMessage.dispose(),null),this._currentChordChecker.cancel(),this._currentChords=[],Ll.enable()}dispatchByUserSettingsLabel(e,t){this._log(`/ Dispatching keybinding triggered via menu entry accelerator - ${e}`);let n=this.resolveUserBinding(e);n.length===0?this._log(`\\ Could not resolve - ${e}`):this._doDispatch(n[0],t,!1)}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let n=this.resolveKeyboardEvent(e),[r]=n.getSingleModifierDispatchChords();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=K.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=K.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(`+ Clearing single modifier due to 300ms elapsed.`),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(n,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));let[i]=n.getChords();return this._ignoreSingleModifiers=new K(i),this._currentSingleModifier!==null&&this._log(`+ Clearing single modifier due to other key up.`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,n=!1){let r=!1;if(e.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),!1;let i=null,a=null;if(n){let[t]=e.getSingleModifierDispatchChords();i=t,a=t?[t]:[]}else[i]=e.getDispatchChords(),a=this._currentChords.map(({keypress:e})=>e);if(i===null)return this._log(`\\ Keyboard event cannot be dispatched in keydown phase.`),r;let o=this._contextKeyService.getContext(t),s=e.getLabel(),c=this._getResolver().resolve(o,a,i);switch(c.kind){case 0:if(this._logMessage(`KeybindingService#dispatch`,s,`[ No matching keybinding ]`),this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(H(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}return r;case 1:return this._logMessage(`KeybindingService#dispatch`,s,`[ Several keybindings match - more chords needed ]`),r=!0,this._expectAnotherChord(i,s),this._log(this._currentChords.length===1?`+ Entering multi-chord mode...`:`+ Continuing multi-chord mode...`),r;case 2:if(this._logMessage(`KeybindingService#dispatch`,s,`[ Will dispatch command ${c.commandId} ]`),c.commandId===null||c.commandId===``){if(this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(H(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}}else this.inChordMode&&this._leaveChordMode(),c.isBubble||(r=!0),this._log(`+ Invoking command ${c.commandId}.`),c.commandArgs===void 0?this._commandService.executeCommand(c.commandId).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e)))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e))));return r}}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=G.KeyA&&e.keyCode<=G.KeyZ||e.keyCode>=G.Digit0&&e.keyCode<=G.Digit9}},K=class e{static EMPTY=new e(null);_ctrlKey;_shiftKey;_altKey;_metaKey;constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case`ctrl`:return this._ctrlKey;case`shift`:return this._shiftKey;case`alt`:return this._altKey;case`meta`:return this._metaKey}}},zl={kind:0},q={kind:1};function J(e,t,n){return{kind:2,commandId:e,commandArgs:t,isBubble:n}}var Bl=class e{_log;_defaultKeybindings;_keybindings;_defaultBoundCommands;_map;_lookupMap;constructor(t,n,r){this._log=r,this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(let e of t){let t=e.command;t&&t.charAt(0)!==`-`&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.handleRemovals([].concat(t,n));for(let e=0,t=this._keybindings.length;e<t;e++){let t=this._keybindings[e];if(t.chords.length===0)continue;let n=t.when?.substituteConstants();n&&n.type===0||this._addKeyPress(t.chords[0],t)}}static _isTargetedForRemoval(e,t,n){if(t){for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1}return!(n&&n.type!==1&&(!e.when||!fc(n,e.when)))}static handleRemovals(e){let t=new Map;for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.command&&r.command.charAt(0)===`-`){let e=r.command.substring(1);t.has(e)?t.get(e).push(r):t.set(e,[r])}}if(t.size===0)return e;let n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===`-`)continue;let a=t.get(i.command);if(!a||!i.isDefault){n.push(i);continue}let o=!1;for(let e of a){let t=e.when;if(this._isTargetedForRemoval(i,e.chords,t)){o=!0;break}}o||n.push(i)}return n}_addKeyPress(t,n){let r=this._map.get(t);if(r===void 0)this._map.set(t,[n]),this._addToLookupMap(n);else{for(let t=r.length-1;t>=0;t--){let i=r[t];if(i.command===n.command)continue;let a=!0;for(let e=1;e<i.chords.length&&e<n.chords.length;e++)if(i.chords[e]!==n.chords[e]){a=!1;break}a&&e.whenIsEntirelyIncluded(i.when,n.when)&&this._removeFromLookupMap(i)}r.push(n),this._addToLookupMap(n)}}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);t===void 0?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(t!==void 0){for(let n=0,r=t.length;n<r;n++)if(t[n]===e){t.splice(n,1);return}}}static whenIsEntirelyIncluded(e,t){return!t||t.type===1?!0:!e||e.type===1?!1:Ic(e,t)}getDefaultBoundCommands(){return this._defaultBoundCommands}getDefaultKeybindings(){return this._defaultKeybindings}getKeybindings(){return this._keybindings}lookupKeybindings(e){let t=this._lookupMap.get(e);if(t===void 0||t.length===0)return[];let n=[],r=0;for(let e=t.length-1;e>=0;e--)n[r++]=t[e];return n}lookupPrimaryKeybinding(e,t){let n=this._lookupMap.get(e);if(n===void 0||n.length===0)return null;if(n.length===1)return n[0];for(let e=n.length-1;e>=0;e--){let r=n[e];if(t.contextMatchesRules(r.when))return r}return n[n.length-1]}resolve(e,t,n){let r=[...t,n];this._log(`| Resolving ${r}`);let i=this._map.get(r[0]);if(i===void 0)return this._log(`\\ No keybinding entries.`),zl;let a=null;if(r.length<2)a=i;else{a=[];for(let e=0,t=i.length;e<t;e++){let t=i[e];if(r.length>t.chords.length)continue;let n=!0;for(let e=1;e<r.length;e++)if(t.chords[e]!==r[e]){n=!1;break}n&&a.push(t)}}let o=this._findCommand(e,a);return o?r.length<o.chords.length?(this._log(`\\ From ${a.length} keybinding entries, awaiting ${o.chords.length-r.length} more chord(s), when: ${Vl(o.when)}, source: ${Hl(o)}.`),q):(this._log(`\\ From ${a.length} keybinding entries, matched ${o.command}, when: ${Vl(o.when)}, source: ${Hl(o)}.`),J(o.command,o.commandArgs,o.bubble)):(this._log(`\\ From ${a.length} keybinding entries, no when clauses matched the context.`),zl)}_findCommand(t,n){for(let r=n.length-1;r>=0;r--){let i=n[r];if(e._contextMatchesRules(t,i.when))return i}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}};function Vl(e){return e?`${e.serialize()}`:`no when condition`}function Hl(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?`built-in`:`user`}var Ul=class{_resolvedKeybindingItemBrand=void 0;resolvedKeybinding;chords;bubble;command;commandArgs;when;isDefault;extensionId;isBuiltinExtension;constructor(e,t,n,r,i,a,o){this.resolvedKeybinding=e,this.chords=e?Wl(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=Wl(e.getSingleModifierDispatchChords())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=r,this.isDefault=i,this.extensionId=a,this.isBuiltinExtension=o}};function Wl(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!r)return[];t.push(r)}return t}var Gl=class{modifierLabels;constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[Ua.Macintosh]=e,this.modifierLabels[Ua.Windows]=t,this.modifierLabels[Ua.Linux]=n}toLabel(e,t,n){if(t.length===0)return null;let r=[];for(let i=0,a=t.length;i<a;i++){let a=t[i],o=n(a);if(o===null)return null;r[i]=Xl(a,o,this.modifierLabels[e])}return r.join(` `)}},Kl=new Gl({ctrlKey:`⌃`,shiftKey:`⇧`,altKey:`⌥`,metaKey:`⌘`,separator:``},{ctrlKey:H({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:H({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:H({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:H({key:`windowsKey`,comment:[`This is the short form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:H({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:H({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:H({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:H({key:`superKey`,comment:[`This is the short form for the Super key on the keyboard`]},`Super`),separator:`+`}),ql=new Gl({ctrlKey:H({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:H({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:H({key:`optKey.long`,comment:[`This is the long form for the Alt/Option key on the keyboard`]},`Option`),metaKey:H({key:`cmdKey.long`,comment:[`This is the long form for the Command key on the keyboard`]},`Command`),separator:`+`},{ctrlKey:H({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:H({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:H({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:H({key:`windowsKey.long`,comment:[`This is the long form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:H({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:H({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:H({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:H({key:`superKey.long`,comment:[`This is the long form for the Super key on the keyboard`]},`Super`),separator:`+`}),Jl=new Gl({ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Cmd`,separator:`+`},{ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Super`,separator:`+`}),Yl=new Gl({ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`cmd`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`win`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`meta`,separator:`+`});function Xl(e,t,n){if(t===null)return``;let r=[];return e.ctrlKey&&r.push(n.ctrlKey),e.shiftKey&&r.push(n.shiftKey),e.altKey&&r.push(n.altKey),e.metaKey&&r.push(n.metaKey),t!==``&&r.push(t),r.join(n.separator)}var Zl=class extends Ol{_os;_chords;constructor(e,t){if(super(),t.length===0)throw ra(`chords`);this._os=e,this._chords=t}getLabel(){return Kl.toLabel(this._os,this._chords,e=>this._getLabel(e))}getAriaLabel(){return ql.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Jl.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Yl.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e))}isWYSIWYG(){return this._chords.every(e=>this._isWYSIWYG(e))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(e=>this._getChord(e))}_getChord(e){return new Dl(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e))}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e))}},Ql=class e extends Zl{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(this._os===Ua.Macintosh)switch(e){case G.LeftArrow:return`←`;case G.UpArrow:return`↑`;case G.RightArrow:return`→`;case G.DownArrow:return`↓`}return xl.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?``:this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?``:xl.toString(e.keyCode)}_getElectronAccelerator(e){return xl.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return``;let t=xl.toUserSettingsUS(e.keyCode);return t&&t.toLowerCase()}_isWYSIWYG(){return!0}_getChordDispatch(t){return e.getDispatchStr(t)}static getDispatchStr(e){if(e.isModifierKey())return null;let t=``;return e.ctrlKey&&(t+=`ctrl+`),e.shiftKey&&(t+=`shift+`),e.altKey&&(t+=`alt+`),e.metaKey&&(t+=`meta+`),t+=xl.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return e.keyCode===G.Ctrl&&!e.shiftKey&&!e.altKey&&!e.metaKey?`ctrl`:e.keyCode===G.Shift&&!e.ctrlKey&&!e.altKey&&!e.metaKey?`shift`:e.keyCode===G.Alt&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?`alt`:e.keyCode===G.Meta&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?`meta`:null}static _scanCodeToKeyCode(e){let t=yl[e];if(t!==G.DependsOnKbLayout)return t;switch(e){case 10:return G.KeyA;case 11:return G.KeyB;case 12:return G.KeyC;case 13:return G.KeyD;case 14:return G.KeyE;case 15:return G.KeyF;case 16:return G.KeyG;case 17:return G.KeyH;case 18:return G.KeyI;case 19:return G.KeyJ;case 20:return G.KeyK;case 21:return G.KeyL;case 22:return G.KeyM;case 23:return G.KeyN;case 24:return G.KeyO;case 25:return G.KeyP;case 26:return G.KeyQ;case 27:return G.KeyR;case 28:return G.KeyS;case 29:return G.KeyT;case 30:return G.KeyU;case 31:return G.KeyV;case 32:return G.KeyW;case 33:return G.KeyX;case 34:return G.KeyY;case 35:return G.KeyZ;case 36:return G.Digit1;case 37:return G.Digit2;case 38:return G.Digit3;case 39:return G.Digit4;case 40:return G.Digit5;case 41:return G.Digit6;case 42:return G.Digit7;case 43:return G.Digit8;case 44:return G.Digit9;case 45:return G.Digit0;case 51:return G.Minus;case 52:return G.Equal;case 53:return G.BracketLeft;case 54:return G.BracketRight;case 55:return G.Backslash;case 56:return G.Unknown;case 57:return G.Semicolon;case 58:return G.Quote;case 59:return G.Backquote;case 60:return G.Comma;case 61:return G.Period;case 62:return G.Slash;case 106:return G.IntlBackslash}return G.Unknown}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Tl)return e;let t=this._scanCodeToKeyCode(e.scanCode);return t===G.Unknown?null:new Tl(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(t,n){let r=Wl(t.chords.map(e=>this._toKeyCodeChord(e)));return r.length>0?[new e(r,n)]:[]}},$l=Vs();function eu(e,t){return function(n,r){t(n,r,e)}}function tu(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var nu=Zi(`workbenchKeybindingService`),ru=class extends Rl{contexts;bindings=[];resolver=null;constructor(e,t){super(e,t,()=>_a.None,()=>{}),this.contexts=e;let n=e=>{e.key===`Tab`&&(document.documentElement.dataset.focusNavigation=`tab`)},r=()=>{delete document.documentElement.dataset.focusNavigation};window.addEventListener(`keydown`,n,!0),window.addEventListener(`pointerdown`,r,!0),this._register(ha(()=>{window.removeEventListener(`keydown`,n,!0),window.removeEventListener(`pointerdown`,r,!0),delete document.documentElement.dataset.focusNavigation}));let i=e=>{if(e.defaultPrevented||e.isComposing||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], dialog, [role="dialog"], [role="menu"], [role="tablist"]`))return;let t=window.getSelection();if([`ArrowUp`,`ArrowDown`].includes(e.key)&&t&&!t.isCollapsed)return;let n=new Pl(e);this._dispatch(n,n.target)&&(n.preventDefault(),n.stopPropagation())};window.addEventListener(`keydown`,i),this._register(ha(()=>window.removeEventListener(`keydown`,i)))}registerCommands(e,t){let n=new ga,r=this.contexts.createKey(`workbench.${e}`,!1);r.set(!0);let i=[];for(let r of t){let t=`workbench.${e}.${r.id}`;n.add(Js.registerCommand(t,()=>r.run()));let a=Cl(r.keybinding,Wa);if(a)for(let n of Ql.resolveKeybinding(a,Wa))i.push(new Ul(n,t,void 0,dc.equals(`workbench.${e}`,!0),!1,null,!1))}return this.bindings.push(...i),this.resolver=null,this._onDidUpdateKeybindings.fire(),n.add(ha(()=>{r.reset();let e=new Set(i);this.bindings=this.bindings.filter(t=>!e.has(t)),this.resolver=null,this._onDidUpdateKeybindings.fire()})),n}_getResolver(){return this.resolver??=new Bl([],this.bindings,()=>{})}_documentHasFocus(){return document.hasFocus()}resolveKeybinding(e){return Ql.resolveKeybinding(e,Wa)}resolveKeyboardEvent(e){return new Ql([new Tl(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode)],Wa)}resolveUserBinding(e){return[]}_dumpDebugInfo(){return``}_dumpDebugInfoJSON(){return``}registerSchemaContribution(e){}};ru=tu([eu(0,Nc),eu(1,qs)],ru);var iu=Zi(`clipboardService`),au=class{writeText(e){return navigator.clipboard.writeText(e)}},ou=Zi(`notificationService`),su=class extends _a{change=this._register(new ro);current=null;nextId=0;subscribe=e=>{let t=this.change.event(e);return()=>t.dispose()};getSnapshot=()=>this.current;show(e,t={}){let n=t.variant??`info`,r=t.duration??(n===`error`?8e3:4e3),i=this.current,a=i?.message===e&&i.variant===n;this.current={id:a?i.id:++this.nextId,revision:a?i.revision+1:0,message:e,variant:n,duration:r},this.change.fire()}dismiss(e,t){this.current?.id===e&&this.current.revision===t&&(this.current=null,this.change.fire())}},cu=class extends _a{services;willExecute=this._register(new ro);didExecute=this._register(new ro);onWillExecuteCommand=this.willExecute.event;onDidExecuteCommand=this.didExecute.event;constructor(e){super(),this.services=e}async executeCommand(e,...t){let n=Js.getCommand(e);if(!n)throw Error(`未注册命令:${e}`);this.willExecute.fire({commandId:e,args:t});let r=await this.services.invokeFunction(n.handler,...t);return this.didExecute.fire({commandId:e,args:t}),r}};cu=tu([eu(0,Yi)],cu);function lu(){let e=new hs;e.set(Ts,new qi(Es)),e.set(Ds,new qi(Os)),e.set(ks,new qi(As)),e.set(js,new qi(Ms)),e.set(iu,new qi(au)),e.set(ou,new qi(su)),e.set(qs,new qi(cu)),e.set(Nc,new qi(Jc)),e.set(nu,new qi(ru));let t=new vs(e,!0),n=new ga;return t.invokeFunction(e=>{n.add(e.get(Ts)),n.add(e.get(Ds)),n.add(e.get(ks)),n.add(e.get(js)),n.add(e.get(ou)),n.add(e.get(nu)),n.add(e.get(qs)),n.add(e.get(Nc))}),{instantiationService:t,dispose:()=>n.dispose()}}var uu={Root:`hb-divider`},du={Root:`hb-resize-handle`,Line:`hb-resize-line`,Feedback:`hb-resize-feedback`,Gradient:`hb-resize-gradient`,DragShield:`fixed inset-0 z-40 cursor-col-resize`},fu={Root:`hb-checkbox`,Input:`hb-checkbox-input`,Surface:`hb-checkbox-surface`,Check:`hb-checkbox-check`,Mixed:`hb-checkbox-mixed`},pu={Root:`m-0 flex list-none items-center gap-2 p-0`,Item:`flex items-center gap-2`,Label:`font-ui text-detail leading-4 text-faint`,Active:`text-ink`},Y={Brand:`font-ui text-label font-semibold`,Eyebrow:`font-ui text-label font-semibold leading-4`,Metadata:`font-ui text-detail leading-4`,MetadataLarge:`font-ui text-detail leading-4`,UiSmall:`font-ui text-label leading-4`,Ui:`font-ui text-ui-body leading-5`,UiLarge:`font-ui text-ui-body leading-5`,ListTitle:`font-ui text-ui-body leading-5`,PanelTitle:`font-ui text-ui-body font-semibold leading-5`,PageTitle:`font-ui text-[24px] font-medium leading-8 tracking-[-0.16px]`,OnboardingTitle:`font-ui text-[24px] font-medium leading-8 tracking-[-0.16px]`},mu=`w-full border border-input-line bg-input font-ui text-ui-body text-ink placeholder:text-faint shadow-[var(--hb-panel-shadow)] transition-colors duration-100 hover:border-accent focus:outline-none focus:border-accent disabled:opacity-50 disabled:pointer-events-none`,hu={md:`h-7 rounded-control px-2.5`,lg:`h-8 rounded-control px-2.5`};function X(...e){return e.filter(Boolean).join(` `)}var gu=`shadow-[var(--hb-control-shadow)]`,_u=`shadow-[var(--hb-menu-shadow)]`,vu=`transition-[width,border-width,visibility] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none`,yu=`[animation:hb-sidebar-in_300ms_cubic-bezier(0.22,1,0.36,1)] motion-reduce:animate-none`,bu=`my-px flex h-7 w-full flex-none items-center gap-1.5 rounded-lg border-0 pl-2 pr-[9px] text-left font-ui text-[13px] font-medium leading-none transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent [&>svg]:size-3.5 [&>svg]:shrink-0`,xu=`bg-[var(--hb-sidebar-selected)] text-[var(--hb-sidebar-ink)] hover:bg-[var(--hb-sidebar-selected)]`,Su=`bg-transparent text-[var(--hb-sidebar-muted)] hover:bg-[var(--hb-sidebar-hover)] hover:text-[var(--hb-sidebar-ink)]`,Cu=`relative flex h-11 min-h-11 flex-none items-center gap-1 bg-surface px-[18px]`,wu=`rounded-xl border-[0.5px] border-line bg-surface shadow-[var(--hb-panel-shadow)]`,Tu={Divider:uu,ResizeHandle:du,Checkbox:fu,StepIndicator:pu,Styleguide:{Root:`flex min-h-screen flex-col bg-canvas font-ui text-ui-body text-ink sm:flex-row`,Sidebar:X(`relative w-full shrink-0 bg-surface-alt p-3 sm:w-56 sm:p-5`,vu,yu),Title:`m-0 text-title font-medium`,Description:`mb-6 mt-2 leading-6 text-muted`,Content:`min-w-0 flex-1 space-y-6 p-4 sm:p-10`,Preview:`flex min-h-64 flex-col items-start justify-center gap-6 rounded-xl border border-line bg-surface p-5 sm:p-8`},Font:Y,Motion:{Panel:vu,SidebarEnter:yu},SidebarLayout:{Root:`flex h-full min-h-0 min-w-0 flex-1`,Sidebar:X(`relative min-h-0 shrink-0 bg-surface data-[collapsed=true]:[transition-delay:0s,0s,300ms] [&:has([data-dragging=true])]:transition-none motion-reduce:!delay-0`,vu),Clip:`h-full overflow-hidden`,Inner:`h-full min-h-0`,Content:`flex min-h-0 min-w-0 flex-1 flex-col outline-none`},PanelHeader:{TitleGroup:`flex min-w-0 items-baseline gap-2`,Count:`font-ui text-[12px] font-normal leading-4 tabular-nums text-muted`},App:{Root:`flex h-screen min-h-[600px] flex-col overflow-hidden bg-canvas font-ui text-ui-body text-ink`,Frame:`flex min-h-0 w-full flex-1 overflow-hidden`,Content:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,RouteContent:`min-h-0 min-w-0 flex-1 overflow-hidden`,Startup:`grid min-h-screen place-items-center bg-canvas px-8 font-ui text-[14px] text-body`},CompactEmptyState:{Root:`flex min-w-0 max-w-full flex-col items-center gap-6`,Image:`block size-28 max-w-full shrink-0 object-contain`,Text:`m-0 max-w-full text-left font-ui text-[13px] font-medium leading-[normal] text-[var(--hb-empty-foreground)] [overflow-wrap:anywhere]`},EmptyState:{Root:`flex min-w-0 flex-col items-center gap-3 text-center`,Image:`mb-2 block size-[112px] max-w-full object-contain`,Title:`m-0 font-ui text-title font-medium leading-7 text-ink`,Action:X(Y.UiLarge,`mt-3 inline-flex h-8 items-center justify-center gap-2 rounded-full border-0 bg-accent px-4 font-medium text-accent-contrast transition hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-accent`),Description:X(Y.Ui,`m-0 max-w-[300px] leading-6 text-muted`)},Utility:{Spinner:`animate-spin`,EmptyIcon:`mx-auto mb-4 text-faint`,ErrorBox:X(Y.Ui,`rounded-panel bg-danger/10 px-3 py-2 text-danger`),SuccessBox:X(Y.Ui,`flex items-center gap-2 rounded-panel bg-success/10 px-3 py-2 text-success`)},Field:{Group:`flex min-w-0 flex-col gap-1.5`,Label:X(Y.UiSmall,`text-muted`),Input:X(mu,hu.lg,`font-metadata`),InputUi:X(mu,hu.lg,`font-ui`),SecretRow:`flex h-8 items-center rounded-control border border-input-line bg-input focus-within:border-accent`,SecretInput:X(Y.MetadataLarge,`min-w-0 flex-1 bg-transparent px-3 placeholder:text-faint`),SecretButton:X(Y.Metadata,`h-full border-0 bg-transparent px-3 text-muted hover:text-ink`),Hint:X(Y.Metadata,`text-faint`),Grid:`grid grid-cols-2 gap-x-3 gap-y-3`},Library:{Root:`flex h-full min-h-0 overflow-hidden bg-surface py-2 pr-2`,Body:X(`flex min-h-0 min-w-0 flex-1 overflow-hidden`,wu),Panel:`min-h-0 min-w-0 overflow-hidden bg-surface`,ListPanel:X(`relative min-h-0 min-w-0 flex-none bg-surface [&:has([data-dragging=true])]:duration-0`,vu),ListClip:`h-full overflow-hidden`},PrimarySidebar:{ResizableInner:`flex h-full min-h-0 w-full flex-col`,Root:X(`w-[244px] min-h-0 flex-none overflow-hidden bg-surface`,vu),Inner:X(`flex h-full w-[244px] min-h-0 flex-col`,yu),Import:`mt-2 flex h-11 flex-none items-center gap-2 px-3`,LibraryMenuTrigger:`flex h-7 min-w-0 shrink items-center gap-1.5 rounded-[10px] border-0 bg-transparent pl-[5px] pr-[9px] text-left text-[var(--hb-sidebar-heading)] hover:bg-[var(--hb-sidebar-hover)] aria-expanded:bg-[var(--hb-sidebar-hover)] focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-accent`,LibraryName:`min-w-0 truncate font-ui text-[13px] font-[550] leading-[23px]`,LibraryIcon:`size-5 shrink-0 text-[var(--hb-sidebar-muted)]`,LibraryChevron:`size-2 shrink-0 text-[var(--hb-sidebar-muted)]`,HeaderActions:`ml-auto flex shrink-0 items-center gap-1`,HeaderButton:X(`grid size-7 shrink-0 place-items-center rounded-full border-[0.5px] border-transparent bg-surface text-ink transition-colors hover:bg-selected focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent disabled:opacity-50`,gu),Name:`min-w-0 flex-1 truncate`,Navigation:`-mt-[5.5px] mb-0.5 flex min-h-0 flex-1 flex-col overflow-y-auto px-3 pt-[26px]`},Sidebar:{NavItem:bu,NavItemRest:Su,NavItemActive:xu,NavLabel:`min-w-0 flex-1 truncate leading-5`,NavCount:`ml-auto min-w-4 text-center font-ui text-[12px] font-normal leading-4 tabular-nums text-muted`},List:{Root:`flex h-full min-h-0 flex-col`,Header:Cu,HeaderRow:`flex w-full items-center gap-2`,Title:`truncate font-ui text-[13px] font-medium leading-5 text-body`,Items:`min-h-0 flex-1 pt-2`,Window:`h-full pb-3`,ItemRow:`px-2 pb-1`,Item:`h-full w-full overflow-hidden rounded-control border-0 px-3 py-2 text-left transition-colors`,ItemRest:`bg-transparent hover:bg-soft`,ItemSelected:`bg-selected`,ItemSelectedFocused:`bg-selection-active`,ItemTitle:X(Y.ListTitle,`line-clamp-2 break-words text-body`),ItemMeta:X(Y.Metadata,`mt-1 flex items-center gap-1.5 overflow-hidden whitespace-nowrap text-muted`),ItemDomain:`min-w-0 overflow-hidden text-ellipsis whitespace-nowrap`,Kind:`text-faint`,Empty:`grid min-h-0 flex-1 place-items-center px-5 text-center`,EmptyTitle:X(Y.PanelTitle,`text-ink`),EmptyDescription:X(Y.Ui,`mt-2 max-w-[240px] text-muted`)},Tabs:{Tab:X(Y.UiLarge,`inline-flex h-7 items-center rounded-full border-0 bg-transparent px-2 text-muted transition-colors hover:bg-soft`),TabActive:X(Y.UiLarge,`inline-flex h-7 items-center rounded-full border-0 bg-selected px-2 text-body`),TabDisabled:X(Y.UiLarge,`inline-flex h-7 cursor-default items-center rounded-full border-0 bg-transparent px-2 text-faint`)},Content:{Root:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-surface`,Body:`@container/details relative flex min-h-0 min-w-0 flex-1 overflow-hidden`,Main:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,Header:Cu,Title:`min-w-0 truncate font-ui text-[13px] font-medium text-body`,ExpandControl:`mr-2 shrink-0`,ExpandIcon:`rotate-90`,ExpandButton:`grid size-7 place-items-center rounded-full border-0 bg-transparent text-muted hover:bg-soft hover:text-ink`,Actions:`ml-auto flex shrink-0 items-center gap-1`,View:`min-h-0 flex-1 overflow-hidden`,HiddenView:`hidden`},Reader:{Root:`relative flex h-full min-h-0 flex-col overflow-hidden`,Header:Cu,Actions:`relative ml-auto flex items-center gap-1`,ActionActive:`text-ink [&_svg]:stroke-ink`,ActionError:X(Y.UiSmall,`absolute right-0 top-7 z-10 w-56 rounded-control border border-line bg-surface p-2 text-danger shadow-sm`),Scroll:`min-h-0 flex-1 overflow-y-auto`,SnapshotFrame:`h-full min-h-0 w-full border-0 bg-white`,Placeholder:`grid min-h-0 flex-1 place-items-center px-5 text-center`,PlaceholderTitle:X(Y.PanelTitle,`text-ink`),PlaceholderDescription:X(Y.Ui,`mt-2 text-muted`)},WebpageInfo:{Root:`flex h-full min-h-0 flex-col overflow-y-auto bg-transparent`,Header:Cu,Fields:`py-2`,Scroll:`m-0 flex flex-col gap-6`,Field:`grid min-h-7 grid-cols-[90px_minmax(0,1fr)] items-start`,Label:`flex min-h-7 items-center font-ui text-[12px] leading-4 text-muted`,Value:`m-0 min-w-0 break-words px-1.5 py-1.5 font-ui text-[12px] leading-4 text-body`,Url:X(Y.MetadataLarge,`block break-all text-body underline decoration-line underline-offset-4 hover:text-ink`),UrlPlain:X(Y.MetadataLarge,`block break-all text-muted`),Tags:`m-0 flex list-none flex-wrap gap-1.5 p-0`,Tag:X(Y.UiSmall,`max-w-full break-words rounded-full border border-line bg-surface px-2 py-1 text-body`),TagsValue:`m-0 min-w-0`,TagSection:`min-w-0`,TagSectionTitle:`hb-tag-section-title`,TagSectionContent:`m-0 min-w-0 pt-2`,SectionValue:`hb-info-section-value m-0 min-w-0 break-words pt-2`,TagMinimumWidth:`min-w-10 text-center`,AddTag:`flex min-h-7 max-w-full items-center gap-2 rounded-full border-0 bg-transparent px-1.5 py-[3px] text-left font-ui text-[12px] text-muted hover:bg-soft focus-visible:outline-2 focus-visible:outline-accent`,TagEditor:`flex min-w-0 flex-wrap items-center gap-1.5`,TagPillList:`contents list-none`,TagPillItem:`flex min-w-0 max-w-full`,TagPill:`hb-tag-pill`,AddTagIcon:`hb-tag-add`,AddTagEmpty:`hb-tag-add hb-tag-add-empty`,TagPopover:`hb-tag-menu fixed inset-auto m-0 max-w-[calc(100vw-16px)] overflow-hidden rounded-xl border-[0.5px] bg-surface shadow-[var(--hb-menu-shadow)]`,TagSearch:`hb-tag-search block w-full border-0 bg-transparent focus:outline-none`,TagMenu:`hb-tag-menu`,TagMenuOptions:`max-h-[356.5px] overflow-y-auto py-1.5`,TagMenuOption:`hb-tag-menu-option`,TagCreateText:`flex min-w-0 items-center gap-1 whitespace-nowrap`,TagCreateName:`truncate text-[var(--hb-tag-create-name)]`,TagMenuDivider:`hb-tag-menu-divider`,TagName:`min-w-0 flex-1 truncate`,TagEmpty:`m-0 px-[14px] py-3 text-[13px] text-[var(--hb-tag-placeholder)]`,Placeholder:`grid min-h-0 flex-1 place-items-center px-5 text-center`,PlaceholderText:X(Y.Ui,`max-w-[180px] text-muted`)},Notification:{Viewport:`fixed bottom-6 right-6 z-[1500] max-w-[calc(100vw-32px)]`,Motion:`hb-toast-motion`,Card:`flex w-fit max-w-[min(320px,calc(100vw-32px))] items-start gap-2 rounded-xl border-[0.5px] border-line bg-surface p-3 font-ui text-[13px] leading-4 text-ink shadow-[var(--hb-menu-shadow)]`,Content:`min-w-0 flex-1 break-words`,Title:`font-medium`,Description:`mt-2 line-clamp-2 leading-5 text-body`,SuccessIcon:`grid size-4 shrink-0 place-items-center rounded-full bg-[#62b963] text-white`,InfoIcon:`size-4 shrink-0 text-muted`,ErrorIcon:`size-4 shrink-0 text-danger`,Close:`-m-1 grid size-6 shrink-0 place-items-center rounded-full border-0 bg-transparent text-muted hover:bg-soft focus-visible:outline-2 focus-visible:outline-accent disabled:opacity-50`,Action:`mt-3 block border-0 bg-transparent p-0 text-[13px] leading-5 text-accent hover:underline focus-visible:outline-2 focus-visible:outline-accent disabled:opacity-50`,Error:`mt-2 text-danger`},Toast:{Root:`fixed bottom-5 right-5 flex max-w-[calc(100vw-40px)] items-center gap-3 rounded-xl border-[0.5px] border-line bg-surface px-4 py-3 font-ui text-[13px] text-body shadow-[var(--hb-dialog-shadow)] [animation:hb-fade-in_300ms_cubic-bezier(0.22,1,0.36,1)] motion-reduce:animate-none`,Message:`min-w-0 flex-1 break-words`,Close:`ml-4 grid size-6 shrink-0 place-items-center rounded-md border-0 bg-transparent text-muted hover:bg-soft hover:text-ink`},Menu:{Popup:`fixed inset-auto z-[600] m-0 w-[225px] max-w-[calc(100vw-16px)] rounded-xl border-[0.5px] border-[var(--hb-menu-border)] bg-surface px-0 py-1.5 font-ui text-[13px] leading-[19.5px] text-[var(--hb-menu-ink)] shadow-[var(--hb-menu-shadow)]`,Item:`hb-menu-item`},Segmented:{Control:`relative -my-0.5 flex w-full items-center gap-0.5 rounded-[5px] bg-surface`,Option:`hb-segmented-option`},Annotation:{Sidebar:X(`absolute inset-y-0 right-0 z-20 w-[clamp(260px,22vw,300px)] min-h-0 flex-none overflow-hidden bg-surface shadow-[var(--hb-panel-shadow)] @min-[680px]/details:relative @min-[680px]/details:shadow-none`,vu),SidebarInner:`flex h-full w-[calc(clamp(260px,22vw,300px)-1px)] min-h-0 flex-col`,SidebarTabs:`flex h-11 shrink-0 items-center gap-1 px-4`,SidebarSurface:`flex min-h-0 flex-1 flex-col px-4 pb-4 pt-2`,SidebarHeader:`mb-2 flex h-7 min-h-7 flex-none items-center justify-between gap-1 px-3`,TabPanel:`flex min-h-0 flex-1 flex-col overflow-hidden [animation:hb-fade-in_300ms_cubic-bezier(0.22,1,0.36,1)] motion-reduce:animate-none`,SidebarTitle:`m-0 min-w-0 truncate font-ui text-[13px] font-medium leading-5 text-body`,Toggle:X(`grid size-7 shrink-0 place-items-center rounded-full border-[0.5px] border-transparent text-muted transition-colors`,gu),ToggleActive:`bg-surface text-ink`,ToggleRest:`bg-surface hover:bg-soft hover:text-ink`,NoteIconSource:`hidden`,List:`pointer-events-auto -mx-1 -my-1 flex min-h-0 max-h-full flex-col gap-2 overflow-y-auto bg-transparent px-1 py-1 outline-none`,Empty:X(Y.Ui,`pointer-events-auto grid min-h-0 flex-1 place-items-center content-center gap-1 px-5 text-center text-muted [&>p]:m-0 [&>span]:text-detail [&>span]:text-faint`),Card:X(`group/annotation relative shrink-0 rounded-[10px] border-[0.5px] border-transparent p-3 transition-colors duration-150 motion-reduce:transition-none`,gu),CardRest:`bg-surface`,CardActive:`bg-[color-mix(in_srgb,var(--hb-selected)_25%,var(--hb-surface))] focus-within:border-[color-mix(in_srgb,var(--hb-accent)_65%,var(--hb-line))]`,CardColor:{yellow:`[--annotation-color:#f5e7b2]`,green:`[--annotation-color:#cde6de]`,blue:`[--annotation-color:#cddff1]`,pink:`[--annotation-color:#efcddb]`,purple:`[--annotation-color:#dfd4ec]`},QuoteButton:X(Y.Ui,`block w-full border-0 bg-transparent p-0 pr-6 text-left leading-[24px] text-body hover:text-ink outline-none`),QuoteText:`min-w-0 break-words rounded-sm bg-[color-mix(in_srgb,var(--annotation-color)_var(--hb-annotation-tint),var(--hb-surface))] px-0.5 py-0.5 [box-decoration-break:clone]`,MoreButton:`absolute right-2 top-2 grid size-6 place-items-center rounded-md border-0 bg-transparent text-muted hover:bg-soft hover:text-ink focus-visible:outline-1 focus-visible:outline-accent`,ActionPopover:X(`fixed inset-auto m-0 w-[184px] rounded-xl border-[0.5px] border-line bg-surface px-1 py-1.5 font-ui text-[13px] leading-[19.5px] text-body`,_u),ControlDetails:`flex flex-col gap-1`,ToolbarActions:`relative flex flex-col pt-1`,MenuItem:`flex h-8 w-full items-center gap-2 rounded-md border-0 bg-transparent pl-2.5 pr-3.5 text-left font-ui text-[13px] font-[450] leading-5 text-body hover:bg-soft focus-visible:bg-soft focus-visible:outline-none disabled:opacity-40 [&>svg]:size-4 [&>svg]:shrink-0 [&>span]:min-w-0 [&>span]:truncate`,MenuItemDanger:`text-danger`,CopiedIcon:`text-success`,LiveStatus:`sr-only`,DeleteConfirmation:X(Y.UiSmall,`mt-3 rounded-lg border border-danger/15 bg-danger/5 p-3 [&>p]:m-0`),ConfirmDeleteButton:X(Y.UiSmall,`h-7 rounded-full border-0 bg-danger px-3 text-white hover:opacity-90 disabled:opacity-50`),Note:X(Y.Ui,`m-0 whitespace-pre-wrap [overflow-wrap:anywhere] leading-[22px] text-ink`),NoteSection:`mt-3`,NoteLabel:`block font-ui text-[11px] font-medium leading-4 text-muted`,NoteEmpty:X(Y.UiSmall,`m-0 mt-2 text-faint`),Editor:`mt-3`,NoteInput:X(Y.Ui,`block min-h-[22px] w-full resize-none overflow-hidden border-0 bg-transparent p-0 whitespace-pre-wrap [overflow-wrap:anywhere] [field-sizing:content] leading-[22px] text-ink placeholder:text-faint focus:outline-none`),CardActions:`mt-3 flex items-center justify-end gap-2`,IconButton:`grid h-6 w-6 place-items-center rounded-full border-0 bg-transparent text-muted transition hover:bg-soft hover:text-ink disabled:opacity-40`,IconButtonStrong:`grid h-6 w-6 place-items-center rounded-full border-0 bg-accent text-accent-contrast transition hover:opacity-85 disabled:opacity-40`,DeleteButton:`grid h-6 w-6 place-items-center rounded-full border-0 bg-transparent text-muted transition hover:bg-danger/10 hover:text-danger disabled:opacity-40`,Error:X(Y.Metadata,`m-0 mt-2 text-danger`),Composer:`absolute z-20 max-h-[calc(100%-52px)] overflow-y-auto rounded-panel border border-line bg-surface p-1 shadow-[var(--hb-dialog-shadow)]`,Toolbar:`flex h-8 flex-nowrap items-center gap-1 px-1`,ToolbarDivider:`mx-1`,ComposerEditor:`px-2 pb-2 pt-3`,ComposerHeader:X(Y.Ui,`flex items-center justify-between font-normal text-ink`),ComposerQuote:X(Y.UiSmall,`my-2 line-clamp-3 border-l-2 border-faint/60 pl-2.5 text-muted`),ComposerActions:`mt-4 flex items-center justify-end gap-2`,ColorPicker:`flex flex-none items-center gap-1 px-1 py-1`,ColorButton:`grid size-6 flex-none place-items-center rounded-md border-0 bg-transparent transition-colors hover:bg-soft focus-visible:outline-1 focus-visible:outline-accent disabled:opacity-40`,ColorSwatch:`grid size-3.5 place-items-center rounded-full border border-black/10`,ColorCheck:`size-2.5`,ColorCheckTone:{yellow:`text-[#947000]`,green:`text-[#25715c]`,blue:`text-[#306ea8]`,pink:`text-[#a64271]`,purple:`text-[#7851a5]`},Color:{yellow:`bg-[#f5e7b2]`,green:`bg-[#cde6de]`,blue:`bg-[#cddff1]`,pink:`bg-[#efcddb]`,purple:`bg-[#dfd4ec]`},SecondaryButton:X(Y.UiSmall,`h-7 rounded-full border-0 bg-transparent px-3 font-[450] text-body hover:bg-soft disabled:opacity-40`),PrimaryButton:X(Y.UiSmall,`h-7 rounded-full border-[0.5px] border-line bg-surface px-3 font-[450] text-ink shadow-[var(--hb-panel-shadow)] hover:bg-soft disabled:opacity-40`)},Settings:{Root:`flex h-full min-h-0 flex-col overflow-hidden`,Body:`flex min-h-0 flex-1 bg-surface`,Sidebar:X(`w-[244px] min-h-0 flex-none overflow-hidden bg-surface-alt`,vu),SidebarInner:X(`flex h-full min-h-0 flex-col pt-2`,yu),Navigation:`flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-3 pb-2 pt-3`,NavigationHeader:`flex h-[44.5px] flex-none items-center pl-3 pr-2`,Back:`inline-flex h-7 min-w-7 shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-full border border-transparent pl-1.5 pr-3 font-ui text-[13px] font-medium leading-none text-muted no-underline transition-colors hover:bg-soft hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent`,NavItem:`my-px flex h-7 w-full flex-none items-center gap-1.5 rounded-lg py-0 pl-2 pr-[9px] text-left font-ui text-[13px] font-medium leading-none transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent [&>svg]:size-3.5 [&>svg]:shrink-0`,NavItemActive:xu,NavItemRest:Su,NavigationGroup:`flex flex-col gap-0.5`,NavigationTitle:`font-ui m-0 px-2 pb-1.5 pt-3 text-[12px] font-medium leading-4 text-muted`,Content:X(`relative my-2 mr-2 min-h-0 min-w-0 flex-1 overflow-y-auto`,wu),ContentInner:`mx-auto flex w-[calc(100%-80px)] max-w-[640px] flex-col gap-8 pb-16 pt-16`,PageHeader:`flex flex-col gap-1 px-4`,Title:`m-0 font-ui text-[24px] font-medium leading-8 tracking-[-0.16px] text-ink`,Description:`m-0 font-ui text-[13px] leading-[22px] text-muted`,Card:`rounded-[10px] bg-surface shadow-[var(--hb-control-shadow)]`,Row:`relative flex min-h-[60px] flex-wrap items-center justify-between gap-3 p-4 [&:last-child>[data-divider]]:hidden`,RowBody:`flex min-w-0 flex-1 flex-col gap-0.5`,RowTitle:`m-0 font-ui text-[13px] font-medium leading-5 text-ink`,RowDescription:`m-0 font-ui text-[12px] leading-4 text-muted`,RowAction:`flex flex-none items-center`,ActionButton:`inline-flex h-7 items-center justify-center whitespace-nowrap rounded-full border border-transparent bg-control px-3 font-ui text-[13px] font-medium leading-4 shadow-[var(--hb-control-shadow)] text-body transition-colors hover:bg-soft`,SelectRoot:`relative w-40`,Select:`h-7 w-full appearance-none rounded-lg border border-transparent bg-control py-1 pl-2.5 pr-7 font-ui text-[13px] shadow-[var(--hb-control-shadow)] leading-4 text-body transition-colors hover:bg-soft [html[data-focus-navigation=tab]_&]:focus-visible:border-accent focus:outline-none`,SelectIcon:`pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-muted`},HamsterImport:{CredentialsPanel:`max-w-[480px]`,SelectionPanel:`max-h-[calc(100dvh-64px)] max-w-[1060px]`,CredentialsBody:`flex flex-col gap-3.5 px-5 pb-5`,ReadOnlyHint:X(Y.Ui,`text-muted`),FormActions:`mt-2 flex items-center justify-end gap-2`,HeaderHost:X(Y.MetadataLarge,`min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-faint`),CatalogHeader:`relative flex flex-none items-center gap-4 px-6 py-3`,SelectAll:X(Y.Ui,`flex items-center gap-2 text-body`),CatalogSummary:X(Y.MetadataLarge,`text-faint`),CatalogBody:`h-[min(55dvh,520px)] min-h-[240px]`,CatalogWindow:`h-full`,CatalogRow:`px-6`,CatalogItem:`relative flex h-full items-center gap-4 py-3`,CatalogItemDisabled:`opacity-45`,CatalogItemBody:`min-w-0 flex-1`,CatalogItemTitle:X(Y.UiLarge,`block overflow-hidden text-ellipsis whitespace-nowrap text-ink`),CatalogItemMeta:X(Y.MetadataLarge,`mt-1 flex items-center gap-1.5 overflow-hidden whitespace-nowrap text-faint`),CatalogItemUrl:`min-w-0 overflow-hidden text-ellipsis whitespace-nowrap`,ImportedTag:X(Y.UiSmall,`ml-auto flex-none rounded-panel bg-soft px-2.5 py-1 text-muted`),Empty:X(Y.Ui,`grid h-full place-items-center text-muted`),Footer:`flex flex-none items-center gap-3 border-t border-line bg-surface-alt px-6 py-4`,FooterHint:X(Y.UiSmall,`text-muted`),FooterActions:`ml-auto flex items-center gap-2`,ProgressBody:`min-w-0 flex-1`,ProgressRow:`flex items-center gap-4`,ProgressTitle:X(Y.UiLarge,`min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-ink`),ProgressCount:X(Y.MetadataLarge,`flex-none text-faint`),ProgressTrack:`mt-3 h-1.5 overflow-hidden rounded-full bg-soft`,ProgressValue:`h-full rounded-full bg-accent transition-[width] duration-200`,Complete:X(Y.Ui,`min-w-0 flex-1 text-body`),CompleteError:X(Y.Metadata,`mt-1 text-danger`)},UploadPanel:{Layer:`hb-upload-panel-layer`,Panel:`hb-upload-panel`,Header:`flex h-[52px] shrink-0 items-center gap-1.5 p-3`,Title:`m-0 min-w-0 flex-1 truncate font-ui text-[13px] font-medium leading-6 text-body`,Body:`min-h-0 flex-1 overflow-y-auto px-3 pb-5`,Picker:`flex min-h-[132px] flex-col items-start justify-center gap-2 py-3`,DropTitle:`block font-ui text-[18px] font-semibold leading-7 text-muted`,Description:`m-0 font-ui text-[14px] leading-6 text-muted`,Footer:`flex shrink-0 flex-wrap items-center justify-between gap-3 px-3 pb-3`,Actions:`ml-auto flex items-center gap-2`},RefinedUpload:{Picker:`flex min-h-[112px] w-full items-center justify-center gap-3 rounded-[10px] border border-dashed border-line bg-surface-alt px-4 py-5 text-left transition-colors hover:bg-soft focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,DropIcon:`size-5 shrink-0 text-muted`,DropTitle:`block font-ui text-[13px] font-medium leading-5 text-body`,Description:`mt-1 block font-ui text-[12px] leading-5 text-muted`,Queue:`mt-2 flex flex-col gap-2`,File:`grid grid-cols-[16px_minmax(0,1fr)_auto] items-center gap-x-2.5 gap-y-3 rounded-[10px] border border-line bg-surface p-3`,FileName:`block truncate font-ui text-[13px] font-medium leading-5 text-body`,FileMeta:`mt-0.5 flex min-w-0 flex-wrap items-center gap-x-1 font-ui text-[12px] leading-4 text-muted [&>span]:min-w-0 [&>span]:max-w-full [&>span]:truncate`,FileEditor:`relative col-span-3 grid min-w-0 grid-cols-1 gap-3 pt-3`,EditorField:`flex min-w-0 flex-col gap-1.5`,EditorLabel:`font-ui text-[12px] font-medium leading-4 text-muted`,EditorInput:`h-8 w-full min-w-0 rounded-lg border border-line bg-surface px-2.5 font-ui text-[13px] leading-5 text-body shadow-none outline-none placeholder:text-faint hover:border-faint focus:border-accent focus:ring-1 focus:ring-accent/20`},CompactDialog:{Layer:`hb-compact-dialog-layer`,Native:`hb-compact-dialog-layer hb-compact-dialog-native`,Panel:`hb-compact-dialog-panel`,Content:`p-6`,Header:`flex items-start gap-3 px-6 pb-5 pt-6`,Title:`m-0 mb-1.5 font-ui text-[15px] font-semibold leading-[23px] text-[var(--hb-compact-dialog-title)]`,Description:`m-0 font-ui text-[15px] font-[450] leading-[23px] text-[var(--hb-compact-dialog-text)]`,Body:`min-h-0 overflow-y-auto px-6`,Footer:`flex shrink-0 justify-end gap-2 px-6 pb-6 pt-5`,Actions:`mt-5 flex justify-end gap-2`,Button:`hb-compact-dialog-button`,Cancel:`hb-compact-dialog-cancel`,Confirm:`hb-compact-dialog-confirm`,Danger:`hb-compact-dialog-danger`,Credentials:`flex flex-col gap-3.5 px-6 pb-6`,FormActions:`mt-1.5 flex justify-end gap-2`},Dialog:{UploadPanel:`mx-auto flex max-h-[calc(100vh-8rem)] w-full max-w-[560px] flex-col overflow-hidden rounded-panel border border-line bg-surface shadow-[var(--hb-dialog-shadow)]`,UploadHeader:`flex flex-none items-start gap-3 px-5 pb-4 pt-5`,UploadTitle:`m-0 font-ui text-title font-medium leading-6 text-ink`,UploadDescription:`mt-1 font-ui text-label leading-5 text-muted`,UploadBody:`min-h-0 overflow-y-auto px-5 pb-5`,UploadFooter:`flex flex-none items-center gap-2 border-t border-line px-5 py-3`,UploadPicker:`flex min-h-16 items-center gap-3 rounded-control border border-dashed border-line bg-surface-alt px-3 py-2`,UploadFileInput:`hidden`,UploadIcon:`grid size-8 shrink-0 place-items-center rounded-control border border-line bg-surface text-muted`,UploadCopy:`min-w-0 flex-1`,UploadDropTitle:`block font-ui text-ui-body font-normal leading-5 text-ink`,UploadFormats:`mt-1 block font-ui text-label leading-4 text-muted`,UploadChoose:`shrink-0`,Root:`fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-overlay px-6 py-8`,Panel:`mx-auto flex w-full max-w-[560px] flex-col overflow-hidden rounded-panel border border-line bg-surface shadow-[var(--hb-dialog-shadow)] [animation:hb-fade-in_160ms_ease-out]`,Header:`flex items-start gap-3 px-5 pb-4 pt-5`,HeaderIcon:`grid h-8 w-8 flex-none place-items-center rounded-panel bg-soft text-muted`,HeaderBody:`min-w-0 flex-1`,Title:`m-0 font-ui text-title font-medium leading-6 text-ink`,Description:X(Y.UiSmall,`mt-1 text-muted`),Close:`grid h-7 w-7 flex-none place-items-center rounded-full border-0 bg-transparent text-muted transition hover:bg-soft hover:text-ink`,Body:`px-5 pb-4`,ImportArea:`flex flex-col gap-2`,Picker:`relative flex min-h-[76px] items-center justify-center gap-2.5 rounded-panel border border-dashed border-faint/70 bg-surface-alt px-4 text-muted transition hover:border-accent`,Dropzone:`relative flex min-h-[154px] flex-col items-center justify-center rounded-panel border border-dashed border-faint/60 bg-surface-alt px-6 text-center transition hover:border-accent`,FileInput:`absolute inset-0 z-10 cursor-pointer opacity-0 disabled:cursor-default`,DropIcon:`mb-3 grid h-10 w-10 place-items-center rounded-panel bg-soft text-muted`,DropTitle:X(Y.UiLarge,`font-normal text-ink`),DropDescription:X(Y.MetadataLarge,`text-faint`),Queue:`flex flex-col gap-1.5`,QueueLabel:X(Y.UiSmall,`text-muted`),File:`grid grid-cols-[16px_minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 rounded-control border border-line bg-surface px-3 py-2`,FileIgnored:`opacity-45`,FileDone:`opacity-65`,FileError:`bg-danger/5`,FileIcon:`text-muted`,FileBody:`min-w-0 flex-1`,FileName:`block truncate font-ui text-ui-body font-normal leading-5 text-ink`,FileNameIgnored:`line-through`,FileMeta:X(`font-ui text-label leading-4`,`mt-1 flex min-w-0 flex-wrap items-center gap-x-1 gap-y-1 text-muted [&>span]:min-w-0 [&>span]:max-w-full [&>span]:break-all`),FileWarning:`inline-flex items-center gap-1 text-muted [&_svg]:shrink-0`,FileActions:`ml-auto flex min-h-6 flex-none items-center gap-1`,FileStatus:X(Y.UiSmall,`inline-flex items-center gap-1.5 px-1.5 text-muted`),EditButton:X(Y.UiSmall,`inline-flex h-7 items-center gap-1.5 rounded-control border-0 bg-transparent px-2 text-muted hover:bg-soft hover:text-ink`),FileEditor:`relative col-span-3 grid min-w-0 grid-cols-1 gap-3 pt-3 sm:grid-cols-2`,EditorField:`flex min-w-0 flex-col gap-1.5`,EditorLabel:`font-ui text-detail font-normal leading-4 text-muted`,EditorInput:X(mu,hu.lg,`font-ui`),Notice:X(Y.UiSmall,`mt-3 rounded-panel bg-soft px-3 py-2 text-body`),Footer:`flex items-center gap-2 border-t border-line px-5 py-3`,FooterHint:X(Y.Metadata,`text-muted`),FooterActions:`ml-auto flex items-center gap-2`}},Z={ignoredBaseline:`baseline.ignored`,deleteBaseline:`baseline.delete`,module:{root:`module`,loading:`module.loading`,baseline:`view.baseline`,tasks:`view.tasks`,changes:`module.changes`,code:`module.code`},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}`,taskCoverage:`task.coverage`,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`,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}`},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`,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`},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`},Eu=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Du(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Eu(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Ou=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},ku=e=>{let t=Ou(e);return t.charAt(0).toUpperCase()+t.slice(1)},Au=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ju={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 Mu(e){return e!=null}function Nu(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ju.width,a=e.size??e.height??ju.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?Au(...c):Au(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ju[`stroke-width`])*Number(e.size??e.width??ju.width)/Number(t.size??t.width??ju.width):t.strokeWidth??ju[`stroke-width`];return[`svg`,{...Object.entries(ju).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Mu(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Mu(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Mu(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 Pu(e,t={}){return Nu(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Fu=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Iu=(0,f.createContext)({}),Lu=()=>(0,f.useContext)(Iu),Ru=(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=``}=Lu()??{},b=!!c||Fu(d),[x,S,C=[]]=Pu(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:Au(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 zu(e,t=[],n=[]){let r=typeof e==`string`?Du(e,t,n):e,i=(0,f.forwardRef)(({className:e,...t},n)=>(0,f.createElement)(Ru,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ku(r.name)),i}var Bu={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Bu.node;var Vu=zu(Bu),Hu={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Hu.node;var Uu=zu(Hu),Q={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Q.node;var Wu=zu(Q),Gu={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Gu.node;var Ku=zu(Gu),qu={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};qu.node;var Ju=zu(qu),Yu={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`]};Yu.node;var Xu=zu(Yu),Zu={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`]};Zu.node;var Qu=zu(Zu),$u={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`]};$u.node;var ed=zu($u),td={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`]};td.node;var nd=zu(td),rd={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};rd.node;var id=zu(rd),ad={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};ad.node;var od=zu(ad),sd={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`}]]};sd.node;var cd=zu(sd),ld={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`}]]};ld.node;var ud=zu(ld),dd={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`]};dd.node;var fd=zu(dd),pd={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`}]]};pd.node;var md=zu(pd),hd={name:`fold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]};hd.node;var gd=zu(hd),_d={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`}]]};_d.node;var vd=zu(_d),$={name:`git-compare`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]};$.node;var yd=zu($),bd={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`}]]};bd.node;var xd=zu(bd),Sd={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`}]]};Sd.node;var Cd=zu(Sd),wd={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`]};wd.node;var Td=zu(wd),Ed={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Ed.node;var Dd=zu(Ed),Od={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Od.node;var kd=zu(Od),Ad={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Ad.node;var jd=zu(Ad),Md={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`]};Md.node;var Nd=zu(Md),Pd={name:`rows-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]],aliases:[`rows`]};Pd.node;var Fd=zu(Pd),Id={name:`unfold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]};Id.node;var Ld=zu(Id),Rd={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Rd.node;var zd=zu(Rd);function Bd({message:e,variant:t=`info`,duration:n=4e3,revision:r,onDismiss:i}){let a=(0,f.useRef)(null),o=(0,f.useRef)(r),[s,c]=(0,f.useState)(!1),[l,u]=(0,f.useState)(!1),[d,p]=(0,f.useState)(null),m=d===r,h=s||l;return(0,f.useEffect)(()=>{if(o.current===r||(o.current=r,matchMedia(`(prefers-reduced-motion: reduce)`).matches))return;let e=a.current?.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:800});return()=>e?.cancel()},[r]),(0,f.useEffect)(()=>{if(!n||h)return;let e=setTimeout(()=>p(r),n);return()=>clearTimeout(e)},[n,r,h]),(0,f.useEffect)(()=>{if(!m)return;let e=setTimeout(i,matchMedia(`(prefers-reduced-motion: reduce)`).matches?0:200);return()=>clearTimeout(e)},[m,i]),(0,V.jsx)(`div`,{className:Tu.Notification.Motion,"data-closing":m||void 0,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>u(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||u(!1)},children:(0,V.jsxs)(`div`,{"data-testid":Z.message,ref:a,className:Tu.Notification.Card,"data-variant":t,children:[(0,V.jsx)(`span`,{className:t===`success`?Tu.Notification.SuccessIcon:t===`error`?Tu.Notification.ErrorIcon:Tu.Notification.InfoIcon,children:t===`success`?(0,V.jsx)(Vu,{size:11,strokeWidth:3,"aria-hidden":!0}):t===`error`?(0,V.jsx)(Xu,{size:16,"aria-hidden":!0}):(0,V.jsx)(Cd,{size:16,"aria-hidden":!0})}),(0,V.jsx)(`div`,{className:Tu.Notification.Content,children:(0,V.jsx)(`div`,{role:t===`error`?`alert`:`status`,"aria-atomic":`true`,className:Tu.Notification.Title,children:e})}),(0,V.jsx)(`button`,{type:`button`,className:Tu.Notification.Close,"aria-label":`关闭通知`,onClick:()=>p(r),children:(0,V.jsx)(zd,{size:12,"aria-hidden":!0})})]})})}function Vd(){let e=Ki(ou),t=(0,f.useSyncExternalStore)(e.subscribe,e.getSnapshot);return t?(0,Bi.createPortal)((0,V.jsx)(`div`,{className:Tu.Notification.Viewport,role:`region`,"aria-label":`通知`,children:(0,V.jsx)(Bd,{...t,onDismiss:()=>e.dismiss(t.id,t.revision)},t.id)}),document.body):null}function Hd({index:e,total:t,onPrev:n,onNext:r,noun:i=`用例`,vertical:a=!0,bounded:o=!1,ids:s={previous:Z.previous,next:Z.next}}){let c=a?Ju:Wu,l=a?Uu:Ku;return(0,V.jsxs)(`div`,{className:`stage-nav`,onKeyDown:i=>{i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||![`ArrowUp`,`ArrowDown`].includes(i.key)||(i.preventDefault(),i.stopPropagation(),!(t<=1)&&(i.key===`ArrowUp`&&(!o||e>0)&&n(),i.key===`ArrowDown`&&(!o||e<t-1)&&r()))},children:[(0,V.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":s.previous,"aria-label":`上一个${i}`,title:`上一个${i}`,disabled:t<=1||o&&e===0,onClick:n,children:(0,V.jsx)(c,{size:14,strokeWidth:1.5})}),(0,V.jsxs)(`span`,{className:`stage-index`,"data-testid":s.position,children:[e+1,` / `,t]}),(0,V.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":s.next,"aria-label":`下一个${i}`,title:`下一个${i}`,disabled:t<=1||o&&e===t-1,onClick:r,children:(0,V.jsx)(l,{size:14,strokeWidth:1.5})})]})}function Ud(e){let t=(0,f.useRef)(e);t.current=e,(0,f.useEffect)(()=>{let e=()=>{t.current()};return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[])}var Wd=(e,t)=>JSON.stringify([e,t]);function Gd(e,t,n){return e.flatMap(e=>{let r=[];for(let n of t.filter(t=>t.namespace===e.id)){let t=n.item.current??n.item.baseline,i=t.treePath.length?t.treePath:[{key:t.id,display:t.name}],a=r,o=[e.id];for(let e of i.slice(0,-1)){o.push(e.key);let t=`folder:${JSON.stringify(o)}`,n=a.find(e=>e.key===t);n||(n={key:t,label:e.display,kind:`folder`,children:[]},a.push(n)),a=n.children}a.push({key:n.key,label:i.at(-1).display+(n.ignored?`(已忽略)`:``),kind:`case`})}return n?r:[{key:`namespace:${e.id}`,label:e.name,kind:`namespace`,namespace:e.id,children:r}]})}function Kd(e){let t={};for(let n of e){let e=n.change===`unavailable`?[`unavailable`]:n.snapshots.length?n.snapshots.map(e=>e.change):[n.change];n.change===`modified`&&!e.some(e=>e!==`same`)&&e.push(`modified`);for(let n of e)t[n]=(t[n]??0)+1}return t}function qd(e,t){if(e.running)return`running`;if(e.total>0&&e.failed===e.total)return`failed`;if(e.failed>0)return`partial`;if(t.unavailable>0)return`unavailable`;let n=[`added`,`modified`,`deleted`].filter(e=>t[e]>0);return n.length?n.length>1||n[0]===`modified`?`changed`:n[0]===`added`?`added`:`deleted`:`same`}function Jd(e){let t=e.filter(e=>e.current);return{failed:t.filter(e=>e.current.result.status===`failed`).length,total:t.length}}var Yd={running:{icon:Dd,className:`is-running`,label:`报告生成中`},failed:{icon:nd,className:`is-danger`,label:`执行失败,不能合并到基线`},partial:{icon:ud,className:`is-changed`,label:`部分用例执行失败`},unavailable:{icon:Xu,className:`is-danger`,label:`未采集快照,无法比较`},added:{icon:jd,className:`is-added`,label:`新增,待验收`},deleted:{icon:kd,className:`is-danger`,label:`删除,待验收`},changed:{icon:ud,className:`is-changed`,label:`修改或混合变更,待验收`},same:{icon:Qu,className:`is-success`,label:`无变更`},unknown:{icon:ed,className:`is-unknown`,label:`尚未比较`}};function Xd({status:e,size:t=13}){let{icon:n,className:r,label:i}=Yd[e];return(0,V.jsx)(n,{size:t,className:`task-status ${r}`,role:`img`,"aria-label":i,"data-testid":Z.taskStatus(e),children:(0,V.jsx)(`title`,{children:i})})}function Zd(e){return new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e))}function Qd(e){return!Number.isFinite(e)||e<=0?`—`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}var $d={added:`新增`,modified:`修改`,deleted:`删除`,same:`相同`,unavailable:`未采集`,passed:`通过`,failed:`失败`,skipped:`跳过`,interrupted:`中断`,running:`运行中`},ef=Wd;function tf({items:e}){return(0,V.jsx)(Xd,{status:qd(Jd(e),Kd(e)),size:12})}function nf(e,t,n,r,i){return rf(Gd(e,t,n),t,n,r,i)}function rf(e,t,n,r,i){let a=new Map(t.map(e=>[e.key,e]));function o(e){return e.flatMap(e=>{if(e.kind!==`case`){let t=o(e.children??[]);return e.kind===`folder`&&!t.length?[]:[{key:e.key,label:e.label,children:t,icon:e.kind===`namespace`?(0,V.jsx)(Td,{size:12}):(0,V.jsx)(vd,{size:12}),testId:e.kind===`namespace`?Z.namespace(e.namespace):Z.folder(e.key)}]}let t=a.get(e.key);if(!t)return[];let s=t.item.current??t.item.baseline,c=n&&t.item.change!==`unavailable`&&t.item.current?.result.status!==`failed`;return[{key:e.key,label:e.label,danger:t.ignored,title:t.file||s.name,testId:Z.case(s.id),checkboxTestId:Z.select(s.id),icon:n?(0,V.jsx)(tf,{items:[t.item]}):s.snapshots?.some(e=>e.type===`image`)?(0,V.jsx)(xd,{size:12}):(0,V.jsx)(md,{size:12}),...c?{checkbox:{checked:r.has(t.key),label:`选择 ${s.name}`,onChange:()=>i(t.key)}}:{},trailing:n&&t.item.current?.result.durationMs!==void 0?(0,V.jsx)(`span`,{className:`task-row-duration`,children:Qd(t.item.current.result.durationMs)}):void 0}]})}let s=o(e);function c(e){return e.flatMap(e=>e.children?c(e.children):[t.find(t=>t.key===e.key).item])}function l(e){for(let t of e)if(t.children){let e=c(t.children);if(n&&(t.icon=(0,V.jsx)(tf,{items:e})),t.collapsedTrailing=(0,V.jsx)(`span`,{className:`path-folder-count`,children:e.length}),n){let e=t=>t.flatMap(t=>t.children?e(t.children):t.checkbox?[t]:[]),n=e(t.children);t.checkboxTestId=Z.selectFolder(t.key);let a=n.filter(e=>r.has(e.key)).length;n.length&&(t.checkbox={checked:a===n.length?!0:a?`mixed`:!1,label:`选择 ${t.label}`,onChange:e=>{for(let t of n)r.has(t.key)!==e&&i(t.key)}})}l(t.children)}}return l(s),s}function af(e){return e.flatMap(e=>e.children?[e.key,...af(e.children)]:[])}var of=`inline-flex select-none items-center justify-center gap-1.5 whitespace-nowrap font-ui font-medium leading-4 transition-colors duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,sf={sm:`h-6 rounded-full px-2.5 text-label`,md:`h-7 rounded-full px-3 text-ui-body`,lg:`h-8 rounded-full px-3 text-ui-body`},cf={primary:`border border-transparent bg-accent text-accent-contrast shadow-[var(--hb-panel-shadow)] hover:bg-accent-hover`,secondary:`border border-transparent bg-control text-body shadow-[var(--hb-control-shadow)] hover:bg-control-hover`,ghost:`bg-transparent text-muted hover:bg-soft hover:text-ink active:bg-soft`,danger:`bg-danger text-white hover:bg-danger/90 active:bg-danger/85`},lf=`inline-flex items-center gap-1 border-0 bg-transparent p-0 font-ui text-label leading-4 text-accent underline decoration-accent underline-offset-4 transition-colors duration-100 hover:text-ink focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,uf=(0,f.forwardRef)(function({className:e,size:t=`md`,type:n=`button`,variant:r=`primary`,...i},a){return(0,V.jsx)(`button`,{...i,className:df(r===`link`?lf:`${of} ${sf[t]} ${cf[r]}`,e),ref:a,type:n})});function df(...e){return e.filter(Boolean).join(` `)}function ff(e,t,n){let r=Ki(nu),i=(0,f.useRef)(n);i.current=n;let a=n.map(({id:e,keybinding:t})=>`${e}:${t}`).join(`|`);(0,f.useEffect)(()=>{if(!t)return;let n=r.registerCommands(e,i.current.map(e=>({...e,run:()=>i.current.find(t=>t.id===e.id)?.run()})));return()=>n.dispose()},[r,e,t,a])}function pf(e){if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], [role="menu"], [role="listbox"], [role="tablist"], dialog, [role="dialog"]`))return 0;let t=window.getSelection();return t&&!t.isCollapsed?0:e.key===`ArrowUp`?-1:1}var mf=`modulepreload`,hf=function(e){return`/`+e},gf={},_f=function(e){return e.pathname.endsWith(`.css`)},vf=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},yf=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=hf(t,n);let r=s(t),i=_f(r);return vf(gf,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:mf,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function bf({path:e,original:t,modified:n,unified:r,expandAll:i}){let a=(0,f.useRef)(null),o=(0,f.useRef)(null),s=(0,f.useRef)({unified:r,expandAll:i});s.current={unified:r,expandAll:i};let[c,l]=(0,f.useState)(!1),[u,d]=(0,f.useState)(``);(0,f.useEffect)(()=>{let r=!1,i=[],c=()=>{o.current=null;for(let e of i.splice(0).reverse())e.dispose()};return l(!1),d(``),yf(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-Dq3bzBUw.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3])).then(async({monaco:c,languageForPath:u})=>{if(r||!a.current)return;let d=u(e);if(await c.editor.colorize(``,d,{}),r||!a.current)return;let f=c.editor.createModel(t,d);i.push(f);let p=c.editor.createModel(n,d);i.push(p),c.editor.colorizeModelLine(f,f.getLineCount()),c.editor.colorizeModelLine(p,p.getLineCount());let m=c.editor.createDiffEditor(a.current,{readOnly:!0,originalEditable:!1,theme:`vs`,automaticLayout:!0,fontSize:12,lineHeight:22,fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-metadata`).trim(),renderSideBySide:!s.current.unified,useInlineViewWhenSpaceIsLimited:!1,hideUnchangedRegions:{enabled:!s.current.expandAll},ignoreTrimWhitespace:!1,renderValidationDecorations:`off`,renderMarginRevertIcon:!1});i.push(m),o.current=m;let h=m.onDidUpdateDiff(()=>l(m.getLineChanges()!==null));i.push(h),m.setModel({original:f,modified:p}),m.getOriginalEditor().getDomNode()?.setAttribute(`data-testid`,Z.diffOriginal),m.getModifiedEditor().getDomNode()?.setAttribute(`data-testid`,Z.diffModified)}).catch(e=>{c(),r||d(e instanceof Error?e.message:String(e))}),()=>{r=!0,c()}},[e,t,n]),(0,f.useEffect)(()=>{o.current?.updateOptions({renderSideBySide:!r,hideUnchangedRegions:{enabled:!i}})},[r,i]);let p=Math.max(t.split(`
28
+ `).length,n.split(`
29
+ `).length);return(0,V.jsxs)(`div`,{className:`code-diff-editor`,"data-testid":Z.diffEditor,"data-mode":r?`unified`:`split`,"aria-busy":!c&&!u,"aria-label":`${e} 代码差异`,style:{"--diff-preview-height":`${Math.min(420,Math.max(120,p*22+24))}px`},children:[(0,V.jsx)(`div`,{ref:a,className:`code-diff-host`}),u?(0,V.jsx)(`p`,{className:`code-diff-loading`,role:`alert`,children:u}):!c&&(0,V.jsx)(`p`,{className:`code-diff-loading`,role:`status`,children:`正在读取差异…`})]})}function xf({title:e,titleText:t,leading:n,badge:r,metadata:i,actions:a}){return(0,V.jsxs)(`header`,{className:`report-page-header`,"data-testid":Z.pageHeader,children:[n&&(0,V.jsx)(`div`,{className:`report-page-leading`,children:n}),(0,V.jsxs)(`h1`,{className:`report-page-title`,title:t??(typeof e==`string`?e:void 0),children:[(0,V.jsx)(`span`,{className:`report-page-title-text`,children:e}),r]}),i&&(0,V.jsx)(`div`,{className:`report-page-metadata`,"data-testid":Z.headerMetadata,children:i}),a&&(0,V.jsx)(`div`,{className:`report-page-actions`,children:a})]})}var Sf=`inline-grid flex-none select-none place-items-center border-0 transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,Cf={sm:`size-6 rounded-full [&_svg]:size-3.5`,md:`size-7 rounded-full [&_svg]:size-3.5`,lg:`size-8 rounded-full [&_svg]:size-4`},wf={ghost:`bg-transparent text-muted hover:bg-soft hover:text-ink active:bg-soft`,subtle:`bg-transparent text-muted hover:bg-soft hover:text-body active:bg-soft`,soft:`bg-soft text-muted hover:bg-selected hover:text-ink active:bg-selected`},Tf=(0,f.forwardRef)(function({className:e,size:t=`md`,type:n=`button`,variant:r=`ghost`,...i},a){return(0,V.jsx)(`button`,{...i,className:Ef(Sf,Cf[t],wf[r],e),ref:a,type:n})});function Ef(...e){return e.filter(Boolean).join(` `)}function Df({label:e,onClose:t,onKeyDown:n,children:r,header:i}){let a=(0,f.useRef)(null);return(0,f.useEffect)(()=>{let e=a.current;return e.showModal(),e.querySelector(`[role="tab"][aria-selected="true"]`)?.focus(),()=>e.close()},[]),(0,V.jsxs)(`dialog`,{"data-testid":Z.dialog.root,ref:a,className:`report-viewer report-dialog`,"aria-label":e,onCancel:e=>{e.preventDefault(),t()},onClick:e=>{e.target===e.currentTarget&&t()},onKeyDown:e=>{e.stopPropagation(),n?.(e)},children:[i?(0,V.jsxs)(`div`,{className:`report-dialog-header`,children:[i,(0,V.jsx)(Tf,{"data-testid":Z.dialog.close,className:`report-dialog-close`,"aria-label":`关闭弹窗`,onClick:t,children:(0,V.jsx)(zd,{})})]}):(0,V.jsx)(Tf,{"data-testid":Z.dialog.close,className:`report-dialog-close`,"aria-label":`关闭弹窗`,onClick:t,children:(0,V.jsx)(zd,{})}),r]})}function Of({options:e,value:t,onChange:n,label:r,appearance:i=`segments`,groupTestId:a,thumbTestId:o}){let s=(0,f.useRef)(null),[c,l]=(0,f.useState)(null);function u(){let e=s.current,t=e?.querySelector(`[role="tab"][aria-selected="true"]`);if(!e||!t){l(null);return}let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={left:r.left-n.left,top:r.top-n.top,width:r.width,height:r.height};l(e=>e&&e.left===i.left&&e.top===i.top&&e.width===i.width&&e.height===i.height?e:i)}return(0,f.useLayoutEffect)(()=>{i===`filters`?u():l(null)},[t,i,e.length]),(0,f.useEffect)(()=>{if(i!==`filters`||!s.current)return;let e=new ResizeObserver(()=>u());return e.observe(s.current),()=>e.disconnect()},[i]),(0,V.jsxs)(`div`,{ref:s,"data-testid":a,className:X(Tu.Segmented.Control,`report-filters`,i===`filters`&&`report-filter-pills`),role:`tablist`,"aria-label":r,children:[i===`filters`&&c?(0,V.jsx)(`span`,{"aria-hidden":`true`,"data-testid":o,className:`report-filter-thumb`,style:{transform:`translate(${c.left}px, ${c.top}px)`,width:c.width,height:c.height}}):null,e.map((r,a)=>(0,V.jsxs)(`button`,{"data-testid":r.testId,type:`button`,role:`tab`,className:Tu.Segmented.Option,"aria-selected":t===r.value,tabIndex:t===r.value?0:-1,onClick:()=>n(r.value),onKeyDown:t=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(t.key))return;t.preventDefault(),t.stopPropagation();let r=t.key===`Home`?0:t.key===`End`?e.length-1:(a+(t.key===`ArrowRight`?1:-1)+e.length)%e.length;n(e[r].value),t.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)[r]?.focus()},children:[(0,V.jsx)(`span`,{className:`report-option-label`,children:r.label}),r.count!==void 0&&(i===`filters`||r.count>0)?(0,V.jsx)(`span`,{className:`report-option-count`,children:r.count}):null]},r.value))]})}var kf=o(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;i!==`object`&&i!==`function`||Object.isFrozen(r)||n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=new RegExp(y(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],(e[0]===`(`||/^\(\?[<']/.test(e[0]))&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ee=I(`//`,`$`),L=I(`/\\*`,`\\*/`),te=I(`#`,`$`),R=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:L,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:{scope:`number`,begin:O,relevance:0},C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:te,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:D,relevance:0},NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:{scope:`title`,begin:T,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:E,relevance:0}});function z(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ne(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function re(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=z,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ie(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function ae(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function oe(e,t){e.relevance===void 0&&(e.relevance=1)}var se=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ce=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],le=`keyword`;function ue(e,t,n=le){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ue(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,de(n[0],n[1])]})}}function de(e,t){return t?Number(t):+!fe(e)}function fe(e){return ce.includes(e.toLowerCase())}var pe={},me=e=>{console.error(e)},he=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ge=(e,t)=>{pe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),pe[`${e}/${t}`]=!0)},_e=Error();function ve(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ye(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw me(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),_e;if(typeof e.beginScope!=`object`||e.beginScope===null)throw me(`beginScope must be object`),_e;ve(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function be(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw me(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),_e;if(typeof e.endScope!=`object`||e.endScope===null)throw me(`endScope must be object`),_e;ve(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function xe(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Se(e){xe(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),ye(e),be(e)}function Ce(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ne,ae,Se,se].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[re,ie,oe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ue(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Te(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function Te(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Ee=`11.12.0`,De=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Oe=i,ke=a,Ae=Symbol(`nomatch`),je=7,Me=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(he(s.replace(`{}`,n[1])),he(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(ge(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ge(`10.7.0`,`Please use highlight(code, options) instead.
30
+ https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};te(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,te(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=je&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(L=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Ae;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}if(r.type===`end`){let e=C(r);if(e!==Ae)return e}if(r.type===`illegal`&&a===``)return r.index===n.length||(P+=`
31
+ `),1;if(ee>1e5&&ee>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw me(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Ce(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,ee=0,L=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){ee++,L?L=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Oe(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Oe(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Oe(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(te(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new De(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),te(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=ke(l,e)}let E=()=>{k(),ge(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),ge(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}document.readyState===`loading`?(O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0):document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(me(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)me(e);else throw e;i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ee(e){I(e),a.push(e)}function L(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function te(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function z(e){return ge(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ge(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:z,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:ke,addPlugin:ee,removePlugin:L}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Ee,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in R)typeof R[e]==`object`&&n(R[e]);return Object.assign(e,R),e},Ne=Me({});Ne.newInstance=()=>Me({}),t.exports=Ne,Ne.HighlightJS=Ne,Ne.default=Ne})),Af=o(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:`css`}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:`javascript`}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),jf=o(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),b=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}t.exports=n})),Mf=o(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:t.concat(/\batomic_/,t.either(`bool`,`char`,`schar`,`uchar`,`short`,`ushort`,`int`,`uint`,`long`,`ulong`,`llong`,`ullong`,`char16_t`,`char32_t`,`wchar_t`,`int_least8_t`,`uint_least8_t`,`int_least16_t`,`uint_least16_t`,`int_least32_t`,`uint_least32_t`,`int_least64_t`,`uint_least64_t`,`int_fast8_t`,`uint_fast8_t`,`int_fast16_t`,`uint_fast16_t`,`int_fast32_t`,`uint_fast32_t`,`int_fast64_t`,`uint_fast64_t`,`intptr_t`,`uintptr_t`,`size_t`,`ptrdiff_t`,`intmax_t`,`uintmax_t`),/\b/)}]},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},s={className:`number`,variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={scope:`meta`,begin:/#\s*include\b/,end:/$/,keywords:{keyword:`include`},contains:[{begin:/\\\n/},o,{scope:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),n,e.C_BLOCK_COMMENT_MODE]},u=[c,l],d={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+`\\s*\\(`,p={keyword:`asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma`.split(`.`),type:`float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary`.split(`.`),literal:`true false NULL`,built_in:`std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr`},m=[...u,a,n,e.C_BLOCK_COMMENT_MODE,s,o],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,contains:m.concat([`self`]),relevance:0}]),relevance:0},g={begin:`(`+i+`[\\*&\\s]+){1,12}`+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:p,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(d,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,...u]};return{name:`C`,aliases:[`h`],keywords:p,disableAutodetect:!0,illegal:`</`,contains:[].concat(h,g,m,[...u,{begin:e.IDENT_RE+`::`,keywords:p},{className:`class`,beginKeywords:`enum class struct union`,end:/[{;:<>=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:p}}}t.exports=n})),Nf=o(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},c=[{scope:`meta`,begin:/#\s*include\b/,end:/$/,keywords:{keyword:`include`},contains:[{begin:/\\\n/},o,{scope:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),n,e.C_BLOCK_COMMENT_MODE]}],l={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},u=t.optional(r)+e.IDENT_RE+`\\s*\\(`,d=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),f=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],p=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),m=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),h={type:f,keyword:d,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:p},g={className:`function.dispatch`,relevance:0,keywords:{_hint:m},begin:t.concat(/\b/,`(?!${d.join(`|`)})`,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[g,...c,a,n,e.C_BLOCK_COMMENT_MODE,s,o],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:h,contains:_.concat([{begin:/\(/,end:/\)/,keywords:h,contains:_.concat([`self`]),relevance:0}]),relevance:0},y={className:`function`,begin:`(`+i+`[\\*&\\s]+){1,12}`+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:h,relevance:0},{begin:u,returnBegin:!0,contains:[l],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,...c]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:h,illegal:`</`,classNameAliases:{"function.dispatch":`built_in`},contains:[].concat(v,y,g,_,[...c,{begin:`\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)`,end:`>`,keywords:h,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),Pf=o(((e,t)=>{function n(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while`.split(`.`).concat(`add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a=`([uU][lL]?|[lL][uU]?)?`,o={className:`number`,variants:[{begin:`\\b0[bB]_*[01](_*[01])*`+a},{begin:`(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*`+a},{begin:`(-?)(\\b\\d(_*\\d)*(\\.(\\d(_*\\d)*)?)?|\\.\\d(_*\\d)*)([eE][-+]?\\d(_*\\d)*)?([fFdDmM]|[uU][lL]?|[lL][uU]?)?`}],relevance:0},s={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(c,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[s,p,f,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:`<!--|-->`},{begin:`</?`,end:`>`}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef warning error line region endregion pragma checksum`}},h,o,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:`^\\s*\\[(?=[\\w])`,excludeBegin:!0,end:`\\]`,excludeEnd:!0,contains:[{className:`string`,begin:/"/,end:/"/}]},{beginKeywords:`new return throw await else`,relevance:0},{className:`function`,begin:`(`+_+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,o,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),Ff=o(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function u(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u=/@-?\w[\w]*(-\w+)*/,d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+c.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,r.UNICODE_RANGE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...d,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...d,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=u})),If=o(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},c={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,r,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),Lf=o(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),Rf=o(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:`alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},c=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],l={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,l]})]}]},d=`[0-9](_?[0-9])*`,f={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},p={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[p]},{begin:`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[u,{begin:n}],relevance:0},f,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,c),relevance:0}].concat(s,c);l.contains=m,p.contains=m;let h=[{begin:/^\s*=>/,starts:{end:`$`,contains:m}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:m}}];return c.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(h,c,m)}}t.exports=n})),zf=o(((e,t)=>{function n(e){let t={keyword:[`break`,`case`,`chan`,`const`,`continue`,`default`,`defer`,`else`,`fallthrough`,`for`,`func`,`go`,`goto`,`if`,`import`,`interface`,`map`,`package`,`range`,`return`,`select`,`struct`,`switch`,`type`,`var`],type:[`bool`,`byte`,`complex64`,`complex128`,`error`,`float32`,`float64`,`int8`,`int16`,`int32`,`int64`,`string`,`uint8`,`uint16`,`uint32`,`uint64`,`int`,`uint`,`uintptr`,`rune`],literal:[`true`,`false`,`iota`,`nil`],built_in:[`append`,`cap`,`close`,`complex`,`copy`,`imag`,`len`,`make`,`new`,`panic`,`print`,`println`,`real`,`recover`,`delete`]};return{name:`Go`,aliases:[`golang`],keywords:t,illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:`number`,variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:`function`,beginKeywords:`func`,end:`\\s*(\\{|$)`,excludeEnd:!0,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}t.exports=n})),Bf=o(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),Vf=o(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:`literal`,begin:/\bon|off|true|false|yes|no\b/},o={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:`'''`,end:`'''`,relevance:10},{begin:`"""`,end:`"""`,relevance:10},{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},c=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(c,`(\\s*\\.\\s*`,c,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),Hf=o(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=`(?:(?:\\s*\\[\\s*])+)?`,i=`(?:\\?(?:\\s+(?:extends|super)\\s+[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*<@@@>(?:(?:\\s*\\[\\s*])+)?)?|[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*<@@@>(?:(?:\\s*\\[\\s*])+)?)`,s=o(`(?:\\s*<\\s*`+i+`(?:\\s*,\\s*`+i+`)*\\s*>)?`,/<@@@>/g,2),c={keyword:`synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},l={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},u={className:`params`,begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{beginKeywords:`new throw return else yield assert`,relevance:0},{begin:[n,t.concat(s,r,/\s+/),n,r,/\s*/,/=(?!=)/],className:{1:`type`,3:`variable`,6:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(s,r,/\s+/),n,/\s*(?=\()/],className:{1:`type`,3:`title.function`},keywords:c,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,l]}}t.exports=s})),Uf=o(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`self`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},d=n,f={begin:`<>`,end:`</>`},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);((i=a.match(/^\s*=/))||(i=a.match(/^\s+extends\s+/))&&i.index===0)&&t.ignoreMatch()}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:d+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},j={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},M={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function F(e){return t.concat(`(?!`,e.join(`|`),`)`)}let I={match:t.concat(/\b/,F([...s,`super`,`import`,`await`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},te=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,R={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(te)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:j},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,j,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},R,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:te,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},N,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},I,P,A,L,{match:/\$[(.]/}]}}t.exports=u})),Wf=o(((e,t)=>{var n={scope:`number`,match:`([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity`,relevance:0};function r(e){let t={className:`attr`,begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:`punctuation`,relevance:0},i=[`true`,`false`,`null`],a={scope:`literal`,beginKeywords:i.join(` `)};return{name:`JSON`,aliases:[`jsonc`,`json5`],keywords:{literal:i},contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=r})),Gf=o(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={keyword:`abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual`,built_in:`Byte Short Char Int Long Boolean Float Double Void Unit Nothing`,literal:`true false null`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let c={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},l={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},u=a,d=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=f;return p.variants[1].contains=[f],f.variants[1].contains=[p],{name:`Kotlin`,aliases:[`kt`,`kts`,`ktm`,`ktx`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,d,n,r,c,l,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin:/</,end:/>/,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,c,l,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,l]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:`
32
+ `},u]}}t.exports=o})),Kf=o(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse(),u=s.concat(c).sort().reverse();function d(e){let t=n(e),r=u,i=`([\\w-]+|@\\{[\\w-]+\\})`,d=[],f=[],p=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},m=function(e,t,n){return{className:e,begin:t,relevance:n}},h={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},g={begin:`\\(`,end:`\\)`,contains:f,keywords:h,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p(`'`),p(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.UNICODE_RANGE,t.HEXCOLOR,g,m(`variable`,`@@?[\\w-]+`,10),m(`variable`,`@\\{[\\w-]+\\}`),m(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let _=f.concat({begin:/\{/,end:/\}/,contains:d}),v={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(f)},y={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:f}}]},b={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:h,returnEnd:!0,contains:f,relevance:0}},x={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:_}},S={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,m(`keyword`,`all\\b`),m(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,m(`selector-tag`,i,0),m(`selector-id`,`#`+i),m(`selector-class`,`\\.`+i,0),m(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+c.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:`!important`},t.FUNCTION_DISPATCH]},C={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[S]};return d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,x,C,y,S,v,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:d}}t.exports=d})),qf=o(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],relevance:10})];return{name:`Lua`,aliases:[`pluto`],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:`true false nil`,keyword:`and break do else elseif end for goto if in local global not or repeat return then until while`,built_in:`_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove`},contains:i.concat([{className:`function`,beginKeywords:`function`,end:`\\)`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),{className:`params`,begin:`\\(`,endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),Jf=o(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:`variable`,begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:`subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value`},contains:[t,n]},i={begin:`^`+e.UNDERSCORE_IDENT_RE+`\\s*(?=[:+?]?=)`},a={className:`meta`,begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:`.PHONY`}},o={className:`section`,begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:`Makefile`,aliases:[`mk`,`mak`,`make`],keywords:{$pattern:/[\w-]+/,keyword:`define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath`},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}t.exports=n})),Yf=o(((e,t)=>{function n(e){let t=e.regex,n=`abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:`number`,variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,a,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},p=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),m=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:u,variants:[{begin:`q[qwxr]?\\s*\\(`,end:`\\)`,relevance:5},{begin:`q[qwxr]?\\s*\\[`,end:`\\]`,relevance:5},{begin:`q[qwxr]?\\s*\\{`,end:`\\}`,relevance:5},{begin:`q[qwxr]?\\s*\\|`,end:`\\|`,relevance:5},{begin:`q[qwxr]?\\s*<`,end:`>`,relevance:5},{begin:`qw\\s+q`,end:`q`,relevance:5},{begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:`-?\\w+\\s*=>`,relevance:0}]},l,{begin:`(\\/\\/|`+e.RE_STARTERS_RE+`|\\b(split|return|print|reverse|grep)\\b)\\s*`,keywords:`split return print reverse grep`,relevance:0,contains:[e.HASH_COMMENT_MODE,{className:`regexp`,variants:[{begin:f(`s|tr|y`,t.either(...d,{capture:!0}))},{begin:f(`s|tr|y`,`\\(`,`\\)`)},{begin:f(`s|tr|y`,`\\[`,`\\]`)},{begin:f(`s|tr|y`,`\\{`,`\\}`)}],relevance:2},{className:`regexp`,variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p(`(?:m|qr)?`,/\//,/\//)},{begin:p(`m|qr`,t.either(...d,{capture:!0}),/\1/)},{begin:p(`m|qr`,/\(/,/\)/)},{begin:p(`m|qr`,/\[/,/\]/)},{begin:p(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=m,o.contains=m,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:m}}t.exports=n})),Xf=o(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,keyword:`while.export.sizeof.typedef.const.struct.for.union.volatile.static.mutable.if.do.return.goto.enum.else.break.extern.asm.case.default.register.explicit.typename.switch.continue.inline.readonly.assign.readwrite.self.@synchronized.id.typeof.nonatomic.IBOutlet.IBAction.strong.weak.copy.in.out.inout.bycopy.byref.oneway.__strong.__weak.__block.__autoreleasing.@private.@protected.@public.@try.@property.@end.@throw.@catch.@finally.@autoreleasepool.@synthesize.@dynamic.@selector.@optional.@required.@encode.@package.@import.@defs.@compatibility_alias.__bridge.__bridge_transfer.__bridge_retained.__bridge_retain.__covariant.__contravariant.__kindof._Nonnull._Nullable._Null_unspecified.__FUNCTION__.__PRETTY_FUNCTION__.__attribute__.getter.setter.retain.unsafe_unretained.nonnull.nullable.null_unspecified.null_resettable.class.instancetype.NS_DESIGNATED_INITIALIZER.NS_UNAVAILABLE.NS_REQUIRES_SUPER.NS_RETURNS_INNER_POINTER.NS_INLINE.NS_AVAILABLE.NS_DEPRECATED.NS_ENUM.NS_OPTIONS.NS_SWIFT_UNAVAILABLE.NS_ASSUME_NONNULL_BEGIN.NS_ASSUME_NONNULL_END.NS_REFINED_FOR_SWIFT.NS_SWIFT_NAME.NS_SWIFT_NOTHROW.NS_DURING.NS_HANDLER.NS_ENDHANDLER.NS_VALUERETURN.NS_VOIDRETURN`.split(`.`),literal:[`false`,`true`,`FALSE`,`TRUE`,`nil`,`YES`,`NO`,`NULL`],built_in:[`dispatch_once_t`,`dispatch_queue_t`,`dispatch_sync`,`dispatch_async`,`dispatch_once`],type:[`int`,`float`,`char`,`unsigned`,`signed`,`short`,`long`,`double`,`wchar_t`,`unichar`,`void`,`bool`,`BOOL`,`id|0`,`_Bool`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`</`,contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,variants:[{begin:`@"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]}]},{className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),{className:`string`,begin:/<.*?>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),Zf=o(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
33
+ ]`,m={scope:`string`,variants:[u,l,d,f]},h={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},g=[`false`,`null`,`true`],_=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),v=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},w={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h,x]},E={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(E);let D=[w,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h,x],O={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...D]},...D,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,E,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:[`self`,O,o,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},m,h]}}t.exports=n})),Qf=o(((e,t)=>{function n(e){return{name:`PHP template`,subLanguage:`xml`,contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:`php`,contains:[{begin:`/\\*`,end:`\\*/`,skip:!0},{begin:`b"`,end:`"`,skip:!0},{begin:`b'`,end:`'`,skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}t.exports=n})),$f=o(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),ep=o(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},c={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l=`[0-9](_?[0-9])*`,u=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,d=`\\b|${r.join(`|`)}`,f={className:`number`,relevance:0,variants:[{begin:`(\\b(${l})|(${u}))[eE][+-]?(${l})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${l})[jJ](?=${d})`}]},p={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,f,c,e.HASH_COMMENT_MODE]}]};return o.contains=[c,f,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,f,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},c,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,c]}]}}t.exports=n})),tp=o(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),np=o(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,keyword:`function if in break next repeat else for while`,literal:`NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10`,built_in:`LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm`},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:`doctag`,match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:`doctag`,begin:`@param`,end:/$/,contains:[{scope:`variable`,variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:`doctag`,match:/@[a-zA-Z]+/},{scope:`keyword`,match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:`"`,end:`"`,relevance:0},{begin:`'`,end:`'`,relevance:0}]},{relevance:0,variants:[{scope:{1:`operator`,2:`number`},match:[i,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),rp=o(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={scope:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(16|32|64|128))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.raw.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),c=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],l=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),u=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f16`,`f32`,`f64`,`f128`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:u,keyword:s,literal:c,built_in:l},illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:`symbol`,begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:`string`,variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:`char.escape`,match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:`number`,variants:[{begin:`\\b0b([01_]+)`+o},{begin:`\\b0o([0-7_]+)`+o},{begin:`\\b0x([A-Fa-f0-9_]+)`+o},{begin:`\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)`+o}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:`keyword`,3:`keyword`}},{begin:[/fn/,/\s+/,r],scope:{1:`keyword`,3:`title.function`}},{scope:`meta`,begin:`#!?\\[`,end:`\\]`,contains:[{scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],scope:{1:`keyword`,3:`keyword`,4:`variable`}},{begin:[/for/,/\s+/,r,/\s+/,/in/],scope:{1:`keyword`,3:`variable`,5:`keyword`}},{begin:[/type/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}},{begin:e.IDENT_RE+`::`,keywords:{keyword:`Self`,built_in:l,type:u}},{scope:`punctuation`,begin:`->`},a]}}t.exports=n})),ip=o(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function u(e){let t=n(e),r=c,i=s,u=`@[a-z-]+`,d={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},d,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`},{begin:`\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b`},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,d,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:u,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:u,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=u})),ap=o(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),op=o(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),c=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],l=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),u=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),d=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],f=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],p=u,m=[...l,...c].filter(e=>!u.includes(e)),h={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},g={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let y={scope:`keyword`,match:v(f),relevance:0};function b(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{scope:`type`,match:v(o)},y,_,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}t.exports=n})),sp=o(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}new RegExp(o(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),c=[`Protocol`,`Type`].map(s),l=[`init`,`self`].map(s),u=[`Any`,`Self`],d=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],f=[`false`,`nil`,`true`],p=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],m=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],h=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),g=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),_=o(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=i(g,_,`*`),y=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=i(y,b,`*`),S=i(/[A-Z]/,b,`*`),C=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,x,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],w=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function T(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],g={match:[/\./,o(...c,...l)],className:{2:`keyword`}},y={match:i(/\./,o(...d)),relevance:0},T=d.filter(e=>typeof e==`string`).concat([`_|0`]),E={variants:[{className:`keyword`,match:o(...d.filter(e=>typeof e!=`string`).concat(u).map(s),...l)}]},D={$pattern:o(/\b\w+/,/#\w+/),keyword:T.concat(m),literal:f},O=[g,y,E],k=[{match:i(/\./,o(...h)),relevance:0},{className:`built_in`,match:i(/\b/,o(...h),/(?=\()/)}],A={match:/->/,relevance:0},j=[A,{className:`operator`,relevance:0,variants:[{match:v},{match:`\\.(\\.|${_})+`}]}],M=`([0-9]_*)+`,N=`([0-9a-fA-F]_*)+`,P={className:`number`,relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0x(${N})(\\.(${N}))?([pP][+-]?(${M}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},F=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),I=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ee=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),L=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[F(e),I(e),ee(e)]}),te=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[F(e),ee(e)]}),R={className:`string`,variants:[L(),L(`#`),L(`##`),L(`###`),te(),te(`#`),te(`##`),te(`###`)]},z=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ne={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:z},re=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...z,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},ie={scope:`regexp`,variants:[re(`###`),re(`##`),re(`#`),ne]},ae={match:i(/`/,x,/`/)},oe=[ae,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${b}+`}],se=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...j,P,R]}]}},{scope:`keyword`,match:i(/@/,o(...C),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,x)}],ce={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,`+`)},{className:`type`,match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(S)),relevance:0}]},le={begin:/</,end:/>/,keywords:D,contains:[...a,...O,...se,A,ce]};ce.contains.push(le);let ue={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:[`self`,{match:i(x,/\s*:/),keywords:`_|0`,relevance:0},...a,ie,...O,...k,...j,P,R,...oe,...se,ce]},de={begin:/</,end:/>/,keywords:`repeat each`,contains:[...a,ce]},fe={begin:/\(/,end:/\)/,keywords:D,contains:[{begin:o(r(i(x,/\s*:/)),r(i(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:x}]},...a,...O,...j,P,R,...se,ce,ue],endsParent:!0,illegal:/["']/},pe={match:[/(func|macro)/,/\s+/,o(ae.match,x,v)],className:{1:`keyword`,3:`title.function`},contains:[de,fe,t],illegal:[/\[/,/%/]},me={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[de,fe,t],illegal:/\[|%/},he={match:[/operator/,/\s+/,v],className:{1:`keyword`,3:`title`}},ge={begin:[/precedencegroup/,/\s+/,S],className:{1:`keyword`,3:`title`},contains:[ce],keywords:[...p,...f],end:/}/},_e={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},ve={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},ye={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,x,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:D,contains:[de,...O,{begin:/:/,end:/\{/,keywords:D,contains:[{scope:`title.class.inherited`,match:S},...O],relevance:0}]};for(let e of R.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=D;let n=[...O,...k,...j,P,R,...oe];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:D,contains:[...a,pe,me,_e,ve,ye,he,ge,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},ie,...O,...k,...j,P,R,...oe,...se,ce,ue]}}t.exports=T})),cp=o(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},o={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},l={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:`\\n`,relevance:0},d={begin:`\\[`,end:`\\]`,contains:[l],illegal:`\\n`,relevance:0},f=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},c,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},u,d,a,o],p=[...f];return p.pop(),p.push(s),l.contains=p,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:f}}t.exports=n})),lp=o(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`self`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},d=n,f={begin:`<>`,end:`</>`},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);((i=a.match(/^\s*=/))||(i=a.match(/^\s+extends\s+/))&&i.index===0)&&t.ignoreMatch()}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:d+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},j={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},M={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function F(e){return t.concat(`(?!`,e.join(`|`),`)`)}let I={match:t.concat(/\b/,F([...s,`super`,`import`,`await`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},te=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,R={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(te)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:j},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,j,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},R,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:te,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},N,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},I,P,A,L,{match:/\$[(.]/}]}}function d(e){let t=e.regex,a=u(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],d={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},f={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},p={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},m={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:l.concat(s),"variable.language":c},h={className:`meta`,begin:`@`+o},g=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,m),a.exports.PARAMS_CONTAINS.push(h);let _=a.contains.find(e=>e.scope===`attr`),v=Object.assign({},_,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,_,v]),a.contains=a.contains.concat([h,d,f,v]),g(a,`shebang`,e.SHEBANG()),g(a,`use_strict`,p);let y=a.contains.find(e=>e.label===`func.def`);return y.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=d})),up=o(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:`number`,relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:`label`,begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:`doctag`,begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:`Visual Basic .NET`,aliases:[`vb`],case_insensitive:!0,classNameAliases:{label:`symbol`},keywords:{keyword:`addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield`,built_in:`addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort`,type:`boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort`,literal:`true false nothing`},illegal:`//|\\{|\\}|endif|gosub|variant|wend|^\\$ `,contains:[n,r,c,l,u,d,f,{className:`meta`,begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:`const disable else elseif enable end externalsource if region then`},contains:[f]}]}}t.exports=n})),dp=o(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`anyfunc,block,br,br_if,br_table,call,call_indirect,data,drop,elem,else,end,export,func,global.get,global.set,local.get,local.set,local.tee,get_global,get_local,global,if,import,local,loop,memory,memory.grow,memory.size,module,mut,nop,offset,param,result,return,select,set_global,set_local,start,table,tee_local,then,type,unreachable`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{className:`keyword`,match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:`number`,relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}t.exports=n})),fp=l(o(((e,t)=>{var n=kf();n.registerLanguage(`xml`,Af()),n.registerLanguage(`bash`,jf()),n.registerLanguage(`c`,Mf()),n.registerLanguage(`cpp`,Nf()),n.registerLanguage(`csharp`,Pf()),n.registerLanguage(`css`,Ff()),n.registerLanguage(`markdown`,If()),n.registerLanguage(`diff`,Lf()),n.registerLanguage(`ruby`,Rf()),n.registerLanguage(`go`,zf()),n.registerLanguage(`graphql`,Bf()),n.registerLanguage(`ini`,Vf()),n.registerLanguage(`java`,Hf()),n.registerLanguage(`javascript`,Uf()),n.registerLanguage(`json`,Wf()),n.registerLanguage(`kotlin`,Gf()),n.registerLanguage(`less`,Kf()),n.registerLanguage(`lua`,qf()),n.registerLanguage(`makefile`,Jf()),n.registerLanguage(`perl`,Yf()),n.registerLanguage(`objectivec`,Xf()),n.registerLanguage(`php`,Zf()),n.registerLanguage(`php-template`,Qf()),n.registerLanguage(`plaintext`,$f()),n.registerLanguage(`python`,ep()),n.registerLanguage(`python-repl`,tp()),n.registerLanguage(`r`,np()),n.registerLanguage(`rust`,rp()),n.registerLanguage(`scss`,ip()),n.registerLanguage(`shell`,ap()),n.registerLanguage(`sql`,op()),n.registerLanguage(`swift`,sp()),n.registerLanguage(`yaml`,cp()),n.registerLanguage(`typescript`,lp()),n.registerLanguage(`vbnet`,up()),n.registerLanguage(`wasm`,dp()),n.HighlightJS=n,n.default=n,t.exports=n}))()).default;function pp({code:e,language:t}){let n=e.replace(/\r?\n$/,``),r=n.split(`
34
+ `).length,i=(0,f.useMemo)(()=>t&&fp.getLanguage(t)?fp.highlight(n,{language:t,ignoreIllegals:!0}).value:void 0,[n,t]);return(0,V.jsxs)(`pre`,{className:`e2e-source numbered-source`,tabIndex:0,children:[(0,V.jsx)(`span`,{className:`source-line-numbers`,"aria-hidden":`true`,"data-testid":Z.sourceLineNumbers,children:Array.from({length:r},(e,t)=>t+1).join(`
35
+ `)}),i===void 0?(0,V.jsx)(`code`,{children:n}):(0,V.jsx)(`code`,{dangerouslySetInnerHTML:{__html:i}})]})}function mp({item:e,namespace:t,taskId:n,version:r,index:i,total:a,onPrev:o,onNext:s,onApprove:c,batchSelected:l=!1,titleInHeader:u=!1,navigationInHeader:d=!1,busy:p,changes:m=!1,openHandle:h}){let[g,_]=(0,f.useState)(null),v=Ki(iu),y=Ki(ou),b=e.current??e.baseline,x=(e,t)=>t===`baseline`?e.baseline?.url:t===`diff`?e.diffUrl:e.current?.url,S=!n&&!m,C=[...e.snapshots.map(e=>({key:`snapshot:${e.id}`,props:{snapshot:e,oldUrl:e.baseline?x(e,`baseline`):void 0,newUrl:e.current?x(e,`current`):void 0,diffUrl:e.diffFile?x(e,`diff`):void 0,baselineOnly:S}})),...(m?[]:e.current?.observations??[]).map((e,t)=>({key:`observation:${t}`,props:{content:e,observationIndex:t,newUrl:e.url,baselineOnly:!1}}))];function w(e){let t=e.props.snapshot?.baseline,n=e.props.content??e.props.snapshot?.current;return t?.type===`text`||n?.type===`text`?t?.type===`image`||n?.type===`image`?[]:[t&&e.props.oldUrl?`Baseline`:``,n&&e.props.newUrl?`Current`:``,t&&n&&e.props.snapshot?.change===`modified`?`Unified`:``,t&&n&&e.props.snapshot?.change===`modified`?`Split`:``].filter(Boolean):[t?.type===`image`&&e.props.oldUrl?`Baseline`:``,n?.type===`image`&&e.props.newUrl?`Current`:``,e.props.diffUrl?`Diff`:``].filter(Boolean)}function T(e,t){let n=C.find(t=>t.key===e);if(n){let r=w(n);_({key:e,kind:t??(r.includes(`Unified`)?`Unified`:r[0])})}}function E(){C[0]&&T(C[0].key)}let D=C.findIndex(e=>e.key===g?.key),O=C[D],k=O?.props.content??O?.props.snapshot?.current??O?.props.snapshot?.baseline,A=k?.name??``,j=O?.props.snapshot,M=j?.change,N=O?w(O):[],P=Math.max(0,N.indexOf(g?.kind??``)),F=N[P],I=e=>{let t=C[D+e];t&&T(t.key)},ee=e=>{let t=N[P+e];g&&t&&_({...g,kind:t})};return(0,f.useEffect)(()=>{_(null)},[e.id,n,t]),(0,f.useEffect)(()=>(h&&(h.current=()=>E()),()=>{h&&(h.current=()=>{})})),ff(`snapshotViewer`,!g,[{id:`open`,keybinding:G.Enter,run:()=>E()}]),(0,V.jsxs)(`div`,{"data-testid":Z.detail,className:`task-scene-detail snapshot-detail`,tabIndex:-1,onKeyDown:e=>{let t=pf(e);t&&(e.preventDefault(),e.stopPropagation(),t<0?o():s())},onPointerDown:e=>{e.target.closest(`button, input, textarea, select, a, [contenteditable="true"], dialog`)||e.currentTarget.focus({preventScroll:!0})},children:[(0,V.jsxs)(`div`,{className:`snapshot-detail-scroll file-detail-sections`,children:[!u&&(0,V.jsxs)(`div`,{className:`case-introduction`,children:[(0,V.jsx)(`h1`,{children:b.treePath.map(e=>e.display).join(` / `)||b.name}),(0,V.jsxs)(`div`,{className:`case-introduction-actions`,children:[!d&&(0,V.jsx)(Hd,{index:i,total:a,onPrev:o,onNext:s}),c&&(0,V.jsx)(uf,{"data-testid":Z.approve,variant:l?`secondary`:e.change===`deleted`?`danger`:`primary`,size:`sm`,disabled:p||e.change===`unavailable`||e.current?.result.status===`failed`,title:e.current?.result.status===`failed`?`用例执行失败,不能合并到基线`:void 0,onClick:c,children:e.change===`deleted`?`删除该基线`:`合并到基线`})]})]}),e.current&&!m&&(0,V.jsxs)(`section`,{className:`snapshot-task-info`,"data-testid":Z.taskInfo,children:[(0,V.jsx)(`h2`,{children:`任务信息`}),(0,V.jsxs)(`dl`,{children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`dt`,{children:`执行结果`}),(0,V.jsx)(`dd`,{children:$d[e.current.result.status]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`dt`,{children:`耗时`}),(0,V.jsx)(`dd`,{children:e.current.result.durationMs===void 0?`—`:`${Math.round(e.current.result.durationMs)} ms`})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`dt`,{children:`执行 ID`}),(0,V.jsxs)(`dd`,{className:`task-info-id-value`,children:[(0,V.jsx)(`span`,{className:`mono`,title:n,"data-testid":Z.taskExecutionId,children:n.slice(0,8)}),(0,V.jsx)(`button`,{type:`button`,className:`report-header-icon task-info-id-copy`,"data-testid":Z.copyTaskExecutionId,title:`复制执行 ID`,"aria-label":`复制执行 ID`,onClick:async()=>{try{await v.writeText(n),y.show(`已复制执行 ID`,{variant:`success`})}catch{y.show(`复制失败,请检查浏览器剪贴板权限。`,{variant:`error`})}},children:(0,V.jsx)(cd,{size:12})})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`dt`,{children:`Case ID`}),(0,V.jsxs)(`dd`,{className:`task-info-id-value`,children:[(0,V.jsx)(`span`,{className:`mono`,"data-testid":Z.caseId,children:e.id}),(0,V.jsx)(`button`,{type:`button`,className:`report-header-icon task-info-id-copy`,"data-testid":Z.copyCaseIds,title:`复制执行 ID 和 Case ID`,"aria-label":`复制执行 ID 和 Case ID`,onClick:async()=>{try{await v.writeText(`执行 ID: ${n}\nCase ID: ${e.id}`),y.show(`已复制执行 ID 和 Case ID`,{variant:`success`})}catch{y.show(`复制失败,请检查浏览器剪贴板权限。`,{variant:`error`})}},children:(0,V.jsx)(cd,{size:12})})]})]})]}),e.current.result.errors?.map((e,t)=>(0,V.jsx)(`pre`,{className:`e2e-error`,"data-testid":Z.taskError,children:gp(e)},t))]}),(0,V.jsxs)(`section`,{className:`snapshot-content file-section`,"data-testid":Z.snapshotContent,children:[(0,V.jsx)(`h2`,{children:`快照`}),e.snapshots.map(e=>(0,V.jsx)(hp,{snapshot:e,oldUrl:e.baseline?x(e,`baseline`):void 0,newUrl:e.current?x(e,`current`):void 0,diffUrl:e.diffFile?x(e,`diff`):void 0,baselineOnly:S,onView:t=>T(`snapshot:${e.id}`,t)},e.id)),!e.snapshots.length&&(0,V.jsx)(`p`,{className:`e2e-muted`,children:e.change===`unavailable`?`本次未采集快照集合。`:`没有快照。`})]}),e.current&&!m&&(0,V.jsxs)(`section`,{className:`file-section`,"data-testid":Z.supplement,children:[(0,V.jsx)(`h2`,{children:`任务诊断`}),e.current.observations.map((e,t)=>{let n=e.url;return(0,V.jsx)(hp,{observationIndex:t,content:e,newUrl:n,baselineOnly:!1,onView:()=>T(`observation:${t}`)},t)}),!e.current.observations.length&&(0,V.jsx)(`p`,{className:`e2e-muted`,children:`没有诊断附件。`})]})]}),g&&O&&(0,V.jsx)(Df,{label:A,onClose:()=>_(null),onKeyDown:e=>{e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),e.key===`ArrowUp`&&I(-1),e.key===`ArrowDown`&&I(1),e.key===`ArrowLeft`&&ee(-1),e.key===`ArrowRight`&&ee(1))},header:(0,V.jsx)(xf,{title:(0,V.jsx)(`span`,{"data-testid":Z.preview.title,children:A}),titleText:A,badge:j&&M&&!S?(0,V.jsx)(`span`,{className:`file-change is-${M}`,title:M===`same`?`未变化`:$d[M],"aria-label":M===`same`?`未变化`:$d[M],"data-testid":Z.snapshotStatus(j.id),children:{added:`A`,deleted:`D`,modified:`M`,same:`E`,unavailable:`?`}[M]}):void 0,leading:k?.type===`image`?(0,V.jsx)(xd,{size:14}):(0,V.jsx)(md,{size:14}),metadata:(0,V.jsx)(V.Fragment,{children:N.length>1&&(0,V.jsx)(`div`,{className:`file-preview-versions`,"data-testid":Z.preview.version,"data-version":F,children:(0,V.jsx)(Of,{label:`预览方式`,groupTestId:Z.preview.tabs,value:F,onChange:e=>_({...g,kind:e}),options:N.map(e=>({value:e,label:{Baseline:`基线`,Current:`当前`,Diff:`差异图`,Unified:`行内差异`,Split:`并排差异`}[e],testId:Z.previewTab(e)}))})})})}),children:(0,V.jsx)(`div`,{className:`file-preview-stage`,"data-testid":Z.preview.card,children:(0,V.jsx)(hp,{...O.props,enlarged:!0,previewKind:F,onView:()=>{}},O.key)})})]})}function hp({snapshot:e,content:t,oldUrl:n,newUrl:r,diffUrl:i,baselineOnly:a,observationIndex:o,onView:s,enlarged:c=!1,previewKind:l}){let u=o!==void 0,d=e?.id??`observation-${o}`,f=e?.baseline,p=t??e?.current,m=p??f,h=m.type===`image`,g=!a&&e?.change===`modified`,_=g&&f?.type===`image`&&p?.type===`image`,v=g&&f?.type===`text`&&p?.type===`text`,y=g&&f&&p&&f.type!==p.type,b=[f?.body??``,p?.body??``],x=Ki(iu),S=Ki(ou),C=(e?.current??e?.baseline)?.col??4,w=e?.maxDiffPixels??e?.current?.maxDiffPixels??e?.baseline?.maxDiffPixels??0,T=e?.change??`same`,E={added:`A`,deleted:`D`,modified:`M`,same:`E`,unavailable:`?`}[T],D=l===`Baseline`||a||!p?`Baseline`:`Current`,O=v&&(!c||l===`Unified`||l===`Split`),k=l?[{kind:l,src:l===`Baseline`?n:l===`Diff`?i:r}]:_?[{kind:`Baseline`,src:n},{kind:`Current`,src:r},...i?[{kind:`Diff`,src:i}]:[]]:[{kind:D,src:D===`Baseline`?n:r}];function A(e){let t=e===`Baseline`?f:p;return t?.width&&t?.height&&t.width>0&&t.height>0?{width:t.width,height:t.height}:void 0}function j(e,t,n=!1){return(0,V.jsxs)(`figure`,{className:`file-image-version`,children:[n&&(0,V.jsx)(`figcaption`,{"data-testid":Z.imageVersion(d,t),children:t===`Baseline`?`基线`:t===`Diff`?`差异图`:`当前`}),e?(0,V.jsx)(`button`,{className:`file-image-button`,"data-testid":Z.visual.stage.zoom(t),onClick:e=>{e.stopPropagation(),s(t)},disabled:c,children:(0,V.jsx)(`img`,{src:e,alt:`${m.name} — ${t===`Baseline`?`基线`:t===`Diff`?`差异图`:`当前`}`,draggable:!1,width:A(t)?.width,height:A(t)?.height,"data-testid":u?Z.image(d,`observation`):Z.visual.stage.image(t)})}):(0,V.jsx)(`p`,{className:`e2e-muted`,children:`没有该版本的内容`})]},t)}let M=b[D===`Baseline`?0:1];return(0,V.jsxs)(`section`,{className:`file-card${h?` is-image`:` is-text`}${_&&!c?` is-image-comparison`:``}${c?` is-enlarged`:``}`,style:{"--snapshot-col":C,"--image-columns":k.length,"--file-gutter":`${Math.max(24,String(Math.max(...b.map(e=>e.split(`
36
+ `).length))).length*8)}px`},tabIndex:c?void 0:0,"aria-haspopup":c?void 0:`dialog`,"aria-label":c?void 0:`${m.name},打开卡片预览`,onClick:c?void 0:e=>{if(e.target.closest(`button, a, input, textarea, select, [contenteditable="true"]`))return;let t=window.getSelection();(!t||t.isCollapsed||!e.currentTarget.contains(t.anchorNode)&&!e.currentTarget.contains(t.focusNode))&&s()},onKeyDown:c?void 0:e=>{e.target.closest(`button, a, input, textarea, select, [contenteditable="true"]`)||(e.key===`Enter`||e.key===` `&&e.target===e.currentTarget)&&(e.preventDefault(),e.stopPropagation(),s())},"data-testid":u?Z.observation(o):Z.snapshot(d),children:[!c&&(0,V.jsxs)(`div`,{className:`file-card-head`,children:[h?(0,V.jsx)(xd,{size:14,className:`file-kind-icon`}):(0,V.jsx)(md,{size:14,className:`file-kind-icon`}),(0,V.jsx)(`div`,{className:`file-card-name`,children:(0,V.jsx)(`h3`,{title:m.name,children:m.name})}),!u&&!a&&(0,V.jsx)(`span`,{className:`file-change is-${T}`,title:T===`same`?`未变化`:$d[T],"aria-label":T===`same`?`未变化`:$d[T],"data-testid":Z.snapshotStatus(d),children:E})]}),(0,V.jsx)(`div`,{className:`file-card-body`,children:y?(0,V.jsx)(`div`,{className:`file-type-change`,children:[{value:f,src:n,kind:`Baseline`,text:b[0]},{value:p,src:r,kind:`Current`,text:b[1]}].map(({value:e,src:t,kind:n,text:r})=>(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`div`,{className:`file-version-label`,children:n===`Baseline`?`基线`:`当前`}),e.type===`image`?j(t,n):(0,V.jsx)(pp,{code:r,language:e.language})]},n))}):h?(0,V.jsx)(`div`,{className:`file-card-images`,children:k.map(({src:e,kind:t})=>j(e,t,!c&&_))}):(0,V.jsx)(`div`,{"data-testid":Z.text(d),children:O?(0,V.jsx)(`div`,{className:`e2e-source-diff`,"data-testid":Z.snapshotDiff(d),"data-mode":l===`Split`?`split`:`unified`,children:(0,V.jsx)(bf,{path:`snapshot.${m.language??`txt`}`,original:b[0],modified:b[1],unified:l!==`Split`,expandAll:!0})}):(0,V.jsx)(pp,{code:M,language:m.language})})}),h&&!u&&!c?(0,V.jsxs)(`div`,{className:`file-image-metrics`,"data-testid":Z.snapshotMetrics(d),children:[e?.diffPixels!==void 0&&(0,V.jsxs)(`span`,{children:[`差异`,` `,(0,V.jsxs)(`strong`,{className:e.diffPixels>w?`is-exceeded`:``,children:[e.diffPixels,` px`]})]}),(0,V.jsxs)(`span`,{children:[e?.diffPixels===void 0?`允许 `:`(允许 `,(0,V.jsxs)(`strong`,{children:[w,` px`]}),e?.diffPixels===void 0?null:`)`]})]}):!h&&!y&&!c?(0,V.jsxs)(`div`,{className:`e2e-source-foot`,children:[(0,V.jsxs)(`span`,{children:[m.language??`文本`,` · `,M.replace(/\r?\n$/,``).split(`
37
+ `).length,` 行`]}),(0,V.jsx)(`button`,{className:`e2e-text-button`,"data-testid":Z.copy,onClick:async()=>{await x.writeText(M),S.show(`已复制内容`,{variant:`success`})},children:`复制`})]}):null]})}function gp(e){return e.replace(/\u001b\[[0-9;]*m/g,``)}var _p=(0,f.createContext)(null);function vp({orientation:e=`horizontal`,tone:t=`default`,edge:n,inset:r=0,length:i,className:a}){let o=n===`left`||n===`right`?`vertical`:n?`horizontal`:e;return(0,V.jsx)(`span`,{"aria-hidden":`true`,"data-divider":!0,"data-orientation":o,"data-tone":t,"data-edge":n,className:[uu.Root,a].filter(Boolean).join(` `),style:{"--divider-inset":`${r}px`,...i===void 0?{}:{[o===`horizontal`?`width`:`height`]:i,alignSelf:`center`}}})}function yp({label:e,controls:t,value:n,min:r,max:i,defaultValue:a,showDivider:o=!0,inset:s=0,onChange:c}){let l=(0,f.useRef)(void 0),u=(0,f.useRef)(null),d=e=>{let t=e.currentTarget.getBoundingClientRect();u.current?.style.setProperty(`--resize-offset`,`${e.clientY-t.top-t.height/2}px`)},[p,m]=(0,f.useState)(!1),h=e=>c(Math.max(r,Math.min(i,e)));return(0,V.jsxs)(`div`,{role:`separator`,"data-testid":Z.resize,"aria-label":e,"aria-controls":t,"aria-orientation":`vertical`,"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":n,tabIndex:0,className:du.Root,style:{insetBlock:s},"data-resize-handle":!0,"data-dragging":p,onDoubleClick:()=>h(a),onKeyDown:e=>{let t=e.key===`ArrowLeft`?n-16:e.key===`ArrowRight`?n+16:e.key===`Home`?r:e.key===`End`?i:void 0;t!==void 0&&(e.preventDefault(),e.stopPropagation(),h(t))},onPointerEnter:d,onPointerDown:e=>{e.button===0&&(e.preventDefault(),d(e),e.currentTarget.focus(),e.currentTarget.setPointerCapture(e.pointerId),l.current={pointerId:e.pointerId,x:e.clientX,width:n},m(!0))},onPointerMove:e=>{d(e);let t=l.current;t?.pointerId===e.pointerId&&h(t.width+e.clientX-t.x)},onPointerUp:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),l.current=void 0,m(!1)},onLostPointerCapture:()=>{l.current=void 0,m(!1)},onPointerCancel:()=>{l.current=void 0,m(!1)},children:[o&&(0,V.jsx)(vp,{orientation:`vertical`,className:du.Line}),(0,V.jsx)(`span`,{"aria-hidden":!0,ref:u,className:du.Feedback,children:(0,V.jsx)(`span`,{className:du.Gradient})}),p?(0,V.jsx)(`div`,{"aria-hidden":!0,className:du.DragShield}):null]})}function bp({resizeHandleInset:e=0,sidebar:t,children:n,sidebarLabel:r,resizeLabel:i,defaultSidebarWidth:a=260,minSidebarWidth:o=200,maxSidebarWidth:s=480,minContentWidth:c=400,sidebarWidth:l,onSidebarWidthChange:u,expanded:d,onExpandedChange:p,className:m,contentClassName:h,sidebarTestId:g,sidebarId:_}){let v=(0,f.useRef)(null),y=(0,f.useRef)(null),b=(0,f.useRef)(null),x=(0,f.useId)(),S=_??x,[C,w]=(0,f.useState)(a),[T,E]=(0,f.useState)(!1),[D,O]=(0,f.useState)(),k=d??T,A=Math.max(0,o),j=Math.max(A,s),M=D===void 0?j:Math.max(0,D-c),N=Math.max(A,Math.min(j,M)),P=Math.max(A,Math.min(N,l??C)),F=k||M<A;return(0,f.useLayoutEffect)(()=>{let e=v.current;if(!e)return;let t=new ResizeObserver(([e])=>{e&&O(e.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]),(0,f.useLayoutEffect)(()=>{F&&y.current?.contains(document.activeElement)&&b.current?.focus({preventScroll:!0})},[F]),(0,V.jsx)(_p.Provider,{value:{expanded:k,sidebarId:S,toggleExpanded:()=>{E(!k),p?.(!k)}},children:(0,V.jsxs)(`div`,{ref:v,className:X(Tu.SidebarLayout.Root,m),children:[(0,V.jsxs)(`aside`,{ref:y,id:S,"aria-label":r,"aria-hidden":F,inert:F,"data-testid":g,"data-collapsed":F,className:Tu.SidebarLayout.Sidebar,style:{width:F?0:P,visibility:F?`hidden`:`visible`},children:[(0,V.jsx)(`div`,{className:Tu.SidebarLayout.Clip,children:(0,V.jsx)(`div`,{className:Tu.SidebarLayout.Inner,style:{width:P},children:t})}),!F&&(0,V.jsx)(yp,{inset:e,showDivider:!1,label:i,controls:S,value:P,min:A,max:N,defaultValue:a,onChange:e=>{w(e),u?.(e)}})]}),(0,V.jsx)(`section`,{ref:b,tabIndex:-1,className:X(Tu.SidebarLayout.Content,h),children:n})]})})}function xp({active:e,onSelect:t,loading:n=!1}){return(0,V.jsxs)(`nav`,{className:`module-icons`,"aria-label":`工作台模块`,"data-testid":Z.module.root,children:[[[`baseline`,`验收基线`,Td],[`tasks`,`验收记录`,Nd],[`changes`,`基线差异`,yd],[`code`,`代码差异`,id]].map(([n,r,i])=>(0,V.jsx)(`button`,{type:`button`,className:`module-icon`,"data-testid":Z.module[n],"aria-current":e===n?`page`:void 0,"aria-label":r,title:r,onClick:()=>t(n),children:(0,V.jsx)(i,{size:14,"aria-hidden":`true`})},n)),(0,V.jsx)(`span`,{className:`module-loading`,"data-testid":Z.module.loading,"data-loading":n,role:`status`,"aria-label":n?`正在加载`:void 0,children:(0,V.jsx)(Dd,{size:14,"aria-hidden":`true`})})]})}var Sp=typeof window<`u`?f.useLayoutEffect:f.useEffect;function Cp(e){let t=e;for(;t;){if(t.dir)return t.dir===`rtl`;t=t.parentElement}return!1}function wp(){return()=>{}}function Tp(){return(0,f.useSyncExternalStore)(wp,()=>!1,()=>!0)}function Ep(e){return e?.ownerDocument.defaultView??window}function Dp(e){return Ep(e).ResizeObserver??(typeof ResizeObserver<`u`?ResizeObserver:void 0)}function Op(e){if(e!==void 0)switch(typeof e){case`number`:return e;case`string`:if(e.endsWith(`px`))return parseFloat(e)}}function kp({box:e,defaultHeight:t,defaultWidth:n,disabled:r,element:i,mode:a,style:o}){let{styleHeight:s,styleWidth:c}=(0,f.useMemo)(()=>({styleHeight:Op(o?.height),styleWidth:Op(o?.width)}),[o?.height,o?.width]),[l,u]=(0,f.useState)({height:t,width:n}),d=r||a===`only-height`&&s!==void 0||a===`only-width`&&c!==void 0||s!==void 0&&c!==void 0;return Sp(()=>{if(i===null||d)return;let t=Dp(i);if(!t)return;let n=new t(e=>{for(let t of e){let{contentRect:e,target:n}=t;i===n&&u(t=>t.height===e.height&&t.width===e.width?t:{height:e.height,width:e.width})}});return n.observe(i,{box:e}),()=>{n?.unobserve(i)}},[e,d,i,s,c]),(0,f.useMemo)(()=>({height:s??l.height,width:c??l.width}),[l,s,c])}function Ap(e){let t=(0,f.useRef)(()=>{throw Error(`Cannot call an event handler while rendering.`)});return Sp(()=>{t.current=e},[e]),(0,f.useCallback)((...e)=>t.current?.(...e),[t])}var jp=new WeakMap;function Mp(e=!1,t=document){let n=jp.get(t);if(n===void 0||e){let e=t.createElement(`div`),r=e.style;r.width=`50px`,r.height=`50px`,r.overflow=`scroll`,r.direction=`rtl`;let i=t.createElement(`div`),a=i.style;a.width=`100px`,a.height=`100px`,e.appendChild(i),t.body.appendChild(e),e.scrollLeft>0?n=`positive-descending`:(e.scrollLeft=1,n=e.scrollLeft===0?`negative`:`positive-ascending`),t.body.removeChild(e),jp.set(t,n)}return n}function Np({containerElement:e,direction:t,isRtl:n,scrollOffset:r}){if(t===`horizontal`&&n)switch(Mp(!1,e?.ownerDocument??document)){case`negative`:return-r;case`positive-descending`:if(e){let{clientWidth:t,scrollWidth:n}=e;return n-t-r}}return r}function Pp({container:e,element:t,onChange:n}){let r=Ep(t),i=Dp(t),a=r.MutationObserver??(typeof MutationObserver<`u`?MutationObserver:void 0),o=i?new i(n):void 0,s=e=>!e.isConnected||(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)!==0,c=a?new a(e=>{e.some(e=>Array.from(e.addedNodes).some(s)||e.removedNodes.length>0&&e.nextSibling!==null&&s(e.nextSibling))&&(u(),n())}):void 0,l=new Set,u=()=>{for(let e of l)o?.unobserve(e);l.clear(),c?.disconnect();let n=t;for(;n!==e;){let e=n.parentElement;if(e===null)break;if(o)for(let e=n.previousElementSibling;e!==null;e=e.previousElementSibling)l.add(e),o.observe(e);c?.observe(e,{childList:!0}),n=e}};return u(),()=>{o?.disconnect(),c?.disconnect()}}function Fp(e){return e.window===e}function Ip(e,t){return t===`window`?e?Ep(e):null:t??null}function Lp(e,t){return Fp(e)?t===`vertical`?e.scrollY:e.scrollX:t===`vertical`?e.scrollTop:e.scrollLeft}function Rp(e,t){let n=Fp(e)?e.document.scrollingElement??e.document.documentElement:e;return t===`vertical`?n.scrollHeight-n.clientHeight:n.scrollWidth-n.clientWidth}function zp(e,t){let{overflowX:n,overflowY:r}=Ep(e).getComputedStyle(e),i=t===`vertical`?r:n;return i===`visible`||i===`clip`?!1:t===`vertical`?e.scrollHeight-e.clientHeight>1:e.scrollWidth-e.clientWidth>1}function Bp({containerElement:e,direction:t,isRtl:n,scrollTarget:r}){let i=t===`vertical`,a,o;if(Fp(r)){let{documentElement:e}=r.document;a=0,o=i?e.clientHeight:e.clientWidth}else{let e=r.getBoundingClientRect();a=i?e.top+r.clientTop:e.left+r.clientLeft,o=i?r.clientHeight:r.clientWidth}let s=a+o,c=e.getBoundingClientRect(),l=i?c.top+e.clientTop:c.left+e.clientLeft,u=i?e.clientHeight:e.clientWidth,d=l+u,f=Np({containerElement:e,direction:t,isRtl:n,scrollOffset:i?e.scrollTop:e.scrollLeft}),p=!i&&n?d-s:a-l,m=p+o,h=Math.max(0,p),g=Math.min(u,m);return{offset:f+h,size:Math.max(0,g-h),viewportOffset:f+p,viewportSize:o}}function Vp({direction:e,isRtl:t,scrollTarget:n,viewportSize:r}){let i=Fp(n)?n.document.documentElement:n,a=Ep(i).getComputedStyle(i),o=e=>{let t=parseFloat(e??``);return!Number.isFinite(t)||t<0?0:e.endsWith(`px`)?t:e.endsWith(`%`)?t*r/100:0};if(e===`vertical`)return{end:o(a.scrollPaddingBottom),start:o(a.scrollPaddingTop)};let s=o(a.scrollPaddingLeft),c=o(a.scrollPaddingRight);return t?{end:s,start:c}:{end:c,start:s}}function Hp(e,t=`Assertion error`){if(!e)throw console.error(t),Error(t)}function Up(e,t){if(e===t)return!0;if(!!e!=!!t||(Hp(e!==void 0),Hp(t!==void 0),Object.keys(e).length!==Object.keys(t).length))return!1;for(let n in e)if(!Object.hasOwn(t,n)||!Object.is(t[n],e[n]))return!1;return!0}function Wp({cachedBounds:e,itemCount:t,itemSize:n}){if(t===0)return 0;if(typeof n==`number`)return t*n;{let n=e.get(e.size===0?0:e.size-1);return Hp(n!==void 0,`Unexpected bounds cache miss`),t*((n.scrollOffset+n.size)/e.size)}}function Gp({align:e,cachedBounds:t,clamp:n=!0,index:r,itemCount:i,itemSize:a,containerScrollOffset:o,containerSize:s}){if(r<0||r>=i)throw RangeError(`Invalid index specified: ${r}`,{cause:`Index ${r} is not within the range of 0 - ${i-1}`});let c=t.get(r),l=Wp({cachedBounds:t,itemCount:i,itemSize:a}),u=e=>n?Math.max(0,Math.min(l-s,e)):e,d=u(c.scrollOffset),f=n?Math.max(0,c.scrollOffset-s+c.size):c.scrollOffset-s+c.size,p=c.size>s?o>=c.scrollOffset&&o<=f:o>=f&&o<=c.scrollOffset;switch(e===`smart`&&(e=p?`auto`:`center`),e){case`start`:return d;case`end`:return f;case`center`:return u(c.scrollOffset+c.size/2-s/2);default:return p?o:o<f?f:d}}function Kp({cachedBounds:e,containerScrollOffset:t,containerSize:n,itemCount:r,overscanCount:i}){let a=r-1;if(r===0)return{startIndexVisible:0,stopIndexVisible:-1,startIndexOverscan:0,stopIndexOverscan:-1};let o,s,{itemSize:c}=e;if(c!==void 0)c>0?(o=Math.max(0,Math.min(a,Math.floor(t/c))),s=Math.max(o,Math.min(a,Math.ceil((t+n)/c)-1))):(o=0,s=0);else{let r=0,i=Math.min(a,Math.max(0,e.size-1));for(;r<i;){let n=Math.floor((r+i)/2),a=e.get(n);a.scrollOffset+a.size>t?i=n:r=n+1}for(;r<a;){let n=e.get(r);if(n.scrollOffset+n.size>t)break;r++}for(o=r,s=r;s<a;){let r=e.get(s);if(r.scrollOffset+r.size>=t+n)break;s++}}return{startIndexVisible:o,stopIndexVisible:s,startIndexOverscan:Math.max(0,o-i),stopIndexOverscan:Math.min(a,s+i)}}function qp({itemCount:e,itemProps:t,itemSize:n}){let r=new Map;return{itemSize:typeof n==`number`?n:void 0,get(i){if(Hp(i<e,`Invalid index ${i}`),typeof n==`number`)return Hp(i>=0,`Invalid index ${i}`),{size:n,scrollOffset:i*n};for(;r.size-1<i;){let e=r.size,a=n(e,t);if(e===0)r.set(e,{size:a,scrollOffset:0});else{let t=r.get(e-1);Hp(t!==void 0,`Unexpected bounds cache miss for index ${i}`),r.set(e,{scrollOffset:t.scrollOffset+t.size,size:a})}}let a=r.get(i);return Hp(a!==void 0,`Unexpected bounds cache miss for index ${i}`),a},set(e,t){r.set(e,t)},get size(){return r.size}}}function Jp({itemCount:e,itemProps:t,itemSize:n}){return(0,f.useMemo)(()=>qp({itemCount:e,itemProps:t,itemSize:n}),[e,t,n])}function Yp({containerSize:e,itemSize:t}){let n;switch(typeof t){case`string`:Hp(t.endsWith(`%`),`Invalid item size: "${t}"; string values must be percentages (e.g. "100%")`),Hp(e!==void 0,`Container size must be defined if a percentage item size is specified`),n=e*parseFloat(t)/100;break;default:n=t}return typeof n==`number`&&!(Number.isFinite(n)&&n>0)&&(n=0),n}function Xp({containerElement:e,containerStyle:t,defaultContainerSize:n=0,defaultScrollOffset:r=0,direction:i,isRtl:a=!1,itemCount:o,itemProps:s,itemSize:c,onResize:l,overscanCount:u,scrollElement:d}){let p=d!==void 0,m=p?Ip(e,d):e,{height:h=n,width:g=n}=kp({defaultHeight:i===`vertical`?n:void 0,defaultWidth:i===`horizontal`?n:void 0,element:e,mode:i===`vertical`?`only-height`:`only-width`,style:t}),_=(0,f.useRef)({height:0,width:0}),[v,y]=(0,f.useState)(n),b=p?v:i===`vertical`?h:g,x=Yp({containerSize:b,itemSize:c});Sp(()=>{if(typeof l==`function`){let e=_.current;(e.height!==h||e.width!==g)&&(l({height:h,width:g},{...e}),e.height=h,e.width=g)}},[h,l,g]);let S=Jp({itemCount:o,itemProps:s,itemSize:x}),C=Tp(),[w]=(0,f.useState)(()=>C||p?0:r),T=(0,f.useCallback)(e=>S.get(e),[S]),[E,D]=(0,f.useState)(()=>Kp({cachedBounds:S,containerScrollOffset:w,containerSize:b,itemCount:o,overscanCount:u})),{startIndexVisible:O,startIndexOverscan:k,stopIndexVisible:A,stopIndexOverscan:j}={startIndexVisible:Math.min(o-1,E.startIndexVisible),startIndexOverscan:Math.min(o-1,E.startIndexOverscan),stopIndexVisible:Math.min(o-1,E.stopIndexVisible),stopIndexOverscan:Math.min(o-1,E.stopIndexOverscan)},M=(0,f.useCallback)(()=>Wp({cachedBounds:S,itemCount:o,itemSize:x}),[S,o,x]),N=(0,f.useCallback)(t=>{let n=Np({containerElement:e,direction:i,isRtl:a,scrollOffset:t});return Kp({cachedBounds:S,containerScrollOffset:n,containerSize:b,itemCount:o,overscanCount:u})},[S,e,b,i,a,o,u]),P=(0,f.useRef)(!1);Sp(()=>{if(!e||o===0||p||P.current||(P.current=!0,r<=0))return;let t=i===`horizontal`&&Cp(e);if(Np({containerElement:e,direction:i,isRtl:t,scrollOffset:i===`vertical`?e.scrollTop:e.scrollLeft})!==0)return;let n=Np({containerElement:e,direction:i,isRtl:t,scrollOffset:r});typeof e.scrollTo==`function`?e.scrollTo({behavior:`instant`,[i===`vertical`?`top`:`left`]:n}):i===`vertical`?e.scrollTop=n:e.scrollLeft=n},[e,o]),Sp(()=>{if(p&&e&&m)return;let t=e&&!p?N(i===`vertical`?e.scrollTop:e.scrollLeft):Kp({cachedBounds:S,containerScrollOffset:w,containerSize:b,itemCount:o,overscanCount:u});D(e=>Up(t,e)?e:t)},[S,e,b,i,N,w,p,o,u,m]),Sp(()=>{if(!e||p)return;let t=()=>{D(t=>{let{scrollLeft:n,scrollTop:r}=e,s=Np({containerElement:e,direction:i,isRtl:a,scrollOffset:i===`vertical`?r:n}),c=Kp({cachedBounds:S,containerScrollOffset:s,containerSize:b,itemCount:o,overscanCount:u});return Up(c,t)?t:c})};return e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`scroll`,t)}},[S,e,b,i,a,p,o,u]);let F=Ap(()=>{if(!e||!m)return;let{offset:t,size:n,viewportSize:r}=Bp({containerElement:e,direction:i,isRtl:a,scrollTarget:m});y(r);let s=Kp({cachedBounds:S,containerScrollOffset:t,containerSize:n,itemCount:o,overscanCount:u});D(e=>Up(s,e)?e:s)});return Sp(()=>{p&&F()}),Sp(()=>{if(!p||!e||!m)return;let t=Ep(e),n=()=>F();m.addEventListener(`scroll`,n,{passive:!0}),e.addEventListener(`scroll`,n,{passive:!0}),t.addEventListener(`resize`,n);let r,i=Dp(e);i&&!Fp(m)&&(r=new i(n),r.observe(m));let a=Pp({container:Fp(m)?m.document.documentElement:m,element:e,onChange:n});return()=>{m.removeEventListener(`scroll`,n),e.removeEventListener(`scroll`,n),t.removeEventListener(`resize`,n),r?.disconnect(),a()}},[e,p,m,F]),{getCellBounds:T,getEstimatedSize:M,getScrollPositionForIndex:Ap(({align:t=`auto`,index:n})=>{let r=({clamp:e,containerScrollOffset:r,containerSize:i,padding:a})=>{if(a.start===0&&a.end===0)return Gp({align:t,cachedBounds:S,clamp:e,containerScrollOffset:r,containerSize:i,index:n,itemCount:o,itemSize:x});let s=Gp({align:t,cachedBounds:S,clamp:!1,containerScrollOffset:r+a.start,containerSize:Math.max(0,i-a.start-a.end),index:n,itemCount:o,itemSize:x})-a.start;return e?Math.max(0,Math.min(M()-i,s)):s};if(p&&e&&m&&!zp(e,i)){let{viewportOffset:t,viewportSize:n}=Bp({containerElement:e,direction:i,isRtl:a,scrollTarget:m}),o=r({clamp:!1,containerScrollOffset:t,containerSize:n,padding:Vp({direction:i,isRtl:a,scrollTarget:m,viewportSize:n})})-t,s=i===`horizontal`&&a?-o:o;return{scrollOffset:Lp(m,i)+s,scrollTarget:m}}let s=e?i===`vertical`?e.scrollTop:e.scrollLeft:0,c=p&&e?i===`vertical`?e.clientHeight:e.clientWidth:b,l=r({clamp:!0,containerScrollOffset:Np({containerElement:e,direction:i,isRtl:a,scrollOffset:s}),containerSize:c,padding:e?Vp({direction:i,isRtl:a,scrollTarget:e,viewportSize:c}):{end:0,start:0}});if(e&&(!p||m)){if(l=Np({containerElement:e,direction:i,isRtl:a,scrollOffset:l}),!p&&typeof e.scrollTo!=`function`){let e=N(l);Up(E,e)||D(e)}return{scrollOffset:l,scrollTarget:e}}}),scrollTarget:m,startIndexOverscan:k,startIndexVisible:O,stopIndexOverscan:j,stopIndexVisible:A}}function Zp(e){let[t,n]=(0,f.useState)(e);return Up(t,e)?t:(n(e),e)}function Qp(e,t){let{ariaAttributes:n,style:r,...i}=e,{ariaAttributes:a,style:o,...s}=t;return Up(n,a)&&Up(r,o)&&Up(i,s)}var $p=`data-react-window-index`,em=`data-index`;function tm(e){let t=e.getAttribute($p)??e.getAttribute(em);return t!==null&&/^\d+$/.test(t)?Number(t):void 0}function nm({direction:e,element:t,getCellBounds:n,isDynamicSize:r,itemCount:i,itemElements:a,scrollTarget:o,getScrollPositionForIndex:s}){let c=e===`vertical`,l=(0,f.useRef)(null),u=(0,f.useRef)(void 0),d=Ap(()=>{l.current=null,u.current!==void 0&&(u.current.view.cancelAnimationFrame(u.current.id),u.current=void 0)}),p=Ap(()=>{let e=Ep(t);u.current={id:e.requestAnimationFrame(m),view:e}}),m=Ap(()=>{u.current=void 0;let o=l.current;if(!o)return;if(!t||!r||o.index>=i||performance.now()>=o.deadline){d();return}let f=s({align:o.align,index:o.index});if(f!==void 0){let{scrollOffset:t,scrollTarget:r}=f,s=Math.max(0,Math.min(t,Rp(r,e)));if(Math.abs(s-Lp(r,e))>1)o.stableFrames=0,r.scrollTo({behavior:`instant`,[c?`top`:`left`]:s});else{let e=a.current;if(!(e.some(e=>tm(e)===o.index)&&e.every(e=>{let t=tm(e);if(t===void 0||t>=i)return!0;let r=c?e.offsetHeight:e.offsetWidth;return Math.abs(n(t).size-r)<=1})))o.stableFrames=0;else if(++o.stableFrames>=2){d();return}}}p()});return Sp(()=>{let e=o??t;if(!e)return;let n=e=>{switch(e.key){case`ArrowUp`:case`ArrowDown`:case`ArrowLeft`:case`ArrowRight`:case`PageUp`:case`PageDown`:case`Home`:case`End`:case` `:d()}};return e.addEventListener(`wheel`,d,{passive:!0}),e.addEventListener(`touchstart`,d,{passive:!0}),e.addEventListener(`pointerdown`,d),e.addEventListener(`keydown`,n),()=>{d(),e.removeEventListener(`wheel`,d),e.removeEventListener(`touchstart`,d),e.removeEventListener(`pointerdown`,d),e.removeEventListener(`keydown`,n)}},[d,t,o]),(0,f.useCallback)(({align:t=`auto`,behavior:n=`auto`,index:i})=>{if(r&&t===`smart`){let n=s({align:`auto`,index:i});t=n===void 0||n.scrollOffset===Lp(n.scrollTarget,e)?`auto`:`center`}let a=s({align:t,index:i});if(d(),a&&typeof a.scrollTarget.scrollTo==`function`){let{scrollOffset:e,scrollTarget:o}=a;r&&(l.current={align:t,index:i,deadline:performance.now()+1e3,stableFrames:0},p()),o.scrollTo({behavior:r?`instant`:n,[c?`top`:`left`]:e})}},[d,e,r,c,p,s])}function rm({callback:e,element:t,enabled:n=!0}){let r=Ap(e);(0,f.useEffect)(()=>{if(!n||!t)return;let e=Ep(t),i=e.requestAnimationFrame(()=>{i=e.requestAnimationFrame(r)});return()=>{e.cancelAnimationFrame(i)}},[t,n,r])}function im(e){return typeof e==`object`&&!!e&&`getAverageRowHeight`in e&&typeof e.getAverageRowHeight==`function`}var am=`data-react-window-sizer`;function om({children:e,className:t,defaultHeight:n=0,defaultScrollOffset:r=0,listRef:i,onResize:a,onRowsRendered:o,overscanCount:s=3,rowComponent:c,rowCount:l,rowHeight:u,rowKey:d,rowProps:p,scrollElement:m,tagName:h=`div`,style:g,..._}){let v=Zp(p),y=(0,f.useMemo)(()=>(0,f.memo)(c,Qp),[c]),[b,x]=(0,f.useState)(null),S=im(u),C=(0,f.useMemo)(()=>S?e=>u.getRowHeight(e)??u.getAverageRowHeight():u,[S,u]),w=Tp(),[T,E]=(0,f.useState)(()=>w&&S),D=(0,f.useRef)(u);Sp(()=>{T&&D.current!==u&&E(!1)},[T,u]),rm({callback:()=>E(!1),element:b,enabled:T});let{getCellBounds:O,getEstimatedSize:k,scrollTarget:A,getScrollPositionForIndex:j,startIndexOverscan:M,startIndexVisible:N,stopIndexOverscan:P,stopIndexVisible:F}=Xp({containerElement:b,containerStyle:g,defaultContainerSize:n,defaultScrollOffset:r,direction:`vertical`,itemCount:l,itemProps:v,itemSize:C,onResize:a,overscanCount:s,scrollElement:m}),I=(0,f.useRef)([]),ee=nm({direction:`vertical`,element:b,getCellBounds:O,isDynamicSize:S,itemCount:l,itemElements:I,scrollTarget:A,getScrollPositionForIndex:j});(0,f.useImperativeHandle)(i,()=>({get element(){return b},scrollToRow:ee}),[b,ee]),Sp(()=>{if(!b)return;let e=Array.from(b.children).slice(0,M<0?0:P-M+1).filter((e,t)=>{if(e.hasAttribute(am))return!1;let n=`${M+t}`;return e.setAttribute($p,n),!0});if(I.current=e,S)return u.observeRowElements(e)},[y,b,S,l,u,d,v,M,P]),(0,f.useEffect)(()=>{M>=0&&P>=0&&o&&o({startIndex:N,stopIndex:F},{startIndex:M,stopIndex:P})},[o,M,N,P,F]);let L=T&&S&&M===0,te=(0,f.useMemo)(()=>{let e=[];if(l>0)for(let t=M;t<=P;t++){let n=O(t);e.push((0,f.createElement)(y,{...v,ariaAttributes:{"aria-posinset":t+1,"aria-setsize":l,role:`listitem`},key:d?d(t,v):t,index:t,style:L?{width:`100%`}:{position:`absolute`,left:0,transform:`translateY(${n.scrollOffset}px)`,height:S?void 0:n.size,width:`100%`}}))}return e},[y,O,S,L,l,d,v,M,P]),R=(0,V.jsx)(`div`,{"aria-hidden":!0,[am]:``,style:{position:L?`absolute`:void 0,top:L?0:void 0,height:k(),width:`100%`,zIndex:-1}},`sizer`),z=(0,V.jsx)(f.Fragment,{children:e},`children`),ne=(0,V.jsx)(f.Fragment,{children:te},`rows`);return(0,f.createElement)(h,{role:`list`,..._,className:t,ref:x,style:{position:`relative`,flexGrow:1,...m===void 0&&{maxHeight:`100%`,overflowY:`auto`},...g}},...L?[z,ne]:[ne,z],R)}var sm=(0,f.forwardRef)(function({indeterminate:e=!1,className:t,...n},r){let i=(0,f.useRef)(null);return(0,f.useImperativeHandle)(r,()=>i.current,[]),(0,f.useLayoutEffect)(()=>{i.current&&(i.current.indeterminate=e)},[e]),(0,V.jsxs)(`span`,{className:[fu.Root,t].filter(Boolean).join(` `),children:[(0,V.jsx)(`input`,{...n,ref:i,type:`checkbox`,className:fu.Input}),(0,V.jsxs)(`span`,{className:fu.Surface,"aria-hidden":`true`,children:[(0,V.jsx)(Vu,{className:fu.Check,size:12,strokeWidth:2.5}),(0,V.jsx)(kd,{className:fu.Mixed,size:12,strokeWidth:2.5})]})]})});function cm({ref:e,onNavigateAbove:t,testId:n,items:r,label:i,selectedKey:a,isExpanded:o,onToggle:s,onSelect:c,onOpen:l,checkOnSpace:u=!1,onContextMenu:d}){let p=(0,f.useRef)(null),m=(0,f.useId)(),[h,g]=(0,f.useState)(0),_=(0,f.useCallback)(({height:e})=>g(e),[]),[v,y]=(0,f.useState)(a),[b,x]=(0,f.useState)({startIndex:0,stopIndex:-1}),S=(0,f.useCallback)((e,t)=>{x(e=>e.startIndex===t.startIndex&&e.stopIndex===t.stopIndex?e:t)},[]),C=(0,f.useMemo)(()=>{let e=[];function t(n,r,i){n.forEach((a,s)=>{e.push({item:a,depth:r,parent:i,position:s+1,siblings:n.length}),a.children&&o(a.key)&&t(a.children,r+1,a.key)})}return t(r,0,null),e},[r,o]),w=(0,f.useMemo)(()=>{let e=t=>t.some(t=>!!t.checkbox||!!t.children&&e(t.children));return e(r)},[r]),T=C.findIndex(({item:e})=>e.key===v),E=C.findIndex(({item:e})=>e.key===a);(0,f.useEffect)(()=>{h>0&&E>=0&&p.current?.scrollToRow({index:E,align:`auto`})},[a,E,h]),(0,f.useEffect)(()=>y(a),[a]),(0,f.useImperativeHandle)(e,()=>({focusFirst(){let e=C[0];e&&(y(e.item.key),p.current?.scrollToRow({index:0,align:`start`}),p.current?.element?.focus({preventScroll:!0}),e.item.children||c(e.item.key))}}));let D=e=>{let t=C[e];t&&(y(t.item.key),p.current?.element?.focus({preventScroll:!0}),t.item.children?s(t.item.key):c(t.item.key))},O=(0,f.useCallback)((e,t)=>t.rows[e].item.key,[]);return(0,V.jsx)(om,{listRef:p,"data-testid":n,className:`report-tree`,role:`tree`,"aria-label":i,tabIndex:0,"aria-activedescendant":T>=b.startIndex&&T<=b.stopIndex?`${m}-${T}`:void 0,rowComponent:lm,rowKey:O,rowProps:{rows:C,id:m,activeKey:v,isExpanded:o,activate:D,onContextMenu:d,showCheckboxes:w},rowCount:C.length,rowHeight:28,overscanCount:8,onRowsRendered:S,onResize:_,style:{height:`100%`,minHeight:0,overflowX:`hidden`},onKeyDown:e=>{if(e.target.closest(`button, input`)){e.stopPropagation();return}if(e.altKey||e.ctrlKey||e.metaKey||!C.length)return;let n=T<0?0:T,r=C[n],i=n;switch(e.key){case`ArrowDown`:i=T<0?0:Math.min(C.length-1,n+1);break;case`ArrowUp`:if(n===0&&t){e.preventDefault(),e.stopPropagation(),t();return}i=Math.max(0,n-1);break;case`Home`:i=0;break;case`End`:i=C.length-1;break;case`ArrowRight`:r.item.children&&(o(r.item.key)?C[n+1]?.parent===r.item.key&&(i=n+1):s(r.item.key));break;case`ArrowLeft`:r.item.children&&o(r.item.key)?s(r.item.key):r.parent&&(i=C.findIndex(({item:e})=>e.key===r.parent));break;case`Enter`:!r.item.children&&l?l(r.item.key):D(n);break;case` `:u&&r.item.checkbox?e.repeat||r.item.checkbox.onChange(r.item.checkbox.checked!==!0):D(n);break;default:return}e.preventDefault(),e.stopPropagation(),i>=0&&(y(C[i].item.key),p.current?.scrollToRow({index:i,align:`auto`}),[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&!C[i].item.children&&c(C[i].item.key))}})}function lm({index:e,style:t,rows:n,id:r,activeKey:i,isExpanded:a,activate:o,onContextMenu:s,showCheckboxes:c}){let{item:l,depth:u,position:d,siblings:f}=n[e],p=!!l.children&&a(l.key),m=u===0&&!n.some(e=>e.depth===0&&e.item.children);return(0,V.jsx)(`div`,{style:t,role:`presentation`,children:(0,V.jsxs)(`div`,{id:`${r}-${e}`,role:`treeitem`,"aria-level":u+1,"aria-posinset":d,"aria-setsize":f,"aria-expanded":l.children?p:void 0,"aria-selected":i===l.key,"data-active":i===l.key,"data-tree-key":l.key,"data-testid":l.testId,className:`report-tree-row`,style:{paddingLeft:m?0:6+u*18,color:l.danger?`var(--color-danger, #dc2626)`:void 0},title:l.title??l.label,onClick:()=>o(e),onContextMenu:e=>s?.(l,e),children:[!m&&(0,V.jsx)(`span`,{className:`report-tree-chevron`,"aria-hidden":`true`,children:l.children&&(0,V.jsx)(Ku,{size:12,className:p?`is-open`:``})}),l.checkbox&&(0,V.jsx)(sm,{"aria-label":l.checkbox.label,"data-testid":l.checkboxTestId,checked:l.checkbox.checked===!0,indeterminate:l.checkbox.checked===`mixed`,onClick:e=>e.stopPropagation(),onChange:e=>l.checkbox.onChange(e.target.checked)}),c&&!l.checkbox&&(0,V.jsx)(`span`,{className:`report-tree-check-spacer`,"aria-hidden":`true`}),(0,V.jsx)(`span`,{className:`report-tree-icon`,children:l.icon}),(0,V.jsx)(`span`,{className:`report-tree-label${l.muted?` is-muted`:``}`,children:l.label}),l.trailing&&(0,V.jsx)(`span`,{className:`report-tree-trailing`,children:l.trailing}),!p&&l.collapsedTrailing&&(0,V.jsx)(`span`,{className:`report-tree-trailing`,children:l.collapsedTrailing})]})})}function um({tasks:e,hasMore:t,onLoadMore:n,loading:r,error:i,selectedTaskId:a,onSelect:o,itemLabel:s=`场景`,renderStatus:c,emptyState:l}){let u=(0,f.useRef)(null),d=e?.findIndex(e=>e.executionId===a)??-1;return(0,f.useEffect)(()=>{u.current?.scrollIntoView({block:`nearest`})},[a,d]),i&&e===null?(0,V.jsx)(`p`,{className:`task-hint`,children:`无法读取任务记录。`}):e===null?null:e.length?(0,V.jsxs)(`div`,{className:`task-list`,"data-testid":Z.tasks.root,onKeyDown:t=>{if(t.key===`Enter`||t.key===` `){t.stopPropagation();return}if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||![`ArrowUp`,`ArrowDown`].includes(t.key))return;t.preventDefault(),t.stopPropagation();let n=e.findIndex(e=>e.executionId===a),r=e[n+(t.key===`ArrowUp`?-1:1)];if(!r)return;o(r.executionId);let i=t.currentTarget.querySelectorAll(`.task-line`);i[n+(t.key===`ArrowUp`?-1:1)]?.focus({preventScroll:!0}),i[n+(t.key===`ArrowUp`?-1:1)]?.scrollIntoView({block:`nearest`})},"aria-busy":e.some(e=>e.comparison===`pending`),children:[e.map(e=>(0,V.jsxs)(`button`,{ref:a===e.executionId?u:void 0,"data-testid":Z.tasks.item(e.executionId),type:`button`,className:a===e.executionId?`task-line is-selected`:`task-line`,title:`${e.taskName} ${Zd(e.startedAt)} ${e.sceneCount} ${s} ${Qd(e.durationMs)}`,"aria-current":a===e.executionId?`true`:void 0,onClick:()=>o(e.executionId),children:[c?c(e):(0,V.jsx)(dm,{task:e}),(0,V.jsxs)(`span`,{className:`task-list-copy`,children:[(0,V.jsxs)(`span`,{className:`task-list-heading`,children:[(0,V.jsx)(`span`,{className:`task-name`,children:e.taskName}),(0,V.jsx)(`span`,{className:`task-duration`,children:Number.isFinite(e.durationMs)&&e.durationMs>=0?`${(e.durationMs/1e3).toFixed(1)}s`:`—`})]}),(0,V.jsxs)(`span`,{className:`task-list-meta`,children:[(0,V.jsxs)(`span`,{className:`task-list-summary`,title:e.namespaceName??e.namespace,children:[(0,V.jsx)(`span`,{className:`task-list-namespace`,children:e.namespaceName??e.namespace}),(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,V.jsxs)(`span`,{className:`task-list-tag`,"data-testid":Z.taskCoverage,children:[e.coverage===`complete`?`全量 `:e.coverage===`partial`?`部分 `:``,e.sceneCount,` `,s]})]}),(0,V.jsx)(`span`,{className:`task-list-date`,children:Zd(e.startedAt)})]})]})]},e.executionId)),t&&(0,V.jsx)(`button`,{type:`button`,className:`task-load-more`,disabled:r,onClick:n,children:r?`正在加载…`:`加载更多`})]}):l??(0,V.jsx)(`p`,{className:`panel-empty-state`,"data-testid":Z.tasks.empty,children:`还没有任务记录`})}function dm({task:e}){let t=e.taskStatus??(e.status===`running`||e.comparison===`pending`?`running`:e.comparison===`unknown`?`unknown`:e.comparison===`error`?`unavailable`:e.comparison===`same`?`same`:`changed`);return(0,V.jsx)(Xd,{status:t})}function fm({children:e,title:t,status:n}){return(0,V.jsx)(`span`,{className:`report-badge`,"data-testid":Z.statusBadge,title:t,"data-status":n,children:e})}function pm({coverage:e}){return e?(0,V.jsx)(fm,{title:e===`complete`?`全量任务`:`部分任务,不推断未执行用例的删除`,children:e===`complete`?`全量`:`部分`}):null}var mm={added:[`A`,`新增`],modified:[`M`,`修改`],deleted:[`D`,`删除`],renamed:[`R`,`重命名`]};function hm({status:e}){let t=e&&mm[e];return t?(0,V.jsx)(fm,{status:e,title:t[1],children:t[0]}):null}function gm(e){return(0,V.jsx)(Of,{...e,options:e.options.map(e=>({...e,testId:Z.filter(e.value)})),appearance:`filters`,label:`筛选用例`,groupTestId:Z.filterGroup,thumbTestId:Z.filterThumb})}function _m(e){return[{value:`all`,label:`全部`,count:e.all},{value:`added`,label:`新增`,count:e.added},{value:`deleted`,label:`删除`,count:e.deleted},{value:`modified`,label:`修改`,count:e.modified},{value:`failed`,label:`失败`,count:e.failed}]}function vm(){return(0,f.useCallback)(e=>{if(!e)return;let t=new Set,n=e=>{let t=getComputedStyle(e),n=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),r=Math.max(0,e.offsetWidth-e.clientWidth-n);e.style.setProperty(`--scroll-gutter`,`${r}px`)},r=new ResizeObserver(e=>{for(let t of e)n(t.target)}),i=()=>{for(let n of t)e.contains(n)||(r.unobserve(n),t.delete(n));for(let i of e.querySelectorAll(`.module-scroll, .task-list, .task-tree, .changes-list, .report-tree, .snapshot-detail-scroll`))t.has(i)||(t.add(i),n(i),r.observe(i))};i();let a=new MutationObserver(i);return a.observe(e,{childList:!0,subtree:!0}),()=>{r.disconnect(),a.disconnect()}},[])}function ym({label:e,testId:t,value:n,options:r,onChange:i}){return(0,V.jsxs)(`div`,{className:Tu.Settings.SelectRoot,children:[(0,V.jsx)(`select`,{"aria-label":e,"data-testid":t,className:Tu.Settings.Select,value:n,onChange:e=>i(e.target.value),children:r.map(e=>(0,V.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,V.jsx)(Uu,{"aria-hidden":!0,className:Tu.Settings.SelectIcon,size:14,strokeWidth:1.5})]})}function bm({target:e,repoRoot:t,onClose:n}){let r=Ki(iu),i=Ki(ou),a=(0,f.useRef)(null);(0,f.useLayoutEffect)(()=>{let t=a.current,r=document.activeElement,i=t.getBoundingClientRect();t.style.left=`${Math.max(8,Math.min(e.x,innerWidth-i.width-8))}px`,t.style.top=`${Math.max(8,Math.min(e.y,innerHeight-i.height-8))}px`,t.querySelector(`button`)?.focus();let o=e=>{t.contains(e.target)||n()};return document.addEventListener(`pointerdown`,o),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,o,!0),()=>{document.removeEventListener(`pointerdown`,o),window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,o,!0),r?.focus({preventScroll:!0})}},[e,n]);let o=async e=>{try{await r.writeText(e),i.show(`已复制到剪贴板`,{variant:`success`})}catch{i.show(`复制失败,请检查浏览器剪贴板权限。`,{variant:`error`})}finally{n()}};return(0,Bi.createPortal)((0,V.jsxs)(`div`,{ref:a,role:`menu`,"aria-label":`文件操作`,className:`file-context-menu`,style:{left:e.x,top:e.y},onContextMenu:e=>e.preventDefault(),onKeyDown:e=>{if(e.stopPropagation(),(e.key===`Escape`||e.key===`Tab`)&&(e.preventDefault(),n()),[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)){e.preventDefault();let t=[...a.current.querySelectorAll(`button:not(:disabled)`)],n=t.indexOf(document.activeElement);t[e.key===`Home`?0:e.key===`End`?t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length]?.focus()}},children:[(0,V.jsx)(`button`,{role:`menuitem`,type:`button`,onClick:()=>void o(e.path.split(`/`).pop()??e.path),children:`复制文件名`}),(0,V.jsx)(`button`,{role:`menuitem`,type:`button`,onClick:()=>void o(e.path),children:`复制相对路径`}),(0,V.jsx)(`button`,{role:`menuitem`,type:`button`,disabled:!t,onClick:()=>void o(`${t?.replace(/[\\/]+$/,``)}/${e.path}`),children:`复制绝对路径`})]}),document.body)}function xm({navigation:e,route:t}){let n=Hi(Ki(ks));Ud(()=>n.refresh(t.ref));let{project:r,baselineChanges:i}=n,a=r.data,o=t.ref||a?.defaultRef||(a?`HEAD`:``),s=e=>{t.update({ref:e,namespace:void 0,case:void 0}),n.refresh(e)},c=i.data,l=r.error??i.error,u=r.loading||i.loading,d=t.namespace&&t.caseId?ef(t.namespace,t.caseId):``,p=e=>{let n=c?.entries.find(t=>ef(t.namespace,t.item.id)===e);n&&t.update({namespace:n.namespace,case:n.item.id})},[m,h]=(0,f.useState)(new Set),[g,_]=(0,f.useState)(null),v=Ki(ou);(0,f.useEffect)(()=>{!t.ref&&o&&t.update({ref:o},!0)},[o,t.ref]),(0,f.useEffect)(()=>{l&&v.show(String(l),{variant:`error`})},[l,v]);let y=(0,f.useMemo)(()=>c?.entries.map(e=>({key:ef(e.namespace,e.item.id),namespace:e.namespace,item:{...e.item},taskId:``,version:c.version}))??[],[c]);async function b(e,t){if(c)try{await n.reviewBaseline(o,c.version,e,t)}catch(e){v.show(String(e),{variant:`error`})}}let x=(0,f.useMemo)(()=>{let e=nf([...new Map((c?.entries??[]).map(e=>[e.namespace,{id:e.namespace,name:e.namespaceName}])).values()],y,!1,new Set,()=>{});function t(e){return e.flatMap(e=>{let n=e.children?t(e.children):[e.key],r=n.filter(e=>c?.reviewed.includes(e)).length;if(e.checkboxTestId=Z.changes.review(e.key),e.checkbox={checked:r===n.length?!0:r?`mixed`:!1,label:`已审核 ${e.label}`,onChange:e=>void b(n,e)},!e.children){let t=y.find(t=>t.key===e.key);e.trailing=(0,V.jsx)(`span`,{className:`change-status`,"data-status":t.item.change,children:t.item.change===`added`?`A`:t.item.change===`deleted`?`D`:`M`}),e.muted=c?.reviewed.includes(e.key)}return n})}return t(e),e},[c,y]);(0,f.useEffect)(()=>h(new Set(af(x))),[c?.version]);let S=t.caseId?y.find(e=>e.item.id===t.caseId&&(!t.namespace||e.namespace===t.namespace)):y[0],C=S?y.indexOf(S):-1,w=(0,f.useRef)(!1),T=e=>{w.current=!!document.activeElement?.closest(`[data-testid="${Z.detail}"]`);let t=y[(C+e+y.length)%y.length];t&&p(t.key)};return(0,f.useEffect)(()=>{if(!w.current)return;w.current=!1;let e=requestAnimationFrame(()=>{document.querySelector(`[data-testid="${Z.detail}"]`)?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[d]),(0,V.jsxs)(`div`,{className:`workbench-shell`,children:[(0,V.jsx)(bp,{defaultSidebarWidth:300,minSidebarWidth:240,maxSidebarWidth:420,minContentWidth:760,contentClassName:`workbench-content`,sidebarLabel:`导航器`,resizeLabel:`调整导航器宽度`,sidebar:(0,V.jsxs)(`div`,{className:`module-shell`,children:[e,(0,V.jsxs)(`div`,{className:`changes-pane`,"aria-busy":u,children:[(0,V.jsxs)(`div`,{className:`changes-toolbar`,children:[(0,V.jsx)(`div`,{className:`changes-compare`,children:(0,V.jsx)(ym,{label:`比较基准`,testId:Z.branches,value:o,onChange:s,options:[{value:`HEAD`,label:`未提交改动`},...o&&o!==`HEAD`&&!a?.refs.some(e=>e.name===o)?[{value:o,label:`相对 ${o}`}]:[],...(a?.refs??[]).map(e=>({value:e.name,label:`相对 ${e.name}`}))]})}),(0,V.jsxs)(`span`,{className:`changes-progress`,"data-testid":Z.changes.reviewCount,children:[`已审核 `,c?.reviewed.length??0,`/`,y.length]})]}),(0,V.jsx)(`div`,{className:`changes-tree-content`,"aria-busy":u,children:x.length?(0,V.jsx)(cm,{label:`基线改动`,checkOnSpace:!0,testId:Z.changes.tree,items:x,selectedKey:S?.key??null,isExpanded:e=>m.has(e),onToggle:e=>h(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),onSelect:p,onContextMenu:(e,t)=>{if(e.children)return;t.preventDefault();let n=c?.entries.find(t=>ef(t.namespace,t.item.id)===e.key);n&&_({path:n.file,x:t.clientX,y:t.clientY})}}):(0,V.jsx)(`p`,{className:`changes-empty-state`,"data-testid":Z.empty,children:l?String(l):u?``:o===`HEAD`?`暂无未提交改动`:`暂无差异`})})]})]}),children:(0,V.jsxs)(`section`,{className:`task-content case-header-content`,"aria-label":`基线差异`,children:[(0,V.jsx)(xf,{badge:(0,V.jsx)(hm,{status:S?.item.change}),leading:(0,V.jsx)(yd,{size:14,"aria-label":`基线差异`}),title:S?(S.item.current??S.item.baseline).treePath.map(e=>e.display).join(` / `)||(S.item.current??S.item.baseline).name:`基线差异`,actions:S?(0,V.jsx)(Hd,{index:C,total:y.length,onPrev:()=>T(-1),onNext:()=>T(1)}):void 0}),S&&c?(0,V.jsx)(mp,{namespace:S.namespace,item:S.item,taskId:S.taskId,version:S.version,changes:!0,titleInHeader:!0,index:C,total:y.length,onPrev:()=>T(-1),onNext:()=>T(1),busy:!1},`${c.version}:${S.key}`):(0,V.jsx)(`div`,{className:`changes-empty`,children:l?String(l):u?``:`选择左侧基线查看改动。`})]})}),g&&(0,V.jsx)(bm,{target:g,repoRoot:a?.repoRoot??null,onClose:()=>_(null)})]})}function Sm(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]}var Cm={added:`A`,modified:`M`,deleted:`D`,renamed:`R`};function wm({navigation:e,route:t}){let n=Hi(Ki(js));Ud(()=>n.refresh(t.ref,t.file));let{project:r,codeChanges:i,codeDiff:a}=n,{data:o,error:s}=r,c=t.ref||o?.defaultRef||(o?`HEAD`:``),l=e=>{t.update({ref:e,file:void 0}),n.refresh(e)},u=i.data,d=i.error,p=t.file||u?.files[0]?.path||``,m=u?.files.find(e=>e.path===p),h=!!u&&!!p&&!m,g=e=>{t.update({file:e}),n.refreshDiff(e)},_=u&&m&&a.data?.path===p?a.data:null,v=a.error,[y,b]=(0,f.useState)(new Set),[x,S]=Sm(`evidra.codeDiff.unified`),[C,w]=Sm(`evidra.codeDiff.expandAll`),T=Ki(ou);(0,f.useEffect)(()=>{(!t.ref&&c||!t.file&&p)&&t.update({ref:c,file:p||void 0},!0)},[c,t.ref,t.file,p]);let E=s?String(s):d?String(d):``,D=v?String(v):``,O=r.loading||i.loading,k=(0,f.useMemo)(()=>new Set(u?.reviewed??[]),[u?.reviewed]),A=(0,f.useMemo)(()=>new Map((u?.files??[]).map(e=>[e.path,e.reviewKey])),[u?.files]),j=u?.files.length??0,M=u?.files.filter(e=>k.has(e.reviewKey)).length??0;async function N(e,t){if(!u)return;let r=new Set(e),i=u.files.filter(e=>r.has(e.reviewKey)).map(e=>({path:e.path,key:e.reviewKey}));if(i.length)try{await n.reviewCode(c,u.sha,i.map(e=>e.key),t)}catch(e){T.show(String(e),{variant:`error`})}}let P=(0,f.useMemo)(()=>{let e=[];for(let t of u?.files??[]){let n=t.path.split(`/`),r=e;n.forEach((e,i)=>{let a=n.slice(0,i+1).join(`/`);if(i===n.length-1)r.push({key:t.path,label:e,title:t.oldPath?`${t.oldPath} → ${t.path}`:t.path,icon:(0,V.jsx)(fd,{size:14}),testId:Z.code.file(t.path),trailing:(0,V.jsx)(`span`,{className:`change-status`,"data-status":t.status,children:Cm[t.status]})});else{let t=r.find(e=>e.key===`folder:${a}`);t||(t={key:`folder:${a}`,label:e,icon:(0,V.jsx)(vd,{size:14}),children:[]},r.push(t)),r=t.children}})}let t=e=>{e.sort((e,t)=>Number(!!t.children)-Number(!!e.children)||e.label.localeCompare(t.label)),e.forEach(e=>{e.children&&t(e.children)})};t(e);let n=e=>e.flatMap(e=>{let t=e.children?n(e.children):[A.get(e.key)],r=t.filter(e=>k.has(e)).length;return e.checkbox={checked:r===t.length?!0:r?`mixed`:!1,label:`已审核 ${e.label}`,onChange:e=>void N(t,e)},e.checkboxTestId=Z.code.review(e.key),e.children||(e.muted=k.has(t[0])),t});return n(e),e},[u,A,k]);(0,f.useEffect)(()=>b(new Set(af(P))),[u?.sha]);let F=(0,f.useMemo)(()=>{let e=[],t=n=>n.forEach(n=>n.children?t(n.children):e.push(n));return t(P),e},[P]),I=F.findIndex(e=>e.key===p),ee=e=>{F.length&&g(F[I<0?e>0?0:F.length-1:(I+e+F.length)%F.length].key)};return(0,V.jsx)(`div`,{className:`workbench-shell`,children:(0,V.jsx)(bp,{defaultSidebarWidth:300,minSidebarWidth:240,maxSidebarWidth:420,minContentWidth:760,contentClassName:`workbench-content`,sidebarLabel:`代码文件`,resizeLabel:`调整导航器宽度`,sidebar:(0,V.jsxs)(`div`,{className:`module-shell`,children:[e,(0,V.jsxs)(`div`,{className:`changes-pane`,children:[(0,V.jsxs)(`div`,{className:`changes-toolbar`,children:[(0,V.jsx)(`div`,{className:`changes-compare`,children:(0,V.jsx)(ym,{label:`比较基准`,testId:Z.branches,value:c,onChange:l,options:[{value:`HEAD`,label:`未提交改动`},...c&&c!==`HEAD`&&!o?.refs.some(e=>e.name===c)?[{value:c,label:`相对 ${c}`}]:[],...(o?.refs??[]).map(e=>({value:e.name,label:`相对 ${e.name}`}))]})}),(0,V.jsxs)(`span`,{className:`changes-progress`,"data-testid":Z.code.reviewCount,children:[`已审核 `,M,`/`,j]})]}),(0,V.jsx)(`div`,{className:`changes-tree-content`,"data-testid":Z.code.tree,"aria-busy":O,children:P.length?(0,V.jsx)(cm,{label:`代码改动`,checkOnSpace:!0,testId:Z.code.scroll,items:P,selectedKey:p,isExpanded:e=>y.has(e),onToggle:e=>b(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),onSelect:g}):(0,V.jsx)(`p`,{className:`changes-empty-state`,"data-testid":Z.code.empty,children:E||(O?``:`暂无代码差异`)})})]})]}),children:(0,V.jsxs)(`section`,{className:`code-detail`,children:[(0,V.jsx)(xf,{title:p||`代码差异`,leading:(0,V.jsx)(fd,{size:14}),badge:(0,V.jsx)(hm,{status:m?.status}),actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`report-header-icon-group`,children:[(0,V.jsx)(`button`,{className:`report-header-icon`,"data-testid":Z.diffUnified,"aria-pressed":x,title:x?`并排显示`:`统一显示`,onClick:()=>S(!x),children:x?(0,V.jsx)(Fd,{size:14}):(0,V.jsx)(od,{size:14})}),(0,V.jsx)(`button`,{className:`report-header-icon`,"data-testid":Z.diffExpand,"aria-pressed":C,title:C?`折叠未改动行`:`展开全部`,onClick:()=>w(!C),children:C?(0,V.jsx)(Ld,{size:14}):(0,V.jsx)(gd,{size:14})})]}),F.length>0&&(0,V.jsx)(Hd,{index:I,total:F.length,onPrev:()=>ee(-1),onNext:()=>ee(1),noun:`文件`})]})}),(0,V.jsx)(`div`,{className:`code-detail-body`,"data-testid":Z.code.content,children:D||E?(0,V.jsx)(`p`,{className:`e2e-error`,children:D||E}):h?(0,V.jsx)(`p`,{className:`changes-empty-state`,children:`选择的文件已从变更列表中消失`}):_?_.isBinary||_.tooLarge?(0,V.jsx)(`p`,{className:`changes-empty-state`,children:_.isBinary?`二进制文件不支持文本差异预览。`:`文件超过 256 KB,请在本地查看差异。`}):(0,V.jsx)(bf,{path:_.path,original:_.original,modified:_.modified,unified:x,expandAll:C},_.path):(0,V.jsx)(`p`,{className:`changes-empty-state`,children:O||a.loading||p?``:`暂无代码差异`})})]})})})}function Tm(){let e=Ls();return(0,V.jsx)(Em,{route:e,selectWorkspace:t=>{t!==e.page&&e.navigate(Ps(t))}},e.page)}function Em({route:e,selectWorkspace:t}){let n=e.page===`changes`||e.page===`code`?e.page:`acceptance`,r=e.page===`baseline`?`baseline`:`tasks`,i=e.taskId,a=Hi(Ki(Ts)),o=Hi(Ki(Ds));Ud(async()=>{e.page===`baseline`&&await a.refresh(),e.page===`tasks`&&await o.refresh(e.taskId)});let s=o.task,c=o.tasks,l=a.baseline,u=e.page===`tasks`&&!!i&&s.error instanceof bs&&s.error.status===404,d=u||!i||s.data?.task.id!==i||e.page!==`tasks`?null:s.data,p=c.data??[];(0,f.useEffect)(()=>{e.page===`tasks`&&!i&&p[0]&&(e.update({taskId:p[0].id},!0),o.refreshTask(p[0].id))},[e.page,i,p[0]?.id,e.href]);let[m,h]=(0,f.useState)(new Set),[g,_]=(0,f.useState)(new Set),[v,y]=(0,f.useState)(`all`),[b,x]=(0,f.useState)(!1),S=Ki(ou),C=Ki(iu),w=(0,f.useRef)(()=>{}),T=(0,f.useRef)(!1),E=(0,f.useRef)(null),D=(0,f.useRef)(null),O=vm(),k=r===`baseline`?l.error:s.error??c.error,A=!!i&&s.loading,j=r===`baseline`?l.loading:c.loading,M=A||j,N=u?`所选任务已不存在。`:k?String(k):``,P=p.find(e=>e.id===i),F=(r===`baseline`?l.data?.entries:d?.entries)??[],I=F.filter(e=>r===`baseline`||v===`all`||(v===`failed`?e.item.current?.result.status===`failed`:e.item.change===v));(0,f.useEffect)(()=>{let t=F.find(t=>t.item.id===e.caseId&&(!e.namespace||t.namespace===e.namespace));t&&!I.includes(t)&&y(`all`)},[e.caseId,e.namespace]);let ee=e.file,L=e.caseId?I.find(t=>t.item.id===e.caseId&&(!e.namespace||t.namespace===e.namespace)&&(!ee||t.file===ee)):I[0],te=L?.key??``;(0,f.useEffect)(()=>{e.page===`tasks`&&!e.caseId&&L&&d?.task.id===i&&e.update({case:L.item.id},!0)},[e.page,e.caseId,L?.item.id,d?.task.id,i]);let R=t=>{let n=F.find(e=>e.key===t);n&&e.update({case:n.item.id,namespace:r===`baseline`?n.namespace:void 0,file:r===`baseline`&&n.ignored?n.file:void 0})},z=L?I.indexOf(L):-1,ne=(0,f.useMemo)(()=>rf((r===`baseline`?l.data?.tree:d?.tree)??[],I,r===`tasks`,g,e=>_(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})),[l.data,I,r,d,g]),re=`${r}:${i}`,ie=(0,f.useRef)(``);(0,f.useEffect)(()=>{F.length&&ne.length&&(r!==`tasks`||d?.task.id===i)&&ie.current!==re&&(ie.current=re,h(new Set(af(ne))),_(new Set))},[ne,re,r,d?.task.id,i]);let ae=e=>h(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),oe=t=>{e.update({taskId:t,case:void 0}),o.refreshTask(t)},se=e=>{T.current=!!document.activeElement?.closest(`[data-testid="${Z.detail}"]`);let t=I[(z+e+I.length)%I.length];t&&R(t.key)};(0,f.useEffect)(()=>{if(!T.current)return;T.current=!1;let e=requestAnimationFrame(()=>{document.querySelector(`[data-testid="${Z.detail}"]`)?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[te]);async function ce(e=!1){if(!d||b)return;let t=e=>e.item.current?.result.status===`failed`;if(!e&&L&&t(L)){S.show(`用例执行失败,不能合并到基线`,{variant:`error`});return}let n=e?F.filter(e=>g.has(e.key)&&!t(e)).map(e=>e.item.id):L?[L.item.id]:[];if(n.length){x(!0);try{let t=await o.approve(d.task.id,n,d.comparison.baselineVersion);S.show(t.conflict?`基线已经变化,请检查最新差异后再次审批。`:`已审批 ${n.length} 个用例`,{variant:t.conflict?`info`:`success`}),t.conflict||_(t=>e?new Set:new Set([...t].filter(e=>e!==L?.key)))}catch(e){S.show(String(e),{variant:`error`})}finally{x(!1)}}}let le=p;ff(`modules`,!0,[{id:`baselines`,keybinding:G.Digit1,run:()=>t(`baseline`)},{id:`tasks`,keybinding:G.Digit2,run:()=>t(`tasks`)},{id:`baselineChanges`,keybinding:G.Digit3,run:()=>t(`changes`)},{id:`codeChanges`,keybinding:G.Digit4,run:()=>t(`code`)},{id:`changes`,keybinding:G.KeyD,run:()=>t(`changes`)},{id:`acceptance`,keybinding:G.KeyV,run:()=>t(`tasks`)}]),ff(`navigation`,n===`acceptance`,[{id:`previousTask`,keybinding:G.BracketLeft,run:()=>{let e=le[le.findIndex(e=>e.id===i)-1];e&&oe(e.id)}},{id:`nextTask`,keybinding:G.BracketRight,run:()=>{let e=le[le.findIndex(e=>e.id===i)+1];e&&oe(e.id)}},{id:`approve`,keybinding:Sl.CtrlCmd|G.Enter,run:()=>void ce()}]);let ue=(0,V.jsx)(`div`,{className:`module-tree-panel`,"data-testid":Z.tree,"data-arrow-scope":`cases`,children:ne.length?(0,V.jsx)(cm,{ref:E,onNavigateAbove:r===`tasks`?()=>{D.current?.querySelector(`[role="tab"][aria-selected="true"]`)?.focus()}:void 0,label:r===`baseline`?`基线`:`任务`,items:ne,selectedKey:L?.key??null,isExpanded:e=>m.has(e),onToggle:ae,onSelect:R,onOpen:()=>w.current()}):(0,V.jsx)(`p`,{className:`panel-empty-state`,children:N?`无法读取用例。`:M?``:r===`baseline`?`暂无基线。`:i?F.length?`当前筛选下没有用例`:`该任务暂无用例`:`选择左侧任务记录查看用例`})}),de=L?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{"data-testid":Z.ignoredBaseline,hidden:r!==`baseline`||!L.ignored,style:{color:`#dc2626`,padding:12},children:[`此基线已忽略。`,(0,V.jsx)(`button`,{"data-testid":Z.deleteBaseline,onClick:async()=>{try{await a.deleteBaseline(L.namespace,L.file,L.version)}catch(e){S.show(String(e),{variant:`error`})}},children:`删除被忽略的基线`})]}),(0,V.jsx)(mp,{namespace:L.namespace,item:L.item,taskId:L.taskId,taskName:r===`tasks`?d?.task.name:void 0,version:L.version,index:z,total:I.length,onPrev:()=>se(-1),onNext:()=>se(1),busy:b,batchSelected:g.size>0,titleInHeader:r===`baseline`,navigationInHeader:!0,openHandle:w,onApprove:r===`tasks`&&d?.task.finishedAt&&L.item.change!==`unavailable`?()=>void ce():void 0},`${re}:${L.key}`)]}):(0,V.jsx)(`div`,{className:`stage-empty-state`,"data-testid":Z.empty,children:(0,V.jsx)(`p`,{children:N||(A||M?``:e.caseId?`找不到指定用例。`:r===`tasks`&&!i?`选择左侧任务记录查看详情`:`还没有可展示的快照。`)})}),fe=d?.display??null,pe=(0,V.jsx)(xp,{active:n===`acceptance`?r===`baseline`?`baseline`:`tasks`:n,onSelect:t,loading:e.loading});return(0,V.jsx)(`div`,{className:`workbench-shell workbench-root`,ref:O,children:e.page===`not-found`?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(xp,{active:`tasks`,onSelect:t}),(0,V.jsx)(`p`,{"data-testid":Z.empty,children:`页面不存在。`})]}):n===`changes`?(0,V.jsx)(xm,{navigation:pe,route:e}):n===`code`?(0,V.jsx)(wm,{navigation:pe,route:e}):(0,V.jsx)(bp,{defaultSidebarWidth:300,minSidebarWidth:240,maxSidebarWidth:420,minContentWidth:760,contentClassName:`workbench-content`,sidebarLabel:`导航器`,resizeLabel:`调整导航器宽度`,sidebar:(0,V.jsxs)(`div`,{className:`module-shell`,children:[pe,r===`baseline`?ue:(0,V.jsx)(`div`,{className:`module-scroll`,"data-arrow-scope":`tasks`,children:(0,V.jsx)(um,{tasks:c.data?le.map(e=>e.display):null,hasMore:!1,onLoadMore:()=>{},loading:j,error:N,selectedTaskId:i,onSelect:oe,itemLabel:`用例`})})]}),children:r===`baseline`?(0,V.jsxs)(`section`,{className:`task-content case-header-content`,"aria-label":`验收基线`,children:[(0,V.jsx)(xf,{leading:(0,V.jsx)(Td,{size:14,"aria-label":`验收基线`}),title:L?(L.item.current??L.item.baseline).treePath.map(e=>e.display).join(` / `)||(L.item.current??L.item.baseline).name:`验收基线`,actions:L?(0,V.jsx)(Hd,{index:z,total:I.length,onPrev:()=>se(-1),onNext:()=>se(1)}):void 0}),de]}):(0,V.jsxs)(`section`,{className:`task-content`,"aria-label":`任务详情`,children:[(0,V.jsx)(xf,{title:(0,V.jsx)(`button`,{className:`task-title-copy report-title-text`,title:i,onClick:async()=>{await C.writeText(i),S.show(`已复制执行 ID`,{variant:`success`})},children:d?.task.name??P?.name??`任务记录`}),badge:(0,V.jsx)(pm,{coverage:d?.task.coverage??P?.coverage}),leading:fe?(0,V.jsx)(dm,{task:fe}):(0,V.jsx)(Nd,{size:14}),actions:L?(0,V.jsx)(Hd,{index:z,total:I.length,onPrev:()=>se(-1),onNext:()=>se(1)}):void 0}),(0,V.jsxs)(`div`,{className:`task-workspace`,children:[(0,V.jsxs)(`aside`,{className:`task-results`,"aria-label":`任务结果`,children:[(0,V.jsx)(`div`,{className:`task-filters`,ref:D,onKeyDown:e=>{e.key!==`ArrowDown`||e.altKey||e.ctrlKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),E.current?.focusFirst())},children:(0,V.jsx)(gm,{value:v,onChange:t=>{y(t),L&&t!==`all`&&(t===`failed`?L.item.current?.result.status!==`failed`:L.item.change!==t)&&e.update({case:void 0},!0)},options:_m({all:F.length,added:F.filter(e=>e.item.change===`added`).length,modified:F.filter(e=>e.item.change===`modified`).length,deleted:F.filter(e=>e.item.change===`deleted`).length,failed:F.filter(e=>e.item.current?.result.status===`failed`).length})})}),ue,g.size>0&&(0,V.jsxs)(`div`,{className:`task-selection-bar`,"data-testid":Z.selectionBar,children:[(0,V.jsxs)(`div`,{className:`task-selection-summary`,children:[(0,V.jsxs)(`span`,{children:[`已选 `,g.size,` 个用例`]}),(0,V.jsx)(`button`,{type:`button`,"data-testid":Z.clearSelection,disabled:b,onClick:()=>_(new Set),children:`取消选择`})]}),(0,V.jsx)(uf,{variant:`primary`,size:`md`,disabled:b||!d?.task.finishedAt,"data-testid":Z.approveBatch,onClick:()=>void ce(!0),children:`接受所选用例`})]})]}),de]})]})})})}var Dm=Ti([{path:`/`,element:(0,V.jsx)(Tm,{}),children:Fs}]),Om=lu();(0,$l.createRoot)(document.getElementById(`root`)).render((0,V.jsxs)(Gi,{services:Om.instantiationService,children:[(0,V.jsx)(Vi,{router:Dm}),(0,V.jsx)(Vd,{})]}));export{s as n,yf as t};