@kne-components/components-core 0.2.28 → 0.2.29

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 (178) hide show
  1. package/build/asset-manifest.json +130 -130
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/1151.d4a723ef.chunk.css +2 -0
  6. package/build/static/css/{1151.f4c49b34.chunk.css.map → 1151.d4a723ef.chunk.css.map} +1 -1
  7. package/build/static/css/1153.51329daa.chunk.css +2 -0
  8. package/build/static/css/{1153.5755c9dc.chunk.css.map → 1153.51329daa.chunk.css.map} +1 -1
  9. package/build/static/css/1154.2da8f782.chunk.css +2 -0
  10. package/build/static/css/{1154.5a8145c4.chunk.css.map → 1154.2da8f782.chunk.css.map} +1 -1
  11. package/build/static/css/1454.eae6c0f9.chunk.css +2 -0
  12. package/build/static/css/{1454.8e9570d5.chunk.css.map → 1454.eae6c0f9.chunk.css.map} +1 -1
  13. package/build/static/css/1554.a6e4879c.chunk.css +2 -0
  14. package/build/static/css/{1554.b6b284c6.chunk.css.map → 1554.a6e4879c.chunk.css.map} +1 -1
  15. package/build/static/css/{2503.4ea4d2f7.chunk.css → 2503.6eac8454.chunk.css} +2 -2
  16. package/build/static/css/{2503.4ea4d2f7.chunk.css.map → 2503.6eac8454.chunk.css.map} +1 -1
  17. package/build/static/css/{2517.560572dc.chunk.css → 2517.b65cff27.chunk.css} +2 -2
  18. package/build/static/css/{2517.560572dc.chunk.css.map → 2517.b65cff27.chunk.css.map} +1 -1
  19. package/build/static/css/2716.7ed6ad0c.chunk.css +2 -0
  20. package/build/static/css/{2716.4b2f6373.chunk.css.map → 2716.7ed6ad0c.chunk.css.map} +1 -1
  21. package/build/static/css/{2730.c84c06a0.chunk.css → 2730.efdfe2e9.chunk.css} +2 -2
  22. package/build/static/css/{2730.c84c06a0.chunk.css.map → 2730.efdfe2e9.chunk.css.map} +1 -1
  23. package/build/static/css/{289.d18c3ecb.chunk.css → 289.a75de373.chunk.css} +2 -2
  24. package/build/static/css/{289.d18c3ecb.chunk.css.map → 289.a75de373.chunk.css.map} +1 -1
  25. package/build/static/css/{3142.dfeede75.chunk.css → 3142.2e813fbe.chunk.css} +2 -2
  26. package/build/static/css/{3142.dfeede75.chunk.css.map → 3142.2e813fbe.chunk.css.map} +1 -1
  27. package/build/static/css/{3843.a73ca07a.chunk.css → 3843.53483262.chunk.css} +2 -2
  28. package/build/static/css/{3843.a73ca07a.chunk.css.map → 3843.53483262.chunk.css.map} +1 -1
  29. package/build/static/css/4029.f83d1d5e.chunk.css +2 -0
  30. package/build/static/css/{4029.c9db0f1a.chunk.css.map → 4029.f83d1d5e.chunk.css.map} +1 -1
  31. package/build/static/css/4265.e4931d0d.chunk.css +2 -0
  32. package/build/static/css/{4265.42dec688.chunk.css.map → 4265.e4931d0d.chunk.css.map} +1 -1
  33. package/build/static/css/4666.2e196448.chunk.css +2 -0
  34. package/build/static/css/{4666.548f897d.chunk.css.map → 4666.2e196448.chunk.css.map} +1 -1
  35. package/build/static/css/5443.25578cd3.chunk.css +2 -0
  36. package/build/static/css/{5443.2bccaa12.chunk.css.map → 5443.25578cd3.chunk.css.map} +1 -1
  37. package/build/static/css/5600.09f69275.chunk.css +2 -0
  38. package/build/static/css/{5600.2136e4b2.chunk.css.map → 5600.09f69275.chunk.css.map} +1 -1
  39. package/build/static/css/{5873.ebfa408a.chunk.css → 5873.e86b4cc6.chunk.css} +2 -2
  40. package/build/static/css/{5873.ebfa408a.chunk.css.map → 5873.e86b4cc6.chunk.css.map} +1 -1
  41. package/build/static/css/{5996.31bec633.chunk.css → 5996.39864943.chunk.css} +2 -2
  42. package/build/static/css/{5996.31bec633.chunk.css.map → 5996.39864943.chunk.css.map} +1 -1
  43. package/build/static/css/{6611.f9fed565.chunk.css → 6611.064e2efb.chunk.css} +2 -2
  44. package/build/static/css/{6611.f9fed565.chunk.css.map → 6611.064e2efb.chunk.css.map} +1 -1
  45. package/build/static/css/6779.ab2223cf.chunk.css +2 -0
  46. package/build/static/css/{6779.d6e4cba8.chunk.css.map → 6779.ab2223cf.chunk.css.map} +1 -1
  47. package/build/static/css/7121.c6421e71.chunk.css +2 -0
  48. package/build/static/css/{7121.89ff6b9c.chunk.css.map → 7121.c6421e71.chunk.css.map} +1 -1
  49. package/build/static/css/7227.ca866c11.chunk.css +2 -0
  50. package/build/static/css/{7227.4f2bd993.chunk.css.map → 7227.ca866c11.chunk.css.map} +1 -1
  51. package/build/static/css/8017.f1114d30.chunk.css +2 -0
  52. package/build/static/css/{8017.510cf72d.chunk.css.map → 8017.f1114d30.chunk.css.map} +1 -1
  53. package/build/static/css/8332.78be0488.chunk.css +2 -0
  54. package/build/static/css/{8332.1b5ad220.chunk.css.map → 8332.78be0488.chunk.css.map} +1 -1
  55. package/build/static/css/{8725.e6bf595a.chunk.css → 8725.463059c3.chunk.css} +2 -2
  56. package/build/static/css/{8725.e6bf595a.chunk.css.map → 8725.463059c3.chunk.css.map} +1 -1
  57. package/build/static/css/9968.583c1999.chunk.css +2 -0
  58. package/build/static/css/{9968.47f58d49.chunk.css.map → 9968.583c1999.chunk.css.map} +1 -1
  59. package/build/static/js/{1106.cba94cd2.chunk.js → 1106.04b0c040.chunk.js} +2 -2
  60. package/build/static/js/{1106.cba94cd2.chunk.js.map → 1106.04b0c040.chunk.js.map} +1 -1
  61. package/build/static/js/{1153.12ffa226.chunk.js → 1153.846bda47.chunk.js} +3 -3
  62. package/build/static/js/{1153.12ffa226.chunk.js.map → 1153.846bda47.chunk.js.map} +1 -1
  63. package/build/static/js/1154.5b3d7cb8.chunk.js +2 -0
  64. package/build/static/js/1154.5b3d7cb8.chunk.js.map +1 -0
  65. package/build/static/js/{1454.9a5b2db4.chunk.js → 1454.fcfdb9b3.chunk.js} +3 -3
  66. package/build/static/js/{1454.9a5b2db4.chunk.js.map → 1454.fcfdb9b3.chunk.js.map} +1 -1
  67. package/build/static/js/1554.0dc0575d.chunk.js +3 -0
  68. package/build/static/js/{1554.bf4e1c34.chunk.js.map → 1554.0dc0575d.chunk.js.map} +1 -1
  69. package/build/static/js/{2503.5913f925.chunk.js → 2503.dcef1623.chunk.js} +2 -2
  70. package/build/static/js/{2503.5913f925.chunk.js.map → 2503.dcef1623.chunk.js.map} +1 -1
  71. package/build/static/js/2517.8a796c8c.chunk.js +2 -0
  72. package/build/static/js/{2517.d307103f.chunk.js.map → 2517.8a796c8c.chunk.js.map} +1 -1
  73. package/build/static/js/{2716.9908ad0f.chunk.js → 2716.4894187d.chunk.js} +3 -3
  74. package/build/static/js/{2716.9908ad0f.chunk.js.map → 2716.4894187d.chunk.js.map} +1 -1
  75. package/build/static/js/2730.e12f5e81.chunk.js +2 -0
  76. package/build/static/js/{2730.b7606d77.chunk.js.map → 2730.e12f5e81.chunk.js.map} +1 -1
  77. package/build/static/js/2814.49395ef1.chunk.js +2 -0
  78. package/build/static/js/{2814.44d311d3.chunk.js.map → 2814.49395ef1.chunk.js.map} +1 -1
  79. package/build/static/js/{289.6c924afe.chunk.js → 289.4101b886.chunk.js} +2 -2
  80. package/build/static/js/{289.6c924afe.chunk.js.map → 289.4101b886.chunk.js.map} +1 -1
  81. package/build/static/js/{3142.94d29aa7.chunk.js → 3142.a9d6b46c.chunk.js} +2 -2
  82. package/build/static/js/{3142.94d29aa7.chunk.js.map → 3142.a9d6b46c.chunk.js.map} +1 -1
  83. package/build/static/js/3245.1c4f7324.chunk.js +3 -0
  84. package/build/static/js/{3245.3f1edba5.chunk.js.LICENSE.txt → 3245.1c4f7324.chunk.js.LICENSE.txt} +3 -3
  85. package/build/static/js/3245.1c4f7324.chunk.js.map +1 -0
  86. package/build/static/js/36.e71827ba.chunk.js +2 -0
  87. package/build/static/js/{36.5aba5cce.chunk.js.map → 36.e71827ba.chunk.js.map} +1 -1
  88. package/build/static/js/{3843.4b7781ba.chunk.js → 3843.6f087383.chunk.js} +2 -2
  89. package/build/static/js/{3843.4b7781ba.chunk.js.map → 3843.6f087383.chunk.js.map} +1 -1
  90. package/build/static/js/{4029.6d5521dc.chunk.js → 4029.d9ec6d38.chunk.js} +2 -2
  91. package/build/static/js/4029.d9ec6d38.chunk.js.map +1 -0
  92. package/build/static/js/4265.8c153bf7.chunk.js +2 -0
  93. package/build/static/js/4265.8c153bf7.chunk.js.map +1 -0
  94. package/build/static/js/{4344.696872e7.chunk.js → 4344.c9a7eca5.chunk.js} +2 -2
  95. package/build/static/js/{4344.696872e7.chunk.js.map → 4344.c9a7eca5.chunk.js.map} +1 -1
  96. package/build/static/js/{4666.60cc27df.chunk.js → 4666.c863111f.chunk.js} +3 -3
  97. package/build/static/js/{4666.60cc27df.chunk.js.map → 4666.c863111f.chunk.js.map} +1 -1
  98. package/build/static/js/{5443.ba229912.chunk.js → 5443.261b1e5c.chunk.js} +2 -2
  99. package/build/static/js/{5443.ba229912.chunk.js.map → 5443.261b1e5c.chunk.js.map} +1 -1
  100. package/build/static/js/{5600.67e74e25.chunk.js → 5600.4818eaa9.chunk.js} +2 -2
  101. package/build/static/js/{5600.67e74e25.chunk.js.map → 5600.4818eaa9.chunk.js.map} +1 -1
  102. package/build/static/js/5873.041d0e6e.chunk.js +2 -0
  103. package/build/static/js/{5873.cd1ed1e7.chunk.js.map → 5873.041d0e6e.chunk.js.map} +1 -1
  104. package/build/static/js/{5996.86288674.chunk.js → 5996.858e0fda.chunk.js} +2 -2
  105. package/build/static/js/{5996.86288674.chunk.js.map → 5996.858e0fda.chunk.js.map} +1 -1
  106. package/build/static/js/6213.1666f238.chunk.js +2 -0
  107. package/build/static/js/6213.1666f238.chunk.js.map +1 -0
  108. package/build/static/js/{6569.1c942752.chunk.js → 6569.fa9fe4bd.chunk.js} +2 -2
  109. package/build/static/js/{6569.1c942752.chunk.js.map → 6569.fa9fe4bd.chunk.js.map} +1 -1
  110. package/build/static/js/6611.550ebf39.chunk.js +2 -0
  111. package/build/static/js/6611.550ebf39.chunk.js.map +1 -0
  112. package/build/static/js/{6779.5a8cbf1b.chunk.js → 6779.62c32b7d.chunk.js} +2 -2
  113. package/build/static/js/{6779.5a8cbf1b.chunk.js.map → 6779.62c32b7d.chunk.js.map} +1 -1
  114. package/build/static/js/6900.5fe2f2fb.chunk.js +2 -0
  115. package/build/static/js/6900.5fe2f2fb.chunk.js.map +1 -0
  116. package/build/static/js/6915.229c7c31.chunk.js +2 -0
  117. package/build/static/js/{6915.cd6f843c.chunk.js.map → 6915.229c7c31.chunk.js.map} +1 -1
  118. package/build/static/js/7121.20374562.chunk.js +2 -0
  119. package/build/static/js/{7121.e2c2ae61.chunk.js.map → 7121.20374562.chunk.js.map} +1 -1
  120. package/build/static/js/{7227.b4b0d9d6.chunk.js → 7227.17cb3671.chunk.js} +3 -3
  121. package/build/static/js/{7227.b4b0d9d6.chunk.js.map → 7227.17cb3671.chunk.js.map} +1 -1
  122. package/build/static/js/{7790.5e2f4e05.chunk.js → 7790.d04a18e0.chunk.js} +2 -2
  123. package/build/static/js/{7790.5e2f4e05.chunk.js.map → 7790.d04a18e0.chunk.js.map} +1 -1
  124. package/build/static/js/{8017.737e2936.chunk.js → 8017.3695d21c.chunk.js} +2 -2
  125. package/build/static/js/{8017.737e2936.chunk.js.map → 8017.3695d21c.chunk.js.map} +1 -1
  126. package/build/static/js/{8332.0419e33c.chunk.js → 8332.f0fe21a5.chunk.js} +2 -2
  127. package/build/static/js/{8332.0419e33c.chunk.js.map → 8332.f0fe21a5.chunk.js.map} +1 -1
  128. package/build/static/js/{8725.505ca68d.chunk.js → 8725.047c9437.chunk.js} +2 -2
  129. package/build/static/js/{8725.505ca68d.chunk.js.map → 8725.047c9437.chunk.js.map} +1 -1
  130. package/build/static/js/{9968.e60952f0.chunk.js → 9968.895470d8.chunk.js} +2 -2
  131. package/build/static/js/{9968.e60952f0.chunk.js.map → 9968.895470d8.chunk.js.map} +1 -1
  132. package/build/static/js/{main.e25f1730.js → main.1adb1b75.js} +2 -2
  133. package/build/static/js/{main.e25f1730.js.map → main.1adb1b75.js.map} +1 -1
  134. package/package.json +1 -1
  135. package/build/static/css/1151.f4c49b34.chunk.css +0 -2
  136. package/build/static/css/1153.5755c9dc.chunk.css +0 -2
  137. package/build/static/css/1154.5a8145c4.chunk.css +0 -2
  138. package/build/static/css/1454.8e9570d5.chunk.css +0 -2
  139. package/build/static/css/1554.b6b284c6.chunk.css +0 -2
  140. package/build/static/css/2716.4b2f6373.chunk.css +0 -2
  141. package/build/static/css/4029.c9db0f1a.chunk.css +0 -2
  142. package/build/static/css/4265.42dec688.chunk.css +0 -2
  143. package/build/static/css/4666.548f897d.chunk.css +0 -2
  144. package/build/static/css/5443.2bccaa12.chunk.css +0 -2
  145. package/build/static/css/5600.2136e4b2.chunk.css +0 -2
  146. package/build/static/css/6779.d6e4cba8.chunk.css +0 -2
  147. package/build/static/css/7121.89ff6b9c.chunk.css +0 -2
  148. package/build/static/css/7227.4f2bd993.chunk.css +0 -2
  149. package/build/static/css/8017.510cf72d.chunk.css +0 -2
  150. package/build/static/css/8332.1b5ad220.chunk.css +0 -2
  151. package/build/static/css/9968.47f58d49.chunk.css +0 -2
  152. package/build/static/js/1154.4ba565be.chunk.js +0 -2
  153. package/build/static/js/1154.4ba565be.chunk.js.map +0 -1
  154. package/build/static/js/1554.bf4e1c34.chunk.js +0 -3
  155. package/build/static/js/2517.d307103f.chunk.js +0 -2
  156. package/build/static/js/2730.b7606d77.chunk.js +0 -2
  157. package/build/static/js/2814.44d311d3.chunk.js +0 -2
  158. package/build/static/js/3245.3f1edba5.chunk.js +0 -3
  159. package/build/static/js/3245.3f1edba5.chunk.js.map +0 -1
  160. package/build/static/js/36.5aba5cce.chunk.js +0 -2
  161. package/build/static/js/4029.6d5521dc.chunk.js.map +0 -1
  162. package/build/static/js/4265.d1bdfc8c.chunk.js +0 -2
  163. package/build/static/js/4265.d1bdfc8c.chunk.js.map +0 -1
  164. package/build/static/js/5873.cd1ed1e7.chunk.js +0 -2
  165. package/build/static/js/6213.0b1c3a66.chunk.js +0 -2
  166. package/build/static/js/6213.0b1c3a66.chunk.js.map +0 -1
  167. package/build/static/js/6611.807344e6.chunk.js +0 -2
  168. package/build/static/js/6611.807344e6.chunk.js.map +0 -1
  169. package/build/static/js/6900.f3eb50ed.chunk.js +0 -2
  170. package/build/static/js/6900.f3eb50ed.chunk.js.map +0 -1
  171. package/build/static/js/6915.cd6f843c.chunk.js +0 -2
  172. package/build/static/js/7121.e2c2ae61.chunk.js +0 -2
  173. /package/build/static/js/{1153.12ffa226.chunk.js.LICENSE.txt → 1153.846bda47.chunk.js.LICENSE.txt} +0 -0
  174. /package/build/static/js/{1454.9a5b2db4.chunk.js.LICENSE.txt → 1454.fcfdb9b3.chunk.js.LICENSE.txt} +0 -0
  175. /package/build/static/js/{1554.bf4e1c34.chunk.js.LICENSE.txt → 1554.0dc0575d.chunk.js.LICENSE.txt} +0 -0
  176. /package/build/static/js/{2716.9908ad0f.chunk.js.LICENSE.txt → 2716.4894187d.chunk.js.LICENSE.txt} +0 -0
  177. /package/build/static/js/{4666.60cc27df.chunk.js.LICENSE.txt → 4666.c863111f.chunk.js.LICENSE.txt} +0 -0
  178. /package/build/static/js/{7227.b4b0d9d6.chunk.js.LICENSE.txt → 7227.17cb3671.chunk.js.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see 1554.bf4e1c34.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1554,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});s(73884);var n=s(83136),o=s.n(n),l=s(70579);const r=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),_=e=>{let{type:t,colorful:s,className:n,size:_,style:a,prefix:c,...i}=e;const d=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,c,s),u=o()(n,{iconfont:!s,"iconfont--color":s},d),p=Object.assign({},a,_?{fontSize:r(_)}:{});return s?(0,l.jsx)("svg",{...i,"data-testid":"components-core-iconfont",className:u,style:p,children:(0,l.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,l.jsx)("i",{...i,"data-testid":"components-core-iconfont",className:u,style:p})};_.defaultProps={colorful:!1,prefix:""};const a=_},21554:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>w,TooltipInfoLabel:()=>O,default:()=>g});var n=s(55199),o=s(83136),l=s.n(o);const r="style_tooltip__zHGMI__1KduF",_="style_large__lvmsm__1KduF",a="style_small__nUt0r__1KduF",c="style_popup-content__-rKQN__1KduF",i="style_title__1EQPq__1KduF",d="style_important-info__qTSZY__1KduF",u="style_error__yTTq3__1KduF",p="style_warning__CMJxz__1KduF",f="style_success__AvJVx__1KduF",y="style_sub-title__uD8CH__1KduF",m="style_content__lzgUz__1KduF",x="style_alone__q6q82__1KduF",h="style_fetch-content__tEOEV__1KduF",v="style_fetch-loading__tN-WB__1KduF",j="style_title-info-icon__iY8Q+__1KduF";var F=s(70579);const N=e=>{let{overlayClassName:t,title:s,size:o,subtitle:h,content:v,importantInfo:j,importantInfoType:N,moreInfo:g,...K}=e;return(0,F.jsx)(n.Tooltip,{...K,overlayClassName:l()(t,r,{[a]:"small"===o,[_]:"large"===o}),title:(0,F.jsxs)(n.Space,{direction:"vertical",className:c,children:[s&&(0,F.jsx)("div",{className:i,children:s}),j&&(0,F.jsx)("div",{className:l()(d,{[f]:"success"===N,[p]:"warning"===N,[u]:"error"===N}),children:j}),h&&(0,F.jsx)("div",{className:y,children:h}),v&&(0,F.jsx)("div",{className:l()(m,{[x]:[s,h,j,g].every((e=>!e))}),children:v}),g&&(0,F.jsx)("div",{children:g})]})})};N.defaultProps={};const g=N;var K=s(64671);const O=e=>{let{title:t,tooltipTitle:s}=e;return(0,F.jsxs)("div",{children:[t,s?(0,F.jsx)(g,{...s,children:(0,F.jsx)("span",{children:(0,F.jsx)(K.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var b=s(73884),C=s(87558);const k=e=>{let{api:t,children:s,fetchContent:o,showLoading:r,loadingClassName:_,force:a,...c}=e;const[i,d]=(0,b.useState)(!1),u=(0,C.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:f,data:y,send:m}=u;return(0,F.jsx)(g,{...Object.assign({},c,p?o(y,u):{}),open:i,onOpenChange:async e=>{!e||p&&!a||await m({type:"refresh"}),d(e)},children:(0,F.jsxs)("span",{className:h,children:[s,r&&f?(0,F.jsx)(n.Spin,{size:"small",className:l()(_,v)}):null]})})};k.defaultProps={showLoading:!0};const w=k},51153:(e,t,s)=>{var n=s(73884),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,_=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,s){var n,l={},c=null,i=null;for(n in void 0!==s&&(c=""+s),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(i=t.ref),t)r.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:i,props:l,_owner:_.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},70579:(e,t,s)=>{e.exports=s(51153)}}]);
3
- //# sourceMappingURL=1554.bf4e1c34.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2517,9034],{17342:(e,o,l)=>{l.d(o,{A:()=>s});var t=l(8762),n=l.n(t);l(46733);const s=n()},3382:(e,o,l)=>{l.r(o),l.d(o,{ModalButton:()=>A,TabsModal:()=>k,TabsModalButton:()=>R,default:()=>F,useConfirmModal:()=>N,useModal:()=>v,useTabsModal:()=>P});var t=l(73884),n=l(55199),s=l(83136),i=l.n(s);const r={modal:"style_modal__Pm3cF__1KduF",large:"style_large__iaqVE__1KduF","modal-body-inner":"style_modal-body-inner__4PhpA__1KduF","modal-title":"style_modal-title__dswaw__1KduF","modal-outer":"style_modal-outer__r3SkX__1KduF","modal-body":"style_modal-body__jQJSI__1KduF","right-options-modal":"style_right-options-modal__FajDP__1KduF","right-options-row":"style_right-options-row__-mPb9__1KduF","right-options-col":"style_right-options-col__3ilee__1KduF","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__1KduF",content:"style_content__k6MIF__1KduF","modal-footer":"style_modal-footer__-prbN__1KduF","modal-close":"style_modal-close__Oa5Kl__1KduF","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__1KduF","is-danger":"style_is-danger__H5110__1KduF",title:"style_title__orTym__1KduF","has-title":"style_has-title__qy0Wp__1KduF"},a=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var c=l(58609),d=l(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var u=l(81014),h=l(17342),_=l(70579);const p="Modal",f=e=>{let{options:o,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:18,className:r["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:6,className:r["right-options-col"],children:o})]}):l},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:l,onConfirm:s,onCancel:i,onClose:r,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(l)&&0===l.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(l||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:p})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:p})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:l,onClick:n,autoClose:s=!0,display:i,...a}=e;const c=l||u.default;return(0,t.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];const t=await Promise.resolve(n&&n(...o,d));return s&&!1!==t&&r&&r(),t}})}))})})]})},b=e=>{let{title:o,footer:l,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:u,onCancel:p,children:f,targetProps:y}=e;const g=(0,t.useRef)(null);return(0,_.jsxs)("div",{className:r["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:r["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==l||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:l,footerButtons:a,onConfirm:u,onCancel:p,onClose:c,targetProps:y})}):null]})},j=e=>{let{withDecorator:o,footerButtons:l,title:t,closable:n,onClose:s,onConfirm:i,onCancel:r,footer:a,rightOptions:c,disabledScroller:d,childrenRef:u,children:h}=e;const p=e=>(e=Object.assign({},{title:t},e),(0,_.jsx)(b,{title:m(e.title,{...e,childrenRef:u,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:r,footerButtons:m(l,{...e,close:s}),disabledScroller:d,footer:m(a,{...e,childrenRef:u,close:s}),targetProps:Object.assign({},e,{childrenRef:u,close:s}),children:(0,_.jsx)(f,{options:m(c,{...e,childrenRef:u,close:s}),children:m(h,{...e,childrenRef:u,close:s})})}));return"function"===typeof o?o(p):p({})},x=e=>{let{children:o,rightOptions:l,footer:t,footerButtons:n,className:s,size:d,title:m,onClose:u,onConfirm:h,onCancel:p,closable:f,disabledScroller:y,withDecorator:C,childrenRef:b,...x}=e;return{...x,icon:null,centered:!0,title:null,maskClosable:!!x.hasOwnProperty("maskClosable")&&x.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:u,className:i()(s,r.modal,r[d],{[r["right-options-modal"]]:l}),...g(d,!(null===t&&!n)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:j({withDecorator:C,title:m,closable:f,onClose:u,onConfirm:h,onCancel:p,footer:t,footerButtons:n,rightOptions:l,disabledScroller:y,children:o,childrenRef:b})})}},w=e=>{const o=(0,t.useRef)(null);return(0,_.jsx)(n.Modal,{...x(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const v=()=>{const{modal:e}=n.App.useApp(),o=(0,t.useRef)(null);return l=>{const t={},{children:n,...s}=x({onClose:()=>t.close(),childrenRef:o,...l}),{destroy:i}=e.info({...s,content:n});return t.close=i,t}},N=()=>{const{modal:e}=n.App.useApp();return o=>{const l={},{type:t,icon:s,title:a,danger:c,wrapClassName:m,message:u,iconSetting:h={},confirmType:p="info",...f}={onClose:()=>l.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[t]){const{destroy:o}=e[t]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?p:t}`),type:s||y["confirm"===t?p:t]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?p:t}`),type:s||y["confirm"===t?p:t]}):null,u]})});l.close=o}return l}},F=w,K=e=>{let{items:o,className:l,activeKey:t,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,_.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:t,...n}=o;return Object.assign({},n,{children:"function"===typeof t?t((o=>e(Object.assign({},l,o,{children:n.children})))):e(Object.assign({},l,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:t,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(l):l()},children:e=>{let{children:o,...l}=e;return"function"===typeof o?o(l):o}}},k=e=>(0,_.jsx)(F,{...K(e)}),P=()=>{const e=v();return o=>e(K(o))};var M=l(73025);const R=e=>{const o=P();return(0,_.jsx)(M.A,{...e,modalFunc:o})},A=e=>{const o=v();return(0,_.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
- //# sourceMappingURL=2517.d307103f.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2730,9034,8725],{18411:(e,t,a)=>{a.d(t,{A:()=>r});a(73884);const r=a.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},97211:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(87558),s=a.n(r),n=a(63908),i=a(34677),o=a.n(i),l=a(70579);const c=e=>{const t=t=>{let{id:a,url:r,error:i,apis:c,loading:d,...u}=t;const{apis:m}=(0,n.usePreset)(),p=o()({},m,c);if(!a)return null;if(!p.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:f,paramsName:g,..._}=Object.assign({paramsType:"params",paramsName:"id"},p.oss),h={};return h[f]={[g]:a},(0,l.jsx)(s(),{...Object.assign({},_,h),updateType:"refresh",error:i,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:r}=t;return(0,l.jsx)(e,{...u,id:a,data:r})}})};return t.defaultProps={loading:null},t}},40438:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var r=a(87558),s=a.n(r),n=a(97211),i=a(64671),o=a(83136),l=a.n(o),c=a(55199),d=a(73884);const u=e=>{let{params:t}=e;const{data:a}=t;return new Promise(((e,t)=>{const r=new window.Image;r.src=a,r.addEventListener("load",(()=>{e(a)})),r.addEventListener("error",(e=>{t(e)}))}))},m="style_img-outer__4QLY5__1KduF",p="style_img__PSExq__1KduF",f="style_loading__WCOwA__1KduF",g="style_error__+ECgZ__1KduF";var _=a(18411),h=a(63908),x=a(70579);const v=e=>{let{data:t,className:a,alt:r,innerLoading:n,loading:i,error:o,innerError:c,children:d,onClick:m,staticUrl:f}=e;const{staticUrl:g}=(0,h.usePreset)(),_=f||g||"";return(0,x.jsx)(s(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:_+t},error:c||o,loading:n||i,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:r,className:l()(a,p),src:t}):(0,x.jsx)("img",{alt:r,className:l()(a,p),src:t,onClick:m})}})},j=(0,n.A)(v),y=e=>{let{loading:t,error:a,src:r,id:s,alt:n,className:i,children:o,apis:l,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:f}),m=a&&(0,d.cloneElement)(a,{className:g});return r?(0,x.jsx)(v,{alt:n,className:i,data:r,loading:u,error:m,onClick:c,children:o}):s?(0,x.jsx)(j,{alt:n,className:i,id:s,loading:u,innerLoading:u,error:m,innerError:m,apis:l,onClick:c,children:o}):m},N=e=>{let{id:t,src:a,alt:r,onClick:s,loading:n,error:i,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:l()(o,m),children:y({loading:n,error:i,src:a,id:t,alt:r,className:o,apis:c,onClick:s})})};N.Avatar=e=>{let{id:t,src:a,alt:r,gender:s,loading:n,error:o,className:d,gap:u,icon:p,children:f,shape:g,size:_,width:h,height:v,defaultAvatar:j,apis:N,...b}=e;const w=(()=>{const e=h&&v?{style:{width:h,height:v}}:{size:_};if(h&&h!==v&&(g="square"),t||a)return y({loading:n,error:o,src:a,defaultAvatar:j,id:t,alt:r,className:d,apis:N,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:g,...e})});if(s){const t=s&&["F","female","f"].indexOf(s)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...b,src:(0,x.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:g,...e})}return(0,x.jsx)(c.Avatar,{...b,gap:u,icon:p,shape:g,size:_,src:j,...e,children:f})})();return(0,x.jsx)("div",{...b,"data-testid":"components-core-image-avatar",className:l()(d,m),style:{width:h&&v?h:_,height:h&&v?v:_},children:w})};const b={error:(0,x.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};N.defaultProps=Object.assign({},b),N.Avatar.defaultProps=Object.assign({},b,{size:100,defaultAvatar:_.A});const w=N},79329:(e,t,a)=>{a.r(t),a.d(t,{default:()=>O,navigationHeight:()=>F});var r=a(55199),s=a(94679),n=a(33097),i=a.n(n),o=a(73884),l=a(83136),c=a.n(l);const d=a.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var u=a(40438);const m=e=>({"en-US":()=>a.e(257).then(a.bind(a,30257)),"zh-CN":()=>a.e(5671).then(a.bind(a,5671))}[e]());var p=a(58609),f=a(96418),g=a.n(f),_=a(64671);const h="style_navigation-wrap__VF8x2__1KduF",x="style_navigation__60RrS__1KduF",v="style_is-fixed__kHFWj__1KduF",j="style_navigation-logo__q9qHu__1KduF",y="style_logo__lB9RC__1KduF",N="style_navigation-list__EYtkg__1KduF",b="style_navigation-options__0BdJU__1KduF",w="style_more-icon__gNMnt__1KduF";var k=a(70579);const{Header:A}=r.Layout,F=48,C=e=>{let{name:t,mapping:a,defaultTitle:r}=e;const s=(0,o.useRef)({mapping:a,defaultTitle:r});return(0,o.useEffect)((()=>{const e=i()(s.current.mapping.get(t),"title");document.title=(e?e+"-":"")+s.current.defaultTitle}),[t]),null},E=e=>{let{onReady:t}=e;const a=g()(t);return(0,o.useEffect)((()=>{a()}),[a]),null},K=e=>{let{permissions:t,list:a,headerLogo:n,rightOptions:l,isFixed:f,showIndex:g,indexLabel:F,defaultTitle:K,overflowedIndicator:O,base:L,onChange:T,className:M}=e;const P=(0,o.useMemo)((()=>new Map(a.map((e=>{let{key:t,...a}=e;return[t,a]})))),[a]),R=(0,s.useNavigate)(),S=(0,s.useLocation)(),z=(0,o.useRef)(),I=(0,o.useRef)(null),[q,H]=(0,o.useState)("\u66f4\u591a"),[U,B]=(0,o.useState)(!1),W=S.pathname.replace(new RegExp(`^${L}`),"").split("/")[1],Y=W?i()(Array.from(P.entries()).find((e=>{let[a,{path:r,permission:s}]=e;return-1!==("function"===typeof r?r(s,t):r).indexOf("/"+W)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(z.current){const e=z.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let r=0;r<e.length;r++){if(-1!==e[r].getAttribute("data-menu-id").indexOf(Y)){t=!0;break}}let a=P.get(Y)&&!t?i()(P.get(Y),"title"):"";H(a)}},t={attributes:!0,childList:!0,subtree:!0};return U&&z&&z.current&&(e(),I.current&&I.current.disconnect(),I.current=new MutationObserver(e),I.current.observe(z.current,t)),()=>{I.current&&I.current.disconnect()}}),[Y,P,U]);const G=!!g&&{label:F||(0,k.jsx)(p.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{T&&T("/"),setTimeout((()=>{R("/")}),0)}};return(0,k.jsxs)(p.IntlProvider,{importMessages:m,moduleName:"Navigation",children:[(0,k.jsx)(p.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,k.jsx)(C,{defaultTitle:K||e,mapping:P,name:Y})}),(0,k.jsx)("div",{className:c()(h,M),children:(0,k.jsx)(A,{className:c()("navigation",x,{[v]:f}),children:(0,k.jsxs)(r.Row,{justify:"space-around",wrap:!1,children:[(0,k.jsx)(r.Col,{className:c()("navigation-logo",j),children:(0,k.jsx)(u.default,{className:c()(y),src:d,alt:"logo",...n})}),(0,k.jsxs)(r.Col,{ref:z,flex:1,className:c()("navigation-list",N),children:[(0,k.jsx)(E,{onReady:()=>{B(!0)}}),(0,k.jsx)(r.Menu,{selectedKeys:[Y],mode:"horizontal",overflowedIndicator:O||(0,k.jsxs)(r.Space,{size:4,children:[(0,k.jsx)("span",{children:q||(0,k.jsx)(p.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,k.jsx)("span",{className:w,children:(0,k.jsx)(_.default,{type:"icon-arrow-thin-down"})})]}),items:[G,...Array.from(P.entries()).filter((e=>{let[a,{permission:r}]=e;if("string"===typeof r)return t.indexOf(r)>-1;if("function"===typeof r)return r(t);if(Array.isArray(r)){for(let e of r)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[a,{title:r,path:s,permission:n}]=e;const i="function"===typeof s?s(n,t):s;return{label:r,key:a,onClick:()=>{T&&T(i),setTimeout((()=>{R(i)}),0)}}}))]})]}),(0,k.jsx)(r.Col,{className:b,children:l})]})})})]})};K.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const O=K}}]);
2
- //# sourceMappingURL=2730.b7606d77.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2814],{25644:(e,t,n)=>{n.d(t,{A:()=>r});const r={getItem:e=>{const t=window.localStorage.getItem(e);try{const{dataType:e,value:n}=JSON.parse(t);if("object"===e&&"null"===n)return null;if("undefined"===e)return;return"number"===e?Number(n):"boolean"===e?Boolean(n):n}catch(n){return null}},setItem:(e,t)=>{const n=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:n,value:t}))}}},80940:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(73884),s=n(96418),o=n.n(s),i=n(55199),l=n(83136),a=n.n(l),c=n(64671),d=n(81014),m=n(58407),u=n(77964),p=n(22616),h=n.n(p);const y="style_width-container__JfEbg__1KduF",g="style_hidden-container__EdySA__1KduF",_="style_hidden-inner__vAN59__1KduF",f="style_menu-list__VDttR__1KduF",x="style_btn-item__mp5MQ__1KduF";var v=n(15797),j=n.n(v),b=n(70579);const C=j()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:r,spaceProps:s,compact:o}=e;const i=o?0:["small","middle","large"].indexOf(s.size)>-1?8*(["small","middle","large"].indexOf(s.size)+1):Number.isInteger(s.size)?s.size:8;let l=0,a=0;for(;t>=a+r[l]+l*i&&l<r.length;)a+=r[l],l+=1;for(;t<a+(l-1)*i+(l<r.length?n+i:0)&&l>0;)a-=r[l-1],l-=1;return l}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:r,spaceProps:s,compact:o}=e;return`${t}${n}${r.join(",")}${Object.values(s).join(",")}${o&&o.toString()}`})),w=e=>{let{list:t,more:n,compact:s,...l}=e;const c=h()(l,["size","split","align","style"]),[p,v]=(0,r.useState)(t.length&&1),j=o()((()=>{const e=N.current,t=F.current,n=w.current;if(!e)return;const o=e.querySelectorAll(".button-group-item");if(!o)return;if(0===o.length)return;const i=n.clientWidth,l=t.clientWidth,a=[].map.call(o,(e=>e.offsetWidth)),d=C({amountWidth:i,moreBtnWidth:l,buttonWidthList:a,spaceProps:c,compact:s});(0,r.startTransition)((()=>{v(d)}))})),w=(0,u.A)(j),N=(0,u.A)(j),F=(0,u.A)(j),E=t.slice(p),S=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:s,confirm:o,buttonComponent:i,...l}=e,c=o||l.message,u=c?m.default:i||d.default;return(0,r.createElement)(u,{danger:c&&!1!==l.isDelete,...Object.assign({},l,c&&(l.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",x,s)})},R=s?i.Space.Compact:i.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:y,ref:w}),(0,b.jsxs)("div",{className:g,children:[(0,b.jsx)("div",{className:_,ref:F,children:n}),(0,b.jsx)("div",{className:_,ref:N,children:(0,b.jsx)(R,{...c,children:t.map(S)})})]}),(0,b.jsxs)(R,{...c,children:[t.slice(0,p).map(((e,t)=>S(e,t,!1))),E.length>0&&(0,b.jsx)(i.Dropdown,{overlayClassName:f,menu:{items:E.map(((e,t)=>({key:t,label:S(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(i.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const N=w},58407:(e,t,n)=>{n.r(t),n.d(t,{ConfirmLink:()=>_,ConfirmText:()=>f,default:()=>x,withConfirm:()=>g});n(73884);var r=n(55199);const s=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var o=n(64671),i=n(58609),l=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__1KduF",m="style_is-danger__gxyAB__1KduF",u="style_title__EEPu2__1KduF",p="style_content__mZZg5__1KduF",h="style_has-title__5+PEt__1KduF";var y=n(70579);const g=e=>{const t=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:s})((t=>{let{title:n,message:s,isDelete:a=!0,onClick:g,onCancel:_,disabled:f,showCancel:x,cancelText:v,isModal:j,okText:b,placement:C,getContainer:w,...N}=t;const{formatMessage:F}=(0,i.useIntl)({moduleName:"ConfirmButton"}),E=(0,l.useConfirmModal)();return j?(0,y.jsx)(e,{...N,disabled:f,onClick:e=>{E({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:s||F({id:"message"}),okText:b||F(a?{id:"delete"}:{id:"confirm"}),cancelText:v||F({id:"cancel"}),onCancel:_,onOk:g})}}):(0,y.jsx)(r.Popconfirm,{title:(0,y.jsxs)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,y.jsxs)(r.Space,{size:0,align:"start",className:u,children:[a&&(0,y.jsx)(o.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,y.jsxs)(r.Space,{size:0,align:"start",className:c()(p,{[h]:n}),children:[!n&&a?(0,y.jsx)(o.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,s||F({id:"message"})]})]}),placement:C,onConfirm:g,okButtonProps:{danger:a},onCancel:_,overlayClassName:c()(d,{[m]:a}),getPopupContainer:w,disabled:f,showCancel:x,cancelText:v,okText:b||F(a?{id:"delete"}:{id:"confirm"}),children:(0,y.jsx)(e,{...N,disabled:f})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},_=g(r.Typography.Link),f=g(r.Typography.Text),x=g(r.Button)},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(73884),s=n(87558),o=n(63908),i=n(15797),l=n.n(i),a=n(79686),c=n.n(a),d=n(70579);const m=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],u=(0,s.withFetch)((e=>{let{data:t,children:n}=e;return"function"===typeof n?n(t):n||(null===t||void 0===t?void 0:t.description)})),p=l()((e=>new Map(m.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),h=e=>{let{loader:t,...n}=e;const{global:{enumsRef:s}}=(0,o.useGlobalContext)(),i=(0,r.useRef)(null);return(0,d.jsx)(u,{...n,loader:async function(){const e=p(await t(...arguments)),{params:n}=arguments.length<=0?void 0:arguments[0],{moduleName:r,name:o,force:l,locale:a}=n,d=async t=>!0!==l&&i.current===a&&s.current.get(t)||await(async()=>{const n=e.get(t),r=await(async()=>"function"===typeof n?new Map((await n({locale:a})).map((e=>[e.value.toString(),e]))):Array.isArray(n)?new Map(n.map((e=>[e.value.toString(),e]))):"object"===typeof n?new Map(Object.keys(n).map((e=>[e.toString(),n[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return s.current.set(t,r),i.current=a,r})();if(Array.isArray(r))return await Promise.all(r.map((e=>d(e).then((e=>Array.from(e.values()))))));const m=await d(r);return c()(o)?Array.from(m.values()):m.get(o.toString())}})},y=e=>{let{moduleName:t,name:n,force:r,children:s,...i}=e;const l=(0,o.usePreset)();return(0,d.jsx)(h,{...i,params:{moduleName:t,locale:null===l||void 0===l?void 0:l.locale,enums:null===l||void 0===l?void 0:l.enums,name:n,force:r},loader:e=>{let{params:t}=e;return t.enums},children:s})};y.defaultProps={force:!1};const g=y},62716:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(73884),s=n(83136),o=n.n(s);const i={"state-tag":"style_state-tag__Kx27z__1KduF","state-result-tag":"style_state-result-tag__CssDz__1KduF","state-skill-tag":"style_state-skill-tag__k0bQE__1KduF","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__1KduF","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__1KduF","state-tag-filterResult":"style_state-tag-filterResult__KTkot__1KduF","show-bg":"style_show-bg__OcL+R__1KduF","tag-text":"style_tag-text__JHCt+__1KduF","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__1KduF"};var l=n(55199),a=n(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},d=e=>{let{showBorder:t,text:n,type:s,showBackground:d,className:m,filterName:u,...p}=e;const h=(0,r.useMemo)((()=>{var e,t;return{color:(null===c||void 0===c||null===(e=c[s])||void 0===e?void 0:e.color)||c[s],borderColor:(null===c||void 0===c||null===(t=c[s])||void 0===t?void 0:t.borderColor)||c[s]}}),[s]);return(0,a.jsxs)(l.Space,{"data-testid":"components-core-state-tag",className:o()(i["state-tag-wrapper"],"filterResult"===s?i["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[u?(0,a.jsxs)("span",{className:i["state-tag-filter-name"],children:[u,":"]}):null,(0,a.jsx)(l.Tag,{color:h.color,...p,style:{background:d?h.color+"0F":"none",color:h.color,border:t?`1px solid ${h.borderColor}`:"none"},className:o()(i["state-tag"],m,"result"===s?i["state-result-tag"]:"","skill"===s?i["state-skill-tag"]:"",i[`state-tag-${s}`],d?i["show-bg"]:"",t?i["show-border"]:""),children:(0,a.jsx)("span",{className:i["tag-text"],children:n})})]})};d.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const m=d},22814:(e,t,n)=>{n.r(t),n.d(t,{TablePage:()=>Se,default:()=>be});const r={table:"style_table__z7kfz__1KduF","is-resize":"style_is-resize__ut6RW__1KduF","is-moving":"style_is-moving__BJ9wR__1KduF","cell-resize-bar":"style_cell-resize-bar__-mlUF__1KduF","is-computed":"style_is-computed__B9rIF__1KduF","options-column":"style_options-column__vsPTr__1KduF","options-btn":"style_options-btn__U3uoy__1KduF",tooltip:"style_tooltip__vJlkv__1KduF","table-changer-setting":"style_table-changer-setting__HcrwR__1KduF","width-changer-sign":"style_width-changer-sign__Aflyl__1KduF","columns-control":"style_columns-control__5-5ZF__1KduF","columns-control-content":"style_columns-control-content__MoeUI__1KduF","columns-control-content-title":"style_columns-control-content-title__P5sXV__1KduF","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__1KduF","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__1KduF","columns-control-content-input":"style_columns-control-content-input__G6yKq__1KduF","columns-control-content-list":"style_columns-control-content-list__aXvTs__1KduF","columns-control-content-item":"style_columns-control-content-item__jbyyE__1KduF","is-drag":"style_is-drag__U68aw__1KduF","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__1KduF","sortable-drag":"style_sortable-drag__K5hWd__1KduF","sortable-ghost":"style_sortable-ghost__lKTd2__1KduF","columns-control-overlay":"style_columns-control-overlay__OxCIz__1KduF","sort-btn":"style_sort-btn__KvNLr__1KduF","sort-active-desc":"style_sort-active-desc__TIhMC__1KduF","sort-icon":"style_sort-icon__dB85I__1KduF","sort-active-asc":"style_sort-active-asc__RUBup__1KduF"};var s=n(55199),o=n(73884),i=n(83136),l=n.n(i),a=n(42787),c=n(76801),d=n(77964),m=n(96418),u=n.n(m);const p={"col-item":"columns_col-item__Ym1Ec__1KduF",tag:"columns_tag__bQZLG__1KduF",avatar:"columns_avatar__SLPI+__1KduF",hover:"columns_hover__oAwHg__1KduF",primary:"columns_primary__6KtaA__1KduF",loading:"columns_loading__gtBay__1KduF",options:"columns_options__WvDZD__1KduF"};var h=n(57469),y=n.n(h),g=n(64671),_=n(80940),f=n(70579);const x=e=>{let{className:t,list:n=[],width:o}=e;return(0,f.jsx)("div",{className:l()(t,r["options-column"]),style:{"--max-width":o+"px"},children:(0,f.jsx)(_.default,{list:n.filter((e=>!(null!==e&&void 0!==e&&e.hidden))).map((e=>{let{className:t,...n}=e;return Object.assign({},n,{className:l()(t,"btn-no-padding",r["options-btn"]),type:"link"})})),more:(0,f.jsx)(s.Button,{icon:(0,f.jsx)(g.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"})})})};var v=n(62716),j=n(40438),b=n(48731),C=n(87558);const w=e=>{let{children:t,ellipsis:n}=e;return(0,f.jsx)(s.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{overlayClassName:r.tooltip,children:t}}),children:t})},N=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s,hover:i,primary:a,children:c,width:d,style:m,onClick:u,colValue:h}=e;const[y,g]=(0,o.useState)(!1);return(0,f.jsx)("div",{style:Object.assign({},m,{"--max-width":d+"px"}),className:l()(p["col-item"],p[t],r?null:{[p.hover]:i,[p.primary]:a,[p.loading]:y}),onClick:e=>{"function"!==typeof u||r||y||(g(!0),Promise.resolve(u({item:n,colItem:h,event:e})).finally((()=>{g(!1)})))},children:r?s({type:t,item:n,hover:i,primary:a,children:c}):c})};N.defaultProps={emptyRender:()=>"-"};const F=N,E=(e,t)=>"function"===typeof t?t(e):Array.isArray(e)&&0===e.length||e&&"object"===typeof e&&0===Object.values(e).length||""===e||void 0===e||null===e,S=(0,C.createWithFetch)({loading:null})((e=>{let{data:t,children:n}=e;return n(t)})),R=e=>{let{api:t,expand:n,onExpand:r,ellipsis:o,hover:i,primary:l,emptyRender:a,isEmpty:c}=e;const d=Object.assign({},t);return n?(0,f.jsx)(S,{...d,children:e=>(0,f.jsx)(F,{type:"hide-info-expand",item:e,hover:i,primary:l,emptyRender:a,isEmpty:E(e),children:(0,f.jsx)(w,{ellipsis:o,children:"function"===typeof d.children?d.children(e):e})})}):(0,f.jsx)(F,{type:"hide-info",primary:!0,emptyRender:a,children:(0,f.jsx)(s.Button,{className:"btn-no-padding",type:"link",onClick:r,children:"\u67e5\u770b"})})};var k=n(1488),O=n.n(k);const K=(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"other",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},P={date:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(F,{...i,type:"date",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM-DD")})},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(F,{...i,type:"date-short",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM")})},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(F,{...i,type:"date-range",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s,children:y()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+y()(null===e||void 0===e?void 0:e[1]).format("HH:mm")})},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,hideSecond:i,...l}=t;return(0,f.jsx)(F,{...l,item:e,primary:r,hover:n,emptyRender:s,isEmpty:o||!y()(e).isValid(),children:y()(e).format(i?"YYYY-MM-DD HH:mm":"YYYY-MM-DD HH:mm:ss")})},width:190,min:190,max:400},serialNumber:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,...i}=t;return(0,f.jsx)(F,{...i,type:"serial-number",item:e,primary:r,hover:n,emptyRender:s,isEmpty:o,children:e})},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,...i}=t;return(0,f.jsx)(F,{...i,type:"serial-number-short",item:e,primary:r,hover:n,emptyRender:s,isEmpty:o,children:e})},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"user",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"user-name",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"contacts",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,f.jsx)(F,{...s,type:"tag",item:e,emptyRender:n,isEmpty:r,children:e&&(e.isEnum?(0,f.jsx)(b.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:r}=t;return(0,f.jsx)(v.default,{type:n,...Object.assign({},O()(e,["name","isEnum","moduleName","force"])),text:r})}}):(0,f.jsx)(v.default,{...Object.assign({},e)}))})},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,f.jsx)(F,{...s,type:"avatar",item:e,emptyRender:n,isEmpty:r,children:(0,f.jsx)(j.default.Avatar,{...Object.assign({},e),size:32})})},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"single-row",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,f.jsx)(R,{api:e,...t}),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:r=!0,primary:s=!0,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"main-info",item:e,hover:r,primary:s,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:n,children:e})})},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"description",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,f.jsx)(x,{className:l()(p["col-item"],p.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(F,{...l,type:"sensitiveInfo",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(w,{ellipsis:s,children:e})})},width:200,min:100,max:400},other:{render:K,width:200,min:120,max:400},otherSmall:{render:K,width:100,min:70,max:400},otherLarge:{render:K,width:300,min:120,max:500}},T=P;var M=n(33097),z=n.n(M),A=n(42907),I=n.n(A),D=n(22717),B=n.n(D),L=n(22616),Y=n.n(L),$=n(63908),W=n(39835),H=n.n(W),J=n(81014),q=n(36),G=n(76441),U=n(69613),V=n.n(U),Q=n(56434),Z=n.n(Q);const{Panel:X}=s.Collapse,ee=e=>{let{close:t,onConfirm:n,columns:i,config:a}=e;const[c,d]=(0,o.useState)(a||{}),[m,u]=(0,o.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:y,hiddenColumns:_}=(0,o.useMemo)((()=>B()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},H()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==z()(c,`${e.name}.visible`)&&e.hidden||!1===z()(c,`${e.name}.visible`)?"hiddenColumns":"visibleColumns"))),((e,t,n)=>{e[n]=t.sort(((e,t)=>z()(c,`${e.name}.rank`,0)-z()(c,`${t.name}.rank`,0)))}),{})),[i,c]),x=e=>(0,f.jsxs)(f.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?`(${e.groupHeader.map((e=>{let{title:t}=e;return t})).join("-")})`:""]});return(0,f.jsxs)("div",{className:r["columns-control-content"],children:[(0,f.jsx)("div",{className:r["columns-control-content-title"],children:(0,f.jsxs)(s.Row,{align:"middle",justify:"space-between",children:[(0,f.jsx)(s.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,f.jsx)(J.default,{type:"text",icon:(0,f.jsx)(g.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,f.jsx)("div",{className:r["columns-control-content-scroller"],children:(0,f.jsxs)(s.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,f.jsx)(X,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,f.jsxs)(s.List,{className:r["columns-control-content-list"],children:[p.map(((e,t)=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:x(e)})},e.name||`left-${t}`))),(0,f.jsx)(G.ReactSortable,{list:y,filter:".ignore-elements",dragClass:r["sortable-drag"],ghostClass:r["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=Z()(c),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach((e=>{V()(t,`${e.name}.visible`,!1)})),n.forEach(((e,n)=>{V()(t,`${e.name}.rank`,n+1)})),d(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:_,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:y.map(((e,t)=>(0,f.jsxs)(s.List.Item,{className:l()(r["columns-control-content-item"],r["is-drag"]),children:[(0,f.jsx)(g.default,{type:"icon-paixu",className:r["columns-control-content-item-icon"]}),(0,f.jsx)(s.Checkbox,{checked:!0,disabled:e.fixed||p.length+y.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!1}),d(n)},children:x(e)})]},e.name||`visible-${t}`)))}),h.map(((e,t)=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||`right-${t}`)))]})},"active"),(0,f.jsx)(X,{header:(0,f.jsxs)(s.Row,{wrap:!1,justify:"space-between",children:[(0,f.jsx)(s.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,f.jsx)(s.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,f.jsx)(q.SearchInput,{prefix:(0,f.jsx)(g.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:r["columns-control-content-input"],size:"small"})})]}),children:(0,f.jsx)(s.List,{dataSource:_.filter((e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(m)>-1)),renderItem:e=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!0}),d(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,f.jsxs)(s.Row,{className:r["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Button,{size:"small",onClick:()=>{d(a||{}),t()},children:"\u53d6\u6d88"})}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(J.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(c),t()},children:"\u786e\u5b9a"})})]})]})};var te=n(51941),ne=n(19853),re=n.n(ne),se=n(21844),oe=n.n(se),ie=n(25644);const le="COMPONENTS_CORE_TABLE_CONFIG",ae={getDataApi:e=>e?{loader:()=>z()(ie.A.getItem(le),e,{})}:{},setDataFunc:(e,t)=>{if(e)return ie.A.setItem(le,Object.assign({},ie.A.getItem(le),{[e]:t}))}},ce=e=>{let{title:t,columns:n,config:i,setConfig:l}=e;const[a,c]=(0,o.useState)(!1);return(0,f.jsxs)(s.Row,{wrap:!1,children:[(0,f.jsx)(s.Col,{flex:1,children:t}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",overlayClassName:r["columns-control-overlay"],content:(0,f.jsx)(ee,{columns:n,config:i,close:()=>{c(!1)},onConfirm:e=>{l((t=>B()(e,((e,n,r)=>{e[r]=Object.assign({},t[r],Y()(n,["visible","rank"]))}),{})))}}),children:(0,f.jsx)("span",{className:r["table-changer-setting"],children:(0,f.jsx)(g.default,{type:"icon-shezhi"})})})})]})},de=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:i,rowKey:a}=e;const[c,d]=(0,o.useState)(null),m=(0,o.useRef)(c);m.current=c;const p=(0,o.useRef)(null),h=(0,o.useRef)(null),[y,_]=(0,o.useState)({}),{tableServerApis:x}=(0,$.usePreset)(),v=x||ae,j=null===v||void 0===v?void 0:v.getDataApi(n),b=(0,te.useDebouncedCallback)(((e,t)=>{null===v||void 0===v||v.setDataFunc(e,t)}),500),w=u()((e=>{(0,o.startTransition)((()=>{_((t=>{const r="function"===typeof e?e(t):e;return n&&s&&b(n,r),r}))}))})),{send:N}=(0,C.useFetch)(Object.assign({...Object.assign({},j),auto:!1,cache:`TABLE_CONFIG_${n}`,isLocal:!0,onRequestSuccess:e=>{_(Object.assign({},e))}})),F=u()((()=>{n&&s&&j&&N({force:!1})}));(0,o.useEffect)((()=>{F()}),[F]);const E=(0,o.useMemo)((()=>t.filter((e=>!(!1===z()(y,`${e.name}.visible`)||!0!==z()(y,`${e.name}.visible`)&&!0===e.hidden))).sort(((e,t)=>{const n=e=>z()(y,`${e.name}.rank`,0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}))),[t,y]),S=(0,o.useMemo)((()=>oe()(E,(e=>{let{type:t}=e;return"options"!==t}))),[E]),R=(0,o.useMemo)((()=>I()(E,(e=>{let{type:t,name:n}=e;return z()(y,`${n}.width`)||T[t].width}))),[E,y]),k=e=>{let{width:t,index:n}=e;return S===n?t+Math.max(i-R-2,0):t},O=u()(((e,t)=>(0,f.jsx)("span",{className:l()(r["cell-resize-bar"]),onMouseDown:n=>{p.current=Object.assign({},e,{index:t}),h.current=n.clientX,d(t)},children:(0,f.jsx)(g.default,{type:"icon-paixu"})}))),K=u()((e=>{if(null===c)return;if(!p.current)return;const{name:t,width:n,min:r,max:s,index:o}=p.current,i=Math.min(Math.max(n+e,r),s);i<k({width:r,index:o})||w((e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:i})})))})),P=u()(((e,n)=>{const{name:s,width:o,min:i,max:c}=e;let d=e;n===E.length-1&&(d=Object.assign({},e,{className:"has-config-btn",title:(0,f.jsx)(ce,{title:null===e||void 0===e?void 0:e.title,columns:t,config:y,setConfig:w})}));const u=()=>({className:l()({[r["is-moving"]]:m.current===n})}),p=Math.min(Math.max(z()(y,`${s}.width`)||o,i),c),h=k({width:p,index:n});return Object.assign({},d,{onHeaderCell:u,onCell:u,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],o="function"===typeof a?a(r):r[a];return null===m.current||m.current===n||"hideInfo"===e.type||!(s===o&&re()(t[e.name],r[e.name]))},title:(0,f.jsxs)(f.Fragment,{children:[d.title,!(h>p&&h>c)&&O(Object.assign({},d,{width:h}),n)]})})}));return(0,o.useEffect)((()=>{const e=()=>{d(null),h.current=null,p.current=null},t=e=>{null!==m.current&&null!==p.current&&(null!==h.current?K(e.clientX-h.current):h.current=e.clientX)};return document.documentElement.addEventListener("mouseup",e,!0),document.documentElement.addEventListener("mousemove",t,!0),()=>{document.documentElement.removeEventListener("mouseup",e,!0),document.documentElement.removeEventListener("mousemove",t,!0)}}),[K]),{visibleColumns:E,currentMoveColumnIndex:c,resizeBarRender:O,columnsConfig:y,totalWidth:R,computedColumnProps:P}};var me=n(79686),ue=n.n(me);const pe=e=>{let{rowKey:t,renderProps:n}=e;const[r,s]=(0,o.useState)(null),i=(0,o.useRef)(n);i.current=n;const l=u()(((e,n,o)=>{let{columnsConfig:l}=o;const{name:a,type:c,expandType:d,title:m,titleRender:u,fixed:p,emptyOf:h,emptyRender:y,groupHeader:g,sort:_,disableColItem:f,...x}=e,{render:v,width:j,min:b,max:C}=Object.assign({},T[c||"other"],"hideInfo"===c&&!ue()(r)&&Y()(T[d||"other"],["width","min","max"])),w=v;return{name:a,title:"function"===typeof u?u(m):m,min:b,max:C,width:j,fixed:p,groupHeader:g,sort:_,type:c,render:n=>{const o="function"===typeof t?t(n):n[t],c=Object.assign({},e,"function"===typeof e.render?e.render({...i.current,name:a,target:n}):{}),d=e=>{const t=E(e,h);return w(e,{...x,name:a,width:z()(l,`${a}.width`)||j,min:b,max:C,isEmpty:t,emptyRender:y,hover:c.hover,colValue:Object.assign({},n),renderProps:i.current,primary:c.primary,ellipsis:c.ellipsis,expand:r===o,onExpand:()=>s(o)})},m=c.hasOwnProperty("valueOf")&&"function"===typeof c.valueOf?c.valueOf(n,Object.assign({},i.current,{name:a},f?{targetRender:d}:{})):z()(n,a);return f?m:d(m)}}}));return{expandInfo:r,computedColumnProps:l}},he=e=>(0,o.useMemo)((()=>{const t=e.filter((e=>e.groupHeader&&e.groupHeader.length>0));if(t.length>0){const n=e.slice(0),r=[],s=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const s=n.indexOf(e),o=(t,n)=>{const[r,...i]=t;let l=n.find((e=>e.name===r.name));l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),i.length>0?o(i,l.children):l.children.push(e)};o(t,r),n.splice(s,1)};return t.forEach(s),r.forEach(((e,t)=>{n.splice(e.startIndex+t,0,e)})),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}}),[e]);var ye=n(10986),ge=n.n(ye),_e=n(41740),fe=n.n(_e);const xe=e=>new Map((e||[]).map((e=>{let{name:t,sort:n}=e;return[t,n]}))),ve=e=>{const[t,n]=ge()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),s=(0,o.useMemo)((()=>xe(t)),[t]),i=(0,o.useCallback)((e=>n((t=>{const n=e(xe(t));return Array.from(n).map((e=>{let[t,n]=e;return{name:t,sort:n}}))}))),[n]);return(0,o.useCallback)((e=>{let{single:t,name:n}=e;return(0,f.jsxs)("div",{className:l()(r["sort-btn"],{[r["sort-active-desc"]]:"DESC"===s.get(n),[r["sort-active-asc"]]:"ASC"===s.get(n)}),onClick:()=>{i((e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const o=fe()(e);return s?o.set(n,s):o.delete(n),o}))},children:[(0,f.jsx)(g.default,{type:"icon-triangle-up",className:r["sort-icon"]}),(0,f.jsx)(g.default,{type:"icon-triangle-down",className:r["sort-icon"]})]})}),[s,i])},je=e=>{let{columns:t,className:n,getScrollEl:i,sticky:c,stickyOffset:m,pagination:p,columnRenderProps:h,rowKey:y,dataSource:g,controllerOpen:_,name:x,summary:v,scroll:j,onTablePropsReady:b,...C}=e;const[w,N]=(0,o.useState)(0),[F,E]=(0,o.useState)(!0);(0,o.useEffect)((()=>{w&&setTimeout((()=>{E(!1)}),0)}),[w]);(0,o.useRef)(h).current=h;const S=(0,d.A)((e=>{N(e.clientWidth)}),{isDebounce:!0}),{expandInfo:R,computedColumnProps:k}=pe({rowKey:y,renderProps:h}),{columnsConfig:O,visibleColumns:K,computedColumnProps:P,currentMoveColumnIndex:T,totalWidth:M}=de({columns:t,controllerOpen:_,name:x,computedColumnProps:k,tableWidth:w,rowKey:y}),z=ve(C),A=(0,o.useMemo)((()=>K.map(((e,t)=>{let n=k(e,t,{rowKey:y,expandInfo:R,columnsConfig:O});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,f.jsxs)(f.Fragment,{children:[n.title,z({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),_&&(n=P(n,t,{tableWidth:w,columnsConfig:O})),n}))),[K,w,O,R,y,_,k,P,z]),{columns:I,hasGroupHeader:D}=he(A),B=u()(b);return(0,o.useEffect)((()=>{B&&B({columns:t,groupColumns:I,dataSource:g,visibleColumns:K})}),[B,I,g,t,K]),(0,f.jsx)("div",{className:l()(n,r.table,{[r["is-resize"]]:null!==T,[r["is-computed"]]:F,[r["has-group-header"]]:D}),ref:S,style:{"--sticky-offset":m},children:!F&&(0,f.jsx)(a.A,{className:"table-page-scroller",scroller:{getContainer:i},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,f.jsx)(s.Table,{...C,sticky:!!c&&{getContainer:i},dataSource:g,rowKey:y,columns:I,scroll:Object.assign({},{x:Math.max(w,M)},j),pagination:p,summary:"function"===typeof v?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(Object.assign({},{pageData:e},{columns:I}),...n)}:null})})})};je.defaultProps={controllerOpen:!0,rowKey:"id",getScrollEl:c.h,columnRenderProps:{},sticky:!1,stickyOffset:"var(--nav-height)",pagination:!1};const be=je;var Ce=n(63361);const we=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Ne=n(58609);const Fe=e=>{let{id:t,columns:n,children:r}=e;return t?(0,f.jsx)(Ce.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter((e=>!e.name||(!Array.isArray(z()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name))))})}}):r({columns:n})},Ee=(0,C.withFetch)((e=>{let{data:t,refresh:n,reload:s,requestParams:i,fetchProps:a,isComplete:d,setData:m,loadMore:p,send:h,dataFormat:y,className:g,featureId:_,columns:x,getColumns:v,pagination:j,columnRenderProps:b,summary:C,...w}=e;const N=u()(y),F=(0,o.useMemo)((()=>N(t)),[t,N]),E={dataSource:F.list,pagination:!!j.open&&{total:F.total,showTotal:e=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ne.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,f.jsx)("span",{className:r.total_text,children:e}),(0,f.jsx)(Ne.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:z()(i,[j.paramsType,j.currentName],1),pageSize:j.pageSize,onChange:j.onChange?j.onChange:(e,t)=>{e!==z()(i,[j.paramsType,j.currentName],1)?("refresh"===j.requestType?n:s)({[j.paramsType]:{[j.currentName]:e,[j.pageSizeName]:t}}):j.onShowSizeChange&&j.onShowSizeChange(e,t),(0,c.h)().scrollTop=0},size:j.size,showSizeChanger:j.showSizeChanger,showQuickJumper:j.showQuickJumper,pageSizeOptions:j.pageSizeOptions}};return(0,f.jsx)(Ne.IntlProvider,{importMessages:we,moduleName:"Table",children:(0,f.jsx)(Fe,{id:_,columns:x,children:e=>{let{columns:r}=e;return(0,f.jsx)(be,{...Object.assign({},w,E),className:l()(g,"loading-container",{"is-loading":!d}),columns:r,columnRenderProps:{...b,requestParams:i,fetchProps:a,data:t},summary:"function"===typeof C?function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return C(Object.assign({},{data:t,fetchProps:a,requestParams:i,refresh:n,reload:s,loadMore:p,send:h,dataFormat:y,pagination:j},...r))}:null})}})})}));Ee.defaultProps={pagination:{},columnRenderProps:{},sticky:!0,dataFormat:e=>({list:e.pageData,total:e.totalCount})};const Se=(0,o.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const s=`${(r.name||"common").toUpperCase()}_TABLE_PAGE_SIZE`,[i,l]=(0,o.useState)(ie.A.getItem(s)||n.pageSize),a=r[n.paramsType],c=(0,o.useMemo)((()=>({[n.paramsType]:Object.assign({},a,{[n.pageSizeName]:i})})),[a,n.pageSizeName,n.paramsType,i]);return(0,f.jsx)(Ee,{...r,...c,pagination:Object.assign({},n,{pageSize:i,onShowSizeChange:(e,t)=>{ie.A.setItem(s,t),l(t)}}),ref:t})}))}}]);
2
- //# sourceMappingURL=2814.44d311d3.chunk.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 3245.3f1edba5.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3245],{53245:(e,t,r)=>{r.r(t),r.d(t,{AbortedDeferredError:()=>q,Await:()=>rr,BrowserRouter:()=>Fr,Form:()=>Kr,HashRouter:()=>Nr,Link:()=>Hr,MemoryRouter:()=>Xt,NavLink:()=>Wr,Navigate:()=>Gt,NavigationType:()=>n,Outlet:()=>Qt,Route:()=>Zt,Router:()=>er,RouterProvider:()=>jr,Routes:()=>tr,ScrollRestoration:()=>$r,UNSAFE_DataRouterContext:()=>it,UNSAFE_DataRouterStateContext:()=>st,UNSAFE_ErrorResponseImpl:()=>re,UNSAFE_FetchersContext:()=>Pr,UNSAFE_LocationContext:()=>ct,UNSAFE_NavigationContext:()=>ut,UNSAFE_RouteContext:()=>dt,UNSAFE_ViewTransitionContext:()=>Lr,UNSAFE_useRouteId:()=>Ot,UNSAFE_useScrollRestoration:()=>sn,createBrowserRouter:()=>xr,createHashRouter:()=>Dr,createMemoryRouter:()=>cr,createPath:()=>m,createRoutesFromChildren:()=>sr,createRoutesFromElements:()=>sr,createSearchParams:()=>vr,defer:()=>Q,generatePath:()=>j,isRouteErrorResponse:()=>ne,json:()=>Y,matchPath:()=>O,matchRoutes:()=>S,parsePath:()=>v,redirect:()=>Z,redirectDocument:()=>ee,renderMatches:()=>lr,replace:()=>te,resolvePath:()=>B,unstable_HistoryRouter:()=>Br,unstable_usePrompt:()=>un,unstable_useViewTransitionState:()=>cn,useActionData:()=>Ht,useAsyncError:()=>$t,useAsyncValue:()=>Kt,useBeforeUnload:()=>ln,useBlocker:()=>Vt,useFetcher:()=>rn,useFetchers:()=>nn,useFormAction:()=>tn,useHref:()=>ft,useInRouterContext:()=>pt,useLinkClickHandler:()=>Xr,useLoaderData:()=>It,useLocation:()=>mt,useMatch:()=>yt,useMatches:()=>Bt,useNavigate:()=>bt,useNavigation:()=>Ft,useNavigationType:()=>vt,useOutlet:()=>Et,useOutletContext:()=>St,useParams:()=>Rt,useResolvedPath:()=>xt,useRevalidator:()=>Nt,useRouteError:()=>Wt,useRouteLoaderData:()=>zt,useRoutes:()=>Dt,useSearchParams:()=>Gr,useSubmit:()=>en});var n,a=r(73884),o=r(10486);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const s="popstate";function l(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map(((e,t)=>d(e,"string"===typeof e?null:e.state,0===t?"default":void 0)));let i=u(null==a?t.length-1:a),s=n.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[i]}function d(e,r,n){void 0===r&&(r=null);let a=p(t?c().pathname:"/",e,r,n);return h("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function f(e){return"string"===typeof e?e:m(e)}return{get index(){return i},get action(){return s},get location(){return c()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"===typeof e?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=n.Push;let a=d(e,r);i+=1,t.splice(i,t.length,a),o&&l&&l({action:s,location:a,delta:1})},replace(e,r){s=n.Replace;let a=d(e,r);t[i]=a,o&&l&&l({action:s,location:a,delta:0})},go(e){s=n.Pop;let r=u(i+e),a=t[r];i=r,l&&l({action:s,location:a,delta:e})},listen:e=>(l=e,()=>{l=null})}}function u(e){return void 0===e&&(e={}),y((function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:m(t)}),null,e)}function c(e){return void 0===e&&(e={}),y((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"===typeof t?t:m(t))}),(function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function d(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function h(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),i({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?v(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function v(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:l=!1}=a,u=o.history,c=n.Pop,h=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-v;v=e,h&&h({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"===typeof e?e:m(e);return r=r.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,u.replaceState(i({},u.state,{idx:v}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(s,g),h=e,()=>{o.removeEventListener(s,g),h=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=p(w.location,e,t);r&&r(a,e),v=y()+1;let i=f(a,v),s=w.createHref(a);try{u.pushState(i,"",s)}catch(d){if(d instanceof DOMException&&"DataCloneError"===d.name)throw d;o.location.assign(s)}l&&h&&h({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=p(w.location,e,t);r&&r(a,e),v=y();let o=f(a,v),i=w.createHref(a);u.replaceState(o,"",i),l&&h&&h({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));const b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,a)=>{let o=[...r,String(a)],s="string"===typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=i({},e,t(e),{id:s});return n[s]=r,r}{let r=i({},e,t(e),{id:s,children:void 0});return n[s]=r,e.children&&(r.children=w(e.children,t,o,n)),r}}))}function S(e,t,r){return void 0===r&&(r="/"),E(e,t,r,!1)}function E(e,t,r,n){let a=N(("string"===typeof t?v(t):t).pathname||"/",r);if(null==a)return null;let o=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let s=0;null==i&&s<o.length;++s){let e=F(a);i=U(o[s],e,n)}return i}function R(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function x(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=K([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:M(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of D(e.path))a(e,t,n);else a(e,t)})),t}function D(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=D(n.join("/")),s=[];return s.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const C=/^:[\w-]+$/,_=3,L=2,P=1,k=10,T=-2,A=e=>"*"===e;function M(e,t){let r=e.split("/"),n=r.length;return r.some(A)&&(n+=T),t&&(n+=L),r.filter((e=>!A(e))).reduce(((e,t)=>e+(C.test(t)?_:""===t?P:k)),n)}function U(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let e=n[s],l=s===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},u),d=e.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:$(K([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}function j(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(h(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"===typeof e?e:String(e);return n+r.split(/\/+/).map(((e,r,n)=>{if(r===n.length-1&&"*"===e){return a(t["*"])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return d("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function O(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);h("*"===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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function F(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function B(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"===typeof e?v(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:J(n),hash:V(a)}}function I(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e,t){let r=z(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function W(e,t,r,n){let a;void 0===n&&(n=!1),"string"===typeof e?a=v(e):(a=i({},e),d(!a.pathname||!a.pathname.includes("?"),I("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),I("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),I("#","search","hash",a)));let o,s=""===e||""===a.pathname,l=s?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=B(a,o),c=l&&"/"!==l&&l.endsWith("/"),h=(s||"."===l)&&r.endsWith("/");return u.pathname.endsWith("/")||!c&&!h||(u.pathname+="/"),u}const K=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Y=function(e,t){void 0===t&&(t={});let r="number"===typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),i({},r,{headers:n}))};class q extends Error{}class X{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],d(e&&"object"===typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>r=t)),this.controller=new AbortController;let n=()=>r(new q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,void 0,t)),(t=>this.onSettle(r,e,t)));return r.catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return d(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:G(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function G(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Q=function(e,t){return void 0===t&&(t={}),new X(e,"number"===typeof t?{status:t}:t)},Z=function(e,t){void 0===t&&(t=302);let r=t;"number"===typeof r?r={status:r}:"undefined"===typeof r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,i({},r,{headers:n}))},ee=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},te=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Replace","true"),r};class re{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ne(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const ae=["post","put","patch","delete"],oe=new Set(ae),ie=["get",...ae],se=new Set(ie),le=new Set([301,302,303,307,308]),ue=new Set([307,308]),ce={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},he={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},fe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),me="remix-router-transitions";function ve(e){const t=e.window?e.window:"undefined"!==typeof window?window:void 0,r="undefined"!==typeof t&&"undefined"!==typeof t.document&&"undefined"!==typeof t.document.createElement,a=!r;let o;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=pe;let s,l,u,c={},f=w(e.routes,o,void 0,c),m=e.basename||"/",v=e.unstable_dataStrategy||Ce,y=e.unstable_patchRoutesOnMiss,b=i({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),x=null,D=new Set,C=null,_=null,L=null,P=null!=e.hydrationData,k=S(f,e.history.location,m),T=null;if(null==k&&!y){let t=Ie(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Be(f);k=r,T={[n.id]:t}}if(k&&!e.hydrationData){ct(k,f,e.history.location.pathname).active&&(k=null)}if(k)if(k.some((e=>e.route.lazy)))l=!1;else if(k.some((e=>e.route.loader)))if(b.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!==typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=k.findIndex((e=>void 0!==r[e.route.id]));l=k.slice(0,e+1).every(n)}else l=k.every(n)}else l=null!=e.hydrationData;else l=!0;else if(l=!1,k=[],b.v7_partialHydration){let t=ct(null,f,e.history.location.pathname);t.active&&t.matches&&(k=t.matches)}let A,M={historyAction:e.history.action,location:e.history.location,matches:k,initialized:l,navigation:ce,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},U=n.Pop,j=!1,O=!1,F=new Map,B=null,I=!1,z=!1,H=[],W=new Set,K=new Map,$=0,J=-1,V=new Map,Y=new Set,q=new Map,X=new Map,G=new Set,Q=new Map,Z=new Map,ee=new Map,te=!1;function re(e,t){void 0===t&&(t={}),M=i({},M,e);let r=[],n=[];b.v7_fetcherPersist&&M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(G.has(t)?n.push(t):r.push(t))})),[...D].forEach((e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),b.v7_fetcherPersist&&(r.forEach((e=>M.fetchers.delete(e))),n.forEach((e=>Ae(e))))}function ae(t,r,a){var o,l;let u,{flushSync:c}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&Xe(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?M.actionData:null;let h=r.loaderData?Oe(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,he))));let m,v=!0===j||null!=M.navigation.formMethod&&Xe(M.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(s&&(f=s,s=void 0),I||U===n.Pop||(U===n.Push?e.history.push(t,t.state):U===n.Replace&&e.history.replace(t,t.state)),U===n.Pop){let e=F.get(M.location.pathname);e&&e.has(t.pathname)?m={currentLocation:M.location,nextLocation:t}:F.has(t.pathname)&&(m={currentLocation:t,nextLocation:M.location})}else if(O){let e=F.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(M.location.pathname,e)),m={currentLocation:M.location,nextLocation:t}}re(i({},r,{actionData:u,loaderData:h,historyAction:U,location:t,initialized:!0,navigation:ce,revalidation:"idle",restoreScrollPosition:ut(t,r.matches||M.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),U=n.Pop,j=!1,O=!1,I=!1,z=!1,H=[]}async function oe(t,r,a){A&&A.abort(),A=null,U=t,I=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(C&&L){let r=lt(e,t);C[r]=L()}}(M.location,M.matches),j=!0===(a&&a.preventScrollReset),O=!0===(a&&a.enableViewTransition);let o=s||f,l=a&&a.overrideNavigation,u=S(o,r,m),c=!0===(a&&a.flushSync),d=ct(u,o,r.pathname);if(d.active&&d.matches&&(u=d.matches),!u){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void ae(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}if(M.initialized&&!z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,r)&&!(a&&a.submission&&Xe(a.submission.formMethod)))return void ae(r,{matches:u},{flushSync:c});A=new AbortController;let h,p=Te(e.history,r,A.signal,a&&a.submission);if(a&&a.pendingError)h=[Ne(u).route.id,{type:g.error,error:a.pendingError}];else if(a&&a.submission&&Xe(a.submission.formMethod)){let t=await async function(e,t,r,a,o,i){void 0===i&&(i={});be();let s,l=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,r);if(re({navigation:l},{flushSync:!0===i.flushSync}),o){let r=await dt(a,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=it(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:g.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=ot(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:g.error,error:r}]}}a=r.matches}let u=et(a,t);if(u.route.action||u.route.lazy){if(s=(await le("action",e,[u],a))[0],e.signal.aborted)return{shortCircuited:!0}}else s={type:g.error,error:Ie(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Je(s)){let t;if(i&&null!=i.replace)t=i.replace;else{t=ke(s.response.headers.get("Location"),new URL(e.url),m)===M.location.pathname+M.location.search}return await se(e,s,{submission:r,replace:t}),{shortCircuited:!0}}if(Ke(s))throw Ie(400,{type:"defer-action"});if($e(s)){let e=Ne(a,u.route.id);return!0!==(i&&i.replace)&&(U=n.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}(p,r,a.submission,u,d.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if($e(n)&&ne(n.error)&&404===n.error.status)return A=null,void ae(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,h=t.pendingActionResult,l=rt(r,a.submission),c=!1,d.active=!1,p=Te(e.history,p.url,p.signal)}let{shortCircuited:v,matches:y,loaderData:w,errors:E}=await async function(t,r,n,a,o,l,u,c,d,h,p){let v=o||rt(r,l),y=l||u||tt(v),g=!I&&(!b.v7_partialHydration||!d);if(a){if(g){let e=ie(p);re(i({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await dt(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=it(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let w=s||f,[S,E]=we(e.history,M,n,y,r,b.v7_partialHydration&&!0===d,b.v7_skipActionErrorRevalidation,z,H,W,G,q,Y,w,m,p);if(st((e=>!(n&&n.some((t=>t.route.id===e)))||S&&S.some((t=>t.route.id===e)))),J=++$,0===S.length&&0===E.length){let e=He();return ae(r,i({matches:n,loaderData:{},errors:p&&$e(p[1])?{[p[0]]:p[1].error}:null},Fe(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(g){let e={};if(!a){e.navigation=v;let t=ie(p);void 0!==t&&(e.actionData=t)}E.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),r=nt(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)})),new Map(M.fetchers)}(E)),re(e,{flushSync:h})}E.forEach((e=>{K.has(e.key)&&Me(e.key),e.controller&&K.set(e.key,e.controller)}));let R=()=>E.forEach((e=>Me(e.key)));A&&A.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:D}=await ve(M.matches,n,S,E,t);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",R);E.forEach((e=>K.delete(e.key)));let C=ze([...x,...D]);if(C){if(C.idx>=S.length){let e=E[C.idx-S.length].key;Y.add(e)}return await se(t,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:_,errors:L}=je(M,n,S,x,p,E,D,Q);Q.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&Q.delete(t)}))})),b.v7_partialHydration&&d&&M.errors&&Object.entries(M.errors).filter((e=>{let[t]=e;return!S.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;L=Object.assign(L||{},{[t]:r})}));let P=He(),k=Ve(J),T=P||k||E.length>0;return i({matches:n,loaderData:_,errors:L},T?{fetchers:new Map(M.fetchers)}:{})}(p,r,u,d.active,l,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,h);v||(A=null,ae(r,i({matches:y||u},Fe(h),{loaderData:w,errors:E})))}function ie(e){return e&&!$e(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function se(a,o,s){let{submission:l,fetcherSubmission:u,replace:c}=void 0===s?{}:s;o.response.headers.has("X-Remix-Revalidate")&&(z=!0);let h=o.response.headers.get("Location");d(h,"Expected a Location header on the redirect Response"),h=ke(h,new URL(a.url),m);let f=p(M.location,h,{_isRedirect:!0});if(r){let r=!1;if(o.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(fe.test(h)){const n=e.history.createURL(h);r=n.origin!==t.location.origin||null==N(n.pathname,m)}if(r)return void(c?t.location.replace(h):t.location.assign(h))}A=null;let v=!0===c||o.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:y,formAction:g,formEncType:b}=M.navigation;!l&&!u&&y&&g&&b&&(l=tt(M.navigation));let w=l||u;if(ue.has(o.response.status)&&w&&Xe(w.formMethod))await oe(v,f,{submission:i({},w,{formAction:h}),preventScrollReset:j});else{let e=rt(f,l);await oe(v,f,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:j})}}async function le(e,t,r,n){try{let a=await _e(v,e,t,r,n,c,o);return await Promise.all(a.map(((e,a)=>{if(We(e)){let o=e.result;return{type:g.redirect,response:Pe(o,t,r[a].route.id,n,m,b.v7_relativeSplatPath)}}return Le(e)})))}catch(a){return r.map((()=>({type:g.error,error:a})))}}async function ve(t,r,n,a,o){let[i,...s]=await Promise.all([n.length?le("loader",o,n,r):[],...a.map((t=>{if(t.matches&&t.match&&t.controller){return le("loader",Te(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:g.error,error:Ie(404,{pathname:t.path})})}))]);return await Promise.all([Ge(t,n,i,i.map((()=>o.signal)),!1,M.loaderData),Ge(t,a.map((e=>e.match)),s,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:i,fetcherResults:s}}function be(){z=!0,H.push(...st()),q.forEach(((e,t)=>{K.has(t)&&(W.add(t),Me(t))}))}function Se(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),re({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ee(e,t,r,n){void 0===n&&(n={});let a=Ne(M.matches,t);Ae(e),re({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function De(e){return b.v7_fetcherPersist&&(X.set(e,(X.get(e)||0)+1),G.has(e)&&G.delete(e)),M.fetchers.get(e)||de}function Ae(e){let t=M.fetchers.get(e);!K.has(e)||t&&"loading"===t.state&&V.has(e)||Me(e),q.delete(e),V.delete(e),Y.delete(e),G.delete(e),W.delete(e),M.fetchers.delete(e)}function Me(e){let t=K.get(e);d(t,"Expected fetch controller: "+e),t.abort(),K.delete(e)}function Ue(e){for(let t of e){let e=at(De(t).data);M.fetchers.set(t,e)}}function He(){let e=[],t=!1;for(let r of Y){let n=M.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(Y.delete(r),e.push(r),t=!0)}return Ue(e),t}function Ve(e){let t=[];for(let[r,n]of V)if(n<e){let e=M.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(Me(r),V.delete(r),t.push(r))}return Ue(t),t.length>0}function Ye(e){M.blockers.delete(e),Z.delete(e)}function qe(e,t){let r=M.blockers.get(e)||he;d("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),re({blockers:n})}function Ze(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Z.size)return;Z.size>1&&h(!1,"A router only supports one blocker at a time");let a=Array.from(Z.entries()),[o,i]=a[a.length-1],s=M.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function ot(e){let t=Ie(404,{pathname:e}),r=s||f,{matches:n,route:a}=Be(r);return st(),{notFoundMatches:n,route:a,error:t}}function it(e,t){return{boundaryId:Ne(t.partialMatches).route.id,error:Ie(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function st(e){let t=[];return Q.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),Q.delete(n))})),t}function lt(e,t){if(_){return _(e,t.map((e=>R(e,M.loaderData))))||e.key}return e.key}function ut(e,t){if(C){let r=lt(e,t),n=C[r];if("number"===typeof n)return n}return null}function ct(e,t,r){if(y){if(!e){return{active:!0,matches:E(t,r,m,!0)||[]}}{let n=e[e.length-1].route;if(n.path&&("*"===n.path||n.path.endsWith("/*"))){return{active:!0,matches:E(t,r,m,!0)}}}}return{active:!1,matches:null}}async function dt(e,t,r){let n=e,a=n.length>0?n[n.length-1].route:null;for(;;){let e=null==s,l=s||f;try{await Re(y,t,n,l,c,o,ee,r)}catch(i){return{type:"error",error:i,partialMatches:n}}finally{e&&(f=[...f])}if(r.aborted)return{type:"aborted"};let u=S(l,t,m),d=!1;if(u){let e=u[u.length-1].route;if(e.index)return{type:"success",matches:u};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:u};d=!0}}let h=E(l,t,m,!0);if(!h||n.map((e=>e.route.id)).join("-")===h.map((e=>e.route.id)).join("-"))return{type:"success",matches:d?u:null};if(n=h,a=n[n.length-1].route,"*"===a.path)return{type:"success",matches:n}}}return u={get basename(){return m},get future(){return b},get state(){return M},get routes(){return f},get window(){return t},initialize:function(){if(x=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(te)return void(te=!1);h(0===Z.size||null!=a,"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 o=Ze({currentLocation:M.location,nextLocation:n,historyAction:r});return o&&null!=a?(te=!0,e.history.go(-1*a),void qe(o,{state:"blocked",location:n,proceed(){qe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,he),re({blockers:e})}})):oe(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(me);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(r){}}(t,F);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(me,JSON.stringify(n))}catch(r){h(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}(t,F);t.addEventListener("pagehide",e),B=()=>t.removeEventListener("pagehide",e)}return M.initialized||oe(n.Pop,M.location,{initialHydration:!0}),u},subscribe:function(e){return D.add(e),()=>D.delete(e)},enableScrollRestoration:function(e,t,r){if(C=e,L=t,_=r||null,!P&&M.navigation===ce){P=!0;let e=ut(M.location,M.matches);null!=e&&re({restoreScrollPosition:e})}return()=>{C=null,L=null,_=null}},navigate:async function t(r,a){if("number"===typeof r)return void e.history.go(r);let o=ye(M.location,M.matches,m,b.v7_prependBasename,r,b.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:s,submission:l,error:u}=ge(b.v7_normalizeFormMethod,!1,o,a),c=M.location,d=p(M.location,s,a&&a.state);d=i({},d,e.history.encodeLocation(d));let h=a&&null!=a.replace?a.replace:void 0,f=n.Push;!0===h?f=n.Replace:!1===h||null!=l&&Xe(l.formMethod)&&l.formAction===M.location.pathname+M.location.search&&(f=n.Replace);let v=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.unstable_flushSync),g=Ze({currentLocation:c,nextLocation:d,historyAction:f});if(!g)return await oe(f,d,{submission:l,pendingError:u,preventScrollReset:v,replace:a&&a.replace,enableViewTransition:a&&a.unstable_viewTransition,flushSync:y});qe(g,{state:"blocked",location:d,proceed(){qe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,a)},reset(){let e=new Map(M.blockers);e.set(g,he),re({blockers:e})}})},fetch:function(t,r,n,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(t)&&Me(t);let i=!0===(o&&o.unstable_flushSync),l=s||f,u=ye(M.location,M.matches,m,b.v7_prependBasename,n,b.v7_relativeSplatPath,r,null==o?void 0:o.relative),c=S(l,u,m),h=ct(c,l,u);if(h.active&&h.matches&&(c=h.matches),!c)return void Ee(t,r,Ie(404,{pathname:u}),{flushSync:i});let{path:p,submission:v,error:y}=ge(b.v7_normalizeFormMethod,!0,u,o);if(y)return void Ee(t,r,y,{flushSync:i});let g=et(c,p);j=!0===(o&&o.preventScrollReset),v&&Xe(v.formMethod)?async function(t,r,n,a,o,i,l,u){function c(e){if(!e.route.action&&!e.route.lazy){let e=Ie(405,{method:u.formMethod,pathname:n,routeId:r});return Ee(t,r,e,{flushSync:l}),!0}return!1}if(be(),q.delete(t),!i&&c(a))return;let h=M.fetchers.get(t);Se(t,function(e,t){let r={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};return r}(u,h),{flushSync:l});let p=new AbortController,v=Te(e.history,n,p.signal,u);if(i){let e=await dt(o,n,v.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:a}=it(n,e);return void Ee(t,r,a,{flushSync:l})}if(!e.matches)return void Ee(t,r,Ie(404,{pathname:n}),{flushSync:l});if(c(a=et(o=e.matches,n)))return}K.set(t,p);let y=$,g=await le("action",v,[a],o),w=g[0];if(v.signal.aborted)return void(K.get(t)===p&&K.delete(t));if(b.v7_fetcherPersist&&G.has(t)){if(Je(w)||$e(w))return void Se(t,at(void 0))}else{if(Je(w))return K.delete(t),J>y?void Se(t,at(void 0)):(Y.add(t),Se(t,nt(u)),se(v,w,{fetcherSubmission:u}));if($e(w))return void Ee(t,r,w.error)}if(Ke(w))throw Ie(400,{type:"defer-action"});let E=M.navigation.location||M.location,R=Te(e.history,E,p.signal),x=s||f,D="idle"!==M.navigation.state?S(x,M.navigation.location,m):M.matches;d(D,"Didn't find any matches after fetcher action");let C=++$;V.set(t,C);let _=nt(u,w.data);M.fetchers.set(t,_);let[L,P]=we(e.history,M,D,u,E,!1,b.v7_skipActionErrorRevalidation,z,H,W,G,q,Y,x,m,[a.route.id,w]);P.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=M.fetchers.get(t),n=nt(void 0,r?r.data:void 0);M.fetchers.set(t,n),K.has(t)&&Me(t),e.controller&&K.set(t,e.controller)})),re({fetchers:new Map(M.fetchers)});let k=()=>P.forEach((e=>Me(e.key)));p.signal.addEventListener("abort",k);let{loaderResults:T,fetcherResults:j}=await ve(M.matches,D,L,P,R);if(p.signal.aborted)return;p.signal.removeEventListener("abort",k),V.delete(t),K.delete(t),P.forEach((e=>K.delete(e.key)));let O=ze([...T,...j]);if(O){if(O.idx>=L.length){let e=P[O.idx-L.length].key;Y.add(e)}return se(R,O.result)}let{loaderData:F,errors:N}=je(M,M.matches,L,T,void 0,P,j,Q);if(M.fetchers.has(t)){let e=at(w.data);M.fetchers.set(t,e)}Ve(C),"loading"===M.navigation.state&&C>J?(d(U,"Expected pending action"),A&&A.abort(),ae(M.navigation.location,{matches:D,loaderData:F,errors:N,fetchers:new Map(M.fetchers)})):(re({errors:N,loaderData:Oe(M.loaderData,F,D,N),fetchers:new Map(M.fetchers)}),z=!1)}(t,r,p,g,c,h.active,i,v):(q.set(t,{routeId:r,path:p}),async function(t,r,n,a,o,i,s,l){let u=M.fetchers.get(t);Se(t,nt(l,u?u.data:void 0),{flushSync:s});let c=new AbortController,h=Te(e.history,n,c.signal);if(i){let e=await dt(o,n,h.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:a}=it(n,e);return void Ee(t,r,a,{flushSync:s})}if(!e.matches)return void Ee(t,r,Ie(404,{pathname:n}),{flushSync:s});a=et(o=e.matches,n)}K.set(t,c);let f=$,p=await le("loader",h,[a],o),m=p[0];Ke(m)&&(m=await Qe(m,h.signal,!0)||m);K.get(t)===c&&K.delete(t);if(h.signal.aborted)return;if(G.has(t))return void Se(t,at(void 0));if(Je(m))return J>f?void Se(t,at(void 0)):(Y.add(t),void await se(h,m));if($e(m))return void Ee(t,r,m.error);d(!Ke(m),"Unhandled fetcher deferred data"),Se(t,at(m.data))}(t,r,p,g,c,h.active,i,v))},revalidate:function(){be(),re({revalidation:"loading"}),"submitting"!==M.navigation.state&&("idle"!==M.navigation.state?oe(U||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation}):oe(M.historyAction,M.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,deleteFetcher:function(e){if(b.v7_fetcherPersist){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),G.add(e)):X.set(e,t)}else Ae(e);re({fetchers:new Map(M.fetchers)})},dispose:function(){x&&x(),B&&B(),D.clear(),A&&A.abort(),M.fetchers.forEach(((e,t)=>Ae(t))),M.blockers.forEach(((e,t)=>Ye(t)))},getBlocker:function(e,t){let r=M.blockers.get(e)||he;return Z.get(e)!==t&&Z.set(e,t),r},deleteBlocker:Ye,patchRoutes:function(e,t){let r=null==s;xe(e,t,s||f,c,o),r&&(f=[...f],re({}))},_internalFetchControllers:K,_internalActiveDeferreds:Q,_internalSetRoutes:function(e){c={},s=w(e,o,void 0,c)}},u}Symbol("deferred");function ye(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){u=e;break}}else l=t,u=t[t.length-1];let c=W(a||".",H(l,o),N(e.pathname,r)||e.pathname,"path"===s);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!u||!u.route.index||Ze(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:K([r,c.pathname])),m(c)}function ge(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&!qe(n.formMethod))return{path:r,error:Ie(405,{method:n.formMethod})};let a,o,i=()=>({path:r,error:Ie(400,{type:"invalid-body"})}),s=n.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=He(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Xe(l))return i();let e="string"===typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Xe(l))return i();try{let e="string"===typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(f){return i()}}}if(d("function"===typeof FormData,"FormData is not available in this environment"),n.formData)a=Ae(n.formData),o=n.formData;else if(n.body instanceof FormData)a=Ae(n.body),o=n.body;else if(n.body instanceof URLSearchParams)a=n.body,o=Me(a);else if(null==n.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(n.body),o=Me(a)}catch(f){return i()}let c={formMethod:l,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Xe(c.formMethod))return{path:r,submission:c};let h=v(r);return t&&h.search&&Ze(h.search)&&a.append("index",""),h.search="?"+a,{path:m(h),submission:c}}function be(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}function we(e,t,r,n,a,o,s,l,u,c,d,h,f,p,m,v){let y=v?$e(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=v&&$e(v[1])?v[0]:void 0,E=w?be(r,w):r,R=v?v[1].statusCode:void 0,x=s&&R&&R>=400,D=E.filter(((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!("function"===typeof a.loader&&!a.loader.hydrate)||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[r],c=e;return Ee(e,i({currentUrl:g,currentParams:s.params,nextUrl:b,nextParams:c.params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!x&&(l||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||Se(s,c))}))})),C=[];return h.forEach(((e,a)=>{if(o||!r.some((t=>t.route.id===e.routeId))||d.has(a))return;let s=S(p,e.path,m);if(!s)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=et(s,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?l:Ee(h,i({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!x&&l})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})})),[D,C]}function Se(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ee(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"===typeof r)return r}return t.defaultShouldRevalidate}async function Re(e,t,r,n,a,o,i,s){let l=[t,...r.map((e=>e.route.id))].join("-");try{let c=i.get(l);c||(c=e({path:t,matches:r,patch:(e,t)=>{s.aborted||xe(e,t,n,a,o)}}),i.set(l,c)),c&&("object"===typeof(u=c)&&null!=u&&"then"in u)&&await c}finally{i.delete(l)}var u}function xe(e,t,r,n,a){if(e){var o;let r=n[e];d(r,"No route found to patch children into: routeId = "+e);let i=w(t,a,[e,"patch",String((null==(o=r.children)?void 0:o.length)||"0")],n);r.children?r.children.push(...i):r.children=i}else{let e=w(t,a,["patch",String(r.length||"0")],n);r.push(...e)}}async function De(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let i in n){let e=void 0!==a[i]&&"hasErrorBoundary"!==i;h(!e,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+i+'" will be ignored.'),e||b.has(i)||(o[i]=n[i])}Object.assign(a,o),Object.assign(a,i({},t(a),{lazy:void 0}))}function Ce(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function _e(e,t,r,n,a,o,s,l){let u=n.reduce(((e,t)=>e.add(t.route.id)),new Set),c=new Set,h=await e({matches:a.map((e=>{let n=u.has(e.route.id);return i({},e,{shouldLoad:n,resolve:a=>(c.add(e.route.id),n?async function(e,t,r,n,a,o,i){let s,l,u=n=>{let a,s=new Promise(((e,t)=>a=t));l=()=>a(),t.signal.addEventListener("abort",l);let u,c=a=>"function"!==typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return u=o?o((e=>c(e))):(async()=>{try{return{type:"data",result:await c()}}catch(e){return{type:"error",result:e}}})(),Promise.race([u,s])};try{let o=r.route[e];if(r.route.lazy)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),De(r.route,a,n)]);if(void 0!==e)throw e;s=t}else{if(await De(r.route,a,n),o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Ie(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:g.data,result:void 0}}s=await u(o)}else{if(!o){let e=new URL(t.url);throw Ie(404,{pathname:e.pathname+e.search})}s=await u(o)}d(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(c){return{type:g.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return s}(t,r,e,o,s,a,l):Promise.resolve({type:g.data,result:void 0}))})})),request:r,params:a[0].params,context:l});return a.forEach((e=>d(c.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),h.filter(((e,t)=>u.has(a[t].route.id)))}async function Le(e){let{result:t,type:r}=e;if(Ye(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(u){return{type:g.error,error:u}}return r===g.error?{type:g.error,error:new re(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:g.data,data:e,statusCode:t.status,headers:t.headers}}if(r===g.error){if(Ve(t)){var n,a;if(t.data instanceof Error)return{type:g.error,error:t.data,statusCode:null==(a=t.init)?void 0:a.status};t=new re((null==(n=t.init)?void 0:n.status)||500,void 0,t.data)}return{type:g.error,error:t,statusCode:ne(t)?t.status:void 0}}var o,i,s,l;return function(e){let t=e;return t&&"object"===typeof t&&"object"===typeof t.data&&"function"===typeof t.subscribe&&"function"===typeof t.cancel&&"function"===typeof t.resolveData}(t)?{type:g.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:Ve(t)?{type:g.data,data:t.data,statusCode:null==(s=t.init)?void 0:s.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:g.data,data:t}}function Pe(e,t,r,n,a,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!fe.test(i)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);i=ye(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function ke(e,t,r){if(fe.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=N(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Te(e,t,r,n){let a=e.createURL(He(t)).toString(),o={signal:r};if(n&&Xe(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Ae(n.formData):o.body=n.formData}return new Request(a,o)}function Ae(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"===typeof n?n:n.name);return t}function Me(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ue(e,t,r,n,a,o){let i,s={},l=null,u=!1,c={},h=n&&$e(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let f=t[n].route.id;if(d(!Je(r),"Cannot handle redirect results in processLoaderData"),$e(r)){let t=r.error;if(void 0!==h&&(t=h,h=void 0),l=l||{},o)l[f]=t;else{let r=Ne(e,f);null==l[r.route.id]&&(l[r.route.id]=t)}s[f]=void 0,u||(u=!0,i=ne(r.error)?r.error.status:500),r.headers&&(c[f]=r.headers)}else Ke(r)?(a.set(f,r.deferredData),s[f]=r.deferredData.data,null==r.statusCode||200===r.statusCode||u||(i=r.statusCode),r.headers&&(c[f]=r.headers)):(s[f]=r.data,r.statusCode&&200!==r.statusCode&&!u&&(i=r.statusCode),r.headers&&(c[f]=r.headers))})),void 0!==h&&n&&(l={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:l,statusCode:i||200,loaderHeaders:c}}function je(e,t,r,n,a,o,s,l){let{loaderData:u,errors:c}=Ue(t,r,n,a,l,!1);for(let h=0;h<o.length;h++){let{key:t,match:r,controller:n}=o[h];d(void 0!==s&&void 0!==s[h],"Did not find corresponding fetcher result");let a=s[h];if(!n||!n.signal.aborted)if($e(a)){let n=Ne(e.matches,null==r?void 0:r.route.id);c&&c[n.route.id]||(c=i({},c,{[n.route.id]:a.error})),e.fetchers.delete(t)}else if(Je(a))d(!1,"Unhandled fetcher revalidation redirect");else if(Ke(a))d(!1,"Unhandled fetcher deferred data");else{let r=at(a.data);e.fetchers.set(t,r)}}return{loaderData:u,errors:c}}function Oe(e,t,r,n){let a=i({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function Fe(e){return e?$e(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ne(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Be(e){let t=1===e.length?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 Ie(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request","route-discovery"===o?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnMiss()` function threw the following error:\n'+i:a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new re(e||500,s,new Error(l),!0)}function ze(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Je(r))return{result:r,idx:t}}}function He(e){return m(i({},"string"===typeof e?v(e):e,{hash:""}))}function We(e){return Ye(e.result)&&le.has(e.result.status)}function Ke(e){return e.type===g.deferred}function $e(e){return e.type===g.error}function Je(e){return(e&&e.type)===g.redirect}function Ve(e){return"object"===typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ye(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function qe(e){return se.has(e.toLowerCase())}function Xe(e){return oe.has(e.toLowerCase())}async function Ge(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let s=r[i],l=t[i];if(!l)continue;let u=e.find((e=>e.route.id===l.route.id)),c=null!=u&&!Se(u,l)&&void 0!==(o&&o[l.route.id]);if(Ke(s)&&(a||c)){let e=n[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Qe(s,e,a).then((e=>{e&&(r[i]=e||r[i])}))}}}async function Qe(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:g.data,data:e.deferredData.unwrappedData}}catch(n){return{type:g.error,error:n}}return{type:g.data,data:e.deferredData.data}}}function Ze(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function et(e,t){let r="string"===typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&Ze(r||""))return e[e.length-1];let n=z(e);return n[n.length-1]}function tt(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function rt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function nt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function at(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 ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ot.apply(this,arguments)}const it=a.createContext(null);const st=a.createContext(null);const lt=a.createContext(null);const ut=a.createContext(null);const ct=a.createContext(null);const dt=a.createContext({outlet:null,matches:[],isDataRoute:!1});const ht=a.createContext(null);function ft(e,t){let{relative:r}=void 0===t?{}:t;pt()||d(!1);let{basename:n,navigator:o}=a.useContext(ut),{hash:i,pathname:s,search:l}=xt(e,{relative:r}),u=s;return"/"!==n&&(u="/"===s?n:K([n,s])),o.createHref({pathname:u,search:l,hash:i})}function pt(){return null!=a.useContext(ct)}function mt(){return pt()||d(!1),a.useContext(ct).location}function vt(){return a.useContext(ct).navigationType}function yt(e){pt()||d(!1);let{pathname:t}=mt();return a.useMemo((()=>O(e,F(t))),[t,e])}function gt(e){a.useContext(ut).static||a.useLayoutEffect(e)}function bt(){let{isDataRoute:e}=a.useContext(dt);return e?function(){let{router:e}=Mt(Tt.UseNavigateStable),t=jt(At.UseNavigateStable),r=a.useRef(!1);return gt((()=>{r.current=!0})),a.useCallback((function(n,a){void 0===a&&(a={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,ot({fromRouteId:t},a)))}),[e,t])}():function(){pt()||d(!1);let e=a.useContext(it),{basename:t,future:r,navigator:n}=a.useContext(ut),{matches:o}=a.useContext(dt),{pathname:i}=mt(),s=JSON.stringify(H(o,r.v7_relativeSplatPath)),l=a.useRef(!1);return gt((()=>{l.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"===typeof r)return void n.go(r);let o=W(r,JSON.parse(s),i,"path"===a.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:K([t,o.pathname])),(a.replace?n.replace:n.push)(o,a.state,a)}),[t,n,s,i,e])}()}const wt=a.createContext(null);function St(){return a.useContext(wt)}function Et(e){let t=a.useContext(dt).outlet;return t?a.createElement(wt.Provider,{value:e},t):t}function Rt(){let{matches:e}=a.useContext(dt),t=e[e.length-1];return t?t.params:{}}function xt(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(ut),{matches:o}=a.useContext(dt),{pathname:i}=mt(),s=JSON.stringify(H(o,n.v7_relativeSplatPath));return a.useMemo((()=>W(e,JSON.parse(s),i,"path"===r)),[e,s,i,r])}function Dt(e,t){return Ct(e,t)}function Ct(e,t,r,o){pt()||d(!1);let{navigator:i}=a.useContext(ut),{matches:s}=a.useContext(dt),l=s[s.length-1],u=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let h,f=mt();if(t){var p;let e="string"===typeof t?v(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||d(!1),h=e}else h=f;let m=h.pathname||"/",y=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=S(e,{pathname:y});let b=kt(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:K([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:K([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,r,o);return t&&b?a.createElement(ct.Provider,{value:{location:ot({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:n.Pop}},b):b}const _t=a.createElement((function(){let e=Wt(),t=ne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:o},r):null,null)}),null);class Lt extends a.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(dt.Provider,{value:this.props.routeContext},a.createElement(ht.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Pt(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(it);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(dt.Provider,{value:t},n)}function kt(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||d(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let a=0;a<s.length;a++){let e=s[a];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=a),e.route.id){let{loaderData:t,errors:n}=r,a=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||a){u=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,n,o)=>{let i,d=!1,h=null,f=null;var p;r&&(i=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||_t,u&&(c<0&&0===o?(p="route-fallback",!1||Yt[p]||(Yt[p]=!0),d=!0,f=null):c===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),v=()=>{let t;return t=i?h:d?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Pt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(Lt,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var Tt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tt||{}),At=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(At||{});function Mt(e){let t=a.useContext(it);return t||d(!1),t}function Ut(e){let t=a.useContext(st);return t||d(!1),t}function jt(e){let t=function(){let e=a.useContext(dt);return e||d(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||d(!1),r.route.id}function Ot(){return jt(At.UseRouteId)}function Ft(){return Ut(At.UseNavigation).navigation}function Nt(){let e=Mt(Tt.UseRevalidator),t=Ut(At.UseRevalidator);return a.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function Bt(){let{matches:e,loaderData:t}=Ut(At.UseMatches);return a.useMemo((()=>e.map((e=>R(e,t)))),[e,t])}function It(){let e=Ut(At.UseLoaderData),t=jt(At.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function zt(e){return Ut(At.UseRouteLoaderData).loaderData[e]}function Ht(){let e=Ut(At.UseActionData),t=jt(At.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Wt(){var e;let t=a.useContext(ht),r=Ut(At.UseRouteError),n=jt(At.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Kt(){let e=a.useContext(lt);return null==e?void 0:e._data}function $t(){let e=a.useContext(lt);return null==e?void 0:e._error}let Jt=0;function Vt(e){let{router:t,basename:r}=Mt(Tt.UseBlocker),n=Ut(At.UseBlocker),[o,i]=a.useState(""),s=a.useCallback((t=>{if("function"!==typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:ot({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:ot({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})}),[r,e]);return a.useEffect((()=>{let e=String(++Jt);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,s)}),[t,o,s]),o&&n.blockers.has(o)?n.blockers.get(o):he}const Yt={};const qt=a.startTransition;function Xt(e){let{basename:t,children:r,initialEntries:n,initialIndex:o,future:i}=e,s=a.useRef();null==s.current&&(s.current=l({initialEntries:n,initialIndex:o,v5Compat:!0}));let u=s.current,[c,d]=a.useState({action:u.action,location:u.location}),{v7_startTransition:h}=i||{},f=a.useCallback((e=>{h&&qt?qt((()=>d(e))):d(e)}),[d,h]);return a.useLayoutEffect((()=>u.listen(f)),[u,f]),a.createElement(er,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:i})}function Gt(e){let{to:t,replace:r,state:n,relative:o}=e;pt()||d(!1);let{future:i,static:s}=a.useContext(ut),{matches:l}=a.useContext(dt),{pathname:u}=mt(),c=bt(),h=W(t,H(l,i.v7_relativeSplatPath),u,"path"===o),f=JSON.stringify(h);return a.useEffect((()=>c(JSON.parse(f),{replace:r,state:n,relative:o})),[c,f,o,r,n]),null}function Qt(e){return Et(e.context)}function Zt(e){d(!1)}function er(e){let{basename:t="/",children:r=null,location:o,navigationType:i=n.Pop,navigator:s,static:l=!1,future:u}=e;pt()&&d(!1);let c=t.replace(/^\/*/,"/"),h=a.useMemo((()=>({basename:c,navigator:s,static:l,future:ot({v7_relativeSplatPath:!1},u)})),[c,u,s,l]);"string"===typeof o&&(o=v(o));let{pathname:f="/",search:p="",hash:m="",state:y=null,key:g="default"}=o,b=a.useMemo((()=>{let e=N(f,c);return null==e?null:{location:{pathname:e,search:p,hash:m,state:y,key:g},navigationType:i}}),[c,f,p,m,y,g,i]);return null==b?null:a.createElement(ut.Provider,{value:h},a.createElement(ct.Provider,{children:r,value:b}))}function tr(e){let{children:t,location:r}=e;return Dt(sr(t),r)}function rr(e){let{children:t,errorElement:r,resolve:n}=e;return a.createElement(or,{resolve:n,errorElement:r},a.createElement(ir,null,t))}var nr=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(nr||{});const ar=new Promise((()=>{}));class or extends a.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,o=nr.pending;if(r instanceof Promise)if(this.state.error){o=nr.error;let e=this.state.error;n=Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,o="_error"in n?nr.error:"_data"in n?nr.success:nr.pending):(o=nr.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else o=nr.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===nr.error&&n._error instanceof q)throw ar;if(o===nr.error&&!t)throw n._error;if(o===nr.error)return a.createElement(lt.Provider,{value:n,children:t});if(o===nr.success)return a.createElement(lt.Provider,{value:n,children:e});throw n}}function ir(e){let{children:t}=e,r=Kt(),n="function"===typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function sr(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,n)=>{if(!a.isValidElement(e))return;let o=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,sr(e.props.children,o));e.type!==Zt&&d(!1),e.props.index&&e.props.children&&d(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=sr(e.props.children,o)),r.push(i)})),r}function lr(e){return kt(e)}function ur(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function cr(e,t){return ve({basename:null==t?void 0:t.basename,future:ot({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:l({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:ur,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss}).initialize()}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function hr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}const fr="get",pr="application/x-www-form-urlencoded";function mr(e){return null!=e&&"string"===typeof e.tagName}function vr(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}let yr=null;const gr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function br(e){return null==e||gr.has(e)?e:null}function wr(e,t){let r,n,a,o,i;if(mr(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||fr,a=br(e.getAttribute("enctype"))||pr,o=new FormData(e)}else if(function(e){return mr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return mr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?N(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||fr,a=br(e.getAttribute("formenctype"))||br(i.getAttribute("enctype"))||pr,o=new FormData(i,e),!function(){if(null===yr)try{new FormData(document.createElement("form"),0),yr=!1}catch(e){yr=!0}return yr}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(mr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fr,n=null,a=pr,i=e}var s;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}const Sr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Er=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Rr=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(dn){}function xr(e,t){return ve({basename:null==t?void 0:t.basename,future:dr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:u({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||Cr(),routes:e,mapRouteProperties:ur,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss,window:null==t?void 0:t.window}).initialize()}function Dr(e,t){return ve({basename:null==t?void 0:t.basename,future:dr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:c({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||Cr(),routes:e,mapRouteProperties:ur,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss,window:null==t?void 0:t.window}).initialize()}function Cr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=dr({},t,{errors:_r(t.errors)})),t}function _r(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[n]=new re(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){let e=window[a.__subType];if("function"===typeof e)try{let t=new e(a.message);t.stack="",r[n]=t}catch(dn){}}if(null==r[n]){let e=new Error(a.message);e.stack="",r[n]=e}}else r[n]=a;return r}const Lr=a.createContext({isTransitioning:!1});const Pr=a.createContext(new Map);const kr=a.startTransition,Tr=o.flushSync,Ar=a.useId;function Mr(e){Tr?Tr(e):e()}class Ur{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function jr(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=a.useState(r.state),[s,l]=a.useState(),[u,c]=a.useState({isTransitioning:!1}),[d,h]=a.useState(),[f,p]=a.useState(),[m,v]=a.useState(),y=a.useRef(new Map),{v7_startTransition:g}=n||{},b=a.useCallback((e=>{g?function(e){kr?kr(e):e()}(e):e()}),[g]),w=a.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:o}=t;n.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let s=null==r.window||null==r.window.document||"function"!==typeof r.window.document.startViewTransition;if(o&&!s){if(a){Mr((()=>{f&&(d&&d.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=r.window.document.startViewTransition((()=>{Mr((()=>i(e)))}));return t.finished.finally((()=>{Mr((()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}))})),void Mr((()=>p(t)))}f?(d&&d.resolve(),f.skipTransition(),v({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?Mr((()=>i(e))):b((()=>i(e)))}),[r.window,f,d,y,b]);a.useLayoutEffect((()=>r.subscribe(w)),[r,w]),a.useEffect((()=>{u.isTransitioning&&!u.flushSync&&h(new Ur)}),[u]),a.useEffect((()=>{if(d&&s&&r.window){let e=s,t=d.promise,n=r.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));n.finished.finally((()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})),p(n)}}),[b,s,d,r.window]),a.useEffect((()=>{d&&s&&o.location.key===s.location.key&&d.resolve()}),[d,f,o.location,s]),a.useEffect((()=>{!u.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))}),[u.isTransitioning,m]),a.useEffect((()=>{}),[]);let S=a.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),E=r.basename||"/",R=a.useMemo((()=>({router:r,navigator:S,static:!1,basename:E})),[r,S,E]),x=a.useMemo((()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath})),[r.future.v7_relativeSplatPath]);return a.createElement(a.Fragment,null,a.createElement(it.Provider,{value:R},a.createElement(st.Provider,{value:o},a.createElement(Pr.Provider,{value:y.current},a.createElement(Lr.Provider,{value:u},a.createElement(er,{basename:E,location:o.location,navigationType:o.historyAction,navigator:S,future:x},o.initialized||r.future.v7_partialHydration?a.createElement(Or,{routes:r.routes,future:r.future,state:o}):t))))),null)}const Or=a.memo((function(e){let{routes:t,future:r,state:n}=e;return Ct(t,void 0,n,r)}));function Fr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=u({window:o,v5Compat:!0}));let s=i.current,[l,c]=a.useState({action:s.action,location:s.location}),{v7_startTransition:d}=n||{},h=a.useCallback((e=>{d&&kr?kr((()=>c(e))):c(e)}),[c,d]);return a.useLayoutEffect((()=>s.listen(h)),[s,h]),a.createElement(er,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Nr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=c({window:o,v5Compat:!0}));let s=i.current,[l,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:d}=n||{},h=a.useCallback((e=>{d&&kr?kr((()=>u(e))):u(e)}),[u,d]);return a.useLayoutEffect((()=>s.listen(h)),[s,h]),a.createElement(er,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Br(e){let{basename:t,children:r,future:n,history:o}=e,[i,s]=a.useState({action:o.action,location:o.location}),{v7_startTransition:l}=n||{},u=a.useCallback((e=>{l&&kr?kr((()=>s(e))):s(e)}),[s,l]);return a.useLayoutEffect((()=>o.listen(u)),[o,u]),a.createElement(er,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:o,future:n})}const Ir="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,zr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=a.forwardRef((function(e,t){let r,{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:h}=e,f=hr(e,Sr),{basename:p}=a.useContext(ut),m=!1;if("string"===typeof c&&zr.test(c)&&(r=c,Ir))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=N(t.pathname,p);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:m=!0}catch(dn){}let v=ft(c,{relative:o}),y=Xr(c,{replace:s,state:l,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:h});return a.createElement("a",dr({},f,{href:r||v,onClick:m||i?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:u}))}));const Wr=a.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:s,to:l,unstable_viewTransition:u,children:c}=e,d=hr(e,Er),h=xt(l,{relative:d.relative}),f=mt(),p=a.useContext(st),{navigator:m,basename:v}=a.useContext(ut),y=null!=p&&cn(h)&&!0===u,g=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,b=f.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&v&&(w=N(w,v)||w);const S="/"!==g&&g.endsWith("/")?g.length-1:g.length;let E,R=b===g||!i&&b.startsWith(g)&&"/"===b.charAt(S),x=null!=w&&(w===g||!i&&w.startsWith(g)&&"/"===w.charAt(g.length)),D={isActive:R,isPending:x,isTransitioning:y},C=R?r:void 0;E="function"===typeof o?o(D):[o,R?"active":null,x?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let _="function"===typeof s?s(D):s;return a.createElement(Hr,dr({},d,{"aria-current":C,className:E,ref:t,style:_,to:l,unstable_viewTransition:u}),"function"===typeof c?c(D):c)}));const Kr=a.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=fr,action:u,onSubmit:c,relative:d,preventScrollReset:h,unstable_viewTransition:f}=e,p=hr(e,Rr),m=en(),v=tn(u,{relative:d}),y="get"===l.toLowerCase()?"get":"post";return a.createElement("form",dr({ref:t,method:y,action:v,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:s,relative:d,preventScrollReset:h,unstable_viewTransition:f})}},p))}));function $r(e){let{getKey:t,storageKey:r}=e;return sn({getKey:t,storageKey:r}),null}var Jr,Vr;function Yr(e){let t=a.useContext(it);return t||d(!1),t}function qr(e){let t=a.useContext(st);return t||d(!1),t}function Xr(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:l}=void 0===t?{}:t,u=bt(),c=mt(),d=xt(e,{relative:s});return a.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==n?n:m(c)===m(d);u(e,{replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:l})}}),[c,u,d,n,o,r,e,i,s,l])}function Gr(e){let t=a.useRef(vr(e)),r=a.useRef(!1),n=mt(),o=a.useMemo((()=>function(e,t){let r=vr(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(n.search,r.current?null:t.current)),[n.search]),i=bt(),s=a.useCallback(((e,t)=>{const n=vr("function"===typeof e?e(o):e);r.current=!0,i("?"+n,t)}),[i,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jr||(Jr={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Vr||(Vr={}));let Qr=0,Zr=()=>"__"+String(++Qr)+"__";function en(){let{router:e}=Yr(Jr.UseSubmit),{basename:t}=a.useContext(ut),r=Ot();return a.useCallback((function(n,a){void 0===a&&(a={}),function(){if("undefined"===typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:i,encType:s,formData:l,body:u}=wr(n,t);if(!1===a.navigate){let t=a.fetcherKey||Zr();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,unstable_flushSync:a.unstable_flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:r,unstable_flushSync:a.unstable_flushSync,unstable_viewTransition:a.unstable_viewTransition})}),[e,t,r])}function tn(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=a.useContext(ut),o=a.useContext(dt);o||d(!1);let[i]=o.matches.slice(-1),s=dr({},xt(e||".",{relative:r})),l=mt();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search);e.has("index")&&""===e.get("index")&&(e.delete("index"),s.search=e.toString()?"?"+e.toString():"")}return e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:K([n,s.pathname])),m(s)}function rn(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=Yr(Jr.UseFetcher),o=qr(Vr.UseFetcher),i=a.useContext(Pr),s=a.useContext(dt),l=null==(t=s.matches[s.matches.length-1])?void 0:t.route.id;i||d(!1),s||d(!1),null==l&&d(!1);let u=Ar?Ar():"",[c,h]=a.useState(r||u);r&&r!==c?h(r):c||h(Zr()),a.useEffect((()=>(n.getFetcher(c),()=>{n.deleteFetcher(c)})),[n,c]);let f=a.useCallback(((e,t)=>{l||d(!1),n.fetch(c,l,e,t)}),[c,l,n]),p=en(),m=a.useCallback(((e,t)=>{p(e,dr({},t,{navigate:!1,fetcherKey:c}))}),[c,p]),v=a.useMemo((()=>a.forwardRef(((e,t)=>a.createElement(Kr,dr({},e,{navigate:!1,fetcherKey:c,ref:t}))))),[c]),y=o.fetchers.get(c)||de,g=i.get(c);return a.useMemo((()=>dr({Form:v,submit:m,load:f},y,{data:g})),[v,m,f,y,g])}function nn(){let e=qr(Vr.UseFetchers);return Array.from(e.fetchers.entries()).map((e=>{let[t,r]=e;return dr({},r,{key:t})}))}const an="react-router-scroll-positions";let on={};function sn(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=Yr(Jr.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=qr(Vr.UseScrollRestoration),{basename:s}=a.useContext(ut),l=mt(),u=Bt(),c=Ft();a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:r}=t||{};a.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,r])}(a.useCallback((()=>{if("idle"===c.state){let e=(t?t(l,u):null)||l.key;on[e]=window.scrollY}try{sessionStorage.setItem(r||an,JSON.stringify(on))}catch(e){}window.history.scrollRestoration="auto"}),[r,t,c.state,l,u])),"undefined"!==typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(r||an);e&&(on=JSON.parse(e))}catch(dn){}}),[r]),a.useLayoutEffect((()=>{let e=t&&"/"!==s?(e,r)=>t(dr({},e,{pathname:N(e.pathname,s)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(on,(()=>window.scrollY),e);return()=>r&&r()}),[n,s,t]),a.useLayoutEffect((()=>{if(!1!==o)if("number"!==typeof o){if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,o)}),[l,o,i]))}function ln(e,t){let{capture:r}=t||{};a.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}}),[e,r])}function un(e){let{when:t,message:r}=e,n=Vt(t);a.useEffect((()=>{if("blocked"===n.state){window.confirm(r)?setTimeout(n.proceed,0):n.reset()}}),[n,r]),a.useEffect((()=>{"blocked"!==n.state||t||n.reset()}),[n,t])}function cn(e,t){void 0===t&&(t={});let r=a.useContext(Lr);null==r&&d(!1);let{basename:n}=Yr(Jr.useViewTransitionState),o=xt(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(o.pathname,s)||null!=O(o.pathname,i)}}}]);
3
- //# sourceMappingURL=3245.3f1edba5.chunk.js.map