| 1 |
var marqueex;(()=>{"use strict";var e={65(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"}},677(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"}},244(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"}},187(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},489(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},55(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}},925(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},784(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"}},477(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},509(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},442(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}},699(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"}},322(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},519(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},771(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"}},885(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},537(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"}},929(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},472(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},569(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"}},760(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"}},869(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},184(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},535(e,t,n){var o={};n.r(o),n.d(o,{setActivePage:()=>tx});var r={};n.r(r),n.d(r,{getActivePage:()=>nx});var a={};n.r(a),n.d(a,{fetchSettings:()=>ix,saveSettings:()=>cx,setSettings:()=>sx,testBuilderIntegration:()=>dx,updateSettings:()=>lx});var i={};n.r(i),n.d(i,{getBuilderConfigs:()=>vx,getError:()=>hx,getLoading:()=>mx,getSetting:()=>px,getSettings:()=>ux,getTestResult:()=>bx,getTestResults:()=>gx,getUpdating:()=>fx,isLoading:()=>yx});const s=window.ReactDOM;var l=n.n(s);const c=window.wp.element;function d(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=d(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function u(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=d(e))&&(o&&(o+=" "),o+=t);return o}const p=u;function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,f(e,t)}const h=window.React;var g=n.n(h);function b(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}const v=g().createContext(null);var y=function(e){return e.scrollTop},x="unmounted",$="exited",w="entering",C="entered",S="exiting",E=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,a=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(r=$,o.appearStatus=w):r=C:r=t.unmountOnExit||t.mountOnEnter?x:$,o.state={status:r},o.nextCallback=null,o}m(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===x?{status:$}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==w&&n!==C&&(t=w):n!==w&&n!==C||(t=S)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===w){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);n&&y(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$&&this.setState({status:x})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[l().findDOMNode(this),o],a=r[0],i=r[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:w},function(){t.props.onEntering(a,i),t.onTransitionEnd(c,function(){t.safeSetState({status:C},function(){t.props.onEntered(a,i)})})})):this.safeSetState({status:C},function(){t.props.onEntered(a)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:S},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:$},function(){e.props.onExited(o)})})})):this.safeSetState({status:$},function(){e.props.onExited(o)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],i=r[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===x)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,b(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return g().createElement(v.Provider,{value:null},"function"==typeof n?n(e,o):g().cloneElement(g().Children.only(n),o))},t}(g().Component);function k(){}E.contextType=v,E.propTypes={},E.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:k,onEntering:k,onEntered:k,onExit:k,onExiting:k,onExited:k},E.UNMOUNTED=x,E.EXITED=$,E.ENTERING=w,E.ENTERED=C,E.EXITING=S;const N=E;var M,R,I="out-in",_="in-out",P=function(e,t,n){return function(){var o;e.props[t]&&(o=e.props)[t].apply(o,arguments),n()}},z=((M={})[I]=function(e){var t=e.current,n=e.changeState;return g().cloneElement(t,{in:!1,onExited:P(t,"onExited",function(){n(w,null)})})},M[_]=function(e){var t=e.current,n=e.changeState,o=e.children;return[t,g().cloneElement(o,{in:!0,onEntered:P(o,"onEntered",function(){n(w)})})]},M),O=((R={})[I]=function(e){var t=e.children,n=e.changeState;return g().cloneElement(t,{in:!0,onEntered:P(t,"onEntered",function(){n(C,g().cloneElement(t,{in:!0}))})})},R[_]=function(e){var t=e.current,n=e.children,o=e.changeState;return[g().cloneElement(t,{in:!1,onExited:P(t,"onExited",function(){o(C,g().cloneElement(n,{in:!0}))})}),g().cloneElement(n,{in:!0})]},R),T=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={status:C,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}m(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===w&&e.mode===_?{status:w}:!t.current||((n=t.current)===(o=e.children)||g().isValidElement(n)&&g().isValidElement(o)&&null!=n.key&&n.key===o.key)?{current:g().cloneElement(e.children,{in:!0})}:{status:S};var n,o},n.render=function(){var e,t=this.props,n=t.children,o=t.mode,r=this.state,a=r.status,i=r.current,s={children:n,current:i,changeState:this.changeState,status:a};switch(a){case w:e=O[o](s);break;case S:e=z[o](s);break;case C:e=i}return g().createElement(v.Provider,{value:{isMounting:!this.appeared}},e)},t}(g().Component);T.propTypes={},T.defaultProps={mode:I};const A=T;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},L.apply(null,arguments)}function B(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var H=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=B(n.className,o):n.setAttribute("class",B(n.className&&n.className.baseVal||"",o)));var n,o})},j=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1];t.removeClasses(r,"exit"),t.addClass(r,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.addClass(r,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.removeClasses(r,a),t.addClass(r,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}m(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&y(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o})}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,a=n.done;this.appliedClasses[t]={},o&&H(e,o),r&&H(e,r),a&&H(e,a)},n.render=function(){var e=this.props,t=(e.classNames,b(e,["classNames"]));return g().createElement(N,L({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(g().Component);j.defaultProps={classNames:""},j.propTypes={};const D=j,q=window.wp.i18n,W=window.wp.data;function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function G(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function X(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V=n(509);const K={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},U=Math.round;function Y(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Z=(e,t,n)=>0===n?e:e/100;function Q(e,t){const n=t||255;return e>n?n:e<0?0:e}class J{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(o("rgb"))this.fromRgbString(n);else if(o("hsl"))this.fromHslString(n);else if(o("hsv")||o("hsb"))this.fromHsvString(n);else{const r=K[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof J)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Q(e.r),this.g=Q(e.g),this.b=Q(e.b),this.a="number"==typeof e.a?Q(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:U(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(void 0===this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],a={r:U(r("r")),g:U(r("g")),b:U(r("b")),a:U(100*r("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>U((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=U(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=U(100*this.getHSLSaturation()),n=U(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=Q(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){const r=(e%360+360)%360;if(this._h=r,this._hsl_s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=U(255*n);return this.r=e,this.g=e,void(this.b=e)}let a=0,i=0,s=0;const l=r/60,c=(1-Math.abs(2*n-1))*t,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=d):l>=1&&l<2?(a=d,i=c):l>=2&&l<3?(i=c,s=d):l>=3&&l<4?(i=d,s=c):l>=4&&l<5?(a=d,s=c):l>=5&&l<6&&(a=c,s=d);const u=n-c/2;this.r=U(255*(a+u)),this.g=U(255*(i+u)),this.b=U(255*(s+u))}fromHsv({h:e,s:t,v:n,a:o}){const r=(e%360+360)%360;this._h=r,this._hsv_s=t,this._v=n,this.a="number"==typeof o?o:1;const a=U(255*n);if(this.r=a,this.g=a,this.b=a,t<=0)return;const i=r/60,s=Math.floor(i),l=i-s,c=U(n*(1-t)*255),d=U(n*(1-t*l)*255),u=U(n*(1-t*(1-l))*255);switch(s){case 0:this.g=u,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=d;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=d}}fromHsvString(e){const t=Y(e,Z);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Y(e,Z);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Y(e,(e,t)=>t.includes("%")?U(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const ee=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function te(e,t,n){let o;return o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,o<0?o+=360:o>=360&&(o-=360),o}function ne(e,t,n){if(0===e.h&&0===e.s)return e.s;let o;return o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,o>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100}function oe(e,t,n){let o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function re(e,t={}){const n=[],o=new J(e),r=o.toHsv();for(let e=5;e>0;e-=1){const t=new J({h:te(r,e,!0),s:ne(r,e,!0),v:oe(r,e,!0)});n.push(t)}n.push(o);for(let e=1;e<=4;e+=1){const t=new J({h:te(r,e),s:ne(r,e),v:oe(r,e)});n.push(t)}return"dark"===t.theme?ee.map(({index:e,amount:o})=>new J(t.backgroundColor||"#141414").mix(n[e],o).toHexString()):n.map(e=>e.toHexString())}const ae={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ie=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ie.primary=ie[5];const se=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];se.primary=se[5];const le=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];le.primary=le[5];const ce=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ce.primary=ce[5];const de=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];de.primary=de[5];const ue=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ue.primary=ue[5];const pe=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];pe.primary=pe[5];const fe=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fe.primary=fe[5];const me=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];me.primary=me[5];const he=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];he.primary=he[5];const ge=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ge.primary=ge[5];const be=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];be.primary=be[5];const ve=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ve.primary=ve[5];const ye={red:ie,volcano:se,orange:le,gold:ce,yellow:de,lime:ue,green:pe,cyan:fe,blue:me,geekblue:he,purple:ge,magenta:be,grey:ve},xe=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];xe.primary=xe[5];const $e=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];$e.primary=$e[5];const we=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];we.primary=we[5];const Ce=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ce.primary=Ce[5];const Se=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Se.primary=Se[5];const Ee=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ee.primary=Ee[5];const ke=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ke.primary=ke[5];const Ne=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Ne.primary=Ne[5];const Me=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Me.primary=Me[5];const Re=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Re.primary=Re[5];const Ie=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ie.primary=Ie[5];const _e=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];_e.primary=_e[5];const Pe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Pe.primary=Pe[5];const ze=(0,h.createContext)({}),Oe=e=>{const t=h.useRef(e);return t.current=e,h.useCallback((...e)=>t.current?.(...e),[])};function Te(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const Ae=Te()?h.useLayoutEffect:h.useEffect,Le=(e,t)=>{const n=h.useRef(!0);Ae(()=>e(n.current),t),Ae(()=>(n.current=!1,()=>{n.current=!0}),[])},Be=(e,t)=>{Le(t=>{if(!t)return e()},t)},He=Le;function je(e,t){const[n,o]=(0,h.useState)(e),r=void 0!==t?t:n;return He(e=>{e||o(t)},[t]),[r,o]}let De=0;const qe={...h}.useId,We=qe?function(e){const t=qe();return e||t}:function(e){const[t,n]=h.useState("ssr-id");return h.useEffect(()=>{const e=De;De+=1,n(`rc_unique_${e}`)},[]),e||t};function Fe(e,t,n){const o=h.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var Ge=n(524);const Xe=Symbol.for("react.element"),Ve=Symbol.for("react.transitional.element"),Ke=Symbol.for("react.fragment");function Ue(e){return e&&"object"==typeof e&&(e.$$typeof===Xe||e.$$typeof===Ve)&&e.type===Ke}const Ye=Number(h.version.split(".")[0]),Ze=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{((e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)})(e,t)})}},Qe=(...e)=>Fe(()=>Ze(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),Je=e=>{if(!e)return!1;if(et(e)&&Ye>=19)return!0;const t=(0,Ge.isMemo)(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==Ge.ForwardRef||"function"==typeof e&&!e.prototype?.render&&e.$$typeof!==Ge.ForwardRef)};function et(e){return(0,h.isValidElement)(e)&&!Ue(e)}const tt=e=>{if(e&&et(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},nt="data-rc-order",ot="data-rc-priority",rt=new Map;function at({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function it(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function st(e){return Array.from((rt.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function lt(e,t={}){if(!Te())return null;const{csp:n,prepend:o,priority:r=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),i="prependQueue"===a,s=document.createElement("style");s.setAttribute(nt,a),i&&r&&s.setAttribute(ot,`${r}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;const l=it(t),{firstChild:c}=l;if(o){if(i){const e=(t.styles||st(l)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(nt)))return!1;const t=Number(e.getAttribute(ot)||0);return r>=t});if(e.length)return l.insertBefore(s,e[e.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function ct(e,t={}){let{styles:n}=t;return n||=st(it(t)),n.find(n=>n.getAttribute(at(t))===e)}function dt(e,t={}){const n=ct(e,t);n&&it(t).removeChild(n)}function ut(e,t,n={}){const o=it(n),r=st(o),a={...n,styles:r};!function(e,t){const n=rt.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=lt("",t),{parentNode:o}=n;rt.set(e,o),e.removeChild(n)}}(o,a);const i=ct(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp?.nonce&&(i.nonce=a.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const s=lt(e,a);return s.setAttribute(at(a),t),s}function pt(e){return e instanceof HTMLElement||e instanceof SVGElement}function ft(e){return e&&"object"==typeof e&&pt(e.nativeElement)?e.nativeElement:pt(e)?e:null}const mt=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function ht(e,t=!1){if(mt(e)){const n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),a=Number(r);let i=null;return r&&!Number.isNaN(a)?i=a:o&&null===i&&(i=0),o&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function gt(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}function bt(e){return e?.getRootNode?.()}function vt(e){return function(e){return bt(e)instanceof ShadowRoot}(e)?bt(e):null}new Map,new Map;const yt=e=>{if(Te()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1};function xt(e,t){return Array.isArray(e)||void 0===t?yt(e):((e,t)=>{if(!yt(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o})(e,t)}const $t={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=$t.F1&&t<=$t.F12)return!1;switch(t){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=$t.ZERO&&e<=$t.NINE)return!0;if(e>=$t.NUM_ZERO&&e<=$t.NUM_MULTIPLY)return!0;if(e>=$t.A&&e<=$t.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const t=e.target;if(!(t instanceof HTMLElement))return!1;const n=t.tagName;return!("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&!t.isContentEditable)}},wt=$t;let Ct={};const St=[];function Et(e,t){}function kt(e,t){}function Nt(e,t,n){t||Ct[n]||(e(!1,n),Ct[n]=!0)}function Mt(e,t){Nt(Et,e,t)}Mt.preMessage=e=>{St.push(e)},Mt.resetWarned=function(){Ct={}},Mt.noteOnce=function(e,t){Nt(kt,e,t)};const Rt=Mt,It=function(e,t,n=!1){const o=new Set;return function e(t,r,a=1){const i=o.has(t);if(Rt(!i,"Warning: There may be circular references"),i)return!1;if(t===r)return!0;if(n&&a>1)return!1;o.add(t);const s=a+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n],s))return!1;return!0}if(t&&r&&"object"==typeof t&&"object"==typeof r){const n=Object.keys(t);return n.length===Object.keys(r).length&&n.every(n=>e(t[n],r[n],s))}return!1}(e,t)};var _t=n(611),Pt=n.n(_t);let zt;function Ot(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}const Tt="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function At(e,t){return 0===e.indexOf(t)}function Lt(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const o={};return Object.keys(e).forEach(t=>{(n.aria&&("role"===t||At(t,"aria-"))||n.data&&At(t,"data-")||n.attr&&Tt.includes(t))&&(o[t]=e[t])}),o}let Bt=e=>+setTimeout(e,16),Ht=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Bt=e=>window.requestAnimationFrame(e),Ht=e=>window.cancelAnimationFrame(e));let jt=0;const Dt=new Map;function qt(e){Dt.delete(e)}const Wt=(e,t=1)=>{jt+=1;const n=jt;return function t(o){if(0===o)qt(n),e();else{const e=Bt(()=>{t(o-1)});Dt.set(n,e)}}(t),n};Wt.cancel=e=>{const t=Dt.get(e);return qt(e),Ht(t)};const Ft=Wt;function Gt(e,t={}){let n=[];return g().Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Gt(e)):Ue(e)&&e.props?n=n.concat(Gt(e.props.children,t)):n.push(e))}),n}const Xt=function(...e){const t={};for(const n of e)if(n)for(const e of Object.keys(n))void 0!==n[e]&&(t[e]=n[e]);return t};function Vt(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function Kt(e,t,n,o){if(!t.length)return n;const[r,...a]=t;let i;return i=e||"number"!=typeof r?Array.isArray(e)?[...e]:{...e}:[],o&&void 0===n&&1===a.length?delete i[r][a[0]]:i[r]=Kt(i[r],a,n,o),i}function Ut(e,t,n,o=!1){return t.length&&o&&void 0===n&&!Vt(e,t.slice(0,-1))?e:Kt(e,t,n,o)}function Yt(e){return Array.isArray(e)?[]:{}}const Zt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const Qt="__rc_react_root__";function Jt(e,t){const n=t[Qt]||(0,s.createRoot)(t);n.render(e),t[Qt]=n}function en(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function tn(e={}){return Object.keys(e).reduce((t,n)=>{const o=e[n];var r;return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=o),t},{})}function nn(e,t,n){return n?g().createElement(e.tag,{key:t,...tn(e.attrs),...n},(e.children||[]).map((n,o)=>nn(n,`${t}-${e.tag}-${o}`))):g().createElement(e.tag,{key:t,...tn(e.attrs)},(e.children||[]).map((n,o)=>nn(n,`${t}-${e.tag}-${o}`)))}function on(e){return re(e)[0]}function rn(e){return e?Array.isArray(e)?e:[e]:[]}const an={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},sn=e=>{const{icon:t,className:n,onClick:o,style:r,primaryColor:a,secondaryColor:i,...s}=e,l=h.useRef(null);let c=an;var d;if(a&&(c={primaryColor:a,secondaryColor:i||on(a)}),(e=>{const{csp:t,prefixCls:n,layer:o}=(0,h.useContext)(ze);let r="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin {\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(r=r.replace(/anticon/g,n)),o&&(r=`@layer ${o} {\n${r}\n}`),(0,h.useEffect)(()=>{const n=vt(e.current);ut(r,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(l),d=en(t),Rt(d,`[@ant-design/icons] icon should be icon definiton, but got ${t}`),!en(t))return null;let u=t;return u&&"function"==typeof u.icon&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),nn(u.icon,`svg-${u.name}`,{className:n,onClick:o,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};sn.displayName="IconReact",sn.getTwoToneColors=function(){return{...an}},sn.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){an.primaryColor=e,an.secondaryColor=t||on(e),an.calculated=!!t};const ln=sn;function cn(e){const[t,n]=rn(e);return ln.setTwoToneColors({primaryColor:t,secondaryColor:n})}function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dn.apply(this,arguments)}cn(me.primary);const un=h.forwardRef((e,t)=>{const{className:n,icon:o,spin:r,rotate:a,tabIndex:i,onClick:s,twoToneColor:l,...c}=e,{prefixCls:d="anticon",rootClassName:p}=h.useContext(ze),f=u(p,d,{[`${d}-${o.name}`]:!!o.name,[`${d}-spin`]:!!r||"loading"===o.name},n);let m=i;void 0===m&&s&&(m=-1);const g=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[b,v]=rn(l);return h.createElement("span",dn({role:"img","aria-label":o.name},c,{ref:t,tabIndex:m,onClick:s,className:f}),h.createElement(ln,{icon:o,primaryColor:b,secondaryColor:v,style:g}))});un.getTwoToneColor=function(){const e=ln.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},un.setTwoToneColor=cn;const pn=un;function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fn.apply(this,arguments)}const mn=(e,t)=>h.createElement(pn,fn({},e,{ref:t,icon:V.A})),hn=h.forwardRef(mn),gn=h.createContext(null),bn=new Map;function vn(e){e.forEach(e=>{const{target:t}=e;bn.get(t)?.forEach(e=>e(t))})}let yn;function xn(){return yn||(yn=new ResizeObserver(vn)),yn}function $n(e,t,n,o){const r=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=Oe(e=>{const{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:s}=e,l=Math.floor(t),c=Math.floor(a);if(r.current.width!==l||r.current.height!==c||r.current.offsetWidth!==i||r.current.offsetHeight!==s){const d={width:l,height:c,offsetWidth:i,offsetHeight:s};r.current=d;const u=i===Math.round(t)?t:i,p=s===Math.round(a)?a:s,f={...d,offsetWidth:u,offsetHeight:p};o?.(f,e),Promise.resolve().then(()=>{n?.(f,e)})}}),i="function"==typeof t,s=h.useRef(0);h.useEffect(()=>{const n=i?t():t;var o,r;return n&&e?(o=n,r=a,bn.has(o)||(bn.set(o,new Set),xn().observe(o)),bn.get(o).add(r)):e&&i&&(s.current+=1),()=>{n&&function(e,t){bn.has(e)&&(bn.get(e).delete(t),bn.get(e).size||(xn().unobserve(e),bn.delete(e)))}(n,a)}},[e,i?s.current:t])}function wn(e,t){const{children:n,disabled:o,onResize:r,data:a}=e,i=h.useRef(null),s=h.useContext(gn),l="function"==typeof n,c=l?n(i):n,d=!l&&h.isValidElement(c)&&Je(c),u=d?tt(c):null,p=Qe(u,i),f=()=>ft(i.current);return h.useImperativeHandle(t,()=>f()),$n(!o,f,r,(e,t)=>{s?.(e,t,a)}),d?h.cloneElement(c,{ref:p}):c}const Cn=h.forwardRef(wn);function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Sn.apply(this,arguments)}function En(e,t){const{children:n}=e;return("function"==typeof n?[n]:Gt(n)).map((n,o)=>{const r=n?.key||`rc-observer-key-${o}`;return h.createElement(Cn,Sn({},e,{key:r,ref:0===o?t:void 0}),n)})}const kn=h.forwardRef(En);kn.Collection=function({children:e,onBatchResize:t}){const n=h.useRef(0),o=h.useRef([]),r=h.useContext(gn),a=h.useCallback((e,a,i)=>{n.current+=1;const s=n.current;o.current.push({size:e,element:a,data:i}),Promise.resolve().then(()=>{s===n.current&&(t?.(o.current),o.current=[])}),r?.(e,a,i)},[t,r]);return h.createElement(gn.Provider,{value:a},e)};const Nn=kn,Mn=e=>null!=e,Rn=e=>Mn(e)&&!1!==e&&""!==e,In=e=>"number"==typeof e&&!Number.isNaN(e),Pn=e=>"string"==typeof e,zn=e=>null!==e&&"object"==typeof e,On=e=>"function"==typeof e,Tn=(0,h.createContext)(void 0);function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach(function(t){var o,r,a,i;o=e,r=t,a=n[t],i=function(e){if("object"!=An(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=An(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==An(i)?i:String(i))in o?Object.defineProperty(o,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Hn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jn={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Bn(Bn({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"})},timePickerLocale:{...Hn}},Dn="${label} is not a valid ${type}",qn={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:jn,TimePicker:Hn,Calendar:jn,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Dn,method:Dn,array:Dn,object:Dn,number:Dn,date:Dn,boolean:Dn,integer:Dn,float:Dn,regexp:Dn,email:Dn,url:Dn,hex:Dn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Wn=(e,t)=>{const n=h.useContext(Tn);return[h.useMemo(()=>{const o=t||qn[e],r=n?.[e]??{};return{...On(o)?o():o,...r||{}}},[e,t,n]),h.useMemo(()=>{const e=n?.locale;return n?.exist&&!e?qn.locale:e},[n])]},Fn=e=>{const{children:t,prefixCls:n,id:o,classNames:r,styles:a,className:i,style:s}=e;return h.createElement("div",{id:o,className:u(`${n}-container`,r?.container,i),style:{...a?.container,...s},role:"tooltip"},"function"==typeof t?t():t)},Gn=h.createContext(null);let Xn=!1;const Vn=[],Kn=`rc-util-locker-${Date.now()}`;let Un=0;function Yn(e){const t=!!e,[n]=h.useState(()=>(Un+=1,`${Kn}_${Un}`));He(()=>{if(t){const t=(e=document.body,"undefined"!=typeof document&&e&&e instanceof Element?function(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const o=n.style;let r,a;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){const n=getComputedStyle(e);o.scrollbarColor=n.scrollbarColor,o.scrollbarWidth=n.scrollbarWidth;const i=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(i.width,10),l=parseInt(i.height,10);try{ut(`\n#${t}::-webkit-scrollbar {\n${s?`width: ${i.width};`:""}\n${l?`height: ${i.height};`:""}\n}`,t)}catch(e){console.error(e),r=s,a=l}}document.body.appendChild(n);const i=e&&r&&!Number.isNaN(r)?r:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),dt(t),{width:i,height:s}}(e):{width:0,height:0}).width;ut(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${t}px);`:""}\n}`,n)}else dt(n);var e;return()=>{dt(n)}},[t,n])}let Zn=[],Qn=0;const Jn=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-Qn<200)return;const t=Zn.length;for(let n=t-1;n>=0;n-=1)Zn[n].onEsc({top:n===t-1,event:e})}},eo=()=>{Qn=Date.now()};const to=e=>!1!==e&&(Te()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),no=h.forwardRef((e,t)=>{const{open:n,autoLock:o,getContainer:r,debug:a,autoDestroy:i=!0,children:l,onEsc:c}=e,[d,u]=h.useState(n),p=d||n;h.useEffect(()=>{(i||n)&&u(n)},[n,i]);const[f,m]=h.useState(()=>to(r));h.useEffect(()=>{const e=to(r);m(()=>e??null)});const[g,b]=function(e){const[t]=h.useState(()=>Te()?document.createElement("div"):null),n=h.useRef(!1),o=h.useContext(Gn),[r,a]=h.useState(Vn),i=o||(n.current?void 0:e=>{a(t=>[e,...t])});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function l(){t.parentElement?.removeChild(t),n.current=!1}return He(()=>(e?o?o(s):s():l(),l),[e]),He(()=>{r.length&&(r.forEach(e=>e()),a(Vn))},[r]),[t,i]}(p&&!f),v=f??g;Yn(o&&n&&Te()&&(v===g||v===document.body)),function(e,t){const n=We(),o=Oe(t),r=()=>{Zn.find(e=>e.id===n)||Zn.push({id:n,onEsc:o})},a=()=>{Zn=Zn.filter(e=>e.id!==n)};(0,h.useMemo)(()=>{e?r():e||a()},[e]),(0,h.useEffect)(()=>{if(e)return r(),window.addEventListener("keydown",Jn),window.addEventListener("compositionend",eo),()=>{a(),0===Zn.length&&(window.removeEventListener("keydown",Jn),window.removeEventListener("compositionend",eo))}},[e])}(n,c);let y=null;l&&Je(l)&&t&&(y=tt(l));const x=Qe(y,t);if(!p||!Te()||void 0===f)return null;const $=!1===v||Xn;let w=l;return t&&(w=h.cloneElement(l,{ref:x})),h.createElement(Gn.Provider,{value:b},$?w:(0,s.createPortal)(w,v))}),oo=no,ro=h.createContext({}),ao=e=>{const{children:t,...n}=e,o=h.useMemo(()=>({motion:n.motion}),[n.motion]);return h.createElement(ro.Provider,{value:o},t)},io="prepare",so="prepared";function lo(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}const co=function(e,t){const n={animationend:lo("Animation","AnimationEnd"),transitionend:lo("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Te(),"undefined"!=typeof window?window:{});let uo={};Te()&&({style:uo}=document.createElement("div"));const po={};function fo(e){if(po[e])return po[e];const t=co[e];if(t){const n=Object.keys(t),o=n.length;for(let r=0;r<o;r+=1){const o=n[r];if(Object.prototype.hasOwnProperty.call(t,o)&&o in uo)return po[e]=t[o],po[e]}}return""}const mo=fo("animationend"),ho=fo("transitionend"),go=!(!mo||!ho),bo=mo||"animationend",vo=ho||"transitionend";function yo(e,t){if(!e)return null;if("object"==typeof e){const n=t.replace(/-\w/g,e=>e[1].toUpperCase());return e[n]}return`${e}-${t}`}const xo=Te()?h.useLayoutEffect:h.useEffect,$o=[io,"start","active","end"],wo=[io,so];function Co(e){return"active"===e||"end"===e}const So=(e,t,n)=>{const[o,r]=(e=>{const t=h.useRef(!1),[n,o]=h.useState(e);return h.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||o(e)}]})("none"),[a,i]=(()=>{const e=h.useRef(null);function t(){Ft.cancel(e.current)}return h.useEffect(()=>()=>{t()},[]),[function n(o,r=2){t();const a=Ft(()=>{r<=1?o({isCanceled:()=>a!==e.current}):n(o,r-1)});e.current=a},t]})(),s=t?wo:$o;return xo(()=>{if("none"!==o&&"end"!==o){const e=s.indexOf(o),t=s[e+1],i=n(o);!1===i?r(t,!0):t&&a(e=>{function n(){e.isCanceled()||r(t,!0)}!0===i?n():Promise.resolve(i).then(n)})}},[e,o]),h.useEffect(()=>()=>{i()},[]),[function(){r(io,!0)},o]};function Eo(e,t,n,{motionEnter:o=!0,motionAppear:r=!0,motionLeave:a=!0,motionDeadline:i,motionLeaveImmediately:s,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:d,onAppearStart:u,onEnterStart:p,onLeaveStart:f,onAppearActive:m,onEnterActive:g,onLeaveActive:b,onAppearEnd:v,onEnterEnd:y,onLeaveEnd:x,onVisibleChanged:$}){const[w,C]=h.useState(),[S,E]=function(e){const[,t]=h.useReducer(e=>e+1,0),n=h.useRef(e);return[Oe(()=>n.current),Oe(e=>{n.current="function"==typeof e?e(n.current):e,t()})]}("none"),[k,N]=h.useState([null,null]),M=S(),R=(0,h.useRef)(!1),I=(0,h.useRef)(null);function _(){return n()}const P=(0,h.useRef)(!1);function z(){E("none"),N([null,null])}const O=Oe(e=>{const t=S();if("none"===t)return;const n=_();if(e&&!e.deadline&&e.target!==n)return;const o=P.current;let r;"appear"===t&&o?r=v?.(n,e):"enter"===t&&o?r=y?.(n,e):"leave"===t&&o&&(r=x?.(n,e)),o&&!1!==r&&z()}),[T]=(e=>{const t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(vo,e),t.removeEventListener(bo,e))}return h.useEffect(()=>()=>{n(t.current),t.current=null},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(vo,e),o.addEventListener(bo,e),t.current=o)},n]})(O),A=e=>{switch(e){case"appear":return{[io]:l,start:u,active:m};case"enter":return{[io]:c,start:p,active:g};case"leave":return{[io]:d,start:f,active:b};default:return{}}},L=h.useMemo(()=>A(M),[M]),[B,H]=So(M,!e,e=>{if(e===io){const e=L[io];return!!e&&e(_())}return e in L&&N([L[e]?.(_(),null)||null,e]),"active"===e&&"none"!==M&&(T(_()),i>0&&(clearTimeout(I.current),I.current=setTimeout(()=>{O({deadline:!0})},i))),e===so&&z(),!0}),j=Co(H);P.current=j;const D=(0,h.useRef)(null);xo(()=>{if(R.current&&D.current===t)return;C(t);const n=R.current;let i;R.current=!0,!n&&t&&r&&(i="appear"),n&&t&&o&&(i="enter"),(n&&!t&&a||!n&&s&&!t&&a)&&(i="leave");const l=A(i);i&&(e||l[io])?(E(i),B()):E("none"),D.current=t},[t]),(0,h.useEffect)(()=>{("appear"===M&&!r||"enter"===M&&!o||"leave"===M&&!a)&&E("none")},[r,o,a]),(0,h.useEffect)(()=>()=>{R.current=!1,clearTimeout(I.current)},[]);const q=h.useRef(!1);(0,h.useEffect)(()=>{w&&(q.current=!0),void 0!==w&&"none"===M&&((q.current||w)&&$?.(w),q.current=!0)},[w,M]);let W=k[0];L[io]&&"start"===H&&(W={transition:"none",...W});const F=k[1];return[S,H,W,w??t,!R.current&&"none"===M&&e&&r?"NONE":"start"!==H&&"active"!==H||F===H]}function ko(e){return e?.length<2}const No=function(e){let t=e;"object"==typeof e&&({transitionSupport:t}=e);const n=h.forwardRef((e,n)=>{const{visible:o=!0,removeOnLeave:r=!0,forceRender:a,children:i,motionName:s,leavedClassName:l,eventProps:c}=e,{motion:d}=h.useContext(ro),p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d),f=(0,h.useRef)();function m(){return ft(f.current)}const[g,b,v,y,x]=Eo(p,o,m,e),$=g(),w=h.useRef(y);y&&(w.current=!0);const C=h.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:m},inMotion:{enumerable:!0,get:()=>()=>"none"!==g()},enableMotion:{enumerable:!0,get:()=>()=>p}}),e},[]);h.useImperativeHandle(n,()=>C,[]);const S=h.useRef(0);x&&(S.current+=1);const E=h.useMemo(()=>{if("NONE"===x)return null;let e;const t={...c,visible:o};if(i)if("none"===$)e=y?i({...t},f):!r&&w.current&&l?i({...t,className:l},f):a||!r&&!l?i({...t,style:{display:"none"}},f):null;else{let n;b===io?n="prepare":Co(b)?n="active":"start"===b&&(n="start");const o=yo(s,`${$}-${n}`);e=i({...t,className:u(yo(s,$),{[o]:o&&n,[s]:"string"==typeof s}),style:v},f)}else e=null;return e},[S.current]);if(ko(i)&&(e=>et(e)&&Je(e))(E)){const e=tt(E);if(e!==f)return h.cloneElement(E,{ref:Ze(e,f)})}return E});return n.displayName="CSSMotion",n}(go),Mo="keep",Ro="remove",Io="removed";function _o(e){let t;return t=e&&"object"==typeof e&&"key"in e?e:{key:e},{...t,key:String(t.key)}}function Po(e=[]){return e.map(_o)}function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zo.apply(this,arguments)}const Oo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],To=function(e,t=No){class n extends h.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){const n=Po(e),o=function(e=[],t=[]){let n=[],o=0;const r=t.length,a=Po(e),i=Po(t);a.forEach(e=>{let t=!1;for(let a=o;a<r;a+=1){const r=i[a];if(r.key===e.key){o<a&&(n=n.concat(i.slice(o,a).map(e=>({...e,status:"add"}))),o=a),n.push({...r,status:Mo}),o+=1,t=!0;break}}t||n.push({...e,status:Ro})}),o<r&&(n=n.concat(i.slice(o).map(e=>({...e,status:"add"}))));const s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==Ro),n.forEach(t=>{t.key===e&&(t.status=Mo)})}),n}(t,n);return{keyEntities:o.filter(e=>{const n=t.find(({key:t})=>e.key===t);return!n||n.status!==Io||"remove"!==e.status})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key!==e?t:{...t,status:Io})}),()=>{const{keyEntities:e}=this.state;0===e.filter(({status:e})=>e!==Io).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:e}=this.state,{component:n,children:o,onVisibleChanged:r,onAllRemoved:a,...i}=this.props,s=n||h.Fragment,l={};return Oo.forEach(e=>{l[e]=i[e],delete i[e]}),delete i.keys,h.createElement(s,i,e.map(({status:e,...n},a)=>{const i="add"===e||"keep"===e;return h.createElement(t,zo({},l,{key:n.key,visible:i,eventProps:n,onVisibleChanged:e=>{r?.(e,{key:n.key}),e||this.removeKey(n.key)}}),ko(o)?e=>o({...e,index:a}):(e,t)=>o({...e,index:a},t))}))}}return n}(),Ao=No;function Lo(e){const{prefixCls:t,align:n,arrow:o,arrowPos:r}=e,{className:a,content:i,style:s}=o||{},{x:l=0,y:c=0}=r,d=h.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(!1!==n.autoArrow){const e=n.points[0],t=n.points[1],o=e[0],r=e[1],a=t[0],i=t[1];o!==a&&["t","b"].includes(o)?"t"===o?p.top=0:p.bottom=0:p.top=c,r!==i&&["l","r"].includes(r)?"l"===r?p.left=0:p.right=0:p.left=l}return h.createElement("div",{ref:d,className:u(`${t}-arrow`,a),style:{...p,...s}},i)}function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Bo.apply(this,arguments)}function Ho(e){const{prefixCls:t,open:n,zIndex:o,mask:r,motion:a,mobile:i}=e;return r?h.createElement(Ao,Bo({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>h.createElement("div",{style:{zIndex:o},className:u(`${t}-mask`,i&&`${t}-mobile-mask`,e)})):null}const jo=h.memo(({children:e})=>e,(e,t)=>t.cache),Do=jo;function qo(e,t,n,o,r,a,i,s){const l="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:l,bottom:l};if(!e&&(t||!n)){const{points:e}=o,t=o.dynamicInset||o._experimental?.dynamicInset,n=t&&"r"===e[0][1],d=t&&"b"===e[0][0];n?(c.right=r,c.left=l):(c.left=i,c.right=l),d?(c.bottom=a,c.top=l):(c.top=s,c.bottom=l)}return c}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wo.apply(this,arguments)}const Fo=h.forwardRef((e,t)=>{const{onEsc:n,popup:o,className:r,prefixCls:a,style:i,target:s,onVisibleChanged:l,open:c,keepDom:d,fresh:p,onClick:f,mask:m,arrow:g,arrowPos:b,align:v,motion:y,maskMotion:x,mobile:$,forceRender:w,getPopupContainer:C,autoDestroy:S,portal:E,children:k,zIndex:N,onMouseEnter:M,onMouseLeave:R,onPointerEnter:I,onPointerDownCapture:_,ready:P,offsetX:z,offsetY:O,offsetR:T,offsetB:A,onAlign:L,onPrepare:B,onResize:H,stretch:j,targetWidth:D,targetHeight:q}=e,W="function"==typeof o?o():o,F=c||d,G=!!$,[X,V,K]=h.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[m,x,y],[$,m,x,y]),U=C?.length>0,[Y,Z]=h.useState(!C||!U);He(()=>{!Y&&U&&s&&Z(!0)},[Y,U,s]);const Q=Oe((e,t)=>{H?.(e,t),L()}),J=qo(G,P,c,v,T,A,z,O);if(!Y)return null;const ee={};return j&&(j.includes("height")&&q?ee.height=q:j.includes("minHeight")&&q&&(ee.minHeight=q),j.includes("width")&&D?ee.width=D:j.includes("minWidth")&&D&&(ee.minWidth=D)),c||(ee.pointerEvents="none"),h.createElement(E,{open:w||F,getContainer:C&&(()=>C(s)),autoDestroy:S,onEsc:n},h.createElement(Ho,{prefixCls:a,open:c,zIndex:N,mask:X,motion:V,mobile:G}),h.createElement(Nn,{onResize:Q,disabled:!c},e=>h.createElement(Ao,Wo({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${a}-hidden`},K,{onAppearPrepare:B,onEnterPrepare:B,visible:c,onVisibleChanged:e=>{y?.onVisibleChanged?.(e),l(e)}}),({className:n,style:o},s)=>{const l=u(a,n,r,{[`${a}-mobile`]:G});return h.createElement("div",{ref:Ze(e,t,s),className:l,style:{"--arrow-x":`${b.x||0}px`,"--arrow-y":`${b.y||0}px`,...J,...ee,...o,boxSizing:"border-box",zIndex:N,...i},onMouseEnter:M,onMouseLeave:R,onPointerEnter:I,onClick:f,onPointerDownCapture:_},g&&h.createElement(Lo,{prefixCls:a,arrow:g,arrowPos:b,align:v}),h.createElement(Do,{cache:!c&&!p},W))})),k)}),Go=Fo,Xo=h.createContext(null),Vo=h.createContext(null);function Ko(e){return e?Array.isArray(e)?e:[e]:[]}function Uo(e=[],t=[],n){const o=(e,t)=>e[t]||"";return n?o(e,0)===o(t,0):o(e,0)===o(t,0)&&o(e,1)===o(t,1)}function Yo(e,t,n,o){const{points:r}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){const i=a[n];if(Uo(e[i]?.points,r,o))return`${t}-placement-${i}`}return""}function Zo(e){return e.ownerDocument.defaultView}function Qo(e){const t=[];let n=e?.parentElement;const o=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:r,overflow:a}=Zo(n).getComputedStyle(n);[e,r,a].some(e=>o.includes(e))&&t.push(n),n=n.parentElement}return t}function Jo(e,t=1){return Number.isNaN(e)?t:e}function er(e){return Jo(parseFloat(e),0)}function tr(e,t){const n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:o,borderTopWidth:r,borderBottomWidth:a,borderLeftWidth:i,borderRightWidth:s}=Zo(e).getComputedStyle(e),l=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:d,offsetWidth:u,clientWidth:p}=e,f=er(r),m=er(a),h=er(i),g=er(s),b=Jo(Math.round(l.width/u*1e3)/1e3),v=Jo(Math.round(l.height/c*1e3)/1e3),y=(u-p-h-g)*b,x=(c-d-f-m)*v,$=f*v,w=m*v,C=h*b,S=g*b;let E=0,k=0;if("clip"===t){const e=er(o);E=e*b,k=e*v}const N=l.x+C-E,M=l.y+$-k,R=N+l.width+2*E-C-S-y,I=M+l.height+2*k-$-w-x;n.left=Math.max(n.left,N),n.top=Math.max(n.top,M),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,I)}),n}function nr(e,t=0){const n=`${t}`,o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function or(e,t){const[n,o]=t||[];return[nr(e.width,n),nr(e.height,o)]}function rr(e=""){return[e[0],e[1]]}function ar(e,t){const n=t[0],o=t[1];let r,a;return a="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,{x:r,y:a}}function ir(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function sr(e){return e.join("")}function lr(e,t,n,o,r,a,i,s){const[l,c]=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),d=h.useRef(0),u=h.useMemo(()=>!t||s?[]:Qo(t),[t]),p=h.useRef({});e||(p.current={});const f=Oe(()=>{if(t&&n&&e&&!s){const l=t,d=l.ownerDocument,f=Zo(l),{position:m}=f.getComputedStyle(l),h=l.style.left,g=l.style.top,b=l.style.right,v=l.style.bottom,y=l.style.overflow,x=l.style.overflowX,$=l.style.overflowY,w={...r[o],...a},C=d.createElement("div");let S;if(l.parentElement?.appendChild(C),C.style.left=`${l.offsetLeft}px`,C.style.top=`${l.offsetTop}px`,C.style.position=m,C.style.height=`${l.offsetHeight}px`,C.style.width=`${l.offsetWidth}px`,l.style.left="0",l.style.top="0",l.style.right="auto",l.style.bottom="auto",l.style.overflow="hidden",Array.isArray(n))S={x:n[0],y:n[1],width:0,height:0};else{const Ue=n.getBoundingClientRect();Ue.x=Ue.x??Ue.left,Ue.y=Ue.y??Ue.top,S={x:Ue.x,y:Ue.y,width:Ue.width,height:Ue.height}}const E=l.getBoundingClientRect(),{height:k,width:N}=f.getComputedStyle(l);E.x=E.x??E.left,E.y=E.y??E.top;const{clientWidth:M,clientHeight:R,scrollWidth:I,scrollHeight:_,scrollTop:P,scrollLeft:z}=d.documentElement,O=E.height,T=E.width,A=S.height,L=S.width,B={left:0,top:0,right:M,bottom:R},H={left:-z,top:-P,right:I-z,bottom:_-P};let{htmlRegion:j}=w;const D="visible",q="visibleFirst";"scroll"!==j&&j!==q&&(j=D);const W=j===q,F=tr(H,u),G=tr(B,u),X=j===D?G:F,V=W?G:X;l.style.left="auto",l.style.top="auto",l.style.right="0",l.style.bottom="0";const K=l.getBoundingClientRect();l.style.left=h,l.style.top=g,l.style.right=b,l.style.bottom=v,l.style.overflow=y,l.style.overflowX=x,l.style.overflowY=$,l.parentElement?.removeChild(C);const U=Jo(Math.round(T/parseFloat(N)*1e3)/1e3),Y=Jo(Math.round(O/parseFloat(k)*1e3)/1e3);if(0===U||0===Y||pt(n)&&!mt(n))return;const{offset:Z,targetOffset:Q}=w;let[J,ee]=or(E,Z);const[te,ne]=or(S,Q);S.x-=te,S.y-=ne;const[oe,re]=w.points||[],ae=rr(re),ie=rr(oe),se=ar(S,ae),le=ar(E,ie),ce={...w};let de=[ie,ae],ue=se.x-le.x+J,pe=se.y-le.y+ee;function fe(e,t,n=X){const o=E.x+e,r=E.y+t,a=o+T,i=r+O,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(a,n.right),d=Math.min(i,n.bottom);return Math.max(0,(c-s)*(d-l))}const me=fe(ue,pe),he=fe(ue,pe,G),ge=ar(S,["t","l"]),be=ar(E,["t","l"]),ve=ar(S,["b","r"]),ye=ar(E,["b","r"]),xe=w.overflow||{},{adjustX:$e,adjustY:we,shiftX:Ce,shiftY:Se}=xe,Ee=e=>"boolean"==typeof e?e:e>=0;let ke,Ne,Me,Re;function Ie(){ke=E.y+pe,Ne=ke+O,Me=E.x+ue,Re=Me+T}Ie();const _e=Ee(we),Pe=ie[0]===ae[0];if(_e&&"t"===ie[0]&&(Ne>V.bottom||p.current.bt)){let Ye=pe;Pe?Ye-=O-A:Ye=ge.y-ye.y-ee;const Ze=fe(ue,Ye),Qe=fe(ue,Ye,G);Ze>me||Ze===me&&(!W||Qe>=he)?(p.current.bt=!0,pe=Ye,ee=-ee,de=[ir(de[0],0),ir(de[1],0)]):p.current.bt=!1}if(_e&&"b"===ie[0]&&(ke<V.top||p.current.tb)){let Je=pe;Pe?Je+=O-A:Je=ve.y-be.y-ee;const et=fe(ue,Je),tt=fe(ue,Je,G);et>me||et===me&&(!W||tt>=he)?(p.current.tb=!0,pe=Je,ee=-ee,de=[ir(de[0],0),ir(de[1],0)]):p.current.tb=!1}const ze=Ee($e),Oe=ie[1]===ae[1];if(ze&&"l"===ie[1]&&(Re>V.right||p.current.rl)){let nt=ue;Oe?nt-=T-L:nt=ge.x-ye.x-J;const ot=fe(nt,pe),rt=fe(nt,pe,G);ot>me||ot===me&&(!W||rt>=he)?(p.current.rl=!0,ue=nt,J=-J,de=[ir(de[0],1),ir(de[1],1)]):p.current.rl=!1}if(ze&&"r"===ie[1]&&(Me<V.left||p.current.lr)){let at=ue;Oe?at+=T-L:at=ve.x-be.x-J;const it=fe(at,pe),st=fe(at,pe,G);it>me||it===me&&(!W||st>=he)?(p.current.lr=!0,ue=at,J=-J,de=[ir(de[0],1),ir(de[1],1)]):p.current.lr=!1}ce.points=[sr(de[0]),sr(de[1])],Ie();const Te=!0===Ce?0:Ce;"number"==typeof Te&&(Me<G.left&&(ue-=Me-G.left-J,S.x+L<G.left+Te&&(ue+=S.x-G.left+L-Te)),Re>G.right&&(ue-=Re-G.right-J,S.x>G.right-Te&&(ue+=S.x-G.right+Te)));const Ae=!0===Se?0:Se;"number"==typeof Ae&&(ke<G.top&&(pe-=ke-G.top-ee,S.y+A<G.top+Ae&&(pe+=S.y-G.top+A-Ae)),Ne>G.bottom&&(pe-=Ne-G.bottom-ee,S.y>G.bottom-Ae&&(pe+=S.y-G.bottom+Ae)));const Le=E.x+ue,Be=Le+T,He=E.y+pe,je=He+O,De=S.x,qe=De+L,We=S.y,Fe=We+A,Ge=(Math.max(Le,De)+Math.min(Be,qe))/2-Le,Xe=(Math.max(He,We)+Math.min(je,Fe))/2-He;i?.(t,ce);let Ve=K.right-E.x-(ue+E.width),Ke=K.bottom-E.y-(pe+E.height);1===U&&(ue=Math.floor(ue),Ve=Math.floor(Ve)),1===Y&&(pe=Math.floor(pe),Ke=Math.floor(Ke)),c({ready:!0,offsetX:ue/U,offsetY:pe/Y,offsetR:Ve/U,offsetB:Ke/Y,arrowX:Ge/U,arrowY:Xe/Y,scaleX:U,scaleY:Y,align:ce})}}),m=()=>{c(e=>({...e,ready:!1}))};return He(m,[o]),He(()=>{e||m()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,()=>{d.current+=1;const e=d.current;Promise.resolve().then(()=>{d.current===e&&f()})}]}function cr(){const e=h.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return h.useEffect(()=>()=>{t()},[]),(n,o)=>{t(),0===o?n():e.current=setTimeout(()=>{n()},1e3*o)}}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)}const ur=e=>{const{prefixCls:t,isMobile:n,ready:o,open:r,align:a,offsetR:i,offsetB:s,offsetX:l,offsetY:c,arrowPos:d,popupSize:p,motion:f,uniqueContainerClassName:m,uniqueContainerStyle:h}=e,b=`${t}-unique-container`,[v,y]=g().useState(!1),x=qo(n,o,r,a,i,s,l,c),$=g().useRef(x);o&&($.current=x);const w={};return p&&(w.width=p.width,w.height=p.height),g().createElement(Ao,dr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${b}-hidden`},f,{visible:r,onVisibleChanged:e=>{y(e)}}),({className:e,style:t})=>{const n=u(b,e,m,{[`${b}-visible`]:v});return g().createElement("div",{className:n,style:{"--arrow-x":`${d?.x||0}px`,"--arrow-y":`${d?.y||0}px`,...$.current,...w,...t,...h}})})},pr=({children:e,postTriggerProps:t})=>{const[n,o,r,a]=function(){const[e,t]=g().useState(null),[n,o]=g().useState(!1),[r,a]=g().useState(!1),i=g().useRef(null),s=Oe(e=>{!1===e?(i.current=null,o(!1)):r&&n?i.current=e:(o(!0),t(e),i.current=null,n||a(!0))}),l=Oe(e=>{e?(a(!1),i.current&&(t(i.current),i.current=null)):(a(!1),i.current=null)});return[s,n,e,l]}(),i=h.useMemo(()=>r&&t?t(r):r,[r,t]),[s,l]=h.useState(null),[c,d]=h.useState(null),p=h.useRef(null),f=Oe(e=>{p.current=e,pt(e)&&s!==e&&l(e)}),m=h.useRef(null),b=cr(),v=Oe((e,t)=>{m.current=t,b(()=>{n(e)},e.delay)}),y=e=>{b(()=>{m.current?.()||n(!1)},e)},x=Oe(e=>{a(e)}),[$,w,C,S,E,k,N,,,M,R]=lr(o,s,i?.target,i?.popupPlacement,i?.builtinPlacements||{},i?.popupAlign,void 0,!1),I=h.useMemo(()=>i?u(Yo(i.builtinPlacements||{},i.prefixCls||"",M,!1),i.getPopupClassNameFromAlign?.(M)):"",[M,i?.getPopupClassNameFromAlign,i?.builtinPlacements,i?.prefixCls]),_=h.useMemo(()=>({show:v,hide:y}),[]);h.useEffect(()=>{R()},[i?.target]);const P=Oe(()=>(R(),Promise.resolve())),z=h.useRef({}),O=h.useContext(Xo),T=h.useMemo(()=>({registerSubPopup:(e,t)=>{z.current[e]=t,O?.registerSubPopup(e,t)}}),[O]),A=i?.prefixCls;return h.createElement(Vo.Provider,{value:_},e,i&&h.createElement(Xo.Provider,{value:T},h.createElement(Go,{ref:f,portal:oo,onEsc:i.onEsc,prefixCls:A,popup:i.popup,className:u(i.popupClassName,I,`${A}-unique-controlled`),style:i.popupStyle,target:i.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:x,ready:$,offsetX:w,offsetY:C,offsetR:S,offsetB:E,onAlign:R,onPrepare:P,onResize:e=>d({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:k,y:N},align:M,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},h.createElement(ur,{prefixCls:A,isMobile:!1,ready:$,open:o,align:M,offsetR:S,offsetB:E,offsetX:w,offsetY:C,arrowPos:{x:k,y:N},popupSize:c,motion:i.popupMotion,uniqueContainerClassName:u(i.uniqueContainerClassName,I),uniqueContainerStyle:i.uniqueContainerStyle}))))},fr=function(e=oo){const t=h.forwardRef((t,n)=>{const{prefixCls:o="rc-trigger-popup",children:r,action:a="hover",showAction:i,hideAction:l,popupVisible:c,defaultPopupVisible:d,onOpenChange:p,afterOpenChange:f,onPopupVisibleChange:m,afterPopupVisibleChange:g,mouseEnterDelay:b,mouseLeaveDelay:v=.1,focusDelay:y,blurDelay:x,mask:$,maskClosable:w=!0,getPopupContainer:C,forceRender:S,autoDestroy:E,popup:k,popupClassName:N,uniqueContainerClassName:M,uniqueContainerStyle:R,popupStyle:I,popupPlacement:_,builtinPlacements:P={},popupAlign:z,zIndex:O,stretch:T,getPopupClassNameFromAlign:A,fresh:L,unique:B,alignPoint:H,onPopupClick:j,onPopupAlign:D,arrow:q,popupMotion:W,maskMotion:F,mobile:G,...X}=t,V=E||!1,K=void 0===c,U=!!G,Y=h.useRef({}),Z=h.useContext(Xo),Q=h.useMemo(()=>({registerSubPopup:(e,t)=>{Y.current[e]=t,Z?.registerSubPopup(e,t)}}),[Z]),J=h.useContext(Vo),ee=We(),[te,ne]=h.useState(null),oe=h.useRef(null),re=Oe(e=>{oe.current=e,pt(e)&&te!==e&&ne(e),Z?.registerSubPopup(ee,e)}),[ae,ie]=h.useState(null),se=h.useRef(null),le=Oe(e=>{const t=ft(e);pt(t)&&ae!==t&&(ie(t),se.current=t)}),ce={},de=Oe(e=>{const t=ae;return t?.contains(e)||vt(t)?.host===e||e===t||te?.contains(e)||vt(te)?.host===e||e===te||Object.values(Y.current).some(t=>t?.contains(e)||e===t)}),ue=q?{...!0!==q?q:{}}:null,[pe,fe]=je(d||!1,c),me=pe||!1,he=h.useMemo(()=>{const e="function"==typeof r?r({open:me}):r;return h.Children.only(e)},[r,me]),ge=he?.props||{},be=Oe(()=>me),ve=Oe((e=0)=>({popup:k,target:ae,delay:e,prefixCls:o,popupClassName:N,uniqueContainerClassName:M,uniqueContainerStyle:R,popupStyle:I,popupPlacement:_,builtinPlacements:P,popupAlign:z,zIndex:O,mask:$,maskClosable:w,popupMotion:W,maskMotion:F,arrow:ue,getPopupContainer:C,getPopupClassNameFromAlign:A,id:ee,onEsc:Ce}));He(()=>{J&&B&&ae&&!K&&!Z&&(me?J.show(ve(b),be):J.hide(v))},[me,ae]);const ye=h.useRef(me);ye.current=me;const xe=Oe(e=>{(0,s.flushSync)(()=>{me!==e&&(fe(e),p?.(e),m?.(e))})}),$e=cr(),we=(e,t=0)=>{void 0===c&&J&&B&&K&&!Z?e?J.show(ve(t),be):J.hide(t):$e(()=>{xe(e)},t)};function Ce({top:e}){e&&we(!1)}const[Se,Ee]=h.useState(!1);He(e=>{e&&!me||Ee(!0)},[me]);const[ke,Ne]=h.useState(null),[Me,Re]=h.useState(null),Ie=e=>{Re([e.clientX,e.clientY])},[_e,Pe,ze,Te,Ae,Le,Be,De,qe,Fe,Ge]=lr(me,te,H&&null!==Me?Me:ae,_,P,z,D,U),[Xe,Ve]=function(e,t,n){return h.useMemo(()=>{const o=Ko(t??e),r=Ko(n??e),a=new Set(o),i=new Set(r);return a.has("hover")&&!a.has("click")&&a.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[a,i]},[e,t,n])}(a,i,l),Ke=Xe.has("click"),Ue=Ve.has("click")||Ve.has("contextMenu"),Ye=Oe(()=>{Se||Ge()});!function(e,t,n,o){He(()=>{if(e&&t&&n){const r=n,a=Qo(t),i=Qo(r),s=Zo(r),l=new Set([s,...a,...i]);function c(){o(),ye.current&&H&&Ue&&we(!1)}return l.forEach(e=>{e.addEventListener("scroll",c,{passive:!0})}),s.addEventListener("resize",c,{passive:!0}),o(),()=>{l.forEach(e=>{e.removeEventListener("scroll",c),s.removeEventListener("resize",c)})}}},[e,t,n])}(me,ae,te,Ye),He(()=>{Ye()},[Me,_]),He(()=>{me&&!P?.[_]&&Ye()},[JSON.stringify(z)]);const Ze=h.useMemo(()=>u(Yo(P,o,Fe,H),A?.(Fe)),[Fe,A,P,o,H]);h.useImperativeHandle(n,()=>({nativeElement:se.current,popupElement:oe.current,forceAlign:Ye}));const[Je,et]=h.useState(0),[nt,ot]=h.useState(0),rt=()=>{if(T&&ae){const e=ae.getBoundingClientRect();et(e.width),ot(e.height)}};function at(e,t,n,o,r){ce[e]=(a,...i)=>{r&&r()||(o?.(a),we(t,n)),ge[e]?.(a,...i)}}He(()=>{ke&&(Ge(),ke(),Ne(null))},[ke]);const it=Xe.has("touch"),st=Ve.has("touch"),lt=h.useRef(!1);(it||st)&&(ce.onTouchStart=(...e)=>{lt.current=!0,ye.current&&st?we(!1):!ye.current&&it&&we(!0),ge.onTouchStart?.(...e)}),(Ke||Ue)&&(ce.onClick=(e,...t)=>{ye.current&&Ue?we(!1):!ye.current&&Ke&&(Ie(e),we(!0)),ge.onClick?.(e,...t),lt.current=!1});const ct=function(e,t,n,o,r,a,i,s){const l=h.useRef(e);l.current=e;const c=h.useRef(!1);return h.useEffect(()=>{if(t&&o&&(!r||a)){const e=()=>{c.current=!1},t=e=>{!l.current||i(e.composedPath?.()?.[0]||e.target)||c.current||s(!1)},r=Zo(o);r.addEventListener("pointerdown",e,!0),r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0);const a=vt(n);return a&&(a.addEventListener("mousedown",t,!0),a.addEventListener("contextmenu",t,!0)),()=>{r.removeEventListener("pointerdown",e,!0),r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0),a&&(a.removeEventListener("mousedown",t,!0),a.removeEventListener("contextmenu",t,!0))}}},[t,n,o,r,a]),function(){c.current=!0}}(me,Ue||st,ae,te,$,w,de,we),dt=Xe.has("hover"),ut=Ve.has("hover");let mt,ht;const gt=()=>lt.current;if(dt){const e=e=>{Ie(e)};at("onMouseEnter",!0,b,e,gt),at("onPointerEnter",!0,b,e,gt),mt=e=>{(me||Se)&&te?.contains(e.target)&&we(!0,b)},H&&(ce.onMouseMove=e=>{ge.onMouseMove?.(e)})}ut&&(at("onMouseLeave",!1,v,void 0,gt),at("onPointerLeave",!1,v,void 0,gt),ht=()=>{we(!1,v)}),Xe.has("focus")&&at("onFocus",!0,y),Ve.has("focus")&&at("onBlur",!1,x),Xe.has("contextMenu")&&(ce.onContextMenu=(e,...t)=>{ye.current&&Ve.has("contextMenu")?we(!1):(Ie(e),we(!0)),e.preventDefault(),ge.onContextMenu?.(e,...t)});const bt=h.useRef(!1);bt.current||=S||me||Se;const yt={...ge,...ce},xt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{X[e]&&(xt[e]=(...t)=>{yt[e]?.(...t),X[e](...t)})});const $t={x:Le,y:Be};$n(me,ae,()=>{rt(),Ye()});const wt=Qe(le,tt(he)),Ct=h.cloneElement(he,{...yt,...xt,ref:wt});return h.createElement(h.Fragment,null,Ct,bt.current&&(!J||!B)&&h.createElement(Xo.Provider,{value:Q},h.createElement(Go,{portal:e,ref:re,prefixCls:o,popup:k,className:u(N,!U&&Ze),style:I,target:ae,onMouseEnter:mt,onMouseLeave:ht,onPointerEnter:mt,zIndex:O,open:me,keepDom:Se,fresh:L,onClick:j,onPointerDownCapture:ct,mask:$,motion:W,maskMotion:F,onVisibleChanged:e=>{Ee(!1),Ge(),f?.(e),g?.(e)},onPrepare:()=>new Promise(e=>{rt(),Ne(()=>e)}),forceRender:S,autoDestroy:V,getPopupContainer:C,onEsc:Ce,align:Fe,arrow:ue,arrowPos:$t,ready:_e,offsetX:Pe,offsetY:ze,offsetR:Te,offsetB:Ae,onAlign:Ye,stretch:T,targetWidth:Je/De,targetHeight:nt/qe,mobile:G})))});return t}(oo),mr={shiftX:64,adjustY:1},hr={adjustX:1,shiftY:!0},gr=[0,0],br={left:{points:["cr","cl"],overflow:hr,offset:[-4,0],targetOffset:gr},right:{points:["cl","cr"],overflow:hr,offset:[4,0],targetOffset:gr},top:{points:["bc","tc"],overflow:mr,offset:[0,-4],targetOffset:gr},bottom:{points:["tc","bc"],overflow:mr,offset:[0,4],targetOffset:gr},topLeft:{points:["bl","tl"],overflow:mr,offset:[0,-4],targetOffset:gr},leftTop:{points:["tr","tl"],overflow:hr,offset:[-4,0],targetOffset:gr},topRight:{points:["br","tr"],overflow:mr,offset:[0,-4],targetOffset:gr},rightTop:{points:["tl","tr"],overflow:hr,offset:[4,0],targetOffset:gr},bottomRight:{points:["tr","br"],overflow:mr,offset:[0,4],targetOffset:gr},rightBottom:{points:["bl","br"],overflow:hr,offset:[4,0],targetOffset:gr},bottomLeft:{points:["tl","bl"],overflow:mr,offset:[0,4],targetOffset:gr},leftBottom:{points:["br","bl"],overflow:hr,offset:[-4,0],targetOffset:gr}};function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vr.apply(this,arguments)}const yr=h.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:r=.1,prefixCls:a="rc-tooltip",children:i,onVisibleChange:s,afterVisibleChange:l,motion:c,placement:d="right",align:p={},destroyOnHidden:f=!1,defaultVisible:m,getTooltipContainer:g,arrowContent:b,overlay:v,id:y,showArrow:x=!0,classNames:$,styles:w,...C}=e,S=We(y),E=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,()=>E.current);const k={...C};"visible"in e&&(k.popupVisible=e.visible);const N=h.useMemo(()=>{if(!x)return!1;const e=!0===x?{}:x;return{...e,className:u(e.className,$?.arrow),style:{...e.style,...w?.arrow},content:e.content??b}},[x,$?.arrow,w?.arrow,b]),M=({open:e})=>{const t=h.Children.only(i),n={"aria-describedby":v&&e?S:void 0};return h.cloneElement(t,n)};return h.createElement(fr,vr({popupClassName:$?.root,prefixCls:a,popup:h.createElement(Fn,{key:"content",prefixCls:a,id:S,classNames:$,styles:w},v),action:n,builtinPlacements:br,popupPlacement:d,ref:E,popupAlign:p,getPopupContainer:g,onOpenChange:s,afterOpenChange:l,popupMotion:c,defaultPopupVisible:m,autoDestroy:f,mouseLeaveDelay:r,popupStyle:w?.root,mouseEnterDelay:o,arrow:N,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:w?.uniqueContainer},k),M)}),xr=yr,$r=h.createContext({}),wr=({children:e,status:t,override:n})=>{const o=h.useContext($r),r=h.useMemo(()=>{const e={...o};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,o]);return h.createElement($r.Provider,{value:r},e)},Cr=h.createContext(void 0),Sr=e=>"horizontal"===e||"vertical"===e,Er=(e,t,n)=>(0,h.useMemo)(()=>{let o;return o=Sr(e)?e:"boolean"==typeof t?t?"vertical":"horizontal":Sr(n)?n:"horizontal",[o,"vertical"===o]},[n,e,t]),kr="anticon",Nr=["outlined","borderless","filled","underlined"],Mr=h.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:kr}),{Consumer:Rr}=Mr,Ir={};function _r(e){const t=h.useContext(Mr),{getPrefixCls:n,direction:o,getPopupContainer:r,renderEmpty:a}=t,i=t[e];return{classNames:Ir,styles:Ir,...i,getPrefixCls:n,direction:o,getPopupContainer:r,renderEmpty:a}}const Pr=h.createContext(void 0),zr=({children:e,size:t})=>{const n=h.useContext(Pr);return h.createElement(Pr.Provider,{value:t||n},e)},Or=Pr,Tr=e=>{const t=g().useContext(Or);return g().useMemo(()=>e?Pn(e)?e??t:On(e)?e(t):t:t,[e,t])};function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=a.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e){var t=function(e){if("object"!=Ar(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ar(t)?t:t+""}function Hr(e,t,n){return(t=Br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach(function(t){Hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const qr=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Wr(e){return e.join("%")}let Fr=0;const Gr=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Wr(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Wr(e),t)}opUpdate(e,t){const n=t(this.cache.get(e));null===n?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,Fr),Fr+=1)}},Xr="data-token-hash",Vr="data-css-hash",Kr="__cssinjs_instance__";const Ur=h.createContext({hashPriority:"low",cache:function(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Vr}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Kr]||=e,t[Kr]===e&&document.head.insertBefore(t,n)});const o={};Array.from(document.querySelectorAll(`style[${Vr}]`)).forEach(t=>{const n=t.getAttribute(Vr);o[n]?t[Kr]===e&&t.parentNode?.removeChild(t):o[n]=!0})}return new Gr(e)}(),defaultCache:!0,autoPrefix:!1}),Yr=Ur;new RegExp("CALC_UNIT","g");class Zr{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>Zr.MAX_CACHE_SIZE+Zr.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach((o,r)=>{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(e,t){const n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];const o=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}let Qr=0;class Jr{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Qr,0===e.length&&e.length,Qr+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const ea=new Zr;function ta(e){const t=Array.isArray(e)?e:[e];return ea.has(t)||ea.set(t,new Jr(t)),ea.get(t)}const na=new WeakMap,oa={},ra=new WeakMap;function aa(e){let t=ra.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,t+=o instanceof Jr?o.id:o&&"object"==typeof o?aa(o):o}),t=qr(t),ra.set(e,t)),t}`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");const ia=Te();function sa(e){return"number"==typeof e?`${e}px`:e}function la(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const o=`.${t}`;return"low"===n?`:where(${o})`:o}function ca(e,t){const n="function"==typeof t?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const da=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),ua=(e,t,n)=>{const{hashCls:o,hashPriority:r="low",scope:a}=n||{};if(!Object.keys(e).length)return"";const i=`${la({hashCls:o,hashPriority:r})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${i}.${e}`).join(", "):i}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`},pa=(e,t,n)=>{const{hashCls:o,hashPriority:r="low",prefix:a,unitless:i,ignore:s,preserve:l}=n||{},c={},d={};return Object.entries(e).forEach(([e,t])=>{if(l?.[e])d[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!s?.[e]){const n=da(e,a);c[n]="number"!=typeof t||i?.[e]?String(t):`${t}px`,d[e]=`var(${n})`}}),[d,ua(c,t,{scope:n?.scope,hashCls:o,hashPriority:r})]},fa=new Map;function ma(e,t,n,o,r){const{cache:a}=h.useContext(Yr),i=Wr([e,...t]),s=e=>{a.opUpdate(i,t=>{const[o=0,r]=t||[void 0,void 0],a=[o,r||n()];return e?e(a):a})};h.useMemo(()=>{s()},[i]);const l=a.opGet(i)[1];return(0,h.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),fa.has(i)||(r?.(l),fa.set(i,!0),Promise.resolve().then(()=>{fa.delete(i)})),()=>{a.opUpdate(i,e=>{const[t=0,n]=e||[];return 0==t-1?(o?.(n,!1),fa.delete(i),null):[t-1,n]})}),[i]),l}const ha={},ga=new Map;function ba(e,t,n){const{cache:{instanceId:o},container:r,hashPriority:a}=(0,h.useContext)(Yr),{salt:i="",override:s=ha,formatToken:l,getComputedToken:c,cssVar:d,nonce:u}=n,p=function(e,n){let o=na;for(let e=0;e<n.length;e+=1){const t=n[e];o.has(t)||o.set(t,new WeakMap),o=o.get(t)}return o.has(oa)||o.set(oa,Object.assign({},...t)),o.get(oa)}(0,t),f=aa(p),m=aa(s),g=aa(d),b=ma("token",[i,e.id,f,m,g],()=>{const t=c?c(p,s,e):((e,t,n,o)=>{let r={...n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(p,s,e,l),n={...t},o=`${i}_${d.prefix}`,r=qr(o),u=`css-${r}`;n._tokenKey=function(e,t){return qr(`${t}_${aa(e)}`)}(n,o);const[f,m]=pa(t,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:a,hashCls:d.hashed?u:void 0});var h;return f._hashId=r,h=d.key,ga.set(h,(ga.get(h)||0)+1),[f,u,n,m,d.key]},([,,,,e])=>{!function(e,t){ga.set(e,(ga.get(e)||0)-1);const n=new Set;ga.forEach((e,t)=>{e<=0&&n.add(t)}),ga.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${Xr}="${e}"]`).forEach(e=>{e[Kr]===t&&e.parentNode?.removeChild(e)})}(e,t),ga.delete(e)})}(e,o)},([,,,e,t])=>{if(!e)return;let n={mark:Vr,prepend:"queue",attachTo:r,priority:-999};n=ca(n,u);const a=ut(e,qr(`css-var-${t}`),n);a[Kr]=o,a.setAttribute(Xr,t)});return b}const va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ya="-ms-",xa="-moz-",$a="-webkit-",wa="comm",Ca="rule",Sa="decl",Ea="@keyframes",ka=Math.abs,Na=String.fromCharCode,Ma=Object.assign;function Ra(e){return e.trim()}function Ia(e,t){return(e=t.exec(e))?e[0]:e}function _a(e,t,n){return e.replace(t,n)}function Pa(e,t){return e.indexOf(t)}function za(e,t){return 0|e.charCodeAt(t)}function Oa(e,t,n){return e.slice(t,n)}function Ta(e){return e.length}function Aa(e){return e.length}function La(e,t){return t.push(e),e}function Ba(e,t){return e.filter(function(e){return!Ia(e,t)})}function Ha(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function ja(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Sa:return e.return=e.return||e.value;case wa:return"";case Ea:return e.return=e.value+"{"+Ha(e.children,o)+"}";case Ca:if(!Ta(e.value=e.props.join(",")))return""}return Ta(n=Ha(e.children,o))?e.return=e.value+"{"+n+"}":""}var Da=1,qa=1,Wa=0,Fa=0,Ga=0,Xa="";function Va(e,t,n,o,r,a,i,s){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:Da,column:qa,length:i,return:"",siblings:s}}function Ka(e,t){return Ma(Va("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ua(e){for(;e.root;)e=Ka(e.root,{children:[e]});La(e,e.siblings)}function Ya(){return Ga=Fa>0?za(Xa,--Fa):0,qa--,10===Ga&&(qa=1,Da--),Ga}function Za(){return Ga=Fa<Wa?za(Xa,Fa++):0,qa++,10===Ga&&(qa=1,Da++),Ga}function Qa(){return za(Xa,Fa)}function Ja(){return Fa}function ei(e,t){return Oa(Xa,e,t)}function ti(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ni(e){return Ra(ei(Fa-1,ai(91===e?e+2:40===e?e+1:e)))}function oi(e){for(;(Ga=Qa())&&Ga<33;)Za();return ti(e)>2||ti(Ga)>3?"":" "}function ri(e,t){for(;--t&&Za()&&!(Ga<48||Ga>102||Ga>57&&Ga<65||Ga>70&&Ga<97););return ei(e,Ja()+(t<6&&32==Qa()&&32==Za()))}function ai(e){for(;Za();)switch(Ga){case e:return Fa;case 34:case 39:34!==e&&39!==e&&ai(Ga);break;case 40:41===e&&ai(e);break;case 92:Za()}return Fa}function ii(e,t){for(;Za()&&e+Ga!==57&&(e+Ga!==84||47!==Qa()););return"/*"+ei(t,Fa-1)+"*"+Na(47===e?e:Za())}function si(e){for(;!ti(Qa());)Za();return ei(e,Fa)}function li(e){return function(e){return Xa="",e}(ci("",null,null,null,[""],e=function(e){return Da=qa=1,Wa=Ta(Xa=e),Fa=0,[]}(e),0,[0],e))}function ci(e,t,n,o,r,a,i,s,l){for(var c=0,d=0,u=i,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y=0,x="",$=r,w=a,C=o,S=x;g;)switch(m=y,y=Za()){case 40:108!=m&&58==za(S,u-1)?(v++,S+="("):S+=ni(y);break;case 41:v--,S+=")";break;case 34:case 39:case 91:S+=ni(y);break;case 9:case 10:case 13:case 32:if(v>0){S+=Na(y);break}S+=oi(m);break;case 92:S+=ri(Ja()-1,7);continue;case 47:switch(Qa()){case 42:case 47:La(ui(ii(Za(),Ja()),t,n,l),l),5!=ti(m||1)&&5!=ti(Qa()||1)||!Ta(S)||" "===Oa(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*h:s[c++]=Ta(S)*b;case 125*h:case 59:case 0:if(v>0&&y){S+=Na(y);break}switch(y){case 0:case 125:g=0;case 59+d:-1==b&&(S=_a(S,/\f/g,"")),f>0&&(Ta(S)-u||0===h)&&La(f>32?pi(S+";",o,n,u-1,l):pi(_a(S," ","")+";",o,n,u-2,l),l);break;case 59:S+=";";default:if(La(C=di(S,t,n,c,d,r,s,x,$=[],w=[],u,a),a),123===y)if(0===d)ci(S,t,C,C,$,a,u,s,w);else{switch(p){case 99:if(110===za(S,3))break;case 108:if(97===za(S,2))break;default:d=0;case 100:case 109:case 115:}d?ci(e,C,C,o&&La(di(e,C,C,0,0,r,s,x,r,$=[],u,w),w),r,w,u,s,o?$:w):ci(S,C,C,C,[""],w,0,s,w)}}c=d=f=0,h=b=1,x=S="",u=i;break;case 58:u=1+Ta(S),f=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==Ya())continue;switch(S+=Na(y),y*h){case 38:b=d>0?1:(S+="\f",-1);break;case 44:if(v>0)break;s[c++]=(Ta(S)-1)*b,b=1;break;case 64:45===Qa()&&(S+=ni(Za())),p=Qa(),d=u=Ta(x=S+=si(Ja())),y++;break;case 45:45===m&&2==Ta(S)&&(h=0)}}return a}function di(e,t,n,o,r,a,i,s,l,c,d,u){for(var p=r-1,f=0===r?a:[""],m=Aa(f),h=0,g=0,b=0;h<o;++h)for(var v=0,y=Oa(e,p+1,p=ka(g=i[h])),x=e;v<m;++v)(x=Ra(g>0?f[v]+" "+y:_a(y,/&\f/g,f[v])))&&(l[b++]=x);return Va(e,t,n,0===r?Ca:s,l,c,d,u)}function ui(e,t,n,o){return Va(e,t,n,wa,Na(Ga),Oa(e,2,-2),0,o)}function pi(e,t,n,o,r){return Va(e,t,n,Sa,Oa(e,0,o),Oa(e,o+1,-1),o,r)}function fi(e,t,n){switch(function(e,t){return 45^za(e,0)?(((t<<2^za(e,0))<<2^za(e,1))<<2^za(e,2))<<2^za(e,3):0}(e,t)){case 5103:return $a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return $a+e+e;case 4855:return $a+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return xa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $a+e+xa+e+ya+e+e;case 5936:switch(za(e,t+11)){case 114:return $a+e+ya+_a(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $a+e+ya+_a(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $a+e+ya+_a(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $a+e+ya+e+e;case 6165:return $a+e+ya+"flex-"+e+e;case 5187:return $a+e+_a(e,/(\w+).+(:[^]+)/,$a+"box-$1$2"+ya+"flex-$1$2")+e;case 5443:return $a+e+ya+"flex-item-"+_a(e,/flex-|-self/g,"")+(Ia(e,/flex-|baseline/)?"":ya+"grid-row-"+_a(e,/flex-|-self/g,""))+e;case 4675:return $a+e+ya+"flex-line-pack"+_a(e,/align-content|flex-|-self/g,"")+e;case 5548:return $a+e+ya+_a(e,"shrink","negative")+e;case 5292:return $a+e+ya+_a(e,"basis","preferred-size")+e;case 6060:return $a+"box-"+_a(e,"-grow","")+$a+e+ya+_a(e,"grow","positive")+e;case 4554:return $a+_a(e,/([^-])(transform)/g,"$1"+$a+"$2")+e;case 6187:return _a(_a(_a(e,/(zoom-|grab)/,$a+"$1"),/(image-set)/,$a+"$1"),e,"")+e;case 5495:case 3959:return _a(e,/(image-set\([^]*)/,$a+"$1$`$1");case 4968:return _a(_a(e,/(.+:)(flex-)?(.*)/,$a+"box-pack:$3"+ya+"flex-pack:$3"),/space-between/,"justify")+$a+e+e;case 4200:if(!Ia(e,/flex-|baseline/))return ya+"grid-column-align"+Oa(e,t)+e;break;case 2592:case 3360:return ya+_a(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Ia(e.props,/grid-\w+-end/)})?~Pa(e+(n=n[t].value),"span")?e:ya+_a(e,"-start","")+e+ya+"grid-row-span:"+(~Pa(n,"span")?Ia(n,/\d+/):+Ia(n,/\d+/)-+Ia(e,/\d+/))+";":ya+_a(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Ia(e.props,/grid-\w+-start/)})?e:ya+_a(_a(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _a(e,/(.+)-inline(.+)/,$a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ta(e)-1-t>6)switch(za(e,t+1)){case 109:if(45!==za(e,t+4))break;case 102:return _a(e,/(.+:)(.+)-([^]+)/,"$1"+$a+"$2-$3$1"+xa+(108==za(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pa(e,"stretch")?fi(_a(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return _a(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,i,s){return ya+n+":"+o+s+(r?ya+n+"-span:"+(a?i:+i-+o)+s:"")+e});case 4949:if(121===za(e,t+6))return _a(e,":",":"+$a)+e;break;case 6444:switch(za(e,45===za(e,14)?18:11)){case 120:return _a(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$a+(45===za(e,14)?"inline-":"")+"box$3$1"+$a+"$2$3$1"+ya+"$2box$3")+e;case 100:return _a(e,":",":"+ya)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _a(e,"scroll-","scroll-snap-")+e}return e}function mi(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Sa:return void(e.return=fi(e.value,e.length,n));case Ea:return Ha([Ka(e,{value:_a(e.value,"@","@"+$a)})],o);case Ca:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Ia(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ua(Ka(e,{props:[_a(t,/:(read-\w+)/,":-moz-$1")]})),Ua(Ka(e,{props:[t]})),Ma(e,{props:Ba(n,o)});break;case"::placeholder":Ua(Ka(e,{props:[_a(t,/:(plac\w+)/,":"+$a+"input-$1")]})),Ua(Ka(e,{props:[_a(t,/:(plac\w+)/,":-moz-$1")]})),Ua(Ka(e,{props:[_a(t,/:(plac\w+)/,ya+"input-$1")]})),Ua(Ka(e,{props:[t]})),Ma(e,{props:Ba(n,o)})}return""})}}const hi="data-ant-cssinjs-cache-path",gi="_FILE_STYLE__";let bi,vi=!0;const yi="_multi_value_";function xi(e,t){var n,o;return Ha(li(e),t?(o=Aa(n=[mi,ja]),function(e,t,r,a){for(var i="",s=0;s<o;s++)i+=n[s](e,t,r,a)||"";return i}):ja).replace(/\{%%%\:[^;];}/g,";")}const $i=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:i,path:s,hashPriority:l,transformers:c=[],linters:d=[]}=t;let u="",p={};function f(e){const n=e.getName(a);if(!p[n]){const[o]=$i(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(a)}${o}`}}return function e(t,n=[]){return t.forEach(t=>{Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(e)?e:[e]).forEach(e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)u+=`${i}\n`;else if(i._keyframe)f(i);else{const e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{const s=e[i];if("object"!=typeof s||!s||"animationName"===i&&s._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||yi in e)}(s)){function c(e,t){const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let o=t;va[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&t?._keyframe&&(f(t),o=t.getName(a)),u+=`${n}:${o};`}const d=s?.value??s;"object"==typeof s&&s?.[yi]&&Array.isArray(d)?d.forEach(e=>{c(i,e)}):null!=d&&c(i,d)}else{let m=!1,h=i.trim(),g=!1;(n||o)&&a?h.startsWith("@")?m=!0:h=function(e,t,n="high"){if(!t)return e;const o=la({hashCls:t,hashPriority:n});return e.split(",").map(e=>{const t=e.trim().split(/\s+/);let n=t[0]||"";const r=n.match(/^\w+/)?.[0]||"";return n=`${r}${o}${n.slice(r.length)}`,[n,...t.slice(1)].join(" ")}).join(",")}("&"===h?"":i,a,l):!n||a||"&"!==h&&""!==h||(h="",g=!0);const[b,v]=$i(s,t,{root:g,injectHash:m,parentSelectors:[...r,h]});p={...p,...v},u+=`${h}${b}`}})}}),n?i&&(u&&(u=`@layer ${i.name} {${u}}`),i.dependencies&&(p[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):u=`{${u}}`,[u,p]};function wi(e,t){return qr(`${e.join("%")}${t}`)}function Ci(e,t){const{path:n,hashId:o,layer:r,nonce:a,clientOnly:i,order:s=0}=e,{mock:l,hashPriority:c,container:d,transformers:u,linters:p,cache:f,layer:m,autoPrefix:g}=h.useContext(Yr),b=[o||""];m&&b.push("layer"),b.push(...n);let v=ia;ma("style",b,()=>{const e=b.join("|");if(function(e){return function(){if(!bi&&(bi={},Te())){const e=document.createElement("div");e.className=hi,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(e=>{const[t,n]=e.split(":");bi[t]=n});const n=document.querySelector(`style[${hi}]`);n&&(vi=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}(),!!bi[e]}(e)){const[t,n]=function(e){const t=bi[e];let n=null;if(t&&Te())if(vi)n=gi;else{const t=document.querySelector(`style[${Vr}="${bi[e]}"]`);t?n=t.innerHTML:delete bi[e]}return[n,t]}(e);if(t)return[t,n,{},i,s]}const a=t(),[l,d]=$i(a,{hashId:o,hashPriority:c,layer:m?r:void 0,path:n.join("-"),transformers:u,linters:p}),f=xi(l,g||!1);return[f,wi(b,f),d,i,s]},(e,t)=>{const[,n]=e;t&&ia&&dt(n,{mark:Vr,attachTo:d})},e=>{const[t,n,o,,r]=e;if(v&&t!==gi){let e={mark:Vr,prepend:!m&&"queue",attachTo:d,priority:r};e=ca(e,a);const i=[],s=[];Object.keys(o).forEach(e=>{e.startsWith("@layer")?i.push(e):s.push(e)}),i.forEach(t=>{ut(xi(o[t],g||!1),`_layer-${t}`,{...e,prepend:!0})}),ut(t,n,e)[Kr]=f.instanceId,s.forEach(t=>{ut(xi(o[t],g||!1),`_effect-${t}`,e)})}})}const Si=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Ei(e){return e.notSplit=!0,e}function ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Br(o.key),o)}}function Mi(e,t,n){return t&&Ni(e.prototype,t),n&&Ni(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ii(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}function Pi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pi=function(){return!!e})()}function zi(e,t){if(t&&("object"==Ar(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ri(e)}function Oi(e){var t=Pi();return function(){var n,o=_i(e);if(t){var r=_i(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return zi(this,n)}}Ei(["borderTop","borderBottom"]),Ei(["borderTop"]),Ei(["borderBottom"]),Ei(["borderLeft","borderRight"]),Ei(["borderLeft"]),Ei(["borderRight"]);const Ti=Mi(function e(){ki(this,e)});var Ai="CALC_UNIT",Li=new RegExp(Ai,"g");function Bi(e){return"number"==typeof e?"".concat(e).concat(Ai):e}var Hi=function(e){Ii(n,e);var t=Oi(n);function n(e,o){var r;ki(this,n),Hr(Ri(r=t.call(this)),"result",""),Hr(Ri(r),"unitlessCssVar",void 0),Hr(Ri(r),"lowPriority",void 0);var a=Ar(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===a?r.result=Bi(e):"string"===a&&(r.result=e),r}return Mi(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Bi(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Bi(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(Li,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Ti);const ji=function(e){Ii(n,e);var t=Oi(n);function n(e){var o;return ki(this,n),Hr(Ri(o=t.call(this)),"result",0),e instanceof n?o.result=e.result:"number"==typeof e&&(o.result=e),o}return Mi(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Ti),Di=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},qi=function(e,t,n,o){var r=Dr({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(e){var t,n=Lr(e,2),o=n[0],a=n[1];(null!=r&&r[o]||null!=r&&r[a])&&(null!==(t=r[a])&&void 0!==t||(r[a]=null==r?void 0:r[o]))});var a=Dr(Dr({},n),r);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a};var Wi="undefined"!=typeof CSSINJS_STATISTIC,Fi=!0;function Gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Wi)return Object.assign.apply(Object,[{}].concat(t));Fi=!1;var o={};return t.forEach(function(e){"object"===Ar(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Fi=!0,o}var Xi={};function Vi(){}const Ki=function(e,t,n){var o;return"function"==typeof n?n(Gi(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}};var Ui=function(){function e(){ki(this,e),Hr(this,"map",new Map),Hr(this,"objectIDMap",new WeakMap),Hr(this,"nextID",0),Hr(this,"lastAccessBeat",new Map),Hr(this,"accessBeat",0)}return Mi(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===Ar(e)?"obj_".concat(t.getObjectID(e)):"".concat(Ar(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Yi=new Ui;const Zi=function(){return{}},Qi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ji=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),es=new Si("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),ts=(e,t)=>({outline:`${sa(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),ns=(e,t)=>({"&:focus-visible":ts(e,t)}),os=e=>({[`.${e}`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:es,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),rs=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...ns(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),as={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},is={...as,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},ss={token:is,override:{override:is},hashed:!0},ls=g().createContext(ss),cs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ds(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:r,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,d=t(s),u=t(o),p=t(r),f=t(a),m=t(i),h=n(l,c),g=e.colorLink||e.colorInfo,b=t(g),v=new J(f[1]).mix(new J(f[3]),50).toHexString(),y={};return cs.forEach(n=>{const o=e[n];if(o){const e=t(o);y[`${n}Hover`]=e[5],y[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:v,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],...y,colorBgMask:new J("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const us=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function ps(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1,...us(o)}}const fs=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function ms(e){return(e+8)/e}const hs=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const o=n-1,r=e*Math.E**(o/5),a=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(a/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:ms(e)}))}(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),r=n[1],a=n[0],i=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:a,fontSize:r,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*r),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function gs(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const bs=(e,t)=>new J(e).setA(t).toRgbString(),vs=(e,t)=>new J(e).darken(t).toHexString(),ys=e=>{const t=re(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},xs=(e,t,n)=>{const o=e||"#fff",r=t||"#000";return{colorBgBase:o,colorTextBase:r,colorShadow:n||"#000",colorText:bs(r,.88),colorTextSecondary:bs(r,.65),colorTextTertiary:bs(r,.45),colorTextQuaternary:bs(r,.25),colorFill:bs(r,.15),colorFillSecondary:bs(r,.06),colorFillTertiary:bs(r,.04),colorFillQuaternary:bs(r,.02),colorBgSolid:bs(r,1),colorBgSolidHover:bs(r,.75),colorBgSolidActive:bs(r,.95),colorBgLayout:vs(o,4),colorBgContainer:vs(o,0),colorBgElevated:vs(o,0),colorBgSpotlight:bs(r,.85),colorBgBlur:"transparent",colorBorder:vs(o,15),colorBorderDisabled:vs(o,15),colorBorderSecondary:vs(o,6)}},$s=ta(function(e){ae.pink=ae.magenta,ye.pink=ye.magenta;const t=Object.keys(as).map(t=>{const n=e[t]===ae[t]?ye[t]:re(e[t]);return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>({...e,...t}),{});return{...e,...t,...ds(e,{generateColorPalettes:ys,generateNeutralColorPalettes:xs}),...hs(e.fontSize),...gs(e),...fs(e),...ps(e)}}),ws=$s;function Cs(e){return e>=0&&e<=255}const Ss=function(e,t){const{r:n,g:o,b:r,a}=new J(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new J(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),a=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(Cs(t)&&Cs(a)&&Cs(c))return new J({r:t,g:a,b:c,a:Math.round(100*e)/100}).toRgbString()}return new J({r:n,g:o,b:r,a:1}).toRgbString()},Es={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ks={motionBase:!0,motionUnit:!0},Ns={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Ms=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let i={...o,override:r};return i=function(e){const{override:t,...n}=e,o={...t};Object.keys(is).forEach(e=>{delete o[e]});const r={...n,...o},a=new J(r.colorShadow),i=a.a,s=e=>a.clone().setA(i*e).toRgbString();if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Ss(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Ss(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Ss(r.colorWarningBg,r.colorBgContainer),colorErrorAffix:r.colorError,colorWarningAffix:r.colorWarning,fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Ss(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowSecondary:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowTertiary:`\n 0 1px 2px 0 ${s(.05)},\n 0 1px 6px -1px ${s(.03)},\n 0 2px 4px 0 ${s(.03)}\n `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1919,screenXXXL:1920,screenXXXLMin:1920,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`\n 0 1px 2px -2px ${s(.16)},\n 0 3px 6px 0 ${s(.12)},\n 0 5px 12px 4px ${s(.09)}\n `,boxShadowDrawerRight:`\n -6px 0 16px 0 ${s(.08)},\n -3px 0 6px -4px ${s(.12)},\n -9px 0 28px 8px ${s(.05)}\n `,boxShadowDrawerLeft:`\n 6px 0 16px 0 ${s(.08)},\n 3px 0 6px -4px ${s(.12)},\n 9px 0 28px 8px ${s(.05)}\n `,boxShadowDrawerUp:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowDrawerDown:`\n 0 -6px 16px 0 ${s(.08)},\n 0 -3px 6px -4px ${s(.12)},\n 0 -9px 28px 8px ${s(.05)}\n `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...o}}(i),a&&Object.entries(a).forEach(([e,t])=>{const{theme:n,...o}=t;let r=o;n&&(r=Ms({...i,...o},{override:o},n)),i[e]=r}),i};function Rs(){const{token:e,hashed:t,theme:n,override:o,cssVar:r,zeroRuntime:a}=g().useContext(ls),{csp:i,getPrefixCls:s}=g().useContext(Mr),l={prefix:r?.prefix??s(),key:r?.key??"css-var-root"},c=`6.4.5-${t||""}`,d=n||ws,[u,p,f]=ba(d,[is,e],{salt:c,override:o,getComputedToken:Ms,cssVar:{...l,unitless:Es,ignore:ks,preserve:Ns},nonce:i?.nonce});return[d,f,t?p:"",u,l,!!a]}const{genStyleHooks:Is,genComponentStyleHook:_s,genSubStyleComponent:Ps}=function(e){var t=e.useCSP,n=void 0===t?Zi:t,o=e.useToken,r=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(t,s,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],u=Lr(d,1)[0],p=d.join("-"),f=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,d=o(),m=d.theme,b=d.realToken,v=d.hashId,y=d.token,x=d.cssVar,$=d.zeroRuntime;if((0,h.useMemo)(function(){return $},[]))return v;var w,C,S=r(),E=S.rootPrefixCls,k=S.iconPrefixCls,N=n(),M="css",R=(w=function(){var e=new Set;return Object.keys(c.unitless||{}).forEach(function(t){e.add(da(t,x.prefix)),e.add(da(t,Di(u,x.prefix)))}),function(e,t){var n="css"===e?Hi:ji;return function(e){return new n(e,t)}}(M,e)},C=[M,u,null==x?void 0:x.prefix],g().useMemo(function(){var e=Yi.get(C);if(e)return e;var t=w();return Yi.set(C,t),t},C)),I=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return sa(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return sa(e)}).join(","),")")}}}(M),_=I.max,P=I.min,z={theme:m,token:y,hashId:v,nonce:function(){return N.nonce},clientOnly:c.clientOnly,layer:f,order:c.order||-999};return"function"==typeof a&&Ci(Dr(Dr({},z),{},{clientOnly:!1,path:["Shared",E]}),function(){return a(y,{prefix:{rootPrefixCls:E,iconPrefixCls:k},csp:N})}),Ci(Dr(Dr({},z),{},{path:[p,e,k]}),function(){if(!1===c.injectStyle)return[];var n=function(e){var t,n=e,o=Vi;return Wi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return Fi&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;Xi[e]={global:Array.from(t),component:Dr(Dr({},null===(o=Xi[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=n.token,r=n.flush,a=Ki(u,b,l),d=".".concat(e),p=qi(u,b,a,{deprecatedTokens:c.deprecatedTokens});a&&"object"===Ar(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(da(e,Di(u,x.prefix)),")")});var f=Gi(o,{componentCls:d,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(E),calc:R,max:_,min:P},a),m=s(f,{hashId:v,prefixCls:e,rootPrefixCls:E,iconPrefixCls:k});r(u,p);var h="function"==typeof i?i(f,e,t,c.resetFont):null;return[!1===c.resetStyle?null:h,m]}),v}}return{genStyleHooks:function(e,t,r,a){var i=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},u=Dr(Dr({},"function"==typeof s?s(e):{}),{},Hr({},c("zIndexPopup"),!0));Object.keys(d).forEach(function(e){u[c(e)]=d[e]});var p=Dr(Dr({},a),{},{unitless:u,prefixToken:c}),f=l(e,t,r,p),m=function(e,t,r){var a=r.unitless,i=r.prefixToken,s=r.ignore;return function(l){var c=o(),d=c.cssVar,u=c.realToken,p=n();return((e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:i,hashId:s,scope:l,nonce:c}=e,{cache:{instanceId:d},container:u,hashPriority:p}=(0,h.useContext)(Yr),{_tokenKey:f}=i,m=Array.isArray(l)?l.join("@@"):l,g=[...e.path,n,m,f],b=ma("cssVar",g,()=>{const e=t(),[i,c]=pa(e,n,{prefix:o,unitless:r,ignore:a,scope:l,hashPriority:p,hashCls:s});return[i,c,wi(g,c),n]},([,,e])=>{ia&&dt(e,{mark:Vr,attachTo:u})},([,e,t])=>{if(!e)return;let o={mark:Vr,prepend:"queue",attachTo:u,priority:-999};o=ca(o,c);const r=ut(e,t,o);r[Kr]=d,r.setAttribute(Xr,n)})})({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:s,token:u,scope:l,nonce:function(){return p.nonce}},function(){var n=Ki(e,u,t),o=qi(e,u,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){o[i(e)]=o[e],delete o[e]}),o}),null==d?void 0:d.key}}(i,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=f(e,t),o=null==a?void 0:a.extraCssVarPrefixCls,r="function"==typeof o?o({prefixCls:e,rootCls:t}):o;return[n,m(null!=r&&r.length?[t].concat(X(r)):t)]}},genSubStyleComponent:function(e,t,n){var o=l(e,t,n,Dr({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,h.useContext)(Mr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r,a]=Rs();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r,zeroRuntime:a}},useCSP:()=>{const{csp:e}=(0,h.useContext)(Mr);return e??{}},getResetStyles:(e,t)=>{const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...ns(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},os(t?.prefix.iconPrefixCls??kr)]},getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==o&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[r]:i}}},getCompUnitless:()=>Es}),zs=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]},Os=Is(["Space","Compact"],e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1}),Ts=h.createContext(null),As=(e,t)=>{const n=h.useContext(Ts),o=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:a}=n,i="vertical"===o?"-vertical-":"-";return u(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:r,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:o}},Ls=e=>{const{children:t}=e;return h.createElement(Ts.Provider,{value:null},t)},Bs=e=>{const{children:t,...n}=e;return h.createElement(Ts.Provider,{value:h.useMemo(()=>n,[n])},t)},Hs=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Mr),{size:o,direction:r,orientation:a,block:i,prefixCls:s,className:l,rootClassName:c,children:d,vertical:p,...f}=e,[m,g]=Er(a,p,r),b=Tr(e=>o??e),v=t("space-compact",s),[y]=Os(v),x=u(v,y,{[`${v}-rtl`]:"rtl"===n,[`${v}-block`]:i,[`${v}-vertical`]:g},l,c),$=h.useContext(Ts),w=Gt(d),C=h.useMemo(()=>w.map((e,t)=>{const n=e?.key||`${v}-item-${t}`;return h.createElement(Bs,{key:n,compactSize:b,compactDirection:m,isFirstItem:0===t&&(!$||$?.isFirstItem),isLastItem:t===w.length-1&&(!$||$?.isLastItem)},e)}),[w,$,m,b,v]);return 0===w.length?null:h.createElement("div",{className:x,...f},C)},js=e=>{const{space:t,form:n,children:o}=e;if(!Rn(o))return null;let r=o;return n&&(r=g().createElement(wr,{override:!0,status:!0},r)),t&&(r=g().createElement(Ls,null,r)),r},Ds=g().createContext(void 0),qs=100,Ws={Modal:qs,Drawer:qs,Popover:qs,Popconfirm:qs,Tooltip:qs,Tour:qs,FloatButton:qs},Fs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Gs=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=Gs(n[e],t[e])}),n},Xs=(e={},...t)=>t.filter(e=>Boolean(e)).reduce((t,n)=>(Object.keys(n).forEach(o=>{const r=e[o],a=n[o];if(r)if(zn(a))t[o]=Xs(r,t[o],a);else{const{_default:e}=r;e&&(t[o]=t[o]||{},t[o][e]=u(t[o][e],a))}else t[o]=u(t[o],a)}),t),{}),Vs=(e,...t)=>h.useMemo(()=>Xs.apply(void 0,[e].concat(t)),[e].concat(t)),Ks=(...e)=>e.filter(e=>Boolean(e)).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Us=(...e)=>h.useMemo(()=>Ks.apply(void 0,e),[].concat(e)),Ys=(e,t)=>On(e)?e(t):e,Zs=(e,t,n,o)=>{const r=e.map(e=>e?Ys(e,n):void 0),a=t.map(e=>e?Ys(e,n):void 0),i=Vs.apply(void 0,[o].concat(X(r))),s=Us.apply(void 0,X(a));return h.useMemo(()=>o?[Gs(i,o),Gs(s,o)]:[i,s],[i,s,o])},Qs=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Js(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,a=r,i=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*r-l,u=c,p=2*r-i,f=s,m=2*r-0,h=a,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),b=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${o} ${o} 0 0 0 ${i} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${p} ${f} A ${o} ${o} 0 0 0 ${m} ${h} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*r-b}px 100%, ${b}px 100%)`}}const el=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e,c={content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${sa(s)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(c.boxShadow=n),{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,a]},content:'""'},"&::after":c}};function tl(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function nl(e,t){return e?t:{}}const ol=(e,t,n)=>{const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:a,arrowOffsetHorizontal:i,antCls:s}=e,[l]=zs(s,"tooltip"),{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0},arrowShadow:u=!0}=n||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...el(e,t,!!u&&r),"&:before":{background:t}}],...nl(!!d.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[l("arrow-offset-x")]:i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{[l("arrow-offset-x")]:`calc(100% - ${sa(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...nl(!!d.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[l("arrow-offset-x")]:i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{[l("arrow-offset-x")]:`calc(100% - ${sa(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...nl(!!d.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:a},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:a}}),...nl(!!d.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:a},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:a}})}}},rl={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},al={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},il=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sl(e){return e&&g().isValidElement(e)&&e.type===g().Fragment}const ll=(e,t,n)=>g().isValidElement(e)?g().cloneElement(e,On(n)?n(e.props||{}):n):t;function cl(e,t){return ll(e,e,t)}function dl(){}const{resetWarned:ul}=Rt,pl=h.createContext({}),fl=()=>{const e=()=>{};return e.deprecated=dl,e},ml=e=>`${e}-css-var`,hl=g().createContext(!1),gl=e=>({animationDuration:e,animationFillMode:"both"}),bl=(e,t,n,o,r=!1)=>{const a=r?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:{...gl(o),animationPlayState:"paused"},[`${a}${e}-leave`]:{...gl(o),animationPlayState:"paused"},[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vl=new Si("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),yl=new Si("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),xl=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[bl(o,vl,yl,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},$l=new Si("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wl=new Si("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cl=new Si("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sl=new Si("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),El=new Si("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kl=new Si("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Nl={zoom:{inKeyframes:$l,outKeyframes:wl},"zoom-big":{inKeyframes:Cl,outKeyframes:Sl},"zoom-big-fast":{inKeyframes:Cl,outKeyframes:Sl},"zoom-left":{inKeyframes:new Si("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Si("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Si("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Si("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:El,outKeyframes:kl},"zoom-down":{inKeyframes:new Si("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Si("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Ml=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=Nl[t];return[bl(o,r,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Rl(e,t){return cs.reduce((n,o)=>{const r=e[`${o}1`],a=e[`${o}3`],i=e[`${o}6`],s=e[`${o}7`];return{...n,...t(o,{lightColor:r,lightBorderColor:a,darkColor:i,textColor:s})}},{})}const Il=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,dropShadowPopover:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:f,antCls:m}=e,[h,g]=zs(m,"tooltip"),b=t(i).add(f).add(p).equal(),v={minWidth:t(i).mul(2).add(f).equal(),minHeight:l,padding:`${sa(e.calc(d).div(2).equal())} ${sa(u)}`,color:g("overlay-color",r),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxSizing:"border-box"},y={[h("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Ji(e),position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:o,visibility:"visible",filter:c,...y,"&-hidden":{display:"none"},[h("arrow-background-color")]:a,[`${n}-container`]:[v,xl(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,8)}},[`${n}-content`]:{position:"relative"},...Rl(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},ol(e,g("arrow-background-color"),{arrowShadow:!1}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:"absolute",zIndex:t(s).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},_l=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...tl({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Js(Gi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Pl=(e,t,n=!0)=>{const o=Is("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o,maxWidth:r}=e,a=Gi(e,{tooltipMaxWidth:r,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Il(a),Ml(e,"zoom-big-fast")]},_l,{resetStyle:!1,injectStyle:n});return o(e,t)},zl=cs.map(e=>`${e}-inverse`),Ol=["success","processing","error","default","warning"];function Tl(e,t=!0){return t?[].concat(X(zl),X(cs)).includes(e):cs.includes(e)}const Al=e=>Math.round(Number(e||0));class Ll extends J{constructor(e){super((e=>{if(e instanceof J)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=Al(100*e.s),n=Al(100*e.b),o=Al(e.h),r=e.a,a=`hsb(${o}, ${t}%, ${n}%)`,i=`hsba(${o}, ${t}%, ${n}%, ${r.toFixed(0===r?0:2)})`;return 1===r?a:i}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}var Bl;(Bl="#1677ff")instanceof Ll||new Ll(Bl);let Hl=function(){return Mi(function e(t){if(ki(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Ll(this.colors[0].color.metaColor)):this.metaColor=new Ll(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)}):this.toHexString()===e.toHexString())}}])}();const jl=(e,t,n)=>{const o=Tl(n),[r]=zs(e,"tooltip"),a=u({[`${t}-${n}`]:n&&o}),i={},s={},l=(e=>e instanceof Hl?e:new Hl(e))(n).toRgb(),c=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return n&&!o&&(i.background=n,i[r("overlay-color")]=c,s[r("arrow-background-color")]=n),{className:a,overlayStyle:i,arrowStyle:s}},Dl=({children:e})=>{const{getPrefixCls:t}=g().useContext(Mr),n=t();return g().isValidElement(e)?g().createElement(Ao,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>cl(e,e=>({className:u(e.className,n),style:{...e.style,...t}}))):e},ql=[null,null],Wl=({children:e})=>g().createElement(pr,{postTriggerProps:e=>{const{id:t,builtinPlacements:n,popup:o}=e,r=On(o)?o():o,a=function(e){if(ql[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),ql[0]=e,ql[1]=t}return ql[1]}(n);return{...e,getPopupContainer:null,arrow:!1,popup:g().createElement(Dl,{key:t},r),builtinPlacements:a}}},e),Fl=h.forwardRef((e,t)=>{const{prefixCls:n,openClassName:o,getTooltipContainer:r,color:a,children:i,afterOpenChange:s,arrow:l,destroyTooltipOnHide:c,destroyOnHidden:d,title:p,overlay:f,trigger:m,builtinPlacements:b,autoAdjustOverflow:v=!0,motion:y,getPopupContainer:x,placement:$="top",mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,rootClassName:S,styles:E,classNames:k,onOpenChange:N,overlayInnerStyle:M,overlayStyle:R,overlayClassName:I,..._}=e,[,P]=Rs(),z=e["data-popover-inject"],{getPopupContainer:O,getPrefixCls:T,direction:A,...L}=_r("tooltip"),{className:B,style:H,classNames:j,styles:D,arrow:q,trigger:W}=z?{}:L,F=((e,t)=>{const n=e=>"boolean"==typeof e?{show:e}:e||{};return g().useMemo(()=>{const o=n(e),r=n(t);return{...r,...o,show:o.show??r.show??!0}},[e,t])})(l,q),G=F.show,X=m||W||"hover",V=x||O,K=d??!!c,U=h.useContext(hl),Y=(fl(),h.useRef(null)),Z=()=>{Y.current?.forceAlign()};h.useImperativeHandle(t,()=>({forceAlign:Z,nativeElement:Y.current?.nativeElement,popupElement:Y.current?.popupElement}));const[Q,J]=je(e.defaultOpen??!1,e.open),ee=!p&&!f&&0!==p,te=h.useMemo(()=>b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:a,visibleFirst:i}=e,s=t/2,l={},c=tl({contentRadius:a,limitVerticalRadius:!0});return Object.keys(rl).forEach(e=>{const a={...o&&al[e]||rl[e],offset:[0,0],dynamicInset:!0};switch(l[e]=a,il.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=s+r}if(o)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":a.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":a.offset[1]=2*-c.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":a.offset[1]=2*c.arrowOffsetHorizontal-s}a.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=zn(o)?o:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i={...a,...r};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,c,t,n),i&&(a.htmlRegion="visibleFirst")}),l}({arrowPointAtCenter:F?.pointAtCenter??!1,autoAdjustOverflow:v,arrowWidth:G?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0}),[F,b,P,G,v]),ne=h.useMemo(()=>0===p?p:f||p||"",[f,p]),oe=h.createElement(js,{space:!0,form:!0},On(ne)?ne():ne),re={...e,trigger:X,builtinPlacements:te,getPopupContainer:V,destroyOnHidden:K},[ae,ie]=Zs([j,k],[D,E],{props:re}),se=T("tooltip",n),le=T();let ce=Q;(!("open"in e)&&ee||U)&&(ce=!1);const de=h.isValidElement(i)&&!sl(i)?i:h.createElement("span",null,i),ue=de.props,pe=ue.className&&"string"!=typeof ue.className?ue.className:u(ue.className,o||`${se}-open`),fe=ml(se),[me,he]=Pl(se,fe,!z),ge=jl(le,se,a),be=ge.arrowStyle,ve=u(fe,me,he),ye=u(I,{[`${se}-rtl`]:"rtl"===A},ge.className,S,ve,B,ae.root),[xe,$e]=((e,t)=>{const[,n]=Rs(),o=g().useContext(Ds);let r;if(void 0!==t)r=[t,t];else{let a=o??0;a+=e in Ws?(o?0:n.zIndexPopupBase)+Ws[e]:Fs[e],r=[void 0===o?t:a,a]}return r})("Tooltip",_.zIndex),we={...ie.container,...M,...ge.overlayStyle},Ce=h.createElement(xr,{unique:!0,..._,zIndex:xe,showArrow:G,placement:$,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:se,classNames:{root:ye,container:ae.container,arrow:ae.arrow,uniqueContainer:u(ve,ae.container)},styles:{root:{...be,...ie.root,...H,...R},container:we,uniqueContainer:we,arrow:ie.arrow},ref:Y,overlay:oe,visible:ce,onVisibleChange:e=>{J(!ee&&e),!ee&&N&&N(e)},afterVisibleChange:s,arrowContent:h.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Qs(le,"zoom-big-fast","string"==typeof y?.motionName?y?.motionName:void 0),motionDeadline:1e3},trigger:X,builtinPlacements:te,getTooltipContainer:V,destroyOnHidden:K},ce?cl(de,{className:pe}):de);return h.createElement(Ds.Provider,{value:$e},Ce)}),Gl=Fl;Gl._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:r,color:a,overlayInnerStyle:i,classNames:s,styles:l}=e,{getPrefixCls:c}=h.useContext(Mr),d=c("tooltip",t),p=c(),f=ml(d),[m,g]=Pl(d,f),b=jl(p,d,a),v=b.arrowStyle,y=h.useMemo(()=>({container:{...i,...b.overlayStyle}}),[i,b.overlayStyle]),x={...e,placement:o},[$,w]=Zs([s],[y,l],{props:x}),C=u(f,m,g,d,`${d}-pure`,`${d}-placement-${o}`,n,b.className);return h.createElement("div",{className:C,style:v},h.createElement("div",{className:`${d}-arrow`}),h.createElement(Fn,{...e,className:m,prefixCls:d,classNames:$,styles:w},r))},Gl.UniqueProvider=Wl;const Xl=Gl;var Vl=n(699);function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kl.apply(this,arguments)}const Ul=(e,t)=>h.createElement(pn,Kl({},e,{ref:t,icon:Vl.A})),Yl=h.forwardRef(Ul);function Zl(e,t,n){const o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},r}function Ql(e,t,n,o){if(!n)return;let r=t;return"click"===t.type?(r=Zl(t,e,""),void n(r)):"file"!==e.type&&void 0!==o?(r=Zl(t,e,o),void n(r)):void n(r)}function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jl.apply(this,arguments)}const ec=g().forwardRef((e,t)=>{const{inputElement:n,children:o,prefixCls:r,prefix:a,suffix:i,addonBefore:s,addonAfter:l,className:c,style:d,disabled:p,readOnly:f,focused:m,triggerFocus:b,allowClear:v,value:y,handleReset:x,hidden:$,classes:w,classNames:C,dataAttrs:S,styles:E,components:k,onClear:N}=e,M=o??n,R=k?.affixWrapper||"span",I=k?.groupWrapper||"span",_=k?.wrapper||"span",P=k?.groupAddon||"span",z=(0,h.useRef)(null),O=e=>{z.current?.contains(e.target)&&b?.()},T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let A=(0,h.cloneElement)(M,{value:y,className:u(M.props?.className,!T&&C?.variant)||null});const L=(0,h.useRef)(null);if(g().useImperativeHandle(t,()=>({nativeElement:L.current||z.current})),T){let e=null;if(v){const t=!p&&!f&&y&&!("object"==typeof v&&v.disabled),n=`${r}-clear-icon`,o="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=g().createElement("button",{type:"button",onClick:e=>{x?.(e),N?.()},onMouseDown:e=>e.preventDefault(),className:u(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!i},C?.clear),style:E?.clear},o)}const t=`${r}-affix-wrapper`,n=u(t,{[`${r}-disabled`]:p,[`${t}-disabled`]:p,[`${t}-focused`]:m,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:i&&v&&y},w?.affixWrapper,C?.affixWrapper,C?.variant),o=(i||v)&&g().createElement("span",{className:u(`${r}-suffix`,C?.suffix),style:E?.suffix},e,i);A=g().createElement(R,Jl({className:n,style:E?.affixWrapper,onClick:O},S?.affixWrapper,{ref:z}),a&&g().createElement("span",{className:u(`${r}-prefix`,C?.prefix),style:E?.prefix},a),A,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${r}-group`,t=`${e}-addon`,n=`${e}-wrapper`,o=u(`${r}-wrapper`,e,w?.wrapper,C?.wrapper),a=u(n,{[`${n}-disabled`]:p},w?.group,C?.groupWrapper);A=g().createElement(I,{className:a,ref:L},g().createElement(_,{className:o},s&&g().createElement(P,{className:t},s),A,l&&g().createElement(P,{className:t},l)))}return g().cloneElement(A,{className:u(A.props?.className,c)||null,style:{...A.props?.style,...d},hidden:$})}),tc=ec,nc=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],oc={};let rc;function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ac.apply(this,arguments)}const ic=h.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:o,value:r,autoSize:a,onResize:i,className:s,style:l,disabled:c,onChange:d,onInternalAutoSize:p,...f}=e,[m,g]=je(o,r),b=m??"",v=h.useRef(null);h.useImperativeHandle(t,()=>({textArea:v.current}));const[y,x]=h.useMemo(()=>a&&"object"==typeof a?[a.minRows,a.maxRows]:[],[a]),$=!!a,[w,C]=h.useState(2),[S,E]=h.useState(),k=()=>{C(0)};He(()=>{$&&k()},[r,y,x,$]),He(()=>{if(0===w)C(1);else if(1===w){const e=function(e,t=!1,n=null,o=null){rc||(rc=document.createElement("textarea"),rc.setAttribute("tab-index","-1"),rc.setAttribute("aria-hidden","true"),rc.setAttribute("name","hiddenTextarea"),document.body.appendChild(rc)),e.getAttribute("wrap")?rc.setAttribute("wrap",e.getAttribute("wrap")):rc.removeAttribute("wrap");const{paddingSize:r,borderSize:a,boxSizing:i,sizingStyle:s}=function(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&oc[n])return oc[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:nc.map(e=>`${e}:${o.getPropertyValue(e)}`).join(";"),paddingSize:a,borderSize:i,boxSizing:r};return t&&n&&(oc[n]=s),s}(e,t);let l,c,d;rc.setAttribute("style",`${s};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),rc.value=e.value||e.placeholder||"";let u=rc.scrollHeight;if("border-box"===i?u+=a:"content-box"===i&&(u-=r),null!==n||null!==o){rc.value=" ";const e=rc.scrollHeight-r;null!==n&&(l=e*n,"border-box"===i&&(l=l+r+a),u=Math.max(l,u)),null!==o&&(c=e*o,"border-box"===i&&(c=c+r+a),d=u>c?void 0:"hidden",u=Math.min(c,u))}const p={height:u,overflowY:d,resize:"none"};return l&&(p.minHeight=l),c&&(p.maxHeight=c),p}(v.current,!1,y,x);C(2),E(e)}},[w]);const N=h.useRef(void 0),M=()=>{void 0!==N.current&&Ft.cancel(N.current)};h.useEffect(()=>M,[]);const R={...l,...$?S:null};return 0!==w&&1!==w||(R.overflowY="hidden",R.overflowX="hidden"),h.createElement(Nn,{onResize:e=>{2===w&&(i?.(e),a&&(M(),N.current=Ft(()=>{k()})))},disabled:!(a||i)},h.createElement("textarea",ac({},f,{ref:v,style:R,className:u(n,s,{[`${n}-disabled`]:c}),disabled:c,value:b,onChange:e=>{g(e.target.value),d?.(e)}})))}),sc=ic;function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lc.apply(this,arguments)}const cc=g().forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:o,onChange:r,allowClear:a,maxLength:i,onCompositionStart:s,onCompositionEnd:l,suffix:c,prefixCls:d="rc-textarea",showCount:p,count:f,className:m,style:b,disabled:v,hidden:y,classNames:x,styles:$,onResize:w,onClear:C,onPressEnter:S,readOnly:E,autoSize:k,onKeyDown:N,...M},R)=>{const[I,_]=g().useState(!1),P=g().useRef(!1),[z,O]=g().useState(null),T=(0,h.useRef)(null),A=(0,h.useRef)(null),L=()=>A.current?.textArea||null,{setValue:B,formatValue:H}=function(e,t){const[n,o]=je(e,t);return{value:n,setValue:o,formatValue:null==n?"":String(n)}}(e,t),j=function(e,t){return h.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:o,...r}=n;return{...r,show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:r.strategy||(e=>e.length)}},[e,t])}(f,p),{isOutOfRange:D,dataCount:q}=function({countConfig:e,value:t,maxLength:n}){return h.useMemo(()=>{const o=e.max??n,r=e.strategy(t),a=!!o&&r>o,i=Number(o)>0;return{mergedMax:o,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:r,maxLength:o}):`${r}${i?` / ${o}`:""}`:void 0}},[e,n,t])}({countConfig:j,value:H,maxLength:i}),W=function({countConfig:e,getTarget:t}){const[n,o]=h.useState(null),r=h.useRef(t);return h.useEffect(()=>{r.current=t},[t]),h.useEffect(()=>{n&&(r.current()?.setSelectionRange(...n),o(null))},[n]),h.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&o([r.current()?.selectionStart||0,r.current()?.selectionEnd||0])),a},[e])}({countConfig:j,getTarget:()=>A.current?.textArea||null}),F=()=>{L()?.focus()};(0,h.useImperativeHandle)(R,()=>({resizableTextArea:A.current,focus:F,blur:()=>{L()?.blur()},nativeElement:T.current?.nativeElement||L()})),(0,h.useEffect)(()=>{_(e=>!v&&e)},[v]);const G=(e,t)=>{const n=W(t,P.current);B(n),Ql(e.currentTarget,e,r,n)};let X=c;j.show&&(X=g().createElement(g().Fragment,null,X,g().createElement("span",{className:u(`${d}-data-count`,x?.count),style:$?.count},q)));const V=!k&&!p&&!a;return g().createElement(tc,{ref:T,value:H,allowClear:a,handleReset:e=>{B(""),F();const t=L();t&&Ql(t,e,r)},suffix:X,prefixCls:d,classNames:{...x,affixWrapper:u(x?.affixWrapper,{[`${d}-show-count`]:p,[`${d}-textarea-allow-clear`]:a})},disabled:v,focused:I,className:u(m,D&&`${d}-out-of-range`),style:{...b,...z&&!V?{height:"auto"}:{}},dataAttrs:"string"==typeof q?{affixWrapper:{"data-count":q}}:void 0,styles:$,hidden:y,readOnly:E,onClear:C},g().createElement(sc,lc({},M,{autoSize:k,maxLength:i,onKeyDown:e=>{"Enter"===e.key&&S&&!e.nativeEvent.isComposing&&S(e),N?.(e)},onChange:e=>{G(e,e.target.value)},onFocus:e=>{_(!0),n?.(e)},onBlur:e=>{_(!1),o?.(e)},onCompositionStart:e=>{P.current=!0,s?.(e)},onCompositionEnd:e=>{P.current=!1,G(e,e.currentTarget.value),l?.(e)},className:u(x?.textarea),style:{resize:b?.resize,...$?.textarea},disabled:v,prefixCls:d,onResize:e=>{w?.(e),L()?.style.height&&O(!0)},ref:A,readOnly:E})))}),dc=cc;var uc=n(55);function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pc.apply(this,arguments)}const fc=(e,t)=>h.createElement(pn,pc({},e,{ref:t,icon:uc.A})),mc=h.forwardRef(fc);function hc(...e){return e.find(e=>void 0!==e)}const gc=(e,t,n)=>u({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),bc=(e,t)=>t||e,vc=h.createContext(!1),yc=({children:e,disabled:t})=>{const n=h.useContext(vc);return h.createElement(vc.Provider,{value:t??n},e)},xc=vc,$c=(e,t,n)=>{const{variant:o,[e]:r}=h.useContext(Mr),a=h.useContext(Cr),i=r?.variant;let s;return s=void 0!==t?t:!1===n?"borderless":a??i??o??"outlined",[s,Nr.includes(s)]};function wc(e,t,n,o){const{focusElCls:r,focus:a,borderElCls:i}=n,s=i?"> *":"",l=s?` ${s}`:"",c=e=>e.filter(Boolean).map(e=>`&:${e}${l}`).join(","),d=c(["hover",r?`hover${r}`:null]),u=c([a?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},[d]:{zIndex:4},...r?{[`&${r}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function Cc(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Sc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,r=o||n,a=`${r}-compact`;return{[a]:{...wc(e,a,t,r),...Cc(r,a,t)}}}function Ec(e){return Gi(e,{inputAffixPadding:e.paddingXXS})}const kc=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:$,inputFontSizeSM:w}=e,C=x||n,S=w||C,E=$||s,k=Math.round((t-C*o)/2*10)/10-r,N=Math.round((a-S*o)/2*10)/10-r,M=Math.ceil((i-E*l)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(M,0),paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:E,inputFontSizeSM:S}},Nc=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Mc=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...Nc(Gi(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),Rc=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Ic=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Rc(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),_c=(e,t)=>({"&-outlined":{...Rc(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Mc(e)},...Ic(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...Ic(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Pc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),zc=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Pc(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Pc(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Mc(e)}}}}),Oc=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError},[`${n}-prefix, ${n}-suffix`]:{color:e.colorErrorAffix}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning},[`${n}-prefix, ${n}-suffix`]:{color:e.colorWarningAffix}},...t}}},Tc=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Ac=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Tc(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Lc=(e,t)=>({"&-filled":{...Tc(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Mc(e)},...Ac(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...Ac(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),Bc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Hc=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Bc(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Bc(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),jc=(e,t)=>({background:e.colorBgContainer,borderWidth:`${sa(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Dc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...jc(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),qc=(e,t)=>({"&-underlined":{...jc(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...Dc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...Dc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Wc=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Fc=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${sa(t)} ${sa(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Gc=e=>({padding:`${sa(e.paddingBlockSM)} ${sa(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Xc=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${sa(e.paddingBlock)} ${sa(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Wc(e.colorTextPlaceholder),"&-lg":{...Fc(e),...t.largeStyle},"&-sm":{...Gc(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Vc=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...Fc(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Gc(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${sa(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${sa(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${sa(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${sa(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${sa(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},Kc=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,a=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:{...Ji(e),...Xc(e),..._c(e),...Lc(e),...Oc(e),...qc(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},Uc=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...ts(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${sa(e.inputAffixPadding)}`}}}},Yc=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:a,colorIconHover:i}=e,s=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[s]:{...Xc(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:"inline-flex",color:a,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}},...Uc(e)},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Zc=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:{...Ji(e),...Vc(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}},...zc(e),...Hc(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},Qc=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Jc=Is(["Input","Shared"],e=>{const t=Gi(e,Ec(e));return[Kc(t),Yc(t)]},kc,{resetFont:!1}),ed=(Is(["Input","Component"],e=>{const t=Gi(e,Ec(e));return[Zc(t),Qc(t),Sc(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},kc,{resetFont:!1}),Is(["Input","TextArea"],e=>(e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})(Gi(e,Ec(e))),kc,{resetFont:!1})),td=(0,h.forwardRef)((e,t)=>{const{prefixCls:n,bordered:o=!0,size:r,disabled:a,status:i,allowClear:s,classNames:l,rootClassName:c,className:d,style:p,styles:f,variant:m,showCount:b,onMouseDown:v,onResize:y,...x}=e,{getPrefixCls:$,direction:w,allowClear:C,autoComplete:S,className:E,style:k,classNames:N,styles:M}=_r("textArea"),R=h.useContext(xc),I=a??R,{status:_,hasFeedback:P,feedbackIcon:z}=h.useContext($r),O=bc(_,i),[T,A]=Zs([N,l],[M,f],{props:e}),L=h.useRef(null);h.useImperativeHandle(t,()=>({resizableTextArea:L.current?.resizableTextArea,focus:e=>{gt(L.current?.resizableTextArea?.textArea,e)},blur:()=>L.current?.blur(),nativeElement:L.current?.nativeElement||null}));const B=$("input",n),H=ml(B),[j,D]=Jc(B,c);ed(B,H);const{compactSize:q,compactItemClassnames:W}=As(B,w),F=Tr(e=>r??q??e),[G,X]=$c("textArea",m,o),V=(e=>{const{allowClear:t,clearIcon:n,contextAllowClear:o,contextClearIcon:r,defaultAllowClear:a,componentName:i}=e;return(0,h.useMemo)(()=>!!(t??o??a)&&{clearIcon:hc(zn(t)?t?.clearIcon:n,zn(o)?o?.clearIcon:r,g().createElement(mc,null)),disabled:(zn(t)?t?.disabled:void 0)??(zn(o)?o?.disabled:void 0)},[t,n,o,r,a])})({allowClear:s,contextAllowClear:C,componentName:"TextArea"}),[K,U]=h.useState(!1),[Y,Z]=h.useState(!1);return h.createElement(dc,{autoComplete:S,...x,style:{...A.root,...k,...p},styles:A,disabled:I,allowClear:V,className:u(D,H,d,c,W,E,T.root,{[`${B}-textarea-affix-wrapper-resize-dirty`]:Y}),classNames:{...T,textarea:u({[`${B}-sm`]:"small"===F,[`${B}-lg`]:"large"===F},j,T.textarea,K&&`${B}-mouse-active`),variant:u({[`${B}-${G}`]:X},gc(B,O)),affixWrapper:u(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:"rtl"===w,[`${B}-affix-wrapper-sm`]:"small"===F,[`${B}-affix-wrapper-lg`]:"large"===F,[`${B}-textarea-show-count`]:b||e.count?.show},j)},prefixCls:B,suffix:P&&h.createElement("span",{className:`${B}-textarea-suffix`},z),showCount:b,ref:L,onResize:e=>{if(y?.(e),K&&On(getComputedStyle)){const e=L.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Z(!0)}},onMouseDown:e=>{U(!0),v?.(e);const t=()=>{U(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})}),nd=td,od=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:a}=o;return{marginBottom:r,color:n,fontWeight:a,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},rd=e=>{const{componentCls:t}=e,n=`${t}-link`;return{[`&${n}`]:{...rs(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},ad=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ce[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:sa(e.padding),overflowWrap:"break-word",borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),id=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(o).div(-2).add(1).equal(),marginBottom:e.calc(o).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sd=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ld=Is("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...od(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...ad(e),...rd(e),[`${t}-actions`]:{display:"inline"},[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:{...rs(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy:not(${t}-copy-icon-only)\n `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...id(e),...sd(e),"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...Qi,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),cd=e=>{const{prefixCls:t,"aria-label":n,className:o,style:r,classNames:a,styles:i,direction:s,maxLength:l,autoSize:c=!0,value:d,onSave:p,onCancel:f,onEnd:m,component:g,enterIcon:b=h.createElement(Yl,null)}=e,v=h.useRef(null),y=h.useRef(!1),x=h.useRef(null),[$,w]=h.useState(d);h.useEffect(()=>{w(d)},[d]),h.useEffect(()=>{if(v.current?.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const C=()=>{p($.trim())},[S,E]=ld(t),k=u(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===s,[`${t}-${g}`]:!!g},o,a.root,S,E);return h.createElement("div",{className:k,style:{...i.root,...r}},h.createElement(nd,{ref:v,maxLength:l,value:$,onChange:({target:e})=>{w(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{y.current||(x.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:o,shiftKey:r})=>{x.current!==e||y.current||t||n||o||r||(e===wt.ENTER?(C(),m?.()):e===wt.ESC&&f())},onCompositionStart:()=>{y.current=!0},onCompositionEnd:()=>{y.current=!1},onBlur:()=>{C()},"aria-label":n,rows:1,autoSize:c,className:a.textarea,style:i.textarea}),null!==b?cl(b,{className:`${t}-edit-content-confirm`}):null)},dd=(e,t={})=>!Mn(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],ud=({copyConfig:e,children:t})=>{const[n,o]=h.useState(!1),[r,a]=h.useState(!1),i=h.useRef(null),s=()=>{i.current&&clearTimeout(i.current)},l={};return e.format&&(l.format=e.format),h.useEffect(()=>s,[]),{copied:n,copyLoading:r,onClick:Oe(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{const r=On(e.text)?await e.text():e.text;await async function(e,t){if("string"!=typeof e)return!1;const n="text/html"===t?.format;return!!await(async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}})(e,n)||!!((e,t)=>{let n=!1;const o=o=>{o.stopPropagation(),o.preventDefault(),o.clipboardData?.clearData(),o.clipboardData?.setData("text/plain",e),t&&o.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",o,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",o,{capture:!0})}})(e,n)}(r||dd(t,{skipEmpty:!0}).join("")||"",l),a(!1),o(!0),s(),i.current=setTimeout(()=>{o(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},pd=(e,t)=>{const n=Boolean(e);return h.useMemo(()=>{const o={...t,...n&&zn(e)?e:null};return[n,o]},[n,e,t])},fd=(e,t,n,o,r)=>{const{getPrefixCls:a,direction:i,className:s,style:l,classNames:c,styles:d}=_r("typography"),u=o??i,p=a("typography",e),f={...r,prefixCls:p,direction:u},m=(0,h.useMemo)(()=>({root:s}),[s]),g=(0,h.useMemo)(()=>({root:l}),[l]),[b,v]=Zs([m,c,t],[g,d,n],{props:f});return[b,v,p,u]},md=h.forwardRef((e,t)=>{const{component:n="article",className:o,rootClassName:r,children:a,direction:i,style:s,classNames:l,styles:c,prefixCls:d,...p}=e,[f,m]=ld(d),g=u(d,{[`${d}-rtl`]:"rtl"===i},o,r,f,m,l?.root),b={...c?.root,...s};return h.createElement(n,{...p,className:g,style:b,ref:t},a)}),hd=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,direction:a,classNames:i,styles:s,...l}=e,[c,d,p,f]=fd(n,i,s,a,e);return h.createElement(md,{ref:t,className:u(o,r),direction:f,classNames:c,styles:d,prefixCls:p,...l})});var gd=n(489);function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},bd.apply(this,arguments)}const vd=(e,t)=>h.createElement(pn,bd({},e,{ref:t,icon:gd.A})),yd=h.forwardRef(vd);var xd=n(784);function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$d.apply(this,arguments)}const wd=(e,t)=>h.createElement(pn,$d({},e,{ref:t,icon:xd.A})),Cd=h.forwardRef(wd);var Sd=n(885);function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ed.apply(this,arguments)}const kd=(e,t)=>h.createElement(pn,Ed({},e,{ref:t,icon:Sd.A})),Nd=h.forwardRef(kd),Md=e=>!1===e?[!1,!1]:dd(e);function Rd(e,t,n){return!0===e||void 0===e?t:e||n&&t}const Id=e=>["string","number"].includes(typeof e),_d=e=>{const{prefixCls:t,copied:n,locale:o,iconOnly:r,tooltips:a,icon:i,tabIndex:s,onCopy:l,loading:c,className:d,style:p}=e,f=Md(a),m=Md(i),{copied:g,copy:b}=o??{},v=n?g:b,y=Rd(f[n?1:0],v),x="string"==typeof y?y:v;return h.createElement(Xl,{title:y},h.createElement("button",{type:"button",className:u(`${t}-copy`,d,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:r}),style:p,onClick:l,"aria-label":x,tabIndex:s},n?Rd(m[1],h.createElement(yd,null),!0):Rd(m[0],c?h.createElement(Nd,null):h.createElement(Cd,null),!0)))},Pd=h.forwardRef(({style:e,children:t},n)=>{const o=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:o,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)});function zd(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const a=e[r],i=n+(Id(a)?String(a).length:1);if(i>t){const e=t-n;return o.push(String(a).slice(0,e)),o}o.push(a),n=i}return e}const Od=0,Td=4,Ad={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ld(e){const{enableMeasure:t,width:n,text:o,children:r,rows:a,expanded:i,measureDeps:s,miscDeps:l,onEllipsis:c}=e,d=h.useMemo(()=>Gt(o),[o]),u=h.useMemo(()=>(e=>e.reduce((e,t)=>e+(Id(t)?String(t).length:1),0))(d),[o]),p=h.useMemo(()=>r(d,!1),[o].concat(X(s))),[f,m]=h.useState(null),g=h.useRef(null),b=h.useRef(null),v=h.useRef(null),y=h.useRef(null),x=h.useRef(null),[$,w]=h.useState(!1),[C,S]=h.useState(Od),[E,k]=h.useState(0),[N,M]=h.useState(null);He(()=>{S(t&&n&&u?1:Od)},[n,o,a,t,d].concat(X(s))),He(()=>{if(1===C){S(2);const e=b.current&&getComputedStyle(b.current).whiteSpace;M(e)}else if(2===C){const e=!!v.current?.isExceed();S(e?3:Td),m(e?[0,u]:null),w(e);const t=v.current?.getHeight()||0,n=1===a?0:y.current?.getHeight()||0,o=x.current?.getHeight()||0,r=Math.max(t,n+o);k(r+1),c(e)}},[C]);const R=f?Math.ceil((f[0]+f[1])/2):0;He(()=>{const[e,t]=f||[0,0];if(e!==t){const n=(g.current?.getHeight()||0)>E;let o=R;t-e===1&&(o=n?e:t),m(n?[e,o]:[o,t])}},[f,R]);const I=h.useMemo(()=>{if(!t)return r(d,!1);if(3!==C||!f||f[0]!==f[1]){const e=r(d,!1);return[Td,Od].includes(C)?e:h.createElement("span",{style:{...Ad,WebkitLineClamp:a}},e)}return r(i?d:zd(d,f[0]),$)},[i,C,f,d].concat(X(l))),_={width:n,margin:0,padding:0,whiteSpace:"nowrap"===N?"normal":"inherit"};return h.createElement(h.Fragment,null,I,2===C&&h.createElement(h.Fragment,null,h.createElement(Pd,{style:{..._,...Ad,WebkitLineClamp:a},ref:v},p),h.createElement(Pd,{style:{..._,...Ad,WebkitLineClamp:a-1},ref:y},p),h.createElement(Pd,{style:{..._,...Ad,WebkitLineClamp:1},ref:x},r([],!0))),3===C&&f&&f[0]!==f[1]&&h.createElement(Pd,{style:{..._,top:400},ref:g},r(zd(d,R),!0)),1===C&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const Bd=({enableEllipsis:e,isEllipsis:t,open:n,children:o,tooltipProps:r})=>{if(!r?.title||!e)return o;const a=n&&t;return h.createElement(Xl,{open:a,...r},o)},Hd=["delete","mark","code","underline","strong","keyboard","italic"],jd=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:r,classNames:a,styles:i,direction:s,type:l,disabled:c,children:d,ellipsis:p,editable:f,copyable:m,actions:g,component:b,title:v,onMouseEnter:y,onMouseLeave:x,...$}=e,[w]=Wn("Text"),C=h.useRef(null),S=h.useRef(null),[E,k,N,M]=fd(n,a,i,s,e),R=Ot($,Hd),[I,_]=pd(f),[P,z]=je(!1,_.editing),{triggerType:O=["icon"]}=_,T=e=>{e&&_.onStart?.(),z(e)},A=(e=>{const t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current})(P);He(()=>{!P&&A&&S.current?.focus()},[P]);const L=e=>{e?.preventDefault(),T(!0)},[B,H]=pd(m),{placement:j="end"}=g??{},{copied:D,copyLoading:q,onClick:W}=ud({copyConfig:H,children:d}),[F,G]=h.useState(!1),[V,K]=h.useState(!1),[U,Y]=h.useState(!1),[Z,Q]=h.useState(!1),[J,ee]=h.useState(!0),[te,ne]=pd(p,{expandable:!1,symbol:e=>e?w?.collapse:w?.expand}),[oe,re]=je(ne.defaultExpanded||!1,ne.expanded),ae=te&&(!oe||"collapsible"===ne.expandable),{rows:ie=1}=ne,se=h.useMemo(()=>ae&&(void 0!==ne.suffix||ne.onEllipsis||ne.expandable||I||B),[ae,ne,I,B]);He(()=>{te&&!se&&(G(xt("webkitLineClamp")),K(xt("textOverflow")))},[se,te]);const[le,ce]=h.useState(ae),de=h.useMemo(()=>!se&&(1===ie?V:F),[se,V,F]);He(()=>{ce(de&&ae)},[de,ae]);const ue=((e,t,n)=>(0,h.useMemo)(()=>!0===e?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:zn(e)?{title:t??n,...e}:{title:e},[e,t,n]))(ne.tooltip,_.text,d),pe=le&&!!ue.title,fe=ae&&(le?pe&&Z:U),me=ae&&1===ie&&le,he=ae&&ie>1&&le,[ge,be]=h.useState(0),[ve,ye]=h.useState(!1),[xe,$e]=h.useState(!1),we=e=>{Y(e),U!==e&&ne.onEllipsis?.(e)};h.useEffect(()=>{const e=C.current;if(te&&pe&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);Z!==t&&Q(t)}},[te,pe,d,he,J,ge]),h.useEffect(()=>{const e=C.current;if("undefined"==typeof IntersectionObserver||!e||!pe||!ae)return;const t=new IntersectionObserver(()=>{ee(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[pe,ae]);const Ce=h.useMemo(()=>{if(te&&!le)return[_.text,d,v,ue.title].find(Id)},[te,le,v,ue.title,fe]);if(P)return h.createElement(cd,{value:_.text??("string"==typeof d?d:""),onSave:e=>{_.onChange?.(e),T(!1)},onCancel:()=>{_.onCancel?.(),T(!1)},onEnd:_.onEnd,prefixCls:N,className:o,style:r,direction:M,component:b,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon,classNames:E,styles:k});const Se=e=>{const t=e&&(()=>{const{expandable:e,symbol:t}=ne;return e?h.createElement("button",{type:"button",key:"expand",className:u(`${N}-${oe?"collapse":"expand"}`,E.action),style:k.action,onClick:e=>((e,t)=>{re(t.expanded),ne.onExpand?.(e,t)})(e,{expanded:!oe}),"aria-label":oe?w.collapse:w?.expand},On(t)?t(oe):t):null})(),n=(()=>{if(!I)return;const{icon:e,tooltip:t,tabIndex:n}=_,o=Gt(t)[0]||w?.edit,r="string"==typeof o?o:"";return O.includes("icon")?h.createElement(Xl,{key:"edit",title:!1===t?"":o},h.createElement("button",{type:"button",ref:S,className:u(`${N}-edit`,E.action),style:k.action,onClick:L,"aria-label":r,tabIndex:n},e||h.createElement(hn,{role:"button"}))):null})(),o=B?h.createElement(_d,{key:"copy",...H,prefixCls:N,copied:D,locale:w,onCopy:W,loading:q,iconOnly:!Rn(d),className:E.action,style:k.action}):null;return t||n||o?h.createElement("span",{key:"operations",className:u(`${N}-actions`,E.actions,{[`${N}-actions-start`]:"start"===j}),style:k.actions,onMouseEnter:()=>ye(!0),onMouseLeave:()=>ye(!1)},t,n,o):null};return h.createElement(Nn,{onResize:({offsetWidth:e})=>{be(e)},disabled:!ae},n=>h.createElement(Bd,{tooltipProps:ue,enableEllipsis:ae,isEllipsis:fe,open:xe&&!ve},h.createElement(md,{onMouseEnter:e=>{$e(!0),y?.(e)},onMouseLeave:e=>{$e(!1),x?.(e)},className:u({[`${N}-${l}`]:l,[`${N}-disabled`]:c,[`${N}-ellipsis`]:te,[`${N}-ellipsis-single-line`]:me,[`${N}-ellipsis-multiple-line`]:he,[`${N}-link`]:"a"===b},o),classNames:E,styles:k,prefixCls:N,style:{...r,WebkitLineClamp:he?ie:void 0},component:b,ref:Ze(n,C,t),direction:M,onClick:O.includes("text")?L:void 0,"aria-label":Ce?.toString(),title:v,...R},h.createElement(Ld,{enableMeasure:ae&&!le,text:d,rows:ie,width:ge,onEllipsis:we,expanded:oe,measureDeps:[j],miscDeps:[D,oe,q,I,B,j,w].concat(X(Hd.map(t=>e[t])))},(t,n)=>function({mark:e,code:t,underline:n,delete:o,strong:r,keyboard:a,italic:i},s){let l=s;function c(e,t){t&&(l=h.createElement(e,{},l))}return c("strong",r),c("u",n),c("del",o),c("code",t),c("mark",e),c("kbd",a),c("i",i),l}(e,h.createElement(h.Fragment,null,"start"===j?Se(n):null,t.length>0&&n&&!oe&&Ce?h.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!oe&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ne.suffix])(n),"start"===j?null:Se(n)))))))}),Dd=jd,qd=h.forwardRef((e,t)=>{const{ellipsis:n,rel:o,children:r,navigate:a,...i}=e,s={...i,rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o};return h.createElement(Dd,{...s,ref:t,ellipsis:!!n,component:"a"},r)}),Wd=h.forwardRef((e,t)=>{const{children:n,...o}=e;return h.createElement(Dd,{ref:t,...o,component:"div"},n)}),Fd=h.forwardRef((e,t)=>{const{ellipsis:n,children:o,...r}=e,a=h.useMemo(()=>zn(n)?Ot(n,["expandable","rows"]):n,[n]);return h.createElement(Dd,{ref:t,...r,ellipsis:a,component:"span"},o)}),Gd=[1,2,3,4,5],Xd=h.forwardRef((e,t)=>{const{level:n=1,children:o,...r}=e,a=Gd.includes(n)?`h${n}`:"h1";return h.createElement(Dd,{ref:t,...r,component:a},o)}),Vd=hd;Vd.Text=Fd,Vd.Link=qd,Vd.Title=Xd,Vd.Paragraph=Wd;const Kd=Vd,Ud=g().createContext({}),Yd=(0,h.createContext)(void 0);let Zd={...qn.Modal},Qd=[];const Jd=()=>Qd.reduce((e,t)=>({...e,...t}),qn.Modal),eu=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;h.useEffect(()=>{const e=function(e){if(e){const t={...e};return Qd.push(t),Zd=Jd(),()=>{Qd=Qd.filter(e=>e!==t),Zd=Jd()}}Zd={...qn.Modal}}(t?.Modal);return e},[t]);const r=h.useMemo(()=>({...t,exist:!0}),[t]);return h.createElement(Tn.Provider,{value:r},n)},tu=h.createContext(!0);function nu(e){const t=h.useContext(tu),{children:n}=e,[,o]=Rs(),{motion:r}=o,a=h.useRef(!1);return a.current||(a.current=t!==r),a.current?h.createElement(tu.Provider,{value:r},h.createElement(ao,{motion:r},n)):n}const ou=()=>null,ru=({iconPrefixCls:e,csp:t})=>(((e,t)=>{const[n,o]=Rs();Ci({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>os(e))})(e,t),null),au=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let iu,su,lu,cu;function du(){return iu||"ant"}function uu(){return su||kr}const pu=()=>({getPrefixCls:(e,t)=>t||(e?`${du()}-${e}`:du()),getIconPrefixCls:uu,getRootPrefixCls:()=>iu||du(),getTheme:()=>lu,holderRender:cu}),fu=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:r,affix:a,anchor:i,app:s,form:l,locale:c,componentSize:d,direction:u,space:p,splitter:f,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:b,popupOverflow:v,legacyLocale:y,parentContext:x,iconPrefixCls:$,theme:w,componentDisabled:C,segmented:S,statistic:E,spin:k,calendar:N,carousel:M,cascader:R,collapse:I,typography:_,checkbox:P,descriptions:z,divider:O,drawer:T,skeleton:A,steps:L,image:B,layout:H,list:j,mentions:D,modal:q,progress:W,result:F,slider:G,breadcrumb:X,masonry:V,menu:K,pagination:U,input:Y,inputPassword:Z,inputSearch:Q,textArea:J,otp:ee,empty:te,badge:ne,borderBeam:oe,radio:re,rate:ae,ribbon:ie,switch:se,transfer:le,avatar:ce,message:de,tag:ue,table:pe,card:fe,cardMeta:me,tabs:he,timeline:ge,timePicker:be,upload:ve,notification:ye,tree:xe,colorPicker:$e,datePicker:we,rangePicker:Ce,flex:Se,wave:Ee,dropdown:ke,warning:Ne,tour:Me,tooltip:Re,popover:Ie,popconfirm:_e,qrcode:Pe,floatButton:Oe,floatButtonGroup:Te,variant:Ae,inputNumber:Le,treeSelect:Be,watermark:He}=e,je=h.useMemo(()=>zn(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&c.default?.locale?c.default:c,[c]),De=h.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||x.getPrefixCls("");return t?`${r}-${t}`:r},[x.getPrefixCls,e.prefixCls]),qe=$||x.iconPrefixCls||kr,We=n||x.csp,Ge=function(e,t,n){fl();const o=e||{},r=!1!==o.inherit&&t?t:{...ss,hashed:t?.hashed??ss.hashed,cssVar:t?.cssVar},a=(0,h.useId)();return Fe(()=>{if(!e)return t;const i={...r.components};Object.keys(e.components||{}).forEach(t=>{i[t]={...i[t],...e.components[t]}});const s=`css-var-${a.replace(/:/g,"")}`,l={prefix:n?.prefixCls,...r.cssVar,...o.cssVar,key:o.cssVar?.key||s};return{...r,...o,token:{...r.token,...o.token},components:i,cssVar:l}},[o,r],(e,t)=>e.some((e,n)=>{const o=t[n];return!It(e,o,!0)}))}(w,x.theme,{prefixCls:De("")}),Xe={csp:We,autoInsertSpaceInButton:o,alert:r,affix:a,anchor:i,app:s,locale:je||y,direction:u,space:p,splitter:f,virtual:m,popupMatchSelectWidth:b??g,popupOverflow:v,getPrefixCls:De,iconPrefixCls:qe,theme:Ge,segmented:S,statistic:E,spin:k,calendar:N,carousel:M,cascader:R,collapse:I,typography:_,checkbox:P,descriptions:z,divider:O,drawer:T,skeleton:A,steps:L,image:B,input:Y,inputPassword:Z,inputSearch:Q,textArea:J,otp:ee,layout:H,list:j,mentions:D,modal:q,progress:W,result:F,slider:G,breadcrumb:X,masonry:V,menu:K,pagination:U,empty:te,badge:ne,borderBeam:oe,radio:re,rate:ae,ribbon:ie,switch:se,transfer:le,avatar:ce,message:de,tag:ue,table:pe,card:fe,cardMeta:me,tabs:he,timeline:ge,timePicker:be,upload:ve,notification:ye,tree:xe,colorPicker:$e,datePicker:we,rangePicker:Ce,flex:Se,wave:Ee,dropdown:ke,warning:Ne,tour:Me,tooltip:Re,popover:Ie,popconfirm:_e,qrcode:Pe,floatButton:Oe,floatButtonGroup:Te,variant:Ae,inputNumber:Le,treeSelect:Be,watermark:He},Ve={...x};Object.keys(Xe).forEach(e=>{void 0!==Xe[e]&&(Ve[e]=Xe[e])}),au.forEach(t=>{const n=e[t];n&&(Ve[t]=n)}),void 0!==o&&(Ve.button={autoInsertSpace:o,...Ve.button});const Ke=Fe(()=>Ve,Ve,(e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some(n=>e[n]!==t[n])}),{layer:Ue}=h.useContext(Yr),Ye=h.useMemo(()=>({prefixCls:qe,csp:We,layer:Ue?"antd":void 0}),[qe,We,Ue]);let Ze=h.createElement(h.Fragment,null,h.createElement(ru,{iconPrefixCls:qe,csp:We}),h.createElement(ou,{dropdownMatchSelectWidth:g}),t);const Qe=h.useMemo(()=>function(...e){return function(e,t={}){const{prepareArray:n}=t,o=n||(()=>[]);let r=Yt(e[0]);return e.forEach(e=>{!function t(n,a){const i=new Set(a),s=Vt(e,n),l=Array.isArray(s);if(l||"object"==typeof(c=s)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!i.has(s)){i.add(s);const e=Vt(r,n);l?r=Ut(r,n,o(e,s)):e&&"object"==typeof e||(r=Ut(r,n,Yt(s))),Zt(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],i)})}}else r=Ut(r,n,s);var c}([])}),r}(e)}(qn.Form?.defaultValidateMessages||{},Ke.locale?.Form?.defaultValidateMessages||{},Ke.form?.validateMessages||{},l?.validateMessages||{}),[Ke,l?.validateMessages]);Object.keys(Qe).length>0&&(Ze=h.createElement(Yd.Provider,{value:Qe},Ze)),je&&(Ze=h.createElement(eu,{locale:je,_ANT_MARK__:"internalMark"},Ze)),(qe||We)&&(Ze=h.createElement(ze.Provider,{value:Ye},Ze)),d&&(Ze=h.createElement(zr,{size:d},Ze)),Ze=h.createElement(nu,null,Ze),Re?.unique&&(Ze=h.createElement(Wl,null,Ze));const Je=h.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:o,...r}=Ge||{},a=e&&(!Array.isArray(e)||e.length>0)?ta(e):ws,i={};Object.entries(n||{}).forEach(([e,t])=>{const n={...t};"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||On(n.algorithm))&&(n.theme=ta(n.algorithm)),delete n.algorithm),i[e]=n});const s={...is,...t};return{...r,theme:a,token:s,components:i,override:{override:s,...i},cssVar:o}},[Ge]);return w&&(Ze=h.createElement(ls.Provider,{value:Je},Ze)),Ke.warning&&(Ze=h.createElement(pl.Provider,{value:Ke.warning},Ze)),void 0!==C&&(Ze=h.createElement(yc,{disabled:C},Ze)),h.createElement(Mr.Provider,{value:Ke},Ze)},mu=e=>{const t=h.useContext(Mr),n=h.useContext(Tn);return h.createElement(fu,{parentContext:t,legacyLocale:n,...e})};mu.ConfigContext=Mr,mu.SizeContext=Or,mu.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(iu=t),void 0!==n&&(su=n),"holderRender"in e&&(cu=r),o&&(lu=o)},mu.useConfig=function(){return{componentDisabled:(0,h.useContext)(xc),componentSize:(0,h.useContext)(Or)}},Object.defineProperty(mu,"SizeContext",{get:()=>Or});const hu=mu;const gu=({className:e,style:t,percent:n})=>h.createElement("progress",{className:e,max:"100",value:n,style:t});function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},bu.apply(this,arguments)}const vu=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:r,classNames:a,styles:i,components:s,title:l,description:c,icon:d,actions:p,role:f,closable:m,offset:g,notificationIndex:b,stackInThreshold:v,props:y,duration:x=4.5,showProgress:$,hovering:w,pauseOnHover:C=!0,onClick:S,onMouseEnter:E,onMouseLeave:k,onClose:N}=e,[M,R]=h.useState(0),I=`${n}-notice`,[_,P,z]=function(e){const t=h.useMemo(()=>!1===e?{closeIcon:null,disabled:!0}:"object"==typeof e&&null!==e?e:{},[e]),n=h.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),o=h.useMemo(()=>Lt(n,!0),[n]);return[!!e,n,o]}(m),O=Oe(()=>{P.onClose?.(),N?.()}),[T,A]=h.useState(!1),[L,B]=function(e,t,n){const o="number"==typeof e?e:0,r=1e3*Math.max(o,0),a=Oe(t),i=Oe(n),[s,l]=h.useState(r>0),c=h.useRef(0),d=h.useRef(null);function u(){const e=Date.now(),t=d.current;null!==t&&(c.current+=e-t),d.current=e}const p=h.useCallback(()=>{u(),l(!1)},[]),f=h.useCallback(()=>{r>0?(d.current=Date.now(),l(!0)):i(0)},[r]);return h.useEffect(()=>{c.current=0,l(r>0)},[r]),h.useEffect(()=>{if(!s)return;let e=null;return function t(){u(),c.current>=r?(i(1),a()):(i(Math.min(c.current/r,1)),e=Ft(t))}(),()=>{Ft.cancel(e)}},[r,s]),[f,p]}(x,O,R),H=100-Math.min(Math.max(100*M,0),100),j=s?.progress||gu;h.useEffect(()=>{C&&(w?B():T||L())},[w,T,B,L,C]);const D=h.useRef(g);void 0!==g&&(D.current=g);const q=h.useRef(b);void 0!==b&&(q.current=b);const W=g??D.current,F=b??q.current??0,G=null!=l?h.createElement("div",{className:u(`${I}-title`,a?.title),style:i?.title},l):null,X=null!=c?h.createElement("div",{className:u(`${I}-description`,a?.description),style:i?.description},c):null;let V=null;V=null!==G&&null!==X?h.createElement("div",{className:u(`${I}-section`,a?.section),style:i?.section},G,X):G||X,null!=d&&(V=h.createElement("div",{className:u(`${I}-wrapper`,a?.wrapper),style:i?.wrapper},h.createElement("div",{className:u(`${I}-icon`,a?.icon),style:i?.icon},d),V));const K=p?h.createElement("div",{className:u(`${I}-actions`,a?.actions),style:i?.actions},p):null,U={"--notification-index":F,...i?.root,...r};void 0!==W&&(U["--notification-y"]=`${W}px`);const Y=f??y?.role??"alert";return h.createElement("div",bu({},y,{ref:t,role:Y,"data-notification-index":F,className:u(I,o,a?.root,{[`${I}-closable`]:_,[`${I}-stack-in-threshold`]:v}),style:U,onClick:S,onMouseEnter:function(e){A(!0),C&&B(),E?.(e)},onMouseLeave:function(e){A(!1),C&&!w&&L(),k?.(e)}}),V,K,_&&h.createElement("button",bu({className:u(`${I}-close`,a?.close),"aria-label":"Close"},z,{style:i?.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),O()}}),P.closeIcon),$&&"number"==typeof x&&x>0&&h.createElement(j,{className:u(`${I}-progress`,a?.progress),percent:H,style:i?.progress}))}),yu=vu,xu=h.createContext({}),$u=({children:e,classNames:t})=>{const n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(xu.Provider,{value:n},e)};function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wu.apply(this,arguments)}const Cu=h.forwardRef((e,t)=>{const{listPrefixCls:n,height:o,topNoticeHeight:r=0,topNoticeWidth:a=0,className:i,style:s,...l}=e,c=`${n}-content`,d=h.useRef(o),p=o<d.current?"decrease":"increase";d.current=o;const f={...s,height:o,"--top-notificiation-height":`${r}px`,"--top-notificiation-width":`${a}px`};return h.createElement("div",wu({},l,{className:u(c,`${c}-${p}`,i),style:f,ref:t}))}),Su=Cu;function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Eu.apply(this,arguments)}const ku=["wrapper","root","icon","section","title","description","actions","close","progress"],Nu=e=>{const{config:t,components:n,contextClassNames:o,classNames:r,styles:a,className:i,style:s,nodeRef:l,listHovering:c,stackEnabled:d,pauseOnHover:p,setNodeSize:f,onNoticeClose:m,...g}=e,{key:b,placement:v,...y}=t,x=String(b),$=h.useCallback(e=>{f(x,e)},[f,x]),w=Qe(l,$);return h.createElement(yu,Eu({},y,g,{ref:w,className:u(o?.notice,t.className,i),style:{...s,...t.style},classNames:(S=[r,t.classNames],ku.reduce((e,t)=>(e[t]=u(...S.map(e=>e?.[t])),e),{})),styles:(C=[a,t.styles],ku.reduce((e,t)=>(e[t]=Object.assign({},...C.map(e=>e?.[t])),e),{})),components:{...n,...t.components},hovering:d&&c,pauseOnHover:t.pauseOnHover??p,onClose:()=>{t.onClose?.(),m?.(b)}}));var C,S},Mu=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:o,classNames:r,styles:a,components:i,stack:s,motion:l,placement:c,className:d,style:p,onNoticeClose:f,onAllRemoved:m}=e,{classNames:g}=h.useContext(xu),b=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v="function"==typeof l?l(c):l,[y,{offset:x,threshold:$}]=(e=>{const t={offset:8,threshold:3};return e&&"object"==typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3),[!!e,t]})(s),[w,C]=h.useState(!1),S=y&&(w||b.length<=$),E=h.useMemo(()=>{if(y&&!S)return{offset:x,threshold:$}},[S,x,y,$]),[k,N]=h.useState(0),M=h.useRef(null),[R,I,_,P,z]=function(e,t,n=0){const[o,r]=function(){const[e,t]=h.useState({}),n=h.useCallback((e,n)=>{if(!n)return void t(t=>{if(!(e in t))return t;const n={...t};return delete n[e],n});const o={width:n.offsetWidth,height:n.offsetHeight};t(t=>{const n=t[e];return n&&n.width===o.width&&n.height===o.height?t:{...t,[e]:o}})},[]);return[e,n]}(),[a,i,s,l]=h.useMemo(()=>{let r=0,a=0;const i=t?.threshold??0,s=new Map;let l,c;return e.slice().reverse().forEach((e,d)=>{const u=String(e.key),p=o[u]?.height??0,f=t&&d>0?r+(t.offset??0)-p:r;s.set(u,f),0===d&&(l=p,c=o[u]?.width??0),(!t||d<i)&&(a=Math.max(a,f+p)),t?r=f+p:r+=p+n}),[s,a,l,c]},[e,n,o,t]);return[a,r,i,s,l]}(t,E,k),O=!!t.length;h.useEffect(()=>{const e=M.current;if(!e)return;const{gap:t,rowGap:n}=window.getComputedStyle(e),o=parseFloat(n||t)||0;N(e=>e===o?e:o)},[O]);const T=`${n}-list`;return h.createElement("div",{className:u(n,T,`${n}-${c}`,g?.list,d,r?.list,{[`${n}-stack`]:y,[`${n}-stack-expanded`]:S,[`${T}-hovered`]:w}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...a?.list,...p}},h.createElement(Su,{listPrefixCls:T,height:_,topNoticeHeight:P,topNoticeWidth:z,className:r?.listContent,style:a?.listContent,ref:M},h.createElement(To,Eu({component:!1,keys:b,motionAppear:!0},v,{onAllRemoved:()=>{c&&m?.(c)}}),({config:e,className:t,style:s},l)=>{const{key:c}=e,d=String(c),u=function(e,t){const n=String(t),o=e.findIndex(e=>e.key===n);if(-1!==o)return e.length-o-1}(b,c),p=y&&void 0!==u&&u<$;return h.createElement(Nu,{key:c,config:e,components:i,contextClassNames:g,classNames:r,styles:a,className:t,style:s,nodeRef:l,prefixCls:n,offset:R.get(d),notificationIndex:u,stackInThreshold:p,listHovering:w,stackEnabled:y,pauseOnHover:o,setNodeSize:I,onNoticeClose:f})})))},Ru=h.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:o,motion:r,maxCount:a,pauseOnHover:i,classNames:l,styles:c,components:d,className:u,style:p,onAllRemoved:f,stack:m,renderNotifications:g}=e,[b,v]=h.useState([]),[y,x]=h.useState({}),$=h.useRef(!1);h.useImperativeHandle(t,()=>({open:e=>{v(t=>{let n=[...t];const o=n.findIndex(t=>t.key===e.key),r={...e};return o>=0?(r.times=(t[o]?.times??0)+1,n[o]=r):(r.times=0,n.push(r)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{v(t=>t.filter(t=>t.key!==e))},destroy:()=>{v([])}})),h.useEffect(()=>{const e={};b.forEach(t=>{const n=t.placement??"topRight";e[n]=e[n]||[],e[n].push(t)}),Object.keys(y).forEach(t=>{e[t]=e[t]||[]}),x(e)},[b]);const w=Oe(e=>{x(t=>{const n={...t};return(n[e]||[]).length||delete n[e],n})});if(h.useEffect(()=>{Object.keys(y).length>0?$.current=!0:$.current&&(f?.(),$.current=!1)},[y,f]),!o)return null;const C=Object.keys(y);return(0,s.createPortal)(h.createElement(h.Fragment,null,C.map(e=>{const t=h.createElement(Mu,{key:e,configList:y[e],placement:e,prefixCls:n,pauseOnHover:i,classNames:l,styles:c,components:d,className:u?.(e),style:p?.(e),motion:r,stack:m,onNoticeClose:e=>{v(t=>t.filter(t=>t.key!==e))},onAllRemoved:w});return g?h.cloneElement(g(t,{prefixCls:n,key:e}),{key:e}):t})),o)}),Iu=Ru,_u=()=>document.body;let Pu=0;var zu=n(187);function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ou.apply(this,arguments)}const Tu=(e,t)=>h.createElement(pn,Ou({},e,{ref:t,icon:zu.A})),Au=h.forwardRef(Tu);var Lu=n(925);function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Bu.apply(this,arguments)}const Hu=(e,t)=>h.createElement(pn,Bu({},e,{ref:t,icon:Lu.A})),ju=h.forwardRef(Hu);var Du=n(322);function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qu.apply(this,arguments)}const Wu=(e,t)=>h.createElement(pn,qu({},e,{ref:t,icon:Du.A})),Fu=h.forwardRef(Wu);var Gu=n(519);function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xu.apply(this,arguments)}const Vu=(e,t)=>h.createElement(pn,Xu({},e,{ref:t,icon:Gu.A})),Ku=h.forwardRef(Vu),Uu=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Yu={},Zu=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(!Mn(e)&&!Mn(t))return null;let n={closeIcon:"boolean"!=typeof t&&Mn(t)?t:void 0};return zn(e)&&(n={...n,...e}),n},Qu=(e,t,n=Yu,o="Close")=>{const r=Zu(e?.closable,e?.closeIcon),a=Zu(t?.closable,t?.closeIcon),i={closeIcon:g().createElement(ju,null),...n},s=((e,t,n)=>!1!==e&&(e?Xt(n,t,e):!1!==t&&(t?Xt(n,t):!!n.closable&&n)))(r,a,i),l="boolean"!=typeof s&&!!s?.disabled;if(!1===s)return[!1,null,l,{}];const[c,d]=((e,t,n)=>{const{closeIconRender:o}=t,{closeIcon:r,...a}=e;let i=r;const s=Lt(a,!0);return Mn(i)&&(o&&(i=o(i)),i=g().isValidElement(i)?g().cloneElement(i,{"aria-label":n,...i.props,...s}):g().createElement("span",{"aria-label":n,...s},i)),[i,s]})(s,i,o);return[!0,c,l,d]},Ju=(e,t,n=Yu)=>{const[o]=Wn("global",qn.global);return g().useMemo(()=>Qu(e,t,{closeIcon:g().createElement(ju,null),...n},o.close),[e,t,n,o.close])},ep=e=>{const{motionDurationMid:t,motionEaseInOut:n}=e,o=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(e=>`${e} ${o}`).join(", ")}},tp=(e,t)=>{const{componentCls:n,antCls:o,colorSuccess:r,colorInfo:a,colorWarning:i,colorError:s,colorTextHeading:l,colorText:c,boxShadow:d,borderRadiusLG:u,fontSize:p,lineHeight:f,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:b,calc:v}=e,y=`${n}-notice`,[x,$]=zs(o,"notification");return{[y]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${sa(v(g).mul(2).equal())})`,padding:h,pointerEvents:"auto",[x("icon-font-size")]:t.iconFontSize,[x("title-font-size")]:t.titleFontSize,[x("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:m,borderRadius:u,boxShadow:d,fontSize:p,lineHeight:f,wordWrap:"break-word",overflow:"visible",...ep(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:v(b).mul(-1).equal(),height:b,content:'""'},...t.typeStyle&&{"&-success":{background:$("color-success-bg",m)},"&-error":{background:$("color-error-bg",m)},"&-info":{background:$("color-info-bg",m)},"&-warning":{background:$("color-warning-bg",m)}}},[`${y}-wrapper`]:{display:"flex",...t.contentStyle},[`${y}-title`]:{color:l,fontSize:$("title-font-size"),lineHeight:$("title-line-height")},[`${y}-icon`]:{flex:"none",fontSize:$("icon-font-size"),lineHeight:1,[`&${y}-icon-success`]:{color:r},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:i},[`&${y}-icon-error`]:{color:s}}}},np=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:o,fontSize:r,borderRadiusLG:a,width:i,notificationIconSize:s,colorText:l,motionDurationMid:c,fontSizeLG:d,lineHeightLG:u,marginSM:p,marginXS:f,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:b,colorIcon:v,borderRadiusSM:y,colorIconHover:x,colorBgTextHover:$,colorBgTextActive:w}=e,C=`${t}-notice`;return{...tp(e,{width:i,iconFontSize:s,titleFontSize:d,titleLineHeight:u,contentStyle:{alignItems:"flex-start",gap:p},typeStyle:!0}),[`${C}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:f,minWidth:0},[`${C}-description`]:{color:l,fontSize:r},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:{position:"absolute",top:h,insetInlineEnd:g,display:"flex",alignItems:"center",justifyContent:"center",width:b,height:b,color:v,background:"none",border:"none",borderRadius:y,outline:"none",transition:["color","background-color"].map(e=>`${e} ${c}`).join(", "),"&:hover":{color:x,backgroundColor:$},"&:active":{backgroundColor:w},...ns(e)},[`${C}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${sa(a)} * 2)`,blockSize:o,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:"right",marginTop:p}}},op=e=>{const{componentCls:t}=e;return{[t]:np(e)}},rp=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ap=e=>`translate3d(${e?.x??"0"}, ${e?.y??"0"}, 0) scale(var(--notification-scale, 1))`,ip=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",o=e.endsWith("Right")?"right":"left",{blockEnd:r,inlineEnd:a}=((e,t)=>({blockEnd:"top"===e?"bottom":"top",inlineEnd:"left"===t?"right":"left"}))(n,o),i="top"===e||"bottom"===e,s="top"===e||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:r,horizontal:o,inlineEnd:a,motionOffset:i?{x:"-50%",y:s}:{x:s},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}},sp=e=>"bottom"===e?"column-reverse":"column",lp=e=>{const t="var(--notification-margin-edge, 0px)";return`calc(var(--notification-${e}, ${t}) - ${t})`},cp=e=>sa(e.calc(e.marginXXL).mul(-1).equal()),dp=e=>{const t=cp(e);return`inset(${t} ${t} ${t} ${t})`},up=(e,t)=>{const n=cp(e);return"bottom"===t?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},pp=(e,t)=>{const{componentCls:n}=e,{placement:o,vertical:r,blockEnd:a,horizontal:i,inlineEnd:s,isCenterPlacement:l}=t,c=`${n}-notice`,d=`${c}${n}-fade`,u=ap(t.motionOffset),p=ap(t.baseMotionOffset),f=(e=>"bottom"===e?"center top":"center bottom")(r);return{[`&${n}-${o}`]:{[r]:lp(r),[a]:"auto",display:"flex",flexDirection:sp(r),...l?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[i]:0,[s]:"auto"},[c]:{[r]:"var(--notification-y, 0)",...l?{left:"50%",transform:p}:{[i]:"var(--notification-x, 0)"},transformOrigin:f},[`${d}-appear-prepare, ${d}-enter-prepare`]:{opacity:0,transform:u,transition:"none"},[`${d}-appear-start, ${d}-enter-start`]:{opacity:0,transform:u},[`${d}-appear-active, ${d}-enter-active`]:{opacity:1,transform:p},[`${d}-leave-start`]:{opacity:1,transform:p},[`${d}-leave-active`]:{opacity:0,transform:u},[`&${n}-stack:not(${n}-stack-expanded)`]:{[c]:{clipPath:up(e,r)},[`${c}[data-notification-index='0']`]:{clipPath:dp(e)}}}}},fp=(e,t=rp)=>{const{notificationMotionOffset:n}=e,o=sa(n);return{...t.reduce((t,n)=>({...t,...pp(e,ip(n,o))}),{})}},mp=e=>{const{componentCls:t}=e;return{[t]:fp(e)}},hp=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),gp=e=>{const t=e.paddingMD,n=e.paddingLG;return Gi(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${sa(e.paddingMD)} ${sa(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},bp=e=>{const{componentCls:t,motionDurationMid:n,motionDurationSlow:o,motionEaseInOut:r}=e,a=`${t}-list-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${o} * 2) ${r} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},vp=(e,t)=>{const{componentCls:n,notificationMarginEdge:o}=e,r="--notification-margin-edge",a=`${n}-notice`,i=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(o).mul(2)).equal():"100%",l=`${a}:nth-last-child(n + ${(t.stackVisibleCount??3)+1})`,c=`inset(${d=sa(e.calc(e.marginXXL).mul(-1).equal())} ${d} ${d} ${d})`;var d;return{[n]:{...Ji(e),[r]:sa(o),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${i}`]:{maxHeight:"100vh",padding:`var(${r})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...bp(e),[`&${n}-stack`]:{[a]:{clipPath:c},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[l]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}}}},yp=Ps(["Notification","PurePanel"],e=>(e=>{const{componentCls:t,width:n}=e,o=`${t}-notice`,r=`${o}-actions`,a=np(e);return{[`${o}-pure-panel`]:{width:n,maxWidth:"100%",...a,[o]:{...a[o],position:"relative",width:"100%",maxWidth:"100%"},[r]:{...a[r],float:"none",textAlign:"end"}}}})(gp(e)),hp),xp=Is("Notification",e=>((e,t)=>{const n=t.itemStyle??op;return[vp(e,t),n(e),mp(e)]})(gp(e),{listWidthKey:"width"}),hp),$p={info:h.createElement(Ku,null),success:h.createElement(Au,null),error:h.createElement(mc,null),warning:h.createElement(Fu,null),loading:h.createElement(Nd,null)};function wp(e,t){return null===t||!1===t?null:t||h.createElement(ju,{className:`${e}-close-icon`})}const Cp=4.5,Sp={offset:8},Ep=({children:e,prefixCls:t})=>{const n=ml(t),[o,r]=xp(t,n);return g().createElement($u,{classNames:{list:u(o,r,n)}},e)},kp=(e,{prefixCls:t,key:n})=>g().createElement(Ep,{prefixCls:t,key:n},e),Np=g().forwardRef((e,t)=>{const{top:n,bottom:o,prefixCls:r,getContainer:a,maxCount:i,rtl:s,onAllRemoved:l,stack:c,duration:d=Cp,pauseOnHover:p=!0,showProgress:f}=e,{getPrefixCls:m,getPopupContainer:b,direction:v}=_r("notification"),{notification:y}=(0,h.useContext)(Mr),x=r||m("notification"),$=(0,h.useMemo)(()=>!!(In(d)&&d>0)&&d,[d]),[w,C]=Zs([y?.classNames,e?.classNames],[y?.styles,e?.styles],{props:e}),S=((e,t)=>h.useMemo(()=>{const n=e??t;return!!n&&{...zn(t)?t:{},...zn(n)?n:{}}},[e,t]))(c,Sp),[E,k]=function(e={}){const{getContainer:t=_u,motion:n,prefixCls:o,placement:r,closable:a,duration:i,showProgress:s,pauseOnHover:l,classNames:c,styles:d,components:u,maxCount:p,className:f,style:m,onAllRemoved:g,stack:b,renderNotifications:v}=e,y={placement:r,closable:a,duration:i,showProgress:s},[x,$]=h.useState(),w=h.useRef(null),[C,S]=h.useState([]),E=h.createElement(Iu,{container:x,ref:w,prefixCls:o,motion:n,maxCount:p,pauseOnHover:l,classNames:c,styles:d,components:u,className:f,style:m,onAllRemoved:g,stack:b,renderNotifications:v}),k=Oe(e=>{const t=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{const o=e[n];void 0!==o&&(t[n]=o)})}),t}(y,e);null!==t.key&&void 0!==t.key||(t.key=`rc-notification-${Pu}`,Pu+=1),S(e=>[...e,{type:"open",config:t}])}),N=h.useMemo(()=>({open:k,close:e=>{S(t=>[...t,{type:"close",key:e}])},destroy:()=>{S(e=>[...e,{type:"destroy"}])}}),[]);return h.useEffect(()=>{$(t())}),h.useEffect(()=>{w.current&&C.length&&(C.forEach(e=>{switch(e.type){case"open":w.current?.open(e.config);break;case"close":w.current?.close(e.key);break;case"destroy":w.current?.destroy()}}),S(e=>{const t=e.filter(e=>!C.includes(e));return t.length===e.length?e:t}))},[C]),[N,E]}({prefixCls:x,style:()=>function(e,t){return{...Mn(e)&&{"--notification-top":sa(e)},...Mn(t)&&{"--notification-bottom":sa(t)}}}(n,o),className:()=>u({[`${x}-rtl`]:s??"rtl"===v}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:{closeIcon:wp(x)},duration:$,getContainer:()=>a?.()||b?.()||document.body,maxCount:i,pauseOnHover:p,showProgress:f,classNames:w,styles:C,onAllRemoved:l,renderNotifications:kp,stack:S});return g().useImperativeHandle(t,()=>({...E,prefixCls:x,notification:y})),k});function Mp(e){const t=g().useRef(null),{notification:n}=(fl(),g().useContext(Mr)),o=g().useMemo(()=>{const o=o=>{if(!t.current)return;const{open:r,prefixCls:a,notification:i}=t.current,s=i?.className||{},l=i?.style||{},c=`${a}-notice`,{title:d,message:p,description:f,icon:m,type:h,btn:g,actions:b,className:v,style:y,role:x="alert",closeIcon:$,closable:w,classNames:C={},styles:S={},...E}=o,k=d??p,N=Rn(k),M=b??g,R=wp(c,function(e,t,n){return void 0!==e?e:void 0!==t?.closeIcon?t.closeIcon:n?.closeIcon}($,e,i)),[I,_,,P]=Qu(Uu({...e||{},...o}),Uu(n),{closable:!0,closeIcon:R}),z=!!I&&{onClose:zn(w)?w.onClose:void 0,closeIcon:_,...P},O=Ys(C,{props:o}),T=Ys(S,{props:o}),A=m||(h?$p[h]:null),L=!m&&h?`${c}-icon-${h}`:void 0;return r({placement:e?.placement??"topRight",...E,title:N?k:null,description:f,icon:A,actions:M,role:x,classNames:{...O,icon:u(L,O.icon)},styles:{...T,root:{...l,...T.root}},className:u({[`${c}-${h}`]:h},v,s),style:y,closable:z})},r={open:o,destroy:e=>{void 0!==e?t.current?.close(e):t.current?.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>o({...t,type:e})}),r},[e,n]);return[o,g().createElement(Np,{key:"notification-holder",...e,ref:t})]}let Rp=null,Ip=e=>e(),_p=[],Pp={};function zp(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r,showProgress:a,pauseOnHover:i}=Pp,s=e?.()||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:o,bottom:r,showProgress:a,pauseOnHover:i}}const Op=g().forwardRef((e,t)=>{const{notificationConfig:n,sync:o}=e,{getPrefixCls:r}=(0,h.useContext)(Mr),a=Pp.prefixCls||r("notification"),i=(0,h.useContext)(Ud),[s,l]=Mp({...n,prefixCls:a,...i.notification});return g().useEffect(o,[]),g().useImperativeHandle(t,()=>{const e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),s[t].apply(s,e))}),{instance:e,sync:o}}),l}),Tp=g().forwardRef((e,t)=>{const[n,o]=g().useState(zp),r=()=>{o(zp)};g().useEffect(r,[]);const a=pu(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=g().createElement(Op,{ref:t,sync:r,notificationConfig:n});return g().createElement(hu,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Ap=()=>{if(!Rp){const e=document.createDocumentFragment(),t={fragment:e};return Rp=t,void Ip(()=>{Jt(g().createElement(Tp,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,Ap())})}}),e)})}Rp.instance&&(_p.forEach(e=>{switch(e.type){case"open":Ip(()=>{Rp.instance.open({...Pp,...e.config})});break;case"destroy":Ip(()=>{Rp?.instance?.destroy(e.key)})}}),_p=[])};function Lp(e){pu(),_p.push({type:"open",config:e}),Ap()}const Bp={open:Lp,destroy:e=>{_p.push({type:"destroy",key:e}),Ap()},config:function(e){Pp={...Pp,...e},Ip(()=>{Rp?.sync?.()})},useNotification:function(e){return Mp(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,icon:n,type:o,message:r,title:a,description:i,btn:s,actions:l,closeIcon:c,className:d,style:p,styles:f,classNames:m,closable:g,role:b,...v}=e,{getPrefixCls:y,className:x,style:$,classNames:w,styles:C}=_r("notification"),[S,E]=Zs([w,m],[C,f],{props:e}),{notification:k}=h.useContext(Mr),N=l??s,M=a??r,R=Rn(M),I=t||y("notification"),_=`${I}-notice`,P=n||(o?$p[o]:null),z=!n&&o?`${_}-icon-${o}`:void 0,{root:O,...T}=S,{root:A,...L}=E,B=ml(I),[H,j]=xp(I,B),[D,q,,W]=Ju(Uu(e),Uu(k),{closable:!0,closeIcon:h.createElement(ju,{className:`${I}-close-icon`}),closeIconRender:e=>wp(I,e)}),F=!!D&&{onClose:zn(g)?g?.onClose:void 0,closeIcon:q,...W};return h.createElement("div",{className:u(`${_}-pure-panel`,H,d,j,B,O),style:A},h.createElement(yp,{prefixCls:I}),h.createElement(yu,{style:{...$,...p},...v,prefixCls:I,duration:null,closable:F,className:x,title:R?M:null,description:i,icon:P,actions:N,role:b,classNames:{...T,icon:u(z,T.icon)},styles:L}))},_InternalListDoNotUseOrYouWillBeFired:e=>{const{items:t,classNames:n,placement:o="topRight",style:r}=e,{getPrefixCls:a}=_r("notification"),i=a("notification"),s=ml(i),[l,c]=xp(i,s),d=`${i}-notice`,p=t.map(e=>{const{actions:t,description:n,duration:o,key:r,showProgress:a,title:i,type:s}=e,l=`${d}-icon-${s}`;return{key:r,actions:t,closable:{closeIcon:wp(d)},description:n,duration:o,icon:$p[s],showProgress:a,title:i,className:`${d}-${s}`,classNames:{icon:l}}});return h.createElement(Mu,{prefixCls:i,placement:o,configList:p,className:u(l,c,s),classNames:n,style:r,stack:!1})}},Hp=Bp;["success","info","warning","error"].forEach(e=>{Hp[e]=t=>Lp({...t,type:e})});const jp=Hp;function Dp(e){return["small","middle","medium","large"].includes(e)}function qp(e){return!!e&&In(e)}const Wp=e=>{const{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:r,paddingXS:a,fontSizeLG:i,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u,antCls:p}=e,[f,m]=zs(p,"space-addon");return{[t]:[{...Ji(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:o,margin:0,borderWidth:u,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:l},"&-small":{paddingInline:a,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[f("addon-border-color")]:r,[f("addon-background")]:d,[f("addon-border-color-outlined")]:r,[f("addon-background-filled")]:d,borderColor:m("addon-border-color"),background:m("addon-background"),"&-variant-outlined":{[f("addon-border-color")]:m("addon-border-color-outlined")},"&-variant-filled":{[f("addon-border-color")]:"transparent",[f("addon-background")]:m("addon-background-filled"),[`&${t}-disabled`]:{[f("addon-border-color")]:r,[f("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[f("addon-border-color-outlined")]:e.colorError,[f("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[f("addon-border-color-outlined")]:e.colorWarning,[f("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Fp=Is("Addon",e=>[Wp(e),Sc(e,{focus:!1})]),Gp=g().forwardRef((e,t)=>{const{className:n,children:o,style:r,prefixCls:a,variant:i="outlined",disabled:s,status:l,...c}=e,{getPrefixCls:d,direction:p}=g().useContext(Mr),f=d("space-addon",a),[m,h]=Fp(f),{compactItemClassnames:b,compactSize:v}=As(f,p),y=u(f,m,b,h,`${f}-variant-${i}`,gc(f,l),{[`${f}-${v}`]:v,[`${f}-disabled`]:s},n);return g().createElement("div",{ref:t,className:y,style:r,...c},o)}),Xp=Gp,Vp=g().createContext({latestIndex:0}),Kp=Vp.Provider,Up=e=>{const{className:t,prefix:n,index:o,children:r,separator:a,style:i,classNames:s,styles:l}=e,{latestIndex:c}=h.useContext(Vp);return Rn(r)?h.createElement(h.Fragment,null,h.createElement("div",{className:t,style:i},r),o<c&&a&&h.createElement("span",{className:u(`${n}-item-separator`,s?.separator),style:l?.separator},a)):null},Yp=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Zp=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Qp=Is("Space",e=>{const t=Gi(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Yp(t),Zp(t)]},()=>({}),{resetStyle:!1}),Jp=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,size:r,className:a,style:i,classNames:s,styles:l}=_r("space"),{size:c=r??"small",align:d,className:p,rootClassName:f,children:m,direction:g,orientation:b,prefixCls:v,split:y,separator:x,style:$,vertical:w,wrap:C=!1,classNames:S,styles:E,...k}=e,[N,M]=Array.isArray(c)?c:[c,c],R=Dp(M),I=Dp(N),_=qp(M),P=qp(N),z=Gt(m,{keepEmpty:!0}),[O,T]=Er(b,w,g),A=void 0!==d||T?d:"center",L=x??y,B=n("space",v),[H,j]=Qp(B),D={...e,size:c,orientation:O,align:A},[q,W]=Zs([s,S],[l,E],{props:D}),F=u(B,a,H,`${B}-${O}`,{[`${B}-rtl`]:"rtl"===o,[`${B}-align-${A}`]:A,[`${B}-gap-row-${M}`]:R,[`${B}-gap-col-${N}`]:I},p,f,j,q.root),G=u(`${B}-item`,q.item),X=z.map((e,t)=>{const n=e?.key||`${G}-${t}`;return h.createElement(Up,{prefix:B,classNames:q,styles:W,className:G,key:n,index:t,separator:L,style:W.item},e)}),V=h.useMemo(()=>({latestIndex:z.reduce((e,t,n)=>Rn(t)?n:e,0)}),[z]);if(0===z.length)return null;const K={};return C&&(K.flexWrap="wrap"),!I&&P&&(K.columnGap=N),!R&&_&&(K.rowGap=M),h.createElement("div",{ref:t,className:F,style:{...K,...W.root,...i,...$},...k},h.createElement(Kp,{value:V},X))}),ef=Jp;ef.Compact=Hs,ef.Addon=Xp;const tf=ef,nf=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),of=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m,lineWidth:h,lineType:g,colorSuccessBorder:b,colorWarningBorder:v,colorErrorBorder:y,colorInfoBorder:x}=e;return{[t]:{...Ji(e),position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,borderWidth:sa(h),borderStyle:g,[`&${t}-success`]:{borderColor:b},[`&${t}-info`]:{borderColor:x},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${n} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:o,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:u}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},rf=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBg:o,colorWarning:r,colorWarningBg:a,colorError:i,colorErrorBg:s,colorInfo:l,colorInfoBg:c}=e;return{[t]:{"&-success":nf(o,n,t),"&-info":nf(c,l,t),"&-warning":nf(a,r,t),"&-error":{...nf(s,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},af=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:a,lineHeight:sa(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...ns(e),[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:s}}}}},sf=Is("Alert",e=>[of(e),rf(e),af(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),lf=e=>{const{icon:t,type:n,className:o,style:r,successIcon:a,infoIcon:i,warningIcon:s,errorIcon:l}=e,c={success:a??h.createElement(Au,null),info:i??h.createElement(Ku,null),error:l??h.createElement(mc,null),warning:s??h.createElement(Fu,null)};return h.createElement("span",{className:o,style:r},t??c[n])},cf=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r,ariaProps:a,className:i,style:s}=e,l=!0===o||void 0===o?h.createElement(ju,null):o;return t?h.createElement("button",{type:"button",onClick:r,className:u(`${n}-close-icon`,i),tabIndex:0,style:s,...a},l):null},df=h.forwardRef((e,t)=>{const{description:n,prefixCls:o,message:r,title:a,banner:i,className:s,rootClassName:l,style:c,onMouseEnter:d,onMouseLeave:p,onClick:f,afterClose:m,showIcon:g,closable:b,closeText:v,closeIcon:y,action:x,id:$,styles:w,classNames:C,...S}=e,E=a??r,[k,N]=h.useState(!1),M=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:M.current}));const{getPrefixCls:R,direction:I,variant:_,closable:P,closeIcon:z,className:O,style:T,classNames:A,styles:L,successIcon:B,infoIcon:H,warningIcon:j,errorIcon:D}=_r("alert"),q=R("alert",o),[W,F]=sf(q),{onClose:G,afterClose:X}=zn(b)?b:{},V=t=>{N(!0),(G??e.onClose)?.(t)},K=h.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),U=e.variant??_??"outlined",Y=h.useMemo(()=>!(!zn(b)||!b.closeIcon)||!!v||("boolean"==typeof b?b:!(!1===y||!Mn(y))||!!P),[v,y,b,P]),Z=!(!i||void 0!==g)||g,Q={...e,prefixCls:q,variant:U,type:K,showIcon:Z,closable:Y},[J,ee]=Zs([A,C],[L,w],{props:Q}),te=u(q,`${q}-${K}`,`${q}-${U}`,{[`${q}-with-description`]:!!n,[`${q}-no-icon`]:!Z,[`${q}-banner`]:!!i,[`${q}-rtl`]:"rtl"===I},O,s,l,J.root,F,W),ne=Lt(S,{aria:!0,data:!0}),oe=h.useMemo(()=>zn(b)&&b.closeIcon?b.closeIcon:v||(void 0!==y?y:zn(P)&&P.closeIcon?P.closeIcon:z),[y,b,P,v,z]),re=h.useMemo(()=>{const e=b??P;return zn(e)?Lt(e,{data:!0,aria:!0}):{}},[b,P]);return h.createElement(Ao,{visible:!k,motionName:`${q}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:X??m},({className:t,style:o},r)=>h.createElement("div",{id:$,ref:Ze(M,r),"data-show":!k,className:u(te,t),style:{...ee.root,...T,...c,...o},onMouseEnter:d,onMouseLeave:p,onClick:f,role:"alert",...ne},Z?h.createElement(lf,{className:u(`${q}-icon`,J.icon),style:ee.icon,description:n,icon:e.icon,prefixCls:q,type:K,successIcon:B,infoIcon:H,warningIcon:j,errorIcon:D}):null,h.createElement("div",{className:u(`${q}-section`,J.section),style:ee.section},E?h.createElement("div",{className:u(`${q}-title`,J.title),style:ee.title},E):null,n?h.createElement("div",{className:u(`${q}-description`,J.description),style:ee.description},n):null),x?h.createElement("div",{className:u(`${q}-actions`,J.actions),style:ee.actions},x):null,h.createElement(cf,{className:J.close,style:ee.close,isClosable:Y,prefixCls:q,closeIcon:oe,handleClose:V,ariaProps:re})))}),uf=df;let pf=function(e){function t(){var e,n,o,r;return ki(this,t),n=this,r=arguments,o=_i(o=t),(e=zi(n,Pi()?Reflect.construct(o,r||[],_i(n).constructor):o.apply(n,r))).state={error:void 0,info:{}},e}return Ii(t,e),Mi(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,title:t,description:n,id:o,children:r}=this.props,{error:a,info:i}=this.state,s=t??e,l=i?.componentStack||null,c=Mn(s)?s:a?.toString(),d=Mn(n)?n:l;return a?h.createElement(uf,{id:o,type:"error",title:c,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):r}}])}(h.PureComponent);const ff=pf,mf=uf;mf.ErrorBoundary=ff;const hf=mf,gf=["xxxl","xxl","xl","lg","md","sm","xs"],bf=[].concat(gf).reverse(),vf=()=>{const[,e]=Rs(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}))((e=>{const t=e,n=[].concat(gf).reverse();return n.forEach((e,o)=>{const r=e.toUpperCase(),a=`screen${r}Min`,i=`screen${r}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[i]<=t[e]))throw new Error(`${i}<=${e} fails : !(${t[i]}<=${t[e]})`);const a=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw new Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e})(e));return g().useMemo(()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach(e=>{e(o)}),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch({...o,[e]:t})},r=window.matchMedia(t);On(r.addEventListener)&&r.addEventListener("change",n),this.matchHandlers[t]={mql:r,listener:n},n(r)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];On(t?.mql.removeEventListener)&&t.mql.removeEventListener("change",t?.listener)}),e.clear()}}},[t])},yf=(0,h.createContext)({}),xf=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},$f=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o,antCls:r}=e,[a,i]=zs(r,"grid"),[,s]=zs(r,"col"),l={};for(let e=o;e>=0;e--)0===e?(l[`${n}${t}-${e}`]={display:"none"},l[`${n}-push-${e}`]={insetInlineStart:"auto"},l[`${n}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${e}`]={marginInlineStart:0},l[`${n}${t}-order-${e}`]={order:0}):(l[`${n}${t}-${e}`]=[{[a("display")]:"block",display:"block"},{display:i("display"),flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],l[`${n}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},l[`${n}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},l[`${n}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},l[`${n}${t}-order-${e}`]={order:e});return l[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,"")}-flex`)},l})(e,t),wf=Is("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),Cf=Is("Grid",e=>{const t=Gi(e,{gridColumns:24}),n=(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}))(t);return delete n.xs,[xf(t),$f(t,""),$f(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${sa(t)})`]:{...$f(e,n)}}))(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},()=>({})),Sf=(e,t)=>{const[n,o]=h.useState(()=>Pn(e)?e:"");return h.useEffect(()=>{(()=>{if(Pn(e)&&o(e),zn(e))for(let n=0;n<gf.length;n++){const r=gf[n];if(!t||!t[r])continue;const a=e[r];if(void 0!==a)return void o(a)}})()},[JSON.stringify(e),t]),n},Ef=h.forwardRef((e,t)=>{const{prefixCls:n,justify:o,align:r,className:a,style:i,children:s,gutter:l=0,wrap:c,...d}=e,{getPrefixCls:p,direction:f}=h.useContext(Mr),m=function(e=!0,t={}){const n=(0,h.useRef)(t),[,o]=g().useReducer(e=>e+1,0),r=vf();return He(()=>{const t=r.subscribe(t=>{n.current=t,e&&o()});return()=>r.unsubscribe(t)},[]),n.current}(!0,null),b=Sf(r,m),v=Sf(o,m),y=p("row",n),[x,$]=wf(y),w=function(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return o.forEach((e,t)=>{if(zn(e))for(let o=0;o<gf.length;o++){const a=gf[o];if(r[a]&&void 0!==e[a]){n[t]=e[a];break}}else n[t]=e}),n}(l,m),C=u(y,{[`${y}-no-wrap`]:!1===c,[`${y}-${v}`]:v,[`${y}-${b}`]:b,[`${y}-rtl`]:"rtl"===f},a,x,$),S={};if(w?.[0]){const e=In(w[0])?w[0]/-2+"px":`calc(${w[0]} / -2)`;S.marginInline=e}const[E,k]=w;S.rowGap=k;const N=h.useMemo(()=>({gutter:[E,k],wrap:c}),[E,k,c]);return h.createElement(yf.Provider,{value:N},h.createElement("div",{...d,className:C,style:{...S,...i},ref:t},s))}),kf=Ef;function Nf(e){return"auto"===e?"1 1 auto":In(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Mf=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=h.useContext(Mr),{gutter:r,wrap:a}=h.useContext(yf),{prefixCls:i,span:s,order:l,offset:c,push:d,pull:p,className:f,children:m,flex:g,style:b,...v}=e,y=n("col",i),x=n(),[$,w]=Cf(y),[C]=zs(x,"col"),S={};let E={};bf.forEach(t=>{let n={};const r=e[t];In(r)?n.span=r:zn(r)&&(n=r||{}),delete v[t],E={...E,[`${y}-${t}-${n.span}`]:Mn(n.span),[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===o},n.flex&&(E[`${y}-${t}-flex`]=!0,S[C(`${t}-flex`)]=Nf(n.flex))});const k=u(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${d}`]:d,[`${y}-pull-${p}`]:p},f,E,$,w),N={};if(r?.[0]){const e=In(r[0])?r[0]/2+"px":`calc(${r[0]} / 2)`;N.paddingInline=e}return g&&(N.flex=Nf(g),!1!==a||N.minWidth||(N.minWidth=0)),h.createElement("div",{...v,style:{...N,...b,...S},className:k,ref:t},m)}),Rf=Mf;var If=n(442);function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_f.apply(this,arguments)}const Pf=(e,t)=>h.createElement(pn,_f({},e,{ref:t,icon:If.A})),zf=h.forwardRef(Pf);var Of=n(929);function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tf.apply(this,arguments)}const Af=(e,t)=>h.createElement(pn,Tf({},e,{ref:t,icon:Of.A})),Lf=h.forwardRef(Af),Bf=(0,h.createContext)(null),Hf={width:0,height:0,left:0,top:0};function jf(e,t){const n=h.useRef(e),[,o]=h.useState({});return[n.current,function(e){const r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}const Df=.995**20;function qf(e){const[t,n]=(0,h.useState)(0),o=(0,h.useRef)(0),r=(0,h.useRef)();return r.current=e,Be(()=>{r.current?.()},[t]),()=>{o.current===t&&(o.current+=1,n(o.current))}}const Wf={width:0,height:0,left:0,top:0,right:0};function Ff(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}function Gf(e){return String(e).replace(/"/g,"TABS_DQ")}function Xf(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}const Vf=h.forwardRef((e,t)=>{const{prefixCls:n,editable:o,locale:r,style:a}=e;return o&&!1!==o.showAdd?h.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:a,"aria-label":r?.addAriaLabel||"Add tab",onClick:e=>{o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),Kf=Vf,Uf=h.forwardRef((e,t)=>{const{position:n,prefixCls:o,extra:r}=e;if(!r)return null;let a,i={};return"object"!=typeof r||h.isValidElement(r)?i.right=r:i=r,"right"===n&&(a=i.right),"left"===n&&(a=i.left),a?h.createElement("div",{className:`${o}-extra-content`,ref:t},a):null}),Yf=Uf,{ESC:Zf,TAB:Qf}=wt,Jf=(0,h.forwardRef)((e,t)=>{const{overlay:n,arrow:o,prefixCls:r}=e,a=(0,h.useMemo)(()=>{let e;return e="function"==typeof n?n():n,e},[n]),i=Ze(t,tt(a));return g().createElement(g().Fragment,null,o&&g().createElement("div",{className:`${r}-arrow`}),g().cloneElement(a,{ref:Je(a)?i:void 0}))}),em={adjustX:1,adjustY:1},tm=[0,0],nm={topLeft:{points:["bl","tl"],overflow:em,offset:[0,-4],targetOffset:tm},top:{points:["bc","tc"],overflow:em,offset:[0,-4],targetOffset:tm},topRight:{points:["br","tr"],overflow:em,offset:[0,-4],targetOffset:tm},bottomLeft:{points:["tl","bl"],overflow:em,offset:[0,4],targetOffset:tm},bottom:{points:["tc","bc"],overflow:em,offset:[0,4],targetOffset:tm},bottomRight:{points:["tr","br"],overflow:em,offset:[0,4],targetOffset:tm}};function om(){return om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},om.apply(this,arguments)}const rm=g().forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:o="rc-dropdown",transitionName:r,animation:a,align:i,placement:s="bottomLeft",placements:l=nm,getPopupContainer:c,showAction:d,hideAction:p,overlayClassName:f,overlayStyle:m,visible:b,trigger:v=["hover"],autoFocus:y,overlay:x,children:$,onVisibleChange:w,...C}=e,[S,E]=g().useState(),k="visible"in e?b:S,N=a?`${o}-${a}`:r,M=g().useRef(null),R=g().useRef(null),I=g().useRef(null);g().useImperativeHandle(t,()=>M.current);const _=e=>{E(e),w?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:o,overlayRef:r}){const a=h.useRef(!1),i=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>!!r.current?.focus&&(r.current.focus(),a.current=!0,!0),l=e=>{switch(e.keyCode){case Zf:i();break;case Qf:{let t=!1;a.current||(t=s()),t?e.preventDefault():i();break}}};h.useEffect(()=>e?(window.addEventListener("keydown",l),o&&Ft(s,3),()=>{window.removeEventListener("keydown",l),a.current=!1}):()=>{a.current=!1},[e])}({visible:k,triggerRef:I,onVisibleChange:_,autoFocus:y,overlayRef:R});const P=()=>g().createElement(Jf,{ref:R,overlay:x,prefixCls:o,arrow:n}),z=g().cloneElement($,{className:u($.props?.className,k&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${o}-open`})()),ref:Je($)?Ze(I,tt($)):void 0});let O=p;return O||-1===v.indexOf("contextMenu")||(O=["click"]),g().createElement(fr,om({builtinPlacements:l},C,{prefixCls:o,ref:M,popupClassName:u(f,{[`${o}-show-arrow`]:n}),popupStyle:m,action:v,showAction:d,hideAction:O,popupPlacement:s,popupAlign:i,popupMotion:{motionName:N},popupVisible:k,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof x?P:P(),onOpenChange:_,onPopupClick:t=>{const{onOverlayClick:n}=e;E(!1),n&&n(t)},getPopupContainer:c}),z)}),am=rm,im=void 0;function sm(e,t){const{prefixCls:n,invalidate:o,item:r,renderItem:a,responsive:i,responsiveDisabled:s,registerSize:l,itemKey:c,className:d,style:p,children:f,display:m,order:g,component:b="div",...v}=e,y=i&&!m;function x(e){l(c,e)}h.useEffect(()=>()=>{x(null)},[]);const $=a&&r!==im?a(r,{index:g}):f;let w;o||(w={opacity:y?0:1,height:y?0:im,overflowY:y?"hidden":im,order:i?g:im,pointerEvents:y?"none":im,position:y?"absolute":im});const C={};y&&(C["aria-hidden"]=!0);let S=h.createElement(b,L({className:u(!o&&n,d),style:{...w,...p}},C,v,{ref:t}),$);return i&&(S=h.createElement(Nn,{onResize:({offsetWidth:e})=>{x(e)},disabled:s},S)),S}const lm=h.forwardRef(sm);function cm(e,t){const[n,o]=h.useState(t);return[n,Oe(t=>{e(()=>{o(t)})})]}const dm=g().createContext(null),um=(e,t)=>{const n=h.useContext(dm);if(!n){const{component:n="div",...o}=e;return h.createElement(n,L({},o,{ref:t}))}const{className:o,...r}=n,{className:a,...i}=e;return h.createElement(dm.Provider,{value:null},h.createElement(lm,L({ref:t,className:u(o,a)},r,i)))},pm=h.forwardRef(um),fm="responsive",mm="invalidate";function hm(e){return`+ ${e.length} ...`}function gm(e,t){const{prefixCls:n="rc-overflow",data:o=[],renderItem:r,renderRawItem:a,itemKey:i,itemWidth:l=10,ssr:c,style:d,className:p,maxCount:f,renderRest:m,renderRawRest:g,prefix:b,suffix:v,component:y="div",itemComponent:x,onVisibleChange:$,...w}=e,C="full"===c,S=function(){const e=h.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ft(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{(0,s.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}(),[E,k]=cm(S,null),N=E||0,[M,R]=cm(S,new Map),[I,_]=cm(S,0),[P,z]=cm(S,0),[O,T]=cm(S,0),[A,B]=cm(S,0),[H,j]=(0,h.useState)(null),[D,q]=(0,h.useState)(null),W=h.useMemo(()=>null===D&&C?Number.MAX_SAFE_INTEGER:D||0,[D,E]),[F,G]=(0,h.useState)(!1),X=`${n}-item`,V=Math.max(I,P),K=f===fm,U=o.length&&K,Y=f===mm,Z=U||"number"==typeof f&&o.length>f,Q=(0,h.useMemo)(()=>{let e=o;return U?e=null===E&&C?o:o.slice(0,Math.min(o.length,N/l)):"number"==typeof f&&(e=o.slice(0,f)),e},[o,l,E,f,U]),J=(0,h.useMemo)(()=>U?o.slice(W+1):o.slice(Q.length),[o,Q,U,W]),ee=(0,h.useCallback)((e,t)=>"function"==typeof i?i(e):(i&&e?.[i])??t,[i]),te=(0,h.useCallback)(r||(e=>e),[r]);function ne(e,t,n){(D!==e||void 0!==t&&t!==H)&&(q(e),n||(G(e<o.length-1),$?.(e)),void 0!==t&&j(t))}function oe(e,t){R(n=>{const o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function re(e){return M.get(ee(Q[e],e))}He(()=>{if(N&&"number"==typeof V&&Q){let e=O+A;const t=Q.length,n=t-1;if(!t)return void ne(0,null);for(let o=0;o<t;o+=1){let t=re(o);if(C&&(t=t||0),void 0===t){ne(o-1,void 0,!0);break}if(e+=t,0===n&&e<=N||o===n-1&&e+re(n)<=N){ne(n,null);break}if(e+V>N){ne(o-1,e-t-A+P);break}}v&&re(0)+A>N&&j(null)}},[N,M,P,O,A,ee,Q]);const ae=F&&!!J.length;let ie={};null!==H&&U&&(ie={position:"absolute",top:0,insetInlineStart:H});const se={prefixCls:X,responsive:U,component:x,invalidate:Y},le=a?(e,t)=>{const n=ee(e,t);return h.createElement(dm.Provider,{key:n,value:{...se,order:t,item:e,itemKey:n,registerSize:oe,display:t<=W}},a(e,t))}:(e,t)=>{const n=ee(e,t);return h.createElement(lm,L({},se,{order:t,key:n,item:e,renderItem:te,itemKey:n,registerSize:oe,display:t<=W}))},ce={order:ae?W:Number.MAX_SAFE_INTEGER,className:`${X}-rest`,registerSize:function(e,t){z(t),_(P)},display:ae},de=m||hm,ue=g?h.createElement(dm.Provider,{value:{...se,...ce}},g(J)):h.createElement(lm,L({},se,ce),"function"==typeof de?de(J):de),pe=h.createElement(y,L({className:u(!Y&&n,p),style:d,ref:t},w),b&&h.createElement(lm,L({},se,{responsive:K,responsiveDisabled:!U,order:-1,className:`${X}-prefix`,registerSize:function(e,t){T(t)},display:!0}),b),Q.map(le),Z?ue:null,v&&h.createElement(lm,L({},se,{responsive:K,responsiveDisabled:!U,order:W,className:`${X}-suffix`,registerSize:function(e,t){B(t)},display:!0,style:ie}),v));return K?h.createElement(Nn,{onResize:function(e,t){k(t.clientWidth)},disabled:!U},pe):pe}const bm=h.forwardRef(gm);bm.Item=pm,bm.RESPONSIVE=fm,bm.INVALIDATE=mm;const vm=bm,ym=h.createContext(null);function xm(e,t){return`${e}-${t}`}function $m(e){return xm(h.useContext(ym),e)}const wm=h.createContext(null);function Cm({children:e,locked:t,...n}){const o=h.useContext(wm),r=Fe(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const o=t[e];void 0!==o&&(n[e]=o)}),n}(o,n),[o,n],(e,n)=>!(t||e[0]===n[0]&&It(e[1],n[1],!0)));return h.createElement(wm.Provider,{value:r},e)}const Sm=[],Em=h.createContext(null);function km(){return h.useContext(Em)}const Nm=h.createContext(Sm);function Mm(e){const t=h.useContext(Nm);return h.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const Rm=h.createContext(null),Im=h.createContext({}),{LEFT:_m,RIGHT:Pm,UP:zm,DOWN:Om,ENTER:Tm,ESC:Am,HOME:Lm,END:Bm}=wt,Hm=[zm,Om,_m,Pm];function jm(e,t){return function(e,t=!1){const n=[...e.querySelectorAll("*")].filter(e=>ht(e,t));return ht(e,t)&&n.unshift(e),n}(e,!0).filter(e=>t.has(e))}function Dm(e,t,n,o=1){if(!e)return null;const r=jm(e,t),a=r.length;let i=r.findIndex(e=>n===e);return o<0?-1===i?i=a-1:i-=1:o>0&&(i+=1),i=(i+a)%a,r[i]}const qm=(e,t)=>{const n=new Set,o=new Map,r=new Map;return e.forEach(e=>{const a=document.querySelector(`[data-menu-id='${xm(t,e)}']`);a&&(n.add(a),r.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:r}};const Wm="__RC_UTIL_PATH_SPLIT__",Fm=e=>e.join(Wm),Gm="rc-menu-more";function Xm(e){const t=h.useRef(e);t.current=e;const n=h.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Vm(e,t,n,o){const{activeKey:r,onActive:a,onInactive:i}=h.useContext(wm),s={active:r===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{o?.({key:e,domEvent:t}),i(e)}),s}function Km(e){const{mode:t,rtl:n,inlineIndent:o}=h.useContext(wm);return"inline"!==t?null:n?{paddingRight:e*o}:{paddingLeft:e*o}}function Um({icon:e,props:t,children:n}){let o;return null===e||!1===e?null:("function"==typeof e?o=h.createElement(e,{...t}):"boolean"!=typeof e&&(o=e),o||n||null)}function Ym({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Rt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zm.apply(this,arguments)}class Qm extends h.Component{render(){const{title:e,attribute:t,elementRef:n,...o}=this.props,r=Ot(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Rt(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(vm.Item,Zm({},t,{title:"string"==typeof e?e:void 0},r,{ref:n}))}}const Jm=h.forwardRef((e,t)=>{const{style:n,className:o,eventKey:r,warnKey:a,disabled:i,itemIcon:s,children:l,role:c,onMouseEnter:d,onMouseLeave:p,onClick:f,onKeyDown:m,onFocus:g,...b}=e,v=$m(r),{prefixCls:y,onItemClick:x,disabled:$,overflowDisabled:w,itemIcon:C,selectedKeys:S,onActive:E}=h.useContext(wm),{_internalRenderMenuItem:k}=h.useContext(Im),N=`${y}-item`,M=h.useRef(),R=h.useRef(),I=$||i,_=Qe(t,R),P=Mm(r),z=e=>({key:r,keyPath:[...P].reverse(),item:M.current,domEvent:e}),O=s||C,{active:T,...A}=Vm(r,I,d,p),L=S.includes(r),B=Km(P.length),H={};"option"===e.role&&(H["aria-selected"]=L);let j=h.createElement(Qm,Zm({ref:M,elementRef:_,role:null===c?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&v?null:v},Ot(b,["extra"]),A,H,{component:"li","aria-disabled":i,style:{...B,...n},className:u(N,{[`${N}-active`]:T,[`${N}-selected`]:L,[`${N}-disabled`]:I},o),onClick:e=>{if(I)return;const t=z(e);f?.(Ym(t)),x(t)},onKeyDown:e=>{if(m?.(e),e.which===wt.ENTER){const t=z(e);f?.(Ym(t)),x(t)}},onFocus:e=>{E(r),g?.(e)}}),l,h.createElement(Um,{props:{...e,isSelected:L},icon:O}));return k&&(j=k(j,e,{selected:L})),j});function eh(e,t){const{eventKey:n}=e,o=km(),r=Mm(n);return h.useEffect(()=>{if(o)return o.registerPath(n,r),()=>{o.unregisterPath(n,r)}},[r]),o?null:h.createElement(Jm,Zm({},e,{ref:t}))}const th=h.forwardRef(eh);function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nh.apply(this,arguments)}const oh=({className:e,children:t,...n},o)=>{const{prefixCls:r,mode:a,rtl:i}=h.useContext(wm);return h.createElement("ul",nh({className:u(r,i&&`${r}-rtl`,`${r}-sub`,`${r}-${"inline"===a?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:o}),t)},rh=h.forwardRef(oh);function ah(e,t){return Gt(e).map((e,n)=>{if(h.isValidElement(e)){const{key:o}=e;let r=e.props?.eventKey??o;null==r&&(r=`tmp_key-${[...t,n].join("-")}`);const a={key:r,eventKey:r};return h.cloneElement(e,a)}return e})}const ih={adjustX:1,adjustY:1},sh={topLeft:{points:["bl","tl"],overflow:ih},topRight:{points:["br","tr"],overflow:ih},bottomLeft:{points:["tl","bl"],overflow:ih},bottomRight:{points:["tr","br"],overflow:ih},leftTop:{points:["tr","tl"],overflow:ih},leftBottom:{points:["br","bl"],overflow:ih},rightTop:{points:["tl","tr"],overflow:ih},rightBottom:{points:["bl","br"],overflow:ih}},lh={topLeft:{points:["bl","tl"],overflow:ih},topRight:{points:["br","tr"],overflow:ih},bottomLeft:{points:["tl","bl"],overflow:ih},bottomRight:{points:["tr","br"],overflow:ih},rightTop:{points:["tr","tl"],overflow:ih},rightBottom:{points:["br","bl"],overflow:ih},leftTop:{points:["tl","tr"],overflow:ih},leftBottom:{points:["bl","br"],overflow:ih}};function ch(e,t,n){return t||(n?n[e]||n.other:void 0)}const dh={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function uh({prefixCls:e,visible:t,children:n,popup:o,popupStyle:r,popupClassName:a,popupOffset:i,disabled:s,mode:l,onVisibleChange:c}){const{getPopupContainer:d,rtl:p,subMenuOpenDelay:f,subMenuCloseDelay:m,builtinPlacements:g,triggerSubMenuAction:b,forceSubMenuRender:v,rootClassName:y,motion:x,defaultMotions:$}=h.useContext(wm),[w,C]=h.useState(!1),S=p?{...lh,...g}:{...sh,...g},E=dh[l],k=ch(l,x,$),N=h.useRef(k);"inline"!==l&&(N.current=k);const M={...N.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},R=h.useRef();return h.useEffect(()=>(R.current=Ft(()=>{C(t)}),()=>{Ft.cancel(R.current)}),[t]),h.createElement(fr,{prefixCls:e,popupClassName:u(`${e}-popup`,{[`${e}-rtl`]:p},a,y),stretch:"horizontal"===l?"minWidth":null,getPopupContainer:d,builtinPlacements:S,popupPlacement:E,popupVisible:w,popup:o,popupStyle:r,popupAlign:i&&{offset:i},action:s?[]:[b],mouseEnterDelay:f,mouseLeaveDelay:m,onPopupVisibleChange:c,forceRender:v,popupMotion:M,fresh:!0},n)}function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ph.apply(this,arguments)}function fh({id:e,open:t,keyPath:n,children:o}){const r="inline",{prefixCls:a,forceSubMenuRender:i,motion:s,defaultMotions:l,mode:c}=h.useContext(wm),d=h.useRef(!1);d.current=c===r;const[u,p]=h.useState(!d.current),f=!!d.current&&t;h.useEffect(()=>{d.current&&p(!1)},[c]);const m={...ch(r,s,l)};n.length>1&&(m.motionAppear=!1);const g=m.onVisibleChanged;return m.onVisibleChanged=e=>(d.current||e||p(!0),g?.(e)),u?null:h.createElement(Cm,{mode:r,locked:!d.current},h.createElement(Ao,ph({visible:f},m,{forceRender:i,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>h.createElement(rh,{id:e,className:t,style:n},o)))}function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mh.apply(this,arguments)}const hh=h.forwardRef((e,t)=>{const{style:n,className:o,styles:r,classNames:a,title:i,eventKey:s,warnKey:l,disabled:c,internalPopupClose:d,children:p,itemIcon:f,expandIcon:m,popupClassName:g,popupOffset:b,popupStyle:v,onClick:y,onMouseEnter:x,onMouseLeave:$,onTitleClick:w,onTitleMouseEnter:C,onTitleMouseLeave:S,popupRender:E,...k}=e,N=$m(s),{prefixCls:M,mode:R,openKeys:I,disabled:_,overflowDisabled:P,activeKey:z,selectedKeys:O,itemIcon:T,expandIcon:A,onItemClick:L,onOpenChange:B,onActive:H,popupRender:j}=h.useContext(wm),{_internalRenderSubMenuItem:D}=h.useContext(Im),{isSubPathKey:q}=h.useContext(Rm),W=Mm(),F=`${M}-submenu`,G=_||c,X=h.useRef(),V=h.useRef(),K=f??T,U=m??A,Y=I.includes(s),Z=!P&&Y,Q=q(O,s),{active:J,...ee}=Vm(s,G,C,S),[te,ne]=h.useState(!1),oe=e=>{G||ne(e)},re=h.useMemo(()=>J||"inline"!==R&&(te||q([z],s)),[R,J,z,te,s,q]),ae=Km(W.length),ie=Xm(e=>{y?.(Ym(e)),L(e)}),se=e=>{"inline"!==R&&B(s,e)},le=N&&`${N}-popup`,ce=h.useMemo(()=>h.createElement(Um,{icon:"horizontal"!==R?U:void 0,props:{...e,isOpen:Z,isSubMenu:!0}},h.createElement("i",{className:`${F}-arrow`})),[R,U,e,Z,F]);let de=h.createElement("div",mh({role:"menuitem",style:ae,className:`${F}-title`,tabIndex:G?null:-1,ref:X,title:"string"==typeof i?i:null,"data-menu-id":P&&N?null:N,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":G,onClick:e=>{G||(w?.({key:s,domEvent:e}),"inline"===R&&B(s,!Y))},onFocus:()=>{H(s)}},ee),i,ce);const ue=h.useRef(R);"inline"!==R&&W.length>1?ue.current="vertical":ue.current=R;const pe=ue.current,fe=h.useMemo(()=>{const t=h.createElement(Cm,{classNames:a,styles:r,mode:"horizontal"===pe?"vertical":pe},h.createElement(rh,{id:le,ref:V},p)),n=E||j;return n?n(t,{item:e,keys:W}):t},[E,j,W,le,p,e,pe]);if(!P){const e=ue.current;de=h.createElement(uh,{mode:e,prefixCls:F,visible:!d&&Z&&"inline"!==R,popupClassName:g,popupOffset:b,popupStyle:v,popup:fe,disabled:G,onVisibleChange:se},de)}let me=h.createElement(vm.Item,mh({ref:t,role:"none"},k,{component:"li",style:n,className:u(F,`${F}-${R}`,o,{[`${F}-open`]:Z,[`${F}-active`]:re,[`${F}-selected`]:Q,[`${F}-disabled`]:G}),onMouseEnter:e=>{oe(!0),x?.({key:s,domEvent:e})},onMouseLeave:e=>{oe(!1),$?.({key:s,domEvent:e})}}),de,!P&&h.createElement(fh,{id:le,open:Z,keyPath:W},p));return D&&(me=D(me,e,{selected:Q,active:re,open:Z,disabled:G})),h.createElement(Cm,{classNames:a,styles:r,onItemClick:ie,mode:"horizontal"===R?"vertical":R,itemIcon:K,expandIcon:U},me)}),gh=h.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,r=Mm(n),a=ah(o,r),i=km();let s;return h.useEffect(()=>{if(i)return i.registerPath(n,r),()=>{i.unregisterPath(n,r)}},[r]),s=i?a:h.createElement(hh,mh({ref:t},e),a),h.createElement(Nm.Provider,{value:r},s)});function bh({className:e,style:t}){const{prefixCls:n}=h.useContext(wm);return km()?null:h.createElement("li",{role:"separator",className:u(`${n}-item-divider`,e),style:t})}function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vh.apply(this,arguments)}const yh=h.forwardRef((e,t)=>{const{className:n,title:o,eventKey:r,children:a,...i}=e,{prefixCls:s,classNames:l,styles:c}=h.useContext(wm),d=`${s}-item-group`;return h.createElement("li",vh({ref:t,role:"presentation"},i,{onClick:e=>e.stopPropagation(),className:u(d,n)}),h.createElement("div",{role:"presentation",className:u(`${d}-title`,l?.listTitle),style:c?.listTitle,title:"string"==typeof o?o:void 0},o),h.createElement("ul",{role:"group",className:u(`${d}-list`,l?.list),style:c?.list},a))}),xh=h.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,r=ah(o,Mm(n));return km()?r:h.createElement(yh,vh({ref:t},Ot(e,["warnKey"])),r)});function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$h.apply(this,arguments)}function wh(e,t,n){const{item:o,group:r,submenu:a,divider:i}=t;return(e||[]).map((e,s)=>{if(e&&"object"==typeof e){const{label:l,children:c,key:d,type:u,extra:p,...f}=e,m=d??`tmp-${s}`;if(c||"group"===u)return"group"===u?h.createElement(r,$h({key:m},f,{title:l}),wh(c,t,n)):h.createElement(a,$h({key:m},f,{title:l}),wh(c,t,n));if("divider"===u)return h.createElement(i,$h({key:m},f));const g=!!p||0===p;return h.createElement(o,$h({key:m},f,{extra:p}),g?h.createElement(h.Fragment,null,h.createElement("span",{className:`${n}-item-label`},l),h.createElement("span",{className:`${n}-item-extra`},p)):l)}return null}).filter(e=>e)}function Ch(e,t,n,o,r){let a=e;const i={divider:bh,item:th,group:xh,submenu:gh,...o};return t&&(a=wh(t,i,r)),ah(a,n)}function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Sh.apply(this,arguments)}const Eh=[],kh=h.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:o,style:r,className:a,styles:i,classNames:l,tabIndex:c=0,items:d,children:p,direction:f,id:m,mode:g="vertical",inlineCollapsed:b,disabled:v,disabledOverflow:y,subMenuOpenDelay:x=.1,subMenuCloseDelay:$=.1,forceSubMenuRender:w,defaultOpenKeys:C,openKeys:S,activeKey:E,defaultActiveFirst:k,selectable:N=!0,multiple:M=!1,defaultSelectedKeys:R,selectedKeys:I,onSelect:_,onDeselect:P,inlineIndent:z=24,motion:O,defaultMotions:T,triggerSubMenuAction:A="hover",builtinPlacements:L,itemIcon:B,expandIcon:H,overflowedIndicator:j="...",overflowedIndicatorPopupClassName:D,getPopupContainer:q,onClick:W,onOpenChange:F,onKeyDown:G,openAnimation:X,openTransitionName:V,_internalRenderMenuItem:K,_internalRenderSubMenuItem:U,_internalComponents:Y,popupRender:Z,...Q}=e,[J,ee]=h.useMemo(()=>[Ch(p,d,Eh,Y,n),Ch(p,d,Eh,{},n)],[p,d,Y]),[te,ne]=h.useState(!1),oe=h.useRef(),re=We(m?`rc-menu-uuid-${m}`:"rc-menu-uuid"),ae="rtl"===f,[ie,se]=je(C,S),le=ie||Eh,ce=(e,t=!1)=>{function n(){se(e),F?.(e)}t?(0,s.flushSync)(n):n()},[de,ue]=h.useState(le),pe=h.useRef(!1),[fe,me]=h.useMemo(()=>"inline"!==g&&"vertical"!==g||!b?[g,!1]:["vertical",b],[g,b]),he="inline"===fe,[ge,be]=h.useState(fe),[ve,ye]=h.useState(me);h.useEffect(()=>{be(fe),ye(me),pe.current&&(he?se(de):ce(Eh))},[fe,me]);const[xe,$e]=h.useState(0),we=xe>=J.length-1||"horizontal"!==ge||y;h.useEffect(()=>{he&&ue(le)},[le]),h.useEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const{registerPath:Ce,unregisterPath:Se,refreshOverflowKeys:Ee,isSubPathKey:ke,getKeyPath:Ne,getKeys:Me,getSubPathKeys:Re}=function(){const[,e]=h.useState({}),t=(0,h.useRef)(new Map),n=(0,h.useRef)(new Map),[o,r]=h.useState([]),a=(0,h.useRef)(0),i=(0,h.useRef)(!1),s=(0,h.useCallback)((o,r)=>{const s=Fm(r);n.current.set(s,o),t.current.set(o,s),a.current+=1;const l=a.current;var c;c=()=>{l===a.current&&(i.current||e({}))},Promise.resolve().then(c)},[]),l=(0,h.useCallback)((e,o)=>{const r=Fm(o);n.current.delete(r),t.current.delete(e)},[]),c=(0,h.useCallback)(e=>{r(e)},[]),d=(0,h.useCallback)((e,n)=>{const r=(t.current.get(e)||"").split(Wm);return n&&o.includes(r[0])&&r.unshift(Gm),r},[o]),u=(0,h.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>d(e,!0).includes(t)),[d]),p=(0,h.useCallback)(e=>{const o=`${t.current.get(e)}${Wm}`,r=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(o)&&r.add(n.current.get(e))}),r},[]);return h.useEffect(()=>()=>{i.current=!0},[]),{registerPath:s,unregisterPath:l,refreshOverflowKeys:c,isSubPathKey:u,getKeyPath:d,getKeys:()=>{const e=[...t.current.keys()];return o.length&&e.push(Gm),e},getSubPathKeys:p}}(),Ie=h.useMemo(()=>({registerPath:Ce,unregisterPath:Se}),[Ce,Se]),_e=h.useMemo(()=>({isSubPathKey:ke}),[ke]);h.useEffect(()=>{Ee(we?Eh:J.slice(xe+1).map(e=>e.key))},[xe,we]);const[Pe,ze]=je(E||k&&J[0]?.key,E),Oe=Xm(e=>{ze(e)}),Te=Xm(()=>{ze(void 0)});(0,h.useImperativeHandle)(t,()=>({list:oe.current,focus:e=>{const t=Me(),{elements:n,key2element:o,element2key:r}=qm(t,re),a=jm(oe.current,n);let i;i=Pe&&t.includes(Pe)?Pe:a[0]?r.get(a[0]):J.find(e=>!e.props.disabled)?.key;const s=o.get(i);i&&s&&s?.focus?.(e)},findItem:({key:e})=>{const t=Me(),{key2element:n}=qm(t,re);return n.get(e)||null}}));const[Ae,Le]=je(R||[],I),Be=h.useMemo(()=>Array.isArray(Ae)?Ae:null==Ae?Eh:[Ae],[Ae]),He=Xm(e=>{W?.(Ym(e)),(e=>{if(N){const{key:t}=e,n=Be.includes(t);let o;o=M?n?Be.filter(e=>e!==t):[...Be,t]:[t],Le(o);const r={...e,selectedKeys:o};n?P?.(r):_?.(r)}!M&&le.length&&"inline"!==ge&&ce(Eh)})(e)}),De=Xm((e,t)=>{let n=le.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==ge){const t=Re(e);n=n.filter(e=>!t.has(e))}It(le,n,!0)||ce(n,!0)}),qe=function(e,t,n,o,r,a,i,s,l,c){const d=h.useRef(),u=h.useRef();u.current=t;const p=()=>{Ft.cancel(d.current)};return h.useEffect(()=>()=>{p()},[]),f=>{const{which:m}=f;if([...Hm,Tm,Am,Lm,Bm].includes(m)){const c=a();let h=qm(c,o);const{elements:g,key2element:b,element2key:v}=h,y=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),g),x=v.get(y),$=function(e,t,n,o){const r="prev",a="next",i="children",s="parent";if("inline"===e&&o===Tm)return{inlineTrigger:!0};const l={[zm]:r,[Om]:a},c={[_m]:n?a:r,[Pm]:n?r:a,[Om]:i,[Tm]:i},d={[zm]:r,[Om]:a,[Tm]:i,[Am]:s,[_m]:n?i:s,[Pm]:n?s:i},u={inline:l,horizontal:c,vertical:d,inlineSub:l,horizontalSub:d,verticalSub:d},p=u[`${e}${t?"":"Sub"}`]?.[o];switch(p){case r:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}(e,1===i(x,!0).length,n,m);if(!$&&m!==Lm&&m!==Bm)return;(Hm.includes(m)||[Lm,Bm].includes(m))&&f.preventDefault();const w=e=>{if(e){let t=e;const n=e.querySelector("a");n?.getAttribute("href")&&(t=n);const o=v.get(e);s(o),p(),d.current=Ft(()=>{u.current===o&&t.focus()})}};if([Lm,Bm].includes(m)||$.sibling||!y){let t,n;t=y&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):r.current;const o=jm(t,g);n=m===Lm?o[0]:m===Bm?o[o.length-1]:Dm(t,g,y,$.offset),w(n)}else if($.inlineTrigger)l(x);else if($.offset>0)l(x,!0),p(),d.current=Ft(()=>{h=qm(c,o);const e=y.getAttribute("aria-controls"),t=Dm(document.getElementById(e),h.elements);w(t)},5);else if($.offset<0){const e=i(x,!0),t=e[e.length-2],n=b.get(t);l(t,!1),w(n)}}c?.(f)}}(ge,Pe,ae,re,oe,Me,Ne,ze,(e,t)=>{const n=t??!le.includes(e);De(e,n)},G);h.useEffect(()=>{ne(!0)},[]);const Fe=h.useMemo(()=>({_internalRenderMenuItem:K,_internalRenderSubMenuItem:U}),[K,U]),Ge="horizontal"!==ge||y?J:J.map((e,t)=>h.createElement(Cm,{key:e.key,overflowDisabled:t>xe,classNames:l,styles:i},e)),Xe=h.createElement(vm,Sh({id:m,ref:oe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:th,className:u(n,`${n}-root`,`${n}-${ge}`,a,{[`${n}-inline-collapsed`]:ve,[`${n}-rtl`]:ae},o),dir:f,style:r,role:"menu",tabIndex:c,data:Ge,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?J.slice(-t):null;return h.createElement(gh,{eventKey:Gm,title:j,disabled:we,internalPopupClose:0===t,popupClassName:D},n)},maxCount:"horizontal"!==ge||y?vm.INVALIDATE:vm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{$e(e)},onKeyDown:qe},Q));return h.createElement(Im.Provider,{value:Fe},h.createElement(ym.Provider,{value:re},h.createElement(Cm,{prefixCls:n,rootClassName:o,classNames:l,styles:i,mode:ge,openKeys:le,rtl:ae,disabled:v,motion:te?O:null,defaultMotions:te?T:null,activeKey:Pe,onActive:Oe,onInactive:Te,selectedKeys:Be,inlineIndent:z,subMenuOpenDelay:x,subMenuCloseDelay:$,forceSubMenuRender:w,builtinPlacements:L,triggerSubMenuAction:A,getPopupContainer:q,itemIcon:B,expandIcon:H,onItemClick:He,onOpenChange:De,popupRender:Z},h.createElement(Rm.Provider,{value:_e},Xe),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(Em.Provider,{value:Ie},ee)))))}),Nh=kh;Nh.Item=th,Nh.SubMenu=gh,Nh.ItemGroup=xh,Nh.Divider=bh;const Mh=Nh;function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rh.apply(this,arguments)}const Ih=h.forwardRef((e,t)=>{const{prefixCls:n,id:o,tabs:r,locale:a,mobile:i,more:s={},style:l,className:c,editable:d,tabBarGutter:p,rtl:f,removeAriaLabel:m,onTabClick:g,getPopupContainer:b,popupClassName:v,popupStyle:y,classNames:x,styles:$}=e,[w,C]=(0,h.useState)(!1),[S,E]=(0,h.useState)(null),{icon:k="More"}=s,N=`${o}-more-popup`,M=`${n}-dropdown`,R=null!==S?`${N}-${S}`:null,I=a?.dropdownAriaLabel,_=h.createElement(Mh,{onClick:({key:e,domEvent:t})=>{g(e,t),C(!1)},prefixCls:`${M}-menu`,id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[S],"aria-label":void 0!==I?I:"expanded dropdown"},r.map(e=>{const{closable:t,disabled:n,closeIcon:r,key:a,label:i}=e,s=Xf(t,r,d,n);return h.createElement(th,{key:a,id:`${N}-${a}`,role:"option","aria-controls":o&&`${o}-panel-${a}`,disabled:n},h.createElement("span",null,i),s&&h.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:u(`${M}-menu-item-remove`,x?.remove),style:$?.remove,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}(e,a)}},r||d.removeIcon||"×"))}));function P(e){const t=r.filter(e=>!e.disabled);let n=t.findIndex(e=>e.key===S)||0;const o=t.length;for(let r=0;r<o;r+=1){n=(n+e+o)%o;const r=t[n];if(!r.disabled)return void E(r.key)}}(0,h.useEffect)(()=>{const e=document.getElementById(R);e?.scrollIntoView&&e.scrollIntoView(!1)},[R,S]),(0,h.useEffect)(()=>{w||E(null)},[w]);const z={marginInlineStart:p};r.length||(z.visibility="hidden",z.order=1);const O=u(v,{[`${M}-rtl`]:f}),T=i?null:h.createElement(am,Rh({prefixCls:M,overlay:_,visible:!!r.length&&w,onVisibleChange:C,overlayClassName:O,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},s),h.createElement("button",{type:"button",className:`${n}-nav-more`,style:z,"aria-haspopup":"listbox","aria-controls":N,id:`${o}-more`,"aria-expanded":w,onKeyDown:function(e){const{which:t}=e;if(w)switch(t){case wt.UP:P(-1),e.preventDefault();break;case wt.DOWN:P(1),e.preventDefault();break;case wt.ESC:C(!1);break;case wt.SPACE:case wt.ENTER:null!==S&&g(S,e)}else[wt.DOWN,wt.SPACE,wt.ENTER].includes(t)&&(C(!0),e.preventDefault())}},k));return h.createElement("div",{className:u(`${n}-nav-operations`,c),style:l,ref:t},T,h.createElement(Kf,{prefixCls:n,locale:a,editable:d}))}),_h=h.memo(Ih,(e,t)=>t.tabMoving),Ph=e=>{const{prefixCls:t,id:n,active:o,focus:r,tab:{key:a,label:i,disabled:s,closeIcon:l,icon:c},closable:d,renderWrapper:p,removeAriaLabel:f,editable:m,onClick:g,onFocus:b,onBlur:v,onKeyDown:y,onMouseDown:x,onMouseUp:$,styles:w,classNames:C,tabCount:S,currentPosition:E}=e,k=`${t}-tab`,N=Xf(d,l,m,s);function M(e){s||g(e)}const R=h.useMemo(()=>c&&"string"==typeof i?h.createElement("span",null,i):i,[i,c]),I=h.useRef(null);h.useEffect(()=>{r&&I.current&&I.current.focus()},[r]);const _=h.createElement("div",{key:a,"data-node-key":Gf(a),className:u(k,C?.item,{[`${k}-with-remove`]:N,[`${k}-active`]:o,[`${k}-disabled`]:s,[`${k}-focus`]:r}),style:w?.item,onClick:M},h.createElement("div",{ref:I,role:"tab","aria-selected":o,id:n&&`${n}-tab-${a}`,className:`${k}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:o?0:-1,onClick:e=>{e.stopPropagation(),M(e)},onKeyDown:y,onMouseDown:x,onMouseUp:$,onFocus:b,onBlur:v},r&&h.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${E} of ${S}`),c&&h.createElement("span",{className:`${k}-icon`},c),i&&R),N&&h.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:o?0:-1,className:u(`${k}-remove`,C?.remove),style:w?.remove,onClick:e=>{var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},l||m.removeIcon||"×"));return p?p(_):_};function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zh.apply(this,arguments)}const Oh=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:n,height:o}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,o]}return[t,n]},Th=(e,t)=>e[t?0:1],Ah=h.forwardRef((e,t)=>{const{className:n,style:o,id:r,animated:a,activeKey:i,rtl:s,extra:l,editable:c,locale:d,tabPosition:p,tabBarGutter:f,children:m,onTabClick:b,onTabScroll:v,indicator:y,classNames:x,styles:$}=e,{prefixCls:w,tabs:C}=h.useContext(Bf),S=(0,h.useRef)(null),E=(0,h.useRef)(null),k=(0,h.useRef)(null),N=(0,h.useRef)(null),M=(0,h.useRef)(null),R=(0,h.useRef)(null),I=(0,h.useRef)(null),_="top"===p||"bottom"===p,[P,z]=jf(0,(e,t)=>{_&&v&&v({direction:e>t?"left":"right"})}),[O,T]=jf(0,(e,t)=>{!_&&v&&v({direction:e>t?"top":"bottom"})}),[A,L]=(0,h.useState)([0,0]),[B,H]=(0,h.useState)([0,0]),[j,D]=(0,h.useState)([0,0]),[q,W]=(0,h.useState)([0,0]),[F,G]=function(e){const t=(0,h.useRef)([]),[,n]=(0,h.useState)({}),o=(0,h.useRef)("function"==typeof e?e():e),r=qf(()=>{let e=o.current;t.current.forEach(t=>{e=t(e)}),t.current=[],o.current=e,n({})});return[o.current,function(e){t.current.push(e),r()}]}(new Map),X=function(e,t,n){return(0,h.useMemo)(()=>{const n=new Map,o=t.get(e[0]?.key)||Hf,r=o.left+o.width;for(let o=0;o<e.length;o+=1){const{key:a}=e[o];let i=t.get(a);i||(i=t.get(e[o-1]?.key)||Hf);const s=n.get(a)||{...i};s.right=r-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join("_"),t,n])}(C,F,B[0]),V=Th(A,_),K=Th(B,_),U=Th(j,_),Y=Th(q,_),Z=Math.floor(V)<Math.floor(K+U),Q=Z?V-Y:V-U,J=`${w}-nav-operations-hidden`;let ee=0,te=0;function ne(e){return e<ee?ee:e>te?te:e}_&&s?(ee=0,te=Math.max(0,K-Q)):(ee=Math.min(0,Q-K),te=0);const oe=(0,h.useRef)(null),[re,ae]=(0,h.useState)();function ie(){ae(Date.now())}function se(){oe.current&&clearTimeout(oe.current)}!function(e,t){const[n,o]=(0,h.useState)(),[r,a]=(0,h.useState)(0),[i,s]=(0,h.useState)(0),[l,c]=(0,h.useState)(),d=(0,h.useRef)(),u=(0,h.useRef)(),p=(0,h.useRef)(null);p.current={onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),window.clearInterval(d.current)},onTouchMove:function(e){if(!n)return;const{screenX:i,screenY:l}=e.touches[0];o({x:i,y:l});const d=i-n.x,u=l-n.y;t(d,u);const p=Date.now();a(p),s(p-r),c({x:d,y:u})},onTouchEnd:function(){if(n&&(o(null),c(null),l)){const e=l.x/i,n=l.y/i,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;let a=e,s=n;d.current=window.setInterval(()=>{Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(d.current):(a*=Df,s*=Df,t(20*a,20*s))},20)}},onWheel:function(e){const{deltaX:n,deltaY:o}=e;let r=0;const a=Math.abs(n),i=Math.abs(o);a===i?r="x"===u.current?n:o:a>i?(r=n,u.current="x"):(r=o,u.current="y"),t(-r,-r)&&e.preventDefault()}},h.useEffect(()=>{function t(e){p.current.onTouchMove(e)}function n(e){p.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){p.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){p.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(N,(e,t)=>{function n(e,t){e(e=>ne(e+t))}return!!Z&&(_?n(z,e):n(T,t),se(),ie(),!0)}),(0,h.useEffect)(()=>(se(),re&&(oe.current=setTimeout(()=>{ae(0)},100)),se),[re]);const[le,ce]=function(e,t,n,o,r,a,{tabs:i,tabPosition:s,rtl:l}){let c,d,u;return["top","bottom"].includes(s)?(c="width",d=l?"right":"left",u=Math.abs(n)):(c="height",d="top",u=-n),(0,h.useMemo)(()=>{if(!i.length)return[0,0];const n=i.length;let o=n;for(let r=0;r<n;r+=1){const n=e.get(i[r].key)||Wf;if(Math.floor(n[d]+n[c])>Math.floor(u+t)){o=r-1;break}}let r=0;for(let t=n-1;t>=0;t-=1)if((e.get(i[t].key)||Wf)[d]<u){r=t+1;break}return r>o?[0,-1]:[r,o]},[e,t,o,r,a,u,s,i.map(e=>e.key).join("_"),l])}(X,Q,_?P:O,K,U,Y,{...e,tabs:C}),de=Oe((e=i)=>{const t=X.get(e)||{width:0,height:0,left:0,right:0,top:0};if(_){let e=P;s?t.right<P?e=t.right:t.right+t.width>P+Q&&(e=t.right+t.width-Q):t.left<-P?e=-t.left:t.left+t.width>-P+Q&&(e=-(t.left+t.width-Q)),T(0),z(ne(e))}else{let e=O;t.top<-O?e=-t.top:t.top+t.height>-O+Q&&(e=-(t.top+t.height-Q)),z(0),T(ne(e))}}),[ue,pe]=(0,h.useState)(),[fe,me]=(0,h.useState)(!1),he=C.filter(e=>!e.disabled).map(e=>e.key),ge=e=>{const t=he.indexOf(ue||i),n=he.length,o=he[(t+e+n)%n];pe(o)},be=(e,t)=>{const n=he.indexOf(e),o=C.find(t=>t.key===e);Xf(o?.closable,o?.closeIcon,c,o?.disabled)&&(t.preventDefault(),t.stopPropagation(),c.onEdit("remove",{key:e,event:t}),n===he.length-1?ge(-1):ge(1))},ve=e=>{const{code:t}=e,n=s&&_,o=he[0],r=he[he.length-1];switch(t){case"ArrowLeft":_&&ge(n?1:-1);break;case"ArrowRight":_&&ge(n?-1:1);break;case"ArrowUp":e.preventDefault(),_||ge(-1);break;case"ArrowDown":e.preventDefault(),_||ge(1);break;case"Home":e.preventDefault(),pe(o);break;case"End":e.preventDefault(),pe(r);break;case"Enter":case"Space":e.preventDefault(),b(ue??i,e);break;case"Backspace":case"Delete":be(ue,e)}},ye={};_?ye.marginInlineStart=f:ye.marginTop=f;const xe=C.map((e,t)=>{const{key:n}=e;return h.createElement(Ph,{id:r,prefixCls:w,key:n,tab:e,classNames:{item:x?.item,remove:x?.remove},styles:{item:0===t?$?.item:{...ye,...$?.item},remove:$?.remove},closable:e.closable,editable:c,active:n===i,focus:n===ue,renderWrapper:m,removeAriaLabel:d?.removeAriaLabel,tabCount:he.length,currentPosition:t+1,onClick:e=>{b(n,e)},onKeyDown:ve,onFocus:()=>{fe||pe(n),de(n),ie(),N.current&&(s||(N.current.scrollLeft=0),N.current.scrollTop=0)},onBlur:()=>{pe(void 0)},onMouseDown:e=>((e,t)=>{me(!0),1===t.button&&be(e,t)})(n,e),onMouseUp:()=>{me(!1)}})}),$e=()=>G(()=>{const e=new Map,t=M.current?.getBoundingClientRect();return C.forEach(({key:n})=>{const o=M.current?.querySelector(`[data-node-key="${Gf(n)}"]`);if(o){const[r,a,i,s]=((e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:a}=e,{width:i,height:s,left:l,top:c}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,s,l-t.left,c-t.top]:[n,o,a,r]})(o,t);e.set(n,{width:r,height:a,left:i,top:s})}}),e});(0,h.useEffect)(()=>{$e()},[C.map(e=>e.key).join("_")]);const we=qf(()=>{const e=Oh(S),t=Oh(E),n=Oh(k);L([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);const o=Oh(I);D(o);const r=Oh(R);W(r);const a=Oh(M);H([a[0]-o[0],a[1]-o[1]]),$e()}),Ce=[...C.slice(0,le),...C.slice(ce+1)],Se=X.get(i),{style:Ee}=(e=>{const{activeTabOffset:t,horizontal:n,rtl:o,indicator:r={}}=e,{size:a,align:i="center"}=r,[s,l]=(0,h.useState)(),c=(0,h.useRef)(),d=g().useCallback(e=>"function"==typeof a?a(e):"number"==typeof a?a:e,[a]);function u(){Ft.cancel(c.current)}return(0,h.useEffect)(()=>{const e={};if(t)if(n){e.width=d(t.width);const n=o?"right":"left";"start"===i&&(e[n]=t[n]),"center"===i&&(e[n]=t[n]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===i&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=d(t.height),"start"===i&&(e.top=t.top),"center"===i&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===i&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return u(),c.current=Ft(()=>{s&&e&&Object.keys(e).every(t=>{const n=e[t],o=s[t];return"number"==typeof n&&"number"==typeof o?Math.round(n)===Math.round(o):n===o})||l(e)}),u},[JSON.stringify(t),n,o,i,d]),{style:s}})({activeTabOffset:Se,horizontal:_,indicator:y,rtl:s});(0,h.useEffect)(()=>{de()},[i,ee,te,Ff(Se),Ff(X),_]),(0,h.useEffect)(()=>{we()},[s]);const ke=!!Ce.length,Ne=`${w}-nav-wrap`;let Me,Re,Ie,_e;return _?s?(Re=P>0,Me=P!==te):(Me=P<0,Re=P!==ee):(Ie=O<0,_e=O!==ee),h.createElement(Nn,{onResize:we},h.createElement("div",{ref:Qe(t,S),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:u(`${w}-nav`,n,x?.header),style:{...$?.header,...o},onKeyDown:()=>{ie()}},h.createElement(Yf,{ref:E,position:"left",extra:l,prefixCls:w}),h.createElement(Nn,{onResize:we},h.createElement("div",{className:u(Ne,{[`${Ne}-ping-left`]:Me,[`${Ne}-ping-right`]:Re,[`${Ne}-ping-top`]:Ie,[`${Ne}-ping-bottom`]:_e}),ref:N},h.createElement(Nn,{onResize:we},h.createElement("div",{ref:M,className:`${w}-nav-list`,style:{transform:`translate(${P}px, ${O}px)`,transition:re?"none":void 0}},xe,h.createElement(Kf,{ref:I,prefixCls:w,locale:d,editable:c,style:{...0===xe.length?void 0:ye,visibility:ke?"hidden":null}}),h.createElement("div",{className:u(`${w}-ink-bar`,x?.indicator,{[`${w}-ink-bar-animated`]:a.inkBar}),style:{...Ee,...$?.indicator}}))))),h.createElement(_h,zh({},e,{removeAriaLabel:d?.removeAriaLabel,ref:R,prefixCls:w,tabs:Ce,className:!ke&&J,popupStyle:$?.popup,tabMoving:!!re})),h.createElement(Yf,{ref:k,position:"right",extra:l,prefixCls:w})))}),Lh=Ah,Bh=({renderTabBar:e,...t})=>e?e(t,Lh):h.createElement(Lh,t),Hh=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:r,id:a,active:i,tabKey:s,children:l}=e,c=h.Children.count(l)>0;return h.createElement("div",{id:a&&`${a}-panel-${s}`,role:"tabpanel",tabIndex:i&&c?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!i,style:r,className:u(n,i&&`${n}-active`,o),ref:t},l)}),jh=Hh;function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dh.apply(this,arguments)}const qh=e=>{const{id:t,activeKey:n,animated:o,tabPosition:r,destroyOnHidden:a,contentStyle:i,contentClassName:s}=e,{prefixCls:l,tabs:c}=h.useContext(Bf),d=o.tabPane,p=`${l}-tabpane`;return h.createElement("div",{className:u(`${l}-content-holder`)},h.createElement("div",{className:u(`${l}-content`,`${l}-content-${r}`,{[`${l}-content-animated`]:d})},c.map(e=>{const{key:r,forceRender:l,style:c,className:f,destroyOnHidden:m,...g}=e,b=r===n;return h.createElement(Ao,Dh({key:r,visible:b,forceRender:l,removeOnLeave:!!(a??m),leavedClassName:`${p}-hidden`},o.tabPaneMotion),({style:e,className:n},o)=>h.createElement(jh,Dh({},g,{prefixCls:p,id:t,tabKey:r,animated:d,active:b,style:{...i,...c,...e},className:u(s,f,n),ref:o})))})))};function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wh.apply(this,arguments)}let Fh=0;const Gh=h.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-tabs",className:r,items:a,direction:i,activeKey:s,defaultActiveKey:l,editable:c,animated:d,tabPosition:p="top",tabBarGutter:f,tabBarStyle:m,tabBarExtraContent:g,locale:b,more:v,destroyOnHidden:y,renderTabBar:x,onChange:$,onTabClick:w,onTabScroll:C,getPopupContainer:S,popupClassName:E,indicator:k,classNames:N,styles:M,...R}=e,I=h.useMemo(()=>(a||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[a]),_="rtl"===i,P=function(e={inkBar:!0,tabPane:!1}){let t;return t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}},t.tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(d),[z,O]=(0,h.useState)(!1);(0,h.useEffect)(()=>{O((void 0===zt&&(zt=Pt()()),zt))},[]);const[T,A]=je(l??I[0]?.key,s),[L,B]=(0,h.useState)(()=>I.findIndex(e=>e.key===T));(0,h.useEffect)(()=>{let e=I.findIndex(e=>e.key===T);-1===e&&(e=Math.max(0,Math.min(L,I.length-1)),A(I[e]?.key)),B(e)},[I.map(e=>e.key).join("_"),T,L]);const[H,j]=je(null,n);(0,h.useEffect)(()=>{n||(j(`rc-tabs-${Fh}`),Fh+=1)},[]);const D={id:H,activeKey:T,animated:P,tabPosition:p,rtl:_,mobile:z},q={...D,editable:c,locale:b,more:v,tabBarGutter:f,onTabClick:function(e,t){w?.(e,t);const n=e!==T;A(e),n&&$?.(e)},onTabScroll:C,extra:g,style:m,getPopupContainer:S,popupClassName:u(E,N?.popup),indicator:k,styles:M,classNames:N},W=h.useMemo(()=>({tabs:I,prefixCls:o}),[I,o]);return h.createElement(Bf.Provider,{value:W},h.createElement("div",Wh({ref:t,id:n,className:u(o,`${o}-${p}`,{[`${o}-mobile`]:z,[`${o}-editable`]:c,[`${o}-rtl`]:_},r)},R),h.createElement(Bh,Wh({},q,{renderTabBar:x})),h.createElement(qh,Wh({destroyOnHidden:y},D,{contentStyle:M?.content,contentClassName:N?.content,animated:P}))))}),Xh={motionAppear:!1,motionEnter:!0,motionLeave:!0},Vh=new Si("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Kh=new Si("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Uh=new Si("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Yh=new Si("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Zh=new Si("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Qh=new Si("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jh=new Si("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),eg=new Si("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),tg={"slide-up":{inKeyframes:Vh,outKeyframes:Kh},"slide-down":{inKeyframes:Uh,outKeyframes:Yh},"slide-left":{inKeyframes:Zh,outKeyframes:Qh},"slide-right":{inKeyframes:Jh,outKeyframes:eg}},ng=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=tg[t];return[bl(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},og=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ng(e,"slide-up"),ng(e,"slide-down")]]},rg=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${sa(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ts(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:sa(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:sa(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${sa(e.borderRadiusLG)} 0 0 ${sa(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ag=e=>{const{antCls:t,componentCls:n,itemHoverColor:o,dropdownEdgeChildVerticalPadding:r}=e;return{[`${n}-dropdown`]:{...Ji(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,\n &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,\n &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,\n &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Vh},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Uh},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,\n &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Kh},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Yh},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${sa(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Qi,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${sa(e.paddingXXS)} ${sa(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},ig=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:a,verticalItemMargin:i,motionDurationSlow:s,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${s}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(e=>`${e} ${s}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:sa(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sg=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,cardHeightSM:r,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${sa(e.borderRadius)} ${sa(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${sa(e.borderRadius)} ${sa(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${sa(e.borderRadius)} ${sa(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${sa(e.borderRadius)} 0 0 ${sa(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},lg=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...ns(e)},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:s},[`&${c}-focus ${c}-btn:focus-visible`]:ts(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},cg=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:a}=e,i=`${t}-rtl`;return{[i]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},dg=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:{...Ji(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${sa(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i},...ns(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...lg(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...ns(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},ug=Is("Tabs",e=>{const t=Gi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${sa(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${sa(e.horizontalItemGutter)}`});return[sg(t),cg(t),ig(t),ag(t),rg(t),dg(t),og(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:o,controlHeight:r,controlHeightLG:a}=e,i=t||a,s=n||r,l=o||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),pg=h.forwardRef((e,t)=>{const{type:n,className:o,rootClassName:r,size:a,onEdit:i,hideAdd:s,centered:l,addIcon:c,removeIcon:d,moreIcon:p,more:f,popupClassName:m,children:g,items:b,animated:v,style:y,indicatorSize:x,indicator:$,classNames:w,styles:C,destroyInactiveTabPane:S,destroyOnHidden:E,tabPlacement:k,tabPosition:N,...M}=e,{prefixCls:R}=M,{getPrefixCls:I,direction:_,getPopupContainer:P,className:z,style:O,classNames:T,styles:A}=_r("tabs"),{tabs:L}=h.useContext(Mr),B=I("tabs",R),H=ml(B),[j,D]=ug(B,H),q=h.useRef(null);let W;h.useImperativeHandle(t,()=>({nativeElement:q.current})),"editable-card"===n&&(W={onEdit:(e,{key:t,event:n})=>{i?.("add"===e?n:t,e)},removeIcon:d??L?.removeIcon??h.createElement(ju,null),addIcon:(c??L?.addIcon)||h.createElement(Lf,null),showAdd:!0!==s});const F=I(),G=Tr(a),X=function(e,t){if(e)return e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane}));const n=Gt(t).map(e=>{if(h.isValidElement(e)){const{key:t,props:n}=e,{tab:o,...r}=n||{};return{key:String(t),...r,label:o}}return null});return function(e){return e.filter(e=>e)}(n)}(b,g),V=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...zn(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...Xh,motionName:Qs(e,"switch")}),n}(B,v),K={align:$?.align??L?.indicator?.align,size:$?.size??x??L?.indicator?.size??L?.indicatorSize},U=h.useMemo(()=>{const e=k??N??void 0,t="rtl"===_;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[k,N,_]),Y={...e,size:G,tabPlacement:U,items:X},[Z,Q]=Zs([T,w],[A,C],{props:Y},{popup:{_default:"root"}});return h.createElement(Gh,{ref:q,direction:_,getPopupContainer:P,...M,items:X,className:u({[`${B}-large`]:"large"===G,[`${B}-small`]:"small"===G,[`${B}-card`]:["card","editable-card"].includes(n),[`${B}-editable-card`]:"editable-card"===n,[`${B}-centered`]:l},z,o,r,Z.root,j,D,H),classNames:{...Z,popup:u(m,j,D,H,Z.popup?.root)},styles:Q,style:{...Q.root,...O,...y},editable:W,more:{icon:L?.more?.icon??L?.moreIcon??p??h.createElement(zf,null),transitionName:`${F}-slide-up`,...f},prefixCls:B,animated:V,indicator:K,destroyOnHidden:E??S,tabPosition:U})}),fg=pg;fg.TabPane=()=>null;const mg=fg,hg=_s("Wave",e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:o,motionEaseInOut:r,motionEaseOutCirc:a,antCls:i}=e,[,s]=zs(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>`${e} ${a}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${o} ${r}`).join(",")}}}}}),gg="ant-wave-target",bg=e=>!!e&&Pn(e)&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&"transparent"!==e&&"canvastext"!==e;function vg(e){return Number.isNaN(e)?0:e}const yg=e=>{const{className:t,target:n,component:o,colorSource:r}=e,a=h.useRef(null),{getPrefixCls:i}=h.useContext(Mr),s=i(),[l]=zs(s,"wave"),[c,d]=h.useState(null),[p,f]=h.useState([]),[m,g]=h.useState(0),[b,v]=h.useState(0),[y,x]=h.useState(0),[$,w]=h.useState(0),[C,S]=h.useState(!1),E={left:m,top:b,width:y,height:$,borderRadius:p.map(e=>`${e}px`).join(" ")};function k(){const e=getComputedStyle(n);d(function(e,t=null){const n=getComputedStyle(e),{borderTopColor:o,borderColor:r,backgroundColor:a}=n;return t&&bg(n[t])?n[t]:[o,r,a].find(bg)??null}(n,r));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:a}=e;g(t?n.offsetLeft:vg(-Number.parseFloat(o))),v(t?n.offsetTop:vg(-Number.parseFloat(a))),x(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;f([i,s,c,l].map(e=>vg(Number.parseFloat(e))))}if(c&&(E[l("color")]=c),h.useEffect(()=>{if(n){const e=Ft(()=>{k(),S(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{Ft.cancel(e),t?.disconnect()}}},[n]),!C)return null;const N=("Checkbox"===o||"Radio"===o)&&n?.classList.contains(gg);return h.createElement(Ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||(e=>zn(e)&&"propertyName"in e&&Pn(e.propertyName))(t)&&"opacity"===t.propertyName){const e=a.current?.parentElement;(async function(e){return Promise.resolve().then(()=>{e[Qt]?.unmount(),delete e[Qt]})})(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>h.createElement("div",{ref:Ze(a,n),className:u(t,e,{"wave-quick":N}),style:E}))},xg=(e,t)=>{const{component:n}=t;if("Checkbox"===n&&!e.querySelector("input")?.checked)return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild),Jt(h.createElement(yg,{...t,target:e}),o)},$g=(e,t,n,o)=>{const{wave:r}=h.useContext(Mr),[,a,i]=Rs(),s=Oe(s=>{const l=e.current;if(r?.disabled||!l)return;const c=l.querySelector(`.${gg}`)||l,{showEffect:d}=r||{};(d||xg)(c,{className:t,token:a,component:n,event:s,hashId:i,colorSource:o})}),l=h.useRef(null);return h.useEffect(()=>()=>{Ft.cancel(l.current)},[]),e=>{Ft.cancel(l.current),l.current=Ft(()=>{s(e)})}},wg={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Cg=e=>{const{children:t,disabled:n,component:o,colorSource:r}=e,{getPrefixCls:a,wave:i}=(0,h.useContext)(Mr),s=(0,h.useRef)(null),l=a("wave"),c=hg(l),d=$g(s,u(l,c),o,r);return g().useEffect(()=>{const e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!mt(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||d(t)},o=i?.triggerType,r=o&&o in wg?wg[o]:"click";return e.addEventListener(r,t,!0),()=>{e.removeEventListener(r,t,!0)}},[n,i?.triggerType]),g().isValidElement(t)?cl(t,{ref:Je(t)?Ze(tt(t),s):s}):t??null},Sg=h.createContext(void 0),Eg=/^[\u4E00-\u9FA5]{2}$/,kg=Eg.test.bind(Eg);function Ng(e){return"text"===e||"link"===e}["default","primary","danger"].concat(X(cs));const Mg=(0,h.forwardRef)((e,t)=>{const{className:n,style:o,children:r,prefixCls:a}=e,i=u(`${a}-icon`,n);return g().createElement("span",{ref:t,className:i,style:o},r)}),Rg=Mg,Ig=(0,h.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:r,iconClassName:a}=e,i=u(`${n}-loading-icon`,o);return g().createElement(Rg,{prefixCls:n,className:i,style:r,ref:t},g().createElement(Nd,{className:a}))}),_g=()=>({width:0,opacity:0,transform:"scale(0)"}),Pg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zg=e=>{const{prefixCls:t,loading:n,existIcon:o,className:r,style:a,mount:i}=e,s=!!n;return o?g().createElement(Ig,{prefixCls:t,className:r,style:a}):g().createElement(Ao,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:_g,onAppearActive:Pg,onEnterStart:_g,onEnterActive:Pg,onLeaveStart:Pg,onLeaveActive:_g},({className:e,style:n},o)=>{const i={...a,...n};return g().createElement(Ig,{prefixCls:t,className:u(r,e),style:i,ref:o})})},Og=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Tg=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Og(`${t}-primary`,r),Og(`${t}-danger`,a)]}},Ag=(e,t)=>{const{r:n,g:o,b:r,a}=e.toRgb(),i=new Ll(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*o+.114*r>192},Lg=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:o}=e;return Gi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:o})},Bg=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??ms(t),a=e.contentLineHeightSM??ms(n),i=e.contentLineHeightLG??ms(o),s=Ag(new Hl(e.colorBgSolid),"#fff")?"#000":"#fff",l=cs.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${sa(e.controlOutlineWidth)} 0 ${Ss(e[`${n}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...l,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:o,contentLineHeight:r,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:d}},Hg=e=>{const{componentCls:t,antCls:n,lineWidth:o}=e,[r,a]=zs(n,"btn");return{[t]:[{[r("border-width")]:o,[r("border-color")]:"#000",[r("border-color-hover")]:a("border-color"),[r("border-color-active")]:a("border-color"),[r("border-color-disabled")]:a("border-color"),[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color"),[r("text-color-disabled")]:a("text-color"),[r("bg-color")]:"#ddd",[r("bg-color-hover")]:a("bg-color"),[r("bg-color-active")]:a("bg-color"),[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[r("solid-bg-color")]:a("color-base"),[r("solid-bg-color-hover")]:a("color-hover"),[r("solid-bg-color-active")]:a("color-active"),[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:a("solid-bg-color"),[r("bg-color-hover")]:a("solid-bg-color-hover"),[r("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("border-color")]:a("color-base"),[r("border-color-hover")]:a("color-hover"),[r("border-color-active")]:a("color-active"),[r("bg-color")]:a("bg-color-container"),[r("text-color")]:a("color-base"),[r("text-color-hover")]:a("color-hover"),[r("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:a("color-base"),[r("bg-color")]:a("color-light"),[r("bg-color-hover")]:a("color-light-hover"),[r("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:a("color-base"),[r("text-color-hover")]:a("color-hover"),[r("text-color-active")]:a("color-active"),[r("bg-color")]:"transparent",[r("bg-color-hover")]:"transparent",[r("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[r("bg-color-hover")]:a("color-light"),[r("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[r("color-base")]:e.colorLink,[r("color-hover")]:e.colorLinkHover,[r("color-active")]:e.colorLinkActive,[r("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[r("color-base")]:e.colorPrimary,[r("color-hover")]:e.colorPrimaryHover,[r("color-active")]:e.colorPrimaryActive,[r("color-light")]:e.colorPrimaryBg,[r("color-light-hover")]:e.colorPrimaryBgHover,[r("color-light-active")]:e.colorPrimaryBorder,[r("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.primaryColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[r("color-base")]:e.colorError,[r("color-hover")]:e.colorErrorHover,[r("color-active")]:e.colorErrorActive,[r("color-light")]:e.colorErrorBg,[r("color-light-hover")]:e.colorErrorBgFilledHover,[r("color-light-active")]:e.colorErrorBgActive,[r("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.dangerColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[r("solid-bg-color")]:e.colorBgSolid,[r("solid-bg-color-hover")]:e.colorBgSolidHover,[r("solid-bg-color-active")]:e.colorBgSolidActive,[r("color-base")]:e.defaultBorderColor,[r("color-hover")]:e.defaultHoverBorderColor,[r("color-active")]:e.defaultActiveBorderColor,[r("color-light")]:e.colorFillTertiary,[r("color-light-hover")]:e.colorFillSecondary,[r("color-light-active")]:e.colorFill,[r("text-color")]:e.defaultColor,[r("text-color-hover")]:e.defaultHoverColor,[r("text-color-active")]:e.defaultActiveColor,[r("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[r("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[r("text-color")]:e.solidTextColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultColor,[r("text-color-hover")]:e.defaultHoverColor,[r("text-color-active")]:e.defaultActiveColor,[r("bg-color-container")]:e.defaultBg,[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[r("text-color")]:e.textTextColor,[r("text-color-hover")]:e.textTextHoverColor,[r("text-color-active")]:e.textTextActiveColor,[r("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},cs.map(n=>{const o=e[`${n}6`],a=e[`${n}1`],i=e[`${n}Hover`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}Active`],d=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[r("color-base")]:o,[r("color-hover")]:i,[r("color-active")]:c,[r("color-light")]:a,[r("color-light-hover")]:s,[r("color-light-active")]:l,[r("shadow")]:d}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[r("bg-color")]:e.ghostBg,[r("bg-color-hover")]:e.ghostBg,[r("bg-color-active")]:e.ghostBg,[r("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("bg-color-hover")]:e.ghostBg,[r("bg-color-active")]:e.ghostBg}}}]}},jg=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:r,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":ns(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Dg=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),qg=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:r,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:r,height:o,padding:`${sa(l)} ${sa(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:o,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Dg(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Wg=e=>{const t=Gi(e,{fontSize:e.contentFontSize});return qg(t,e.componentCls)},Fg=e=>{const t=Gi(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qg(t,`${e.componentCls}-sm`)},Gg=e=>{const t=Gi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qg(t,`${e.componentCls}-lg`)},Xg=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Vg=Is("Button",e=>{const t=Lg(e);return[jg(t),Wg(t),Fg(t),Gg(t),Xg(t),Hg(t),Tg(t)]},Bg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Kg(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function Ug(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Kg(e,t,e.componentCls),...(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var n,o}const Yg=e=>{const{antCls:t,componentCls:n,lineWidth:o,calc:r,colorBgContainer:a}=e,i=`${n}-variant-solid:not([disabled])`,s=r(o).mul(-1).equal(),[l,c]=zs(t,"btn"),d=e=>{const t=`${n}-compact${e?"-vertical":""}-item`;return{[t]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:s,insetInline:s,height:o}:{insetBlock:s,insetInlineStart:s,width:o}],"&:hover:before":{display:"none"}}}}};return[d(),d(!0),{[`${i}${n}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]},Zg=Ps(["Button","compact"],e=>{const t=Lg(e);return[Sc(t),Ug(t),Yg(t)]},Bg),Qg={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Jg=g().forwardRef((e,t)=>{const{_skipSemantic:n,loading:o=!1,prefixCls:r,color:a,variant:i,type:s,danger:l=!1,shape:c,size:d,disabled:p,className:f,rootClassName:m,children:b,icon:v,iconPosition:y,iconPlacement:x,ghost:$=!1,block:w=!1,htmlType:C="button",classNames:S,styles:E,style:k,autoInsertSpace:N,autoFocus:M,...R}=e,I=Gt(b),_=s||"default",{getPrefixCls:P,direction:z,autoInsertSpace:O,className:T,style:A,classNames:L,styles:B,loadingIcon:H,shape:j,color:D,variant:q}=_r("button"),W=c||j||"default",[F,G]=(0,h.useMemo)(()=>{if(a&&i)return[a,i];if(s||l){const e=Qg[_]||[];return l?["danger",e[1]]:e}return"solid"===i?["primary",i]:D&&q?[D,q]:"solid"===q?["primary",q]:["default","outlined"]},[a,i,s,l,D,q,_]),[X,V]=(0,h.useMemo)(()=>$&&"solid"===G?[F,"outlined"]:[F,G],[F,G,$]),K="danger"===X,U=K?"dangerous":X,Y=N??O??!0,Z=P("btn",r),[Q,J]=Vg(Z),ee=(0,h.useContext)(xc),te=p??ee,ne=(0,h.useContext)(Sg),oe=(0,h.useMemo)(()=>function(e){if(zn(e)){let t=e?.delay;return t=In(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o),[o]),[re,ae]=(0,h.useState)(oe.loading),[ie,se]=(0,h.useState)(!1),le=(0,h.useRef)(null),ce=Qe(t,le),de=1===I.length&&!v&&!Ng(V),ue=(0,h.useRef)(!0);g().useEffect(()=>(ue.current=!1,()=>{ue.current=!0}),[]),He(()=>{let e=null;return oe.delay>0?e=setTimeout(()=>{e=null,ae(!0)},oe.delay):ae(oe.loading),function(){e&&(clearTimeout(e),e=null)}},[oe.delay,oe.loading]),(0,h.useEffect)(()=>{if(!le.current||!Y)return;const e=le.current.textContent||"";de&&kg(e)?ie||se(!0):ie&&se(!1)}),(0,h.useEffect)(()=>{M&&le.current&&le.current.focus()},[]);const pe=g().useCallback(t=>{re||te?t.preventDefault():e.onClick?.(t)},[e.onClick,re,te]),{compactSize:fe,compactItemClassnames:me}=As(Z,z),he=Tr(e=>d??fe??ne??e),ge=re?"loading":v,be=x??y??"start",ve=Ot(R,["navigate"]),ye={...e,type:_,color:X,variant:V,danger:K,shape:W,size:he,disabled:te,loading:re,iconPlacement:be},[xe,$e]=Zs([n?void 0:L,S],[n?void 0:B,E],{props:ye}),we=u(Z,Q,J,{[`${Z}-${W}`]:"default"!==W&&"square"!==W&&W,[`${Z}-${_}`]:_,[`${Z}-dangerous`]:l,[`${Z}-color-${U}`]:U,[`${Z}-variant-${V}`]:V,[`${Z}-lg`]:"large"===he,[`${Z}-sm`]:"small"===he,[`${Z}-icon-only`]:!b&&0!==b&&!!ge,[`${Z}-background-ghost`]:$&&!Ng(V),[`${Z}-loading`]:re,[`${Z}-two-chinese-chars`]:ie&&Y&&!re,[`${Z}-block`]:w,[`${Z}-rtl`]:"rtl"===z,[`${Z}-icon-end`]:"end"===be},me,f,m,T,xe.root),Ce={...$e.root,...A,...k},Se={className:xe.icon,style:$e.icon},Ee=e=>g().createElement(Rg,{prefixCls:Z,...Se},e),ke=g().createElement(zg,{existIcon:!!v,prefixCls:Z,loading:re,mount:ue.current,...Se}),Ne=zn(o)&&o.icon||H;let Me;Me=v&&!re?Ee(v):o&&Ne?Ee(Ne):ke;const Re=Rn(b)?function(e,t,n,o){let r=!1;const a=[];return g().Children.forEach(e,e=>{const t=Pn(e)||In(e);if(r&&t){const t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);r=t}),g().Children.map(a,e=>function(e,t,n,o){if(!Rn(e))return;const r=t?" ":"";return!Pn(e)&&!In(e)&&Pn(e.type)&&kg(e.props.children)?cl(e,e=>{const t=u(e.className,o)||void 0,a={...n,...e.style};return{...e,children:e.children.split("").join(r),className:t,style:a}}):Pn(e)?g().createElement("span",{className:o,style:n},kg(e)?e.split("").join(r):e):sl(e)?g().createElement("span",{className:o,style:n},e):cl(e,e=>({...e,className:u(e.className,o)||void 0,style:{...e.style,...n}}))}(e,t,n,o))}(b,de&&Y,$e.content,xe.content):null;if(void 0!==ve.href)return g().createElement("a",{...ve,className:u(we,{[`${Z}-disabled`]:te}),href:te?void 0:ve.href,style:Ce,onClick:pe,ref:ce,tabIndex:te?-1:0,"aria-disabled":te},Me,Re);let Ie=g().createElement("button",{...R,type:C,className:we,style:Ce,onClick:pe,disabled:te,ref:ce},Me,Re,me&&g().createElement(Zg,{prefixCls:Z}));return Ng(V)||(Ie=g().createElement(Cg,{component:"Button",disabled:re},Ie)),Ie}),eb=Jg;eb.Group=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Mr),{prefixCls:o,size:r,className:a,...i}=e,s=t("btn-group",o),[,,l]=Rs(),c=h.useMemo(()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}},[r]),d=u(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return h.createElement(Sg.Provider,{value:r},h.createElement("div",{...i,className:d}))},eb.__ANT_BUTTON=!0;const tb=eb;var nb=n(569);function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ob.apply(this,arguments)}const rb=(e,t)=>h.createElement(pn,ob({},e,{ref:t,icon:nb.A})),ab=h.forwardRef(rb);var ib=n(869);function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sb.apply(this,arguments)}const lb=(e,t)=>h.createElement(pn,sb({},e,{ref:t,icon:ib.A})),cb=h.forwardRef(lb);var db=n(65);function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ub.apply(this,arguments)}const pb=(e,t)=>h.createElement(pn,ub({},e,{ref:t,icon:db.A})),fb=h.forwardRef(pb);var mb=n(472);function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hb.apply(this,arguments)}const gb=(e,t)=>h.createElement(pn,hb({},e,{ref:t,icon:mb.A})),bb=h.forwardRef(gb);var vb=n(760);function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yb.apply(this,arguments)}const xb=(e,t)=>h.createElement(pn,yb({},e,{ref:t,icon:vb.A})),$b=h.forwardRef(xb),wb=e=>{const{prefixCls:t,className:n,style:o,size:r,shape:a}=e,i=u({[`${t}-lg`]:"large"===r,[`${t}-sm`]:"small"===r}),s=u({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=h.useMemo(()=>In(r)?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return h.createElement("span",{className:u(t,i,s,n),style:{...l,...o}})},Cb=new Si("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sb=e=>({height:e,lineHeight:sa(e)}),Eb=e=>({width:e,...Sb(e)}),kb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Cb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Nb=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Sb(e)}),Mb=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:a}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...Eb(o)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Eb(r)},[`${t}${t}-sm`]:{...Eb(a)}}},Rb=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:n,...Nb(t,s)},[`${o}-lg`]:{...Nb(r,s)},[`${o}-sm`]:{...Nb(a,s)}}},Ib=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:o,calc:r}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...Eb(r(o).mul(2).equal())}},_b=e=>({[e.skeletonNodeCls]:{...Ib(e)}}),Pb=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:o}=e;return{[t]:{...Ib(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Eb(n),maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},zb=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Ob=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Sb(e)}),Tb=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(o).mul(2).equal(),minWidth:s(o).mul(2).equal(),...Ob(o,s)},...zb(e,o,n),[`${n}-lg`]:{...Ob(r,s)},...zb(e,r,`${n}-lg`),[`${n}-sm`]:{...Ob(a,s)},...zb(e,a,`${n}-sm`)}},Ab=Is("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:a,skeletonInputCls:i,skeletonNodeCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:d,controlHeightSM:u,gradientFromColor:p,padding:f,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:b,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:p,...Eb(c)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...Eb(d)},[`${n}-sm`]:{...Eb(u)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:p,borderRadius:b,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:b,"+ li":{marginBlockStart:y}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${o}, ${r} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[o]:{marginBlockStart:m,[`+ ${r}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...Tb(e),...Mb(e),...Rb(e),..._b(e),...Pb(e)},[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${a},\n ${i},\n ${s},\n ${l}\n `]:{...kb(e)}}}})(Gi(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Lb=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:r,internalClassName:a,style:i,styles:s,active:l,children:c}=e,{getPrefixCls:d}=h.useContext(Mr),p=d("skeleton",t),[f,m]=Ab(p),g=u(p,`${p}-element`,{[`${p}-active`]:l},f,o?.root,n,r,m);return h.createElement("div",{className:g,style:s?.root},h.createElement("div",{className:u(o?.content,a||`${p}-node`),style:{...s?.content,...i}},c))},Bb=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Hb=e=>{const{prefixCls:t,className:n,style:o,rows:r=0}=e,a=Array.from({length:r}).map((t,n)=>h.createElement("li",{key:n,style:{width:Bb(n,e)}}));return h.createElement("ul",{className:u(t,n),style:o},a)},jb=({prefixCls:e,className:t,width:n,style:o})=>h.createElement("h3",{className:u(e,t),style:{width:n,...o}});function Db(e){return zn(e)?e:{}}function qb(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Wb(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Fb(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}const Gb=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:r,classNames:a,style:i,styles:s,children:l,avatar:c=!1,title:d=!0,paragraph:p=!0,active:f,round:m}=e,{getPrefixCls:g,direction:b,className:v,style:y,classNames:x,styles:$}=_r("skeleton"),w=g("skeleton",t),[C,S]=Ab(w),E={...e,avatar:c,title:d,paragraph:p},[k,N]=Zs([x,a],[$,s],{props:E});if(n||!("loading"in e)){const e=!!c,t=!!d,n=!!p;let a,s;if(e){const e={className:k.avatar,prefixCls:`${w}-avatar`,...qb(t,n),...Db(c),style:N.avatar};a=h.createElement("div",{className:u(k.header,`${w}-header`),style:N.header},h.createElement(wb,{...e}))}if(t||n){let o,r;if(t){const t={className:k.title,prefixCls:`${w}-title`,...Wb(e,n),...Db(d),style:N.title};o=h.createElement(jb,{...t})}if(n){const n={className:k.paragraph,prefixCls:`${w}-paragraph`,...Fb(e,t),...Db(p),style:N.paragraph};r=h.createElement(Hb,{...n})}s=h.createElement("div",{className:u(k.section,`${w}-section`),style:N.section},o,r)}const l=u(w,{[`${w}-with-avatar`]:e,[`${w}-active`]:f,[`${w}-rtl`]:"rtl"===b,[`${w}-round`]:m},k.root,v,o,r,C,S);return h.createElement("div",{className:l,style:{...N.root,...y,...i}},a,s)}return l??null};Gb.Button=e=>{const{prefixCls:t,className:n,rootClassName:o,classNames:r,active:a,style:i,styles:s,block:l=!1,size:c,...d}=e,{getPrefixCls:p}=h.useContext(Mr),f=p("skeleton",t),[m,g]=Ab(f),b=Tr(e=>c??e),v=u(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:l},r?.root,n,o,m,g);return h.createElement("div",{className:v,style:s?.root},h.createElement(wb,{prefixCls:`${f}-button`,className:r?.content,style:{...s?.content,...i},size:b,...d}))},Gb.Avatar=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:r,active:a,style:i,styles:s,shape:l="circle",size:c,...d}=e,{getPrefixCls:p}=h.useContext(Mr),f=p("skeleton",t),[m,g]=Ab(f),b=Tr(e=>c??e),v=u(f,`${f}-element`,{[`${f}-active`]:a},o?.root,n,r,m,g);return h.createElement("div",{className:v,style:s?.root},h.createElement(wb,{prefixCls:`${f}-avatar`,className:o?.content,style:{...s?.content,...i},shape:l,size:b,...d}))},Gb.Input=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:r,active:a,block:i,style:s,styles:l,size:c,...d}=e,{getPrefixCls:p}=h.useContext(Mr),f=p("skeleton",t),[m,g]=Ab(f),b=Tr(e=>c??e),v=u(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:i},o?.root,n,r,m,g);return h.createElement("div",{className:v,style:l?.root},h.createElement(wb,{prefixCls:`${f}-input`,className:o?.content,style:{...l?.content,...s},size:b,...d}))},Gb.Image=e=>{const{getPrefixCls:t}=h.useContext(Mr),n=t("skeleton",e.prefixCls);return h.createElement(Lb,{...e,internalClassName:`${n}-image`},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},Gb.Node=Lb;const Xb=Gb,Vb=({prefixCls:e,className:t,hoverable:n=!0,...o})=>{const{getPrefixCls:r}=h.useContext(Mr),a=r("card",e),i=u(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return h.createElement("div",{...o,className:i})},Kb=e=>{const{antCls:t,componentCls:n,headerHeight:o,headerPadding:r,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${sa(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0 0`,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Qi,[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Ub=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${sa(r)} 0 0 0 ${n},\n 0 ${sa(r)} 0 0 ${n},\n ${sa(r)} ${sa(r)} 0 0 ${n},\n ${sa(r)} 0 0 0 ${n} inset,\n 0 ${sa(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},Yb=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:a,actionsBg:i}=e;return{margin:0,padding:0,listStyle:"none",background:i,borderTop:`${sa(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)}`,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:sa(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:sa(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${sa(e.lineWidth)} ${e.lineType} ${a}`}}}},Zb=e=>({margin:`${sa(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Qi},"&-description":{color:e.colorTextDescription}}),Qb=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:o,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${sa(o)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${sa(e.padding)} ${sa(r)}`}}},Jb=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},ev=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:a,bodyPadding:i,extraColor:s,motionDurationMid:l}=e;return{[t]:{...Ji(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Kb(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Ub(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Yb(e),[`${t}-meta`]:Zb(e)},[`${t}-bordered`]:{border:`${sa(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${sa(e.borderRadiusLG)} ${sa(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:Qb(e),[`${t}-loading`]:Jb(e),[`${t}-rtl`]:{direction:"rtl"}}},tv=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:o,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${sa(o)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},nv=Is("Card",e=>{const t=Gi(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[ev(t),tv(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),ov=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return h.createElement("ul",{className:t,style:o},n.map((e,t)=>{const o=`action-${t}`;return h.createElement("li",{style:{width:100/n.length+"%"},key:o},h.createElement("span",null,e))}))},rv=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,style:a,extra:i,headStyle:s={},bodyStyle:l={},title:c,loading:d,bordered:p,variant:f,size:m,type:g,cover:b,actions:v,tabList:y,children:x,activeTabKey:$,defaultActiveTabKey:w,tabBarExtraContent:C,hoverable:S,tabProps:E={},classNames:k,styles:N,...M}=e,{getPrefixCls:R,direction:I,className:_,style:P,classNames:z,styles:O}=_r("card"),[T]=$c("card",f,p),A=Tr(m),L={...e,size:A,variant:T},[B,H]=Zs([z,k],[O,N],{props:L}),j=h.useMemo(()=>Gt(x),[x]),D=h.useMemo(()=>j.some(e=>h.isValidElement(e)&&e.type===Vb),[j]),q=R("card",n),[W,F]=nv(q),G=h.createElement(Xb,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),X=void 0!==$,V={...E,[X?"activeKey":"defaultActiveKey"]:X?$:w,tabBarExtraContent:C};let K;const U="small"!==A?"large":A,Y=y?h.createElement(mg,{size:U,...V,className:`${q}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:y.map(({tab:e,...t})=>({label:e,...t}))}):null;if(c||i||Y){const e=u(`${q}-head`,B.header),t=u(`${q}-head-title`,B.title),n=u(`${q}-extra`,B.extra),o={...s,...H.header};K=h.createElement("div",{className:e,style:o},h.createElement("div",{className:`${q}-head-wrapper`},c&&h.createElement("div",{className:t,style:H.title},c),i&&h.createElement("div",{className:n,style:H.extra},i)),Y)}const Z=u(`${q}-cover`,B.cover),Q=b?h.createElement("div",{className:Z,style:H.cover},b):null,J=u(`${q}-body`,B.body),ee={...l,...H.body},te=d||j.length?h.createElement("div",{className:J,style:ee},d?G:x):null,ne=u(`${q}-actions`,B.actions),oe=v?.length?h.createElement(ov,{actionClasses:ne,actionStyle:H.actions,actions:v}):null,re=Ot(M,["onTabChange"]),ae=u(q,_,{[`${q}-loading`]:d,[`${q}-bordered`]:"borderless"!==T,[`${q}-hoverable`]:S,[`${q}-contain-grid`]:D,[`${q}-contain-tabs`]:y?.length,[`${q}-small`]:"small"===A,[`${q}-type-${g}`]:!!g,[`${q}-rtl`]:"rtl"===I},o,r,W,F,B.root),ie={...H.root,...P,...a};return h.createElement("div",{ref:t,...re,className:ae,style:ie},K,Q,te,oe)}),av=rv;av.Grid=Vb,av.Meta=e=>{const{prefixCls:t,className:n,avatar:o,title:r,description:a,style:i,classNames:s,styles:l,...c}=e,{getPrefixCls:d,className:p,style:f,classNames:m,styles:g}=_r("cardMeta"),b=`${d("card",t)}-meta`,[v,y]=Zs([m,s],[g,l],{props:e}),x=u(b,n,p,v.root),$={...f,...y.root,...i},w=u(`${b}-avatar`,v.avatar),C=u(`${b}-title`,v.title),S=u(`${b}-description`,v.description),E=u(`${b}-section`,v.section),k=o?h.createElement("div",{className:w,style:y.avatar},o):null,N=r?h.createElement("div",{className:C,style:y.title},r):null,M=a?h.createElement("div",{className:S,style:y.description},a):null,R=N||M?h.createElement("div",{className:E,style:y.section},N,M):null;return h.createElement("div",{...c,className:x,style:$},k,R)};const iv=av;function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sv.apply(this,arguments)}const lv=h.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:o,disabled:r,loadingIcon:a,checkedChildren:i,unCheckedChildren:s,onClick:l,onChange:c,onKeyDown:d,styles:p,classNames:f,...m},g)=>{const[b,v]=je(o??!1,n);function y(e,t){let n=b;return r||(n=e,v(n),c?.(n,t)),n}const x=u(e,t,{[`${e}-checked`]:b,[`${e}-disabled`]:r});return h.createElement("button",sv({},m,{type:"button",role:"switch","aria-checked":b,disabled:r,className:x,ref:g,onKeyDown:function(e){e.which===wt.LEFT?y(!1,e):e.which===wt.RIGHT&&y(!0,e),d?.(e)},onClick:function(e){const t=y(!b,e);l?.(t,e)}}),a,h.createElement("span",{className:`${e}-inner`},h.createElement("span",{className:u(`${e}-inner-checked`,f?.content),style:p?.content},i),h.createElement("span",{className:u(`${e}-inner-unchecked`,f?.content),style:p?.content},s)))});lv.displayName="Switch";const cv=lv,dv=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=sa(l(s).add(l(o).mul(2)).equal()),u=sa(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:sa(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${sa(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},uv=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},pv=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i(a).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""',"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${sa(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},fv=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:a,handleSize:i,switchDuration:s,calc:l}=e,c=`${t}-inner`,d=sa(l(i).add(l(o).mul(2)).equal()),u=sa(l(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:r,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${s} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${s} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:r,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(o).mul(2).equal(),marginInlineEnd:l(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(o).mul(-1).mul(2).equal(),marginInlineEnd:l(o).mul(2).equal()}}}}}},mv=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:{...Ji(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:sa(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...ns(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},hv=Is("Switch",e=>{const t=Gi(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[mv(t),fv(t),pv(t),uv(t),dv(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,a=t*n,i=o/2,s=a-4,l=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new J("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}),gv=h.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:r,loading:a,className:i,rootClassName:s,style:l,checked:c,value:d,defaultChecked:p,defaultValue:f,onChange:m,styles:g,classNames:b,...v}=e,[y,x]=je(p??f??!1,c??d),{getPrefixCls:$,direction:w,className:C,style:S,classNames:E,styles:k}=_r("switch"),N=h.useContext(xc),M=(r??N)||a,R=$("switch",n),[I,_]=hv(R),P=Tr(o),z={...e,size:P,disabled:M},[O,T]=Zs([E,b],[k,g],{props:z}),A=h.createElement("div",{className:u(`${R}-handle`,O.indicator),style:T.indicator},a&&h.createElement(Nd,{className:`${R}-loading-icon`})),L=u(C,{[`${R}-small`]:"small"===P,[`${R}-loading`]:a,[`${R}-rtl`]:"rtl"===w},i,s,O.root,I,_),B={...T.root,...S,...l};return h.createElement(Cg,{component:"Switch",disabled:M},h.createElement(cv,{...v,classNames:O,styles:T,checked:y,onChange:(...e)=>{x(e[0]),m?.(...e)},prefixCls:R,className:L,style:B,disabled:M,ref:t,loadingIcon:A}))}),bv=gv;bv.__ANT_SWITCH=!0;const vv=bv,yv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return Gi(e,{tagFontSize:r,tagLineHeight:sa(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},xv=e=>{const t=Ag(new Hl(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new J(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},$v=Is("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:a}=e,i=a(o).sub(n).equal(),s=a(t).sub(n).equal();return{[r]:{...Ji(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${sa(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${r}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${r}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${r}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${r}-default`]:{color:e.solidTextColor}},[`${r}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${r}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${r}-solid, &${r}-filled`]:{color:e.colorTextDisabled,[`${r}-close-icon`]:{color:e.colorTextDisabled}},[`${r}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(yv(e)),xv),wv=h.forwardRef((e,t)=>{const{prefixCls:n,style:o,className:r,checked:a,children:i,icon:s,onChange:l,onClick:c,onKeyDown:d,disabled:p,...f}=e,{getPrefixCls:m,tag:g}=h.useContext(Mr),b=h.useContext(xc),v=p??b,y=m("tag",n),[x,$]=$v(y),w=u(y,`${y}-checkable`,{[`${y}-checkable-checked`]:a,[`${y}-checkable-disabled`]:v},g?.className,r,x,$);return h.createElement("span",{...f,ref:t,role:"checkbox","aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...o,...g?.style},className:w,onClick:e=>{v||(l?.(!a),c?.(e))},onKeyDown:e=>{d?.(e),e.defaultPrevented||v||" "===e.key&&(e.preventDefault(),l?.(!a))}},s,h.createElement("span",null,i))}),Cv=wv,Sv=g().forwardRef((e,t)=>{const{id:n,prefixCls:o,rootClassName:r,className:a,style:i,classNames:s,styles:l,disabled:c,options:d,value:p,defaultValue:f,onChange:m,multiple:b,...v}=e,{getPrefixCls:y,direction:x,className:$,style:w,classNames:C,styles:S}=_r("tag"),E=y("tag",o),k=`${E}-checkable-group`,N=ml(E),[M,R]=$v(E,N),[I,_]=Zs([C,s],[S,l],{props:e}),P=(0,h.useMemo)(()=>Array.isArray(d)?d.map(e=>zn(e)?e:{value:e,label:e}):[],[d]),[z,O]=je(f,p),T=g().useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:T.current}));const A=Lt(v,{aria:!0,data:!0});return g().createElement("div",{...A,className:u(k,$,r,{[`${k}-disabled`]:c,[`${k}-rtl`]:"rtl"===x},M,R,a,I.root),style:{...w,..._.root,...i},id:n,ref:T},P.map(e=>g().createElement(Cv,{key:e.value,className:u(`${k}-item`,I.item,e.className),style:{..._.item,...e.style},checked:b?(z||[]).includes(e.value):z===e.value,onChange:t=>((e,t)=>{let n=null;if(b){const o=z||[];n=e?[].concat(X(o),[t.value]):o.filter(e=>e!==t.value)}else n=e?t.value:null;O(n),m?.(n)})(t,e),disabled:c},e.label)))}),Ev=Sv;const kv=Ps(["Tag","preset"],e=>(e=>Rl(e,(t,{textColor:n,lightBorderColor:o,lightColor:r,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:r,borderColor:o,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:r,color:n}}})))(yv(e)),xv),Nv=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${o}Bg`],borderColor:e[`color${o}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${o}Bg`],color:e[`color${n}`]}}}},Mv=Ps(["Tag","status"],e=>{const t=yv(e);return[Nv(t,"success","Success"),Nv(t,"processing","Info"),Nv(t,"error","Error"),Nv(t,"warning","Warning")]},xv),Rv=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,style:a,children:i,icon:s,color:l,variant:c,onClose:d,bordered:p,disabled:f,href:m,target:g,styles:b,classNames:v,...y}=e,{getPrefixCls:x,direction:$,className:w,variant:C,style:S,classNames:E,styles:k}=_r("tag"),[N,M,R,I,_]=function(e,t){const{color:n,variant:o,bordered:r}=e;return h.useMemo(()=>{const e=n?.endsWith("-inverse");let a;a=o||(e?"solid":!1===r?"filled":t||"filled");let i=e?n?.replace("-inverse",""):n;void 0===i&&"solid"===a&&(i="default");const s=Tl(i),l=function(e){return Ol.includes(e)}(i),c={};if(!s&&!l&&i)if("solid"===a)c.backgroundColor=n;else{const e=new J(i).toHsl();e.l=.95,c.backgroundColor=new J(e).toHexString(),c.color=n,"outlined"===a&&(c.borderColor=n)}return[a,i,s,l,c]},[n,o,r,t])}(e,C),P=R||I,z=h.useContext(xc),O=f??z,{tag:T}=h.useContext(Mr),[A,L]=h.useState(!0),B=Ot(y,["closeIcon","closable"]),H={...e,color:M,variant:N,disabled:O},[j,D]=Zs([E,v],[k,b],{props:H}),q=h.useMemo(()=>{let e={...D.root,...S,...a};return O||(e={..._,...e}),e},[D.root,S,a,_,O]),W=x("tag",n),[F,G]=$v(W),X=u(W,w,j.root,`${W}-${N}`,{[`${W}-${M}`]:P,[`${W}-hidden`]:!A,[`${W}-rtl`]:"rtl"===$,[`${W}-disabled`]:O},o,r,F,G),V=e=>{O||(e.stopPropagation(),d?.(e),e.defaultPrevented||L(!1))},K=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},[,U]=Ju(Uu(e),Uu(T),{closable:!1,closeIconRender:e=>{const t=h.createElement("span",{role:"button",tabIndex:O?-1:0,"aria-disabled":O||void 0,className:u(`${W}-close-icon`,j.close),onClick:V,onKeyDown:K,style:D.close},e);return ll(e,t,e=>({onClick:t=>{e?.onClick?.(t),V(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||K(t)},role:"button",tabIndex:O?-1:0,"aria-disabled":O||void 0,className:u(e?.className,`${W}-close-icon`,j.close),style:{...D.close,...e?.style}}))}}),Y=On(y.onClick)||i&&"a"===i.type,Z=cl(s,{className:u(h.isValidElement(s)?s.props?.className:void 0,j.icon),style:D.icon}),Q=Z?h.createElement(h.Fragment,null,Z,i&&h.createElement("span",{className:j.content,style:D.content},i)):i,ee=m?"a":"span",te=h.createElement(ee,{...B,ref:t,className:X,style:q,href:O?void 0:m,target:g,onClick:O?void 0:B.onClick,...m&&O?{"aria-disabled":!0}:{}},Q,U,R&&h.createElement(kv,{key:"preset",prefixCls:W}),I&&h.createElement(Mv,{key:"status",prefixCls:W}));return Y?h.createElement(Cg,{component:"Tag"},te):te}),Iv=Rv;Iv.CheckableTag=Cv,Iv.CheckableTagGroup=Ev;const _v=Iv,Pv=window.ReactJSXRuntime,zv=({activeColor:e})=>(0,Pv.jsx)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pv.jsx)("path",{fill:e,d:"M12 0C5.372 0 0 5.372 0 12c0 6.626 5.372 12 12 12s12-5.372 12-12c0-6.626-5.372-12-12-12ZM9 17H7V7H9Zm8 0H11V15h6Zm0-4H11V11h6Zm0-4H11V7h6Z"})}),Ov=({activeColor:e})=>(0,Pv.jsx)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pv.jsx)("path",{fill:e,d:"M16.34 0a.205.205 0 00-.18.116c-.05.105-.01.23.095.28.503.25.459.692.418.87-.08.352-.391.723-.8.723-.522 0-.772-.263-1.052-.746-.138-.236-.523-.81-1.113-.982a1.615 1.615 0 00-1.718.533 1.615 1.615 0 00-1.717-.533c-.59.172-.975.746-1.114.982-.28.483-.53.746-1.042.746H8.11a.833.833 0 01-.81-.62c-.04-.146-.124-.642.442-.98a.208.208 0 00.071-.286.208.208 0 00-.286-.071c-.652.388-.753 1.002-.631 1.447.148.55.637.921 1.21.925h.01c.787 0 1.138-.493 1.404-.952.088-.151.412-.658.871-.79.567-.164 1.17.099 1.407.615a.212.212 0 00.182.121h.024a.211.211 0 00.182-.121c.236-.516.84-.78 1.407-.614.459.135.783.638.87.79.267.462.618.95 1.414.95.479 0 1.046-.357 1.204-1.042.132-.566-.11-1.08-.64-1.34a.215.215 0 00-.102-.02zM3.821.093a.21.21 0 00-.21.209c0 .115.092.21.21.21H6.41a.21.21 0 00.209-.21.21.21 0 00-.21-.21zm13.863 0a.21.21 0 00-.209.209c0 .115.095.21.21.21h2.587a.21.21 0 00.21-.21.21.21 0 00-.21-.21zM2.904.096a.21.21 0 00-.206.21.21.21 0 00.21.208.21.21 0 00.209-.209.21.21 0 00-.21-.209.21.21 0 00-.003 0zm18.24 0a.21.21 0 00-.206.21.21.21 0 00.209.208.21.21 0 00.21-.209.21.21 0 00-.21-.209.21.21 0 00-.004 0zm-19.39 0a.209.209 0 00-.196.21v2.216c0 .115.091.21.206.21a.21.21 0 00.21-.21V.859l1.015 1.153a.209.209 0 00.313-.273L1.922.167a.211.211 0 00-.167-.07zm20.512 0a.21.21 0 00-.168.07l-1.38 1.57a.205.205 0 00.02.293c.082.078.213.068.29-.02L22.045.855V2.52c0 .114.095.209.21.209a.21.21 0 00.209-.21V.306a.208.208 0 00-.197-.208zM8.235.526a.564.564 0 10.563.563.564.564 0 00-.563-.563zm7.591 0a.564.564 0 000 1.126.565.565 0 000-1.126zm3.59.224a.208.208 0 00-.212.164c-.078.354-.034.637.134.846.243.304.635.314.679.314a.209.209 0 00.202-.158c.078-.29.047-.547-.094-.756-.226-.338-.641-.402-.689-.408a.214.214 0 00-.02-.002zm-14.835 0c-.007 0-.013 0-.02.002-.047.006-.459.07-.688.408-.139.209-.172.462-.098.759a.213.213 0 00.202.159c.044 0 .435-.01.678-.314.169-.21.213-.496.135-.847a.208.208 0 00-.209-.167zm3.654.19a.15.15 0 01.148.149.15.15 0 01-.148.148.15.15 0 01-.148-.148.15.15 0 01.148-.148zm7.591 0a.15.15 0 01.149.149.15.15 0 01-.149.148.15.15 0 01-.148-.148.15.15 0 01.148-.148zM4.41 1.234a.41.41 0 01-.078.267.395.395 0 01-.178.121c0-.088.023-.165.064-.226a.51.51 0 01.192-.162zm15.18 0c.07.034.144.088.192.162.04.064.064.138.064.226a.404.404 0 01-.176-.121.412.412 0 01-.08-.267zm-6.593.135a1.3 1.3 0 00-.439.07.206.206 0 00-.121.267.21.21 0 00.266.125c.034-.013.844-.283 1.464.682.04.06.108.094.176.094.037 0 .077-.01.111-.034a.208.208 0 00.064-.286c-.465-.72-1.07-.918-1.52-.918zm-1.989.003a1.577 1.577 0 00-.262.017c-.35.05-.853.25-1.272.901a.207.207 0 00.064.287.196.196 0 00.112.034.212.212 0 00.175-.095c.618-.965 1.427-.695 1.464-.681a.208.208 0 00.267-.125.211.211 0 00-.125-.27c-.023-.008-.184-.065-.423-.068zm.976.162a.21.21 0 00-.205.21.21.21 0 00.209.209.21.21 0 00.209-.21.21.21 0 00-.21-.209.21.21 0 00-.003 0zm6.779.303c-.2-.007-.455.052-.77.244a3.24 3.24 0 00-.533.415c-.513.452-.941.442-.965.442a.208.208 0 00-.1.395c.33.155.63.216.9.216.516 0 .928-.226 1.215-.463.458-.378.695-.853.705-.873a.206.206 0 00-.081-.27.777.777 0 00-.372-.106zm-13.434.002a.796.796 0 00-.372.104.206.206 0 00-.081.27c.01.02.246.495.705.873.287.237.695.463 1.214.463.274 0 .574-.061.901-.216a.207.207 0 00.112-.24.208.208 0 00-.213-.158c-.017 0-.449.013-.962-.44A3.237 3.237 0 006.1 2.08c-.315-.19-.57-.248-.77-.242zM12 2.114c-.263 0-.469.273-.627.634-1.677.074-3.762 1.157-3.85 1.201-1.427.719-2.898-.638-3.273-1.019-.057-.064-.097-.101-.1-.108a.208.208 0 00-.304.283l.26.294c.151.189.343.462.505.79.405.82.412 1.565.024 2.22a8.822 8.822 0 00-1.174 1.896c-1.13.368-1.535-.32-1.552-.351 0-.004-.003-.003-.003-.007-.213-.357-.129-.84.195-1.147.25-.236.685-.256.82-.256h.003c.453 0 .918-.071 1.219-.59.229-.399.168-.892-.156-1.219-.327-.334-.82-.391-1.258-.148a.206.206 0 00-.081.283.206.206 0 00.283.081c.28-.152.564-.125.76.078a.596.596 0 01.09.718c-.185.32-.438.385-.843.385h-.014c-.185 0-.617.027-.961.25V3.335a.21.21 0 00-.21-.21.21.21 0 00-.208.21v3.509c-.23.412-.243.914-.007 1.32.023.043.168.286.492.468.186.105.453.203.807.203.128 0 .27-.014.421-.044-.364.978-.546 2.03-.553 3.178v.037a9.1 9.1 0 002.052 5.729 9.45 9.45 0 004.527 3.047 3.84 3.84 0 00-3.634 1.491 1.391 1.391 0 00-.192-.206.77.77 0 00.375-.658.767.767 0 00-.989-.732 1.175 1.175 0 00-.087-.368c-.324-.725-.915-.847-1.445-.904-.175-.02-.765-.108-1.076-.472-.391-.442-.398-1.1-.023-1.525a.208.208 0 10-.31-.277c-.51.58-.507 1.474.006 2.082.067.08.145.148.226.209a1.738 1.738 0 00-.651.334c-.496.408-.75 1.09-.756 2.017a.212.212 0 00.095.22c.033.02.07.03.107.03.014 0 .03-.003.044-.007h.004c.006 0 .01-.003.017-.007.01-.003.023-.007.033-.013.004 0 .004-.003.007-.003a.242.242 0 00.084-.081c.081-.105.415-.237.692-.294 1.083-.236 1.31-.968 1.275-1.32a.208.208 0 10-.415.038c0 .003.004.064-.016.155-.051.21-.237.57-.932.722h-.006a2.772 2.772 0 00-.55.179c.06-.6.253-1.04.58-1.312.503-.419 1.167-.3 1.174-.297a.203.203 0 00.064 0 2.5 2.5 0 00.277.043c.557.061.897.183 1.11.658.165.375-.047.807-.334 1.023-.145.111-.533.33-.968-.027a.209.209 0 00-.267.32c.196.162.415.257.641.284-.29.236-.486.533-.573.688-.284.49-.513.752-.895.756v-1.461a.21.21 0 00-.209-.21.21.21 0 00-.209.21v1.694c0 .084.05.155.122.189.037.027.08.047.128.047h4.858a.212.212 0 00.176-.095.22.22 0 00.06-.1 1.686 1.686 0 013.192-.223h-.445a1.204 1.204 0 00-1.117-.75c-.543 0-1.022.368-1.167.891a.21.21 0 00.145.257.21.21 0 00.256-.145.791.791 0 011.407-.253h-.121a.21.21 0 00-.21.209c0 .114.095.209.21.209h.421l.024.003c.01 0 .02 0 .027-.003h.837a.21.21 0 00.209-.21c0-.01 0-.02-.004-.03a.257.257 0 00-.003-.087 2.106 2.106 0 00-4.035-.092h-1.09c.088-.28.206-.54.354-.782.01-.014.017-.027.027-.04a3.434 3.434 0 014.862-.97c.017.011.034.021.05.025.088.104.176.215.26.33l.058.081c-.02.429.212.877.695 1.336.017.05.034.095.044.128v.044c0 .115.094.21.209.21a.203.203 0 00.199-.156c0-.003.03-.104.091-.273.435-.425.651-.84.648-1.242a6.449 6.449 0 01.381-.496 3.393 3.393 0 011.947-.607 3.42 3.42 0 013.273 2.413h-1.09a2.1 2.1 0 00-2.004-1.461c-.948 0-1.782.637-2.031 1.552a.173.173 0 000 .1v.018c0 .114.094.209.209.209h1.828a.21.21 0 00.21-.21.21.21 0 00-.21-.208h-.664a.791.791 0 011.41.263.206.206 0 00.253.148.21.21 0 00.152-.253 1.21 1.21 0 00-2.288-.159h-.421a1.687 1.687 0 013.191.223c.004.017.014.034.02.05a.208.208 0 00.2.146h4.95a.21.21 0 00.208-.21v-.067c.004-.02.004-.04.004-.06 0-.004 0-.008-.004-.011v-1.582a.21.21 0 00-.209-.21.21.21 0 00-.209.21v1.417c-.35-.027-.57-.287-.84-.752a2.65 2.65 0 00-.54-.658c.186-.04.364-.129.53-.267a.209.209 0 00-.267-.32c-.432.357-.82.138-.968.027-.287-.216-.5-.652-.334-1.023.212-.475.553-.6 1.11-.658.07-.006.165-.02.277-.043.02.003.043.003.067 0 .007 0 .665-.122 1.17.296.331.274.527.712.584 1.316a2.762 2.762 0 00-.553-.182h-.007c-.691-.152-.88-.51-.93-.719a.468.468 0 01-.018-.155.208.208 0 10-.415-.037c-.033.354.193 1.083 1.28 1.32.28.06.633.198.698.303a.356.356 0 00.034.04l.01.007c.01.007.02.017.03.02.003.003.01.007.013.007.01.007.02.01.03.014l.014.003c.014.003.03.007.047.007.014 0 .024 0 .037-.003.004 0 .007 0 .01-.003.01-.003.02-.007.034-.01h.004c.01-.003.017-.01.027-.014l.003-.003c.007-.003.014-.01.017-.013.003-.003.01-.007.014-.014l.013-.013c.003-.007.01-.01.013-.017l.01-.017.01-.017c.004-.007.004-.014.007-.02.004-.007.004-.014.007-.02 0-.007.004-.014.004-.017 0-.007.003-.014.003-.024v-.003c-.003-.955-.26-1.646-.763-2.061a1.69 1.69 0 00-.65-.334c.08-.061.158-.132.225-.21.517-.607.52-1.5.007-2.081a.205.205 0 00-.293-.017.205.205 0 00-.017.293c.374.426.367 1.083-.014 1.536-.31.364-.9.452-1.076.472-.53.057-1.124.179-1.444.904-.05.111-.081.236-.088.371a.767.767 0 00-1.002.729c0 .29.162.543.402.671-.071.065-.139.135-.2.216a3.847 3.847 0 00-3.62-1.518 9.413 9.413 0 005.55-4.619 8.912 8.912 0 001.016-4.153V11.977a8.487 8.487 0 00-.644-3.168c.138.027.27.037.388.037.873 0 1.258-.6 1.299-.671a1.3 1.3 0 00.11-1.05c.004-.01.004-.023.004-.037V3.286a.21.21 0 00-.209-.21.21.21 0 00-.21.21V6.48c-.353-.307-.866-.34-1.079-.34-.411.003-.668-.062-.857-.385a.592.592 0 01.091-.72c.2-.202.483-.228.76-.077a.209.209 0 00.202-.364c-.439-.243-.931-.182-1.259.148-.323.331-.384.82-.155 1.218.3.517.756.59 1.205.59h.017c.135 0 .57.021.82.257.323.307.408.79.195 1.147 0 0-.003.004-.003.007-.017.03-.419.712-1.539.354a10.48 10.48 0 00-1.093-1.808l-.165.125.165-.128-.067-.088c-.719-1.205.111-2.487.543-3.03l.243-.277a.208.208 0 00-.304-.283 2.71 2.71 0 00-.101.108c-.375.381-1.839 1.73-3.26 1.026l-.04-.027-.02-.014c-1.272-.685-2.527-1.08-3.725-1.18-.155-.355-.36-.625-.62-.625zm-8.509.077a.21.21 0 00-.205.21.21.21 0 00.209.209.21.21 0 00.209-.21.21.21 0 00-.21-.209.21.21 0 00-.003 0zm16.91 0a.21.21 0 00-.206.21.21.21 0 00.21.209.21.21 0 00.209-.21.21.21 0 00-.21-.209.21.21 0 00-.003 0zm-15.017.061c.35.017.8.385.958.543l.01.01c.159.142.318.247.463.324-.73.007-1.212-.55-1.43-.877zm13.324 0a2.62 2.62 0 01-.46.513c-.303.25-.627.37-.97.364.14-.074.3-.182.461-.324l.01-.01c.159-.158.608-.526.959-.543zm-6.718.283c.186.071.473.945.56 1.539.017.118.027.226.027.314a.59.59 0 01-1.18 0 2.91 2.91 0 01.03-.31c.09-.632.401-1.475.563-1.543zm-8.84.313l-.02.001c-.047.007-.459.071-.688.408-.138.21-.172.463-.098.76a.213.213 0 00.203.158c.043 0 .435-.01.678-.314.168-.209.212-.496.135-.846a.206.206 0 00-.21-.167zm17.727 0a.208.208 0 00-.213.163c-.077.354-.033.638.135.847.25.304.641.314.682.317a.209.209 0 00.202-.158c.075-.297.044-.55-.097-.76-.226-.337-.641-.401-.689-.408a.213.213 0 00-.02-.001zm-8.11.325c1.082.122 2.212.493 3.363 1.11l.044.03.023.014c.334.169.692.253 1.063.253.392 0 .8-.094 1.211-.283l-1.08 1.231a.761.761 0 00-.732.047 7.877 7.877 0 00-3.69-1.46 6.766 6.766 0 00-.203-.942zm-1.556.007c-.101.34-.169.695-.203.938a7.879 7.879 0 00-3.735 1.504.752.752 0 00-.712-.03L5.429 4.3c.415.186.82.28 1.211.28a2.36 2.36 0 001.066-.253c.02-.01 1.947-1.012 3.506-1.147zm-8.23.152c0 .11-.026.199-.077.266a.395.395 0 01-.179.122c0-.088.024-.166.065-.226a.51.51 0 01.192-.162zm18.071 0a.51.51 0 01.193.162c.04.064.064.138.064.226a.404.404 0 01-.176-.122.412.412 0 01-.08-.266zm-10.05 1.207a.994.994 0 00.79.837v.145A6.472 6.472 0 007.83 7.036l-.297-.34a.76.76 0 00.037-.77 7.488 7.488 0 013.432-1.387zm1.983 0a7.472 7.472 0 013.398 1.353.755.755 0 00.044.746l-1.68 1.916a.205.205 0 00.02.294.212.212 0 00.297-.02l1.677-1.913a.752.752 0 00.749-.047 7.506 7.506 0 011.96 4.15 1.008 1.008 0 00-.715.769l-.24.01a6.48 6.48 0 00-1.69-4.157.208.208 0 00-.307.28 6.07 6.07 0 011.569 3.63l-2.244-2.236a.208.208 0 00-.294.293l2.41 2.409L12 17.954l-5.938-5.938 2.389-2.389a.208.208 0 00-.294-.293L5.941 11.55a6.07 6.07 0 011.855-3.92l1.046 1.194c.04.048.098.071.159.071a.219.219 0 00.138-.05.208.208 0 00.02-.294L8.11 7.353a6.043 6.043 0 013.428-1.396L9.757 7.72a.208.208 0 00.148.354c.054 0 .105-.02.149-.06l1.956-1.937 1.9 1.9a.208.208 0 00.293-.294l-1.727-1.727a6.03 6.03 0 012.976 1.049.21.21 0 00.29-.054.21.21 0 00-.054-.29 6.435 6.435 0 00-3.468-1.134V5.38c.39-.095.705-.429.765-.84zm-7.75.17l1.013 1.156a.76.76 0 00-.058.73 7.912 7.912 0 00-2.058 4.399c-.3.047-.698.175-.998.367.118-1.78.715-3.323 1.822-4.693l.016-.023c.351-.58.439-1.242.264-1.937zm13.435.003c-.182.695-.094 1.353.257 1.936l.088.118c.765 1.023 1.663 2.605 1.835 4.575a2.526 2.526 0 00-.989-.354 7.916 7.916 0 00-2.098-4.44.748.748 0 00-.05-.742zm-1.622 1.167h.043c.156.01.287.121.321.27.003.02.007.037.007.057-.004.004 0 .01 0 .017a.353.353 0 01-.24.33.38.38 0 01-.108.018h-.033a.344.344 0 01-.314-.345.348.348 0 01.324-.348zm-10.186.057h.023c.159 0 .294.108.334.257.007.03.014.06.014.09a.345.345 0 01-.32.344h-.028a.347.347 0 01-.344-.344c0-.016 0-.03.004-.046 0-.01.003-.017.003-.027a.345.345 0 01.314-.274zm-4.045.938a.621.621 0 100 1.243.621.621 0 000-1.243zm18.296 0a.621.621 0 10.001 1.243.621.621 0 000-1.243zM6.46 6.918a.78.78 0 00.756.054l.3.344a6.486 6.486 0 00-2.01 4.477l-.17-.01a1.008 1.008 0 00-.782-.786A7.49 7.49 0 016.46 6.918zm.223.368a.199.199 0 00-.145.064c-.054.054-1.296 1.343-1.508 3.165a.21.21 0 00.185.23h.024a.205.205 0 00.206-.186c.192-1.677 1.38-2.909 1.39-2.919a.208.208 0 00-.004-.293.207.207 0 00-.148-.06zm10.65.002a.208.208 0 00-.15.353c.013.013 1.2 1.244 1.393 2.921a.208.208 0 00.206.186h.023a.209.209 0 00.183-.233c-.21-1.822-1.455-3.111-1.509-3.165a.212.212 0 00-.146-.062zm-14.516.005c.11 0 .202.09.202.202a.203.203 0 01-.202.203.203.203 0 01-.203-.203c0-.111.091-.202.203-.202zm18.296 0c.112 0 .203.09.203.202a.203.203 0 01-.203.203.199.199 0 01-.202-.203c0-.111.09-.202.202-.202zM1.741 9.026a.206.206 0 00-.22.207v3.802a.202.202 0 00.206.206.21.21 0 00.209-.21V9.628c.337.156.668.145.688.145a.205.205 0 00.2-.215.205.205 0 00-.217-.2c-.003 0-.455.01-.728-.27a.21.21 0 00-.138-.061zm20.5 0a.213.213 0 00-.14.062c-.273.28-.721.27-.728.27h-.007a.21.21 0 00-.209.199.208.208 0 00.2.215c.02 0 .35.01.687-.145v3.405c0 .114.095.209.21.209a.21.21 0 00.209-.21V9.234a.214.214 0 00-.132-.193.216.216 0 00-.09-.014zm-10.234.824c-.49 0-.884.162-1.184.483-.284.3-.432.695-.449 1.18l-.003.102.003.948h-.003c0 .536.152.965.452 1.285.3.32.695.483 1.184.483.412 0 .752-.098 1.026-.297.25-.182.398-.422.448-.719l.01-1.06c.308-.074.726-.242.989-.64a.173.173 0 00-.044-.257.185.185 0 00-.256.05c-.334.504-1.043.53-1.08.53h-.017c-.874 0-1.208.746-1.221.777a.186.186 0 00.169.26c.07 0 .138-.041.168-.112.004-.007.233-.52.824-.553v.954a.668.668 0 01-.294.49c-.179.125-.418.189-.712.189-.35 0-.638-.122-.85-.361-.216-.24-.324-.58-.324-1.02l.003-1.052c.017-.388.122-.695.32-.914.217-.24.5-.361.851-.361.294 0 .533.064.712.189.179.125.28.297.297.52v.023a.233.233 0 00.466 0v-.024a1.076 1.076 0 00-.46-.796c-.273-.2-.613-.297-1.025-.297zm7.706 1.542c.06 0 .125.007.189.017.455.074.968.381.978.567v.01c-.006.189-.523.496-.978.57-.064.01-.128.017-.189.017a.592.592 0 01-.59-.59.592.592 0 01.59-.591zm-15.361.003a.59.59 0 01.59.59.591.591 0 01-.59.591c-.078 0-.166-.01-.257-.03-.428-.091-.971-.361-.978-.557v-.01c.007-.196.55-.466.978-.553.095-.02.182-.03.257-.03zm.981.807l.173.01a6.49 6.49 0 002.405 4.852 7.728 7.728 0 00-1.613-.193 7.5 7.5 0 01-1.744-3.903c.388-.081.695-.382.78-.766zm13.402 0c.08.36.354.65.711.749a7.492 7.492 0 01-1.747 3.92c-.462 0-.999.054-1.606.186a6.486 6.486 0 002.399-4.845zm-12.798.276l5.598 5.598a6.089 6.089 0 01-5.598-5.598zm12.123 0a6.085 6.085 0 01-3.533 5.065c-.135.054-.23.097-.276.118-.56.222-1.16.367-1.788.415zM3.137 12.6c.3.196.702.324.999.371a7.892 7.892 0 001.643 3.92 4.867 4.867 0 00-1.006.196A8.538 8.538 0 013.137 12.6zm17.723.023a8.481 8.481 0 01-.948 3.354c-.202.388-.435.76-.692 1.117a4.765 4.765 0 00-1.002-.2 7.944 7.944 0 001.643-3.913c.29-.034.692-.158 1-.358zm1.407.878a.21.21 0 00-.21.209.21.21 0 00.21.21.21.21 0 00.21-.21.21.21 0 00-.21-.21zm-20.55.01a.21.21 0 00-.206.209.21.21 0 00.209.21.21.21 0 00.21-.21.21.21 0 00-.21-.21.21.21 0 00-.004 0zm20.236.61a.21.21 0 00-.209.21c0 .114.095.209.21.209h.333a.21.21 0 00.21-.21.21.21 0 00-.21-.208zM1.7 14.129a.21.21 0 00-.21.21c0 .114.095.209.21.209h.334a.21.21 0 00.209-.21.21.21 0 00-.21-.209zm20.074.59a.21.21 0 00-.209.21c0 .115.095.209.21.209h.512a.21.21 0 00.21-.21.21.21 0 00-.21-.208zM1.7 14.723a.21.21 0 00-.21.21c0 .117.095.208.21.208h.513a.21.21 0 00.209-.209.21.21 0 00-.21-.209zm19.835.59a.21.21 0 00-.21.21c0 .114.095.209.21.209h.752a.21.21 0 00.21-.21.21.21 0 00-.21-.209zM1.7 15.32a.21.21 0 00-.21.21c0 .114.095.209.21.209h.752a.21.21 0 00.21-.21.21.21 0 00-.21-.209zm19.538.59a.21.21 0 00-.21.21c0 .114.095.209.21.209h1.05a.21.21 0 00.209-.21.21.21 0 00-.21-.208zM1.7 15.917a.21.21 0 00-.21.21c0 .114.095.209.21.209h1.05a.21.21 0 00.208-.21.21.21 0 00-.209-.209zm19.238.587a.21.21 0 00-.21.21c0 .114.095.209.21.209h1.35c.114 0 .209-.091.209-.21a.21.21 0 00-.21-.209zM1.7 16.51a.21.21 0 00-.21.21c0 .117.095.208.21.208h1.35a.21.21 0 00.209-.209.21.21 0 00-.21-.209zm18.877.584a.21.21 0 00-.21.209c0 .115.095.21.21.21h.52a.21.21 0 00.209-.21.21.21 0 00-.21-.21zm-17.686.01a.21.21 0 00-.21.21c0 .114.095.208.21.208h.52a.21.21 0 00.209-.209.21.21 0 00-.21-.209zm14.891.177c.386.005.78.05 1.162.157a8.757 8.757 0 01-.554.62c-.283-.077-1.005-.225-1.98-.12-1.06.114-2.618.566-4.21 2.037v-.368a.21.21 0 00-.21-.209.21.21 0 00-.209.21v.347c-1.582-1.454-3.134-1.903-4.187-2.018-.999-.108-1.73.054-1.997.128a9.934 9.934 0 01-.523-.587c-.01-.013-.02-.023-.03-.037 1.015-.28 2.125-.131 2.904.054.942.226 1.63.554 1.637.557l.003-.007a6.5 6.5 0 004.808.004l.02-.01c.088-.038.179-.075.263-.115.287-.118.77-.294 1.35-.432a7.204 7.204 0 011.753-.211zm2.322.407a.21.21 0 00-.209.209c0 .115.095.209.21.209h1.288c.115 0 .21-.091.21-.21a.21.21 0 00-.21-.208zm-17.51.01a.21.21 0 00-.21.209c0 .115.095.21.21.21h1.289a.21.21 0 00.209-.21.208.208 0 00-.21-.21zm16.974.587a.21.21 0 00-.21.209c0 .115.095.21.21.21h1.009a.21.21 0 00.209-.21.21.21 0 00-.21-.21zm1.855 0a.21.21 0 00-.205.209.21.21 0 00.209.21.21.21 0 00.21-.21.21.21 0 00-.21-.21.21.21 0 00-.004 0zm-18.86.007a.21.21 0 00-.209.209.21.21 0 00.21.209.21.21 0 00.209-.21.21.21 0 00-.21-.208zm.847 0a.21.21 0 00-.209.209c0 .114.095.209.21.209h1.008a.21.21 0 00.21-.21.21.21 0 00-.21-.208zm3.547.033c.192.001.401.012.623.037 1.873.21 3.31 1.28 4.211 2.177v.61a.983.983 0 00-.101.064 6.845 6.845 0 00-.867-.924c-.85-.753-2.281-1.603-4.258-1.367v.004a8.758 8.758 0 01-.604-.51c.232-.046.574-.092.996-.09zm10.096.002c.416-.002.755.042.987.086a7.807 7.807 0 01-.601.506c-1.97-.23-3.394.618-4.244 1.367a6.788 6.788 0 00-.878.94c-.04-.026-.077-.053-.11-.07v-.594c1.595-1.602 3.18-2.081 4.233-2.2.219-.024.424-.034.613-.035zm1.86.555a.21.21 0 00-.209.21c0 .114.095.208.21.208h.573a.21.21 0 00.21-.209.21.21 0 00-.21-.209zm1.171 0a.21.21 0 00-.209.21.21.21 0 00.21.208.21.21 0 00.208-.209.21.21 0 00-.209-.209zm-16.181.007a.21.21 0 00-.206.209.21.21 0 00.21.21.21.21 0 00.208-.21.21.21 0 00-.209-.21.21.21 0 00-.003 0zm.597 0a.21.21 0 00-.21.209c0 .115.095.21.21.21h.574a.21.21 0 00.209-.21.21.21 0 00-.21-.21zm2.71.41c1.225-.008 2.339.424 3.326 1.29.35.307.628.624.837.898-.064.07-.122.148-.172.236a5.338 5.338 0 00-1.259-1.174l.004-.01a.098.098 0 00-.03-.007 5.006 5.006 0 00-2.022-.76 8.77 8.77 0 01-.803-.472l.12-.002zm9.581 0l.118.001a8.91 8.91 0 01-.81.476c-1.443.22-2.432.968-3.066 1.69a4.511 4.511 0 00-.23.28 1.594 1.594 0 00-.168-.24c.209-.272.492-.6.85-.913.98-.863 2.09-1.296 3.306-1.294zm-11.727 1.77a.347.347 0 110 .693.347.347 0 010-.694zm13.856 0a.347.347 0 11.001.693.347.347 0 010-.694zm-6.93.445h.004c.023.013.047.03.077.05a1.16 1.16 0 01.307.294.763.763 0 01.139.32c.037.247-.068.517-.307.81a2.7 2.7 0 01-.213.226l-.003.003-.004.003v-.007c-.007-.007-.017-.013-.024-.023a2.324 2.324 0 01-.178-.193c-.247-.293-.355-.567-.317-.816.003-.02.006-.04.013-.061a.794.794 0 01.138-.283c.051-.068.108-.125.166-.176.05-.044.1-.08.145-.111.02-.014.037-.024.054-.034 0 0 .003 0 .003-.003zm.004 1.703c.003-.003 0-.003 0-.007zm0-1.116h.003zm7.625 0c.117 0 .237.016.354.05.459.135.783.638.87.79.108.189.253.438.466.634h-2.331a3.873 3.873 0 00-.372-.894c.2-.358.595-.577 1.013-.58zm-15.125.038c.381.005.713.19.9.512a3.999 3.999 0 00-.388.924H2.81a2.86 2.86 0 00.418-.59c.088-.152.412-.658.87-.79.136-.04.268-.058.396-.056z"})}),{Text:Tv,Title:Av}=Kd,Lv=e=>({infinite_slider:(0,q.__)("Infinite Slider","marqueex"),text_marquee:(0,q.__)("Text Marquee","marqueex"),image_marquee:(0,q.__)("Image Marquee","marqueex"),news_ticker:(0,q.__)("News Ticker","marqueex"),post_marquee:(0,q.__)("Post Marquee","marqueex"),animated_heading:(0,q.__)("Animated Heading","marqueex"),animated_word_roller:(0,q.__)("Animated Word Roller","marqueex"),team_members_marquee:(0,q.__)("Team Members Marquee","marqueex"),testimonial_marquee:(0,q.__)("Testimonial Marquee","marqueex")}[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())),Bv={elementor:{name:(0,q.__)("Elementor","marqueex"),icon:e=>(0,Pv.jsx)(zv,{activeColor:e?"#4a6cf7":"#8c96a0"}),description:(0,q.__)('Adds the MarqueeX widgets to the Elementor panel. Search the panel for "marquee" to find them.',"marqueex"),listLabel:(0,q.__)("Widgets","marqueex")},gutenberg:{name:(0,q.__)("Block editor","marqueex"),icon:e=>(0,Pv.jsx)(Ov,{activeColor:e?"#4a6cf7":"#8c96a0"}),description:(0,q.__)("Adds the MarqueeX blocks to the inserter, in posts, pages and Full Site Editing templates.","marqueex"),listLabel:(0,q.__)("Blocks","marqueex")}},Hv=({builder:e,config:t,settings:n,onToggle:o,onElementToggle:r})=>{const a=Bv[e]||{name:e.charAt(0).toUpperCase()+e.slice(1),icon:()=>null,description:"",listLabel:(0,q.__)("Elements","marqueex")},i=!!n.enabled,s=t?.elements||{},l=Object.keys(s),c=l.filter(e=>n.elements?.[e]??!0).length;return(0,Pv.jsxs)(iv,{className:"marqueex-builder marqueex-builder--"+(i?"on":"off"),variant:"outlined",children:[(0,Pv.jsxs)("div",{className:"marqueex-builder__head",children:[(0,Pv.jsx)("span",{className:"marqueex-builder__icon",children:a.icon(i)}),(0,Pv.jsxs)("div",{className:"marqueex-builder__heading",children:[(0,Pv.jsx)(Av,{level:5,style:{margin:0},children:a.name}),(0,Pv.jsx)(Tv,{type:"secondary",className:"marqueex-builder__desc",children:a.description})]}),(0,Pv.jsx)(vv,{checked:i,onChange:t=>o(e,"enabled",t),"aria-label":i?(0,q.__)("Turn this integration off","marqueex"):(0,q.__)("Turn this integration on","marqueex")})]}),i&&l.length>0&&(0,Pv.jsxs)("div",{className:"marqueex-builder__body",children:[(0,Pv.jsxs)("div",{className:"marqueex-builder__list-head",children:[(0,Pv.jsx)(Tv,{strong:!0,children:a.listLabel}),(0,Pv.jsx)(_v,{className:"marqueex-builder__count",bordered:!1,children:`${c}/${l.length}`})]}),(0,Pv.jsx)(kf,{gutter:[8,8],children:l.map(t=>(0,Pv.jsx)(Rf,{xs:24,children:(0,Pv.jsxs)("label",{className:"marqueex-builder__element",children:[(0,Pv.jsx)("span",{children:Lv(t)}),(0,Pv.jsx)(vv,{size:"small",checked:n.elements?.[t]??!0,onChange:n=>r(e,t,n)})]})},t))})]}),!i&&(0,Pv.jsx)("div",{className:"marqueex-builder__body",children:(0,Pv.jsx)(Tv,{type:"secondary",className:"marqueex-builder__off-note",children:(0,q.__)("Off — nothing from MarqueeX is registered here, and no scripts or styles load for it.","marqueex")})})]})},jv=window.wp.apiFetch;var Dv=n.n(jv),qv=n(677);function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wv.apply(this,arguments)}const Fv=(e,t)=>h.createElement(pn,Wv({},e,{ref:t,icon:qv.A})),Gv=h.forwardRef(Fv);var Xv=n(771);function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vv.apply(this,arguments)}const Kv=(e,t)=>h.createElement(pn,Vv({},e,{ref:t,icon:Xv.A})),Uv=h.forwardRef(Kv);var Yv=n(244);function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zv.apply(this,arguments)}const Qv=(e,t)=>h.createElement(pn,Zv({},e,{ref:t,icon:Yv.A})),Jv=h.forwardRef(Qv),{Title:ey,Text:ty}=Kd,ny=()=>{const e=window.marqueexAdminData||{},[t,n]=(0,c.useState)(!!e.showOnboarding);if(!t)return null;const o=()=>{n(!1),Dv()({path:"/wpxero/marqueex/v1/dismiss_onboarding",method:"POST"}).catch(()=>{})},r=[{key:"blocks",icon:(0,Pv.jsx)(Gv,{}),title:(0,q.__)("Block editor","marqueex"),body:(0,q.__)("Create a page, then add a Text Marquee, Image Marquee, News Ticker, Post Marquee or Infinite Slider block from the inserter.","marqueex"),href:e.newPageUrl,label:(0,q.__)("Create a page","marqueex"),disabled:!1},{key:"elementor",icon:(0,Pv.jsx)(Uv,{}),title:(0,q.__)("Elementor","marqueex"),body:(0,q.__)('Edit a page with Elementor and search the panel for "marquee" — eight MarqueeX widgets are waiting there.',"marqueex"),href:e.newPageUrl,label:(0,q.__)("Create a page","marqueex"),disabled:!e.hasElementor,note:e.hasElementor?null:(0,q.__)("Elementor is not installed, so these widgets are unavailable.","marqueex")}];return(0,Pv.jsxs)(iv,{className:"marqueex-onboarding",title:(0,Pv.jsx)(ey,{level:5,style:{margin:0},children:(0,q.__)("Get your first marquee running","marqueex")}),extra:(0,Pv.jsx)(tb,{type:"text",size:"small",icon:(0,Pv.jsx)(ju,{}),onClick:o,"aria-label":(0,q.__)("Dismiss","marqueex")}),children:[(0,Pv.jsx)(ty,{type:"secondary",className:"marqueex-onboarding__lede",children:(0,q.__)("MarqueeX adds scrolling content — logo strips, announcement bars, news tickers and post carousels — to the editor you already use. It takes about a minute.","marqueex")}),(0,Pv.jsx)(kf,{gutter:[16,16],className:"marqueex-onboarding__routes",children:r.map(({key:e,icon:t,title:n,body:o,href:r,label:a,disabled:i,note:s})=>(0,Pv.jsx)(Rf,{xs:24,md:12,children:(0,Pv.jsxs)("div",{className:"marqueex-onboarding__route",children:[(0,Pv.jsx)("span",{className:"marqueex-onboarding__icon",children:t}),(0,Pv.jsxs)("div",{className:"marqueex-onboarding__route-body",children:[(0,Pv.jsx)(ty,{strong:!0,children:n}),(0,Pv.jsx)("div",{children:(0,Pv.jsx)(ty,{type:"secondary",style:{fontSize:13},children:o})}),s&&(0,Pv.jsx)("div",{children:(0,Pv.jsx)(ty,{type:"secondary",style:{fontSize:12,fontStyle:"italic"},children:s})})]}),(0,Pv.jsx)(tb,{type:"primary",href:r,disabled:i,icon:(0,Pv.jsx)(Jv,{}),iconPosition:"end",className:"marqueex-onboarding__cta",children:a})]})},e))}),(0,Pv.jsx)(hf,{type:"info",showIcon:!0,className:"marqueex-onboarding__note",message:(0,q.__)("Nothing below needs changing first","marqueex"),description:(0,Pv.jsxs)(Pv.Fragment,{children:[(0,q.__)("Every widget and block is already switched on. The settings below are only there if you want to turn some of them off, match the responsive breakpoints to your theme, or adjust what MarqueeX puts in the page source.","marqueex")," ",e.docsUrl&&(0,Pv.jsx)("a",{href:e.docsUrl,target:"_blank",rel:"noopener noreferrer",children:(0,q.__)("Read the docs","marqueex")})]})}),(0,Pv.jsx)(tf,{className:"marqueex-onboarding__footer",children:(0,Pv.jsx)(tb,{type:"link",size:"small",onClick:o,style:{padding:0},children:(0,q.__)("Got it — hide this","marqueex")})})]})};var oy=n(477);function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ry.apply(this,arguments)}const ay=(e,t)=>h.createElement(pn,ry({},e,{ref:t,icon:oy.A})),iy=h.forwardRef(ay);var sy=n(537);function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ly.apply(this,arguments)}const cy=(e,t)=>h.createElement(pn,ly({},e,{ref:t,icon:sy.A})),dy=h.forwardRef(cy);var uy=n(184);function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},py.apply(this,arguments)}const fy=(e,t)=>h.createElement(pn,py({},e,{ref:t,icon:uy.A})),my=h.forwardRef(fy);function hy(){return"function"==typeof BigInt}function gy(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function by(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var o=t||"0",r=o.split("."),a=r[0]||"0",i=r[1]||"0";"0"===a&&"0"===i&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:o,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(o)}}function vy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function yy(e){var t=Lr(e.toLowerCase().split("e"),2),n=t[0],o=t[1],r=void 0===o?"0":o,a=n.startsWith("-"),i=Lr((a?n.slice(1):n).split("."),2),s=i[0],l=void 0===s?"0":s,c=i[1],d=void 0===c?"":c;return{decimal:d,digits:"".concat(l).concat(d).replace(/^0+/,"")||"0",exponent:Number(r),integer:l,negative:a}}function xy(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function $y(e){var t=String(e);return vy(e)?xy(yy(t)):t.includes(".")&&Cy(t)?t.length-t.indexOf(".")-1:0}function wy(e){var t=String(e);if(vy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(hy()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(hy()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=yy(t),o=xy(n);t=o>100?function(e){var t=e.decimal,n=e.digits,o=e.exponent,r=e.integer,a=e.negative;if("0"===n)return"0";var i,s=r.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=(s||-l)+o;return i=c<=0?"0.".concat("0".repeat(-c)).concat(n):c>=n.length?"".concat(n).concat("0".repeat(c-n.length)):"".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(a?"-":"").concat(i)}(n):e.toFixed(o)}return by(t).fullStr}function Cy(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var Sy=function(){function e(t){if(ki(this,e),Hr(this,"origin",""),Hr(this,"negative",void 0),Hr(this,"integer",void 0),Hr(this,"decimal",void 0),Hr(this,"decimalLen",void 0),Hr(this,"empty",void 0),Hr(this,"nan",void 0),gy(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(vy(n)&&(n=Number(n)),Cy(n="string"==typeof n?n:wy(n))){var o=by(n);this.negative=o.negative;var r=o.trimStr.split(".");this.integer=BigInt(r[0]);var a=r[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}}return Mi(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,o){var r=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(r),t.alignDecimal(r)).toString(),i=o(r),s=by(a),l=s.negativeStr,c=s.trimStr,d="".concat(l).concat(c.padStart(i+1,"0"));return new e("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":by("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),Ey=function(){function e(t){ki(this,e),Hr(this,"origin",""),Hr(this,"number",void 0),Hr(this,"empty",void 0),gy(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Mi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max($y(this.number),$y(n));return new e(o.toFixed(r))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var o=this.number*n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max($y(this.number),$y(n));return new e(o.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":vy(this.number)&&$y(this.number)>100?String(this.number):wy(this.number)}}]),e}();function ky(e){return hy()?new Sy(e):new Ey(e)}function Ny(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=by(e),a=r.negativeStr,i=r.integerStr,s=r.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);return d>=5&&!o?Ny(ky(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d)).toString(),t,n,o):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}const My=ky;function Ry({prefixCls:e,action:t,children:n,disabled:o,className:r,style:a,onStep:i}){const s="up"===t,l=h.useRef(),c=h.useRef([]),d=()=>{clearTimeout(l.current)};h.useEffect(()=>()=>{d(),c.current.forEach(e=>{Ft.cancel(e)})},[]);const p=`${e}-action`,f=u(p,`${p}-${t}`,{[`${p}-${t}-disabled`]:o},r),m=()=>c.current.push(Ft(d));return h.createElement("span",{unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m,onMouseDown:e=>{(e=>{e.preventDefault(),d(),i(s,"handler"),l.current=setTimeout(function e(){i(s,"handler"),l.current=setTimeout(e,200)},600)})(e)},"aria-label":s?"Increase Value":"Decrease Value","aria-disabled":o,className:f,style:a},n||h.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function Iy(e){const t="number"==typeof e?wy(e):by(e).fullStr;return t.includes(".")?by(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_y.apply(this,arguments)}const Py=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),zy=e=>{const t=My(e);return t.isInvalidate()?null:t},Oy=h.forwardRef((e,t)=>{const{mode:n="input",prefixCls:o="rc-input-number",className:r,style:a,classNames:i,styles:s,min:l,max:c,step:d=1,defaultValue:p,value:f,disabled:m,readOnly:g,upHandler:b,downHandler:v,keyboard:y,changeOnWheel:x=!1,controls:$=!0,prefix:w,suffix:C,stringMode:S,parser:E,formatter:k,precision:N,decimalSeparator:M,onChange:R,onInput:I,onPressEnter:_,onStep:P,onMouseDown:z,onClick:O,onMouseUp:T,onMouseLeave:A,onMouseMove:L,onMouseEnter:B,onMouseOut:H,changeOnBlur:j=!0,...D}=e,[q,W]=h.useState(!1),F=h.useRef(!1),G=h.useRef(!1),X=h.useRef(!1),V=h.useRef(null),K=h.useRef(null);h.useImperativeHandle(t,()=>{return e=K.current,t={focus:e=>{gt(K.current,e)},blur:()=>{K.current?.blur()},nativeElement:V.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];const o=e[n];return"function"==typeof o?o.bind(e):o}}):e;var e,t});const[U,Y]=h.useState(()=>My(f??p)),Z=h.useCallback((e,t)=>{if(!t)return N>=0?N:Math.max($y(e),$y(d))},[N,d]),Q=h.useCallback(e=>{const t=String(e);if(E)return E(t);let n=t;return M&&(n=n.replace(M,".")),n.replace(/[^\w.-]+/g,"")},[E,M]),J=h.useRef(""),ee=h.useCallback((e,t)=>{if(k)return k(e,{userTyping:t,input:String(J.current)});let n="number"==typeof e?wy(e):e;if(!t){const e=Z(n,t);Cy(n)&&(M||e>=0)&&(n=Ny(n,M||".",e))}return n},[k,Z,M]),[te,ne]=h.useState(()=>{const e=p??f;return U.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:ee(U.toString(),!1)});function oe(e,t){ne(ee(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}J.current=te;const re=h.useMemo(()=>zy(c),[c,N]),ae=h.useMemo(()=>zy(l),[l,N]),ie=h.useMemo(()=>!(!re||!U||U.isInvalidate())&&re.lessEquals(U),[re,U]),se=h.useMemo(()=>!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae),[ae,U]),[le,ce]=function(e,t){const n=(0,h.useRef)(null);return[function(){try{const{selectionStart:t,selectionEnd:o,value:r}=e,a=r.substring(0,t),i=r.substring(o);n.current={start:t,end:o,value:r,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(e&&n.current&&t)try{const{value:t}=e,{beforeTxt:o,afterTxt:r,start:a}=n.current;let i=t.length;if(t.startsWith(o))i=o.length;else if(t.endsWith(r))i=t.length-n.current.afterTxt.length;else{const e=o[a-1],n=t.indexOf(e,a-1);-1!==n&&(i=n+1)}e.setSelectionRange(i,i)}catch(e){Rt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}]}(K.current,q),de=e=>re&&!e.lessEquals(re)?re:ae&&!ae.lessEquals(e)?ae:null,ue=e=>!de(e),pe=(e,t)=>{let n=e,o=ue(n)||n.isEmpty();if(n.isEmpty()||t||(n=de(n)||n,o=!0),!g&&!m&&o){const e=n.toString(),o=Z(e,t);return o>=0&&(n=My(Ny(e,".",o)),ue(n)||(n=My(Ny(e,".",o,!0)))),n.equals(U)||(void 0===f&&Y(n),R?.(n.isEmpty()?null:Py(S,n)),void 0===f&&oe(n,t)),n}return U},fe=(()=>{const e=(0,h.useRef)(0),t=()=>{Ft.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=Ft(()=>{n()})}})(),me=e=>{if(le(),J.current=e,ne(e),!G.current){const t=Q(e),n=My(t);n.isNaN()||pe(n,!0)}I?.(e),fe(()=>{let t=e;E||(t=e.replace(/。/g,".")),t!==e&&me(t)})},he=Oe((e,t)=>{if(e&&ie||!e&&se)return;F.current=!1;let n=My(X.current?Iy(d):d);e||(n=n.negate());const o=(U||My(0)).add(n.toString()),r=pe(o,!1);P?.(Py(S,r),{offset:X.current?Iy(d):d,type:e?"up":"down",emitter:t}),K.current?.focus()}),ge=e=>{const t=My(Q(te));let n;n=t.isNaN()?pe(U,e):pe(t,e),void 0!==f?oe(U,!1):n.isNaN()||oe(n,!1)};h.useEffect(()=>{if(x&&q){const e=e=>{he(e.deltaY<0,"wheel"),e.preventDefault()},t=K.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}}),Be(()=>{U.isInvalidate()||oe(U,!1)},[N,k]),Be(()=>{const e=My(f);Y(e);const t=My(Q(te));e.equals(t)&&F.current&&!k||oe(e,F.current)},[f]),Be(()=>{k&&ce()},[te]);const be={prefixCls:o,onStep:he,className:i?.action,style:s?.action},ve=h.createElement(Ry,_y({},be,{action:"up",disabled:ie}),b),ye=h.createElement(Ry,_y({},be,{action:"down",disabled:se}),v);return h.createElement("div",{ref:V,className:u(o,`${o}-mode-${n}`,r,i?.root,{[`${o}-focused`]:q,[`${o}-disabled`]:m,[`${o}-readonly`]:g,[`${o}-not-a-number`]:U.isNaN(),[`${o}-out-of-range`]:!U.isInvalidate()&&!ue(U)}),style:{...s?.root,...a},onMouseDown:e=>{K.current&&e.target!==K.current&&(K.current.focus(),e.preventDefault()),z?.(e)},onMouseUp:T,onMouseLeave:A,onMouseMove:L,onMouseEnter:B,onMouseOut:H,onClick:O,onFocus:()=>{W(!0)},onBlur:()=>{j&&ge(!1),W(!1),F.current=!1},onKeyDown:e=>{const{key:t,shiftKey:n}=e;F.current=!0,X.current=n,"Enter"===t&&(G.current||(F.current=!1),ge(!1),_?.(e)),!1!==y&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(he("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{F.current=!1,X.current=!1},onCompositionStart:()=>{G.current=!0},onCompositionEnd:()=>{G.current=!1,me(K.current.value)},onBeforeInput:()=>{F.current=!0}},"spinner"===n&&$&&ye,void 0!==w&&h.createElement("div",{className:u(`${o}-prefix`,i?.prefix),style:s?.prefix},w),h.createElement("input",_y({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:d,ref:K,className:u(`${o}-input`,i?.input),style:s?.input,value:te,onChange:e=>{me(e.target.value)},disabled:m,readOnly:g},D)),void 0!==C&&h.createElement("div",{className:u(`${o}-suffix`,i?.suffix),style:s?.suffix},C),"spinner"===n&&$&&ve,"input"===n&&$&&h.createElement("div",{className:u(`${o}-actions`,i?.actions),style:s?.actions},ve,ye))}),Ty=Oy,Ay=e=>{const{componentCls:t,lineWidth:n,lineType:o,borderRadius:r,inputFontSizeSM:a,inputFontSizeLG:i,colorError:s,paddingInlineSM:l,paddingBlockSM:c,paddingBlockLG:d,paddingInlineLG:u,colorIcon:p,colorTextDisabled:f,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:b,paddingBlock:v,handleBg:y,handleActiveBg:x,inputAffixPadding:$,borderRadiusSM:w,controlWidth:C,handleBorderColor:S,filledHandleBg:E,lineHeightLG:k,antCls:N}=e,M=`${sa(n)} ${o} ${S}`,[R,I]=zs(N,"input-number");return[{[t]:{...Ji(e),...Xc(e),[R("input-padding-block")]:sa(v),[R("input-padding-inline")]:sa(b),display:"inline-flex",width:C,margin:0,paddingBlock:0,borderRadius:r,..._c(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:M}}}),...Lc(e,{[`${t}-actions`]:{background:E,[`${t}-action-down`]:{borderBlockStart:M}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...qc(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:M}}}),...Oc(e),[`&${t}-borderless`]:{paddingBlock:0,[R("input-padding-block")]:sa(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[R("input-padding-block")]:sa(e.calc(c).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[R("input-padding-block")]:sa(e.calc(d).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...Ji(e),width:"100%",paddingBlock:I("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...Wc(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:x},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:f}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:p,height:"50%",borderInlineStart:M,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:I("input-padding-inline"),"&-up":{borderInlineStart:M},"&-down":{borderInlineEnd:M}},[`${t}-input`]:{textAlign:"center",paddingInline:I("input-padding-inline")}}}},{[t]:{"&-lg":{[R("input-padding-block")]:sa(d),[R("input-padding-inline")]:sa(u),paddingBlock:0,fontSize:i,lineHeight:k},"&-sm":{[R("input-padding-block")]:sa(c),[R("input-padding-inline")]:sa(l),paddingBlock:0,fontSize:a,borderRadius:w}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:$},[`${t}-suffix`]:{height:"100%",marginInlineStart:$,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},Ly=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},By=Is("InputNumber",e=>{const t=Gi(e,Ec(e));return[Ay(t),Ly(t),Sc(t)]},e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-2*e.lineWidth;return{...kc(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new J(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===t?1:0,handleVisibleWidth:!0===t?n:0}},{unitless:{handleOpacity:!0},resetFont:!1}),Hy=h.forwardRef((e,t)=>{const n=h.useRef(null);h.useImperativeHandle(t,()=>n.current);const{rootClassName:o,size:r,disabled:a,prefixCls:i,addonBefore:s,addonAfter:l,prefix:c,suffix:d,bordered:p,readOnly:f,status:m,controls:g=!0,variant:b,className:v,style:y,classNames:x,styles:$,mode:w,...C}=e,{direction:S,className:E,style:k,styles:N,classNames:M}=_r("inputNumber"),R=h.useContext(xc),I=a??R,_=h.useMemo(()=>!(!g||I||f)&&g,[g,I,f]),{compactSize:P,compactItemClassnames:z}=As(i,S);let O="spinner"===w?h.createElement(Lf,null):h.createElement(my,null),T="spinner"===w?h.createElement(dy,null):h.createElement(iy,null);const A="boolean"==typeof _?_:void 0;zn(_)&&(O=_.upIcon||O,T=_.downIcon||T);const{hasFeedback:L,isFormItemInput:B,feedbackIcon:H}=h.useContext($r),j=Tr(e=>r??P??e),[D,q]=$c("inputNumber",b,p),W=L&&h.createElement(h.Fragment,null,H),F={...e,size:j,disabled:I,controls:_},[G,X]=Zs([M,x],[N,$],{props:F});return h.createElement(Ty,{ref:n,mode:w,disabled:I,className:u(v,o,G.root,E,z,gc(i,m,L),{[`${i}-${D}`]:q,[`${i}-lg`]:"large"===j,[`${i}-sm`]:"small"===j,[`${i}-rtl`]:"rtl"===S,[`${i}-in-form-item`]:B,[`${i}-without-controls`]:!_}),style:{...X.root,...k,...y},upHandler:O,downHandler:T,prefixCls:i,readOnly:f,controls:A,prefix:c,suffix:W||d,classNames:G,styles:X,...C})}),jy=h.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:o,prefixCls:r,className:a,status:i,rootClassName:s,...l}=e,{getPrefixCls:c}=_r("inputNumber"),d=c("input-number",r),{status:p}=h.useContext($r),f=bc(p,i),m=ml(d),[g,b]=By(d,m),v=n||o,y=h.createElement(Hy,{ref:t,...l,prefixCls:d,status:f,className:u(b,m,g,a),rootClassName:v?void 0:s});if(v){const t=t=>t?h.createElement(Xp,{className:u(`${d}-addon`,b,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(js,{form:!0},t)):null,r=t(n),a=t(o);return h.createElement(Hs,{rootClassName:s},r,y,a)}return y}),Dy=jy;Dy._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(hu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(jy,{...e}));const qy=Dy,{Text:Wy,Title:Fy}=Kd,Gy=[{key:"mobile",label:(0,q.__)("Mobile","marqueex"),help:(0,q.__)("Mobile styles apply at this width and below.","marqueex"),fallback:480},{key:"tablet",label:(0,q.__)("Tablet","marqueex"),help:(0,q.__)("Tablet styles apply at this width and below.","marqueex"),fallback:1024},{key:"desktop",label:(0,q.__)("Desktop","marqueex"),help:(0,q.__)("Reference width for the desktop controls.","marqueex"),fallback:1200}],Xy=({settings:e,performance:t={},onUpdate:n,onUpdatePerformance:o})=>{const r=e.responsive_breakpoints||{};return(0,Pv.jsxs)(iv,{style:{marginBottom:24,borderRadius:12},title:(0,Pv.jsxs)(tf,{align:"center",children:[(0,Pv.jsx)(fb,{}),(0,Pv.jsx)(Fy,{level:5,style:{margin:0},children:(0,q.__)("Compatibility","marqueex")})]}),children:[(0,Pv.jsx)(Fy,{level:5,style:{marginTop:0},children:(0,q.__)("Responsive breakpoints","marqueex")}),(0,Pv.jsx)(Wy,{type:"secondary",style:{fontSize:13},children:(0,q.__)("The widths MarqueeX uses when it writes media queries for the Tablet and Mobile settings in the block editor. Match these to your theme so a marquee breaks at the same point everything else does.","marqueex")}),(0,Pv.jsx)(kf,{gutter:[16,16],style:{marginTop:20},children:Gy.map(({key:e,label:t,help:o,fallback:a})=>(0,Pv.jsx)(Rf,{xs:24,sm:8,children:(0,Pv.jsxs)("div",{className:"marqueex-breakpoint",children:[(0,Pv.jsx)("label",{className:"marqueex-breakpoint__label",htmlFor:`marqueex-bp-${e}`,children:t}),(0,Pv.jsx)(qy,{id:`marqueex-bp-${e}`,className:"marqueex-breakpoint__field",min:1,max:3e3,step:1,addonAfter:"px",value:r[e]??a,onChange:t=>((e,t)=>{n("responsive_breakpoints",{...r,[e]:t})})(e,t)}),(0,Pv.jsx)("span",{className:"marqueex-breakpoint__help",children:o})]})},e))}),(0,Pv.jsx)(hf,{type:"info",showIcon:!0,style:{margin:"20px 0"},message:(0,q.__)("Values outside 1–3000 px are ignored","marqueex"),description:(0,q.__)("Anything out of range falls back to the default for that device when the settings are saved.","marqueex")}),(0,Pv.jsx)(Fy,{level:5,children:(0,q.__)("Search engines","marqueex")}),(0,Pv.jsxs)(tf,{align:"start",size:16,className:"marqueex-setting-row",children:[(0,Pv.jsx)(vv,{checked:!!e.meta_description,onChange:e=>n("meta_description",e)}),(0,Pv.jsxs)("div",{children:[(0,Pv.jsx)("div",{children:(0,Pv.jsx)(Wy,{strong:!0,children:(0,q.__)("Generate a meta description from marquee text","marqueex")})}),(0,Pv.jsx)(Wy,{type:"secondary",style:{fontSize:13},children:(0,q.__)("Off by default. When on, a page with a marquee and no SEO plugin gets a meta description built from the text your marquees carry. If Yoast or Rank Math is active, MarqueeX only fills in a description they left empty.","marqueex")})]})]}),(0,Pv.jsx)(Fy,{level:5,style:{marginTop:28},children:(0,q.__)("Page source","marqueex")}),(0,Pv.jsxs)(tf,{align:"start",size:16,className:"marqueex-setting-row",children:[(0,Pv.jsx)(vv,{checked:!!t.show_attribution,onChange:e=>o("show_attribution",e)}),(0,Pv.jsxs)("div",{children:[(0,Pv.jsx)("div",{children:(0,Pv.jsx)(Wy,{strong:!0,children:(0,q.__)("Credit MarqueeX in the page source","marqueex")})}),(0,Pv.jsx)(Wy,{type:"secondary",style:{fontSize:13},children:(0,q.__)("Adds an HTML comment naming MarqueeX on pages that use it. Invisible to visitors, and entirely optional — off unless you switch it on.","marqueex")})]})]})]})},{Title:Vy,Text:Ky,Paragraph:Uy}=Kd,Yy="settings",Zy={[Yy]:{label:(0,q.__)("Settings","marqueex"),block:()=>{const[e,t]=(0,c.useState)(!1),[n,o]=(0,c.useState)(!1),{settings:r,builderConfigs:a,isLoading:i}=(0,W.useSelect)(e=>({settings:e("marqueex/settings").getSettings(),builderConfigs:e("marqueex/settings").getBuilderConfigs(),isLoading:e("marqueex/settings").getLoading()})),{setSettings:s,saveSettings:l}=(0,W.useDispatch)("marqueex/settings"),d=(e,t,n)=>{const a={...r,[e]:{...r[e],[t]:n}};s(a),o(!0)},u=(e,t,n)=>{const a={...r,builder_support:{...r.builder_support,[e]:{...r.builder_support[e],[t]:n}}};s(a),o(!0)},p=(e,t,n)=>{const a={...r,builder_support:{...r.builder_support,[e]:{...r.builder_support[e],elements:{...r.builder_support[e].elements,[t]:n}}}};s(a),o(!0)};if(i)return(0,Pv.jsx)("div",{style:{textAlign:"center",padding:"50px"},children:(0,Pv.jsxs)(tf,{direction:"vertical",size:"large",children:[(0,Pv.jsx)(ab,{style:{fontSize:"48px",color:"#1890ff"}}),(0,Pv.jsx)(Ky,{children:(0,q.__)("Loading MarqueeX Settings...","marqueex")})]})});const f=[{key:"builders",label:(0,Pv.jsxs)(tf,{children:[(0,Pv.jsx)(cb,{}),(0,q.__)("Builder Support","marqueex")]}),children:(0,Pv.jsxs)("div",{children:[(0,Pv.jsx)(hf,{type:"info",showIcon:!0,style:{marginBottom:20},message:(0,q.__)("MarqueeX only loads what a page uses","marqueex"),description:(0,q.__)("Widget scripts and styles are registered, not enqueued — they load on the pages that actually render a marquee. The animation itself is CSS keyframes, so there is no animation library to download. Turning an integration off here stops it registering anything at all.","marqueex")}),(0,Pv.jsx)(kf,{gutter:[16,16],children:a&&Object.keys(a).map(e=>(0,Pv.jsx)(Rf,{xs:24,lg:12,children:(0,Pv.jsx)(Hv,{builder:e,config:a[e],settings:r.builder_support?.[e]||{},onToggle:u,onElementToggle:p})},e))})]})},{key:"compatibility",label:(0,Pv.jsxs)(tf,{children:[(0,Pv.jsx)(fb,{}),(0,q.__)("Compatibility","marqueex")]}),children:(0,Pv.jsx)(Xy,{settings:r.compatibility||{},performance:r.performance||{},onUpdate:(e,t)=>d("compatibility",e,t),onUpdatePerformance:(e,t)=>d("performance",e,t)})}];return(0,Pv.jsxs)("div",{className:"marqueex-admin-settings",children:[(0,Pv.jsx)(ny,{}),(0,Pv.jsx)(mg,{defaultActiveKey:"builders",items:f,size:"large",style:{background:"white",borderRadius:"8px",padding:"0px 24px 24px 24px"}}),(0,Pv.jsxs)("div",{className:"marqueex-settings-actions",children:[(0,Pv.jsx)(Ky,{type:n?"warning":"secondary",className:"marqueex-settings-actions__status",children:n?(0,q.__)("You have unsaved changes","marqueex"):(0,q.__)("All changes saved","marqueex")}),(0,Pv.jsx)(tb,{icon:(0,Pv.jsx)(bb,{}),onClick:()=>window.location.reload(),disabled:!n,children:(0,q.__)("Discard","marqueex")}),(0,Pv.jsx)(tb,{type:"primary",icon:(0,Pv.jsx)($b,{}),loading:e,onClick:async()=>{t(!0);try{await l(),o(!1),jp.success({message:(0,q.__)("Settings Saved","marqueex"),description:(0,q.__)("Your MarqueeX settings have been saved successfully.","marqueex"),placement:"topRight"})}catch(e){jp.error({message:(0,q.__)("Save Failed","marqueex"),description:e.message,placement:"topRight"})}finally{t(!1)}},disabled:!n,children:(0,q.__)("Save changes","marqueex")})]})]})},description:(0,q.__)("Configure MarqueeX settings and integrations","marqueex")}},Qy=()=>Yy,Jy=Zy,ex=[];window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,(e,t,n)=>{ex[t]=n});function tx(e){return{type:"SET_ACTIVE_PAGE",activePage:e}}function nx(e){return e?.activePage||"settings"}const ox=(0,W.createReduxStore)("marqueex/admin",{reducer:function(e={activePage:ex.sub_page||Qy()},t={}){return"SET_ACTIVE_PAGE"===t.type&&e.activePage!==t.activePage?{...e,activePage:t.activePage}:e},actions:o,selectors:r});(0,W.register)(ox);const rx={builder_support:{gutenberg:{enabled:!0,auto_detect:!0,elements:{infinite_slider:!0,text_marquee:!0,image_marquee:!0,news_ticker:!0,post_marquee:!0}},elementor:{enabled:!0,auto_detect:!0,elements:{text_marquee:!0,news_ticker:!0,infinite_slider:!0,post_marquee:!0,image_marquee:!0,animated_heading:!0,animated_word_roller:!0,team_members_marquee:!0,testimonial_marquee:!0}},shortcode:{enabled:!0,auto_detect:!0,elements:{text_marquee:!0,news_ticker:!0,infinite_slider:!0}}},performance:{show_attribution:!1},compatibility:{meta_description:!1,responsive_breakpoints:{mobile:480,tablet:1024,desktop:1200}}},ax=()=>window.marqueexAdminData?.settings?{...rx,...window.marqueexAdminData.settings}:rx;function ix(){return({dispatch:e})=>{e({type:"FETCH_SETTINGS_PENDING"}),Dv()({path:"/wpxero/marqueex/v1/get_settings",method:"GET"}).then(t=>{e({type:"FETCH_SETTINGS_SUCCESS",settings:t.response||{}})}).catch(t=>{e({type:"FETCH_SETTINGS_ERROR",error:t?.response||t?.error_code||(0,q.__)("Failed to load settings","marqueex")})})}}function sx(e){return{type:"SET_SETTINGS_LOCAL",settings:e}}function lx(e){return({dispatch:t})=>{if(!e||!Object.keys(e).length)return;t({type:"UPDATE_SETTINGS_PENDING"});const n={settings:e};Dv()({path:"/wpxero/marqueex/v1/update_settings",method:"POST",data:n}).then(n=>(t({type:"UPDATE_SETTINGS_SUCCESS",settings:n.response?.settings||e}),n.response)).catch(e=>{t({type:"UPDATE_SETTINGS_ERROR",error:e?.response||e?.error_code||(0,q.__)("Something went wrong, please, try again…","marqueex")})})}}function cx(){return({dispatch:e,select:t})=>{const n=t.getSettings();return e.updateSettings(n)}}function dx(e){return async({dispatch:t})=>{t({type:"TEST_BUILDER_PENDING",builder:e});try{const n=await Dv()({path:"/wpxero/marqueex/v1/test_builder",method:"POST",data:{builder:e}}),o=n.response||n;return t({type:"TEST_BUILDER_SUCCESS",builder:e,result:o}),o}catch(n){const o=n?.response||n?.error_code||(0,q.__)("Failed to test integration","marqueex");throw t({type:"TEST_BUILDER_ERROR",builder:e,error:o}),new Error(o)}}}function ux(e){return e?.settings||{}}function px(e,t){return e?.settings[t]||""}function fx(e){return e?.updating||!1}function mx(e){return e?.loading||!1}function hx(e){return e?.error||""}function gx(e){return e?.testResults||{}}function bx(e,t){return e?.testResults?.[t]||null}function vx(e){return e?.builderConfigs||{elementor:{name:"Elementor",elements:{text_marquee:!0,image_marquee:!0,animated_heading:!0,animated_word_roller:!0,news_ticker:!0,post_marquee:!0,team_members_marquee:!0,testimonial_marquee:!0}},gutenberg:{name:"Block editor",elements:{infinite_slider:!0,text_marquee:!0,image_marquee:!0,news_ticker:!0,post_marquee:!0}}}}function yx(e){return mx(e)}const xx=(0,W.createReduxStore)("marqueex/settings",{reducer:function(e={settings:ax(),updating:!1,loading:!1,error:"",testResults:{}},t={}){switch(t.type){case"FETCH_SETTINGS_PENDING":return{...e,loading:!0,error:""};case"FETCH_SETTINGS_SUCCESS":return{...e,loading:!1,settings:{...rx,...t.settings}};case"FETCH_SETTINGS_ERROR":return{...e,loading:!1,error:t.error||""};case"SET_SETTINGS_LOCAL":return{...e,settings:t.settings};case"UPDATE_SETTINGS_PENDING":return{...e,updating:!0,error:""};case"UPDATE_SETTINGS_SUCCESS":return{...e,updating:!1,settings:t.settings};case"UPDATE_SETTINGS_ERROR":return{...e,updating:!1,error:t.error||""};case"TEST_BUILDER_PENDING":return{...e,testResults:{...e.testResults,[t.builder]:{status:"testing",message:(0,q.__)("Testing…","marqueex")}}};case"TEST_BUILDER_SUCCESS":return{...e,testResults:{...e.testResults,[t.builder]:t.result}};case"TEST_BUILDER_ERROR":return{...e,testResults:{...e.testResults,[t.builder]:{status:"error",message:t.error||(0,q.__)("Test failed","marqueex")}}};default:return e}},actions:a,selectors:i});(0,W.register)(xx);const $x=()=>{const e=(0,c.useRef)(),{setActivePage:t}=(0,W.useDispatch)("marqueex/admin"),{activePage:n}=(0,W.useSelect)(e=>{const{getActivePage:t}=e("marqueex/admin");return{activePage:t()}});(0,c.useEffect)(()=>{document.querySelectorAll(".toplevel_page_marqueex .current").forEach(e=>{e.classList.remove("current")});let e=document.querySelectorAll(`.toplevel_page_marqueex [href="admin.php?page=marqueex&sub_page=${n}"]`);e&&e.length||(e=document.querySelectorAll('.toplevel_page_marqueex [href="admin.php?page=marqueex"]')),e.forEach(e=>{e.parentNode.classList.add("current")}),document.body.classList.forEach(e=>{/marqueex-admin-page-/.test(e)&&document.body.classList.remove(e)}),document.body.classList.add(`marqueex-admin-page-${n}`),e&&e.length&&window.history.pushState(document.title,document.title,e[0].href)},[n]);const o=[];let r="";if(Object.entries(Jy).forEach(([e,r])=>{o.push((0,Pv.jsx)("a",{href:r.href||"#",target:r.href?"_blank":null,rel:"noreferrer",className:p(n===e&&"active"),onClick:n=>{r.href||(n.preventDefault(),t(e))},children:r.label},e))}),n&&Jy[n]){const e=Jy[n].block;r=(0,Pv.jsx)(e,{})}const a=window.marqueexAdminData?.version||"",i=!!window.marqueexAdminData?.showUpgrade,s=window.marqueexAdminData?.upgradeUrl,l=window.marqueexAdminData?.upgradeLabel,d=window.marqueexAdminData?.supportUrl||"https://wordpress.org/support/plugin/marqueex/";return(0,Pv.jsxs)(Pv.Fragment,{children:[(0,Pv.jsxs)("div",{className:"marqueex-admin-header",children:[(0,Pv.jsx)("div",{className:"marqueex-admin-header-bg"}),(0,Pv.jsx)("div",{className:"marqueex-admin-content header-content",children:(0,Pv.jsxs)("div",{className:"marqueex-admin-header-wrap",children:[(0,Pv.jsxs)("div",{className:"marqueex-admin-header-logo",children:[(0,Pv.jsx)("div",{className:"logo-icon",children:(0,Pv.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",id:"Maya-Logo--Streamline-Logos",height:"24",width:"24",children:(0,Pv.jsx)("path",{fill:"#fff","fill-rule":"evenodd",d:"M1 1.948 7 1.5l4.994 10.987L13.988 18H10.5l-4.727 -6.913 -4.772 -9.139Zm0 3.24v14.71c1.574 -2.424 2.857 -4.752 3.76 -7.511L1 5.187ZM1.064 22.5c2.955 -0.003 4.125 -0.214 4.65 -1v-7.325c-1.169 3.028 -2.779 5.59 -4.65 8.325Zm13.905 -6.197 2.77 -4.847L22.967 2H16.5l-3.636 8.483 2.105 5.82ZM23 5.04l-5 9.046v5.468a35.72 35.72 0 0 0 2.834 -5.037C21.96 12.081 22.768 9.61 23 7.584V5.039Zm0 8.227a35.322 35.322 0 0 1 -0.804 1.879c-1.174 2.542 -2.66 5.01 -4.15 6.878L19 22.5h4v-9.234Z","clip-rule":"evenodd","stroke-width":"1"})})}),(0,Pv.jsxs)("h1",{children:[(0,q.__)("MarqueeX","marqueex"),a&&(0,Pv.jsxs)("span",{className:"marqueex-admin-header-version",children:["v",a]})]})]}),(0,Pv.jsxs)("div",{className:"marqueex-admin-header-actions",children:[o.length>1&&(0,Pv.jsx)("nav",{className:"marqueex-admin-header-nav",children:o}),(0,Pv.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:(0,q.__)("Support","marqueex")}),i&&s&&(0,Pv.jsx)("a",{href:s,...(e=>{try{return new URL(e,window.location.href).origin!==window.location.origin}catch(e){return!0}})(s)?{target:"_blank",rel:"noopener noreferrer"}:{},className:"is-upgrade",children:l})]})]})})]}),(0,Pv.jsx)(A,{mode:"out-in",children:(0,Pv.jsx)(D,{nodeRef:e,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,Pv.jsx)("div",{ref:e,className:p("marqueex-admin-content",`marqueex-admin-content-${n}`),children:(0,Pv.jsx)("div",{className:"marqueex-admin-content-card",children:r})})},n)})]})};window.addEventListener("load",()=>{const e=document.querySelector("#marqueex-admin-page");e&&(0,s.createRoot)(e).render((0,c.createElement)($x))})},611(e){e.exports=r,e.exports.isMobile=r,e.exports.default=r;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,o=/android|ipad|playbook|silk/i;function r(e){e||(e={});let r=e.ua;if(r||"undefined"==typeof navigator||(r=navigator.userAgent),r&&r.headers&&"string"==typeof r.headers["user-agent"]&&(r=r.headers["user-agent"]),"string"!=typeof r)return!1;let a=t.test(r)&&!n.test(r)||!!e.tablet&&o.test(r);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==r.indexOf("Macintosh")&&-1!==r.indexOf("Safari")&&(a=!0),a}},320(e,t){var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case i:case a:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case d:case m:case f:case s:return e;default:return t}}case o:return t}}}(e)===f}},524(e,t,n){e.exports=n(320)}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.m=e,(()=>{const e=[];n.O=(t,o,r,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];return void(e[i]=[o,r,a])}let s=1/0;for(i=0;i<e.length;i++){let[o,r,a]=e[i],c=!0;for(var l=0;l<o.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every(e=>n.O[e](o[l]))?o.splice(l--,1):(c=!1,a<s&&(s=a));if(c){e.splice(i--,1);const n=r();void 0!==n&&(t=n)}}return t}})(),n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],a=t[o++];n.o(e,r)?0===a&&o++:0===a?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:a})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={43:0,430:0};n.O.j=t=>0===e[t];const t=(t,o)=>{let[r,a,i]=o;var s,l,c=0;if(r.some(t=>0!==e[t])){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);if(i)var d=i(n)}for(t&&t(o);c<r.length;c++)l=r[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self.webpackChunkmarqueex_marqueex_admin_=self.webpackChunkmarqueex_marqueex_admin_||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();let o=n.O(void 0,[430],()=>n(535));o=n.O(o),(marqueex=void 0===marqueex?{}:marqueex)["[marqueex-admin]"]=o})(); |