c.disquscdn.com
Open in
urlscan Pro
2600:9000:26db:ba00:6:8656:f5c0:93a1
Public Scan
URL:
https://c.disquscdn.com/embedv2/latest/embedv2.js
Submission: On November 04 via api from IT — Scanned from IT
Submission: On November 04 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
var nue=Object.defineProperty;var rue=(so,Ai,Zo)=>Ai in so?nue(so,Ai,{enumerable:!0,configurable:!0,writable:!0,value:Zo}):so[Ai]=Zo;var qs=(so,Ai,Zo)=>(rue(so,typeof Ai!="symbol"?Ai+"":Ai,Zo),Zo);(function(){var SF,OF,FF;var so=document.createElement("style");so.textContent=`@font-face{font-family:icons;src:url(https://c.disquscdn.com/embedv2/latest/icons.woff2) format("woff2"),url(/assets/font/icons.woff) format("woff");font-weight:400;font-style:normal}._icon_1x9qx_7{display:inline-flex;align-items:center;justify-content:center}._icon_1x9qx_7:before{font-family:icons;content:var(--icon-content);speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._success_16l9s_1,._info_16l9s_1,._warn_16l9s_1,._error_16l9s_1{display:flex;justify-content:space-between;padding:10px 14px;color:#fff;border-bottom:2px solid rgba(60,78,110,.18);font-size:13px}.dark ._success_16l9s_1,.dark ._info_16l9s_1,.dark ._warn_16l9s_1,.dark ._error_16l9s_1{border-bottom:2px solid rgba(255,255,255,.2)}._success_16l9s_1 a,._info_16l9s_1 a,._warn_16l9s_1 a,._error_16l9s_1 a{font-weight:700;text-decoration:underline}._error_16l9s_1,._warn_16l9s_1{background:#f05f70}._info_16l9s_1,._success_16l9s_1{background:rgb(46,159,255)}._message_16l9s_33{display:flex;align-items:center}._icon_16l9s_38{margin-right:.5em;width:13px;height:13px}._dismiss_16l9s_44{background:transparent;border:none;cursor:pointer;color:inherit;font-size:16px}._icon_rsxid_1{font-size:16px;color:#ffd34f}._avatar-square_st8h3_1,._avatar-rounded_st8h3_1,._avatar-circle_st8h3_1{font-size:36px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0}._inner_st8h3_11{font-style:normal;font-weight:600;flex:auto;display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1.2;color:#fff;background:var(--publisher-color, rgb(46, 159, 255))}._image_st8h3_25{width:100%;height:100%;border-radius:inherit}._avatar-circle_st8h3_1{border-radius:50%}._avatar-rounded_st8h3_1{border-radius:16px}._avatar-square_st8h3_1{border-radius:2px}._avatar-large_st8h3_43{width:52px;height:52px}._avatar-medium_st8h3_48{width:40px;height:40px}._avatar-small_st8h3_53{width:36px;height:36px}._avatar-xsmall_st8h3_58{font-size:16px;width:30px;height:30px}._link_1hoja_1{color:var(--publisher-color, rgb(46, 159, 255))}._button_8fv5d_1{font-size:12px;font-weight:700;font-family:inherit;display:inline-block;padding:8px 12px;line-height:normal;border:initial;border-radius:3px;transition:all .25s ease-in-out;cursor:pointer;color:inherit}._button-fill_8fv5d_15{border-color:#687a86;background-color:#687a86;color:#fff}@media (hover: hover){._button-fill_8fv5d_15:hover{border-color:#526069;background-color:#526069;color:#fff}._button-fill_8fv5d_15:disabled,._button-fill_8fv5d_15:disabled:hover{cursor:default;border-color:#bcc5cb;background:#bcc5cb}.dark ._button-fill_8fv5d_15:disabled,.dark ._button-fill_8fv5d_15:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-primary_8fv5d_38{border-color:#2e9fff;background-color:#2e9fff;color:#fff}@media (hover: hover){._button-primary_8fv5d_38:hover{border-color:#0087fa;background-color:#0087fa;color:#fff}._button-primary_8fv5d_38:disabled,._button-primary_8fv5d_38:disabled:hover{cursor:default;border-color:#c7e5ff;background:#c7e5ff}.dark ._button-primary_8fv5d_38:disabled,.dark ._button-primary_8fv5d_38:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-danger_8fv5d_61{border-color:#f05f70;background-color:#f05f70;color:#fff}@media (hover: hover){._button-danger_8fv5d_61:hover{border-color:#ec3046;background-color:#ec3046;color:#fff}._button-danger_8fv5d_61:disabled,._button-danger_8fv5d_61:disabled:hover{cursor:default;border-color:#fdebed;background:#fdebed}.dark ._button-danger_8fv5d_61:disabled,.dark ._button-danger_8fv5d_61:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-success_8fv5d_84{border-color:#5cb767;background-color:#5cb767;color:#fff}@media (hover: hover){._button-success_8fv5d_84:hover{border-color:#459b4f;background-color:#459b4f;color:#fff}._button-success_8fv5d_84:disabled,._button-success_8fv5d_84:disabled:hover{cursor:default;border-color:#c6e6ca;background:#c6e6ca}.dark ._button-success_8fv5d_84:disabled,.dark ._button-success_8fv5d_84:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._card_hu9ay_1{overflow:hidden;color:#494e58;border:1px solid rgb(194,198,204);border-radius:5px;transition:all .25s ease-in-out}.dark ._card_hu9ay_1{color:#ffffffd9;border-color:#fff3}._content_zxk21_1{padding:12px 18px}._header_1iy7u_1{padding:10px 12px;border-bottom:1px solid rgb(235,238,242)}.dark ._header_1iy7u_1{border-color:#fff3}._heading_1iy7u_9{font-size:14px;font-weight:500;margin:0}._footer_pq6g3_1{display:flex;gap:10px;margin:0;padding:10px 18px 12px;border-top:1px solid rgb(235,238,242)}.dark ._footer_pq6g3_1{border-color:#fff3}._checkbox_1nula_1{display:inline-flex;align-items:center;gap:6px;line-height:1.3}._input_1nula_8{margin:0}._link_7oyne_1{color:inherit}._icon_1rgg8_1{margin-right:4px}._domain_1rgg8_5{font-size:11px;color:#656c7a}._loader_e4dlg_1{width:100%;height:var(--loader-height);text-align:center;background:url(data:image/gif;base64,R0lGODdhPgAUAOMJAP///7u9x7/ByuDg4NDQ0MDA0O7u/93e48PFzv///wAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAAJACwAAAAAPgAUAAAE/jDJmQyhANBNRykaJybAYGDjVgTBJa1EmK7BMGWpwQbhEBSnVIKwMxFZstGuIAEIQCPA0uBjuVLHnVb0GQCyrawgpS1fO6ZqmcXcgNfa89cIZ9k2unr5hEuo9UgUNIA/JEFDhGttiIl3JIlrQQCDbAaWbywUWgUmVFoCBF5+a50ea1dOWoeMSyF5gROYLn+Lj2WOCYO1rDUkA2C7r0sSwqsJm0mpVm7DFYp4ZQJ3YEnHO6t/AWMUYhpS0Ul/IZO3GFqO32ZNbwIaBJSFxHGxcD3wV/CJ2y/6PZDlhjxBOpOtzhVLFv5V43WLSgxBCjekU+QQFz04ZygIO3XEoi04MUL42VGT8ca1L0VuiCCZEBYWWEd2YRD10RgHAwJaNLkWkkQSAg97SjiyUMQqCzQpRAAAIfkECQQACQAsAAAAAD0AFAAABP4wyQkGoHbqLUkIFycmoQSUoxcQ5hcM41Z8cDypIfAR6KauhNnHkKrpdhIDbyT4CAwGISg2cFk/vc6nELQKpDXZ1Wqrjmki6dka1vyugp6noF4PJwa7teDmvsdfXBJNemN8E3VnYUeFVxaEVixaV5Ike1BKkRNmlJiQLiwAdSifNUpqKHmRMJxOGqqgGpoaUocJhhxnEq1tt7EUbGJIErgajGQJsFOyLotwJccrHaNuqxcAn5WWLnHbcAMGA59bGpAF4OF7m2eSUWMwiYXaf+zAjZQJA37yBEst9yVm0ClEp0CPaFayJKC3RtsNOwr/6Urjok4/FwpbqYsBywCAHykKP/ojJMAEgV4PaXAqSWWYKCw2UjpMMYxTzI/G/MUkQQelCJFudEqIAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJCQAtxM7NJcFd2BmDJgJEUEypKkqmEczmmWrAHBhvPhODliuEChA8ugFM2WkVKgUd7xXVWVchoUBgFQR/nYF1PBUJx0YD4UhBu2kcnzsDKMEMpDeaidTr2BtneliCfmAshkMJcok6FnMagoAAMjpPEmJ/E5ljBHicSYtVOgI1QlgJbqZWdoWACaB8sFavCWcwaKgSlbSzVjWpoYGaw5YWozO6CbyWu78cV6uOxayLZ2W+vYvVbZ2iYwUDeMjCwcl4ald2i1xWUwDkAQIJ8YndhjGN3qB+sn2GfBgBxKMhSJ43yrIZmrcJA4F2bvxxKKQjy4wvV7jF0SORWgYhKsAWrROipEitDaw4nSyGKkqGF5imwYBJrEVHCgYphCRSAATMQAUYYgIWAQAh+QQJBAAJACwAAAAAPgAUAAAE/jDJSUEhg+qdTAgEJ0rGZYwSQIQS8RWoyibFiyZqJtXgzROAweeDGhIMwmHMqDLeXMNoAJCiUqDSjyGI2QiyNhIHADbWZpJkOWqdqLOXr47yXk8rdrYGa4e1VnlOV4EBOjJ8doZgRwYGX0N+NHCNSFGRdR8DjXUzmAEVj4UTYCduUROIPRNkQ20WUmiSHwInrFJtHVECAwCOUnMSlrhvwLJMQaGfFB5Sfny4CVlAqIIpYDrEg7CjQ8CeVq+QR553CXWaBqmiOLCa6n7heRdd7ISl1oQrRy2EAfc7hARo4BEImiQBBMFAU6cQT4ACCbOMAbemmDleTcoUA2CFXLkRMEMEcPyBglmPVwUMTjAJxJZFDd1SXLgR7QM4XiVbpdhFk0ABgTT3rAi6ioCAWBsiAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJSUkpNOtprtkgcBEgBXBBWk5EMExFSpbAKbUBRsdvggefkiHlMvxmm2HAJiCufoUm8QUgCGwUolZWkua2JxFSAthuY9yM10ywLCkDsxbtyvzkxHECsMbn1H5aPTCBKVcSAxd0hYN7hWlVbVoEBgaJgoRnNnGTEkaSU5WcRDZKcyZeSHJYPlosbCaYrVt6dwQDNXc6KFMSiymNCXQCt1W0dmZBUBmmMgBGW0GZrnt0u3t9bwnNrHcpOmV5sWYTowGUe94FMyJzlZZySHe42LQ97YXXs4+KNuGFtR7VmfAPYAZ8hVghDKQvjoBfW4IVDKSnTIEBA7IRkXYQYho4M+cwBmKVYRQBAKNIUqBjCY2AFfte4Cigkpe2KjUniEtHE+bMcidXiFgH006MnEIuBKMQAQAh+QQJBAAJACwAAAAAPQAUAAAE/jDJOUcIg2oN6BjdJiZCIIxocRFoVbIJcAVGOxlzOAIF0cmXkwQkIswGBtWlJhoImMZLJjalKAXRGSF50d1m4KUIt1IGPytNNsyGUYDsAAtAlMDjYe8dHyiEAAaBZnxyFGt8VRMlhAE6h4xdFZBudms+MWtVgxcFgQOPbgaLJlNknBM8YQVqM1gdFmFMEqYYEo+yMWAEILRphm0xZqsaYEybARtxvYW/YTBZw6i6Hcd6cZhgQnZsAlNrXo8ZA4OJj9GwnEhcWn/HU+i6irqesRyQjZL3xROPwKyQXvRtCSRtkoZleKIl+ABgTzYRx/DgSiXnUAEzXvjxybiQE4FNMFkoUQmRxRu+IloMlGzCBI4QAFhsoOOIMlICFZ1s3PSl085FkS1UymrYc+FFmgkiAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJKUkIgGoNBqGDsY0JUXwkWVxoAmTkFQzScAkpJcMpQcAyTClQ4GmCBpuMNIABZCgbjWJhCYLYggor026qhMFKJhgHWkOuespR34ySqxsrmgDkcyLlScSrC4AtSnlnG4NzAjxVhFg8ZnNoFUFsi2dNaUECBpuHMpRBBJxYbACVkWoZnUadUx2TIFw+XGySdLV6R563Oxp+LFx1E5VEMIteOjJ1vgEbjxdiWXugTsPBCYcozjPSULSHJ7JBPMtCmF0ZAAaPIUlYG3yEn4yNE51ucPb3EgDg2mpow9xEIqfG2r45tOzMu8CD3w0CfgZAizQB4QgDQZyFi8TvxzUoKHZIYGTRjgWTMxkWtUo4QlcOFxaOgUnBYxCclyaKvLTT0ONOCTdIRAAAIfkECQQACQAsAAAAAD0AFAAABP4wyZkAKYPqnQbJXCgZFyByQxAIEwCKamBWATGLhEq0xpnkqgygULtpADGCIaXzEVUm5o5iwAAAgljgCQ0ZtODXxJP5arkFChLMblLI1XaXKmeLsXXtPa+dtvgxRjSAaRNmgFozTHx+E0A6SnExBQVThyoCA1FtL1lJA0tglJ1Jam2KehSPpYMqPWNsBS6erhpcMa+LLHSpFmAbbau1FLdKI7SFhlqvbcB9vmCNa0GObEarM7fUyoESQ3YG4bc3wiugJKJR2gHniysb03l+7ojJHYhiEuWcR+tt9glo5TEST94Gemc8sOMF6JW+Ojs87NKwb4ugCf6CuKikwUAWWSp4hoWYViCUCoBvmrjz4QLWnJFAZgBBqebFTB8bPuKscAOJsZ00BDSaEAEAIfkECQQACQAsAAAAAD4AFAAABP4wyZkIGTRrCUjBW9gVRmgmQQpwAXEmRhqsSUeHcSDQQwCeMoGhl3KZiC0AcWfKtYay3wYgq6akEgONYK2ekN0bp9DidmViWKpAPgcKmZjA4k5pzHVZidLOtzICfmgZVIJvFiCFggMGWglgeRYEe49WF414VTyWjJBXEpktnX0ycBN9phyBVomaFJ5GKDKxNWc0in8UoUYAqHFdIGCUEqQ+oJYZeEwVVqlZVQQrHVbDCahbXbQJq7myVmKZNMXGE7g/nkmPpAXithKQ2MDv3N0ddIbsNZiGMzWS/NoqGZICgF4dbaHqpMHVpY2zWnX6VEOXQkCbgBT71UiTMRgWZi1n8sHYgIcRtxMlDeB5sYoEkockRSJ5MWCZohe9oh1782KDxYAvJPUk9OZjgggAOw==) no-repeat center center}._root_169ev_1{position:relative}._iframe_169ev_5{display:block;opacity:1;transition:opacity .5s ease-in-out}._iframe-loading_169ev_11{position:absolute;opacity:0;visibility:hidden}._image_1mcab_1{display:block;max-width:100%;max-height:480px;border-radius:3px}._root_1wfe0_1{position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%}._container_1r7qu_1{min-height:100px}._mention_1xkh2_1{font-weight:700}._mention_1xkh2_1:before{content:"@"}.dark ._mention_1xkh2_1:before{color:#fff}._menu_1hdnv_1{border:2px solid #687a86;border-radius:15px 3px 15px 15px;background:#fff;outline:none}._button_1hdnv_8{display:inline-flex;align-items:center;justify-content:center;padding:0;color:#494e58;border:none;background:transparent;outline:none;cursor:pointer}._button_1hdnv_8:hover,._button_1hdnv_8[aria-expanded=true]{color:var(--publisher-color, rgb(46, 159, 255))}._item_2hnsa_1{font-size:11px;font-family:inherit;display:flex;padding:6px 8px;width:100%;color:#687a86;border:none;background:transparent;outline:none;cursor:pointer}._item_2hnsa_1:hover:not(:disabled),._item_2hnsa_1:focus:not(:disabled){color:var(--publisher-color, rgb(46, 159, 255))}._radio_1lyat_1{display:inline-flex;align-items:center;gap:6px;line-height:1.3}._input_1lyat_8{margin:0}._stars-inactive_1axb3_1,._stars-active_1axb3_1{display:flex;font-size:14px}._star-inactive_1axb3_6,._star-active_1axb3_6{font-size:14px}._root_1axb3_10{line-height:20px;display:inline-block;unicode-bidi:bidi-override;direction:ltr;position:relative}._stars-active_1axb3_1{position:absolute;z-index:1;top:0;left:0;width:var(--active-width);overflow:hidden;white-space:nowrap}._stars-inactive_1axb3_1{z-index:0}._star-active_1axb3_6{color:#ffd34f}._star-inactive_1axb3_6{color:#ebeef2}._spacer_1fr9r_1{display:inline-block;width:var(--spacer-width)}._spoiler_1mxys_1{display:inline;background:rgb(127,145,158);color:transparent;padding:0 .5em}._spoiler_1mxys_1 a{visibility:hidden;transition:none}._spoiler_1mxys_1:hover,._spoiler_1mxys_1:focus{background:rgb(231,233,238);color:inherit}._spoiler_1mxys_1:hover a,._spoiler_1mxys_1:focus a{visibility:visible}.dark ._spoiler_1mxys_1:hover,.dark ._spoiler_1mxys_1:focus{background:rgba(255,255,255,.08)}._popover_1ocis_1{z-index:1000}._button_rdrky_1{border:none;background:transparent;padding:0;margin:0}._tooltip_ia50n_1{position:relative;padding:8px;text-align:center;overflow:auto;background:#fff;border-radius:4px;box-shadow:0 0 0 3px #0003;color:#7f919e}._tooltip_ia50n_1{width:300px}._text_ia50n_16{font-size:14px;line-height:1.4;margin:0 0 12px}._tabs_1wiw0_1{display:flex;align-items:stretch}._disabled_1sb5m_1,._selected_1sb5m_1,._tab_1sb5m_1{font-size:12px;display:block;width:100%;padding:10px 18px 10px 10px;overflow:visible;white-space:normal;background:rgba(0,0,0,.03);border:1px solid rgb(235,238,242);border-width:0 1px 1px 0;transition:all .2s ease-in-out;margin-bottom:0;color:#687a86}._disabled_1sb5m_1 input[type=radio],._selected_1sb5m_1 input[type=radio],._tab_1sb5m_1 input[type=radio]{display:none}._disabled_1sb5m_1:first-of-type,._selected_1sb5m_1:first-of-type,._tab_1sb5m_1:first-of-type{border-left:none}._disabled_1sb5m_1:last-of-type,._selected_1sb5m_1:last-of-type,._tab_1sb5m_1:last-of-type{border-right:none}.dark ._disabled_1sb5m_1,.dark ._selected_1sb5m_1,.dark ._tab_1sb5m_1{border-color:#fff3}._tab_1sb5m_1{cursor:pointer}._tab_1sb5m_1:hover{background:rgba(0,0,0,.08)}.dark ._tab_1sb5m_1{color:#fff9;background:rgba(255,255,255,.08)}._selected_1sb5m_1{font-weight:600;color:var(--publisher-color, rgb(46, 159, 255));background:transparent;border-bottom:none}.dark ._selected_1sb5m_1{color:#ffffffd9}._disabled_1sb5m_1{color:#c2c6cc}.dark ._disabled_1sb5m_1{color:#ffffff59;background:rgba(255,255,255,.08)}._text_1sb5m_57{font-size:14px;font-weight:500;display:flex;align-items:center;gap:5px;justify-content:center;margin-bottom:2px;text-align:center}._selected_ln985_1,._selectable_ln985_1{position:relative}._selected_ln985_1:before,._selectable_ln985_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_ln985_1:before,.dark ._selectable_ln985_1:before{box-shadow:0 0 0 1px #fff3}._selectable_ln985_1:hover:before{opacity:.75}._selected_ln985_1:before{opacity:1}._delete_ln985_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_ln985_29{color:#656c7a}._element_ln985_47{display:inline-block;background:inherit}._element_ln985_47:not(:first-child){margin-top:8px}._image_ln985_55{display:block;max-width:100%;max-height:20em;box-shadow:none;border-radius:3px}._wrapper_ln985_63{position:relative;display:block;background:inherit;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._loader_ln985_70{display:block;height:115px;background:rgba(16,48,68,.03);width:150px;border-radius:16px}._dialog_1p5t1_1{background:white;border:2px solid rgba(60,78,110,.18);border-radius:16px}.dark ._dialog_1p5t1_1{background:rgb(42,46,46);border:2px solid rgba(255,255,255,.2)}._submit_1p5t1_11,._cancel_1p5t1_11{border-radius:16px}._form_1p5t1_15{font-size:14px;display:flex;flex-direction:column;gap:8px}._field_1p5t1_22{display:flex;align-items:center;gap:8px}._label_1p5t1_28{color:#7f919e}.dark ._label_1p5t1_28{color:#eee}._input_1p5t1_35{font-size:100%;font-family:inherit;display:block;width:100%;margin:0;padding:4px 6px;white-space:normal;border-radius:4px;border:1px solid rgba(60,78,110,.18);box-sizing:border-box;background:transparent}._input_1p5t1_35:disabled{color:#7f919e}._input_1p5t1_35:focus{border-color:var(--publisher-color, rgb(46, 159, 255));outline:none}._input_1p5t1_35::-webkit-input-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35::-moz-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35:-ms-input-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35::placeholder{font-size:13px;color:#7f919e}.dark ._input_1p5t1_35{color:#eee;border-color:#fff3}.dark ._input_1p5t1_35::-webkit-input-placeholder{color:#ffffff80}.dark ._input_1p5t1_35::-moz-placeholder{color:#ffffff80}.dark ._input_1p5t1_35:-ms-input-placeholder{color:#ffffff80}.dark ._input_1p5t1_35::placeholder{color:#ffffff80}.dark ._input_1p5t1_35:focus{border-color:var(--publisher-color, rgb(46, 159, 255))}._dialog_1p5t1_1{width:300px;padding:16px;border-width:1px;box-shadow:0 4px 8px -1px #0000001a}.dark ._dialog_1p5t1_1{border-width:1px}._buttons_1p5t1_80{display:flex;width:100%;align-items:center;justify-content:flex-end;gap:8px}._cancel_1p5t1_11{background:none;box-shadow:0 0 0 1px #c2c6cc;color:#7f919e}._cancel_1p5t1_11:hover{color:#7f919e;background:rgb(231,233,238)}.dark ._cancel_1p5t1_11{color:#eee;box-shadow:0 0 0 1px #fff3}.dark ._cancel_1p5t1_11:hover{background:rgb(73,78,88)}._selected_10kig_1,._selectable_10kig_1{position:relative}._selected_10kig_1:before,._selectable_10kig_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_10kig_1:before,.dark ._selectable_10kig_1:before{box-shadow:0 0 0 1px #fff3}._selectable_10kig_1:hover:before{opacity:.75}._selected_10kig_1:before{opacity:1}._delete_10kig_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_10kig_29{color:#656c7a}._preview_10kig_47{display:block;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:300px;max-width:100%;border-radius:3px}._no-pointer_10kig_56{display:block;overflow:hidden;pointer-events:none;border-radius:3px}._button_1ka0a_1,._button_1ka0a_1:active,._button_1ka0a_1:hover{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1ka0a_1:hover{opacity:1}._button_1ka0a_1:disabled{opacity:.25;cursor:default}.dark ._button_1ka0a_1{color:#ffffff80}._button_1ka0a_1:active,._button_1ka0a_1:hover{opacity:1;background:rgba(60,75,120,.12)}.dark ._button_1ka0a_1:active,.dark ._button_1ka0a_1:hover{background:rgba(255,255,255,.2)}._container_1ka0a_36{font-size:14px;display:flex;align-items:center;gap:8px;position:relative;overflow-y:auto;max-height:400px;max-width:90vw;padding:5px 12px;border:1px solid rgb(231,233,238);border-radius:16px;background:#fff;box-shadow:0 4px 8px -1px #0000001a}.dark ._container_1ka0a_36{border:1px solid rgba(255,255,255,.2);background:rgb(42,46,46)}._link_1ka0a_56{color:var(--publisher-color, rgb(46, 159, 255));max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}._button_1ka0a_1{font-size:14px;opacity:1}._separator_1ka0a_69{display:inline-block;width:1px;height:18px;background:rgb(194,198,204)}.dark ._separator_1ka0a_69{background:rgba(255,255,255,.35)}._icon_1ka0a_79{width:16px;height:16px}._block_865k6_1{display:block;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}._selected_12oyo_1,._mention_12oyo_1{font-weight:700;position:relative}._selected_12oyo_1:before,._mention_12oyo_1:before{content:"@"}._selected_12oyo_1{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:2px;background:rgba(60,78,110,.18);box-shadow:0 0 0 2px #3c4e6e2e}.dark ._selected_12oyo_1{box-shadow:0 0 0 2px #fff3;background:rgba(255,255,255,.2)}._default_1alzx_1{background:rgb(127,145,158);color:transparent}._default_1alzx_1 a,._default_1alzx_1 img,._default_1alzx_1 video{visibility:hidden}.dark ._default_1alzx_1{background:rgba(255,255,255,.5)}._active_1alzx_12,._default_1alzx_1:hover{background:rgb(231,233,238);color:inherit}._active_1alzx_12 a,._default_1alzx_1:hover a,._active_1alzx_12 img,._default_1alzx_1:hover img,._active_1alzx_12 video,._default_1alzx_1:hover video{visibility:visible}.dark ._active_1alzx_12,.dark ._default_1alzx_1:hover{background:rgba(255,255,255,.2)}._selected_4roo0_1,._selectable_4roo0_1{position:relative}._selected_4roo0_1:before,._selectable_4roo0_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_4roo0_1:before,.dark ._selectable_4roo0_1:before{box-shadow:0 0 0 1px #fff3}._selectable_4roo0_1:hover:before{opacity:.75}._selected_4roo0_1:before{opacity:1}._delete_4roo0_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_4roo0_29{color:#656c7a}._video_4roo0_47{display:block;position:relative;max-width:100%;max-height:20em;box-shadow:none;border-radius:3px;pointer-events:none}._container_4roo0_57{display:inline-block;position:relative;background:inherit}._wrapper_4roo0_63{position:relative;display:block;background:inherit;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._quote_11ucn_1{margin:8px 0 0;padding:0 0 0 12px;border-left:4px solid #687a86}._quote_11ucn_1:first-child{margin-top:0}._code_vr1vh_1{font-family:monospace}._button_1559b_1,._active_1559b_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1559b_1:hover,._active_1559b_1:hover{opacity:1}._button_1559b_1:disabled,._active_1559b_1:disabled{opacity:.25;cursor:default}.dark ._button_1559b_1,.dark ._active_1559b_1{color:#ffffff80}._active_1559b_1{opacity:1;background:rgba(60,75,120,.12)}.dark ._active_1559b_1{background:rgba(255,255,255,.2)}._icon_1559b_36{width:16px;height:16px}._button_12m5a_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_12m5a_1:hover{opacity:1}._button_12m5a_1:disabled{opacity:.25;cursor:default}.dark ._button_12m5a_1{color:#ffffff80}._categories_lunsx_1{display:flex;flex-direction:column;gap:2px;max-height:400px;padding:4px 10px;overflow-y:scroll}@media only screen and (min-width: 481px){._categories_lunsx_1{flex-direction:row;max-height:800px}}._column_lunsx_16{display:flex;flex-direction:column;gap:2px}._image_lunsx_22{display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;border:2px solid white;background:rgb(235,238,242)}._image_lunsx_22:hover{border-color:#2e87e7;border-radius:2px}._image_lunsx_22:before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.6;background:#2a2e2e}.dark ._image_lunsx_22{background:rgba(255,255,255,.2);border-color:#2a2e2e}.dark ._image_lunsx_22:hover{border-color:#2e87e7}._title_lunsx_54{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;text-shadow:1px 1px #2a2e2e;text-align:center}._gifs_lkt4v_1{max-height:400px;padding:4px 10px;overflow-y:scroll}@media only screen and (min-width: 481px){._gifs_lkt4v_1{max-height:800px}}._columns_lkt4v_12{display:flex;flex-direction:column;gap:2px}@media only screen and (min-width: 481px){._columns_lkt4v_12{flex-direction:row}}._column_lkt4v_12{display:flex;flex-direction:column;gap:2px}._image_lkt4v_29{display:flex;align-items:center;justify-content:center;position:relative;max-width:100%;cursor:pointer;border:2px solid white;background:rgb(235,238,242)}._image_lkt4v_29:hover{border-color:#2e9fff;border-radius:2px}.dark ._image_lkt4v_29{background:rgba(255,255,255,.2);border-color:#2a2e2e}.dark ._image_lkt4v_29:hover{border-color:#2e87e7}._searchbox_1ftd7_1{box-sizing:border-box;padding:12px 10px 8px}._input_1ftd7_6{font-size:100%;font-family:inherit;display:block;width:100%;min-height:28px;height:auto;margin:0;padding:2px 6px;white-space:normal;border-radius:4px;border:2px solid rgba(60,78,110,.18);box-sizing:border-box;outline:none}.dark ._input_1ftd7_6{color:#eee;border-color:#ffffff80;background:transparent}@-webkit-keyframes _pulse_drbub_1{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes _pulse_drbub_1{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}._skeleton_drbub_12{display:flex;flex-direction:column;gap:6px;padding:4px 12px;max-height:400px;overflow:hidden}@media only screen and (min-width: 481px){._skeleton_drbub_12{flex-direction:row;max-height:800px}}._image_drbub_27{background:rgb(235,238,242);-webkit-animation:_pulse_drbub_1 2s ease-in-out infinite;animation:_pulse_drbub_1 2s ease-in-out infinite}.dark ._image_drbub_27{background:rgba(255,255,255,.2)}._column_drbub_35{display:flex;flex-direction:column;gap:6px}._root_4nri8_1{position:relative}._popout_4nri8_5{display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:white;border-radius:4px;border:2px solid rgba(60,78,110,.18)}.dark ._popout_4nri8_5{border-color:#fff3;background:rgb(42,46,46)}._searchbox_4nri8_19{width:100%}._powered-by_4nri8_23{width:100px;margin:4px 12px;color:#748793}.dark ._powered-by_4nri8_23{color:#ffffff59}._zone_1xgo0_1{border-radius:16px;position:absolute;inset:0;background-color:#0006;z-index:1;display:flex;align-items:center;justify-content:center}._wrapper_1xgo0_12{border:3px dashed #fff;padding:12px;width:90%;text-align:center;border-radius:6px}._text_1xgo0_20{color:#fff;font-size:15px;font-weight:700;font-style:normal}._placeholder_s9avi_1{font-style:normal;font-weight:400;position:absolute;top:20px;left:20px;color:#000;opacity:.33;line-height:1.4}.dark ._placeholder_s9avi_1{color:#fff}._separator_p7fwl_1{display:inline-block;width:2px;height:24px;margin:0 2px;background:rgba(60,78,110,.18)}.dark ._separator_p7fwl_1{background:rgba(255,255,255,.08)}._expand_k0g7a_1,._expand-active_k0g7a_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._expand_k0g7a_1:hover,._expand-active_k0g7a_1:hover{opacity:1}._expand_k0g7a_1:disabled,._expand-active_k0g7a_1:disabled{opacity:.25;cursor:default}.dark ._expand_k0g7a_1,.dark ._expand-active_k0g7a_1{color:#ffffff80}._expand-active_k0g7a_1{opacity:1;background:rgba(60,75,120,.12)}.dark ._expand-active_k0g7a_1{background:rgba(255,255,255,.2)}._expand-active_k0g7a_1,._expand_k0g7a_1{width:16px;height:16px}._menu_k0g7a_41{display:inline-flex;align-items:center;gap:4px}._toolbar_k0g7a_47{padding:5px 6px}._toolbar-primary_k0g7a_51{display:flex;justify-content:space-between}._toolbar-secondary-multirow_k0g7a_56,._toolbar-secondary_k0g7a_56{display:grid;grid-auto-flow:column;gap:6px;margin-top:6px}._toolbar-secondary-multirow_k0g7a_56{grid-template-rows:repeat(2,auto)}._expand_k0g7a_1{font-size:14px}._expand_k0g7a_1:hover{opacity:.6}._expand-active_k0g7a_1{background:none}._actions_k0g7a_78{display:inline-flex;gap:12px;margin-right:-5px}._submit_k0g7a_84{font-size:15px;font-style:normal;font-weight:700;position:relative;line-height:1;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:7px 15px;border:none;text-shadow:none;white-space:nowrap;border-radius:14px;color:#fff;background-color:var(--publisher-color, rgb(46, 159, 255))}.light-anchor ._submit_k0g7a_84{color:#656c7a}._submit_k0g7a_84:before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);border-radius:14px;opacity:0;transition:all .25s ease-in-out}._submit_k0g7a_84:hover{background-color:var(--publisher-color, rgb(46, 159, 255))}._submit_k0g7a_84:hover:before{opacity:1}._submit-text_k0g7a_122{position:relative}._cancel_k0g7a_126{padding:7px;background-color:transparent;border:none;color:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;font-weight:700;font-size:15px;line-height:1}._cancel_k0g7a_126:hover{color:#656c7a}._button_1wqlf_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1wqlf_1:hover{opacity:1}._button_1wqlf_1:disabled{opacity:.25;cursor:default}.dark ._button_1wqlf_1{color:#ffffff80}._icon_1wqlf_28{width:16px;height:16px}._container_if5tp_1{background:white;border:2px solid rgba(60,78,110,.18);border-radius:16px}.dark ._container_if5tp_1{background:rgb(42,46,46);border:2px solid rgba(255,255,255,.2)}._item-active_if5tp_11,._item_if5tp_11{font-weight:500;display:flex;gap:16px;position:relative;padding:8px;overflow:hidden;cursor:pointer;color:#7f919e}.dark ._item-active_if5tp_11,.dark ._item_if5tp_11{color:#ffffff80}._container_if5tp_1{width:100%;max-height:200px;padding:0;overflow-y:scroll;border-radius:0 0 3px 3px}._header_if5tp_33{font-size:11px;font-weight:700;text-transform:uppercase;line-height:11px;margin:0;padding:8px;color:#7f919e;border:0}.dark ._header_if5tp_33{color:#ffffff80}._list_if5tp_47{margin:0;padding:0;list-style:none}._item_if5tp_11{background:transparent}._item_if5tp_11:hover{background:rgb(247,249,250)}.dark ._item_if5tp_11:hover{background:rgba(255,255,255,.08)}._item-active_if5tp_11{background:rgb(46,159,255);color:#fff}.dark ._item-active_if5tp_11{color:#fff}._avatar_if5tp_71{flex:0 0 auto;width:22px;height:22px}._overlay_1i4qh_1{z-index:1000}._container_ylcfx_1{position:relative;background:#fff;border:2px solid rgba(60,78,110,.18);border-radius:16px;line-height:1.4}.dark ._container_ylcfx_1{background:rgba(255,255,255,.05);border:2px solid rgba(255,255,255,.2)}._editor-expanded_ylcfx_13,._editor_ylcfx_13{position:relative;overflow-y:auto;max-height:350px;min-height:65px!important;padding:20px;transition:all .15s ease-in-out;outline:none;color:#2a2e2e;word-break:break-word}._editor-expanded_ylcfx_13 p,._editor_ylcfx_13 p{margin:8px 0 0}._editor-expanded_ylcfx_13 p:first-child,._editor_ylcfx_13 p:first-child{margin-top:0}._editor-expanded_ylcfx_13 a:link,._editor_ylcfx_13 a:link,._editor-expanded_ylcfx_13 a:visited,._editor_ylcfx_13 a:visited{color:var(--publisher-color, rgb(46, 159, 255))}.dark ._editor-expanded_ylcfx_13,.dark ._editor_ylcfx_13{color:#eee}._editor-container-expanded_ylcfx_37,._editor-container_ylcfx_37{overflow:hidden;border-radius:16px}._editor-container-expanded_ylcfx_37{border-radius:16px 16px 0 0}._editor-expanded_ylcfx_13{border-bottom:2px solid rgba(60,78,110,.18);border-radius:16px 16px 0 0;min-height:115px!important}.dark ._editor-expanded_ylcfx_13{border-bottom:2px solid rgba(255,255,255,.2)}._placeholder-submit-button_ylcfx_55{display:none} `,document.head.appendChild(so);function Ai(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Zo="modulepreload",o4=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},Tw={},s4=function(t,n,r){return t()};var Gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iw={exports:{}},Ac={},Nw={exports:{}},Qe={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Au=Symbol.for("react.element"),a4=Symbol.for("react.portal"),u4=Symbol.for("react.fragment"),l4=Symbol.for("react.strict_mode"),c4=Symbol.for("react.profiler"),f4=Symbol.for("react.provider"),d4=Symbol.for("react.context"),h4=Symbol.for("react.forward_ref"),p4=Symbol.for("react.suspense"),g4=Symbol.for("react.memo"),m4=Symbol.for("react.lazy"),Lw=Symbol.iterator;function v4(e){return e===null||typeof e!="object"?null:(e=Lw&&e[Lw]||e["@@iterator"],typeof e=="function"?e:null)}var Mw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$w=Object.assign,jw={};function Gs(e,t,n){this.props=e,this.context=t,this.refs=jw,this.updater=n||Mw}Gs.prototype.isReactComponent={},Gs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Gs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zw(){}zw.prototype=Gs.prototype;function Jp(e,t,n){this.props=e,this.context=t,this.refs=jw,this.updater=n||Mw}var Xp=Jp.prototype=new zw;Xp.constructor=Jp,$w(Xp,Gs.prototype),Xp.isPureReactComponent=!0;var Uw=Array.isArray,Hw=Object.prototype.hasOwnProperty,Zp={current:null},Ww={key:!0,ref:!0,__self:!0,__source:!0};function Vw(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Hw.call(t,r)&&!Ww.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Au,type:e,key:o,ref:a,props:i,_owner:Zp.current}}function y4(e,t){return{$$typeof:Au,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function eg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Au}function w4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kw=/\/+/g;function tg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?w4(""+e.key):t.toString(36)}function Sc(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Au:case a4:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+tg(a,0):r,Uw(i)?(n="",e!=null&&(n=e.replace(Kw,"$&/")+"/"),Sc(i,t,n,"",function(f){return f})):i!=null&&(eg(i)&&(i=y4(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Kw,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Uw(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+tg(o,l);a+=Sc(o,t,n,c,i)}else if(c=v4(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+tg(o,l++),a+=Sc(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Oc(e,t,n){if(e==null)return e;var r=[],i=0;return Sc(e,r,"","",function(o){return t.call(n,o,i++)}),r}function b4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xn={current:null},Fc={transition:null},_4={ReactCurrentDispatcher:xn,ReactCurrentBatchConfig:Fc,ReactCurrentOwner:Zp};Qe.Children={map:Oc,forEach:function(e,t,n){Oc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oc(e,function(){t++}),t},toArray:function(e){return Oc(e,function(t){return t})||[]},only:function(e){if(!eg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Qe.Component=Gs,Qe.Fragment=u4,Qe.Profiler=c4,Qe.PureComponent=Jp,Qe.StrictMode=l4,Qe.Suspense=p4,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_4,Qe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$w({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Zp.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Hw.call(t,c)&&!Ww.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:Au,type:e.type,key:i,ref:o,props:r,_owner:a}},Qe.createContext=function(e){return e={$$typeof:d4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:f4,_context:e},e.Consumer=e},Qe.createElement=Vw,Qe.createFactory=function(e){var t=Vw.bind(null,e);return t.type=e,t},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(e){return{$$typeof:h4,render:e}},Qe.isValidElement=eg,Qe.lazy=function(e){return{$$typeof:m4,_payload:{_status:-1,_result:e},_init:b4}},Qe.memo=function(e,t){return{$$typeof:g4,type:e,compare:t===void 0?null:t}},Qe.startTransition=function(e){var t=Fc.transition;Fc.transition={};try{e()}finally{Fc.transition=t}},Qe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Qe.useCallback=function(e,t){return xn.current.useCallback(e,t)},Qe.useContext=function(e){return xn.current.useContext(e)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(e){return xn.current.useDeferredValue(e)},Qe.useEffect=function(e,t){return xn.current.useEffect(e,t)},Qe.useId=function(){return xn.current.useId()},Qe.useImperativeHandle=function(e,t,n){return xn.current.useImperativeHandle(e,t,n)},Qe.useInsertionEffect=function(e,t){return xn.current.useInsertionEffect(e,t)},Qe.useLayoutEffect=function(e,t){return xn.current.useLayoutEffect(e,t)},Qe.useMemo=function(e,t){return xn.current.useMemo(e,t)},Qe.useReducer=function(e,t,n){return xn.current.useReducer(e,t,n)},Qe.useRef=function(e){return xn.current.useRef(e)},Qe.useState=function(e){return xn.current.useState(e)},Qe.useSyncExternalStore=function(e,t,n){return xn.current.useSyncExternalStore(e,t,n)},Qe.useTransition=function(){return xn.current.useTransition()},Qe.version="18.2.0",Nw.exports=Qe;var D=Nw.exports;const Le=vr(D),qw=Ai({__proto__:null,default:Le},[D]);/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var C4=D,E4=Symbol.for("react.element"),D4=Symbol.for("react.fragment"),x4=Object.prototype.hasOwnProperty,A4=C4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S4={key:!0,ref:!0,__self:!0,__source:!0};function Gw(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)x4.call(t,r)&&!S4.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:E4,type:e,key:o,ref:a,props:i,_owner:A4.current}}Ac.Fragment=D4,Ac.jsx=Gw,Ac.jsxs=Gw,Iw.exports=Ac;var ng=Iw.exports;const Qs=ng.Fragment,W=ng.jsx,Ve=ng.jsxs;class Ys{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Su=typeof window>"u"||"Deno"in window;function yr(){}function O4(e,t){return typeof e=="function"?e(t):e}function rg(e){return typeof e=="number"&&e>=0&&e!==1/0}function Qw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Js(e,t,n){return Ou(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function F4(e,t,n){return Ou(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function ao(e,t,n){return Ou(e)?[{...t,queryKey:e},n]:[e||{},t]}function Yw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:l}=e;if(Ou(a)){if(r){if(t.queryHash!==ig(a,t.options))return!1}else if(!Bc(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Jw(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Ou(o)){if(!t.options.mutationKey)return!1;if(n){if(es(t.options.mutationKey)!==es(o))return!1}else if(!Bc(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function ig(e,t){return((t==null?void 0:t.queryKeyHashFn)||es)(e)}function es(e){return JSON.stringify(e,(t,n)=>sg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Bc(e,t){return Xw(e,t)}function Xw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Xw(e[n],t[n])):!1}function Zw(e,t){if(e===t)return e;const n=eb(e)&&eb(t);if(n||sg(e)&&sg(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let l=0;for(let c=0;c<o;c++){const f=n?c:i[c];a[f]=Zw(e[f],t[f]),a[f]===e[f]&&l++}return r===o&&l===r?e:a}return t}function og(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function eb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sg(e){if(!tb(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!tb(n)||!n.hasOwnProperty("isPrototypeOf"))}function tb(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ou(e){return Array.isArray(e)}function nb(e){return new Promise(t=>{setTimeout(t,e)})}function rb(e){nb(0).then(e)}function B4(){if(typeof AbortController=="function")return new AbortController}function ag(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Zw(e,t):t}class k4 extends Ys{constructor(){super(),this.setup=t=>{if(!Su&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const kc=new k4,ib=["online","offline"];class P4 extends Ys{constructor(){super(),this.setup=t=>{if(!Su&&window.addEventListener){const n=()=>t();return ib.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{ib.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Pc=new P4;function R4(e){return Math.min(1e3*2**e,3e4)}function Rc(e){return(e??"online")==="online"?Pc.isOnline():!0}class ob{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Tc(e){return e instanceof ob}function sb(e){let t=!1,n=0,r=!1,i,o,a;const l=new Promise((E,_)=>{o=E,a=_}),c=E=>{r||(y(new ob(E)),e.abort==null||e.abort())},f=()=>{t=!0},h=()=>{t=!1},g=()=>!kc.isFocused()||e.networkMode!=="always"&&!Pc.isOnline(),m=E=>{r||(r=!0,e.onSuccess==null||e.onSuccess(E),i==null||i(),o(E))},y=E=>{r||(r=!0,e.onError==null||e.onError(E),i==null||i(),a(E))},v=()=>new Promise(E=>{i=_=>{const b=r||!g();return b&&E(_),b},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),p=()=>{if(r)return;let E;try{E=e.fn()}catch(_){E=Promise.reject(_)}Promise.resolve(E).then(m).catch(_=>{var b,x;if(r)return;const O=(b=e.retry)!=null?b:3,B=(x=e.retryDelay)!=null?x:R4,k=typeof B=="function"?B(n,_):B,P=O===!0||typeof O=="number"&&n<O||typeof O=="function"&&O(n,_);if(t||!P){y(_);return}n++,e.onFail==null||e.onFail(n,_),nb(k).then(()=>{if(g())return v()}).then(()=>{t?y(_):p()})})};return Rc(e.networkMode)?p():v().then(p),{promise:l,cancel:c,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:f,continueRetry:h}}const ug=console;function T4(){let e=[],t=0,n=h=>{h()},r=h=>{h()};const i=h=>{let g;t++;try{g=h()}finally{t--,t||l()}return g},o=h=>{t?e.push(h):rb(()=>{n(h)})},a=h=>(...g)=>{o(()=>{h(...g)})},l=()=>{const h=e;e=[],h.length&&rb(()=>{r(()=>{h.forEach(g=>{n(g)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h}}}const Tt=T4();class ab{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rg(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Su?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class I4 extends ab{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||ug,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||N4(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=ag(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Qw(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(v=>v.options.queryFn);y&&this.setOptions(y.options)}Array.isArray(this.options.queryKey);const a=B4(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};c(l);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(c(h),(r=this.options.behavior)==null||r.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var g;this.dispatch({type:"fetch",meta:(g=h.fetchOptions)==null?void 0:g.meta})}const m=y=>{if(Tc(y)&&y.silent||this.dispatch({type:"error",error:y}),!Tc(y)){var v,p,E,_;(v=(p=this.cache.config).onError)==null||v.call(p,y,this),(E=(_=this.cache.config).onSettled)==null||E.call(_,this.state.data,y,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=sb({fn:h.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:y=>{var v,p,E,_;if(typeof y>"u"){m(new Error(this.queryHash+" data is undefined"));return}this.setData(y),(v=(p=this.cache.config).onSuccess)==null||v.call(p,y,this),(E=(_=this.cache.config).onSettled)==null||E.call(_,y,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:m,onFail:(y,v)=>{this.dispatch({type:"failed",failureCount:y,error:v})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Rc(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Tc(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function N4(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class L4 extends Ys{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,a=(i=n.queryHash)!=null?i:ig(o,n);let l=this.get(a);return l||(l=new I4({cache:this,logger:t.getLogger(),queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=ao(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>Yw(r,i))}findAll(t,n){const[r]=ao(t,n);return Object.keys(r).length>0?this.queries.filter(i=>Yw(r,i)):this.queries}notify(t){Tt.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Tt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class M4 extends ab{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||ug,this.observers=[],this.state=t.state||ub(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var P;return this.retryer=sb({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(I,Q)=>{this.dispatch({type:"failed",failureCount:I,error:Q})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(P=this.options.retry)!=null?P:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,a,l,c,f,h;if(!n){var g,m,y,v;this.dispatch({type:"loading",variables:this.options.variables}),await((g=(m=this.mutationCache.config).onMutate)==null?void 0:g.call(m,this.state.variables,this));const I=await((y=(v=this.options).onMutate)==null?void 0:y.call(v,this.state.variables));I!==this.state.context&&this.dispatch({type:"loading",context:I,variables:this.state.variables})}const P=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,P,this.state.variables,this.state.context,this)),await((o=(a=this.options).onSuccess)==null?void 0:o.call(a,P,this.state.variables,this.state.context)),await((l=(c=this.mutationCache.config).onSettled)==null?void 0:l.call(c,P,null,this.state.variables,this.state.context,this)),await((f=(h=this.options).onSettled)==null?void 0:f.call(h,P,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:P}),P}catch(P){try{var p,E,_,b,x,O,B,k;throw await((p=(E=this.mutationCache.config).onError)==null?void 0:p.call(E,P,this.state.variables,this.state.context,this)),await((_=(b=this.options).onError)==null?void 0:_.call(b,P,this.state.variables,this.state.context)),await((x=(O=this.mutationCache.config).onSettled)==null?void 0:x.call(O,void 0,P,this.state.variables,this.state.context,this)),await((B=(k=this.options).onSettled)==null?void 0:B.call(k,void 0,P,this.state.variables,this.state.context)),P}finally{this.dispatch({type:"error",error:P})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Rc(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function ub(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class $4 extends Ys{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new M4({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Tt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Jw(t,n))}findAll(t){return this.mutations.filter(n=>Jw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Tt.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(yr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function lg(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,c=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,f=c==null?void 0:c.pageParam,h=(c==null?void 0:c.direction)==="forward",g=(c==null?void 0:c.direction)==="backward",m=((o=e.state.data)==null?void 0:o.pages)||[],y=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=y,p=!1;const E=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var P;if((P=e.signal)!=null&&P.aborted)p=!0;else{var I;(I=e.signal)==null||I.addEventListener("abort",()=>{p=!0})}return e.signal}})},_=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),b=(k,P,I,Q)=>(v=Q?[P,...v]:[...v,P],Q?[I,...k]:[...k,I]),x=(k,P,I,Q)=>{if(p)return Promise.reject("Cancelled");if(typeof I>"u"&&!P&&k.length)return Promise.resolve(k);const j={queryKey:e.queryKey,pageParam:I,meta:e.options.meta};E(j);const X=_(j);return Promise.resolve(X).then(U=>b(k,I,U,Q))};let O;if(!m.length)O=x([]);else if(h){const k=typeof f<"u",P=k?f:cg(e.options,m);O=x(m,k,P)}else if(g){const k=typeof f<"u",P=k?f:lb(e.options,m);O=x(m,k,P,!0)}else{v=[];const k=typeof e.options.getNextPageParam>"u";O=(l&&m[0]?l(m[0],0,m):!0)?x([],k,y[0]):Promise.resolve(b([],y[0],m[0]));for(let I=1;I<m.length;I++)O=O.then(Q=>{if(l&&m[I]?l(m[I],I,m):!0){const X=k?y[I]:cg(e.options,Q);return x(Q,k,X)}return Promise.resolve(b(Q,y[I],m[I]))})}return O.then(k=>({pages:k,pageParams:v}))}}}}function cg(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function lb(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function j4(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=cg(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function z4(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=lb(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class U4{constructor(t={}){this.queryCache=t.queryCache||new L4,this.mutationCache=t.mutationCache||new $4,this.logger=t.logger||ug,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=kc.subscribe(()=>{kc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Pc.subscribe(()=>{Pc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=ao(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Js(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,a=O4(n,o);if(typeof a>"u")return;const l=Js(t),c=this.defaultQueryOptions(l);return this.queryCache.build(this,c).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Tt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=ao(t,n),i=this.queryCache;Tt.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=ao(t,n,r),a=this.queryCache,l={type:"active",...i};return Tt.batch(()=>(a.findAll(i).forEach(c=>{c.reset()}),this.refetchQueries(l,o)))}cancelQueries(t,n,r){const[i,o={}]=ao(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const a=Tt.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(o)));return Promise.all(a).then(yr).catch(yr)}invalidateQueries(t,n,r){const[i,o]=ao(t,n,r);return Tt.batch(()=>{var a,l;if(this.queryCache.findAll(i).forEach(f=>{f.invalidate()}),i.refetchType==="none")return Promise.resolve();const c={...i,type:(a=(l=i.refetchType)!=null?l:i.type)!=null?a:"active"};return this.refetchQueries(c,o)})}refetchQueries(t,n,r){const[i,o]=ao(t,n,r),a=Tt.batch(()=>this.queryCache.findAll(i).filter(c=>!c.isDisabled()).map(c=>{var f;return c.fetch(void 0,{...o,cancelRefetch:(f=o==null?void 0:o.cancelRefetch)!=null?f:!0,meta:{refetchPage:i.refetchPage}})}));let l=Promise.all(a).then(yr);return o!=null&&o.throwOnError||(l=l.catch(yr)),l}fetchQuery(t,n,r){const i=Js(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(yr).catch(yr)}fetchInfiniteQuery(t,n,r){const i=Js(t,n,r);return i.behavior=lg(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(yr).catch(yr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>es(t)===es(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Bc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>es(t)===es(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Bc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=ig(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class cb extends Ys{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),fb(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fg(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),og(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&db(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(yr)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Su||this.currentResult.isStale||!rg(this.options.staleTime))return;const n=Qw(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Su||this.options.enabled===!1||!rg(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||kc.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,c=t!==r,f=c?t.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:g}=t;let{dataUpdatedAt:m,error:y,errorUpdatedAt:v,fetchStatus:p,status:E}=g,_=!1,b=!1,x;if(n._optimisticResults){const I=this.hasListeners(),Q=!I&&fb(t,n),j=I&&db(t,r,n,i);(Q||j)&&(p=Rc(t.options.networkMode)?"fetching":"paused",m||(E="loading")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.keepPreviousData&&!g.dataUpdatedAt&&h!=null&&h.isSuccess&&E!=="error")x=h.data,m=h.dataUpdatedAt,E=h.status,_=!0;else if(n.select&&typeof g.data<"u")if(o&&g.data===(a==null?void 0:a.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(g.data),x=ag(o==null?void 0:o.data,x,n),this.selectResult=x,this.selectError=null}catch(I){this.selectError=I}else x=g.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&E==="loading"){let I;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))I=o.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof I<"u")try{I=n.select(I),this.selectError=null}catch(Q){this.selectError=Q}typeof I<"u"&&(E="success",x=ag(o==null?void 0:o.data,I,n),b=!0)}this.selectError&&(y=this.selectError,x=this.selectResult,v=Date.now(),E="error");const O=p==="fetching",B=E==="loading",k=E==="error";return{status:E,fetchStatus:p,isLoading:B,isSuccess:E==="success",isError:k,isInitialLoading:B&&O,data:x,dataUpdatedAt:m,error:y,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!B,isLoadingError:k&&g.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:b,isPreviousData:_,isRefetchError:k&&g.dataUpdatedAt!==0,isStale:dg(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,og(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const f=c;return this.currentResult[f]!==n[f]&&l.has(f)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Tc(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Tt.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var a,l,c,f;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(c=(f=this.options).onSettled)==null||c.call(f,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function H4(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fb(e,t){return H4(e,t)||e.state.dataUpdatedAt>0&&fg(e,t,t.refetchOnMount)}function fg(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&dg(e,t)}return!1}function db(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&dg(e,n)}function dg(e,t){return e.isStaleByTime(t.staleTime)}class W4 extends cb{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:lg()},n)}getOptimisticResult(t){return t.behavior=lg(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,o,a,l,c;const{state:f}=t,h=super.createResult(t,n),{isFetching:g,isRefetching:m}=h,y=g&&((r=f.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",v=g&&((o=f.fetchMeta)==null||(a=o.fetchMore)==null?void 0:a.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:j4(n,(l=f.data)==null?void 0:l.pages),hasPreviousPage:z4(n,(c=f.data)==null?void 0:c.pages),isFetchingNextPage:y,isFetchingPreviousPage:v,isRefetching:m&&!y&&!v}}}let V4=class extends Ys{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),og(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:ub(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Tt.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,o;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(o=this.mutateOptions).onSettled)==null||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,l,c,f;(a=(l=this.mutateOptions).onError)==null||a.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(f=this.mutateOptions).onSettled)==null||c.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}};var hb={exports:{}},Qn={},pb={exports:{}},gb={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){function t(V,te){var le=V.length;V.push(te);e:for(;0<le;){var ce=le-1>>>1,ye=V[ce];if(0<i(ye,te))V[ce]=te,V[le]=ye,le=ce;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var te=V[0],le=V.pop();if(le!==te){V[0]=le;e:for(var ce=0,ye=V.length,De=ye>>>1;ce<De;){var Ce=2*(ce+1)-1,L=V[Ce],ne=Ce+1,J=V[ne];if(0>i(L,le))ne<ye&&0>i(J,L)?(V[ce]=J,V[ne]=le,ce=ne):(V[ce]=L,V[Ce]=le,ce=Ce);else if(ne<ye&&0>i(J,le))V[ce]=J,V[ne]=le,ce=ne;else break e}}return te}function i(V,te){var le=V.sortIndex-te.sortIndex;return le!==0?le:V.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],f=[],h=1,g=null,m=3,y=!1,v=!1,p=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(V){for(var te=n(f);te!==null;){if(te.callback===null)r(f);else if(te.startTime<=V)r(f),te.sortIndex=te.expirationTime,t(c,te);else break;te=n(f)}}function O(V){if(p=!1,x(V),!v)if(n(c)!==null)v=!0,se(B);else{var te=n(f);te!==null&&re(O,te.startTime-V)}}function B(V,te){v=!1,p&&(p=!1,_(I),I=-1),y=!0;var le=m;try{for(x(te),g=n(c);g!==null&&(!(g.expirationTime>te)||V&&!X());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,m=g.priorityLevel;var ye=ce(g.expirationTime<=te);te=e.unstable_now(),typeof ye=="function"?g.callback=ye:g===n(c)&&r(c),x(te)}else r(c);g=n(c)}if(g!==null)var De=!0;else{var Ce=n(f);Ce!==null&&re(O,Ce.startTime-te),De=!1}return De}finally{g=null,m=le,y=!1}}var k=!1,P=null,I=-1,Q=5,j=-1;function X(){return!(e.unstable_now()-j<Q)}function $(){if(P!==null){var V=e.unstable_now();j=V;var te=!0;try{te=P(!0,V)}finally{te?U():(k=!1,P=null)}}else k=!1}var U;if(typeof b=="function")U=function(){b($)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,G=T.port2;T.port1.onmessage=$,U=function(){G.postMessage(null)}}else U=function(){E($,0)};function se(V){P=V,k||(k=!0,U())}function re(V,te){I=E(function(){V(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,se(B))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var le=m;m=te;try{return V()}finally{m=le}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,te){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var le=m;m=V;try{return te()}finally{m=le}},e.unstable_scheduleCallback=function(V,te,le){var ce=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ce+le:ce):le=ce,V){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=le+ye,V={id:h++,callback:te,priorityLevel:V,startTime:le,expirationTime:ye,sortIndex:-1},le>ce?(V.sortIndex=le,t(f,V),n(c)===null&&V===n(f)&&(p?(_(I),I=-1):p=!0,re(O,le-ce))):(V.sortIndex=ye,t(c,V),v||y||(v=!0,se(B))),V},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(V){var te=m;return function(){var le=m;m=te;try{return V.apply(this,arguments)}finally{m=le}}}})(gb),pb.exports=gb;var K4=pb.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mb=D,Yn=K4;function pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vb=new Set,Fu={};function ts(e,t){Xs(e,t),Xs(e+"Capture",t)}function Xs(e,t){for(Fu[e]=t,e=0;e<t.length;e++)vb.add(t[e])}var Si=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hg=Object.prototype.hasOwnProperty,q4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yb={},wb={};function G4(e){return hg.call(wb,e)?!0:hg.call(yb,e)?!1:q4.test(e)?wb[e]=!0:(yb[e]=!0,!1)}function Q4(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y4(e,t,n,r){if(t===null||typeof t>"u"||Q4(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function An(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new An(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new An(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new An(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new An(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){un[e]=new An(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){un[e]=new An(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){un[e]=new An(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){un[e]=new An(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){un[e]=new An(e,5,!1,e.toLowerCase(),null,!1,!1)});var pg=/[\-:]([a-z])/g;function gg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pg,gg);un[t]=new An(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pg,gg);un[t]=new An(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pg,gg);un[t]=new An(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!1,!1)}),un.xlinkHref=new An("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!0,!0)});function mg(e,t,n,r){var i=un.hasOwnProperty(t)?un[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Y4(t,n,i,r)&&(n=null),r||i===null?G4(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Oi=mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ic=Symbol.for("react.element"),Zs=Symbol.for("react.portal"),ea=Symbol.for("react.fragment"),vg=Symbol.for("react.strict_mode"),yg=Symbol.for("react.profiler"),bb=Symbol.for("react.provider"),_b=Symbol.for("react.context"),wg=Symbol.for("react.forward_ref"),bg=Symbol.for("react.suspense"),_g=Symbol.for("react.suspense_list"),Cg=Symbol.for("react.memo"),uo=Symbol.for("react.lazy"),Cb=Symbol.for("react.offscreen"),Eb=Symbol.iterator;function Bu(e){return e===null||typeof e!="object"?null:(e=Eb&&e[Eb]||e["@@iterator"],typeof e=="function"?e:null)}var Ot=Object.assign,Eg;function ku(e){if(Eg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Eg=t&&t[1]||""}return` `+Eg+e}var Dg=!1;function xg(e,t){if(!e||Dg)return"";Dg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(` `),o=r.stack.split(` `),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var c=` `+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Dg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ku(e):""}function J4(e){switch(e.tag){case 5:return ku(e.type);case 16:return ku("Lazy");case 13:return ku("Suspense");case 19:return ku("SuspenseList");case 0:case 2:case 15:return e=xg(e.type,!1),e;case 11:return e=xg(e.type.render,!1),e;case 1:return e=xg(e.type,!0),e;default:return""}}function Ag(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ea:return"Fragment";case Zs:return"Portal";case yg:return"Profiler";case vg:return"StrictMode";case bg:return"Suspense";case _g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _b:return(e.displayName||"Context")+".Consumer";case bb:return(e._context.displayName||"Context")+".Provider";case wg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cg:return t=e.displayName||null,t!==null?t:Ag(e.type)||"Memo";case uo:t=e._payload,e=e._init;try{return Ag(e(t))}catch{}}return null}function X4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ag(t);case 8:return t===vg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Db(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z4(e){var t=Db(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nc(e){e._valueTracker||(e._valueTracker=Z4(e))}function xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Db(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sg(e,t){var n=t.checked;return Ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ab(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sb(e,t){t=t.checked,t!=null&&mg(e,"checked",t,!1)}function Og(e,t){Sb(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fg(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fg(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ob(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Fg(e,t,n){(t!=="number"||Lc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pu=Array.isArray;function ta(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Bg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(pe(91));return Ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(pe(92));if(Pu(n)){if(1<n.length)throw Error(pe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:lo(n)}}function Bb(e,t){var n=lo(t.value),r=lo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function kb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Pb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function kg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Pb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mc,Rb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mc=Mc||document.createElement("div"),Mc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ru(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ek=["Webkit","ms","Moz","O"];Object.keys(Tu).forEach(function(e){ek.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tu[t]=Tu[e]})});function Tb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tu.hasOwnProperty(e)&&Tu[e]?(""+t).trim():t+"px"}function Ib(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Tb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tk=Ot({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pg(e,t){if(t){if(tk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pe(62))}}function Rg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tg=null;function Ig(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ng=null,na=null,ra=null;function Nb(e){if(e=nl(e)){if(typeof Ng!="function")throw Error(pe(280));var t=e.stateNode;t&&(t=uf(t),Ng(e.stateNode,e.type,t))}}function Lb(e){na?ra?ra.push(e):ra=[e]:na=e}function Mb(){if(na){var e=na,t=ra;if(ra=na=null,Nb(e),t)for(e=0;e<t.length;e++)Nb(t[e])}}function $b(e,t){return e(t)}function jb(){}var Lg=!1;function zb(e,t,n){if(Lg)return e(t,n);Lg=!0;try{return $b(e,t,n)}finally{Lg=!1,(na!==null||ra!==null)&&(jb(),Mb())}}function Iu(e,t){var n=e.stateNode;if(n===null)return null;var r=uf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(pe(231,t,typeof n));return n}var Mg=!1;if(Si)try{var Nu={};Object.defineProperty(Nu,"passive",{get:function(){Mg=!0}}),window.addEventListener("test",Nu,Nu),window.removeEventListener("test",Nu,Nu)}catch{Mg=!1}function nk(e,t,n,r,i,o,a,l,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(h){this.onError(h)}}var Lu=!1,$c=null,jc=!1,$g=null,rk={onError:function(e){Lu=!0,$c=e}};function ik(e,t,n,r,i,o,a,l,c){Lu=!1,$c=null,nk.apply(rk,arguments)}function ok(e,t,n,r,i,o,a,l,c){if(ik.apply(this,arguments),Lu){if(Lu){var f=$c;Lu=!1,$c=null}else throw Error(pe(198));jc||(jc=!0,$g=f)}}function ns(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ub(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Hb(e){if(ns(e)!==e)throw Error(pe(188))}function sk(e){var t=e.alternate;if(!t){if(t=ns(e),t===null)throw Error(pe(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Hb(i),e;if(o===r)return Hb(i),t;o=o.sibling}throw Error(pe(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(pe(189))}}if(n.alternate!==r)throw Error(pe(190))}if(n.tag!==3)throw Error(pe(188));return n.stateNode.current===n?e:t}function Wb(e){return e=sk(e),e!==null?Vb(e):null}function Vb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vb(e);if(t!==null)return t;e=e.sibling}return null}var Kb=Yn.unstable_scheduleCallback,qb=Yn.unstable_cancelCallback,ak=Yn.unstable_shouldYield,uk=Yn.unstable_requestPaint,jt=Yn.unstable_now,lk=Yn.unstable_getCurrentPriorityLevel,jg=Yn.unstable_ImmediatePriority,Gb=Yn.unstable_UserBlockingPriority,zc=Yn.unstable_NormalPriority,ck=Yn.unstable_LowPriority,Qb=Yn.unstable_IdlePriority,Uc=null,ii=null;function fk(e){if(ii&&typeof ii.onCommitFiberRoot=="function")try{ii.onCommitFiberRoot(Uc,e,void 0,(e.current.flags&128)===128)}catch{}}var Ur=Math.clz32?Math.clz32:pk,dk=Math.log,hk=Math.LN2;function pk(e){return e>>>=0,e===0?32:31-(dk(e)/hk|0)|0}var Hc=64,Wc=4194304;function Mu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Mu(l):(o&=a,o!==0&&(r=Mu(o)))}else a=n&~i,a!==0?r=Mu(a):o!==0&&(r=Mu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ur(t),i=1<<n,r|=e[n],t&=~i;return r}function gk(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ur(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=gk(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function zg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Yb(){var e=Hc;return Hc<<=1,!(Hc&4194240)&&(Hc=64),e}function Ug(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $u(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ur(t),e[t]=n}function vk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ur(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Hg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ur(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var at=0;function Jb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xb,Wg,Zb,e_,t_,Vg=!1,Kc=[],co=null,fo=null,ho=null,ju=new Map,zu=new Map,po=[],yk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function n_(e,t){switch(e){case"focusin":case"focusout":co=null;break;case"dragenter":case"dragleave":fo=null;break;case"mouseover":case"mouseout":ho=null;break;case"pointerover":case"pointerout":ju.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zu.delete(t.pointerId)}}function Uu(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=nl(t),t!==null&&Wg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function wk(e,t,n,r,i){switch(t){case"focusin":return co=Uu(co,e,t,n,r,i),!0;case"dragenter":return fo=Uu(fo,e,t,n,r,i),!0;case"mouseover":return ho=Uu(ho,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ju.set(o,Uu(ju.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zu.set(o,Uu(zu.get(o)||null,e,t,n,r,i)),!0}return!1}function r_(e){var t=rs(e.target);if(t!==null){var n=ns(t);if(n!==null){if(t=n.tag,t===13){if(t=Ub(n),t!==null){e.blockedOn=t,t_(e.priority,function(){Zb(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tg=r,n.target.dispatchEvent(r),Tg=null}else return t=nl(n),t!==null&&Wg(t),e.blockedOn=n,!1;t.shift()}return!0}function i_(e,t,n){qc(e)&&n.delete(t)}function bk(){Vg=!1,co!==null&&qc(co)&&(co=null),fo!==null&&qc(fo)&&(fo=null),ho!==null&&qc(ho)&&(ho=null),ju.forEach(i_),zu.forEach(i_)}function Hu(e,t){e.blockedOn===t&&(e.blockedOn=null,Vg||(Vg=!0,Yn.unstable_scheduleCallback(Yn.unstable_NormalPriority,bk)))}function Wu(e){function t(i){return Hu(i,e)}if(0<Kc.length){Hu(Kc[0],e);for(var n=1;n<Kc.length;n++){var r=Kc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(co!==null&&Hu(co,e),fo!==null&&Hu(fo,e),ho!==null&&Hu(ho,e),ju.forEach(t),zu.forEach(t),n=0;n<po.length;n++)r=po[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<po.length&&(n=po[0],n.blockedOn===null);)r_(n),n.blockedOn===null&&po.shift()}var ia=Oi.ReactCurrentBatchConfig,Gc=!0;function _k(e,t,n,r){var i=at,o=ia.transition;ia.transition=null;try{at=1,Kg(e,t,n,r)}finally{at=i,ia.transition=o}}function Ck(e,t,n,r){var i=at,o=ia.transition;ia.transition=null;try{at=4,Kg(e,t,n,r)}finally{at=i,ia.transition=o}}function Kg(e,t,n,r){if(Gc){var i=qg(e,t,n,r);if(i===null)c0(e,t,r,Qc,n),n_(e,r);else if(wk(i,e,t,n,r))r.stopPropagation();else if(n_(e,r),t&4&&-1<yk.indexOf(e)){for(;i!==null;){var o=nl(i);if(o!==null&&Xb(o),o=qg(e,t,n,r),o===null&&c0(e,t,r,Qc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else c0(e,t,r,null,n)}}var Qc=null;function qg(e,t,n,r){if(Qc=null,e=Ig(r),e=rs(e),e!==null)if(t=ns(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ub(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qc=e,null}function o_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(lk()){case jg:return 1;case Gb:return 4;case zc:case ck:return 16;case Qb:return 536870912;default:return 16}default:return 16}}var go=null,Gg=null,Yc=null;function s_(){if(Yc)return Yc;var e,t=Gg,n=t.length,r,i="value"in go?go.value:go.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Yc=i.slice(e,1<r?1-r:void 0)}function Jc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xc(){return!0}function a_(){return!1}function Jn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xc:a_,this.isPropagationStopped=a_,this}return Ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qg=Jn(oa),Vu=Ot({},oa,{view:0,detail:0}),Ek=Jn(Vu),Yg,Jg,Ku,Zc=Ot({},Vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ku&&(Ku&&e.type==="mousemove"?(Yg=e.screenX-Ku.screenX,Jg=e.screenY-Ku.screenY):Jg=Yg=0,Ku=e),Yg)},movementY:function(e){return"movementY"in e?e.movementY:Jg}}),u_=Jn(Zc),Dk=Ot({},Zc,{dataTransfer:0}),xk=Jn(Dk),Ak=Ot({},Vu,{relatedTarget:0}),Xg=Jn(Ak),Sk=Ot({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ok=Jn(Sk),Fk=Ot({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bk=Jn(Fk),kk=Ot({},oa,{data:0}),l_=Jn(kk),Pk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ik(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tk[e])?!!t[e]:!1}function Zg(){return Ik}var Nk=Ot({},Vu,{key:function(e){if(e.key){var t=Pk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zg,charCode:function(e){return e.type==="keypress"?Jc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lk=Jn(Nk),Mk=Ot({},Zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),c_=Jn(Mk),$k=Ot({},Vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zg}),jk=Jn($k),zk=Ot({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uk=Jn(zk),Hk=Ot({},Zc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Wk=Jn(Hk),Vk=[9,13,27,32],e0=Si&&"CompositionEvent"in window,qu=null;Si&&"documentMode"in document&&(qu=document.documentMode);var Kk=Si&&"TextEvent"in window&&!qu,f_=Si&&(!e0||qu&&8<qu&&11>=qu),d_=String.fromCharCode(32),h_=!1;function p_(e,t){switch(e){case"keyup":return Vk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function qk(e,t){switch(e){case"compositionend":return g_(t);case"keypress":return t.which!==32?null:(h_=!0,d_);case"textInput":return e=t.data,e===d_&&h_?null:e;default:return null}}function Gk(e,t){if(sa)return e==="compositionend"||!e0&&p_(e,t)?(e=s_(),Yc=Gg=go=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return f_&&t.locale!=="ko"?null:t.data;default:return null}}var Qk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function m_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qk[e.type]:t==="textarea"}function v_(e,t,n,r){Lb(r),t=of(t,"onChange"),0<t.length&&(n=new Qg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gu=null,Qu=null;function Yk(e){I_(e,0)}function ef(e){var t=fa(e);if(xb(t))return e}function Jk(e,t){if(e==="change")return t}var y_=!1;if(Si){var t0;if(Si){var n0="oninput"in document;if(!n0){var w_=document.createElement("div");w_.setAttribute("oninput","return;"),n0=typeof w_.oninput=="function"}t0=n0}else t0=!1;y_=t0&&(!document.documentMode||9<document.documentMode)}function b_(){Gu&&(Gu.detachEvent("onpropertychange",__),Qu=Gu=null)}function __(e){if(e.propertyName==="value"&&ef(Qu)){var t=[];v_(t,Qu,e,Ig(e)),zb(Yk,t)}}function Xk(e,t,n){e==="focusin"?(b_(),Gu=t,Qu=n,Gu.attachEvent("onpropertychange",__)):e==="focusout"&&b_()}function Zk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ef(Qu)}function eP(e,t){if(e==="click")return ef(t)}function tP(e,t){if(e==="input"||e==="change")return ef(t)}function nP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hr=typeof Object.is=="function"?Object.is:nP;function Yu(e,t){if(Hr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!hg.call(t,i)||!Hr(e[i],t[i]))return!1}return!0}function C_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function E_(e,t){var n=C_(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=C_(n)}}function D_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x_(){for(var e=window,t=Lc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lc(e.document)}return t}function r0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rP(e){var t=x_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D_(n.ownerDocument.documentElement,n)){if(r!==null&&r0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=E_(n,o);var a=E_(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var iP=Si&&"documentMode"in document&&11>=document.documentMode,aa=null,i0=null,Ju=null,o0=!1;function A_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;o0||aa==null||aa!==Lc(r)||(r=aa,"selectionStart"in r&&r0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ju&&Yu(Ju,r)||(Ju=r,r=of(i0,"onSelect"),0<r.length&&(t=new Qg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=aa)))}function tf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ua={animationend:tf("Animation","AnimationEnd"),animationiteration:tf("Animation","AnimationIteration"),animationstart:tf("Animation","AnimationStart"),transitionend:tf("Transition","TransitionEnd")},s0={},S_={};Si&&(S_=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function nf(e){if(s0[e])return s0[e];if(!ua[e])return e;var t=ua[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in S_)return s0[e]=t[n];return e}var O_=nf("animationend"),F_=nf("animationiteration"),B_=nf("animationstart"),k_=nf("transitionend"),P_=new Map,R_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function mo(e,t){P_.set(e,t),ts(t,[e])}for(var a0=0;a0<R_.length;a0++){var u0=R_[a0],oP=u0.toLowerCase(),sP=u0[0].toUpperCase()+u0.slice(1);mo(oP,"on"+sP)}mo(O_,"onAnimationEnd"),mo(F_,"onAnimationIteration"),mo(B_,"onAnimationStart"),mo("dblclick","onDoubleClick"),mo("focusin","onFocus"),mo("focusout","onBlur"),mo(k_,"onTransitionEnd"),Xs("onMouseEnter",["mouseout","mouseover"]),Xs("onMouseLeave",["mouseout","mouseover"]),Xs("onPointerEnter",["pointerout","pointerover"]),Xs("onPointerLeave",["pointerout","pointerover"]),ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xu));function T_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ok(r,t,void 0,e),e.currentTarget=null}function I_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,f=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;T_(i,l,f),o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,f=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;T_(i,l,f),o=c}}}if(jc)throw e=$g,jc=!1,$g=null,e}function yt(e,t){var n=t[m0];n===void 0&&(n=t[m0]=new Set);var r=e+"__bubble";n.has(r)||(N_(t,e,2,!1),n.add(r))}function l0(e,t,n){var r=0;t&&(r|=4),N_(n,e,r,t)}var rf="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[rf]){e[rf]=!0,vb.forEach(function(n){n!=="selectionchange"&&(aP.has(n)||l0(n,!1,e),l0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rf]||(t[rf]=!0,l0("selectionchange",!1,t))}}function N_(e,t,n,r){switch(o_(t)){case 1:var i=_k;break;case 4:i=Ck;break;default:i=Kg}n=i.bind(null,t,n,e),i=void 0,!Mg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function c0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=rs(l),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}l=l.parentNode}}r=r.return}zb(function(){var f=o,h=Ig(n),g=[];e:{var m=P_.get(e);if(m!==void 0){var y=Qg,v=e;switch(e){case"keypress":if(Jc(n)===0)break e;case"keydown":case"keyup":y=Lk;break;case"focusin":v="focus",y=Xg;break;case"focusout":v="blur",y=Xg;break;case"beforeblur":case"afterblur":y=Xg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=u_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=xk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=jk;break;case O_:case F_:case B_:y=Ok;break;case k_:y=Uk;break;case"scroll":y=Ek;break;case"wheel":y=Wk;break;case"copy":case"cut":case"paste":y=Bk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=c_}var p=(t&4)!==0,E=!p&&e==="scroll",_=p?m!==null?m+"Capture":null:m;p=[];for(var b=f,x;b!==null;){x=b;var O=x.stateNode;if(x.tag===5&&O!==null&&(x=O,_!==null&&(O=Iu(b,_),O!=null&&p.push(el(b,O,x)))),E)break;b=b.return}0<p.length&&(m=new y(m,v,null,n,h),g.push({event:m,listeners:p}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Tg&&(v=n.relatedTarget||n.fromElement)&&(rs(v)||v[Fi]))break e;if((y||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=f,v=v?rs(v):null,v!==null&&(E=ns(v),v!==E||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=f),y!==v)){if(p=u_,O="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(p=c_,O="onPointerLeave",_="onPointerEnter",b="pointer"),E=y==null?m:fa(y),x=v==null?m:fa(v),m=new p(O,b+"leave",y,n,h),m.target=E,m.relatedTarget=x,O=null,rs(h)===f&&(p=new p(_,b+"enter",v,n,h),p.target=x,p.relatedTarget=E,O=p),E=O,y&&v)t:{for(p=y,_=v,b=0,x=p;x;x=la(x))b++;for(x=0,O=_;O;O=la(O))x++;for(;0<b-x;)p=la(p),b--;for(;0<x-b;)_=la(_),x--;for(;b--;){if(p===_||_!==null&&p===_.alternate)break t;p=la(p),_=la(_)}p=null}else p=null;y!==null&&L_(g,m,y,p,!1),v!==null&&E!==null&&L_(g,E,v,p,!0)}}e:{if(m=f?fa(f):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var B=Jk;else if(m_(m))if(y_)B=tP;else{B=Zk;var k=Xk}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(B=eP);if(B&&(B=B(e,f))){v_(g,B,n,h);break e}k&&k(e,m,f),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&Fg(m,"number",m.value)}switch(k=f?fa(f):window,e){case"focusin":(m_(k)||k.contentEditable==="true")&&(aa=k,i0=f,Ju=null);break;case"focusout":Ju=i0=aa=null;break;case"mousedown":o0=!0;break;case"contextmenu":case"mouseup":case"dragend":o0=!1,A_(g,n,h);break;case"selectionchange":if(iP)break;case"keydown":case"keyup":A_(g,n,h)}var P;if(e0)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else sa?p_(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(f_&&n.locale!=="ko"&&(sa||I!=="onCompositionStart"?I==="onCompositionEnd"&&sa&&(P=s_()):(go=h,Gg="value"in go?go.value:go.textContent,sa=!0)),k=of(f,I),0<k.length&&(I=new l_(I,e,null,n,h),g.push({event:I,listeners:k}),P?I.data=P:(P=g_(n),P!==null&&(I.data=P)))),(P=Kk?qk(e,n):Gk(e,n))&&(f=of(f,"onBeforeInput"),0<f.length&&(h=new l_("onBeforeInput","beforeinput",null,n,h),g.push({event:h,listeners:f}),h.data=P))}I_(g,t)})}function el(e,t,n){return{instance:e,listener:t,currentTarget:n}}function of(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Iu(e,n),o!=null&&r.unshift(el(e,o,i)),o=Iu(e,t),o!=null&&r.push(el(e,o,i))),e=e.return}return r}function la(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function L_(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,f=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&f!==null&&(l=f,i?(c=Iu(n,o),c!=null&&a.unshift(el(n,c,l))):i||(c=Iu(n,o),c!=null&&a.push(el(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var uP=/\r\n?/g,lP=/\u0000|\uFFFD/g;function M_(e){return(typeof e=="string"?e:""+e).replace(uP,` `).replace(lP,"")}function sf(e,t,n){if(t=M_(t),M_(e)!==t&&n)throw Error(pe(425))}function af(){}var f0=null,d0=null;function h0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var p0=typeof setTimeout=="function"?setTimeout:void 0,cP=typeof clearTimeout=="function"?clearTimeout:void 0,$_=typeof Promise=="function"?Promise:void 0,fP=typeof queueMicrotask=="function"?queueMicrotask:typeof $_<"u"?function(e){return $_.resolve(null).then(e).catch(dP)}:p0;function dP(e){setTimeout(function(){throw e})}function g0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Wu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wu(t)}function vo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function j_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ca=Math.random().toString(36).slice(2),oi="__reactFiber$"+ca,tl="__reactProps$"+ca,Fi="__reactContainer$"+ca,m0="__reactEvents$"+ca,hP="__reactListeners$"+ca,pP="__reactHandles$"+ca;function rs(e){var t=e[oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fi]||n[oi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=j_(e);e!==null;){if(n=e[oi])return n;e=j_(e)}return t}e=n,n=e.parentNode}return null}function nl(e){return e=e[oi]||e[Fi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(pe(33))}function uf(e){return e[tl]||null}var v0=[],da=-1;function yo(e){return{current:e}}function wt(e){0>da||(e.current=v0[da],v0[da]=null,da--)}function gt(e,t){da++,v0[da]=e.current,e.current=t}var wo={},vn=yo(wo),Nn=yo(!1),is=wo;function ha(e,t){var n=e.type.contextTypes;if(!n)return wo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ln(e){return e=e.childContextTypes,e!=null}function lf(){wt(Nn),wt(vn)}function z_(e,t,n){if(vn.current!==wo)throw Error(pe(168));gt(vn,t),gt(Nn,n)}function U_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(pe(108,X4(e)||"Unknown",i));return Ot({},n,r)}function cf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,is=vn.current,gt(vn,e),gt(Nn,Nn.current),!0}function H_(e,t,n){var r=e.stateNode;if(!r)throw Error(pe(169));n?(e=U_(e,t,is),r.__reactInternalMemoizedMergedChildContext=e,wt(Nn),wt(vn),gt(vn,e)):wt(Nn),gt(Nn,n)}var Bi=null,ff=!1,y0=!1;function W_(e){Bi===null?Bi=[e]:Bi.push(e)}function gP(e){ff=!0,W_(e)}function bo(){if(!y0&&Bi!==null){y0=!0;var e=0,t=at;try{var n=Bi;for(at=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bi=null,ff=!1}catch(i){throw Bi!==null&&(Bi=Bi.slice(e+1)),Kb(jg,bo),i}finally{at=t,y0=!1}}return null}var pa=[],ga=0,df=null,hf=0,wr=[],br=0,os=null,ki=1,Pi="";function ss(e,t){pa[ga++]=hf,pa[ga++]=df,df=e,hf=t}function V_(e,t,n){wr[br++]=ki,wr[br++]=Pi,wr[br++]=os,os=e;var r=ki;e=Pi;var i=32-Ur(r)-1;r&=~(1<<i),n+=1;var o=32-Ur(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ki=1<<32-Ur(t)+i|n<<i|r,Pi=o+e}else ki=1<<o|n<<i|r,Pi=e}function w0(e){e.return!==null&&(ss(e,1),V_(e,1,0))}function b0(e){for(;e===df;)df=pa[--ga],pa[ga]=null,hf=pa[--ga],pa[ga]=null;for(;e===os;)os=wr[--br],wr[br]=null,Pi=wr[--br],wr[br]=null,ki=wr[--br],wr[br]=null}var Xn=null,Zn=null,Et=!1,Wr=null;function K_(e,t){var n=Dr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function q_(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xn=e,Zn=vo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xn=e,Zn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=os!==null?{id:ki,overflow:Pi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xn=e,Zn=null,!0):!1;default:return!1}}function _0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function C0(e){if(Et){var t=Zn;if(t){var n=t;if(!q_(e,t)){if(_0(e))throw Error(pe(418));t=vo(n.nextSibling);var r=Xn;t&&q_(e,t)?K_(r,n):(e.flags=e.flags&-4097|2,Et=!1,Xn=e)}}else{if(_0(e))throw Error(pe(418));e.flags=e.flags&-4097|2,Et=!1,Xn=e}}}function G_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xn=e}function pf(e){if(e!==Xn)return!1;if(!Et)return G_(e),Et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!h0(e.type,e.memoizedProps)),t&&(t=Zn)){if(_0(e))throw Q_(),Error(pe(418));for(;t;)K_(e,t),t=vo(t.nextSibling)}if(G_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(pe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Zn=vo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Zn=null}}else Zn=Xn?vo(e.stateNode.nextSibling):null;return!0}function Q_(){for(var e=Zn;e;)e=vo(e.nextSibling)}function ma(){Zn=Xn=null,Et=!1}function E0(e){Wr===null?Wr=[e]:Wr.push(e)}var mP=Oi.ReactCurrentBatchConfig;function Vr(e,t){if(e&&e.defaultProps){t=Ot({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var gf=yo(null),mf=null,va=null,D0=null;function x0(){D0=va=mf=null}function A0(e){var t=gf.current;wt(gf),e._currentValue=t}function S0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ya(e,t){mf=e,D0=va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mn=!0),e.firstContext=null)}function _r(e){var t=e._currentValue;if(D0!==e)if(e={context:e,memoizedValue:t,next:null},va===null){if(mf===null)throw Error(pe(308));va=e,mf.dependencies={lanes:0,firstContext:e}}else va=va.next=e;return t}var as=null;function O0(e){as===null?as=[e]:as.push(e)}function Y_(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,O0(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _o=!1;function F0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ri(e,n)}return i=r.interleaved,i===null?(t.next=t,O0(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ri(e,n)}function vf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hg(e,n)}}function X_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function yf(e,t,n,r){var i=e.updateQueue;_o=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,f=c.next;c.next=null,a===null?o=f:a.next=f,a=c;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==a&&(l===null?h.firstBaseUpdate=f:l.next=f,h.lastBaseUpdate=c))}if(o!==null){var g=i.baseState;a=0,h=f=c=null,l=o;do{var m=l.lane,y=l.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,p=l;switch(m=t,y=n,p.tag){case 1:if(v=p.payload,typeof v=="function"){g=v.call(y,g,m);break e}g=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,m=typeof v=="function"?v.call(y,g,m):v,m==null)break e;g=Ot({},g,m);break e;case 2:_o=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(f=h=y,c=g):h=h.next=y,a|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);if(h===null&&(c=g),i.baseState=c,i.firstBaseUpdate=f,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);cs|=a,e.lanes=a,e.memoizedState=g}}function Z_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(pe(191,i));i.call(r)}}}var eC=new mb.Component().refs;function B0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ot({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wf={isMounted:function(e){return(e=e._reactInternals)?ns(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=On(),i=Ao(e),o=Ti(r,i);o.payload=t,n!=null&&(o.callback=n),t=Co(e,o,i),t!==null&&(Gr(t,e,i,r),vf(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=On(),i=Ao(e),o=Ti(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Co(e,o,i),t!==null&&(Gr(t,e,i,r),vf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=On(),r=Ao(e),i=Ti(n,r);i.tag=2,t!=null&&(i.callback=t),t=Co(e,i,r),t!==null&&(Gr(t,e,r,n),vf(t,e,r))}};function tC(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Yu(n,r)||!Yu(i,o):!0}function nC(e,t,n){var r=!1,i=wo,o=t.contextType;return typeof o=="object"&&o!==null?o=_r(o):(i=Ln(t)?is:vn.current,r=t.contextTypes,o=(r=r!=null)?ha(e,i):wo),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function rC(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wf.enqueueReplaceState(t,t.state,null)}function k0(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=eC,F0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=_r(o):(o=Ln(t)?is:vn.current,i.context=ha(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(B0(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&wf.enqueueReplaceState(i,i.state,null),yf(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function rl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(pe(309));var r=n.stateNode}if(!r)throw Error(pe(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;l===eC&&(l=i.refs={}),a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(pe(284));if(!n._owner)throw Error(pe(290,e))}return e}function bf(e,t){throw e=Object.prototype.toString.call(t),Error(pe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iC(e){var t=e._init;return t(e._payload)}function oC(e){function t(_,b){if(e){var x=_.deletions;x===null?(_.deletions=[b],_.flags|=16):x.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=Oo(_,b),_.index=0,_.sibling=null,_}function o(_,b,x){return _.index=x,e?(x=_.alternate,x!==null?(x=x.index,x<b?(_.flags|=2,b):x):(_.flags|=2,b)):(_.flags|=1048576,b)}function a(_){return e&&_.alternate===null&&(_.flags|=2),_}function l(_,b,x,O){return b===null||b.tag!==6?(b=pm(x,_.mode,O),b.return=_,b):(b=i(b,x),b.return=_,b)}function c(_,b,x,O){var B=x.type;return B===ea?h(_,b,x.props.children,O,x.key):b!==null&&(b.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===uo&&iC(B)===b.type)?(O=i(b,x.props),O.ref=rl(_,b,x),O.return=_,O):(O=$f(x.type,x.key,x.props,null,_.mode,O),O.ref=rl(_,b,x),O.return=_,O)}function f(_,b,x,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=gm(x,_.mode,O),b.return=_,b):(b=i(b,x.children||[]),b.return=_,b)}function h(_,b,x,O,B){return b===null||b.tag!==7?(b=ps(x,_.mode,O,B),b.return=_,b):(b=i(b,x),b.return=_,b)}function g(_,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=pm(""+b,_.mode,x),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ic:return x=$f(b.type,b.key,b.props,null,_.mode,x),x.ref=rl(_,null,b),x.return=_,x;case Zs:return b=gm(b,_.mode,x),b.return=_,b;case uo:var O=b._init;return g(_,O(b._payload),x)}if(Pu(b)||Bu(b))return b=ps(b,_.mode,x,null),b.return=_,b;bf(_,b)}return null}function m(_,b,x,O){var B=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return B!==null?null:l(_,b,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ic:return x.key===B?c(_,b,x,O):null;case Zs:return x.key===B?f(_,b,x,O):null;case uo:return B=x._init,m(_,b,B(x._payload),O)}if(Pu(x)||Bu(x))return B!==null?null:h(_,b,x,O,null);bf(_,x)}return null}function y(_,b,x,O,B){if(typeof O=="string"&&O!==""||typeof O=="number")return _=_.get(x)||null,l(b,_,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ic:return _=_.get(O.key===null?x:O.key)||null,c(b,_,O,B);case Zs:return _=_.get(O.key===null?x:O.key)||null,f(b,_,O,B);case uo:var k=O._init;return y(_,b,x,k(O._payload),B)}if(Pu(O)||Bu(O))return _=_.get(x)||null,h(b,_,O,B,null);bf(b,O)}return null}function v(_,b,x,O){for(var B=null,k=null,P=b,I=b=0,Q=null;P!==null&&I<x.length;I++){P.index>I?(Q=P,P=null):Q=P.sibling;var j=m(_,P,x[I],O);if(j===null){P===null&&(P=Q);break}e&&P&&j.alternate===null&&t(_,P),b=o(j,b,I),k===null?B=j:k.sibling=j,k=j,P=Q}if(I===x.length)return n(_,P),Et&&ss(_,I),B;if(P===null){for(;I<x.length;I++)P=g(_,x[I],O),P!==null&&(b=o(P,b,I),k===null?B=P:k.sibling=P,k=P);return Et&&ss(_,I),B}for(P=r(_,P);I<x.length;I++)Q=y(P,_,I,x[I],O),Q!==null&&(e&&Q.alternate!==null&&P.delete(Q.key===null?I:Q.key),b=o(Q,b,I),k===null?B=Q:k.sibling=Q,k=Q);return e&&P.forEach(function(X){return t(_,X)}),Et&&ss(_,I),B}function p(_,b,x,O){var B=Bu(x);if(typeof B!="function")throw Error(pe(150));if(x=B.call(x),x==null)throw Error(pe(151));for(var k=B=null,P=b,I=b=0,Q=null,j=x.next();P!==null&&!j.done;I++,j=x.next()){P.index>I?(Q=P,P=null):Q=P.sibling;var X=m(_,P,j.value,O);if(X===null){P===null&&(P=Q);break}e&&P&&X.alternate===null&&t(_,P),b=o(X,b,I),k===null?B=X:k.sibling=X,k=X,P=Q}if(j.done)return n(_,P),Et&&ss(_,I),B;if(P===null){for(;!j.done;I++,j=x.next())j=g(_,j.value,O),j!==null&&(b=o(j,b,I),k===null?B=j:k.sibling=j,k=j);return Et&&ss(_,I),B}for(P=r(_,P);!j.done;I++,j=x.next())j=y(P,_,I,j.value,O),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?I:j.key),b=o(j,b,I),k===null?B=j:k.sibling=j,k=j);return e&&P.forEach(function($){return t(_,$)}),Et&&ss(_,I),B}function E(_,b,x,O){if(typeof x=="object"&&x!==null&&x.type===ea&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ic:e:{for(var B=x.key,k=b;k!==null;){if(k.key===B){if(B=x.type,B===ea){if(k.tag===7){n(_,k.sibling),b=i(k,x.props.children),b.return=_,_=b;break e}}else if(k.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===uo&&iC(B)===k.type){n(_,k.sibling),b=i(k,x.props),b.ref=rl(_,k,x),b.return=_,_=b;break e}n(_,k);break}else t(_,k);k=k.sibling}x.type===ea?(b=ps(x.props.children,_.mode,O,x.key),b.return=_,_=b):(O=$f(x.type,x.key,x.props,null,_.mode,O),O.ref=rl(_,b,x),O.return=_,_=O)}return a(_);case Zs:e:{for(k=x.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(_,b.sibling),b=i(b,x.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=gm(x,_.mode,O),b.return=_,_=b}return a(_);case uo:return k=x._init,E(_,b,k(x._payload),O)}if(Pu(x))return v(_,b,x,O);if(Bu(x))return p(_,b,x,O);bf(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,x),b.return=_,_=b):(n(_,b),b=pm(x,_.mode,O),b.return=_,_=b),a(_)):n(_,b)}return E}var wa=oC(!0),sC=oC(!1),il={},si=yo(il),ol=yo(il),sl=yo(il);function us(e){if(e===il)throw Error(pe(174));return e}function P0(e,t){switch(gt(sl,t),gt(ol,e),gt(si,il),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kg(t,e)}wt(si),gt(si,t)}function ba(){wt(si),wt(ol),wt(sl)}function aC(e){us(sl.current);var t=us(si.current),n=kg(t,e.type);t!==n&&(gt(ol,e),gt(si,n))}function R0(e){ol.current===e&&(wt(si),wt(ol))}var Ft=yo(0);function _f(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var T0=[];function I0(){for(var e=0;e<T0.length;e++)T0[e]._workInProgressVersionPrimary=null;T0.length=0}var Cf=Oi.ReactCurrentDispatcher,N0=Oi.ReactCurrentBatchConfig,ls=0,Bt=null,Qt=null,en=null,Ef=!1,al=!1,ul=0,vP=0;function yn(){throw Error(pe(321))}function L0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hr(e[n],t[n]))return!1;return!0}function M0(e,t,n,r,i,o){if(ls=o,Bt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cf.current=e===null||e.memoizedState===null?_P:CP,e=n(r,i),al){o=0;do{if(al=!1,ul=0,25<=o)throw Error(pe(301));o+=1,en=Qt=null,t.updateQueue=null,Cf.current=EP,e=n(r,i)}while(al)}if(Cf.current=Af,t=Qt!==null&&Qt.next!==null,ls=0,en=Qt=Bt=null,Ef=!1,t)throw Error(pe(300));return e}function $0(){var e=ul!==0;return ul=0,e}function ai(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Bt.memoizedState=en=e:en=en.next=e,en}function Cr(){if(Qt===null){var e=Bt.alternate;e=e!==null?e.memoizedState:null}else e=Qt.next;var t=en===null?Bt.memoizedState:en.next;if(t!==null)en=t,Qt=e;else{if(e===null)throw Error(pe(310));Qt=e,e={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},en===null?Bt.memoizedState=en=e:en=en.next=e}return en}function ll(e,t){return typeof t=="function"?t(e):t}function j0(e){var t=Cr(),n=t.queue;if(n===null)throw Error(pe(311));n.lastRenderedReducer=e;var r=Qt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=a=null,c=null,f=o;do{var h=f.lane;if((ls&h)===h)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var g={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(l=c=g,a=r):c=c.next=g,Bt.lanes|=h,cs|=h}f=f.next}while(f!==null&&f!==o);c===null?a=r:c.next=l,Hr(r,t.memoizedState)||(Mn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Bt.lanes|=o,cs|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function z0(e){var t=Cr(),n=t.queue;if(n===null)throw Error(pe(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Hr(o,t.memoizedState)||(Mn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function uC(){}function lC(e,t){var n=Bt,r=Cr(),i=t(),o=!Hr(r.memoizedState,i);if(o&&(r.memoizedState=i,Mn=!0),r=r.queue,U0(dC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||en!==null&&en.memoizedState.tag&1){if(n.flags|=2048,cl(9,fC.bind(null,n,r,i,t),void 0,null),tn===null)throw Error(pe(349));ls&30||cC(n,t,i)}return i}function cC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fC(e,t,n,r){t.value=n,t.getSnapshot=r,hC(t)&&pC(e)}function dC(e,t,n){return n(function(){hC(t)&&pC(e)})}function hC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hr(e,n)}catch{return!0}}function pC(e){var t=Ri(e,1);t!==null&&Gr(t,e,1,-1)}function gC(e){var t=ai();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t.queue=e,e=e.dispatch=bP.bind(null,Bt,e),[t.memoizedState,e]}function cl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function mC(){return Cr().memoizedState}function Df(e,t,n,r){var i=ai();Bt.flags|=e,i.memoizedState=cl(1|t,n,void 0,r===void 0?null:r)}function xf(e,t,n,r){var i=Cr();r=r===void 0?null:r;var o=void 0;if(Qt!==null){var a=Qt.memoizedState;if(o=a.destroy,r!==null&&L0(r,a.deps)){i.memoizedState=cl(t,n,o,r);return}}Bt.flags|=e,i.memoizedState=cl(1|t,n,o,r)}function vC(e,t){return Df(8390656,8,e,t)}function U0(e,t){return xf(2048,8,e,t)}function yC(e,t){return xf(4,2,e,t)}function wC(e,t){return xf(4,4,e,t)}function bC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _C(e,t,n){return n=n!=null?n.concat([e]):null,xf(4,4,bC.bind(null,t,e),n)}function H0(){}function CC(e,t){var n=Cr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&L0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function EC(e,t){var n=Cr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&L0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function DC(e,t,n){return ls&21?(Hr(n,t)||(n=Yb(),Bt.lanes|=n,cs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Mn=!0),e.memoizedState=n)}function yP(e,t){var n=at;at=n!==0&&4>n?n:4,e(!0);var r=N0.transition;N0.transition={};try{e(!1),t()}finally{at=n,N0.transition=r}}function xC(){return Cr().memoizedState}function wP(e,t,n){var r=Ao(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},AC(e))SC(t,n);else if(n=Y_(e,t,n,r),n!==null){var i=On();Gr(n,e,r,i),OC(n,t,r)}}function bP(e,t,n){var r=Ao(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(AC(e))SC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Hr(l,a)){var c=t.interleaved;c===null?(i.next=i,O0(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Y_(e,t,i,r),n!==null&&(i=On(),Gr(n,e,r,i),OC(n,t,r))}}function AC(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function SC(e,t){al=Ef=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function OC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hg(e,n)}}var Af={readContext:_r,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},_P={readContext:_r,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:_r,useEffect:vC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Df(4194308,4,bC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Df(4194308,4,e,t)},useInsertionEffect:function(e,t){return Df(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=wP.bind(null,Bt,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:gC,useDebugValue:H0,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=gC(!1),t=e[0];return e=yP.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bt,i=ai();if(Et){if(n===void 0)throw Error(pe(407));n=n()}else{if(n=t(),tn===null)throw Error(pe(349));ls&30||cC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,vC(dC.bind(null,r,o,e),[e]),r.flags|=2048,cl(9,fC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ai(),t=tn.identifierPrefix;if(Et){var n=Pi,r=ki;n=(r&~(1<<32-Ur(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},CP={readContext:_r,useCallback:CC,useContext:_r,useEffect:U0,useImperativeHandle:_C,useInsertionEffect:yC,useLayoutEffect:wC,useMemo:EC,useReducer:j0,useRef:mC,useState:function(){return j0(ll)},useDebugValue:H0,useDeferredValue:function(e){var t=Cr();return DC(t,Qt.memoizedState,e)},useTransition:function(){var e=j0(ll)[0],t=Cr().memoizedState;return[e,t]},useMutableSource:uC,useSyncExternalStore:lC,useId:xC,unstable_isNewReconciler:!1},EP={readContext:_r,useCallback:CC,useContext:_r,useEffect:U0,useImperativeHandle:_C,useInsertionEffect:yC,useLayoutEffect:wC,useMemo:EC,useReducer:z0,useRef:mC,useState:function(){return z0(ll)},useDebugValue:H0,useDeferredValue:function(e){var t=Cr();return Qt===null?t.memoizedState=e:DC(t,Qt.memoizedState,e)},useTransition:function(){var e=z0(ll)[0],t=Cr().memoizedState;return[e,t]},useMutableSource:uC,useSyncExternalStore:lC,useId:xC,unstable_isNewReconciler:!1};function _a(e,t){try{var n="",r=t;do n+=J4(r),r=r.return;while(r);var i=n}catch(o){i=` Error generating stack: `+o.message+` `+o.stack}return{value:e,source:t,stack:i,digest:null}}function W0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function V0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DP=typeof WeakMap=="function"?WeakMap:Map;function FC(e,t,n){n=Ti(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rf||(Rf=!0,sm=r),V0(e,t)},n}function BC(e,t,n){n=Ti(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){V0(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){V0(e,t),typeof r!="function"&&(Do===null?Do=new Set([this]):Do.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function kC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DP;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=MP.bind(null,e,t,n),t.then(e,e))}function PC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function RC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ti(-1,1),t.tag=2,Co(n,t,1))),n.lanes|=1),e)}var xP=Oi.ReactCurrentOwner,Mn=!1;function Sn(e,t,n,r){t.child=e===null?sC(t,null,n,r):wa(t,e.child,n,r)}function TC(e,t,n,r,i){n=n.render;var o=t.ref;return ya(t,i),r=M0(e,t,n,r,o,i),n=$0(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ii(e,t,i)):(Et&&n&&w0(t),t.flags|=1,Sn(e,t,r,i),t.child)}function IC(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!hm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,NC(e,t,o,r,i)):(e=$f(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Yu,n(a,r)&&e.ref===t.ref)return Ii(e,t,i)}return t.flags|=1,e=Oo(o,r),e.ref=t.ref,e.return=t,t.child=e}function NC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Yu(o,r)&&e.ref===t.ref)if(Mn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Mn=!0);else return t.lanes=e.lanes,Ii(e,t,i)}return K0(e,t,n,r,i)}function LC(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gt(Ea,er),er|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gt(Ea,er),er|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,gt(Ea,er),er|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,gt(Ea,er),er|=r;return Sn(e,t,i,n),t.child}function MC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function K0(e,t,n,r,i){var o=Ln(n)?is:vn.current;return o=ha(t,o),ya(t,i),n=M0(e,t,n,r,o,i),r=$0(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ii(e,t,i)):(Et&&r&&w0(t),t.flags|=1,Sn(e,t,n,i),t.child)}function $C(e,t,n,r,i){if(Ln(n)){var o=!0;cf(t)}else o=!1;if(ya(t,i),t.stateNode===null)Of(e,t),nC(t,n,r),k0(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,f=n.contextType;typeof f=="object"&&f!==null?f=_r(f):(f=Ln(n)?is:vn.current,f=ha(t,f));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==f)&&rC(t,a,r,f),_o=!1;var m=t.memoizedState;a.state=m,yf(t,r,a,i),c=t.memoizedState,l!==r||m!==c||Nn.current||_o?(typeof h=="function"&&(B0(t,n,h,r),c=t.memoizedState),(l=_o||tC(t,n,l,r,m,c,f))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=f,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,J_(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Vr(t.type,l),a.props=f,g=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=_r(c):(c=Ln(n)?is:vn.current,c=ha(t,c));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==g||m!==c)&&rC(t,a,r,c),_o=!1,m=t.memoizedState,a.state=m,yf(t,r,a,i);var v=t.memoizedState;l!==g||m!==v||Nn.current||_o?(typeof y=="function"&&(B0(t,n,y,r),v=t.memoizedState),(f=_o||tC(t,n,f,r,m,v,c)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return q0(e,t,n,r,o,i)}function q0(e,t,n,r,i,o){MC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&H_(t,n,!1),Ii(e,t,o);r=t.stateNode,xP.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=wa(t,e.child,null,o),t.child=wa(t,null,l,o)):Sn(e,t,l,o),t.memoizedState=r.state,i&&H_(t,n,!0),t.child}function jC(e){var t=e.stateNode;t.pendingContext?z_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&z_(e,t.context,!1),P0(e,t.containerInfo)}function zC(e,t,n,r,i){return ma(),E0(i),t.flags|=256,Sn(e,t,n,r),t.child}var G0={dehydrated:null,treeContext:null,retryLane:0};function Q0(e){return{baseLanes:e,cachePool:null,transitions:null}}function UC(e,t,n){var r=t.pendingProps,i=Ft.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),gt(Ft,i&1),e===null)return C0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=jf(a,r,0,null),e=ps(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Q0(n),t.memoizedState=G0,e):Y0(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return AP(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Oo(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Oo(l,o):(o=ps(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Q0(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=G0,r}return o=e.child,e=o.sibling,r=Oo(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Y0(e,t){return t=jf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sf(e,t,n,r){return r!==null&&E0(r),wa(t,e.child,null,n),e=Y0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AP(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=W0(Error(pe(422))),Sf(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=jf({mode:"visible",children:r.children},i,0,null),o=ps(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&wa(t,e.child,null,a),t.child.memoizedState=Q0(a),t.memoizedState=G0,o);if(!(t.mode&1))return Sf(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(pe(419)),r=W0(o,r,void 0),Sf(e,t,a,r)}if(l=(a&e.childLanes)!==0,Mn||l){if(r=tn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ri(e,i),Gr(r,e,i,-1))}return dm(),r=W0(Error(pe(421))),Sf(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$P.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Zn=vo(i.nextSibling),Xn=t,Et=!0,Wr=null,e!==null&&(wr[br++]=ki,wr[br++]=Pi,wr[br++]=os,ki=e.id,Pi=e.overflow,os=t),t=Y0(t,r.children),t.flags|=4096,t)}function HC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),S0(e.return,t,n)}function J0(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function WC(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Sn(e,t,r.children,n),r=Ft.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&HC(e,n,t);else if(e.tag===19)HC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gt(Ft,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_f(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),J0(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_f(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}J0(t,!0,n,null,o);break;case"together":J0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Of(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ii(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(pe(153));if(t.child!==null){for(e=t.child,n=Oo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function SP(e,t,n){switch(t.tag){case 3:jC(t),ma();break;case 5:aC(t);break;case 1:Ln(t.type)&&cf(t);break;case 4:P0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;gt(gf,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(gt(Ft,Ft.current&1),t.flags|=128,null):n&t.child.childLanes?UC(e,t,n):(gt(Ft,Ft.current&1),e=Ii(e,t,n),e!==null?e.sibling:null);gt(Ft,Ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return WC(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),gt(Ft,Ft.current),r)break;return null;case 22:case 23:return t.lanes=0,LC(e,t,n)}return Ii(e,t,n)}var VC,X0,KC,qC;VC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},X0=function(){},KC=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,us(si.current);var o=null;switch(n){case"input":i=Sg(e,i),r=Sg(e,r),o=[];break;case"select":i=Ot({},i,{value:void 0}),r=Ot({},r,{value:void 0}),o=[];break;case"textarea":i=Bg(e,i),r=Bg(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=af)}Pg(n,r);var a;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Fu.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var c=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(c!=null||l!=null))if(f==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Fu.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&yt("scroll",e),o||l===c||(o=[])):(o=o||[]).push(f,c))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}},qC=function(e,t,n,r){n!==r&&(t.flags|=4)};function fl(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function wn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function OP(e,t,n){var r=t.pendingProps;switch(b0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wn(t),null;case 1:return Ln(t.type)&&lf(),wn(t),null;case 3:return r=t.stateNode,ba(),wt(Nn),wt(vn),I0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wr!==null&&(lm(Wr),Wr=null))),X0(e,t),wn(t),null;case 5:R0(t);var i=us(sl.current);if(n=t.type,e!==null&&t.stateNode!=null)KC(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(pe(166));return wn(t),null}if(e=us(si.current),pf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[oi]=t,r[tl]=o,e=(t.mode&1)!==0,n){case"dialog":yt("cancel",r),yt("close",r);break;case"iframe":case"object":case"embed":yt("load",r);break;case"video":case"audio":for(i=0;i<Xu.length;i++)yt(Xu[i],r);break;case"source":yt("error",r);break;case"img":case"image":case"link":yt("error",r),yt("load",r);break;case"details":yt("toggle",r);break;case"input":Ab(r,o),yt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},yt("invalid",r);break;case"textarea":Fb(r,o),yt("invalid",r)}Pg(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&sf(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&sf(r.textContent,l,e),i=["children",""+l]):Fu.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&yt("scroll",r)}switch(n){case"input":Nc(r),Ob(r,o,!0);break;case"textarea":Nc(r),kb(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=af)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Pb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[oi]=t,e[tl]=r,VC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rg(n,r),n){case"dialog":yt("cancel",e),yt("close",e),i=r;break;case"iframe":case"object":case"embed":yt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Xu.length;i++)yt(Xu[i],e);i=r;break;case"source":yt("error",e),i=r;break;case"img":case"image":case"link":yt("error",e),yt("load",e),i=r;break;case"details":yt("toggle",e),i=r;break;case"input":Ab(e,r),i=Sg(e,r),yt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ot({},r,{value:void 0}),yt("invalid",e);break;case"textarea":Fb(e,r),i=Bg(e,r),yt("invalid",e);break;default:i=r}Pg(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?Ib(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Rb(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ru(e,c):typeof c=="number"&&Ru(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Fu.hasOwnProperty(o)?c!=null&&o==="onScroll"&&yt("scroll",e):c!=null&&mg(e,o,c,a))}switch(n){case"input":Nc(e),Ob(e,r,!1);break;case"textarea":Nc(e),kb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+lo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ta(e,!!r.multiple,o,!1):r.defaultValue!=null&&ta(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=af)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return wn(t),null;case 6:if(e&&t.stateNode!=null)qC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(pe(166));if(n=us(sl.current),us(si.current),pf(t)){if(r=t.stateNode,n=t.memoizedProps,r[oi]=t,(o=r.nodeValue!==n)&&(e=Xn,e!==null))switch(e.tag){case 3:sf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sf(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[oi]=t,t.stateNode=r}return wn(t),null;case 13:if(wt(Ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&Zn!==null&&t.mode&1&&!(t.flags&128))Q_(),ma(),t.flags|=98560,o=!1;else if(o=pf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(pe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(pe(317));o[oi]=t}else ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;wn(t),o=!1}else Wr!==null&&(lm(Wr),Wr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ft.current&1?Yt===0&&(Yt=3):dm())),t.updateQueue!==null&&(t.flags|=4),wn(t),null);case 4:return ba(),X0(e,t),e===null&&Zu(t.stateNode.containerInfo),wn(t),null;case 10:return A0(t.type._context),wn(t),null;case 17:return Ln(t.type)&&lf(),wn(t),null;case 19:if(wt(Ft),o=t.memoizedState,o===null)return wn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)fl(o,!1);else{if(Yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=_f(e),a!==null){for(t.flags|=128,fl(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gt(Ft,Ft.current&1|2),t.child}e=e.sibling}o.tail!==null&&jt()>Da&&(t.flags|=128,r=!0,fl(o,!1),t.lanes=4194304)}else{if(!r)if(e=_f(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Et)return wn(t),null}else 2*jt()-o.renderingStartTime>Da&&n!==1073741824&&(t.flags|=128,r=!0,fl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=jt(),t.sibling=null,n=Ft.current,gt(Ft,r?n&1|2:n&1),t):(wn(t),null);case 22:case 23:return fm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?er&1073741824&&(wn(t),t.subtreeFlags&6&&(t.flags|=8192)):wn(t),null;case 24:return null;case 25:return null}throw Error(pe(156,t.tag))}function FP(e,t){switch(b0(t),t.tag){case 1:return Ln(t.type)&&lf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(),wt(Nn),wt(vn),I0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R0(t),null;case 13:if(wt(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pe(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wt(Ft),null;case 4:return ba(),null;case 10:return A0(t.type._context),null;case 22:case 23:return fm(),null;case 24:return null;default:return null}}var Ff=!1,bn=!1,BP=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){It(e,t,r)}else n.current=null}function Z0(e,t,n){try{n()}catch(r){It(e,t,r)}}var GC=!1;function kP(e,t){if(f0=Gc,e=x_(),r0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,f=0,h=0,g=e,m=null;t:for(;;){for(var y;g!==n||i!==0&&g.nodeType!==3||(l=a+i),g!==o||r!==0&&g.nodeType!==3||(c=a+r),g.nodeType===3&&(a+=g.nodeValue.length),(y=g.firstChild)!==null;)m=g,g=y;for(;;){if(g===e)break t;if(m===n&&++f===i&&(l=a),m===o&&++h===r&&(c=a),(y=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(d0={focusedElem:e,selectionRange:n},Gc=!1,Ae=t;Ae!==null;)if(t=Ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ae=e;else for(;Ae!==null;){t=Ae;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,E=v.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?p:Vr(t.type,p),E);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pe(163))}}catch(O){It(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Ae=e;break}Ae=t.return}return v=GC,GC=!1,v}function dl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Z0(t,n,o)}i=i.next}while(i!==r)}}function Bf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function em(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function QC(e){var t=e.alternate;t!==null&&(e.alternate=null,QC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[tl],delete t[m0],delete t[hP],delete t[pP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YC(e){return e.tag===5||e.tag===3||e.tag===4}function JC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=af));else if(r!==4&&(e=e.child,e!==null))for(tm(e,t,n),e=e.sibling;e!==null;)tm(e,t,n),e=e.sibling}function nm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(nm(e,t,n),e=e.sibling;e!==null;)nm(e,t,n),e=e.sibling}var ln=null,Kr=!1;function Eo(e,t,n){for(n=n.child;n!==null;)XC(e,t,n),n=n.sibling}function XC(e,t,n){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(Uc,n)}catch{}switch(n.tag){case 5:bn||Ca(n,t);case 6:var r=ln,i=Kr;ln=null,Eo(e,t,n),ln=r,Kr=i,ln!==null&&(Kr?(e=ln,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ln.removeChild(n.stateNode));break;case 18:ln!==null&&(Kr?(e=ln,n=n.stateNode,e.nodeType===8?g0(e.parentNode,n):e.nodeType===1&&g0(e,n),Wu(e)):g0(ln,n.stateNode));break;case 4:r=ln,i=Kr,ln=n.stateNode.containerInfo,Kr=!0,Eo(e,t,n),ln=r,Kr=i;break;case 0:case 11:case 14:case 15:if(!bn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Z0(n,t,a),i=i.next}while(i!==r)}Eo(e,t,n);break;case 1:if(!bn&&(Ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){It(n,t,l)}Eo(e,t,n);break;case 21:Eo(e,t,n);break;case 22:n.mode&1?(bn=(r=bn)||n.memoizedState!==null,Eo(e,t,n),bn=r):Eo(e,t,n);break;default:Eo(e,t,n)}}function ZC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BP),t.forEach(function(r){var i=jP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ln=l.stateNode,Kr=!1;break e;case 3:ln=l.stateNode.containerInfo,Kr=!0;break e;case 4:ln=l.stateNode.containerInfo,Kr=!0;break e}l=l.return}if(ln===null)throw Error(pe(160));XC(o,a,i),ln=null,Kr=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(f){It(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)eE(t,e),t=t.sibling}function eE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qr(t,e),ui(e),r&4){try{dl(3,e,e.return),Bf(3,e)}catch(p){It(e,e.return,p)}try{dl(5,e,e.return)}catch(p){It(e,e.return,p)}}break;case 1:qr(t,e),ui(e),r&512&&n!==null&&Ca(n,n.return);break;case 5:if(qr(t,e),ui(e),r&512&&n!==null&&Ca(n,n.return),e.flags&32){var i=e.stateNode;try{Ru(i,"")}catch(p){It(e,e.return,p)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Sb(i,o),Rg(l,a);var f=Rg(l,o);for(a=0;a<c.length;a+=2){var h=c[a],g=c[a+1];h==="style"?Ib(i,g):h==="dangerouslySetInnerHTML"?Rb(i,g):h==="children"?Ru(i,g):mg(i,h,g,f)}switch(l){case"input":Og(i,o);break;case"textarea":Bb(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?ta(i,!!o.multiple,y,!1):m!==!!o.multiple&&(o.defaultValue!=null?ta(i,!!o.multiple,o.defaultValue,!0):ta(i,!!o.multiple,o.multiple?[]:"",!1))}i[tl]=o}catch(p){It(e,e.return,p)}}break;case 6:if(qr(t,e),ui(e),r&4){if(e.stateNode===null)throw Error(pe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(p){It(e,e.return,p)}}break;case 3:if(qr(t,e),ui(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wu(t.containerInfo)}catch(p){It(e,e.return,p)}break;case 4:qr(t,e),ui(e);break;case 13:qr(t,e),ui(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(om=jt())),r&4&&ZC(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(bn=(f=bn)||h,qr(t,e),bn=f):qr(t,e),ui(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(Ae=e,h=e.child;h!==null;){for(g=Ae=h;Ae!==null;){switch(m=Ae,y=m.child,m.tag){case 0:case 11:case 14:case 15:dl(4,m,m.return);break;case 1:Ca(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(p){It(r,n,p)}}break;case 5:Ca(m,m.return);break;case 22:if(m.memoizedState!==null){rE(g);continue}}y!==null?(y.return=m,Ae=y):rE(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{i=g.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=g.stateNode,c=g.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Tb("display",a))}catch(p){It(e,e.return,p)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=f?"":g.memoizedProps}catch(p){It(e,e.return,p)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:qr(t,e),ui(e),r&4&&ZC(e);break;case 21:break;default:qr(t,e),ui(e)}}function ui(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(YC(n)){var r=n;break e}n=n.return}throw Error(pe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ru(i,""),r.flags&=-33);var o=JC(e);nm(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=JC(e);tm(e,l,a);break;default:throw Error(pe(161))}}catch(c){It(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function PP(e,t,n){Ae=e,tE(e)}function tE(e,t,n){for(var r=(e.mode&1)!==0;Ae!==null;){var i=Ae,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Ff;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||bn;l=Ff;var f=bn;if(Ff=a,(bn=c)&&!f)for(Ae=i;Ae!==null;)a=Ae,c=a.child,a.tag===22&&a.memoizedState!==null?iE(i):c!==null?(c.return=a,Ae=c):iE(i);for(;o!==null;)Ae=o,tE(o),o=o.sibling;Ae=i,Ff=l,bn=f}nE(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ae=o):nE(e)}}function nE(e){for(;Ae!==null;){var t=Ae;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bn||Bf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!bn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Vr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Z_(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Z_(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&Wu(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(pe(163))}bn||t.flags&512&&em(t)}catch(m){It(t,t.return,m)}}if(t===e){Ae=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ae=n;break}Ae=t.return}}function rE(e){for(;Ae!==null;){var t=Ae;if(t===e){Ae=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ae=n;break}Ae=t.return}}function iE(e){for(;Ae!==null;){var t=Ae;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bf(4,t)}catch(c){It(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){It(t,i,c)}}var o=t.return;try{em(t)}catch(c){It(t,o,c)}break;case 5:var a=t.return;try{em(t)}catch(c){It(t,a,c)}}}catch(c){It(t,t.return,c)}if(t===e){Ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ae=l;break}Ae=t.return}}var RP=Math.ceil,kf=Oi.ReactCurrentDispatcher,rm=Oi.ReactCurrentOwner,Er=Oi.ReactCurrentBatchConfig,et=0,tn=null,Vt=null,cn=0,er=0,Ea=yo(0),Yt=0,hl=null,cs=0,Pf=0,im=0,pl=null,$n=null,om=0,Da=1/0,Ni=null,Rf=!1,sm=null,Do=null,Tf=!1,xo=null,If=0,gl=0,am=null,Nf=-1,Lf=0;function On(){return et&6?jt():Nf!==-1?Nf:Nf=jt()}function Ao(e){return e.mode&1?et&2&&cn!==0?cn&-cn:mP.transition!==null?(Lf===0&&(Lf=Yb()),Lf):(e=at,e!==0||(e=window.event,e=e===void 0?16:o_(e.type)),e):1}function Gr(e,t,n,r){if(50<gl)throw gl=0,am=null,Error(pe(185));$u(e,n,r),(!(et&2)||e!==tn)&&(e===tn&&(!(et&2)&&(Pf|=n),Yt===4&&So(e,cn)),jn(e,r),n===1&&et===0&&!(t.mode&1)&&(Da=jt()+500,ff&&bo()))}function jn(e,t){var n=e.callbackNode;mk(e,t);var r=Vc(e,e===tn?cn:0);if(r===0)n!==null&&qb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qb(n),t===1)e.tag===0?gP(sE.bind(null,e)):W_(sE.bind(null,e)),fP(function(){!(et&6)&&bo()}),n=null;else{switch(Jb(r)){case 1:n=jg;break;case 4:n=Gb;break;case 16:n=zc;break;case 536870912:n=Qb;break;default:n=zc}n=pE(n,oE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oE(e,t){if(Nf=-1,Lf=0,et&6)throw Error(pe(327));var n=e.callbackNode;if(xa()&&e.callbackNode!==n)return null;var r=Vc(e,e===tn?cn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mf(e,r);else{t=r;var i=et;et|=2;var o=uE();(tn!==e||cn!==t)&&(Ni=null,Da=jt()+500,ds(e,t));do try{NP();break}catch(l){aE(e,l)}while(1);x0(),kf.current=o,et=i,Vt!==null?t=0:(tn=null,cn=0,t=Yt)}if(t!==0){if(t===2&&(i=zg(e),i!==0&&(r=i,t=um(e,i))),t===1)throw n=hl,ds(e,0),So(e,r),jn(e,jt()),n;if(t===6)So(e,r);else{if(i=e.current.alternate,!(r&30)&&!TP(i)&&(t=Mf(e,r),t===2&&(o=zg(e),o!==0&&(r=o,t=um(e,o))),t===1))throw n=hl,ds(e,0),So(e,r),jn(e,jt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(pe(345));case 2:hs(e,$n,Ni);break;case 3:if(So(e,r),(r&130023424)===r&&(t=om+500-jt(),10<t)){if(Vc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){On(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=p0(hs.bind(null,e,$n,Ni),t);break}hs(e,$n,Ni);break;case 4:if(So(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ur(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=jt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RP(r/1960))-r,10<r){e.timeoutHandle=p0(hs.bind(null,e,$n,Ni),r);break}hs(e,$n,Ni);break;case 5:hs(e,$n,Ni);break;default:throw Error(pe(329))}}}return jn(e,jt()),e.callbackNode===n?oE.bind(null,e):null}function um(e,t){var n=pl;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),e=Mf(e,t),e!==2&&(t=$n,$n=n,t!==null&&lm(t)),e}function lm(e){$n===null?$n=e:$n.push.apply($n,e)}function TP(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Hr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function So(e,t){for(t&=~im,t&=~Pf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ur(t),r=1<<n;e[n]=-1,t&=~r}}function sE(e){if(et&6)throw Error(pe(327));xa();var t=Vc(e,0);if(!(t&1))return jn(e,jt()),null;var n=Mf(e,t);if(e.tag!==0&&n===2){var r=zg(e);r!==0&&(t=r,n=um(e,r))}if(n===1)throw n=hl,ds(e,0),So(e,t),jn(e,jt()),n;if(n===6)throw Error(pe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hs(e,$n,Ni),jn(e,jt()),null}function cm(e,t){var n=et;et|=1;try{return e(t)}finally{et=n,et===0&&(Da=jt()+500,ff&&bo())}}function fs(e){xo!==null&&xo.tag===0&&!(et&6)&&xa();var t=et;et|=1;var n=Er.transition,r=at;try{if(Er.transition=null,at=1,e)return e()}finally{at=r,Er.transition=n,et=t,!(et&6)&&bo()}}function fm(){er=Ea.current,wt(Ea)}function ds(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cP(n)),Vt!==null)for(n=Vt.return;n!==null;){var r=n;switch(b0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&lf();break;case 3:ba(),wt(Nn),wt(vn),I0();break;case 5:R0(r);break;case 4:ba();break;case 13:wt(Ft);break;case 19:wt(Ft);break;case 10:A0(r.type._context);break;case 22:case 23:fm()}n=n.return}if(tn=e,Vt=e=Oo(e.current,null),cn=er=t,Yt=0,hl=null,im=Pf=cs=0,$n=pl=null,as!==null){for(t=0;t<as.length;t++)if(n=as[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}as=null}return e}function aE(e,t){do{var n=Vt;try{if(x0(),Cf.current=Af,Ef){for(var r=Bt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ef=!1}if(ls=0,en=Qt=Bt=null,al=!1,ul=0,rm.current=null,n===null||n.return===null){Yt=1,hl=t,Vt=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=cn,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,h=l,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var y=PC(a);if(y!==null){y.flags&=-257,RC(y,a,l,o,t),y.mode&1&&kC(o,f,t),t=y,c=f;var v=t.updateQueue;if(v===null){var p=new Set;p.add(c),t.updateQueue=p}else v.add(c);break e}else{if(!(t&1)){kC(o,f,t),dm();break e}c=Error(pe(426))}}else if(Et&&l.mode&1){var E=PC(a);if(E!==null){!(E.flags&65536)&&(E.flags|=256),RC(E,a,l,o,t),E0(_a(c,l));break e}}o=c=_a(c,l),Yt!==4&&(Yt=2),pl===null?pl=[o]:pl.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=FC(o,c,t);X_(o,_);break e;case 1:l=c;var b=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Do===null||!Do.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=BC(o,l,t);X_(o,O);break e}}o=o.return}while(o!==null)}cE(n)}catch(B){t=B,Vt===n&&n!==null&&(Vt=n=n.return);continue}break}while(1)}function uE(){var e=kf.current;return kf.current=Af,e===null?Af:e}function dm(){(Yt===0||Yt===3||Yt===2)&&(Yt=4),tn===null||!(cs&268435455)&&!(Pf&268435455)||So(tn,cn)}function Mf(e,t){var n=et;et|=2;var r=uE();(tn!==e||cn!==t)&&(Ni=null,ds(e,t));do try{IP();break}catch(i){aE(e,i)}while(1);if(x0(),et=n,kf.current=r,Vt!==null)throw Error(pe(261));return tn=null,cn=0,Yt}function IP(){for(;Vt!==null;)lE(Vt)}function NP(){for(;Vt!==null&&!ak();)lE(Vt)}function lE(e){var t=hE(e.alternate,e,er);e.memoizedProps=e.pendingProps,t===null?cE(e):Vt=t,rm.current=null}function cE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FP(n,t),n!==null){n.flags&=32767,Vt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yt=6,Vt=null;return}}else if(n=OP(n,t,er),n!==null){Vt=n;return}if(t=t.sibling,t!==null){Vt=t;return}Vt=t=e}while(t!==null);Yt===0&&(Yt=5)}function hs(e,t,n){var r=at,i=Er.transition;try{Er.transition=null,at=1,LP(e,t,n,r)}finally{Er.transition=i,at=r}return null}function LP(e,t,n,r){do xa();while(xo!==null);if(et&6)throw Error(pe(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(pe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(vk(e,o),e===tn&&(Vt=tn=null,cn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tf||(Tf=!0,pE(zc,function(){return xa(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Er.transition,Er.transition=null;var a=at;at=1;var l=et;et|=4,rm.current=null,kP(e,n),eE(n,e),rP(d0),Gc=!!f0,d0=f0=null,e.current=n,PP(n),uk(),et=l,at=a,Er.transition=o}else e.current=n;if(Tf&&(Tf=!1,xo=e,If=i),o=e.pendingLanes,o===0&&(Do=null),fk(n.stateNode),jn(e,jt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Rf)throw Rf=!1,e=sm,sm=null,e;return If&1&&e.tag!==0&&xa(),o=e.pendingLanes,o&1?e===am?gl++:(gl=0,am=e):gl=0,bo(),null}function xa(){if(xo!==null){var e=Jb(If),t=Er.transition,n=at;try{if(Er.transition=null,at=16>e?16:e,xo===null)var r=!1;else{if(e=xo,xo=null,If=0,et&6)throw Error(pe(331));var i=et;for(et|=4,Ae=e.current;Ae!==null;){var o=Ae,a=o.child;if(Ae.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var f=l[c];for(Ae=f;Ae!==null;){var h=Ae;switch(h.tag){case 0:case 11:case 15:dl(8,h,o)}var g=h.child;if(g!==null)g.return=h,Ae=g;else for(;Ae!==null;){h=Ae;var m=h.sibling,y=h.return;if(QC(h),h===f){Ae=null;break}if(m!==null){m.return=y,Ae=m;break}Ae=y}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var E=p.sibling;p.sibling=null,p=E}while(p!==null)}}Ae=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Ae=a;else e:for(;Ae!==null;){if(o=Ae,o.flags&2048)switch(o.tag){case 0:case 11:case 15:dl(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Ae=_;break e}Ae=o.return}}var b=e.current;for(Ae=b;Ae!==null;){a=Ae;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,Ae=x;else e:for(a=b;Ae!==null;){if(l=Ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Bf(9,l)}}catch(B){It(l,l.return,B)}if(l===a){Ae=null;break e}var O=l.sibling;if(O!==null){O.return=l.return,Ae=O;break e}Ae=l.return}}if(et=i,bo(),ii&&typeof ii.onPostCommitFiberRoot=="function")try{ii.onPostCommitFiberRoot(Uc,e)}catch{}r=!0}return r}finally{at=n,Er.transition=t}}return!1}function fE(e,t,n){t=_a(n,t),t=FC(e,t,1),e=Co(e,t,1),t=On(),e!==null&&($u(e,1,t),jn(e,t))}function It(e,t,n){if(e.tag===3)fE(e,e,n);else for(;t!==null;){if(t.tag===3){fE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Do===null||!Do.has(r))){e=_a(n,e),e=BC(t,e,1),t=Co(t,e,1),e=On(),t!==null&&($u(t,1,e),jn(t,e));break}}t=t.return}}function MP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=On(),e.pingedLanes|=e.suspendedLanes&n,tn===e&&(cn&n)===n&&(Yt===4||Yt===3&&(cn&130023424)===cn&&500>jt()-om?ds(e,0):im|=n),jn(e,t)}function dE(e,t){t===0&&(e.mode&1?(t=Wc,Wc<<=1,!(Wc&130023424)&&(Wc=4194304)):t=1);var n=On();e=Ri(e,t),e!==null&&($u(e,t,n),jn(e,n))}function $P(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dE(e,n)}function jP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(pe(314))}r!==null&&r.delete(t),dE(e,n)}var hE;hE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nn.current)Mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mn=!1,SP(e,t,n);Mn=!!(e.flags&131072)}else Mn=!1,Et&&t.flags&1048576&&V_(t,hf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Of(e,t),e=t.pendingProps;var i=ha(t,vn.current);ya(t,n),i=M0(null,t,r,e,i,n);var o=$0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ln(r)?(o=!0,cf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,F0(t),i.updater=wf,t.stateNode=i,i._reactInternals=t,k0(t,r,e,n),t=q0(null,t,r,!0,o,n)):(t.tag=0,Et&&o&&w0(t),Sn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Of(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=UP(r),e=Vr(r,e),i){case 0:t=K0(null,t,r,e,n);break e;case 1:t=$C(null,t,r,e,n);break e;case 11:t=TC(null,t,r,e,n);break e;case 14:t=IC(null,t,r,Vr(r.type,e),n);break e}throw Error(pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),K0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),$C(e,t,r,i,n);case 3:e:{if(jC(t),e===null)throw Error(pe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,J_(e,t),yf(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=_a(Error(pe(423)),t),t=zC(e,t,r,n,i);break e}else if(r!==i){i=_a(Error(pe(424)),t),t=zC(e,t,r,n,i);break e}else for(Zn=vo(t.stateNode.containerInfo.firstChild),Xn=t,Et=!0,Wr=null,n=sC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ma(),r===i){t=Ii(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return aC(t),e===null&&C0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,h0(r,i)?a=null:o!==null&&h0(r,o)&&(t.flags|=32),MC(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&C0(t),null;case 13:return UC(e,t,n);case 4:return P0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wa(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),TC(e,t,r,i,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,gt(gf,r._currentValue),r._currentValue=a,o!==null)if(Hr(o.value,a)){if(o.children===i.children&&!Nn.current){t=Ii(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Ti(-1,n&-n),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?c.next=c:(c.next=h.next,h.next=c),f.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),S0(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(pe(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),S0(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Sn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ya(t,n),i=_r(i),r=r(i),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,i=Vr(r,t.pendingProps),i=Vr(r.type,i),IC(e,t,r,i,n);case 15:return NC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),Of(e,t),t.tag=1,Ln(r)?(e=!0,cf(t)):e=!1,ya(t,n),nC(t,r,i),k0(t,r,i,n),q0(null,t,r,!0,e,n);case 19:return WC(e,t,n);case 22:return LC(e,t,n)}throw Error(pe(156,t.tag))};function pE(e,t){return Kb(e,t)}function zP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(e,t,n,r){return new zP(e,t,n,r)}function hm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function UP(e){if(typeof e=="function")return hm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wg)return 11;if(e===Cg)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Dr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $f(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")hm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ea:return ps(n.children,i,o,t);case vg:a=8,i|=8;break;case yg:return e=Dr(12,n,t,i|2),e.elementType=yg,e.lanes=o,e;case bg:return e=Dr(13,n,t,i),e.elementType=bg,e.lanes=o,e;case _g:return e=Dr(19,n,t,i),e.elementType=_g,e.lanes=o,e;case Cb:return jf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bb:a=10;break e;case _b:a=9;break e;case wg:a=11;break e;case Cg:a=14;break e;case uo:a=16,r=null;break e}throw Error(pe(130,e==null?e:typeof e,""))}return t=Dr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ps(e,t,n,r){return e=Dr(7,e,r,t),e.lanes=n,e}function jf(e,t,n,r){return e=Dr(22,e,r,t),e.elementType=Cb,e.lanes=n,e.stateNode={isHidden:!1},e}function pm(e,t,n){return e=Dr(6,e,null,t),e.lanes=n,e}function gm(e,t,n){return t=Dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HP(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ug(0),this.expirationTimes=Ug(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ug(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mm(e,t,n,r,i,o,a,l,c){return e=new HP(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},F0(o),e}function WP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gE(e){if(!e)return wo;e=e._reactInternals;e:{if(ns(e)!==e||e.tag!==1)throw Error(pe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ln(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(pe(171))}if(e.tag===1){var n=e.type;if(Ln(n))return U_(e,n,t)}return t}function mE(e,t,n,r,i,o,a,l,c){return e=mm(n,r,!0,e,i,o,a,l,c),e.context=gE(null),n=e.current,r=On(),i=Ao(n),o=Ti(r,i),o.callback=t??null,Co(n,o,i),e.current.lanes=i,$u(e,i,r),jn(e,r),e}function zf(e,t,n,r){var i=t.current,o=On(),a=Ao(i);return n=gE(n),t.context===null?t.context=n:t.pendingContext=n,t=Ti(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Co(i,t,a),e!==null&&(Gr(e,i,a,o),vf(e,i,a)),a}function Uf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vm(e,t){vE(e,t),(e=e.alternate)&&vE(e,t)}function VP(){return null}var yE=typeof reportError=="function"?reportError:function(e){console.error(e)};function ym(e){this._internalRoot=e}Hf.prototype.render=ym.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(pe(409));zf(e,t,null,null)},Hf.prototype.unmount=ym.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fs(function(){zf(null,e,null,null)}),t[Fi]=null}};function Hf(e){this._internalRoot=e}Hf.prototype.unstable_scheduleHydration=function(e){if(e){var t=e_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<po.length&&t!==0&&t<po[n].priority;n++);po.splice(n,0,e),n===0&&r_(e)}};function wm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wE(){}function KP(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=Uf(a);o.call(f)}}var a=mE(t,r,e,0,null,!1,!1,"",wE);return e._reactRootContainer=a,e[Fi]=a.current,Zu(e.nodeType===8?e.parentNode:e),fs(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Uf(c);l.call(f)}}var c=mm(e,0,!1,null,null,!1,!1,"",wE);return e._reactRootContainer=c,e[Fi]=c.current,Zu(e.nodeType===8?e.parentNode:e),fs(function(){zf(t,c,n,r)}),c}function Vf(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var c=Uf(a);l.call(c)}}zf(t,a,e,i)}else a=KP(n,t,e,i,r);return Uf(a)}Xb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mu(t.pendingLanes);n!==0&&(Hg(t,n|1),jn(t,jt()),!(et&6)&&(Da=jt()+500,bo()))}break;case 13:fs(function(){var r=Ri(e,1);if(r!==null){var i=On();Gr(r,e,1,i)}}),vm(e,1)}},Wg=function(e){if(e.tag===13){var t=Ri(e,134217728);if(t!==null){var n=On();Gr(t,e,134217728,n)}vm(e,134217728)}},Zb=function(e){if(e.tag===13){var t=Ao(e),n=Ri(e,t);if(n!==null){var r=On();Gr(n,e,t,r)}vm(e,t)}},e_=function(){return at},t_=function(e,t){var n=at;try{return at=e,t()}finally{at=n}},Ng=function(e,t,n){switch(t){case"input":if(Og(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=uf(r);if(!i)throw Error(pe(90));xb(r),Og(r,i)}}}break;case"textarea":Bb(e,n);break;case"select":t=n.value,t!=null&&ta(e,!!n.multiple,t,!1)}},$b=cm,jb=fs;var qP={usingClientEntryPoint:!1,Events:[nl,fa,uf,Lb,Mb,cm]},ml={findFiberByHostInstance:rs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},GP={bundleType:ml.bundleType,version:ml.version,rendererPackageName:ml.rendererPackageName,rendererConfig:ml.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Oi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wb(e),e===null?null:e.stateNode},findFiberByHostInstance:ml.findFiberByHostInstance||VP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kf.isDisabled&&Kf.supportsFiber)try{Uc=Kf.inject(GP),ii=Kf}catch{}}Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qP,Qn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wm(t))throw Error(pe(200));return WP(e,t,null,n)},Qn.createRoot=function(e,t){if(!wm(e))throw Error(pe(299));var n=!1,r="",i=yE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mm(e,1,!1,null,null,n,!1,r,i),e[Fi]=t.current,Zu(e.nodeType===8?e.parentNode:e),new ym(t)},Qn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(pe(188)):(e=Object.keys(e).join(","),Error(pe(268,e)));return e=Wb(t),e=e===null?null:e.stateNode,e},Qn.flushSync=function(e){return fs(e)},Qn.hydrate=function(e,t,n){if(!Wf(t))throw Error(pe(200));return Vf(null,e,t,!0,n)},Qn.hydrateRoot=function(e,t,n){if(!wm(e))throw Error(pe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=yE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=mE(t,null,e,1,n??null,i,!1,o,a),e[Fi]=t.current,Zu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Hf(t)},Qn.render=function(e,t,n){if(!Wf(t))throw Error(pe(200));return Vf(null,e,t,!1,n)},Qn.unmountComponentAtNode=function(e){if(!Wf(e))throw Error(pe(40));return e._reactRootContainer?(fs(function(){Vf(null,null,e,!1,function(){e._reactRootContainer=null,e[Fi]=null})}),!0):!1},Qn.unstable_batchedUpdates=cm,Qn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wf(n))throw Error(pe(200));if(e==null||e._reactInternals===void 0)throw Error(pe(38));return Vf(e,t,n,!1,r)},Qn.version="18.2.0-next-9e3b772b8-20220608";function bE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bE)}catch(e){console.error(e)}}bE(),hb.exports=Qn;var qf=hb.exports;const QP=vr(qf);var _E={exports:{}},CE={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Aa=D;function YP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var JP=typeof Object.is=="function"?Object.is:YP,XP=Aa.useState,ZP=Aa.useEffect,eR=Aa.useLayoutEffect,tR=Aa.useDebugValue;function nR(e,t){var n=t(),r=XP({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return eR(function(){i.value=n,i.getSnapshot=t,bm(i)&&o({inst:i})},[e,n,t]),ZP(function(){return bm(i)&&o({inst:i}),e(function(){bm(i)&&o({inst:i})})},[e]),tR(n),n}function bm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!JP(e,n)}catch{return!0}}function rR(e,t){return t()}var iR=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rR:nR;CE.useSyncExternalStore=Aa.useSyncExternalStore!==void 0?Aa.useSyncExternalStore:iR,_E.exports=CE;var EE=_E.exports;const DE=EE.useSyncExternalStore,xE=D.createContext(void 0),AE=D.createContext(!1);function SE(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=xE),window.ReactQueryClientContext):xE)}const _m=({context:e}={})=>{const t=D.useContext(SE(e,D.useContext(AE)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OE=({client:e,children:t,context:n,contextSharing:r=!1})=>{D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=SE(n,r);return D.createElement(AE.Provider,{value:!n&&r},D.createElement(i.Provider,{value:e},t))},FE=D.createContext(!1),oR=()=>D.useContext(FE);FE.Provider;function sR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const aR=D.createContext(sR()),uR=()=>D.useContext(aR);function BE(e,t){return typeof e=="function"?e(...t):!!e}const lR=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},cR=e=>{D.useEffect(()=>{e.clearReset()},[e])},fR=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&BE(n,[e.error,r]),dR=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},hR=(e,t)=>e.isLoading&&e.isFetching&&!t,pR=(e,t,n)=>(e==null?void 0:e.suspense)&&hR(t,n),gR=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function kE(e,t){const n=_m({context:e.context}),r=oR(),i=uR(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=Tt.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Tt.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Tt.batchCalls(o.onSettled)),dR(o),lR(o,i),cR(i);const[a]=D.useState(()=>new t(n,o)),l=a.getOptimisticResult(o);if(DE(D.useCallback(c=>{const f=r?()=>{}:a.subscribe(Tt.batchCalls(c));return a.updateResult(),f},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),D.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),pR(o,l,r))throw gR(o,a,i);if(fR({result:l,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function mR(e,t,n){const r=Js(e,t,n);return kE(r,cb)}function vR(e,t,n){const r=F4(e,t,n),i=_m({context:r.context}),[o]=D.useState(()=>new V4(i,r));D.useEffect(()=>{o.setOptions(r)},[o,r]);const a=DE(D.useCallback(c=>o.subscribe(Tt.batchCalls(c)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=D.useCallback((c,f)=>{o.mutate(c,f).catch(yR)},[o]);if(a.error&&BE(o.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function yR(){}function PE(e,t,n){const r=Js(e,t,n);return kE(r,W4)}var Cm,RE=qf;Cm=RE.createRoot,RE.hydrateRoot;const wR=function(){return null},bR=D.lazy(()=>s4(()=>Promise.resolve().then(()=>xee),void 0,document.currentScript&&document.currentScript.src||new URL("embedv2.js",document.baseURI).href)),_R=new U4,Em="embed_v2-root",TE=()=>Cm(document.getElementById(Em)).render(Ve(D.StrictMode,{children:[!1,Ve(OE,{client:_R,children:[W(bR,{}),W(wR,{})]})]}));if(document.getElementById(Em))TE();else{const e=new MutationObserver(()=>{document.getElementById(Em)&&(e.disconnect(),TE())});e.observe(document.body,{childList:!0,subtree:!0})}const CR="sessionId";var Li=(e=>(e.ARROW_UP="ArrowUp",e.ARROW_DOWN="ArrowDown",e.ENTER="Enter",e.ESCAPE="Escape",e.TAB="Tab",e))(Li||{}),tt=(e=>(e.IMAGE="1",e.IMAGE_UPLOAD="2",e.YOUTUBE_VIDEO="3",e.WEBPAGE="4",e.TWITTER_STATUS="5",e.FACEBOOK_PAGE="6",e.FACEBOOK_POST="7",e.FACEBOOK_PHOTO="8",e.FACEBOOK_VIDEO="9",e.SOUNDCLOUD_SOUND="10",e.GOOGLE_MAP="11",e.VIMEO_VIDEO="12",e.VINE_VIDEO="14",e.GIF_VIDEO="15",e.MP4_VIDEO="16",e))(tt||{}),IE=(e=>(e.INVALID_IMAGE_FILE="invalid-image-file",e.INVALID_CONTENT_TYPE="invalid-content-type",e.FILE_TOO_LARGE="file-too-large",e.NOT_AUTHENTICATED="not-authenticated",e))(IE||{});const ER=["8","2","1","16","15","9","11","12","3","10","5"],NE="disqus",DR=((SF=window.embedv2)==null?void 0:SF.TLDS)||"zw|zuerich|zone|zm|zip|za|yt|youtube|yokohama|yoga|yodobashi|ye|yandex|yachts|xyz|xxx|xin|xerox|wtf|wtc|ws|world|works|work|wme|win|williamhill|wiki|wien|whoswho|wf|weir|wedding|wed|website|webcam|watch|wang|wales|vu|voyage|voto|voting|vote|vodka|vn|vlaanderen|vision|villas|video|viajes|vi|vg|vet|versicherung|ventures|vegas|ve|vc|vacations|va|uz|uy|us|uol|uno|university|uk|ug|ua|tz|tw|tv|tui|tt|trust|travel|training|trading|trade|tr|toys|town|tours|toshiba|toray|top|tools|tokyo|today|to|tn|tm|tl|tk|tj|tirol|tires|tips|tienda|tickets|theater|th|tg|tf|tennis|temasek|tel|technology|tech|team|td|tc|taxi|tax|tattoo|tatar|taipei|sz|systems|sydney|sy|sx|swiss|sv|suzuki|surgery|surf|support|supply|supplies|sucks|su|style|study|st|sr|spreadbetting|spiegel|space|soy|sony|solutions|solar|sohu|software|social|so|sn|sm|sl|sky|sk|sj|site|singles|si|shriram|show|shoes|shiksha|sh|sg|sexy|sex|sew|services|sener|seat|se|sd|scot|science|schwarz|schule|school|scholarships|schmidt|scb|sca|sc|sb|saxo|sarl|sap|samsung|sale|saarland|sa|ryukyu|rw|run|ruhr|ru|rsvp|rs|rodeo|rocks|ro|rip|rio|rich|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reit|reisen|reise|rehab|redstone|red|recipes|realtor|re|racing|quebec|qpon|qa|py|pw|pub|pt|ps|property|properties|prof|productions|prod|pro|press|praxi|pr|post|porn|poker|pohl|pn|pm|plus|plumbing|place|pl|pk|pizza|pink|pictures|pictet|pics|piaget|physio|photos|photography|photo|philips|pharmacy|ph|pg|pf|pe|party|parts|partners|paris|panerai|page|pa|ovh|otsuka|osaka|organic|org|oracle|ooo|online|onl|ong|one|om|okinawa|nz|nyc|nu|ntt|nrw|nra|nr|np|no|nl|nissan|ninja|nico|ni|nhk|ngo|ng|nf|nexus|news|new|neustar|network|net|nec|ne|nc|navy|name|nagoya|nadex|na|mz|my|mx|mw|mv|museum|mu|mtpc|mtn|mt|ms|mr|mq|mp|movie|mov|motorcycles|moscow|mortgage|mormon|money|monash|moe|moda|mobi|mo|mn|mma|mm|ml|mk|mini|mil|miami|mh|mg|menu|memorial|meme|melbourne|meet|media|me|md|mc|marriott|markets|marketing|market|mango|management|maison|maif|madrid|ma|ly|lv|luxury|luxe|lu|ltda|lt|ls|lr|love|lotto|lotte|london|lol|loans|loan|lk|link|limo|limited|lighting|life|lidl|liaison|li|lgbt|legal|leclerc|lease|lds|lc|lb|lawyer|latrobe|lat|land|lacaixa|la|kz|kyoto|ky|kw|kred|krd|kr|kp|komatsu|koeln|kn|km|kiwi|kitchen|kim|ki|kh|kg|ke|kddi|kaufen|juegos|jp|joburg|jobs|jo|jm|jewelry|jetzt|je|jcb|java|iwc|it|is|irish|ir|iq|io|investments|international|int|insure|institute|ink|ing|info|infiniti|industries|in|immobilien|immo|im|il|ifm|ie|id|icu|ibm|hu|ht|hr|how|house|hosting|host|horse|honda|homes|holiday|holdings|hockey|hn|hm|hk|hiv|hitachi|hiphop|hermes|here|help|healthcare|haus|hangout|hamburg|gy|gw|guru|guitars|guide|guge|gu|gt|gs|gripe|green|gratis|graphics|gr|gq|gp|gov|gop|google|goog|goo|golf|goldpoint|gold|gn|gmx|gmo|gmail|gm|globo|global|gle|glass|gl|gives|gifts|gift|gi|gh|ggee|gg|gf|gent|ge|gdn|gd|gbiz|gb|garden|gallery|gal|ga|futbol|furniture|fund|frogans|frl|fr|foundation|forsale|forex|football|foo|fo|fm|fly|flsmidth|flowers|florist|flights|fk|fj|fitness|fit|fishing|fish|firmdale|financial|finance|film|fi|feedback|fashion|farm|fans|fan|faith|fail|express|exposed|expert|exchange|everbank|events|eus|eurovision|eu|et|estate|esq|es|erni|er|equipment|epson|enterprises|engineering|engineer|energy|emerck|email|eg|ee|education|edu|ec|eat|dz|dvag|durban|download|doosan|domains|doha|dog|docs|do|dnp|dm|dk|dj|discount|directory|direct|digital|diet|diamonds|dev|design|desi|dentist|dental|democrat|delivery|degree|deals|de|dclk|day|datsun|dating|date|dance|dad|dabur|cz|cyou|cymru|cy|cx|cw|cv|cuisinella|cu|cruises|crs|cricket|creditcard|credit|cr|courses|country|coop|cool|cooking|contractors|consulting|construction|condos|computer|company|community|com|cologne|college|coffee|codes|coach|co|cn|cm|club|clothing|clinic|click|cleaning|claims|cl|ck|city|citic|ci|church|chrome|christmas|chloe|cheap|chat|channel|ch|cg|cfd|cfa|cf|cern|ceo|center|cd|cc|cbn|catering|cat|casino|cash|casa|cartier|cars|careers|career|care|cards|caravan|capital|capetown|canon|cancerresearch|camp|camera|cal|cafe|cab|ca|bzh|bz|by|bw|bv|buzz|business|builders|build|budapest|bt|bs|brussels|brother|broker|bridgestone|br|boutique|boo|bond|boats|bo|bnpparibas|bn|bmw|bm|blue|bloomberg|blackfriday|black|bj|biz|bio|bingo|bike|bid|bi|bh|bg|bf|best|berlin|beer|be|bd|bbc|bb|bayern|bauhaus|bargains|barclays|barclaycard|bar|bank|band|ba|az|axa|ax|aw|autos|auto|audio|auction|au|attorney|at|associates|asia|as|arpa|army|archi|ar|aquarelle|aq|apartments|ao|android|an|amsterdam|am|alsace|allfinanz|al|airforce|aig|ai|agency|ag|afl|af|aero|ae|adult|ads|ad|actor|active|accountants|accountant|accenture|academy|ac|abogado|abbott|abb",xR=/^[\w-]+:\/{0,3}/,LE=/([.,]+)$/g,AR=new RegExp("([^@.]|^)\\b(?:\\w[\\w-]*:/{0,3}(?:(?:\\w+:)?\\w+@)?)?([\\w-]+\\.)+(?:"+DR+')(?!\\.\\w)\\b(?::\\d+)?(?:[/?][^\\s\\{\\}\\|\\\\\\^\\[\\]`<>"\\x80-\\xFF\\x00-\\x1F\\x7F]*)?',"g"),SR=()=>{const e=window.screen;return e&&e.availWidth?e.availWidth*e.availHeight+e.colorDepth:e&&e.width?e.width*e.height:1},Dm=()=>{try{const e=new Date().getTimezoneOffset(),t=SR(),n=window.document.documentElement,r=n.clientWidth*n.clientHeight;return Math.abs(e*17+t*25-r)}catch{return 1}},OR=e=>e.isPersistent?e.value:String(Dm()),FR={calculate:e=>{let t=0;if(e.length===0)return t;for(let n=0,r=e.length;n<r;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t|=0}return t}},ME=(e,t)=>{const r=Math.abs(FR.calculate(e));if(t){const i=Math.pow(10,t);return r%(100*i)/i}return r%100};/*! js-cookie v3.0.5 | MIT */function Gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var BR={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function xm(e,t){function n(i,o,a){if(!(typeof document>"u")){a=Gf({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var c=o[l].split("="),f=c.slice(1).join("=");try{var h=decodeURIComponent(c[0]);if(a[h]=e.read(f,h),i===h)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Gf({},o,{expires:-1}))},withAttributes:function(i){return xm(this.converter,Gf({},this.attributes,i))},withConverter:function(i){return xm(Gf({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Qf=xm(BR,{path:"/"});const kR=()=>{try{const e=new Uint32Array(1);return crypto.getRandomValues(e),e[0]}catch{return Math.floor(Math.random()*1e9)}},PR=()=>{const e=window.performance,t=e&&e.timing;if(!t)return 1e5;const n=t.domainLookupEnd-t.domainLookupStart,r=t.connectEnd-t.connectStart,i=t.responseStart-t.navigationStart;return n*11+r*13+i*17};function RR(){const e=Number(new Date().getTime().toString().substring(3));return Math.abs(e+PR()-Dm()).toString(32)+kR().toString(32)}const TR={generate:RR};class IR{constructor(t={}){qs(this,"storageKey","disqus_unique");qs(this,"domain",window.location.host.split(":")[0]);qs(this,"isPrivate",!0);qs(this,"TTL",365*24*60*60*1e3);qs(this,"value");this.init(t)}init({isPrivate:t=!0}={}){if(this.isPrivate=t,this.isPrivate){Qf.remove(this.storageKey,{domain:this.domain}),tr.removeItem(this.storageKey);return}this.value=Qf.get(this.storageKey)||tr.getItem(this.storageKey)||TR.generate(),Qf.set(this.storageKey,this.value,{domain:this.domain,expires:this.TTL}),tr.setItem(this.storageKey,this.value)}get isPersistent(){const t=Qf.get(this.storageKey)||tr.getItem(this.storageKey);return!this.isPrivate&&t===this.value}}const $E={initialized:!1,unique:{},init(e){if(!(this.initialized&&!(e!=null&&e.force)))return this.unique=new IR(e),this.initialized=!0,this},getPercentBucketForString:ME,get clientPercent(){return ME(this.clientId??this.fingerprint)},get fingerprint(){return String(Dm())},get clientId(){return OR(this.unique)}},NR=e=>{const t={},n=[];return e.forEach(r=>t[r.id]={...r,children:[]}),e.forEach(r=>{var i,o;r.parent?(o=(i=t[r.parent])==null?void 0:i.children)==null||o.push(t[r.id]):n.push(t[r.id])}),n},LR=(e,t)=>{let n;return(...r)=>{n&&window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}};class jE extends Error{constructor(n,r){super(r);qs(this,"code");this.code=n}}const Sa=e=>{const t=window.document.getElementById("disqus-"+e);try{return t&&JSON.parse(t.textContent||t.innerHTML)}catch{return null}},Oa={data:{},getItem(e){return e&&Object.prototype.hasOwnProperty.call(Oa,e)?Oa.data[e]:null},setItem(e,t){Oa.data[e]=t},removeItem(e){delete Oa.data[e]},clear(){Oa.data={}}};function zE(e,t){return function(){return e.apply(t,arguments)}}const{toString:MR}=Object.prototype,{getPrototypeOf:Am}=Object,Yf=(e=>t=>{const n=MR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),li=e=>(e=e.toLowerCase(),t=>Yf(t)===e),Jf=e=>t=>typeof t===e,{isArray:Fa}=Array,vl=Jf("undefined");function $R(e){return e!==null&&!vl(e)&&e.constructor!==null&&!vl(e.constructor)&&xr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UE=li("ArrayBuffer");function jR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UE(e.buffer),t}const zR=Jf("string"),xr=Jf("function"),HE=Jf("number"),Xf=e=>e!==null&&typeof e=="object",UR=e=>e===!0||e===!1,Zf=e=>{if(Yf(e)!=="object")return!1;const t=Am(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HR=li("Date"),WR=li("File"),VR=li("Blob"),KR=li("FileList"),qR=e=>Xf(e)&&xr(e.pipe),GR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xr(e.append)&&((t=Yf(e))==="formdata"||t==="object"&&xr(e.toString)&&e.toString()==="[object FormData]"))},QR=li("URLSearchParams"),YR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fa(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(r=0;r<a;r++)l=o[r],t.call(null,e[l],l,e)}}function WE(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const VE=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),KE=e=>!vl(e)&&e!==VE;function Sm(){const{caseless:e}=KE(this)&&this||{},t={},n=(r,i)=>{const o=e&&WE(t,i)||i;Zf(t[o])&&Zf(r)?t[o]=Sm(t[o],r):Zf(r)?t[o]=Sm({},r):Fa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&yl(arguments[r],n);return t}const JR=(e,t,n,{allOwnKeys:r}={})=>(yl(t,(i,o)=>{n&&xr(i)?e[o]=zE(i,n):e[o]=i},{allOwnKeys:r}),e),XR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},eT=(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Am(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nT=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!HE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Am(Uint8Array)),iT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},oT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sT=li("HTMLFormElement"),aT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),uT=li("RegExp"),GE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yl(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},lT=e=>{GE(e,(t,n)=>{if(xr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(xr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cT=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Fa(e)?r(e):r(String(e).split(t)),n},fT=()=>{},dT=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Om="abcdefghijklmnopqrstuvwxyz",QE="0123456789",YE={DIGIT:QE,ALPHA:Om,ALPHA_DIGIT:Om+Om.toUpperCase()+QE},hT=(e=16,t=YE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pT(e){return!!(e&&xr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const gT=e=>{const t=new Array(10),n=(r,i)=>{if(Xf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Fa(r)?[]:{};return yl(r,(a,l)=>{const c=n(a,i+1);!vl(c)&&(o[l]=c)}),t[i]=void 0,o}}return r};return n(e,0)},mT=li("AsyncFunction"),oe={isArray:Fa,isArrayBuffer:UE,isBuffer:$R,isFormData:GR,isArrayBufferView:jR,isString:zR,isNumber:HE,isBoolean:UR,isObject:Xf,isPlainObject:Zf,isUndefined:vl,isDate:HR,isFile:WR,isBlob:VR,isRegExp:uT,isFunction:xr,isStream:qR,isURLSearchParams:QR,isTypedArray:rT,isFileList:KR,forEach:yl,merge:Sm,extend:JR,trim:YR,stripBOM:XR,inherits:ZR,toFlatObject:eT,kindOf:Yf,kindOfTest:li,endsWith:tT,toArray:nT,forEachEntry:iT,matchAll:oT,isHTMLForm:sT,hasOwnProperty:qE,hasOwnProp:qE,reduceDescriptors:GE,freezeMethods:lT,toObjectSet:cT,toCamelCase:aT,noop:fT,toFiniteNumber:dT,findKey:WE,global:VE,isContextDefined:KE,ALPHABET:YE,generateString:hT,isSpecCompliantForm:pT,toJSONObject:gT,isAsyncFn:mT,isThenable:e=>e&&(Xf(e)||xr(e))&&xr(e.then)&&xr(e.catch)};function nt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}oe.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const JE=nt.prototype,XE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{XE[e]={value:e}}),Object.defineProperties(nt,XE),Object.defineProperty(JE,"isAxiosError",{value:!0}),nt.from=(e,t,n,r,i,o)=>{const a=Object.create(JE);return oe.toFlatObject(e,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),nt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const vT=null;function Fm(e){return oe.isPlainObject(e)||oe.isArray(e)}function ZE(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function eD(e,t,n){return e?e.concat(t).map(function(i,o){return i=ZE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function yT(e){return oe.isArray(e)&&!e.some(Fm)}const wT=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function ed(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,E){return!oe.isUndefined(E[p])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(oe.isDate(v))return v.toISOString();if(!c&&oe.isBlob(v))throw new nt("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(v)||oe.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function h(v,p,E){let _=v;if(v&&!E&&typeof v=="object"){if(oe.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(oe.isArray(v)&&yT(v)||(oe.isFileList(v)||oe.endsWith(p,"[]"))&&(_=oe.toArray(v)))return p=ZE(p),_.forEach(function(x,O){!(oe.isUndefined(x)||x===null)&&t.append(a===!0?eD([p],O,o):a===null?p:p+"[]",f(x))}),!1}return Fm(v)?!0:(t.append(eD(E,p,o),f(v)),!1)}const g=[],m=Object.assign(wT,{defaultVisitor:h,convertValue:f,isVisitable:Fm});function y(v,p){if(!oe.isUndefined(v)){if(g.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));g.push(v),oe.forEach(v,function(_,b){(!(oe.isUndefined(_)||_===null)&&i.call(t,_,oe.isString(b)?b.trim():b,p,m))===!0&&y(_,p?p.concat(b):[b])}),g.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bm(e,t){this._pairs=[],e&&ed(e,this,t)}const nD=Bm.prototype;nD.append=function(t,n){this._pairs.push([t,n])},nD.toString=function(t){const n=t?function(r){return t.call(this,r,tD)}:tD;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function bT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rD(e,t,n){if(!t)return e;const r=n&&n.encode||bT,i=n&&n.serialize;let o;if(i?o=i(t,n):o=oe.isURLSearchParams(t)?t.toString():new Bm(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _T{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const iD=_T,oD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CT=typeof URLSearchParams<"u"?URLSearchParams:Bm,ET=typeof FormData<"u"?FormData:null,DT=typeof Blob<"u"?Blob:null,xT=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),AT=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ci={isBrowser:!0,classes:{URLSearchParams:CT,FormData:ET,Blob:DT},isStandardBrowserEnv:xT,isStandardBrowserWebWorkerEnv:AT,protocols:["http","https","file","blob","url","data"]};function ST(e,t){return ed(e,new ci.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ci.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function OT(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FT(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function sD(e){function t(n,r,i,o){let a=n[o++];const l=Number.isFinite(+a),c=o>=n.length;return a=!a&&oe.isArray(i)?i.length:a,c?(oe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&oe.isArray(i[a])&&(i[a]=FT(i[a])),!l)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(OT(r),i,n,0)}),n}return null}const BT={"Content-Type":void 0};function kT(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const td={transitional:oD,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=oe.isObject(t);if(o&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i&&i?JSON.stringify(sD(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ST(t,this.formSerializer).toString();if((l=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ed(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),kT(t)):t}],transformResponse:[function(t){const n=this.transitional||td.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&oe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?nt.from(l,nt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ci.classes.FormData,Blob:ci.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};oe.forEach(["delete","get","head"],function(t){td.headers[t]={}}),oe.forEach(["post","put","patch"],function(t){td.headers[t]=oe.merge(BT)});const km=td,PT=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),RT=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&PT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},aD=Symbol("internals");function wl(e){return e&&String(e).trim().toLowerCase()}function nd(e){return e===!1||e==null?e:oe.isArray(e)?e.map(nd):String(e)}function TT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const IT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pm(e,t,n,r,i){if(oe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!oe.isString(t)){if(oe.isString(r))return t.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(t)}}function NT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function LT(e,t){const n=oe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class rd{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,c,f){const h=wl(c);if(!h)throw new Error("header name must be a non-empty string");const g=oe.findKey(i,h);(!g||i[g]===void 0||f===!0||f===void 0&&i[g]!==!1)&&(i[g||c]=nd(l))}const a=(l,c)=>oe.forEach(l,(f,h)=>o(f,h,c));return oe.isPlainObject(t)||t instanceof this.constructor?a(t,n):oe.isString(t)&&(t=t.trim())&&!IT(t)?a(RT(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=wl(t),t){const r=oe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return TT(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wl(t),t){const r=oe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=wl(a),a){const l=oe.findKey(r,a);l&&(!n||Pm(r,r[l],l,n))&&(delete r[l],i=!0)}}return oe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Pm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return oe.forEach(this,(i,o)=>{const a=oe.findKey(r,o);if(a){n[a]=nd(i),delete n[o];return}const l=t?NT(o):String(o).trim();l!==o&&delete n[o],n[l]=nd(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[aD]=this[aD]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=wl(a);r[l]||(LT(i,a),r[l]=!0)}return oe.isArray(t)?t.forEach(o):o(t),this}}rd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.freezeMethods(rd.prototype),oe.freezeMethods(rd);const Mi=rd;function Rm(e,t){const n=this||km,r=t||n,i=Mi.from(r.headers);let o=r.data;return oe.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function uD(e){return!!(e&&e.__CANCEL__)}function bl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(bl,nt,{__CANCEL__:!0});function MT(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $T=ci.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,l){const c=[];c.push(n+"="+encodeURIComponent(r)),oe.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),oe.isString(o)&&c.push("path="+o),oe.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function jT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zT(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function lD(e,t){return e&&!jT(t)?zT(e,t):t}const UT=ci.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const l=oe.isString(a)?i(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function HT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),h=r[o];a||(a=f),n[i]=c,r[i]=f;let g=o,m=0;for(;g!==i;)m+=n[g++],g=g%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-a<t)return;const y=h&&f-h;return y?Math.round(m*1e3/y):void 0}}function cD(e,t){let n=0;const r=WT(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-n,c=r(l),f=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&f?(a-o)/c:void 0,event:i};h[t?"download":"upload"]=!0,e(h)}}const id={http:vT,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let i=e.data;const o=Mi.from(e.headers).normalize(),a=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}oe.isFormData(i)&&(ci.isStandardBrowserEnv||ci.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+v))}const h=lD(e.baseURL,e.url);f.open(e.method.toUpperCase(),rD(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const y=Mi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),p={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};MT(function(_){n(_),c()},function(_){r(_),c()},p),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new nt("Request aborted",nt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||oD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new nt(v,p.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,f)),f=null},ci.isStandardBrowserEnv){const y=(e.withCredentials||UT(h))&&e.xsrfCookieName&&$T.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&oe.forEach(o.toJSON(),function(v,p){f.setRequestHeader(p,v)}),oe.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",cD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",cD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{f&&(r(!y||y.type?new bl(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=HT(h);if(m&&ci.protocols.indexOf(m)===-1){r(new nt("Unsupported protocol "+m+":",nt.ERR_BAD_REQUEST,e));return}f.send(i||null)})}};oe.forEach(id,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const VT={getAdapter:e=>{e=oe.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=oe.isString(n)?id[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new nt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(oe.hasOwnProp(id,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!oe.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:id};function Tm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bl(null,e)}function fD(e){return Tm(e),e.headers=Mi.from(e.headers),e.data=Rm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),VT.getAdapter(e.adapter||km.adapter)(e).then(function(r){return Tm(e),r.data=Rm.call(e,e.transformResponse,r),r.headers=Mi.from(r.headers),r},function(r){return uD(r)||(Tm(e),r&&r.response&&(r.response.data=Rm.call(e,e.transformResponse,r.response),r.response.headers=Mi.from(r.response.headers))),Promise.reject(r)})}const dD=e=>e instanceof Mi?e.toJSON():e;function Ba(e,t){t=t||{};const n={};function r(f,h,g){return oe.isPlainObject(f)&&oe.isPlainObject(h)?oe.merge.call({caseless:g},f,h):oe.isPlainObject(h)?oe.merge({},h):oe.isArray(h)?h.slice():h}function i(f,h,g){if(oe.isUndefined(h)){if(!oe.isUndefined(f))return r(void 0,f,g)}else return r(f,h,g)}function o(f,h){if(!oe.isUndefined(h))return r(void 0,h)}function a(f,h){if(oe.isUndefined(h)){if(!oe.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function l(f,h,g){if(g in t)return r(f,h);if(g in e)return r(void 0,f)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(f,h)=>i(dD(f),dD(h),!0)};return oe.forEach(Object.keys(Object.assign({},e,t)),function(h){const g=c[h]||i,m=g(e[h],t[h],h);oe.isUndefined(m)&&g!==l||(n[h]=m)}),n}const hD="1.4.0",Im={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Im[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pD={};Im.transitional=function(t,n,r){function i(o,a){return"[Axios v"+hD+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(t===!1)throw new nt(i(a," has been removed"+(n?" in "+n:"")),nt.ERR_DEPRECATED);return n&&!pD[a]&&(pD[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};function KT(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const l=e[o],c=l===void 0||a(l,o,e);if(c!==!0)throw new nt("option "+o+" must be "+c,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+o,nt.ERR_BAD_OPTION)}}const Nm={assertOptions:KT,validators:Im},Fo=Nm.validators;class od{constructor(t){this.defaults=t,this.interceptors={request:new iD,response:new iD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ba(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Nm.assertOptions(r,{silentJSONParsing:Fo.transitional(Fo.boolean),forcedJSONParsing:Fo.transitional(Fo.boolean),clarifyTimeoutError:Fo.transitional(Fo.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:Nm.assertOptions(i,{encode:Fo.function,serialize:Fo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=o&&oe.merge(o.common,o[n.method]),a&&oe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Mi.concat(a,o);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let h,g=0,m;if(!c){const v=[fD.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,f),m=v.length,h=Promise.resolve(n);g<m;)h=h.then(v[g++],v[g++]);return h}m=l.length;let y=n;for(g=0;g<m;){const v=l[g++],p=l[g++];try{y=v(y)}catch(E){p.call(this,E);break}}try{h=fD.call(this,y)}catch(v){return Promise.reject(v)}for(g=0,m=f.length;g<m;)h=h.then(f[g++],f[g++]);return h}getUri(t){t=Ba(this.defaults,t);const n=lD(t.baseURL,t.url);return rD(n,t.params,t.paramsSerializer)}}oe.forEach(["delete","get","head","options"],function(t){od.prototype[t]=function(n,r){return this.request(Ba(r||{},{method:t,url:n,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,l){return this.request(Ba(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}od.prototype[t]=n(),od.prototype[t+"Form"]=n(!0)});const sd=od;class Lm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,l){r.reason||(r.reason=new bl(o,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Lm(function(i){t=i}),cancel:t}}}const qT=Lm;function GT(e){return function(n){return e.apply(null,n)}}function QT(e){return oe.isObject(e)&&e.isAxiosError===!0}const Mm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mm).forEach(([e,t])=>{Mm[t]=e});const YT=Mm;function gD(e){const t=new sd(e),n=zE(sd.prototype.request,t);return oe.extend(n,sd.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return gD(Ba(e,i))},n}const Jt=gD(km);Jt.Axios=sd,Jt.CanceledError=bl,Jt.CancelToken=qT,Jt.isCancel=uD,Jt.VERSION=hD,Jt.toFormData=ed,Jt.AxiosError=nt,Jt.Cancel=Jt.CanceledError,Jt.all=function(t){return Promise.all(t)},Jt.spread=GT,Jt.isAxiosError=QT,Jt.mergeConfig=Ba,Jt.AxiosHeaders=Mi,Jt.formToJSON=e=>sD(oe.isHTMLForm(e)?new FormData(e):e),Jt.HttpStatusCode=YT,Jt.default=Jt;const mD=Jt,$m=e=>window.location.origin!==new URL(e,window.location.origin).origin,vD=()=>{const e=tr.getItem(CR);return e?{"X-Sessionid":e}:{}},jm=mD.create({baseURL:"/"}),zm="E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",ad=e=>{if(mD.isAxiosError(e)){if(!e.response)throw new Error(e.message);const t=e.response.status;if(t===401||t===403)throw new Error("Unauthorized");const{code:n,response:r}=e.response.data;throw new jE(n,r)}else throw e},Ar={defaultHeaders:{},setDefaultHeaders:e=>{Ar.defaultHeaders={...Ar.defaultHeaders,...e}},get:async(e,t)=>{const{data:n}=await jm.get(e,{headers:{...Ar.defaultHeaders,...vD()},params:{...t,api_key:zm},withCredentials:$m(e)}).catch(ad);return n},post:async(e,t,n)=>{const r=t instanceof FormData?t:{...t,api_key:zm},{data:i}=await jm.post(e,r,{...n,headers:{...Ar.defaultHeaders,...n==null?void 0:n.headers,...vD()},withCredentials:$m(e)}).catch(ad);return i},postFormData:async(e,t,n)=>Ar.post(e,t,{...n,headers:{...Ar.defaultHeaders,...n==null?void 0:n.headers,"Content-Type":"multipart/form-data"},params:t instanceof FormData?{api_key:zm}:void 0,withCredentials:$m(e)}).catch(ad),getJson:async e=>{const{data:t}=await jm.get(e).catch(ad);return t}},JT=e=>typeof e=="boolean",ud=[320,480,600,800],yD=()=>{const e=window.document.body.offsetWidth,t=ud.length;return ud.find((n,r)=>r+1===t||Math.abs(ud[r+1]-e)>Math.abs(ud[r]-e))},wD=e=>toString.call(e)==="[object Number]"&&!Number.isNaN(e),XT={avatar:{generic:"//a.disquscdn.com/1684436839/images/noavatar92.png"},badgesAdmin:e=>`https://${e}.disqus.com/admin/settings/badges`,login:"https://disqus.com/next/login/",dotcomLogin:"https://disqus.com/profile/login/",editProfile:"https://disqus.com/home/settings/account/",shortener:"http://disq.us",media:"https://c.disquscdn.com/next/current/embed",moderate:"http://disqus.com/admin/moderate/",settings:{subscription:(e,t)=>`https://disqus.com/admin/${e?`orgs/${e}/${t||"sites"}/`:""}settings/subscription/`},share:{facebook:"https://www.facebook.com/sharer.php",twitter:"https://twitter.com/intent/tweet"}},bD=(()=>{const e="_dsqstorage_";try{return window.localStorage.setItem(e,e),window.localStorage.getItem(e),window.localStorage.removeItem(e),!0}catch{return!1}})(),tr={getItem(e){let t=null;try{return t=this.backend.getItem(e),JSON.parse(t)}catch{return t}},setItem(e,t){try{this.backend.setItem(e,JSON.stringify(t))}catch{}},removeItem(e){try{this.backend.removeItem(e)}catch{}},clear(){try{this.backend.clear()}catch{}},backend:bD?window.localStorage:Oa,isPersistent:bD},ZT=function(e){const t=[];let n,r,i,o,a;if(!e)return t;for(;n=AR.exec(e);){r=n[0],a=n[1],r=r.slice(a.length),LE.lastIndex=0,i=LE.exec(r),i&&(r=r.slice(0,r.length-i[0].length)),xR.test(r)?o=r:o="http://"+r;const l=n.index+a.length;t.push({text:r,url:o,index:l,endIndex:l+r.length})}return t},_D=e=>{if(!e)return"";const t=window.document.createElement("a");return t.href="http://"+e.replace(/^([a-z+.-]+:)?\/+/i,""),t.hostname.replace(/^www\d*\./i,"").toLowerCase()},e8=new RegExp("(^|\\.)"+_D(XT.media).split(".").slice(-2).join("\\.")+"$"),t8=e=>{const t=_D(e);return e8.test(t)},n8=e=>{const t=[];return Object.keys(e).forEach(n=>{const r=e[n];r!==void 0&&t.push(n+(r===null?"":"="+encodeURIComponent(r)))}),t.join("&")},CD=(e,t,n=!1)=>{if(t&&(e.indexOf("?")===-1?e+="?":e.charAt(e.length-1)!=="&"&&(e+="&"),e+=n8(t)),n){const i={};return i[new Date().getTime()]=null,CD(e,i)}const r=e.length;return e.charAt(r-1)==="&"?e.slice(0,r-1):e},ED=e=>{let t;const n=new Set,r=(c,f)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const g=t;t=f??typeof h!="object"?h:Object.assign({},t,h),n.forEach(m=>m(t,g))}},i=()=>t,l={setState:r,getState:i,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,l),l},r8=e=>e?ED(e):ED;var DD={exports:{}},xD={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ld=D,i8=EE;function o8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var s8=typeof Object.is=="function"?Object.is:o8,a8=i8.useSyncExternalStore,u8=ld.useRef,l8=ld.useEffect,c8=ld.useMemo,f8=ld.useDebugValue;xD.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=u8(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=c8(function(){function c(y){if(!f){if(f=!0,h=y,y=r(y),i!==void 0&&a.hasValue){var v=a.value;if(i(v,y))return g=v}return g=y}if(v=g,s8(h,y))return v;var p=r(y);return i!==void 0&&i(v,p)?v:(h=y,g=p)}var f=!1,h,g,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,i]);var l=a8(e,o[0],o[1]);return l8(function(){a.hasValue=!0,a.value=l},[l]),f8(l),l},DD.exports=xD;var d8=DD.exports;const h8=vr(d8),{useSyncExternalStoreWithSelector:p8}=h8;function g8(e,t=e.getState,n){const r=p8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return D.useDebugValue(r),r}const AD=e=>{({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?r8(e):e,n=(r,i)=>g8(t,r,i);return Object.assign(n,t),n},fi=e=>e?AD(e):AD,Um=new Map,cd=e=>{const t=Um.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},m8=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Um.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return Um.set(n.name,i),{type:"tracked",store:e,...i}},$i=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:l,...c}=t;let f;try{f=(o??({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!f)return({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:h,...g}=m8(l,f,c);let m=!0;i.setState=(p,E,_)=>{const b=n(p,E);if(!m)return b;const x=_===void 0?{type:a||"anonymous"}:typeof _=="string"?{type:_}:_;return l===void 0?(h==null||h.send(x,r()),b):(h==null||h.send({...x,type:`${l}/${x.type}`},{...cd(c.name),[l]:i.getState()}),b)};const y=(...p)=>{const E=m;m=!1,n(...p),m=E},v=e(i.setState,r,i);if(g.type==="untracked"?h==null||h.init(v):(g.stores[g.store]=i,h==null||h.init(Object.fromEntries(Object.entries(g.stores).map(([p,E])=>[p,p===g.store?v:E.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let p=!1;const E=i.dispatch;i.dispatch=(..._)=>{({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&_[0].type==="__setState"&&!p&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),p=!0),E(..._)}}return h.subscribe(p=>{var E;switch(p.type){case"ACTION":if(typeof p.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Hm(p.payload,_=>{if(_.type==="__setState"){if(l===void 0){y(_.state);return}Object.keys(_.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);const b=_.state[l];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&y(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(_)});case"DISPATCH":switch(p.payload.type){case"RESET":return y(v),l===void 0?h==null?void 0:h.init(i.getState()):h==null?void 0:h.init(cd(c.name));case"COMMIT":if(l===void 0){h==null||h.init(i.getState());return}return h==null?void 0:h.init(cd(c.name));case"ROLLBACK":return Hm(p.state,_=>{if(l===void 0){y(_),h==null||h.init(i.getState());return}y(_[l]),h==null||h.init(cd(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Hm(p.state,_=>{if(l===void 0){y(_);return}JSON.stringify(i.getState())!==JSON.stringify(_[l])&&y(_[l])});case"IMPORT_STATE":{const{nextLiftedState:_}=p.payload,b=(E=_.computedStates.slice(-1)[0])==null?void 0:E.state;if(!b)return;y(l===void 0?b:b[l]),h==null||h.send(null,_);return}case"PAUSE_RECORDING":return m=!m}return}}),v},Hm=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function SD(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=c=>c===null?null:JSON.parse(c,t==null?void 0:t.reviver),l=(o=n.getItem(i))!=null?o:null;return l instanceof Promise?l.then(a):a(l)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,t==null?void 0:t.replacer)),removeItem:i=>n.removeItem(i)}}const _l=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return _l(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return _l(r)(n)}}}},v8=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,_)=>({..._,...E}),...t},a=!1;const l=new Set,c=new Set;let f;try{f=o.getStorage()}catch{}if(!f)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...E)},r,i);const h=_l(o.serialize),g=()=>{const E=o.partialize({...r()});let _;const b=h({state:E,version:o.version}).then(x=>f.setItem(o.name,x)).catch(x=>{_=x});if(_)throw _;return b},m=i.setState;i.setState=(E,_)=>{m(E,_),g()};const y=e((...E)=>{n(...E),g()},r,i);let v;const p=()=>{var E;if(!f)return;a=!1,l.forEach(b=>b(r()));const _=((E=o.onRehydrateStorage)==null?void 0:E.call(o,r()))||void 0;return _l(f.getItem.bind(f))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var x;return v=o.merge(b,(x=r())!=null?x:y),n(v,!0),g()}).then(()=>{_==null||_(v,void 0),a=!0,c.forEach(b=>b(v))}).catch(b=>{_==null||_(void 0,b)})};return i.persist={setOptions:E=>{o={...o,...E},E.getStorage&&(f=E.getStorage())},clearStorage:()=>{f==null||f.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},p(),v||y},y8=(e,t)=>(n,r,i)=>{let o={storage:SD(()=>localStorage),partialize:p=>p,version:0,merge:(p,E)=>({...E,...p}),...t},a=!1;const l=new Set,c=new Set;let f=o.storage;if(!f)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...p)},r,i);const h=()=>{const p=o.partialize({...r()});return f.setItem(o.name,{state:p,version:o.version})},g=i.setState;i.setState=(p,E)=>{g(p,E),h()};const m=e((...p)=>{n(...p),h()},r,i);let y;const v=()=>{var p,E;if(!f)return;a=!1,l.forEach(b=>{var x;return b((x=r())!=null?x:m)});const _=((E=o.onRehydrateStorage)==null?void 0:E.call(o,(p=r())!=null?p:m))||void 0;return _l(f.getItem.bind(f))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var x;return y=o.merge(b,(x=r())!=null?x:m),n(y,!0),h()}).then(()=>{_==null||_(y,void 0),y=r(),a=!0,c.forEach(b=>b(y))}).catch(b=>{_==null||_(void 0,b)})};return i.persist={setOptions:p=>{o={...o,...p},p.storage&&(f=p.storage)},clearStorage:()=>{f==null||f.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},o.skipHydration||v(),y||m},w8=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({VITE_API_URL:"https://disqus.com/api/3.0",VITE_API_KEY:"E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F",VITE_CONFIG_URL:"https://disqus.com/next/config.json",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),v8(e,t)):y8(e,t),Wm={forum:"forum",posts:"posts",threadDetails:"threadDetails",postVoters:"postVoters",gifSearch:"gifSearch",mediaDetails:"mediaDetails",userSuggestions:"userSuggestions"},di=e=>{const t=e;t.use={};for(const n of Object.keys(t.getState()))t.use[n]=()=>t(r=>r[n]);return t},b8=di(fi()($i(e=>({profile:{},setProfile:t=>e({profile:t})})))),zt="https://disqus.com/api/3.0",_8="https://uploads.services.disqus.com/api/3.0",fd={badges:{award:`${zt}/badges/award`,remove:`${zt}/badges/remove`},forum:{details:`${zt}/forums/details`,banPostAuthor:`${zt}/forums/block/banPostAuthor.json`},gifs:{search:`${zt}/gifs/search`},media:{create:`${_8}/media/create.json`,details:`${zt}/media/details.json`},posts:{details:`${zt}/threads/listPostsThreaded`},post:{details:`${zt}/posts/details.json`,highlight:`${zt}/posts/highlight.json`,spam:`${zt}/posts/spam.json`,unhighlight:`${zt}/posts/unhighlight.json`,remove:`${zt}/posts/remove.json`,report:`${zt}/posts/report.json`,vote:`${zt}/posts/vote.json`,voters:`${zt}/posts/listUsersVotedPost`},thread:{details:`${zt}/embed/threadDetails.json`},users:{block:`${zt}/users/block/create.json`,follow:`${zt}/users/follow.json`,unfollow:`${zt}/users/unfollow.json`,unblock:`${zt}/users/block/delete.json`,mentions:`${zt}/mentions/listUsers`}},C8="https://disqus.com/next/config.json",E8=()=>Ar.getJson(C8),D8=async e=>{const{response:t}=await Ar.postFormData(fd.media.create,e);return Object.values(t)[0]},x8=async({forum:e,page:t,query:n})=>{const{response:r}=await Ar.get(fd.gifs.search,{forum:e,page:t,query:n});return r},A8=async({forum:e,url:t})=>{const{response:n}=await Ar.postFormData(fd.media.details,{forum:e,url:t});return n},S8=async({thread:e,query:t="",cursor:n=""})=>await Ar.get(fd.users.mentions,{thread:e,query:t,cursor:n,limit:5});var OD=(e=>(e[e.AUTH_REQUIRED=4]="AUTH_REQUIRED",e[e.OBJ_NOT_FOUND=8]="OBJ_NOT_FOUND",e[e.MAX_ITEMS_REACHED=24]="MAX_ITEMS_REACHED",e))(OD||{}),FD=Symbol.for("immer-nothing"),BD=Symbol.for("immer-draftable"),nr=Symbol.for("immer-state");function Qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ka=Object.getPrototypeOf;function Pa(e){return!!e&&!!e[nr]}function gs(e){var t;return e?kD(e)||Array.isArray(e)||!!e[BD]||!!((t=e.constructor)!=null&&t[BD])||hd(e)||pd(e):!1}var O8=Object.prototype.constructor.toString();function kD(e){if(!e||typeof e!="object")return!1;const t=ka(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===O8}function Cl(e,t){dd(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function dd(e){const t=e[nr];return t?t.type_:Array.isArray(e)?1:hd(e)?2:pd(e)?3:0}function Vm(e,t){return dd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function PD(e,t,n){const r=dd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function F8(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function hd(e){return e instanceof Map}function pd(e){return e instanceof Set}function ms(e){return e.copy_||e.base_}function Km(e,t){if(hd(e))return new Map(e);if(pd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&kD(e))return ka(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[nr];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(ka(e),n)}function qm(e,t=!1){return gd(e)||Pa(e)||!gs(e)||(dd(e)>1&&(e.set=e.add=e.clear=e.delete=B8),Object.freeze(e),t&&Cl(e,(n,r)=>qm(r,!0))),e}function B8(){Qr(2)}function gd(e){return Object.isFrozen(e)}var k8={};function vs(e){const t=k8[e];return t||Qr(0,e),t}var El;function RD(){return El}function P8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function TD(e,t){t&&(vs("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gm(e){Qm(e),e.drafts_.forEach(R8),e.drafts_=null}function Qm(e){e===El&&(El=e.parent_)}function ID(e){return El=P8(El,e)}function R8(e){const t=e[nr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ND(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[nr].modified_&&(Gm(t),Qr(4)),gs(e)&&(e=md(t,e),t.parent_||vd(t,e)),t.patches_&&vs("Patches").generateReplacementPatches_(n[nr].base_,e,t.patches_,t.inversePatches_)):e=md(t,n,[]),Gm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==FD?e:void 0}function md(e,t,n){if(gd(t))return t;const r=t[nr];if(!r)return Cl(t,(i,o)=>LD(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return vd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Cl(o,(l,c)=>LD(e,r,i,l,c,n,a)),vd(e,i,!1),n&&e.patches_&&vs("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function LD(e,t,n,r,i,o,a){if(Pa(i)){const l=o&&t&&t.type_!==3&&!Vm(t.assigned_,r)?o.concat(r):void 0,c=md(e,i,l);if(PD(n,r,c),Pa(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(gs(i)&&!gd(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;md(e,i),(!t||!t.scope_.parent_)&&vd(e,i)}}function vd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qm(t,n)}function T8(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:RD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Ym;n&&(i=[r],o=Dl);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=a,l}var Ym={get(e,t){if(t===nr)return e;const n=ms(e);if(!Vm(n,t))return I8(e,n,t);const r=n[t];return e.finalized_||!gs(r)?r:r===Jm(e.base_,t)?(Zm(e),e.copy_[t]=ev(r,e)):r},has(e,t){return t in ms(e)},ownKeys(e){return Reflect.ownKeys(ms(e))},set(e,t,n){const r=MD(ms(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Jm(ms(e),t),o=i==null?void 0:i[nr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(F8(n,i)&&(n!==void 0||Vm(e.base_,t)))return!0;Zm(e),Xm(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Jm(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Zm(e),Xm(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ms(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qr(11)},getPrototypeOf(e){return ka(e.base_)},setPrototypeOf(){Qr(12)}},Dl={};Cl(Ym,(e,t)=>{Dl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Dl.deleteProperty=function(e,t){return Dl.set.call(this,e,t,void 0)},Dl.set=function(e,t,n){return Ym.set.call(this,e[0],t,n,e[0])};function Jm(e,t){const n=e[nr];return(n?ms(n):e)[t]}function I8(e,t,n){var i;const r=MD(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function MD(e,t){if(!(t in e))return;let n=ka(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ka(n)}}function Xm(e){e.modified_||(e.modified_=!0,e.parent_&&Xm(e.parent_))}function Zm(e){e.copy_||(e.copy_=Km(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var N8=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,i)=>{if(typeof n=="function"&&typeof r!="function"){const a=r;r=n;const l=this;return function(f=a,...h){return l.produce(f,g=>r.call(this,g,...h))}}typeof r!="function"&&Qr(6),i!==void 0&&typeof i!="function"&&Qr(7);let o;if(gs(n)){const a=ID(this),l=ev(n,void 0);let c=!0;try{o=r(l),c=!1}finally{c?Gm(a):Qm(a)}return TD(a,i),ND(o,a)}else if(!n||typeof n!="object"){if(o=r(n),o===void 0&&(o=n),o===FD&&(o=void 0),this.autoFreeze_&&qm(o,!0),i){const a=[],l=[];vs("Patches").generateReplacementPatches_(n,o,a,l),i(a,l)}return o}else Qr(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(l,...c)=>this.produceWithPatches(l,f=>n(f,...c));let i,o;return[this.produce(n,r,(l,c)=>{i=l,o=c}),i,o]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){gs(t)||Qr(8),Pa(t)&&(t=L8(t));const n=ID(this),r=ev(t,void 0);return r[nr].isManual_=!0,Qm(n),r}finishDraft(t,n){const r=t&&t[nr];(!r||!r.isManual_)&&Qr(9);const{scope_:i}=r;return TD(i,n),ND(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=vs("Patches").applyPatches_;return Pa(t)?i(t,n):this.produce(t,o=>i(o,n))}};function ev(e,t){const n=hd(e)?vs("MapSet").proxyMap_(e,t):pd(e)?vs("MapSet").proxySet_(e,t):T8(e,t);return(t?t.scope_:RD()).drafts_.push(n),n}function L8(e){return Pa(e)||Qr(10,e),$D(e)}function $D(e){if(!gs(e)||gd(e))return e;const t=e[nr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Km(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Km(e,!0);return Cl(n,(r,i)=>{PD(n,r,$D(i))}),t&&(t.finalized_=!1),n}var rr=new N8,bt=rr.produce;rr.produceWithPatches.bind(rr),rr.setAutoFreeze.bind(rr),rr.setUseStrictShallowCopy.bind(rr),rr.applyPatches.bind(rr),rr.createDraft.bind(rr),rr.finishDraft.bind(rr);const tv=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const l=typeof i=="function"?bt(i):i;return t(l,o,...a)},e(r.setState,n,r)),M8="disqus.collapse-media",jD="disqus.thread",$8=e=>({banlist:{},setBanlist:t=>e(bt(n=>{n.banlist[t]=!0})),resetBanlist:t=>e(bt(n=>{delete n.banlist[t]}))}),j8=e=>({collapsed:{},setCollapsed:t=>e(bt(n=>{n.collapsed[t]=!0})),setExpanded:t=>e(bt(n=>{n.collapsed[t]=!1}))}),z8=()=>tr.getItem(jD)?!1:!!tr.getItem(M8),U8=e=>({collapseMedia:z8(),setCollapseMedia:t=>e(bt(n=>{n.collapseMedia=t}))}),H8=e=>({flagged:{},flagging:{},setFlagged:t=>e(bt(n=>{n.flagged[t]=!0})),setFlagging:t=>e(bt(n=>{n.flagging[t]=!0})),resetFlagging:t=>e(bt(n=>{delete n.flagging[t]}))}),W8=e=>({setHighlightedPost:t=>e(bt(n=>{n.thread.highlightedPost=t}))}),V8=e=>({manageBadges:{},setManageBadges:t=>e(bt(n=>{n.manageBadges[t]=!0})),resetManageBadges:t=>e(bt(n=>{delete n.manageBadges[t]}))}),K8=e=>{var t;return{users:((t=Sa("threadData"))==null?void 0:t.response.posts.reduce((n,r)=>(r.author.id&&(n[r.author.id]=r.author),n),{}))??{},addUser:n=>e(bt(r=>{n.id&&!r.users[n.id]&&(r.users[n.id]=n)})),awardBadge:(n,r)=>e(bt(i=>{var o;i.users[n].badges||(i.users[n].badges=[]),(o=i.users[n].badges)==null||o.push(String(r))})),removeBadge:(n,r)=>e(bt(i=>{var o,a;(o=i.users)!=null&&o[n].badges&&(i.users[n].badges=(a=i.users[n].badges)==null?void 0:a.filter(l=>l!==String(r)))})),setUsers:n=>e(bt(r=>{n.forEach(i=>{i.id&&!r.users[i.id]&&(r.users[i.id]=i)})})),updateUser:(n,r)=>e(bt(i=>{i.users[n]={...i.users[n],...r}}))}},q8=((OF=Sa("threadData"))==null?void 0:OF.response.thread)??{},G8=fi()($i(w8(tv((...e)=>({thread:q8,...j8(...e),...U8(...e),...H8(...e),...W8(...e),...$8(...e),...V8(...e),...K8(...e)})),{name:jD,partialize:e=>({collapseMedia:e.collapseMedia}),storage:SD(()=>tr.backend)})));di(G8),(FF=Sa("forumData"))==null||FF.forum;function Q8(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const zD=(e,t,n)=>{const r=new Set;return(i,o,a)=>{const l=(n==null?void 0:n.equalityFn)??Q8;n!=null&&n.keys&&n.keys.forEach(p=>r.add(p));const c=(n==null?void 0:n.disableProxy)!==!0||!!(n!=null&&n.keys),f=(n==null?void 0:n.disableProxy)!==!0&&!(n!=null&&n.keys),h=v=>{const p=new Proxy({...v},{get:(_,b)=>(r.add(b),v[b])}),E=t(f?p:{...v});for(const _ of Object.keys(E))l(E[_],v[_])&&(E[_]=v[_]);return{...v,...E}},g=(v,p)=>{i(E=>{const _=typeof v=="object"?v:v(E);return c&&r.size!==0&&!Object.keys(_).some(b=>r.has(b))?{...E,..._}:h({...E,..._})},p)},m=a;m.setState=g;const y=e(g,o,m);return Object.assign({},y,t(y))}},Y8=di(fi()($i(e=>{var t;return{session:((t=Sa("forumData"))==null?void 0:t.session)||{},setSession:n=>e(r=>({session:{...r.session,...n}}))}}))),J8=e=>{const{session:{canModerate:t}}=Y8.getState();return{blockingList:[...new Set([...e.blockedUsers,...t?[]:e.blockingUsers])]}},X8=fi()($i(zD(tv(e=>({blockedUsers:[],blockingUsers:[],blockUser:t=>e(bt(n=>{n.blockedUsers.push(t)})),unblockUser:t=>e(bt(n=>{n.blockedUsers=n.blockedUsers.filter(r=>r!==t)})),setBlockedUsers:t=>e(bt(n=>{n.blockedUsers=t})),setBlockingUsers:t=>e(bt(n=>{n.blockingUsers=t}))})),J8)));di(X8),di(fi()($i(e=>({followingUsers:[],setFollowingUsers:t=>e({followingUsers:t})}))));const UD=({forum:e,url:t})=>{const n=[Wm.mediaDetails,e,t];return mR({enabled:!!(e&&t),queryKey:n,refetchOnWindowFocus:!1,retry:!1,queryFn:()=>A8({forum:e,url:t})})},HD={"invalid-image-file":"Unfortunately your image upload failed. Please verify that the file is valid and in a supported format (JPEG, PNG, or GIF).","invalid-content-type":"Unfortunately your image upload failed. Please verify that the file is in a supported format (JPEG, PNG, or GIF).","file-invalid-type":"Unfortunately your image upload failed. Please verify that the file is in a supported format (JPEG, PNG, or GIF).","file-too-large":"Unfortunately your image upload failed. Please verify that your image is under 5MB.","not-authenticated":"You must be logged in to upload an image.",default:"Unfortunately your image upload failed. Please verify that your image is in a supported format (JPEG, PNG, or GIF) and under 5MB. If you continue seeing this error, please try again later."},nv=(e="default")=>HD[e]||HD.default,Z8=()=>{const e=vR({mutationFn:n=>D8(n),onError:n=>{if(n instanceof jE)throw n.code===OD.AUTH_REQUIRED?new Error(nv(IE.NOT_AUTHENTICATED)):new Error(n.message)},onSuccess:n=>{if(!n.ok)throw new Error(nv(n["error-code"]));return n}});return{uploadFile:n=>{const r=new FormData;return r.append("upload",n),r.append("permanent","1"),e.mutateAsync(r)}}},e6=e=>({postsTree:NR(e.posts)});di(fi()($i(zD(tv((e,t)=>{var n,r;return{posts:((n=Sa("threadData"))==null?void 0:n.response.posts)??[],addPosts:i=>e(bt(o=>{o.posts.push(...i)})),cropPosts:i=>{e(bt(o=>{o.posts.splice(i)}))},getPost:i=>t().posts.find(o=>o.id===i),updatePost:(i,o)=>{const a=t().posts.findIndex(l=>l.id===i);a!==-1&&e(bt(l=>{l.posts[a]={...l.posts[a],...o}}))},hasNext:((r=Sa("threadData"))==null?void 0:r.cursor.hasNext)??!1,setHasNext:i=>e(o=>{o.hasNext=i}),offset:0,setOffset:i=>e(o=>{o.offset=i})}}),e6))));const t6=(e,t={})=>JT(e)?e:e?Object.keys(e).some(n=>{var o;const r=e[n],i=t[n];if(/percent$/.test(n)&&wD(r)){if(wD(i))return r>i;if(typeof i=="string"&&typeof r=="number"){const a=r!==Math.round(r)?((o=r.toString().split(".").pop())==null?void 0:o.length)??0:0;return r>$E.getPercentBucketForString(i,a)}return!1}return Array.isArray(r)?r.includes(i):r===i}):!1,n6="switch:",r6=e=>`${n6}${e}`,i6=fi()($i((e,t)=>({overrides:{},switches:{},fetch:async()=>{const n=await E8();e(()=>({switches:n.lounge.switches}))},disableFeature:n=>e(r=>({overrides:{...r.overrides,[n]:!1}})),forceFeature:n=>e(r=>({overrides:{...r.overrides,[n]:!0}})),resetFeature:n=>e(r=>({overrides:{...r.overrides,[n]:null}})),getSwitchContext:n=>{const r=tr.getItem(r6(n));if(r!==null)return r;const i=t().overrides[n];return i??t().switches[n]},isFeatureActive:(n,r={})=>{const i=b8.use.profile(),a={...{...i!=null&&i.id?{user_id:i.id}:{},...i!=null&&i.username?{username:i.username}:{},is_staff:!!(i!=null&&i.isGlobalAdmin),percent:$E.clientPercent},...r};return t6(t().getSwitchContext(n),a)}}))),WD=di(i6);di(fi()($i(e=>({votes:{},setVotes:t=>e(n=>({votes:{...n.votes,...t}}))}))));const o6=fi()($i(e=>({config:{},init(){var i;const t=(i=window.embedv2)==null?void 0:i.embedConfig;if(!t)return;const{experiment:n,variant:r}=t.experiment||{};t.forceSwitch&&WD.getState().forceFeature(t.forceSwitch),n&&r&&WD.getState().forceFeature(`experiment:${n}:${r}`),t.apiKey&&typeof t.apiKey=="string"&&t.remoteAuthS3&&typeof t.remoteAuthS3=="string"&&Ar.setDefaultHeaders({"X-Disqus-Publisher-API-Key":t.apiKey,"X-Disqus-Remote-Auth":t.remoteAuthS3}),e(()=>({config:t}))}}))),s6=di(o6);function a6(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const VD={};function rv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&VD[t[0]]||(typeof t[0]=="string"&&(VD[t[0]]=new Date),a6(...t))}const KD=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function qD(e,t,n){e.loadNamespaces(t,KD(e,n))}function GD(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,KD(e,r))}function u6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const f=t.services.backendConnector.state[`${l}|${c}`];return f===-1||f===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}function l6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(rv("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):u6(e,t,n)}const c6=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f6={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},d6=e=>f6[e];let iv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c6,d6)};function h6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};iv={...iv,...e}}function p6(){return iv}let QD;function g6(e){QD=e}function m6(){return QD}const v6={type:"3rdParty",init(e){h6(e.options.react),g6(e)}},y6=D.createContext();class w6{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const b6=(e,t)=>{const n=D.useRef();return D.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function YD(e,t,n,r){return e.getFixedT(t,n,r)}function _6(e,t,n,r){return D.useCallback(YD(e,t,n,r),[e,t,n,r])}function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=D.useContext(y6)||{},o=n||r||m6();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new w6),!o){rv("You will need to pass in an i18next instance by using initReactI18next");const O=(k,P)=>typeof P=="string"?P:P&&typeof P=="object"&&typeof P.defaultValue=="string"?P.defaultValue:Array.isArray(k)?k[k.length-1]:k,B=[O,{},!1];return B.t=O,B.i18n={},B.ready=!1,B}o.options.react&&o.options.react.wait!==void 0&&rv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...p6(),...o.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let f=e||i||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);const h=(o.isInitialized||o.initializedStoreOnce)&&f.every(O=>l6(O,o,a)),g=_6(o,t.lng||null,a.nsMode==="fallback"?f:f[0],c),m=()=>g,y=()=>YD(o,t.lng||null,a.nsMode==="fallback"?f:f[0],c),[v,p]=D.useState(m);let E=f.join();t.lng&&(E=`${t.lng}${E}`);const _=b6(E),b=D.useRef(!0);D.useEffect(()=>{const{bindI18n:O,bindI18nStore:B}=a;b.current=!0,!h&&!l&&(t.lng?GD(o,t.lng,f,()=>{b.current&&p(y)}):qD(o,f,()=>{b.current&&p(y)})),h&&_&&_!==E&&b.current&&p(y);function k(){b.current&&p(y)}return O&&o&&o.on(O,k),B&&o&&o.store.on(B,k),()=>{b.current=!1,O&&o&&O.split(" ").forEach(P=>o.off(P,k)),B&&o&&B.split(" ").forEach(P=>o.store.off(P,k))}},[o,E]),D.useEffect(()=>{b.current&&h&&p(m)},[o,c,h]);const x=[v,o,h];if(x.t=v,x.i18n=o,x.ready=h,h||!h&&!l)return x;throw new Promise(O=>{t.lng?GD(o,t.lng,f,()=>O()):qD(o,f,()=>O())})}var C6=x6,JD="֑-߿יִ-﷽ﹰ-ﻼ",XD="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",E6=new RegExp("^[^"+XD+"]*["+JD+"]"),D6=new RegExp("^[^"+JD+"]*["+XD+"]");function x6(e){return e=String(e||""),E6.test(e)?"rtl":D6.test(e)?"ltr":"neutral"}const ZD=vr(C6);function A6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ra=A6,S6=typeof Gt=="object"&&Gt&&Gt.Object===Object&&Gt,ex=S6,O6=ex,F6=typeof self=="object"&&self&&self.Object===Object&&self,B6=O6||F6||Function("return this")(),hi=B6,k6=hi,P6=function(){return k6.Date.now()},R6=P6,T6=/\s/;function I6(e){for(var t=e.length;t--&&T6.test(e.charAt(t)););return t}var N6=I6,L6=N6,M6=/^\s+/;function $6(e){return e&&e.slice(0,L6(e)+1).replace(M6,"")}var j6=$6,z6=hi,U6=z6.Symbol,yd=U6,tx=yd,nx=Object.prototype,H6=nx.hasOwnProperty,W6=nx.toString,xl=tx?tx.toStringTag:void 0;function V6(e){var t=H6.call(e,xl),n=e[xl];try{e[xl]=void 0;var r=!0}catch{}var i=W6.call(e);return r&&(t?e[xl]=n:delete e[xl]),i}var K6=V6,q6=Object.prototype,G6=q6.toString;function Q6(e){return G6.call(e)}var Y6=Q6,rx=yd,J6=K6,X6=Y6,Z6="[object Null]",eI="[object Undefined]",ix=rx?rx.toStringTag:void 0;function tI(e){return e==null?e===void 0?eI:Z6:ix&&ix in Object(e)?J6(e):X6(e)}var Al=tI;function nI(e){return e!=null&&typeof e=="object"}var Sl=nI,rI=Al,iI=Sl,oI="[object Symbol]";function sI(e){return typeof e=="symbol"||iI(e)&&rI(e)==oI}var wd=sI,aI=j6,ox=Ra,uI=wd,sx=0/0,lI=/^[-+]0x[0-9a-f]+$/i,cI=/^0b[01]+$/i,fI=/^0o[0-7]+$/i,dI=parseInt;function hI(e){if(typeof e=="number")return e;if(uI(e))return sx;if(ox(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ox(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aI(e);var n=cI.test(e);return n||fI.test(e)?dI(e.slice(2),n?2:8):lI.test(e)?sx:+e}var pI=hI,gI=Ra,ov=R6,ax=pI,mI="Expected a function",vI=Math.max,yI=Math.min;function wI(e,t,n){var r,i,o,a,l,c,f=0,h=!1,g=!1,m=!0;if(typeof e!="function")throw new TypeError(mI);t=ax(t)||0,gI(n)&&(h=!!n.leading,g="maxWait"in n,o=g?vI(ax(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function y(k){var P=r,I=i;return r=i=void 0,f=k,a=e.apply(I,P),a}function v(k){return f=k,l=setTimeout(_,t),h?y(k):a}function p(k){var P=k-c,I=k-f,Q=t-P;return g?yI(Q,o-I):Q}function E(k){var P=k-c,I=k-f;return c===void 0||P>=t||P<0||g&&I>=o}function _(){var k=ov();if(E(k))return b(k);l=setTimeout(_,p(k))}function b(k){return l=void 0,m&&r?y(k):(r=i=void 0,a)}function x(){l!==void 0&&clearTimeout(l),f=0,r=c=i=l=void 0}function O(){return l===void 0?a:b(ov())}function B(){var k=ov(),P=E(k);if(r=arguments,i=this,c=k,P){if(l===void 0)return v(c);if(g)return clearTimeout(l),l=setTimeout(_,t),y(c)}return l===void 0&&(l=setTimeout(_,t)),a}return B.cancel=x,B.flush=O,B}var ux=wI;const bI=vr(ux);var _I=ux,CI=Ra,EI="Expected a function";function DI(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(EI);return CI(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_I(e,t,{leading:r,maxWait:t,trailing:i})}var xI=DI;const AI=vr(xI),lx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,cx=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",sv=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return cx(n.overflowY,t)||cx(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},bd=(e,t,n,r,i,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0,SI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},fx=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:c,boundary:f,skipOverflowHiddenElements:h}=t,g=typeof f=="function"?f:se=>se!==f;if(!lx(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let v=e;for(;lx(v)&&g(v);){if(v=SI(v),v===m){y.push(v);break}v!=null&&v===document.body&&sv(v)&&!sv(document.documentElement)||v!=null&&sv(v,h)&&y.push(v)}const p=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,E=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:_,scrollY:b}=window,{height:x,width:O,top:B,right:k,bottom:P,left:I}=e.getBoundingClientRect(),{top:Q,right:j,bottom:X,left:$}=(se=>{const re=window.getComputedStyle(se);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(e);let U=l==="start"||l==="nearest"?B-Q:l==="end"?P+X:B+x/2-Q+X,T=c==="center"?I+O/2-$+j:c==="end"?k+j:I-$;const G=[];for(let se=0;se<y.length;se++){const re=y[se],{height:V,width:te,top:le,right:ce,bottom:ye,left:De}=re.getBoundingClientRect();if(a==="if-needed"&&B>=0&&I>=0&&P<=E&&k<=p&&B>=le&&P<=ye&&I>=De&&k<=ce)return G;const Ce=getComputedStyle(re),L=parseInt(Ce.borderLeftWidth,10),ne=parseInt(Ce.borderTopWidth,10),J=parseInt(Ce.borderRightWidth,10),Y=parseInt(Ce.borderBottomWidth,10);let ge=0,he=0;const Pe="offsetWidth"in re?re.offsetWidth-re.clientWidth-L-J:0,me="offsetHeight"in re?re.offsetHeight-re.clientHeight-ne-Y:0,Fe="offsetWidth"in re?re.offsetWidth===0?0:te/re.offsetWidth:0,Se="offsetHeight"in re?re.offsetHeight===0?0:V/re.offsetHeight:0;if(m===re)ge=l==="start"?U:l==="end"?U-E:l==="nearest"?bd(b,b+E,E,ne,Y,b+U,b+U+x,x):U-E/2,he=c==="start"?T:c==="center"?T-p/2:c==="end"?T-p:bd(_,_+p,p,L,J,_+T,_+T+O,O),ge=Math.max(0,ge+b),he=Math.max(0,he+_);else{ge=l==="start"?U-le-ne:l==="end"?U-ye+Y+me:l==="nearest"?bd(le,ye,V,ne,Y+me,U,U+x,x):U-(le+V/2)+me/2,he=c==="start"?T-De-L:c==="center"?T-(De+te/2)+Pe/2:c==="end"?T-ce+J+Pe:bd(De,ce,te,L,J+Pe,T,T+O,O);const{scrollLeft:Re,scrollTop:Be}=re;ge=Se===0?0:Math.max(0,Math.min(Be+ge/Se,re.scrollHeight-V/Se+me)),he=Fe===0?0:Math.max(0,Math.min(Re+he/Fe,re.scrollWidth-te/Fe+Pe)),U+=Be-ge,T+=Re-he}G.push({el:re,top:ge,left:he})}return G},OI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function FI(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(fx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of fx(e,OI(t))){const l=o-n.top+n.bottom,c=a-n.left+n.right;i.scroll({top:l,left:c,behavior:r})}}/*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function dx(e){return Object.prototype.toString.call(e)==="[object Object]"}function nn(e){var t,n;return dx(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(dx(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var hx=Symbol.for("immer-nothing"),px=Symbol.for("immer-draftable"),ir=Symbol.for("immer-state");function Yr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ta=Object.getPrototypeOf;function ys(e){return!!e&&!!e[ir]}function ws(e){var t;return e?gx(e)||Array.isArray(e)||!!e[px]||!!((t=e.constructor)!=null&&t[px])||Cd(e)||Ed(e):!1}var BI=Object.prototype.constructor.toString();function gx(e){if(!e||typeof e!="object")return!1;const t=Ta(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===BI}function Ol(e,t){_d(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function _d(e){const t=e[ir];return t?t.type_:Array.isArray(e)?1:Cd(e)?2:Ed(e)?3:0}function av(e,t){return _d(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mx(e,t,n){const r=_d(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function kI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Cd(e){return e instanceof Map}function Ed(e){return e instanceof Set}function bs(e){return e.copy_||e.base_}function uv(e,t){if(Cd(e))return new Map(e);if(Ed(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&gx(e))return Ta(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ir];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Ta(e),n)}function lv(e,t=!1){return Dd(e)||ys(e)||!ws(e)||(_d(e)>1&&(e.set=e.add=e.clear=e.delete=PI),Object.freeze(e),t&&Ol(e,(n,r)=>lv(r,!0))),e}function PI(){Yr(2)}function Dd(e){return Object.isFrozen(e)}var RI={};function _s(e){const t=RI[e];return t||Yr(0,e),t}var Fl;function vx(){return Fl}function TI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yx(e,t){t&&(_s("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cv(e){fv(e),e.drafts_.forEach(II),e.drafts_=null}function fv(e){e===Fl&&(Fl=e.parent_)}function wx(e){return Fl=TI(Fl,e)}function II(e){const t=e[ir];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ir].modified_&&(cv(t),Yr(4)),ws(e)&&(e=xd(t,e),t.parent_||Ad(t,e)),t.patches_&&_s("Patches").generateReplacementPatches_(n[ir].base_,e,t.patches_,t.inversePatches_)):e=xd(t,n,[]),cv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hx?e:void 0}function xd(e,t,n){if(Dd(t))return t;const r=t[ir];if(!r)return Ol(t,(i,o)=>_x(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ad(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Ol(o,(l,c)=>_x(e,r,i,l,c,n,a)),Ad(e,i,!1),n&&e.patches_&&_s("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _x(e,t,n,r,i,o,a){if(ys(i)){const l=o&&t&&t.type_!==3&&!av(t.assigned_,r)?o.concat(r):void 0,c=xd(e,i,l);if(mx(n,r,c),ys(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ws(i)&&!Dd(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xd(e,i),(!t||!t.scope_.parent_)&&Ad(e,i)}}function Ad(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lv(t,n)}function NI(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vx(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=dv;n&&(i=[r],o=Bl);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=a,l}var dv={get(e,t){if(t===ir)return e;const n=bs(e);if(!av(n,t))return LI(e,n,t);const r=n[t];return e.finalized_||!ws(r)?r:r===hv(e.base_,t)?(gv(e),e.copy_[t]=mv(r,e)):r},has(e,t){return t in bs(e)},ownKeys(e){return Reflect.ownKeys(bs(e))},set(e,t,n){const r=Cx(bs(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=hv(bs(e),t),o=i==null?void 0:i[ir];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(kI(n,i)&&(n!==void 0||av(e.base_,t)))return!0;gv(e),pv(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return hv(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,gv(e),pv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=bs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Yr(11)},getPrototypeOf(e){return Ta(e.base_)},setPrototypeOf(){Yr(12)}},Bl={};Ol(dv,(e,t)=>{Bl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bl.deleteProperty=function(e,t){return Bl.set.call(this,e,t,void 0)},Bl.set=function(e,t,n){return dv.set.call(this,e[0],t,n,e[0])};function hv(e,t){const n=e[ir];return(n?bs(n):e)[t]}function LI(e,t,n){var i;const r=Cx(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Cx(e,t){if(!(t in e))return;let n=Ta(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ta(n)}}function pv(e){e.modified_||(e.modified_=!0,e.parent_&&pv(e.parent_))}function gv(e){e.copy_||(e.copy_=uv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var MI=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(c=o,...f){return a.produce(c,h=>n.call(this,h,...f))}}typeof n!="function"&&Yr(6),r!==void 0&&typeof r!="function"&&Yr(7);let i;if(ws(t)){const o=wx(this),a=mv(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?cv(o):fv(o)}return yx(o,r),bx(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===hx&&(i=void 0),this.autoFreeze_&&lv(i,!0),r){const o=[],a=[];_s("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Yr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ws(e)||Yr(8),ys(e)&&(e=$I(e));const t=wx(this),n=mv(e,void 0);return n[ir].isManual_=!0,fv(t),n}finishDraft(e,t){const n=e&&e[ir];(!n||!n.isManual_)&&Yr(9);const{scope_:r}=n;return yx(r,t),bx(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=_s("Patches").applyPatches_;return ys(e)?r(e,t):this.produce(e,i=>r(i,t))}};function mv(e,t){const n=Cd(e)?_s("MapSet").proxyMap_(e,t):Ed(e)?_s("MapSet").proxySet_(e,t):NI(e,t);return(t?t.scope_:vx()).drafts_.push(n),n}function $I(e){return ys(e)||Yr(10,e),Ex(e)}function Ex(e){if(!ws(e)||Dd(e))return e;const t=e[ir];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uv(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uv(e,!0);return Ol(n,(r,i)=>{mx(n,r,Ex(i))}),t&&(t.finalized_=!1),n}var or=new MI,vv=or.produce;or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseStrictShallowCopy.bind(or),or.applyPatches.bind(or);var Dx=or.createDraft.bind(or),xx=or.finishDraft.bind(or),jI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=N.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},zI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=je.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},UI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=q.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},Sd=new WeakMap,Od=new WeakMap,kl=new WeakMap,Ax=new WeakMap,Sx=new WeakMap,Ox=new WeakMap,Fx=new WeakMap,N={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=N.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r],o=t[r];if(i!==o)break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return N.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return N.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return N.equals(r,i)&&o<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return N.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&N.compare(e,t)===0},isBefore(e,t){return N.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&N.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&N.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&N.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&N.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),i=e[e.length-1],o=t[t.length-1];return i!==o&&N.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!N.isAncestor(t,e)&&!N.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:o}=t;(N.equals(o,r)||N.endsBefore(o,r)||N.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(N.equals(a,r)||N.isAncestor(a,r))return null;N.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:l,position:c}=t;N.equals(l,r)||N.endsBefore(l,r)?r[l.length-1]-=1:N.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=c);break}case"split_node":{var{path:f,position:h}=t;if(N.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else N.endsBefore(f,r)?r[f.length-1]+=1:N.isAncestor(f,r)&&e[f.length]>=h&&(r[f.length-1]+=1,r[f.length]-=h);break}case"move_node":{var{path:g,newPath:m}=t;if(N.equals(g,m))return r;if(N.isAncestor(g,r)||N.equals(g,r)){var y=m.slice();return N.endsBefore(g,m)&&g.length<m.length&&(y[g.length-1]-=1),y.concat(r.slice(g.length))}else N.isSibling(g,m)&&(N.isAncestor(m,r)||N.equals(m,r))?N.endsBefore(g,r)?r[g.length-1]-=1:r[g.length-1]+=1:N.endsBefore(m,r)||N.equals(m,r)||N.isAncestor(m,r)?(N.endsBefore(g,r)&&(r[g.length-1]-=1),r[m.length-1]+=1):N.endsBefore(g,r)&&(N.equals(m,r)&&(r[m.length-1]+=1),r[g.length-1]-=1);break}}return r}};function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function HI(e,t){if(Pl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WI(e){var t=HI(e,"string");return Pl(t)==="symbol"?t:String(t)}function Fn(e,t,n){return t=WI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var VI=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=de.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[l,c]of q.points(t))t[c]=je.transform(l,n);break}case"insert_text":{var{path:f,offset:h,text:g}=n;if(g.length===0)break;var m=de.leaf(e,f),y=m.text.slice(0,h),v=m.text.slice(h);if(m.text=y+g+v,t)for(var[p,E]of q.points(t))t[E]=je.transform(p,n);break}case"merge_node":{var{path:_}=n,b=de.get(e,_),x=N.previous(_),O=de.get(e,x),B=de.parent(e,_),k=_[_.length-1];if(Ee.isText(b)&&Ee.isText(O))O.text+=b.text;else if(!Ee.isText(b)&&!Ee.isText(O))O.children.push(...b.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(_,"] to nodes of different interfaces: ").concat(rn.stringify(b)," ").concat(rn.stringify(O)));if(B.children.splice(k,1),t)for(var[P,I]of q.points(t))t[I]=je.transform(P,n);break}case"move_node":{var{path:Q,newPath:j}=n;if(N.isAncestor(Q,j))throw new Error("Cannot move a path [".concat(Q,"] to new path [").concat(j,"] because the destination is inside itself."));var X=de.get(e,Q),$=de.parent(e,Q),U=Q[Q.length-1];$.children.splice(U,1);var T=N.transform(Q,n),G=de.get(e,N.parent(T)),se=T[T.length-1];if(G.children.splice(se,0,X),t)for(var[re,V]of q.points(t))t[V]=je.transform(re,n);break}case"remove_node":{var{path:te}=n,le=te[te.length-1],ce=de.parent(e,te);if(ce.children.splice(le,1),t)for(var[ye,De]of q.points(t)){var Ce=je.transform(ye,n);if(t!=null&&Ce!=null)t[De]=Ce;else{var L=void 0,ne=void 0;for(var[J,Y]of de.texts(e))if(N.compare(Y,te)===-1)L=[J,Y];else{ne=[J,Y];break}var ge=!1;L&&ne&&(N.equals(ne[1],te)?ge=!N.hasPrevious(ne[1]):ge=N.common(L[1],te).length<N.common(ne[1],te).length),L&&!ge?(ye.path=L[1],ye.offset=L[0].text.length):ne?(ye.path=ne[1],ye.offset=0):t=null}}break}case"remove_text":{var{path:he,offset:Pe,text:me}=n;if(me.length===0)break;var Fe=de.leaf(e,he),Se=Fe.text.slice(0,Pe),Re=Fe.text.slice(Pe+me.length);if(Fe.text=Se+Re,t)for(var[Be,ke]of q.points(t))t[ke]=je.transform(Be,n);break}case"set_node":{var{path:ct,properties:Mt,newProperties:At}=n;if(ct.length===0)throw new Error("Cannot set properties on the root node!");var ht=de.get(e,ct);for(var rt in At){if(rt==="children"||rt==="text")throw new Error('Cannot set the "'.concat(rt,'" property of nodes!'));var Kt=At[rt];Kt==null?delete ht[rt]:ht[rt]=Kt}for(var ve in Mt)At.hasOwnProperty(ve)||delete ht[ve];break}case"set_selection":{var{newProperties:be}=n;if(be==null)t=be;else{if(t==null){if(!q.isRange(be))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rn.stringify(be)," when there is no current selection."));t=Rl({},be)}for(var Ze in be){var it=be[Ze];if(it==null){if(Ze==="anchor"||Ze==="focus")throw new Error('Cannot remove the "'.concat(Ze,'" selection property'));delete t[Ze]}else t[Ze]=it}}break}case"split_node":{var{path:Je,position:qt,properties:sn}=n;if(Je.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Je,"] because the root node cannot be split."));var pn=de.get(e,Je),cr=de.parent(e,Je),Pr=Je[Je.length-1],Rr;if(Ee.isText(pn)){var Gi=pn.text.slice(0,qt),Qi=pn.text.slice(qt);pn.text=Gi,Rr=Rl(Rl({},sn),{},{text:Qi})}else{var Yi=pn.children.slice(0,qt),Ls=pn.children.slice(qt);pn.children=Yi,Rr=Rl(Rl({},sn),{},{children:Ls})}if(cr.children.splice(Pr+1,0,Rr),t)for(var[cc,_y]of q.points(t))t[_y]=je.transform(cc,n);break}}return t},KI={transform(e,t){e.children=Dx(e.children);var n=e.selection&&Dx(e.selection);try{n=VI(e,n,t)}finally{e.children=xx(e.children),n?e.selection=ys(n)?xx(n):n:e.selection=null}}},qI={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},GI={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},kx=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(nn(r)&&nn(i)){if(!kx(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function QI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ji(e,t){if(e==null)return{};var n=QI(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var YI=["anchor","focus"];function Px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Px(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var q={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return q.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=q.edges(e);return t},equals(e,t){return je.equals(e.anchor,t.anchor)&&je.equals(e.focus,t.focus)},includes(e,t){if(q.isRange(t)){if(q.includes(e,t.anchor)||q.includes(e,t.focus))return!0;var[n,r]=q.edges(e),[i,o]=q.edges(t);return je.isBefore(n,i)&&je.isAfter(r,o)}var[a,l]=q.edges(e),c=!1,f=!1;return je.isPoint(t)?(c=je.compare(t,a)>=0,f=je.compare(t,l)<=0):(c=N.compare(t,a.path)>=0,f=N.compare(t,l.path)<=0),c&&f},intersection(e,t){var n=ji(e,YI),[r,i]=q.edges(e),[o,a]=q.edges(t),l=je.isBefore(r,o)?o:r,c=je.isBefore(i,a)?i:a;return je.isBefore(c,l)?null:JI({anchor:l,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return je.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return je.equals(t,n)},isExpanded(e){return!q.isCollapsed(e)},isForward(e){return!q.isBackward(e)},isRange(e){return nn(e)&&je.isPoint(e.anchor)&&je.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=q.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return vv(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var l=q.isCollapsed(r);q.isForward(r)?(o="forward",a=l?o:"backward"):(o="backward",a=l?o:"forward")}else i==="outward"?q.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var c=je.transform(r.anchor,t,{affinity:o}),f=je.transform(r.focus,t,{affinity:a});if(!c||!f)return null;r.anchor=c,r.focus=f})}},Rx=e=>nn(e)&&de.isNodeList(e.children)&&!C.isEditor(e),we={isAncestor(e){return nn(e)&&de.isNodeList(e.children)},isElement:Rx,isElementList(e){return Array.isArray(e)&&e.every(t=>we.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Rx(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},XI=["children"],ZI=["text"],Tx=new WeakMap,de={ancestor(e,t){var n=de.get(e,t);if(Ee.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(rn.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of N.ancestors(t,n)){var i=de.ancestor(e,r),o=[i,r];yield o}}()},child(e,t){if(Ee.isText(e))throw new Error("Cannot get the child of a text node: ".concat(rn.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(rn.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,i=de.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var l=de.child(i,a),c=t.concat(a);yield[l,c],a=r?a-1:a+1}}()},common(e,t,n){var r=N.common(t,n),i=de.get(e,r);return[i,r]},descendant(e,t){var n=de.get(e,t);if(C.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(rn.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of de.nodes(e,t))r.length!==0&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of de.nodes(e,t))we.isElement(n)&&(yield[n,r])}()},extractProps(e){if(we.isAncestor(e)){var t=ji(e,XI);return t}else{var t=ji(e,ZI);return t}},first(e,t){for(var n=t.slice(),r=de.get(e,n);r&&!(Ee.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Ee.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(rn.stringify(e)));var n=vv({children:e.children},r=>{var[i,o]=q.edges(t),a=de.nodes(r,{reverse:!0,pass:m=>{var[,y]=m;return!q.includes(t,y)}});for(var[,l]of a){if(!q.includes(t,l)){var c=de.parent(r,l),f=l[l.length-1];c.children.splice(f,1)}if(N.equals(l,o.path)){var h=de.leaf(r,l);h.text=h.text.slice(0,o.offset)}if(N.equals(l,i.path)){var g=de.leaf(r,l);g.text=g.text.slice(i.offset)}}C.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(Ee.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(rn.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(Ee.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return Ee.isText(e)||we.isElement(e)||C.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=Tx.get(e);if(t!==void 0)return t;var n=e.every(r=>de.isNode(r));return Tx.set(e,n),n},last(e,t){for(var n=t.slice(),r=de.get(e,n);r&&!(Ee.isText(r)||r.children.length===0);){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=de.get(e,t);if(!Ee.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(rn.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of N.levels(t,n)){var i=de.get(e,r);yield[i,r]}}()},matches(e,t){return we.isElement(e)&&we.isElementProps(t)&&we.matches(e,t)||Ee.isText(e)&&Ee.isTextProps(t)&&Ee.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,l=[],c=e;!(o&&(r?N.isBefore(l,o):N.isAfter(l,o)));){if(a.has(c)||(yield[c,l]),!a.has(c)&&!Ee.isText(c)&&c.children.length!==0&&(n==null||n([c,l])===!1)){a.add(c);var f=r?c.children.length-1:0;N.isAncestor(l,i)&&(f=i[l.length]),l=l.concat(f),c=de.get(e,l);continue}if(l.length===0)break;if(!r){var h=N.next(l);if(de.has(e,h)){l=h,c=de.get(e,l);continue}}if(r&&l[l.length-1]!==0){var g=N.previous(l);l=g,c=de.get(e,l);continue}l=N.parent(l),c=de.get(e,l),a.add(c)}}()},parent(e,t){var n=N.parent(t),r=de.get(e,n);if(Ee.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Ee.isText(e)?e.text:e.children.map(de.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of de.nodes(e,t))Ee.isText(n)&&(yield[n,r])}()}};function Ix(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ix(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ix(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Bo={isNodeOperation(e){return Bo.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!nn(e))return!1;switch(e.type){case"insert_node":return N.isPath(e.path)&&de.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&N.isPath(e.path);case"merge_node":return typeof e.position=="number"&&N.isPath(e.path)&&nn(e.properties);case"move_node":return N.isPath(e.path)&&N.isPath(e.newPath);case"remove_node":return N.isPath(e.path)&&de.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&N.isPath(e.path);case"set_node":return N.isPath(e.path)&&nn(e.properties)&&nn(e.newProperties);case"set_selection":return e.properties===null&&q.isRange(e.newProperties)||e.newProperties===null&&q.isRange(e.properties)||nn(e.properties)&&nn(e.newProperties);case"split_node":return N.isPath(e.path)&&typeof e.position=="number"&&nn(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Bo.isOperation(t))},isSelectionOperation(e){return Bo.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Bo.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Dt(Dt({},e),{},{type:"remove_node"});case"insert_text":return Dt(Dt({},e),{},{type:"remove_text"});case"merge_node":return Dt(Dt({},e),{},{type:"split_node",path:N.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(N.equals(t,n))return e;if(N.isSibling(n,t))return Dt(Dt({},e),{},{path:t,newPath:n});var r=N.transform(n,e),i=N.transform(N.next(n),e);return Dt(Dt({},e),{},{path:r,newPath:i})}case"remove_node":return Dt(Dt({},e),{},{type:"insert_node"});case"remove_text":return Dt(Dt({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return Dt(Dt({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:l,newProperties:c}=e;return l==null?Dt(Dt({},e),{},{properties:c,newProperties:null}):c==null?Dt(Dt({},e),{},{properties:null,newProperties:l}):Dt(Dt({},e),{},{properties:c,newProperties:l})}case"split_node":return Dt(Dt({},e),{},{type:"merge_node",path:N.next(e.path)})}}},Nx=new WeakMap,e7=e=>{var t=Nx.get(e);if(t!==void 0)return t;if(!nn(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||nn(e.marks))&&(e.selection===null||q.isRange(e.selection))&&de.isNodeList(e.children)&&Bo.isOperationList(e.operations);return Nx.set(e,n),n},C={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return e7(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}},t7={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(N.isPath)}};function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var je={compare(e,t){var n=N.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return je.compare(e,t)===1},isBefore(e,t){return je.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&N.equals(e.path,t.path)},isPoint(e){return nn(e)&&typeof e.offset=="number"&&N.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return vv(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:o,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=N.transform(o,t,n);break}case"insert_text":{N.equals(t.path,o)&&(t.offset<a||t.offset===a&&i==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{N.equals(t.path,o)&&(r.offset+=t.position),r.path=N.transform(o,t,n);break}case"remove_text":{N.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(N.equals(t.path,o)||N.isAncestor(t.path,o))return null;r.path=N.transform(o,t,n);break}case"split_node":{if(N.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position<a||t.position===a&&i==="forward")&&(r.offset-=t.position,r.path=N.transform(o,t,Mx(Mx({},n),{},{affinity:"forward"})))}else r.path=N.transform(o,t,n);break}}})}},$x=void 0,rn={setScrubber(e){$x=e},stringify(e){return JSON.stringify(e,$x)}},n7=["text"],r7=["anchor","focus"];function jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ee={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=ji(o,n7);return a}return kx(r?i(e):e,r?i(t):t)},isText(e){return nn(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Ee.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[zi({},e)];for(var r of t){var i=ji(r,r7),[o,a]=q.edges(r),l=[],c=0,f=o.offset,h=a.offset;for(var g of n){var{length:m}=g.text,y=c;if(c+=m,f<=y&&c<=h){Object.assign(g,i),l.push(g);continue}if(f!==h&&(f===c||h===y)||f>c||h<y||h===y&&y!==0){l.push(g);continue}var v=g,p=void 0,E=void 0;if(h<c){var _=h-y;E=zi(zi({},v),{},{text:v.text.slice(_)}),v=zi(zi({},v),{},{text:v.text.slice(0,_)})}if(f>y){var b=f-y;p=zi(zi({},v),{},{text:v.text.slice(0,b)}),v=zi(zi({},v),{},{text:v.text.slice(b)})}Object.assign(v,i),p&&l.push(p),l.push(v),E&&l.push(E)}n=l}return n}},yv=e=>e.selection?e.selection:e.children.length>0?C.end(e,[]):[0],Ia=(e,t)=>{var[n]=C.node(e,t);return r=>r===n},wv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?l7(t):t,o=Me.None,a=Me.None,l=0,c=null,f=null;for(var h of i){var g=h.codePointAt(0);if(!g)break;var m=_7(h,g);if([o,a]=r?[a,m]:[m,o],Na(o,Me.ZWJ)&&Na(a,Me.ExtPict)&&(r?c=zx(t.substring(0,l)):c=zx(t.substring(0,t.length-l)),!c)||Na(o,Me.RI)&&Na(a,Me.RI)&&(f!==null?f=!f:r?f=!0:f=A7(t.substring(0,t.length-l)),!f)||o!==Me.None&&a!==Me.None&&E7(o,a))break;l+=h.length}return l||1},i7=/\s/,o7=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,s7=/['\u2018\u2019]/,a7=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=wv(t,n),[a,l]=bv(t,o,n);if(u7(a,l,n))i=!0,r+=o;else if(!i)r+=o;else break;t=l}return r},bv=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},u7=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(i7.test(t))return!1;if(s7.test(t)){var i=wv(n,r),[o,a]=bv(n,i,r);if(e(o,a,r))return!0}return!o7.test(t)},l7=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(f7(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(c7(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},c7=e=>e>=55296&&e<=56319,f7=e=>e>=56320&&e<=57343,Me;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Me||(Me={}));var d7=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,h7=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,p7=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,g7=/^[\u1100-\u115F\uA960-\uA97C]$/,m7=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,v7=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,y7=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,w7=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,b7=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,_7=(e,t)=>{var n=Me.Any;return e.search(d7)!==-1&&(n|=Me.Extend),t===8205&&(n|=Me.ZWJ),t>=127462&&t<=127487&&(n|=Me.RI),e.search(h7)!==-1&&(n|=Me.Prepend),e.search(p7)!==-1&&(n|=Me.SpacingMark),e.search(g7)!==-1&&(n|=Me.L),e.search(m7)!==-1&&(n|=Me.V),e.search(v7)!==-1&&(n|=Me.T),e.search(y7)!==-1&&(n|=Me.LV),e.search(w7)!==-1&&(n|=Me.LVT),e.search(b7)!==-1&&(n|=Me.ExtPict),n};function Na(e,t){return(e&t)!==0}var C7=[[Me.L,Me.L|Me.V|Me.LV|Me.LVT],[Me.LV|Me.V,Me.V|Me.T],[Me.LVT|Me.T,Me.T],[Me.Any,Me.Extend|Me.ZWJ],[Me.Any,Me.SpacingMark],[Me.Prepend,Me.Any],[Me.ZWJ,Me.ExtPict],[Me.RI,Me.RI]];function E7(e,t){return C7.findIndex(n=>Na(e,n[0])&&Na(t,n[1]))===-1}var D7=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,zx=e=>e.search(D7)!==-1,x7=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,A7=e=>{var t=e.match(x7);if(t===null)return!1;var n=t[0].length/2;return n%2===1},S7={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=yv(e)}=n;if(N.isPath(i)&&(i=C.range(e,i)),q.isRange(i))if(q.isCollapsed(i))i=i.anchor;else{var o=q.end(i);if(!r&&C.void(e,{at:o}))return;var a=q.start(i),l=C.pointRef(e,a),c=C.pointRef(e,o);K.delete(e,{at:i,voids:r});var f=l.unref(),h=c.unref();i=f||h,K.setSelection(e,{anchor:i,focus:i})}if(!(!r&&C.void(e,{at:i})||C.elementReadOnly(e,{at:i}))){var{path:g,offset:m}=i;t.length>0&&e.apply({type:"insert_text",path:g,offset:m,text:t})}})}};function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var K=Fd(Fd(Fd(Fd({},KI),qI),GI),S7),Bd=new WeakMap,O7=e=>Bd.get(e)||!1,F7=(e,t,n)=>{var r=Bd.get(e)||!1;Bd.set(e,!0);try{t(),n()}finally{Bd.set(e,r)}};function Hx(e,t,n){var r=Sd.get(e)||[],i=Od.get(e)||new Set,o,a,l=g=>{if(g){var m=g.join(",");a.has(m)||(a.add(m),o.push(g))}};if(n){o=[],a=new Set;for(var c of r){var f=n(c);l(f)}}else o=r,a=i;for(var h of t)l(h);Sd.set(e,o),Od.set(e,a)}var B7=(e,t)=>{for(var n of C.pathRefs(e))jI.transform(n,t);for(var r of C.pointRefs(e))zI.transform(r,t);for(var i of C.rangeRefs(e))UI.transform(i,t);if(!O7(e)){var o=N.operationCanTransformPath(t)?a=>N.transform(a,t):void 0;Hx(e,e.getDirtyPaths(t),o)}K.transform(e,t),e.operations.push(t),C.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),kl.get(e)||(kl.set(e,!0),Promise.resolve().then(()=>{kl.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},k7=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return N.levels(n)}case"insert_node":{var{node:r,path:i}=t,o=N.levels(i),a=Ee.isText(r)?[]:Array.from(de.nodes(r),j=>{var[,X]=j;return i.concat(X)});return[...o,...a]}case"merge_node":{var{path:l}=t,c=N.ancestors(l),f=N.previous(l);return[...c,f]}case"move_node":{var{path:h,newPath:g}=t;if(N.equals(h,g))return[];var m=[],y=[];for(var v of N.ancestors(h)){var p=N.transform(v,t);m.push(p)}for(var E of N.ancestors(g)){var _=N.transform(E,t);y.push(_)}var b=y[y.length-1],x=g[g.length-1],O=b.concat(x);return[...m,...y,O]}case"remove_node":{var{path:B}=t,k=N.ancestors(B);return[...k]}case"split_node":{var{path:P}=t,I=N.levels(P),Q=N.next(P);return[...I,Q]}default:return[]}},P7=e=>{var{selection:t}=e;return t?de.fragment(e,t):[]},R7=(e,t)=>{var[n,r]=t;if(!Ee.isText(n)){if(we.isElement(n)&&n.children.length===0){var i={text:""};K.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=C.isEditor(n)?!1:we.isElement(n)&&(e.isInline(n)||n.children.length===0||Ee.isText(n.children[0])||e.isInline(n.children[0])),a=0,l=0;l<n.children.length;l++,a++){var c=de.get(e,r);if(!Ee.isText(c)){var f=c.children[a],h=c.children[a-1],g=l===n.children.length-1,m=Ee.isText(f)||we.isElement(f)&&e.isInline(f);if(m!==o)K.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(we.isElement(f)){if(e.isInline(f)){if(h==null||!Ee.isText(h)){var y={text:""};K.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(g){var v={text:""};K.insertNodes(e,v,{at:r.concat(a+1),voids:!0}),a++}}}else h!=null&&Ee.isText(h)&&(Ee.equals(f,h,{loose:!0})?(K.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):h.text===""?(K.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):f.text===""&&(K.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},T7=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,i=r*42;if(n>i)throw new Error("Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},I7=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:i="lowest",at:o=t.selection,match:a}=n;if(o){var l=C.path(t,o),c=i==="lowest";for(var[f,h]of C.levels(t,{at:l,voids:r,match:a,reverse:c}))if(!Ee.isText(f)){if(q.isRange(o)){if(N.isAncestor(h,o.anchor.path)&&N.isAncestor(h,o.focus.path))return[f,h]}else if(!N.equals(l,h))return[f,h]}}};function Wx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N7=(e,t,n)=>{var{selection:r}=e;if(r){var i=(g,m)=>{if(!Ee.isText(g))return!1;var[y,v]=C.parent(e,m);return!e.isVoid(y)||e.markableVoid(y)},o=q.isExpanded(r),a=!1;if(!o){var[l,c]=C.node(e,r);if(l&&i(l,c)){var[f]=C.parent(e,c);a=f&&e.markableVoid(f)}}if(o||a)K.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var h=Vx(Vx({},C.marks(e)||{}),{},{[t]:n});e.marks=h,kl.get(e)||e.onChange()}}};function Kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var L7=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=C.point(t,n,{edge:"end"}),o=C.end(t,[]),a={anchor:i,focus:o},{distance:l=1}=r,c=0,f;for(var h of C.positions(t,qx(qx({},r),{},{at:a}))){if(c>l)break;c!==0&&(f=h),c++}return f};function Gx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var M7=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=C.start(t,[]),o=C.point(t,n,{edge:"start"}),a={anchor:i,focus:o},{distance:l=1}=r,c=0,f;for(var h of C.positions(t,Qx(Qx({},r),{},{at:a,reverse:!0}))){if(c>l)break;c!==0&&(f=h),c++}return f},$7=(e,t)=>{var{selection:n}=e;n&&q.isCollapsed(n)&&K.delete(e,{unit:t,reverse:!0})},j7=(e,t)=>{var{selection:n}=e;n&&q.isCollapsed(n)&&K.delete(e,{unit:t})},z7=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&q.isExpanded(r)&&K.delete(t,{reverse:n==="backward"})},U7=(e,t)=>[C.start(e,t),C.end(e,t)];function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var H7=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,Jx(Jx({},n),{},{match:r=>we.isElement(r)&&C.isElementReadOnly(t,r)}))},W7=(e,t)=>C.point(e,t,{edge:"end"}),V7=(e,t)=>{var n=C.path(e,t,{edge:"start"});return C.node(e,n)},K7=(e,t)=>{var n=C.range(e,t);return de.fragment(e,n)};function Xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xx(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var q7=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,Zx(Zx({},n),{},{match:r=>we.isElement(r)&&C.isVoid(t,r)}))},G7=(e,t)=>t.children.some(n=>we.isElement(n)&&C.isBlock(e,n)),Q7=(e,t)=>t.children.some(n=>Ee.isText(n)||C.isInline(e,n)),Y7=(e,t)=>de.has(e,t),J7=(e,t)=>t.children.every(n=>Ee.isText(n)),X7=e=>{K.splitNodes(e,{always:!0})},Z7=(e,t,n)=>{K.insertNodes(e,t,n)},eN=e=>{K.splitNodes(e,{always:!0})};function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var nN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:i,marks:o}=t;if(i){if(o){var a=tN({text:n},o);K.insertNodes(t,a,{at:r.at,voids:r.voids})}else K.insertText(t,n,r);t.marks=null}},rN=(e,t)=>!e.isInline(t),iN=(e,t,n)=>C.isStart(e,t,n)||C.isEnd(e,t,n),oN=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Ee.isText(r)&&r.text===""&&!e.isVoid(t)},sN=(e,t,n)=>{var r=C.end(e,n);return je.equals(t,r)},aN=e=>{var t=Ax.get(e);return t===void 0?!0:t},uN=(e,t,n)=>{if(t.offset!==0)return!1;var r=C.start(e,n);return je.equals(t,r)},lN=(e,t)=>{var n=C.path(e,t,{edge:"end"});return C.node(e,n)},cN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=C.path(t,n,r),o=de.leaf(t,i);return[o,i]};function fN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),!!n){var a=[],l=C.path(e,n);for(var[c,f]of de.levels(e,l))if(o(c,f)&&(a.push([c,f]),!i&&we.isElement(c)&&C.isVoid(e,c)))break;r&&a.reverse(),yield*a}}()}var dN=["text"],hN=["text"],pN=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:i,focus:o}=r;if(n)return n;if(q.isExpanded(r)){var a=C.isEnd(t,i,i.path);if(a){var l=C.after(t,i);l&&(i=l)}var[c]=C.nodes(t,{match:Ee.isText,at:{anchor:i,focus:o}});if(c){var[f]=c,h=ji(f,dN);return h}else return{}}var{path:g}=i,[m]=C.leaf(t,g);if(i.offset===0){var y=C.previous(t,{at:g,match:Ee.isText}),v=C.above(t,{match:O=>we.isElement(O)&&C.isVoid(t,O)&&t.markableVoid(O)});if(!v){var p=C.above(t,{match:O=>we.isElement(O)&&C.isBlock(t,O)});if(y&&p){var[E,_]=y,[,b]=p;N.isAncestor(b,_)&&(m=E)}}}var x=ji(m,hN);return x},gN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:i=!1}=n,{match:o,at:a=t.selection}=n;if(a){var l=C.after(t,a,{voids:i});if(l){var[,c]=C.last(t,[]),f=[l.path,c];if(N.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(N.isPath(a)){var[h]=C.parent(t,a);o=m=>h.children.includes(m)}else o=()=>!0;var[g]=C.nodes(t,{at:f,match:o,mode:r,voids:i});return g}}},mN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=C.path(t,n,r),o=de.get(t,i);return[o,i]};function vN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1,ignoreNonSelectable:l=!1}=t,{match:c}=t;if(c||(c=()=>!0),!!n){var f,h;if(t7.isSpan(n))f=n[0],h=n[1];else{var g=C.path(e,n,{edge:"start"}),m=C.path(e,n,{edge:"end"});f=o?m:g,h=o?g:m}var y=de.nodes(e,{reverse:o,from:f,to:h,pass:O=>{var[B]=O;return we.isElement(B)?!!(!a&&(C.isVoid(e,B)||C.isElementReadOnly(e,B))||l&&!C.isSelectable(e,B)):!1}}),v=[],p;for(var[E,_]of y)if(!(l&&we.isElement(E)&&!C.isSelectable(e,E))){var b=p&&N.compare(_,p[1])===0;if(!(r==="highest"&&b)){if(!c(E,_)){if(i&&!b&&Ee.isText(E))return;continue}if(r==="lowest"&&b){p=[E,_];continue}var x=r==="lowest"?p:[E,_];x&&(i?v.push(x):yield x),p=[E,_]}}r==="lowest"&&p&&(i?v.push(p):yield p),i&&(yield*v)}}()}var yN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:i}=n,o=h=>Sd.get(h)||[],a=h=>Od.get(h)||new Set,l=h=>{var g=o(h).pop(),m=g.join(",");return a(h).delete(m),g};if(C.isNormalizing(t)){if(r){var c=Array.from(de.nodes(t),h=>{var[,g]=h;return g}),f=new Set(c.map(h=>h.join(",")));Sd.set(t,c),Od.set(t,f)}o(t).length!==0&&C.withoutNormalizing(t,()=>{for(var h of o(t))if(de.has(t,h)){var g=C.node(t,h),[m,y]=g;we.isElement(m)&&m.children.length===0&&t.normalizeNode(g,{operation:i})}for(var v=o(t),p=v.length,E=0;v.length!==0;){if(!t.shouldNormalize({dirtyPaths:v,iteration:E,initialDirtyPathsLength:p,operation:i}))return;var _=l(t);if(de.has(t,_)){var b=C.node(t,_);t.normalizeNode(b,{operation:i})}E++,v=o(t)}})}},wN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=C.path(t,n,r),o=N.parent(i),a=C.node(t,o);return a},bN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:i="forward"}=r,o={current:n,affinity:i,unref(){var{current:l}=o,c=C.pathRefs(t);return c.delete(o),o.current=null,l}},a=C.pathRefs(t);return a.add(o),o},_N=e=>{var t=Sx.get(e);return t||(t=new Set,Sx.set(e,t)),t},CN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:i,edge:o}=r;if(N.isPath(n)){if(o==="start"){var[,a]=de.first(t,n);n=a}else if(o==="end"){var[,l]=de.last(t,n);n=l}}return q.isRange(n)&&(o==="start"?n=q.start(n):o==="end"?n=q.end(n):n=N.common(n.anchor.path,n.focus.path)),je.isPoint(n)&&(n=n.path),i!=null&&(n=n.slice(0,i)),n},EN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:i="forward"}=r,o={current:n,affinity:i,unref(){var{current:l}=o,c=C.pointRefs(t);return c.delete(o),o.current=null,l}},a=C.pointRefs(t);return a.add(o),o},DN=e=>{var t=Ox.get(e);return t||(t=new Set,Ox.set(e,t)),t},xN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:i="start"}=r;if(N.isPath(n)){var o;if(i==="end"){var[,a]=de.last(t,n);o=a}else{var[,l]=de.first(t,n);o=l}var c=de.get(t,o);if(!Ee.isText(c))throw new Error("Cannot get the ".concat(i," point in the node at path [").concat(n,"] because it has no ").concat(i," text node."));return{path:o,offset:i==="end"?c.text.length:0}}if(q.isRange(n)){var[f,h]=q.edges(n);return i==="start"?f:h}return n};function AN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1,ignoreNonSelectable:a=!1}=t;if(!n)return;var l=C.range(e,n),[c,f]=q.edges(l),h=i?f:c,g=!1,m="",y=0,v=0,p=0;for(var[E,_]of C.nodes(e,{at:n,reverse:i,voids:o,ignoreNonSelectable:a})){if(we.isElement(E)){if(!o&&(e.isVoid(E)||e.isElementReadOnly(E))){yield C.start(e,_);continue}if(e.isInline(E))continue;if(C.hasInlines(e,E)){var b=N.isAncestor(_,f.path)?f:C.end(e,_),x=N.isAncestor(_,c.path)?c:C.start(e,_);m=C.string(e,{anchor:x,focus:b},{voids:o}),g=!0}}if(Ee.isText(E)){var O=N.equals(_,h.path);for(O?(v=i?h.offset:E.text.length-h.offset,p=h.offset):(v=E.text.length,p=i?v:0),(O||g||r==="offset")&&(yield{path:_,offset:p},g=!1);;){if(y===0){if(m==="")break;y=B(m,r,i),m=bv(m,y,i)[1]}if(p=i?p-y:p+y,v=v-y,v<0){y=-v;break}y=0,yield{path:_,offset:p}}}}function B(k,P,I){return P==="character"?wv(k,I):P==="word"?a7(k,I):P==="line"||P==="block"?k.length:1}}()}var SN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:i=!1}=n,{match:o,at:a=t.selection}=n;if(a){var l=C.before(t,a,{voids:i});if(l){var[,c]=C.first(t,[]),f=[l.path,c];if(N.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(N.isPath(a)){var[h]=C.parent(t,a);o=m=>h.children.includes(m)}else o=()=>!0;var[g]=C.nodes(t,{reverse:!0,at:f,match:o,mode:r,voids:i});return g}}},ON=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:i="forward"}=r,o={current:n,affinity:i,unref(){var{current:l}=o,c=C.rangeRefs(t);return c.delete(o),o.current=null,l}},a=C.rangeRefs(t);return a.add(o),o},FN=e=>{var t=Fx.get(e);return t||(t=new Set,Fx.set(e,t)),t},BN=(e,t,n)=>{if(q.isRange(t)&&!n)return t;var r=C.start(e,t),i=C.end(e,n||t);return{anchor:r,focus:i}};function t2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PN=(e,t)=>{var{selection:n}=e;if(n){var r=(h,g)=>{if(!Ee.isText(h))return!1;var[m,y]=C.parent(e,g);return!e.isVoid(m)||e.markableVoid(m)},i=q.isExpanded(n),o=!1;if(!i){var[a,l]=C.node(e,n);if(a&&r(a,l)){var[c]=C.parent(e,l);o=c&&e.markableVoid(c)}}if(i||o)K.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var f=kN({},C.marks(e)||{});delete f[t],e.marks=f,kl.get(e)||e.onChange()}}},RN=(e,t)=>{Ax.set(e,t)},TN=(e,t)=>C.point(e,t,{edge:"start"}),IN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:i=!1}=r,o=C.range(t,n),[a,l]=q.edges(o),c="";for(var[f,h]of C.nodes(t,{at:o,match:Ee.isText,voids:i})){var g=f.text;N.equals(h,l.path)&&(g=g.slice(0,l.offset)),N.equals(h,a.path)&&(g=g.slice(a.offset)),c+=g}return c},NN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:i=!1}=r,[o,a]=q.edges(n);if(o.offset!==0||a.offset!==0||q.isCollapsed(n)||N.hasPrevious(a.path))return n;var l=C.above(t,{at:a,match:v=>we.isElement(v)&&C.isBlock(t,v),voids:i}),c=l?l[1]:[],f=C.start(t,o),h={anchor:f,focus:a},g=!0;for(var[m,y]of C.nodes(t,{at:h,match:Ee.isText,reverse:!0,voids:i})){if(g){g=!1;continue}if(m.text!==""||N.isBefore(y,c)){a={path:y,offset:m.text.length};break}}return{anchor:o,focus:a}},LN=(e,t)=>{var n=C.isNormalizing(e);C.setNormalizing(e,!1);try{t()}finally{C.setNormalizing(e,n)}C.normalize(e)},MN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var r,i,{reverse:o=!1,unit:a="character",distance:l=1,voids:c=!1}=n,{at:f=t.selection,hanging:h=!1}=n;if(f){var g=!1;if(q.isRange(f)&&q.isCollapsed(f)&&(g=!0,f=f.anchor),je.isPoint(f)){var m=C.void(t,{at:f,mode:"highest"});if(!c&&m){var[,y]=m;f=y}else{var v={unit:a,distance:l},p=o?C.before(t,f,v)||C.start(t,[]):C.after(t,f,v)||C.end(t,[]);f={anchor:f,focus:p},h=!0}}if(N.isPath(f)){K.removeNodes(t,{at:f,voids:c});return}if(!q.isCollapsed(f)){if(!h){var[,E]=q.edges(f),_=C.end(t,[]);je.equals(E,_)||(f=C.unhangRange(t,f,{voids:c}))}var[b,x]=q.edges(f),O=C.above(t,{match:Se=>we.isElement(Se)&&C.isBlock(t,Se),at:b,voids:c}),B=C.above(t,{match:Se=>we.isElement(Se)&&C.isBlock(t,Se),at:x,voids:c}),k=O&&B&&!N.equals(O[1],B[1]),P=N.equals(b.path,x.path),I=c?null:(r=C.void(t,{at:b,mode:"highest"}))!==null&&r!==void 0?r:C.elementReadOnly(t,{at:b,mode:"highest"}),Q=c?null:(i=C.void(t,{at:x,mode:"highest"}))!==null&&i!==void 0?i:C.elementReadOnly(t,{at:x,mode:"highest"});if(I){var j=C.before(t,b);j&&O&&N.isAncestor(O[1],j.path)&&(b=j)}if(Q){var X=C.after(t,x);X&&B&&N.isAncestor(B[1],X.path)&&(x=X)}var $=[],U;for(var T of C.nodes(t,{at:f,voids:c})){var[G,se]=T;U&&N.compare(se,U)===0||(!c&&we.isElement(G)&&(C.isVoid(t,G)||C.isElementReadOnly(t,G))||!N.isCommon(se,b.path)&&!N.isCommon(se,x.path))&&($.push(T),U=se)}var re=Array.from($,Se=>{var[,Re]=Se;return C.pathRef(t,Re)}),V=C.pointRef(t,b),te=C.pointRef(t,x),le="";if(!P&&!I){var ce=V.current,[ye]=C.leaf(t,ce),{path:De}=ce,{offset:Ce}=b,L=ye.text.slice(Ce);L.length>0&&(t.apply({type:"remove_text",path:De,offset:Ce,text:L}),le=L)}if(re.reverse().map(Se=>Se.unref()).filter(Se=>Se!==null).forEach(Se=>K.removeNodes(t,{at:Se,voids:c})),!Q){var ne=te.current,[J]=C.leaf(t,ne),{path:Y}=ne,ge=P?b.offset:0,he=J.text.slice(ge,x.offset);he.length>0&&(t.apply({type:"remove_text",path:Y,offset:ge,text:he}),le=he)}!P&&k&&te.current&&V.current&&K.mergeNodes(t,{at:te.current,hanging:!0,voids:c}),g&&o&&a==="character"&&le.length>1&&le.match(/[\u0E00-\u0E7F]+/)&&K.insertText(t,le.slice(0,le.length-l));var Pe=V.unref(),me=te.unref(),Fe=o?Pe||me:me||Pe;n.at==null&&Fe&&K.select(t,Fe)}}})},$N=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:i=!1,voids:o=!1}=r,{at:a=yv(t),batchDirty:l=!0}=r;if(n.length){if(q.isRange(a))if(i||(a=C.unhangRange(t,a,{voids:o})),q.isCollapsed(a))a=a.anchor;else{var[,c]=q.edges(a);if(!o&&C.void(t,{at:c}))return;var f=C.pointRef(t,c);K.delete(t,{at:a}),a=f.unref()}else N.isPath(a)&&(a=C.start(t,a));if(!(!o&&C.void(t,{at:a}))){var h=C.above(t,{at:a,match:L=>we.isElement(L)&&C.isInline(t,L),mode:"highest",voids:o});if(h){var[,g]=h;if(C.isEnd(t,a,g)){var m=C.after(t,g);a=m}else if(C.isStart(t,a,g)){var y=C.before(t,g);a=y}}var v=C.above(t,{match:L=>we.isElement(L)&&C.isBlock(t,L),at:a,voids:o}),[,p]=v,E=C.isStart(t,a,p),_=C.isEnd(t,a,p),b=E&&_,x=!E||E&&_,O=!_,[,B]=de.first({children:n},[]),[,k]=de.last({children:n},[]),P=[],I=L=>{var[ne,J]=L,Y=J.length===0;return Y?!1:b?!0:!(x&&N.isAncestor(J,B)&&we.isElement(ne)&&!t.isVoid(ne)&&!t.isInline(ne)||O&&N.isAncestor(J,k)&&we.isElement(ne)&&!t.isVoid(ne)&&!t.isInline(ne))};for(var Q of de.nodes({children:n},{pass:I}))I(Q)&&P.push(Q);var j=[],X=[],$=[],U=!0,T=!1;for(var[G]of P)we.isElement(G)&&!t.isInline(G)?(U=!1,T=!0,X.push(G)):U?j.push(G):$.push(G);var[se]=C.nodes(t,{at:a,match:L=>Ee.isText(L)||C.isInline(t,L),mode:"highest",voids:o}),[,re]=se,V=C.isStart(t,a,re),te=C.isEnd(t,a,re),le=C.pathRef(t,_&&!$.length?N.next(p):p),ce=C.pathRef(t,te?N.next(re):re);K.splitNodes(t,{at:a,match:L=>T?we.isElement(L)&&C.isBlock(t,L):Ee.isText(L)||C.isInline(t,L),mode:T?"lowest":"highest",always:T&&(!E||j.length>0)&&(!_||$.length>0),voids:o});var ye=C.pathRef(t,!V||V&&te?N.next(re):re);if(K.insertNodes(t,j,{at:ye.current,match:L=>Ee.isText(L)||C.isInline(t,L),mode:"highest",voids:o,batchDirty:l}),b&&!j.length&&X.length&&!$.length&&K.delete(t,{at:p,voids:o}),K.insertNodes(t,X,{at:le.current,match:L=>we.isElement(L)&&C.isBlock(t,L),mode:"lowest",voids:o,batchDirty:l}),K.insertNodes(t,$,{at:ce.current,match:L=>Ee.isText(L)||C.isInline(t,L),mode:"highest",voids:o,batchDirty:l}),!r.at){var De;if($.length>0&&ce.current?De=N.previous(ce.current):X.length>0&&le.current?De=N.previous(le.current):ye.current&&(De=N.previous(ye.current)),De){var Ce=C.end(t,De);K.select(t,Ce)}}ye.unref(),le.unref(),ce.unref()}}})},jN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:i}=t;if(i){if(r==="anchor")K.select(t,i.anchor);else if(r==="focus")K.select(t,i.focus);else if(r==="start"){var[o]=q.edges(i);K.select(t,o)}else if(r==="end"){var[,a]=q.edges(i);K.select(t,a)}}else return},zN=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},UN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:i=1,unit:o="character",reverse:a=!1}=n,{edge:l=null}=n;if(r){l==="start"&&(l=q.isBackward(r)?"focus":"anchor"),l==="end"&&(l=q.isBackward(r)?"anchor":"focus");var{anchor:c,focus:f}=r,h={distance:i,unit:o,ignoreNonSelectable:!0},g={};if(l==null||l==="anchor"){var m=a?C.before(t,c,h):C.after(t,c,h);m&&(g.anchor=m)}if(l==null||l==="focus"){var y=a?C.before(t,f,h):C.after(t,f,h);y&&(g.focus=y)}K.setSelection(t,g)}},HN=(e,t)=>{var{selection:n}=e;if(t=C.range(e,t),n){K.setSelection(e,t);return}if(!q.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(rn.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function n2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:i}=t,{edge:o="both"}=r;if(i){o==="start"&&(o=q.isBackward(i)?"focus":"anchor"),o==="end"&&(o=q.isBackward(i)?"anchor":"focus");var{anchor:a,focus:l}=i,c=o==="anchor"?a:l;K.setSelection(t,{[o==="anchor"?"anchor":"focus"]:r2(r2({},c),n)})}},VN=(e,t)=>{var{selection:n}=e,r={},i={};if(n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!je.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!je.equals(t.focus,n.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}},KN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:i=!1,voids:o=!1,mode:a="lowest",batchDirty:l=!0}=r,{at:c,match:f,select:h}=r;if(de.isNode(n)&&(n=[n]),n.length!==0){var[g]=n;if(c||(c=yv(t),h!==!1&&(h=!0)),h==null&&(h=!1),q.isRange(c))if(i||(c=C.unhangRange(t,c,{voids:o})),q.isCollapsed(c))c=c.anchor;else{var[,m]=q.edges(c),y=C.pointRef(t,m);K.delete(t,{at:c}),c=y.unref()}if(je.isPoint(c)){f==null&&(Ee.isText(g)?f=j=>Ee.isText(j):t.isInline(g)?f=j=>Ee.isText(j)||C.isInline(t,j):f=j=>we.isElement(j)&&C.isBlock(t,j));var[v]=C.nodes(t,{at:c.path,match:f,mode:a,voids:o});if(v){var[,p]=v,E=C.pathRef(t,p),_=C.isEnd(t,c,p);K.splitNodes(t,{at:c,match:f,mode:a,voids:o});var b=E.unref();c=_?N.next(b):b}else return}var x=N.parent(c),O=c[c.length-1];if(!(!o&&C.void(t,{at:x}))){if(l){var B=[],k=N.levels(x);F7(t,()=>{var j=function(){var U=x.concat(O);O++;var T={type:"insert_node",path:U,node:X};t.apply(T),c=N.next(c),B.push(T),Ee.isText?k.push(...Array.from(de.nodes(X),G=>{var[,se]=G;return U.concat(se)})):k.push(U)};for(var X of n)j()},()=>{Hx(t,k,j=>{var X=j;for(var $ of B)if(N.operationCanTransformPath($)&&(X=N.transform(X,$),!X))return null;return X})})}else for(var P of n){var I=x.concat(O);O++,t.apply({type:"insert_node",path:I,node:P}),c=N.next(c)}if(c=N.previous(c),h){var Q=C.end(t,c);Q&&K.select(t,Q)}}}})},qN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:i="lowest",voids:o=!1}=n,{match:a}=n;if(a==null&&(a=N.isPath(r)?Ia(t,r):O=>we.isElement(O)&&C.isBlock(t,O)),!!r){var l=C.nodes(t,{at:r,match:a,mode:i,voids:o}),c=Array.from(l,O=>{var[,B]=O;return C.pathRef(t,B)});for(var f of c){var h=f.unref();if(h.length<2)throw new Error("Cannot lift node at a path [".concat(h,"] because it has a depth of less than `2`."));var g=C.node(t,N.parent(h)),[m,y]=g,v=h[h.length-1],{length:p}=m.children;if(p===1){var E=N.next(y);K.moveNodes(t,{at:h,to:E,voids:o}),K.removeNodes(t,{at:y,voids:o})}else if(v===0)K.moveNodes(t,{at:h,to:y,voids:o});else if(v===p-1){var _=N.next(y);K.moveNodes(t,{at:h,to:_,voids:o})}else{var b=N.next(h),x=N.next(y);K.splitNodes(t,{at:b,voids:o}),K.moveNodes(t,{at:h,to:x,voids:o})}}}})},GN=["text"],QN=["children"],i2=(e,t)=>{if(we.isElement(t)){var n=t;return C.isVoid(e,t)?!0:n.children.length===1?i2(e,n.children[0]):!1}else return!C.isEditor(t)},YN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:r,at:i=t.selection}=n,{hanging:o=!1,voids:a=!1,mode:l="lowest"}=n;if(i){if(r==null)if(N.isPath(i)){var[c]=C.parent(t,i);r=j=>c.children.includes(j)}else r=j=>we.isElement(j)&&C.isBlock(t,j);if(!o&&q.isRange(i)&&(i=C.unhangRange(t,i,{voids:a})),q.isRange(i))if(q.isCollapsed(i))i=i.anchor;else{var[,f]=q.edges(i),h=C.pointRef(t,f);K.delete(t,{at:i}),i=h.unref(),n.at==null&&K.select(t,i)}var[g]=C.nodes(t,{at:i,match:r,voids:a,mode:l}),m=C.previous(t,{at:i,match:r,voids:a,mode:l});if(!(!g||!m)){var[y,v]=g,[p,E]=m;if(!(v.length===0||E.length===0)){var _=N.next(E),b=N.common(v,E),x=N.isSibling(v,E),O=Array.from(C.levels(t,{at:v}),j=>{var[X]=j;return X}).slice(b.length).slice(0,-1),B=C.above(t,{at:v,mode:"highest",match:j=>O.includes(j)&&i2(t,j)}),k=B&&C.pathRef(t,B[1]),P,I;if(Ee.isText(y)&&Ee.isText(p)){var Q=ji(y,GN);I=p.text.length,P=Q}else if(we.isElement(y)&&we.isElement(p)){var Q=ji(y,QN);I=p.children.length,P=Q}else throw new Error("Cannot merge the node at path [".concat(v,"] with the previous sibling because it is not the same kind: ").concat(rn.stringify(y)," ").concat(rn.stringify(p)));x||K.moveNodes(t,{at:v,to:_,voids:a}),k&&K.removeNodes(t,{at:k.current,voids:a}),we.isElement(p)&&C.isEmpty(t,p)||Ee.isText(p)&&p.text===""&&E[E.length-1]!==0?K.removeNodes(t,{at:E,voids:a}):t.apply({type:"merge_node",path:_,position:I,properties:P}),k&&k.unref()}}}})},JN=(e,t)=>{C.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){a==null&&(a=N.isPath(r)?Ia(e,r):y=>we.isElement(y)&&C.isBlock(e,y));var l=C.pathRef(e,n),c=C.nodes(e,{at:r,match:a,mode:i,voids:o}),f=Array.from(c,y=>{var[,v]=y;return C.pathRef(e,v)});for(var h of f){var g=h.unref(),m=l.current;g.length!==0&&e.apply({type:"move_node",path:g,newPath:m}),l.current&&N.isSibling(m,g)&&N.isAfter(m,g)&&(l.current=N.next(l.current))}l.unref()}})},XN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a=t.selection,match:l}=n;if(a){l==null&&(l=N.isPath(a)?Ia(t,a):y=>we.isElement(y)&&C.isBlock(t,y)),!r&&q.isRange(a)&&(a=C.unhangRange(t,a,{voids:i}));var c=C.nodes(t,{at:a,match:l,mode:o,voids:i}),f=Array.from(c,y=>{var[,v]=y;return C.pathRef(t,v)});for(var h of f){var g=h.unref();if(g){var[m]=C.node(t,g);t.apply({type:"remove_node",path:g,node:m})}}}})},ZN=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:i,at:o=t.selection,compare:a,merge:l}=r,{hanging:c=!1,mode:f="lowest",split:h=!1,voids:g=!1}=r;if(o){if(i==null&&(i=N.isPath(o)?Ia(t,o):I=>we.isElement(I)&&C.isBlock(t,I)),!c&&q.isRange(o)&&(o=C.unhangRange(t,o,{voids:g})),h&&q.isRange(o)){if(q.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var m=C.rangeRef(t,o,{affinity:"inward"}),[y,v]=q.edges(o),p=f==="lowest"?"lowest":"highest",E=C.isEnd(t,v,v.path);K.splitNodes(t,{at:v,match:i,mode:p,voids:g,always:!E});var _=C.isStart(t,y,y.path);K.splitNodes(t,{at:y,match:i,mode:p,voids:g,always:!_}),o=m.unref(),r.at==null&&K.select(t,o)}a||(a=(I,Q)=>I!==Q);for(var[b,x]of C.nodes(t,{at:o,match:i,mode:f,voids:g})){var O={},B={};if(x.length!==0){var k=!1;for(var P in n)P==="children"||P==="text"||a(n[P],b[P])&&(k=!0,b.hasOwnProperty(P)&&(O[P]=b[P]),l?n[P]!=null&&(B[P]=l(b[P],n[P])):n[P]!=null&&(B[P]=n[P]));k&&t.apply({type:"set_node",path:x,properties:O,newProperties:B})}}}})},e9=(e,t)=>{if(q.isCollapsed(t))return t.anchor;var[,n]=q.edges(t),r=C.pointRef(e,n);return K.delete(e,{at:t}),r.unref()},t9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:i=!1}=n,{match:o,at:a=t.selection,height:l=0,always:c=!1}=n;if(o==null&&(o=te=>we.isElement(te)&&C.isBlock(t,te)),q.isRange(a)&&(a=e9(t,a)),N.isPath(a)){var f=a,h=C.point(t,f),[g]=C.parent(t,f);o=te=>te===g,l=h.path.length-f.length+1,a=h,c=!0}if(a){var m=C.pointRef(t,a,{affinity:"backward"}),y;try{var[v]=C.nodes(t,{at:a,match:o,mode:r,voids:i});if(!v)return;var p=C.void(t,{at:a,mode:"highest"}),E=0;if(!i&&p){var[_,b]=p;if(we.isElement(_)&&t.isInline(_)){var x=C.after(t,b);if(!x){var O={text:""},B=N.next(b);K.insertNodes(t,O,{at:B,voids:i}),x=C.point(t,B)}a=x,c=!0}var k=a.path.length-b.length;l=k+1,c=!0}y=C.pointRef(t,a);var P=a.path.length-l,[,I]=v,Q=a.path.slice(0,P),j=l===0?a.offset:a.path[P]+E;for(var[X,$]of C.levels(t,{at:Q,reverse:!0,voids:i})){var U=!1;if($.length<I.length||$.length===0||!i&&we.isElement(X)&&C.isVoid(t,X))break;var T=m.current,G=C.isEnd(t,T,$);if(c||!m||!C.isEdge(t,T,$)){U=!0;var se=de.extractProps(X);t.apply({type:"split_node",path:$,position:j,properties:se})}j=$[$.length-1]+(U||G?1:0)}if(n.at==null){var re=y.current||C.end(t,[]);K.select(t,re)}}finally{var V;m.unref(),(V=y)===null||V===void 0||V.unref()}}})},n9=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var i={};for(var o of n)i[o]=null;K.setNodes(t,i,r)},r9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{at:a=t.selection,match:l}=n;if(a){l==null&&(l=N.isPath(a)?Ia(t,a):y=>we.isElement(y)&&C.isBlock(t,y)),N.isPath(a)&&(a=C.range(t,a));var c=q.isRange(a)?C.rangeRef(t,a):null,f=C.nodes(t,{at:a,match:l,mode:r,voids:o}),h=Array.from(f,y=>{var[,v]=y;return C.pathRef(t,v)}).reverse(),g=function(){var v=m.unref(),[p]=C.node(t,v),E=C.range(t,v);i&&c&&(E=q.intersection(c.current,E)),K.liftNodes(t,{at:E,match:_=>we.isAncestor(p)&&p.children.includes(_),voids:o})};for(var m of h)g();c&&c.unref()}})};function o2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o2(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var i9=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:i="lowest",split:o=!1,voids:a=!1}=r,{match:l,at:c=t.selection}=r;if(c){if(l==null&&(N.isPath(c)?l=Ia(t,c):t.isInline(n)?l=E=>we.isElement(E)&&C.isInline(t,E)||Ee.isText(E):l=E=>we.isElement(E)&&C.isBlock(t,E)),o&&q.isRange(c)){var[f,h]=q.edges(c),g=C.rangeRef(t,c,{affinity:"inward"});K.splitNodes(t,{at:h,match:l,voids:a}),K.splitNodes(t,{at:f,match:l,voids:a}),c=g.unref(),r.at==null&&K.select(t,c)}var m=Array.from(C.nodes(t,{at:c,match:t.isInline(n)?E=>we.isElement(E)&&C.isBlock(t,E):E=>C.isEditor(E),mode:"lowest",voids:a})),y=function(){var _=q.isRange(c)?q.intersection(c,C.range(t,p)):c;if(!_)return 0;var b=Array.from(C.nodes(t,{at:_,match:l,mode:i,voids:a}));if(b.length>0){var[x]=b,O=b[b.length-1],[,B]=x,[,k]=O;if(B.length===0&&k.length===0)return 0;var P=N.equals(B,k)?N.parent(B):N.common(B,k),I=C.range(t,B,k),Q=C.node(t,P),[j]=Q,X=P.length+1,$=N.next(k.slice(0,X)),U=s2(s2({},n),{},{children:[]});K.insertNodes(t,U,{at:$,voids:a}),K.moveNodes(t,{at:I,match:T=>we.isAncestor(j)&&j.children.includes(T),to:$.concat(0),voids:a})}},v;for(var[,p]of m)v=y()}})},a2=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return B7(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return N7(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return $7(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return j7(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return z7(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P7(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return X7(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return eN(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return $N(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Z7(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return nN(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return R7(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return PN(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return k7(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T7(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return I7(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return L7(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return M7(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return jN(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return MN(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return zN(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return U7(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return H7(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return W7(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return V7(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return K7(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return pN(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return G7(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Q7(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Y7(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return J7(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return KN(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return rN(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return iN(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return oN(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return sN(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return aN(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return uN(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return lN(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return cN(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fN(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return qN(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return YN(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return UN(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return JN(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return gN(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return mN(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return vN(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return yN(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return wN(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return CN(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return bN(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return _N(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xN(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return EN(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return DN(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return AN(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return SN(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return BN(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ON(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return FN(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return XN(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return HN(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ZN(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return RN(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return WN(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return VN(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t9(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return TN(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return IN(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return NN(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return n9(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r9(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return q7(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return LN(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return i9(e,...r)}};return e},Cs=[],o9=function(){return Cs.some(function(e){return e.activeTargets.length>0})},s9=function(){return Cs.some(function(e){return e.skippedTargets.length>0})},u2="ResizeObserver loop completed with undelivered notifications.",a9=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:u2}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=u2),window.dispatchEvent(e)},Tl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Tl||(Tl={}));var Es=function(e){return Object.freeze(e)},u9=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Es(this)}return e}(),l2=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Es(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,a=t.bottom,l=t.left,c=t.width,f=t.height;return{x:n,y:r,top:i,right:o,bottom:a,left:l,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),_v=function(e){return e instanceof SVGElement&&"getBBox"in e},c2=function(e){if(_v(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},f2=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},l9=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Il=typeof window<"u"?window:{},kd=new WeakMap,d2=/auto|scroll/,c9=/^tb|vertical/,f9=/msie|trident/i.test(Il.navigator&&Il.navigator.userAgent),pi=function(e){return parseFloat(e||"0")},La=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new u9((n?t:e)||0,(n?e:t)||0)},h2=Es({devicePixelContentBoxSize:La(),borderBoxSize:La(),contentBoxSize:La(),contentRect:new l2(0,0,0,0)}),p2=function(e,t){if(t===void 0&&(t=!1),kd.has(e)&&!t)return kd.get(e);if(c2(e))return kd.set(e,h2),h2;var n=getComputedStyle(e),r=_v(e)&&e.ownerSVGElement&&e.getBBox(),i=!f9&&n.boxSizing==="border-box",o=c9.test(n.writingMode||""),a=!r&&d2.test(n.overflowY||""),l=!r&&d2.test(n.overflowX||""),c=r?0:pi(n.paddingTop),f=r?0:pi(n.paddingRight),h=r?0:pi(n.paddingBottom),g=r?0:pi(n.paddingLeft),m=r?0:pi(n.borderTopWidth),y=r?0:pi(n.borderRightWidth),v=r?0:pi(n.borderBottomWidth),p=r?0:pi(n.borderLeftWidth),E=g+f,_=c+h,b=p+y,x=m+v,O=l?e.offsetHeight-x-e.clientHeight:0,B=a?e.offsetWidth-b-e.clientWidth:0,k=i?E+b:0,P=i?_+x:0,I=r?r.width:pi(n.width)-k-B,Q=r?r.height:pi(n.height)-P-O,j=I+E+B+b,X=Q+_+O+x,$=Es({devicePixelContentBoxSize:La(Math.round(I*devicePixelRatio),Math.round(Q*devicePixelRatio),o),borderBoxSize:La(j,X,o),contentBoxSize:La(I,Q,o),contentRect:new l2(g,c,I,Q)});return kd.set(e,$),$},g2=function(e,t,n){var r=p2(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Tl.DEVICE_PIXEL_CONTENT_BOX:return a;case Tl.BORDER_BOX:return i;default:return o}},d9=function(){function e(t){var n=p2(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Es([n.borderBoxSize]),this.contentBoxSize=Es([n.contentBoxSize]),this.devicePixelContentBoxSize=Es([n.devicePixelContentBoxSize])}return e}(),m2=function(e){if(c2(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},h9=function(){var e=1/0,t=[];Cs.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(f){var h=new d9(f.target),g=m2(f.target);l.push(h),f.lastReportedSize=g2(f.target,f.observedBox),g<e&&(e=g)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},v2=function(e){Cs.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(m2(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},p9=function(){var e=0;for(v2(e);o9();)e=h9(),v2(e);return s9()&&a9(),e>0},Cv,y2=[],g9=function(){return y2.splice(0).forEach(function(e){return e()})},m9=function(e){if(!Cv){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return g9()}).observe(n,r),Cv=function(){n.textContent="".concat(t?t--:t++)}}y2.push(e),Cv()},v9=function(e){m9(function(){requestAnimationFrame(e)})},Pd=0,y9=function(){return!!Pd},w9=250,b9={attributes:!0,characterData:!0,childList:!0,subtree:!0},w2=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],b2=function(e){return e===void 0&&(e=0),Date.now()+e},Ev=!1,_9=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=w9),!Ev){Ev=!0;var r=b2(t);v9(function(){var i=!1;try{i=p9()}finally{if(Ev=!1,t=r-b2(),!y9())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,b9)};document.body?n():Il.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),w2.forEach(function(n){return Il.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),w2.forEach(function(n){return Il.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Dv=new _9,_2=function(e){!Pd&&e>0&&Dv.start(),Pd+=e,!Pd&&Dv.stop()},C9=function(e){return!_v(e)&&!l9(e)&&getComputedStyle(e).display==="inline"},E9=function(){function e(t,n){this.target=t,this.observedBox=n||Tl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=g2(this.target,this.observedBox,!0);return C9(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),D9=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Rd=new WeakMap,C2=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Td=function(){function e(){}return e.connect=function(t,n){var r=new D9(t,n);Rd.set(t,r)},e.observe=function(t,n,r){var i=Rd.get(t),o=i.observationTargets.length===0;C2(i.observationTargets,n)<0&&(o&&Cs.push(i),i.observationTargets.push(new E9(n,r&&r.box)),_2(1),Dv.schedule())},e.unobserve=function(t,n){var r=Rd.get(t),i=C2(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Cs.splice(Cs.indexOf(r),1),r.observationTargets.splice(i,1),_2(-1))},e.disconnect=function(t){var n=this,r=Rd.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),x9=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Td.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Td.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Td.unobserve(this,t)},e.prototype.disconnect=function(){Td.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});for(var A9=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),xv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},E2={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:A9?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Av={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Id=1;Id<20;Id++)Av["f"+Id]=111+Id;function Nd(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return D2(a,t)}),i=function(l){return r.some(function(c){return x2(c,l)})},o=n==null?i:i(n);return o}function S9(e,t){return Nd(e,t)}function O9(e,t){return Nd(e,{byKey:!0},t)}function D2(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in xv)r[xv[a]]=!1;var l=!0,c=!1,f=void 0;try{for(var h=i[Symbol.iterator](),g;!(l=(g=h.next()).done);l=!0){var m=g.value,y=m.endsWith("?")&&m.length>1;y&&(m=m.slice(0,-1));var v=Sv(m),p=xv[v];if(m.length>1&&!p&&!E2[m]&&!Av[v])throw new TypeError('Unknown modifier: "'+m+'"');(o===1||!p)&&(n?r.key=v:r.which=A2(m)),p&&(r[p]=y?null:!0)}}catch(E){c=!0,f=E}finally{try{!l&&h.return&&h.return()}finally{if(c)throw f}}return r}function x2(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function A2(e){e=Sv(e);var t=Av[e]||e.toUpperCase().charCodeAt(0);return t}function Sv(e){return e=e.toLowerCase(),e=E2[e]||e,e}var Nl=Ui.default=Nd,Ov=Ui.isHotkey=Nd;Ui.isCodeHotkey=S9;var S2=Ui.isKeyHotkey=O9;Ui.parseHotkey=D2,Ui.compareHotkey=x2,Ui.toKeyCode=A2,Ui.toKeyName=Sv;function F9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ma(e,t){if(e==null)return{};var n=F9(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function B9(e,t){if(Ll(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ll(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k9(e){var t=B9(e,"string");return Ll(t)==="symbol"?t:String(t)}function Sr(e,t,n){return t=k9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fv=D.createContext(null),Or=()=>{var e=D.useContext(Fv);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Bv,kv,O2=parseInt(Le.version.split(".")[0],10),F2=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,B2=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Bn=typeof navigator<"u"&&/Android/.test(navigator.userAgent),$a=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ds=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),P9=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),k2=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),R9=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),T9=Bn&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),I9=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),N9=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),L9=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ld=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P2=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((Bv=navigator.userAgent.match(/Version\/(\d+)/))!==null&&Bv!==void 0&&Bv[1]?parseInt((kv=navigator.userAgent.match(/Version\/(\d+)/))===null||kv===void 0?void 0:kv[1],10)<17:!1),ko=(!R9||!T9)&&!P9&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Pv=new WeakMap,Rv=new WeakMap,R2=new WeakMap,Md=new WeakMap,Tv=new WeakMap,Ml=new WeakMap,xs=new WeakMap,$d=new WeakMap,jd=new WeakMap,Iv=new WeakMap,Po=new WeakMap,As=new WeakMap,$l=new WeakMap,Nv=new WeakMap,Lv=new WeakMap,Jr=new WeakMap,Hi=new WeakMap,Un=new WeakMap,Ro=new WeakMap,To=new WeakMap,T2=new WeakMap,ja=Symbol("placeholder"),I2=Symbol("mark-placeholder"),M9=globalThis.Text,Mv=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,$9=e=>Io(e)&&e.nodeType===8,Fr=e=>Io(e)&&e.nodeType===1,Io=e=>{var t=Mv(e);return!!t&&e instanceof t.Node},$v=e=>{var t=e&&e.anchorNode&&Mv(e.anchorNode);return!!t&&e instanceof t.Selection},N2=e=>Io(e)&&e.nodeType===3,j9=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,z9=e=>{var[t,n]=e;if(Fr(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=L2(t,i,r?"backward":"forward"),r=i<n;Fr(t)&&t.childNodes.length;){var o=r?t.childNodes.length-1:0;t=H9(t,o,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},U9=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},L2=(e,t,n)=>{for(var{childNodes:r}=e,i=r[t],o=t,a=!1,l=!1;($9(i)||Fr(i)&&i.childNodes.length===0||Fr(i)&&i.getAttribute("contenteditable")==="false")&&!(a&&l);){if(o>=r.length){a=!0,o=t-1,n="backward";continue}if(o<0){l=!0,o=t+1,n="forward";continue}i=r[o],t=o,o+=n==="forward"?1:-1}return[i,t]},H9=(e,t,n)=>{var[r]=L2(e,t,n);return r},M2=e=>{var t="";if(N2(e)&&e.nodeValue)return e.nodeValue;if(Fr(e)){for(var n of Array.from(e.childNodes))t+=M2(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=` `)}return t},W9=/data-slate-fragment="(.+?)"/m,V9=e=>{var t=e.getData("text/html"),[,n]=t.match(W9)||[];return n},jv=(e,t,n)=>{var{target:r}=t;if(Fr(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=ee.getWindow(e);if(i.contains(r))return ee.hasDOMNode(e,r,{editable:!0});var o=n.find(a=>{var{addedNodes:l,removedNodes:c}=a;for(var f of l)if(f===r||f.contains(r))return!0;for(var h of c)if(h===r||h.contains(r))return!0});return!o||o===t?!1:jv(e,o,n)},K9=()=>{for(var e=document.activeElement;(t=e)!==null&&t!==void 0&&t.shadowRoot&&(n=e.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var t,n,r;e=(r=e)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return e},q9=0;class G9{constructor(){Sr(this,"id",void 0),this.id="".concat(q9++)}}var ee={androidPendingDiffs:e=>Un.get(e),androidScheduleFlush:e=>{var t;(t=Lv.get(e))===null||t===void 0||t()},blur:e=>{var t=ee.toDOMNode(e,e),n=ee.findDocumentOrShadowRoot(e);Po.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=ee.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&K.deselect(e)},findDocumentOrShadowRoot:e=>{var t=ee.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o=ee.toSlateNode(e,t.target),a=ee.findPath(e,o);if(we.isElement(o)&&C.isVoid(e,o)){var l=i.getBoundingClientRect(),c=e.isInline(o)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,f=C.point(e,a,{edge:c?"start":"end"}),h=c?C.before(e,f):C.after(e,f);if(h){var g=C.range(e,h);return g}}var m,{document:y}=ee.getWindow(e);if(y.caretRangeFromPoint)m=y.caretRangeFromPoint(n,r);else{var v=y.caretPositionFromPoint(n,r);v&&(m=y.createRange(),m.setStart(v.offsetNode,v.offset),m.setEnd(v.offsetNode,v.offset))}if(!m)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var p=ee.toSlateRange(e,m,{exactMatch:!1,suppressThrow:!1});return p},findKey:(e,t)=>{var n=$d.get(t);return n||(n=new G9,$d.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var i=Rv.get(r);if(i==null){if(C.isEditor(r))return n;break}var o=Pv.get(r);if(o==null)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(rn.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!Po.get(t)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{ee.focus(t,{retries:n.retries-1})},10);return}var r=ee.toDOMNode(t,t),i=ee.findDocumentOrShadowRoot(t);if(i.activeElement!==r){if(t.selection&&i instanceof Document){var o=i.getSelection(),a=ee.toDOMRange(t,t.selection);o==null||o.removeAllRanges(),o==null||o.addRange(a)}t.selection||(K.select(t,C.start(t,[])),t.onChange()),Po.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=R2.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:i=!1}=r,o=ee.toDOMNode(t,t),a;try{a=Fr(n)?n:n.parentElement}catch(l){if(l instanceof Error&&!l.message.includes('Permission denied to access property "nodeType"'))throw l}return a?a.closest("[data-slate-editor]")===o&&(!i||a.isContentEditable?!0:typeof a.isContentEditable=="boolean"&&a.closest('[contenteditable="false"]')===o||!!a.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>Io(t)&&ee.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return C.hasPath(e,n.path)&&C.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>ee.hasEditableTarget(e,t)||ee.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Io(t)&&ee.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!As.get(e),isFocused:e=>!!Po.get(e),isReadOnly:e=>!!Iv.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Iv.get(e))return!1;var n=ee.hasTarget(e,t)&&ee.toSlateNode(e,t);return we.isElement(n)&&C.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=jd.get(e),r=C.isEditor(t)?Md.get(e):n==null?void 0:n.get(ee.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(rn.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=C.node(e,t.path),r=ee.toDOMNode(e,n),i;C.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(o)),l=0,c=0;c<a.length;c++){var f=a[c],h=f.childNodes[0];if(!(h==null||h.textContent==null)){var{length:g}=h.textContent,m=f.getAttribute("data-slate-length"),y=m==null?g:parseInt(m,10),v=l+y,p=a[c+1];if(t.offset===v&&p!==null&&p!==void 0&&p.hasAttribute("data-slate-mark-placeholder")){var E,_=p.childNodes[0];i=[_ instanceof M9?_:p,(E=p.textContent)!==null&&E!==void 0&&E.startsWith("\uFEFF")?1:0];break}if(t.offset<=v){var b=Math.min(g,Math.max(0,t.offset-l));i=[h,b];break}l=v}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(rn.stringify(t)));return i},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,i=q.isBackward(t),o=ee.toDOMPoint(e,n),a=q.isCollapsed(t)?o:ee.toDOMPoint(e,r),l=ee.getWindow(e),c=l.document.createRange(),[f,h]=i?a:o,[g,m]=i?o:a,y=Fr(f)?f:f.parentElement,v=!!y.getAttribute("data-slate-zero-width"),p=Fr(g)?g:g.parentElement,E=!!p.getAttribute("data-slate-zero-width");return c.setStart(f,v?1:h),c.setEnd(g,E?1:m),c},toSlateNode:(e,t)=>{var n=Fr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Ml.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:i}=n,[o,a]=r?t:z9(t),l=o.parentNode,c=null,f=0;if(l){var h,g,m=ee.toDOMNode(e,e),y=l.closest('[data-slate-void="true"]'),v=y&&m.contains(y)?y:null,p=l.closest("[data-slate-leaf]"),E=null;if(p){if(c=p.closest('[data-slate-node="text"]'),c){var _=ee.getWindow(e),b=_.document.createRange();b.setStart(c,0),b.setEnd(o,a);var x=b.cloneContents(),O=[...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))];O.forEach(T=>{if(Bn&&!r&&T.hasAttribute("data-slate-zero-width")&&T.textContent.length>0&&T.textContext!=="\uFEFF"){T.textContent.startsWith("\uFEFF")&&(T.textContent=T.textContent.slice(1));return}T.parentNode.removeChild(T)}),f=x.textContent.length,E=c}}else if(v){for(var B=v.querySelectorAll("[data-slate-leaf]"),k=0;k<B.length;k++){var P=B[k];if(ee.hasDOMNode(e,P)){p=P;break}}p?(c=p.closest('[data-slate-node="text"]'),E=p,f=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(T=>{f-=T.textContent.length})):f=1}E&&f===E.textContent.length&&Bn&&E.getAttribute("data-slate-zero-width")==="z"&&(h=E.textContent)!==null&&h!==void 0&&h.startsWith("\uFEFF")&&(l.hasAttribute("data-slate-zero-width")||$a&&(g=E.textContent)!==null&&g!==void 0&&g.endsWith(` `))&&f--}if(Bn&&!c&&!r){var I=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(I&&ee.hasDOMNode(e,I,{editable:!0})){var Q=ee.toSlateNode(e,I),{path:j,offset:X}=C.start(e,ee.findPath(e,Q));return I.querySelector("[data-slate-leaf]")||(X=a),{path:j,offset:X}}}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var $=ee.toSlateNode(e,c),U=ee.findPath(e,$);return{path:U,offset:f}},toSlateRange:(e,t,n)=>{var r,{exactMatch:i,suppressThrow:o}=n,a=$v(t)?t.anchorNode:t.startContainer,l,c,f,h,g;if(a)if($v(t)){if($a&&t.rangeCount>1){f=t.focusNode;var m=t.getRangeAt(0),y=t.getRangeAt(t.rangeCount-1);if(f instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement&&y.startContainer instanceof HTMLTableRowElement){let P=function(I){return I.childElementCount>0?P(I.children[0]):I};var k=P,v=m.startContainer,p=y.startContainer,E=P(v.children[m.startOffset]),_=P(p.children[y.startOffset]);h=0,_.childNodes.length>0?l=_.childNodes[0]:l=_,E.childNodes.length>0?f=E.childNodes[0]:f=E,_ instanceof HTMLElement?c=_.innerHTML.length:c=0}else m.startContainer===f?(l=y.endContainer,c=y.endOffset,h=m.startOffset):(l=m.startContainer,c=m.endOffset,h=y.startOffset)}else l=t.anchorNode,c=t.anchorOffset,f=t.focusNode,h=t.focusOffset;k2&&U9(l)||$a?g=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:g=t.isCollapsed}else l=t.startContainer,c=t.startOffset,f=t.endContainer,h=t.endOffset,g=t.collapsed;if(l==null||f==null||c==null||h==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if($a&&(r=f.textContent)!==null&&r!==void 0&&r.endsWith(` `)&&h===f.textContent.length&&h--,"getAttribute"in f&&f.getAttribute("contenteditable")==="false"&&f.getAttribute("data-slate-void")!=="true"){var b;f=l,h=((b=l.textContent)===null||b===void 0?void 0:b.length)||0}var x=ee.toSlatePoint(e,[l,c],{exactMatch:i,suppressThrow:o});if(!x)return null;var O=g?x:ee.toSlatePoint(e,[f,h],{exactMatch:i,suppressThrow:o});if(!O)return null;var B={anchor:x,focus:O};return q.isExpanded(B)&&q.isForward(B)&&Fr(f)&&C.void(e,{at:B.focus,mode:"highest"})&&(B=C.unhangRange(e,B,{voids:!0})),B}};function Q9(e,t){var{path:n,diff:r}=t;if(!C.hasPath(e,n))return!1;var i=de.get(e,n);if(!Ee.isText(i))return!1;if(r.start!==i.text.length||r.text.length===0)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=N.next(n);if(!C.hasPath(e,o))return!1;var a=de.get(e,o);return Ee.isText(a)&&a.text.startsWith(r.text)}function $2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((i,o)=>i.slice(0,o.start)+o.text+i.slice(o.end),e)}function Y9(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function J9(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}function j2(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=Y9(o,i),l=Math.min(o.length-a,i.length-a),c=J9(o,i,l),f={start:n+a,end:r-c,text:i.slice(a,i.length-c)};return f.start===f.end&&f.text.length===0?null:f}function X9(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=$2(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),l=o.slice(r,a),c=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return j2(e,{start:r,end:c,text:l})}function Z9(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function zv(e,t){var{path:n,offset:r}=t;if(!C.hasPath(e,n))return null;var i=de.get(e,n);if(!Ee.isText(i))return null;var o=C.above(e,{match:l=>we.isElement(l)&&C.isBlock(e,l),at:n});if(!o)return null;for(;r>i.text.length;){var a=C.next(e,{at:n,match:Ee.isText});if(!a||!N.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function z2(e,t){var n=zv(e,t.anchor);if(!n)return null;if(q.isCollapsed(t))return{anchor:n,focus:n};var r=zv(e,t.focus);return r?{anchor:n,focus:r}:null}function Uv(e,t,n){var r=Un.get(e),i=r==null?void 0:r.find(h=>{var{path:g}=h;return N.equals(g,t.path)});if(!i||t.offset<=i.diff.start)return je.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},l=je.transform(a,n,{affinity:"backward"});return l?{path:l.path,offset:l.offset+t.offset-o.start}:null}var c={path:t.path,offset:t.offset-o.text.length+o.end-o.start},f=je.transform(c,n,{affinity:"backward"});return f?n.type==="split_node"&&N.equals(n.path,t.path)&&c.offset<n.position&&o.start<n.position?f:{path:f.path,offset:f.offset+o.text.length-o.end+o.start}:null}function U2(e,t,n){var r=Uv(e,t.anchor,n);if(!r)return null;if(q.isCollapsed(t))return{anchor:r,focus:r};var i=Uv(e,t.focus,n);return i?{anchor:r,focus:i}:null}function eL(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!N.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!N.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!N.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:N.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:N.transform(n,t,{affinity:"forward"})};case"merge_node":return N.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:N.transform(n,t)}:{diff:r,id:i,path:N.transform(n,t)}}var o=N.transform(n,t);return o?{diff:r,path:o,id:i}:null}function H2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tL=25,nL=200,rL=function(){},iL=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function oL(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,l=null,c=0,f=!1,h=()=>{var $=To.get(t);if(To.delete(t),$){var{selection:U}=t,T=z2(t,$);T&&(!U||!q.equals(T,U))&&K.select(t,T)}},g=()=>{var $=Ro.get(t);if(Ro.delete(t),!!$){if($.at){var U=je.isPoint($.at)?zv(t,$.at):z2(t,$.at);if(!U)return;var T=C.range(t,U);(!t.selection||!q.equals(t.selection,T))&&K.select(t,U)}$.run()}},m=()=>{if(a&&(clearTimeout(a),a=null),l&&(clearTimeout(l),l=null),!O()&&!x()){h();return}i||(i=!0,setTimeout(()=>i=!1)),x()&&(i="action");var $=t.selection&&C.rangeRef(t,t.selection,{affinity:"forward"});Hi.set(t,t.marks),rL("flush",Ro.get(t),Un.get(t));for(var U=O(),T;T=(G=Un.get(t))===null||G===void 0?void 0:G[0];){var G,se,re=Jr.get(t);re!==void 0&&(Jr.delete(t),t.marks=re),re&&f===!1&&(f=null);var V=Z9(T);(!t.selection||!q.equals(t.selection,V))&&K.select(t,V),T.diff.text?C.insertText(t,T.diff.text):C.deleteFragment(t),Un.set(t,(se=Un.get(t))===null||se===void 0?void 0:se.filter(ce=>{var{id:ye}=ce;return ye!==T.id})),Q9(t,T)||(U=!1,Ro.delete(t),Hi.delete(t),i="action",To.delete(t),n.cancel(),r.cancel(),$==null||$.unref())}var te=$==null?void 0:$.unref();if(te&&!To.get(t)&&(!t.selection||!q.equals(te,t.selection))&&K.select(t,te),x()){g();return}U&&n(),n.flush(),r.flush(),h();var le=Hi.get(t);Hi.delete(t),le!==void 0&&(t.marks=le,t.onChange())},y=$=>{o&&clearTimeout(o),o=setTimeout(()=>{As.set(t,!1),m()},tL)},v=$=>{As.set(t,!0),o&&(clearTimeout(o),o=null)},p=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Tv.get(t);if(T){if(O()||U){T.style.display="none";return}T.style.removeProperty("display")}},E=($,U)=>{var T,G=(T=Un.get(t))!==null&&T!==void 0?T:[];Un.set(t,G);var se=de.leaf(t,$),re=G.findIndex(le=>N.equals(le.path,$));if(re<0){var V=j2(se.text,U);V&&G.push({path:$,diff:U,id:c++}),p();return}var te=X9(se.text,G[re].diff,U);if(!te){G.splice(re,1),p();return}G[re]=zd(zd({},G[re]),{},{diff:te})},_=function(U){var{at:T}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f=!1,To.delete(t),n.cancel(),r.cancel(),x()&&m(),Ro.set(t,{at:T,run:U}),l=setTimeout(m)},b=$=>{var U;a&&(clearTimeout(a),a=null);var{inputType:T}=$,G=null,se=$.dataTransfer||$.data||void 0;f!==!1&&T!=="insertText"&&T!=="insertCompositionText"&&(f=!1);var[re]=$.getTargetRanges();re&&(G=ee.toSlateRange(t,re,{exactMatch:!1,suppressThrow:!0}));var V=ee.getWindow(t),te=V.getSelection();if(!G&&te&&(re=te,G=ee.toSlateRange(t,te,{exactMatch:!1,suppressThrow:!0})),G=(U=G)!==null&&U!==void 0?U:t.selection,!!G){var le=!0;if(T.startsWith("delete")){if(q.isExpanded(G)){var[ce,ye]=q.edges(G),De=de.leaf(t,ce.path);if(De.text.length===ce.offset&&ye.offset===0){var Ce=C.next(t,{at:ce.path,match:Ee.isText});Ce&&N.equals(Ce[1],ye.path)&&(G={anchor:ye,focus:ye})}}var L=T.endsWith("Backward")?"backward":"forward",[ne,J]=q.edges(G),[Y,ge]=C.leaf(t,ne.path),he={text:"",start:ne.offset,end:J.offset},Pe=Un.get(t),me=Pe==null?void 0:Pe.find(Je=>N.equals(Je.path,ge)),Fe=me?[me.diff,he]:[he],Se=$2(Y.text,...Fe);if(Se.length===0&&(le=!1),q.isExpanded(G)){if(le&&N.equals(G.anchor.path,G.focus.path)){var Re={path:G.anchor.path,offset:ne.offset},Be=C.range(t,Re,Re);return P(Be),E(G.anchor.path,{text:"",end:J.offset,start:ne.offset})}return _(()=>C.deleteFragment(t,{direction:L}),{at:G})}}switch(T){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return _(()=>C.deleteFragment(t),{at:G});case"deleteContent":case"deleteContentForward":{var{anchor:ke}=G;if(le&&q.isCollapsed(G)){var ct=de.leaf(t,ke.path);if(ke.offset<ct.text.length)return E(ke.path,{text:"",start:ke.offset,end:ke.offset+1})}return _(()=>C.deleteForward(t),{at:G})}case"deleteContentBackward":{var Mt,{anchor:At}=G,ht=$v(re)?re.isCollapsed:!!((Mt=re)!==null&&Mt!==void 0&&Mt.collapsed);return le&&ht&&q.isCollapsed(G)&&At.offset>0?E(At.path,{text:"",start:At.offset-1,end:At.offset}):_(()=>C.deleteBackward(t),{at:G})}case"deleteEntireSoftLine":return _(()=>{C.deleteBackward(t,{unit:"line"}),C.deleteForward(t,{unit:"line"})},{at:G});case"deleteHardLineBackward":return _(()=>C.deleteBackward(t,{unit:"block"}),{at:G});case"deleteSoftLineBackward":return _(()=>C.deleteBackward(t,{unit:"line"}),{at:G});case"deleteHardLineForward":return _(()=>C.deleteForward(t,{unit:"block"}),{at:G});case"deleteSoftLineForward":return _(()=>C.deleteForward(t,{unit:"line"}),{at:G});case"deleteWordBackward":return _(()=>C.deleteBackward(t,{unit:"word"}),{at:G});case"deleteWordForward":return _(()=>C.deleteForward(t,{unit:"word"}),{at:G});case"insertLineBreak":return _(()=>C.insertSoftBreak(t),{at:G});case"insertParagraph":return _(()=>C.insertBreak(t),{at:G});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(iL(se))return _(()=>ee.insertData(t,se),{at:G});var rt=se??"";if(Jr.get(t)&&(rt=rt.replace("\uFEFF","")),T==="insertText"&&/.*\n.*\n$/.test(rt)&&(rt=rt.slice(0,-1)),rt.includes(` `))return _(()=>{var Je=rt.split(` `);Je.forEach((qt,sn)=>{qt&&C.insertText(t,qt),sn!==Je.length-1&&C.insertSoftBreak(t)})},{at:G});if(N.equals(G.anchor.path,G.focus.path)){var[Kt,ve]=q.edges(G),be={start:Kt.offset,end:ve.offset,text:rt};if(rt&&f&&T==="insertCompositionText"){var Ze=f.start+f.text.search(/\S|$/),it=be.start+be.text.search(/\S|$/);it===Ze+1&&be.end===f.start+f.text.length?(be.start-=1,f=null,j()):f=!1}else T==="insertText"?f===null?f=be:f&&q.isCollapsed(G)&&f.end+f.text.length===Kt.offset?f=zd(zd({},f),{},{text:f.text+rt}):f=!1:f=!1;if(le){E(Kt.path,be);return}}return _(()=>C.insertText(t,rt),{at:G})}}}},x=()=>!!Ro.get(t),O=()=>{var $;return!!(($=Un.get(t))!==null&&$!==void 0&&$.length)},B=()=>x()||O(),k=()=>i,P=$=>{To.set(t,$),a&&(clearTimeout(a),a=null);var{selection:U}=t;if($){var T=!U||!N.equals(U.anchor.path,$.anchor.path),G=!U||!N.equals(U.anchor.path.slice(0,-1),$.anchor.path.slice(0,-1));(T&&f||G)&&(f=!1),(T||O())&&(a=setTimeout(m,nL))}},I=()=>{(x()||!O())&&m()},Q=$=>{O()||(p(!0),setTimeout(p))},j=()=>{x()||(l=setTimeout(m))},X=$=>{if(!(O()||x())&&$.some(T=>jv(t,T,$))){var U;(U=T2.get(t))===null||U===void 0||U()}};return{flush:m,scheduleFlush:j,hasPendingDiffs:O,hasPendingAction:x,hasPendingChanges:B,isFlushing:k,handleUserSelect:P,handleCompositionEnd:y,handleCompositionStart:v,handleDOMBeforeInput:b,handleKeyDown:Q,handleDomMutations:X,handleInput:I}}function sL(){var e=D.useRef(!1);return D.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var Ss=Ld?D.useLayoutEffect:D.useEffect;function aL(e,t,n){var[r]=D.useState(()=>new MutationObserver(t));Ss(()=>{r.takeRecords()}),D.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var uL=["node"];function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cL={subtree:!0,childList:!0,characterData:!0},fL=Bn?e=>{var{node:t}=e,n=Ma(e,uL);if(!Bn)return null;var r=Or(),i=sL(),[o]=D.useState(()=>oL(lL({editor:r},n)));return aL(t,o.handleDomMutations,cL),Lv.set(r,o.scheduleFlush),i&&o.flush(),o}:()=>null,dL=["anchor","focus"],hL=["anchor","focus"],pL=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),V2=(e,t)=>{var n=Ma(e,dL),r=Ma(t,hL);return e[ja]===t[ja]&&pL(n,r)},gL=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(!q.equals(r,i)||!V2(r,i))return!1}return!0},mL=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.anchor.offset!==i.anchor.offset||r.focus.offset!==i.focus.offset||!V2(r,i))return!1}return!0};function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yL=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=Or(),a=ee.findPath(o,i),l=N.parent(a),c=!!n[I2];return o.isVoid(r)?Le.createElement(Hv,{length:de.string(r).length}):n.text===""&&r.children[r.children.length-1]===i&&!o.isInline(r)&&C.string(o,l)===""?Le.createElement(Hv,{isLineBreak:!0,isMarkPlaceholder:c}):n.text===""?Le.createElement(Hv,{isMarkPlaceholder:c}):t&&n.text.slice(-1)===` `?Le.createElement(q2,{isTrailing:!0,text:n.text}):Le.createElement(q2,{text:n.text})},q2=e=>{var{text:t,isTrailing:n=!1}=e,r=D.useRef(null),i=()=>"".concat(t??"").concat(n?` `:""),[o]=D.useState(i);return Ss(()=>{var a=i();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),Le.createElement(wL,{ref:r},o)},wL=D.memo(D.forwardRef((e,t)=>Le.createElement("span",{"data-slate-string":!0,ref:t},e.children))),Hv=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),Le.createElement("span",vL({},i),!(Bn||F2)||!n?"\uFEFF":null,n?Le.createElement("br",null):null)};function G2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bL=Bn?300:0;function _L(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function Y2(e){e.current&&(clearTimeout(e.current),e.current=null)}var CL=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=b=>Le.createElement(DL,Q2({},b))}=e,l=Or(),c=D.useRef(null),f=D.useRef(null),[h,g]=D.useState(!1),m=D.useRef(null),y=D.useCallback(b=>{if(_L(c,b==null),b==null){var x;Tv.delete(l),(x=t.onPlaceholderResize)===null||x===void 0||x.call(t,null)}else{if(Tv.set(l,b),!c.current){var O=window.ResizeObserver||x9;c.current=new O(()=>{var B;(B=t.onPlaceholderResize)===null||B===void 0||B.call(t,b)})}c.current.observe(b),f.current=b}},[f,t,l]),v=Le.createElement(yL,{isLast:n,leaf:t,parent:i,text:r}),p=!!t[ja];if(D.useEffect(()=>(p?m.current||(m.current=setTimeout(()=>{g(!0),m.current=null},bL)):(Y2(m),g(!1)),()=>Y2(m)),[p,g]),p&&h){var E={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Ds?"inherit":void 0},contentEditable:!1,ref:y}};v=Le.createElement(Le.Fragment,null,o(E),v)}var _={"data-slate-leaf":!0};return a({attributes:_,children:v,leaf:t,text:r})},EL=Le.memo(CL,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Ee.equals(t.leaf,e.leaf)&&t.leaf[ja]===e.leaf[ja]),DL=e=>{var{attributes:t,children:n}=e;return Le.createElement("span",Q2({},t),n)},xL=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:a}=e,l=Or(),c=D.useRef(null),f=Ee.decorations(a,t),h=ee.findKey(l,a),g=[],m=0;m<f.length;m++){var y=f[m];g.push(Le.createElement(EL,{isLast:n&&m===f.length-1,key:"".concat(h.id,"-").concat(m),renderPlaceholder:i,leaf:y,text:a,parent:r,renderLeaf:o}))}var v=D.useCallback(p=>{var E=jd.get(l);p?(E==null||E.set(h,p),xs.set(a,p),Ml.set(p,a)):(E==null||E.delete(h),xs.delete(a),c.current&&Ml.delete(c.current)),c.current=p},[c,l,h,a]);return Le.createElement("span",{"data-slate-node":"text",ref:v},g)},J2=Le.memo(xL,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&mL(t.decorations,e.decorations));function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var AL=e=>{var{decorations:t,element:n,renderElement:r=b=>Le.createElement(OL,Wv({},b)),renderPlaceholder:i,renderLeaf:o,selection:a}=e,l=Or(),c=BL(),f=l.isInline(n),h=ee.findKey(l,n),g=D.useCallback(b=>{var x=jd.get(l);b?(x==null||x.set(h,b),xs.set(n,b),Ml.set(b,n)):(x==null||x.delete(h),xs.delete(n))},[l,h,n]),m=tA({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}),y={"data-slate-node":"element",ref:g};if(f&&(y["data-slate-inline"]=!0),!f&&C.hasInlines(l,n)){var v=de.string(n),p=ZD(v);p==="rtl"&&(y.dir=p)}if(C.isVoid(l,n)){y["data-slate-void"]=!0,!c&&f&&(y.contentEditable=!1);var E=f?"span":"div",[[_]]=de.texts(n);m=Le.createElement(E,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Le.createElement(J2,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:_})),Pv.set(_,0),Rv.set(_,n)}return r({attributes:y,children:m,element:n})},SL=Le.memo(AL,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&gL(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&q.equals(e.selection,t.selection))),OL=e=>{var{attributes:t,children:n,element:r}=e,i=Or(),o=i.isInline(r)?"span":"div";return Le.createElement(o,Wv(Wv({},t),{},{style:{position:"relative"}}),n)},Z2=D.createContext(()=>[]),FL=()=>D.useContext(Z2),eA=D.createContext(!1),Ud=()=>D.useContext(eA),tA=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}=e,l=FL(),c=Or(),f=ee.findPath(c,n),h=[],g=we.isElement(n)&&!c.isInline(n)&&C.hasInlines(c,n),m=0;m<n.children.length;m++){var y=f.concat(m),v=n.children[m],p=ee.findKey(c,v),E=C.range(c,y),_=a&&q.intersection(E,a),b=l([v,y]);for(var x of t){var O=q.intersection(x,E);O&&b.push(O)}we.isElement(v)?h.push(Le.createElement(eA.Provider,{key:"provider-".concat(p.id),value:!!_},Le.createElement(SL,{decorations:b,element:v,key:p.id,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:_}))):h.push(Le.createElement(J2,{decorations:b,key:p.id,isLast:g&&m===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:o,text:v})),Pv.set(v,m),Rv.set(v,n)}return h},nA=D.createContext(!1),BL=()=>D.useContext(nA),rA=D.createContext(null),Wi=()=>{var e=D.useContext(rA);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function kL(){var e=Or(),t=D.useRef(!1),n=D.useRef(0),r=D.useCallback(()=>{if(!t.current){t.current=!0;var i=ee.getWindow(e);i.cancelAnimationFrame(n.current),n.current=i.requestAnimationFrame(()=>{t.current=!1})}},[e]);return D.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var PL=3,RL={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},TL={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},IL={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},xt=e=>{var t=RL[e],n=TL[e],r=IL[e],i=t&&Ov(t),o=n&&Ov(n),a=r&&Ov(r);return l=>!!(i&&i(l)||B2&&o&&o(l)||!B2&&a&&a(l))},kt={isBold:xt("bold"),isCompose:xt("compose"),isMoveBackward:xt("moveBackward"),isMoveForward:xt("moveForward"),isDeleteBackward:xt("deleteBackward"),isDeleteForward:xt("deleteForward"),isDeleteLineBackward:xt("deleteLineBackward"),isDeleteLineForward:xt("deleteLineForward"),isDeleteWordBackward:xt("deleteWordBackward"),isDeleteWordForward:xt("deleteWordForward"),isExtendBackward:xt("extendBackward"),isExtendForward:xt("extendForward"),isExtendLineBackward:xt("extendLineBackward"),isExtendLineForward:xt("extendLineForward"),isItalic:xt("italic"),isMoveLineBackward:xt("moveLineBackward"),isMoveLineForward:xt("moveLineForward"),isMoveWordBackward:xt("moveWordBackward"),isMoveWordForward:xt("moveWordForward"),isRedo:xt("redo"),isSoftBreak:xt("insertSoftBreak"),isSplitBlock:xt("splitBlock"),isTransposeCharacter:xt("transposeCharacter"),isUndo:xt("undo")},NL=(e,t)=>{var n=[],r=()=>{n=[]},i=a=>{if(t.current){var l=a.filter(c=>jv(e,c,a));n.push(...l)}};function o(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(l=>{a.target.insertBefore(l,a.nextSibling)}),a.addedNodes.forEach(l=>{a.target.removeChild(l)}))}),r())}return{registerMutations:i,restoreDOM:o,clear:r}},LL={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class iA extends D.Component{constructor(){super(...arguments),Sr(this,"context",null),Sr(this,"manager",null),Sr(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,LL)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=NL(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,i=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(i!=null&&i.length){var o;(o=this.manager)===null||o===void 0||o.registerMutations(i)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}Sr(iA,"contextType",Fv);var ML=Bn?iA:e=>{var{children:t}=e;return Le.createElement(Le.Fragment,null,t)},$L=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],jL=["text"];function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var zL=e=>Le.createElement(Le.Fragment,null,tA(e)),UL=e=>{var t=D.useCallback(L=>Le.createElement(HL,gi({},L)),[]),{autoFocus:n,decorate:r=WL,onDOMBeforeInput:i,placeholder:o,readOnly:a=!1,renderElement:l,renderLeaf:c,renderPlaceholder:f=t,scrollSelectionIntoView:h=VL,style:g={},as:m="div",disableDefaultStyles:y=!1}=e,v=Ma(e,$L),p=Wi(),[E,_]=D.useState(!1),b=D.useRef(null),x=D.useRef([]),[O,B]=D.useState(),k=D.useRef(!1),{onUserInput:P,receivedUserInput:I}=kL(),[,Q]=D.useReducer(L=>L+1,0);T2.set(p,Q),Iv.set(p,a);var j=D.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);D.useEffect(()=>{b.current&&n&&b.current.focus()},[n]);var X=D.useRef(),$=D.useMemo(()=>AI(()=>{var L=ee.toDOMNode(p,p),ne=L.getRootNode();if(P2&&!k.current&&Ds&&ne instanceof ShadowRoot){k.current=!0;var J=K9();J?document.execCommand("indent"):K.deselect(p),k.current=!1;return}var Y=X.current;if((Bn||!ee.isComposing(p))&&(!j.isUpdatingSelection||Y!=null&&Y.isFlushing())&&!j.isDraggingInternally){var ge=ee.findDocumentOrShadowRoot(p),{activeElement:he}=ge,Pe=ee.toDOMNode(p,p),me=ge.getSelection();if(he===Pe?(j.latestElement=he,Po.set(p,!0)):Po.delete(p),!me)return K.deselect(p);var{anchorNode:Fe,focusNode:Se}=me,Re=ee.hasEditableTarget(p,Fe)||ee.isTargetInsideNonReadonlyVoid(p,Fe),Be=ee.hasEditableTarget(p,Se)||ee.isTargetInsideNonReadonlyVoid(p,Se);if(Re&&Be){var ke=ee.toSlateRange(p,me,{exactMatch:!1,suppressThrow:!0});ke&&(!ee.isComposing(p)&&!(Y!=null&&Y.hasPendingChanges())&&!(Y!=null&&Y.isFlushing())?K.select(p,ke):Y==null||Y.handleUserSelect(ke))}a&&(!Re||!Be)&&K.deselect(p)}},100),[p,a,j]),U=D.useMemo(()=>bI($,0),[$]);X.current=fL({node:b,onDOMSelectionChange:$,scheduleOnDOMSelectionChange:U}),Ss(()=>{var L,ne,J;b.current&&(J=Mv(b.current))?(R2.set(p,J),Md.set(p,b.current),xs.set(p,b.current),Ml.set(b.current,p)):xs.delete(p);var{selection:Y}=p,ge=ee.findDocumentOrShadowRoot(p),he=ge.getSelection();if(!(!he||!ee.isFocused(p)||(L=X.current)!==null&&L!==void 0&&L.hasPendingAction())){var Pe=Re=>{var Be=he.type!=="None";if(!(!Y&&!Be)){var ke=he.focusNode,ct;if($a&&he.rangeCount>1){var Mt=he.getRangeAt(0),At=he.getRangeAt(he.rangeCount-1);Mt.startContainer===ke?ct=At.endContainer:ct=Mt.startContainer}else ct=he.anchorNode;var ht=Md.get(p),rt=!1;if(ht.contains(ct)&&ht.contains(ke)&&(rt=!0),Be&&rt&&Y&&!Re){var Kt=ee.toSlateRange(p,he,{exactMatch:!0,suppressThrow:!0});if(Kt&&q.equals(Kt,Y)){var ve;if(!j.hasMarkPlaceholder||(ve=ct)!==null&&ve!==void 0&&(ve=ve.parentElement)!==null&&ve!==void 0&&ve.hasAttribute("data-slate-mark-placeholder"))return}}if(Y&&!ee.hasRange(p,Y)){p.selection=ee.toSlateRange(p,he,{exactMatch:!1,suppressThrow:!0});return}j.isUpdatingSelection=!0;var be=Y&&ee.toDOMRange(p,Y);return be?(ee.isComposing(p)&&!Bn?he.collapseToEnd():q.isBackward(Y)?he.setBaseAndExtent(be.endContainer,be.endOffset,be.startContainer,be.startOffset):he.setBaseAndExtent(be.startContainer,be.startOffset,be.endContainer,be.endOffset),h(p,be)):he.removeAllRanges(),be}};he.rangeCount<=1&&Pe();var me=((ne=X.current)===null||ne===void 0?void 0:ne.isFlushing())==="action";if(!Bn||!me){setTimeout(()=>{j.isUpdatingSelection=!1});return}var Fe=null,Se=requestAnimationFrame(()=>{if(me){var Re=Be=>{try{var ke=ee.toDOMNode(p,p);ke.focus(),Pe(Be)}catch{}};Re(),Fe=setTimeout(()=>{Re(!0),j.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(Se),Fe&&clearTimeout(Fe)}}});var T=D.useCallback(L=>{var ne=ee.toDOMNode(p,p),J=ne.getRootNode();if(P2&&k!==null&&k!==void 0&&k.current&&Ds&&J instanceof ShadowRoot){var Y=L.getTargetRanges(),ge=Y[0],he=new window.Range;he.setStart(ge.startContainer,ge.startOffset),he.setEnd(ge.endContainer,ge.endOffset);var Pe=ee.toSlateRange(p,he,{exactMatch:!1,suppressThrow:!1});K.select(p,Pe),L.preventDefault(),L.stopImmediatePropagation();return}if(P(),!a&&ee.hasEditableTarget(p,L.target)&&!KL(L,i)){var me;if(X.current)return X.current.handleDOMBeforeInput(L);U.flush(),$.flush();var{selection:Fe}=p,{inputType:Se}=L,Re=L.dataTransfer||L.data||void 0,Be=Se==="insertCompositionText"||Se==="deleteCompositionText";if(Be&&ee.isComposing(p))return;var ke=!1;if(Se==="insertText"&&Fe&&q.isCollapsed(Fe)&&L.data&&L.data.length===1&&/[a-z ]/i.test(L.data)&&Fe.anchor.offset!==0){var ct,Mt;ke=!0,p.marks&&(ke=!1);var{anchor:At}=Fe,[ht,rt]=ee.toDOMPoint(p,At),Kt=(ct=ht.parentElement)===null||ct===void 0?void 0:ct.closest("a"),ve=ee.getWindow(p);if(ke&&Kt&&ee.hasDOMNode(p,Kt)){var be,Ze=ve==null?void 0:ve.document.createTreeWalker(Kt,NodeFilter.SHOW_TEXT).lastChild();Ze===ht&&((be=Ze.textContent)===null||be===void 0?void 0:be.length)===rt&&(ke=!1)}if(ke&&ht.parentElement&&(ve==null||(Mt=ve.getComputedStyle(ht.parentElement))===null||Mt===void 0?void 0:Mt.whiteSpace)==="pre"){var it=C.above(p,{at:At.path,match:Pr=>we.isElement(Pr)&&C.isBlock(p,Pr)});it&&de.string(it[0]).includes(" ")&&(ke=!1)}}if(!Se.startsWith("delete")||Se.startsWith("deleteBy")){var[Je]=L.getTargetRanges();if(Je){var qt=ee.toSlateRange(p,Je,{exactMatch:!1,suppressThrow:!1});if(!Fe||!q.equals(Fe,qt)){ke=!1;var sn=!Be&&p.selection&&C.rangeRef(p,p.selection);K.select(p,qt),sn&&$l.set(p,sn)}}}if(Be)return;if(ke||L.preventDefault(),Fe&&q.isExpanded(Fe)&&Se.startsWith("delete")){var pn=Se.endsWith("Backward")?"backward":"forward";C.deleteFragment(p,{direction:pn});return}switch(Se){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{C.deleteFragment(p);break}case"deleteContent":case"deleteContentForward":{C.deleteForward(p);break}case"deleteContentBackward":{C.deleteBackward(p);break}case"deleteEntireSoftLine":{C.deleteBackward(p,{unit:"line"}),C.deleteForward(p,{unit:"line"});break}case"deleteHardLineBackward":{C.deleteBackward(p,{unit:"block"});break}case"deleteSoftLineBackward":{C.deleteBackward(p,{unit:"line"});break}case"deleteHardLineForward":{C.deleteForward(p,{unit:"block"});break}case"deleteSoftLineForward":{C.deleteForward(p,{unit:"line"});break}case"deleteWordBackward":{C.deleteBackward(p,{unit:"word"});break}case"deleteWordForward":{C.deleteForward(p,{unit:"word"});break}case"insertLineBreak":C.insertSoftBreak(p);break;case"insertParagraph":{C.insertBreak(p);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{Se==="insertFromComposition"&&ee.isComposing(p)&&(_(!1),As.set(p,!1)),(Re==null?void 0:Re.constructor.name)==="DataTransfer"?ee.insertData(p,Re):typeof Re=="string"&&(ke?x.current.push(()=>C.insertText(p,Re)):C.insertText(p,Re));break}}var cr=(me=$l.get(p))===null||me===void 0?void 0:me.unref();$l.delete(p),cr&&(!p.selection||!q.equals(p.selection,cr))&&K.select(p,cr)}},[p,$,P,i,a,U]),G=D.useCallback(L=>{L==null?($.cancel(),U.cancel(),Md.delete(p),xs.delete(p),b.current&&ko&&b.current.removeEventListener("beforeinput",T)):ko&&L.addEventListener("beforeinput",T),b.current=L},[$,U,p,T]);Ss(()=>{var L=ee.getWindow(p);return L.document.addEventListener("selectionchange",U),()=>{L.document.removeEventListener("selectionchange",U)}},[U]);var se=r([p,[]]),re=o&&p.children.length===1&&Array.from(de.texts(p)).length===1&&de.string(p)===""&&!E,V=D.useCallback(L=>{if(L&&re){var ne;B((ne=L.getBoundingClientRect())===null||ne===void 0?void 0:ne.height)}else B(void 0)},[re]);if(re){var te=C.start(p,[]);se.push({[ja]:!0,placeholder:o,onPlaceholderResize:V,anchor:te,focus:te})}var{marks:le}=p;if(j.hasMarkPlaceholder=!1,p.selection&&q.isCollapsed(p.selection)&&le){var{anchor:ce}=p.selection,ye=de.leaf(p,ce.path),De=Ma(ye,jL);if(!Ee.equals(ye,le,{loose:!0})){j.hasMarkPlaceholder=!0;var Ce=Object.fromEntries(Object.keys(De).map(L=>[L,null]));se.push(gi(gi(gi({[I2]:!0},Ce),le),{},{anchor:ce,focus:ce}))}}return D.useEffect(()=>{setTimeout(()=>{var{selection:L}=p;if(L){var{anchor:ne}=L,J=de.leaf(p,ne.path);if(le&&!Ee.equals(J,le,{loose:!0})){Jr.set(p,le);return}}Jr.delete(p)})}),Le.createElement(nA.Provider,{value:a},Le.createElement(Z2.Provider,{value:r},Le.createElement(ML,{node:b,receivedUserInput:I},Le.createElement(m,gi(gi({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},v),{},{spellCheck:ko||!Ld?v.spellCheck:!1,autoCorrect:ko||!Ld?v.autoCorrect:"false",autoCapitalize:ko||!Ld?v.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:G,style:gi(gi({},y?{}:gi({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},O?{minHeight:O}:{})),g),onBeforeInput:D.useCallback(L=>{if(!ko&&!a&&!kn(L,v.onBeforeInput)&&ee.hasSelectableTarget(p,L.target)&&(L.preventDefault(),!ee.isComposing(p))){var ne=L.data;C.insertText(p,ne)}},[v.onBeforeInput,p,a]),onInput:D.useCallback(L=>{if(!kn(L,v.onInput)){if(X.current){X.current.handleInput();return}for(var ne of x.current)ne();x.current=[]}},[v.onInput]),onBlur:D.useCallback(L=>{if(!(a||j.isUpdatingSelection||!ee.hasSelectableTarget(p,L.target)||kn(L,v.onBlur))){var ne=ee.findDocumentOrShadowRoot(p);if(j.latestElement!==ne.activeElement){var{relatedTarget:J}=L,Y=ee.toDOMNode(p,p);if(J!==Y&&!(Fr(J)&&J.hasAttribute("data-slate-spacer"))){if(J!=null&&Io(J)&&ee.hasDOMNode(p,J)){var ge=ee.toSlateNode(p,J);if(we.isElement(ge)&&!p.isVoid(ge))return}if(Ds){var he=ne.getSelection();he==null||he.removeAllRanges()}Po.delete(p)}}}},[a,j.isUpdatingSelection,j.latestElement,p,v.onBlur]),onClick:D.useCallback(L=>{if(ee.hasTarget(p,L.target)&&!kn(L,v.onClick)&&Io(L.target)){var ne=ee.toSlateNode(p,L.target),J=ee.findPath(p,ne);if(!C.hasPath(p,J)||de.get(p,J)!==ne)return;if(L.detail===PL&&J.length>=1){var Y=J;if(!(we.isElement(ne)&&C.isBlock(p,ne))){var ge,he=C.above(p,{match:ke=>we.isElement(ke)&&C.isBlock(p,ke),at:J});Y=(ge=he==null?void 0:he[1])!==null&&ge!==void 0?ge:J.slice(0,1)}var Pe=C.range(p,Y);K.select(p,Pe);return}if(a)return;var me=C.start(p,J),Fe=C.end(p,J),Se=C.void(p,{at:me}),Re=C.void(p,{at:Fe});if(Se&&Re&&N.equals(Se[1],Re[1])){var Be=C.range(p,me);K.select(p,Be)}}},[p,v.onClick,a]),onCompositionEnd:D.useCallback(L=>{if(ee.hasSelectableTarget(p,L.target)){var ne;if(ee.isComposing(p)&&Promise.resolve().then(()=>{_(!1),As.set(p,!1)}),(ne=X.current)===null||ne===void 0||ne.handleCompositionEnd(L),kn(L,v.onCompositionEnd)||Bn)return;if(!Ds&&!I9&&!F2&&!L9&&!N9&&L.data){var J=Jr.get(p);Jr.delete(p),J!==void 0&&(Hi.set(p,p.marks),p.marks=J),C.insertText(p,L.data);var Y=Hi.get(p);Hi.delete(p),Y!==void 0&&(p.marks=Y)}}},[v.onCompositionEnd,p]),onCompositionUpdate:D.useCallback(L=>{ee.hasSelectableTarget(p,L.target)&&!kn(L,v.onCompositionUpdate)&&(ee.isComposing(p)||(_(!0),As.set(p,!0)))},[v.onCompositionUpdate,p]),onCompositionStart:D.useCallback(L=>{if(ee.hasSelectableTarget(p,L.target)){var ne;if((ne=X.current)===null||ne===void 0||ne.handleCompositionStart(L),kn(L,v.onCompositionStart)||Bn)return;_(!0);var{selection:J}=p;if(J&&q.isExpanded(J)){C.deleteFragment(p);return}}},[v.onCompositionStart,p]),onCopy:D.useCallback(L=>{ee.hasSelectableTarget(p,L.target)&&!kn(L,v.onCopy)&&!sA(L)&&(L.preventDefault(),ee.setFragmentData(p,L.clipboardData,"copy"))},[v.onCopy,p]),onCut:D.useCallback(L=>{if(!a&&ee.hasSelectableTarget(p,L.target)&&!kn(L,v.onCut)&&!sA(L)){L.preventDefault(),ee.setFragmentData(p,L.clipboardData,"cut");var{selection:ne}=p;if(ne)if(q.isExpanded(ne))C.deleteFragment(p);else{var J=de.parent(p,ne.anchor.path);C.isVoid(p,J)&&K.delete(p)}}},[a,p,v.onCut]),onDragOver:D.useCallback(L=>{if(ee.hasTarget(p,L.target)&&!kn(L,v.onDragOver)){var ne=ee.toSlateNode(p,L.target);we.isElement(ne)&&C.isVoid(p,ne)&&L.preventDefault()}},[v.onDragOver,p]),onDragStart:D.useCallback(L=>{if(!a&&ee.hasTarget(p,L.target)&&!kn(L,v.onDragStart)){var ne=ee.toSlateNode(p,L.target),J=ee.findPath(p,ne),Y=we.isElement(ne)&&C.isVoid(p,ne)||C.void(p,{at:J,voids:!0});if(Y){var ge=C.range(p,J);K.select(p,ge)}j.isDraggingInternally=!0,ee.setFragmentData(p,L.dataTransfer,"drag")}},[a,p,v.onDragStart,j]),onDrop:D.useCallback(L=>{if(!a&&ee.hasTarget(p,L.target)&&!kn(L,v.onDrop)){L.preventDefault();var ne=p.selection,J=ee.findEventRange(p,L),Y=L.dataTransfer;K.select(p,J),j.isDraggingInternally&&ne&&!q.equals(ne,J)&&!C.void(p,{at:J,voids:!0})&&K.delete(p,{at:ne}),ee.insertData(p,Y),ee.isFocused(p)||ee.focus(p)}j.isDraggingInternally=!1},[a,p,v.onDrop,j]),onDragEnd:D.useCallback(L=>{!a&&j.isDraggingInternally&&v.onDragEnd&&ee.hasTarget(p,L.target)&&v.onDragEnd(L),j.isDraggingInternally=!1},[a,j,v,p]),onFocus:D.useCallback(L=>{if(!a&&!j.isUpdatingSelection&&ee.hasEditableTarget(p,L.target)&&!kn(L,v.onFocus)){var ne=ee.toDOMNode(p,p),J=ee.findDocumentOrShadowRoot(p);if(j.latestElement=J.activeElement,$a&&L.target!==ne){ne.focus();return}Po.set(p,!0)}},[a,j,p,v.onFocus]),onKeyDown:D.useCallback(L=>{if(!a&&ee.hasEditableTarget(p,L.target)){var ne;(ne=X.current)===null||ne===void 0||ne.handleKeyDown(L);var{nativeEvent:J}=L;if(ee.isComposing(p)&&J.isComposing===!1&&(As.set(p,!1),_(!1)),kn(L,v.onKeyDown)||ee.isComposing(p))return;var{selection:Y}=p,ge=p.children[Y!==null?Y.focus.path[0]:0],he=ZD(de.string(ge))==="rtl";if(kt.isRedo(J)){L.preventDefault();var Pe=p;typeof Pe.redo=="function"&&Pe.redo();return}if(kt.isUndo(J)){L.preventDefault();var me=p;typeof me.undo=="function"&&me.undo();return}if(kt.isMoveLineBackward(J)){L.preventDefault(),K.move(p,{unit:"line",reverse:!0});return}if(kt.isMoveLineForward(J)){L.preventDefault(),K.move(p,{unit:"line"});return}if(kt.isExtendLineBackward(J)){L.preventDefault(),K.move(p,{unit:"line",edge:"focus",reverse:!0});return}if(kt.isExtendLineForward(J)){L.preventDefault(),K.move(p,{unit:"line",edge:"focus"});return}if(kt.isMoveBackward(J)){L.preventDefault(),Y&&q.isCollapsed(Y)?K.move(p,{reverse:!he}):K.collapse(p,{edge:he?"end":"start"});return}if(kt.isMoveForward(J)){L.preventDefault(),Y&&q.isCollapsed(Y)?K.move(p,{reverse:he}):K.collapse(p,{edge:he?"start":"end"});return}if(kt.isMoveWordBackward(J)){L.preventDefault(),Y&&q.isExpanded(Y)&&K.collapse(p,{edge:"focus"}),K.move(p,{unit:"word",reverse:!he});return}if(kt.isMoveWordForward(J)){L.preventDefault(),Y&&q.isExpanded(Y)&&K.collapse(p,{edge:"focus"}),K.move(p,{unit:"word",reverse:he});return}if(ko){if((k2||Ds)&&Y&&(kt.isDeleteBackward(J)||kt.isDeleteForward(J))&&q.isCollapsed(Y)){var Fe=de.parent(p,Y.anchor.path);if(we.isElement(Fe)&&C.isVoid(p,Fe)&&(C.isInline(p,Fe)||C.isBlock(p,Fe))){L.preventDefault(),C.deleteBackward(p,{unit:"block"});return}}}else{if(kt.isBold(J)||kt.isItalic(J)||kt.isTransposeCharacter(J)){L.preventDefault();return}if(kt.isSoftBreak(J)){L.preventDefault(),C.insertSoftBreak(p);return}if(kt.isSplitBlock(J)){L.preventDefault(),C.insertBreak(p);return}if(kt.isDeleteBackward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"backward"}):C.deleteBackward(p);return}if(kt.isDeleteForward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"forward"}):C.deleteForward(p);return}if(kt.isDeleteLineBackward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"backward"}):C.deleteBackward(p,{unit:"line"});return}if(kt.isDeleteLineForward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"forward"}):C.deleteForward(p,{unit:"line"});return}if(kt.isDeleteWordBackward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"backward"}):C.deleteBackward(p,{unit:"word"});return}if(kt.isDeleteWordForward(J)){L.preventDefault(),Y&&q.isExpanded(Y)?C.deleteFragment(p,{direction:"forward"}):C.deleteForward(p,{unit:"word"});return}}}},[a,p,v.onKeyDown]),onPaste:D.useCallback(L=>{!a&&ee.hasEditableTarget(p,L.target)&&!kn(L,v.onPaste)&&(!ko||j9(L.nativeEvent)||Ds)&&(L.preventDefault(),ee.insertData(p,L.clipboardData))},[a,p,v.onPaste])}),Le.createElement(zL,{decorations:se,node:p,renderElement:l,renderPlaceholder:f,renderLeaf:c,selection:p.selection})))))},HL=e=>{var{attributes:t,children:n}=e;return Le.createElement("span",gi({},t),n,Bn&&Le.createElement("br",null))},WL=()=>[],VL=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&q.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),FI(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},kn=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},sA=e=>Io(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),KL=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},aA=D.createContext(!1),qL=()=>D.useContext(aA);function GL(e){return e instanceof Error}var uA=D.createContext({}),QL=(e,t)=>e===t;function YL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QL,[,n]=D.useReducer(h=>h+1,0),r=D.useContext(uA);if(!r)throw new Error("The `useSlateSelector` hook must be used inside the <Slate> component's context.");var{getSlate:i,addEventListener:o}=r,a=D.useRef(),l=D.useRef(()=>null),c=D.useRef(null),f;try{e!==l.current||a.current?f=e(i()):f=c.current}catch(h){throw a.current&&GL(h)&&(h.message+=` The error may be correlated with this previous error: `.concat(a.current.stack,` `)),h}return Ss(()=>{l.current=e,c.current=f,a.current=void 0}),Ss(()=>{function h(){try{var m=l.current(i());if(t(m,c.current))return;c.current=m}catch(y){y instanceof Error?a.current=y:a.current=new Error(String(y))}n()}var g=o(h);return h(),()=>g()},[o,i]),f}function JL(e){var t=D.useRef([]).current,n=D.useRef({editor:e}).current,r=D.useCallback(o=>{n.editor=o,t.forEach(a=>a(o))},[t,n]),i=D.useMemo(()=>({getSlate:()=>n.editor,addEventListener:o=>(t.push(o),()=>{t.splice(t.indexOf(o),1)})}),[t,n]);return{selectorContext:i,onChange:r}}var XL=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],ZL=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:i,onValueChange:o,initialValue:a}=e,l=Ma(e,XL),[c,f]=Le.useState(()=>{if(!de.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(rn.stringify(a)));if(!C.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(rn.stringify(t)));return t.children=a,Object.assign(t,l),{v:0,editor:t}}),{selectorContext:h,onChange:g}=JL(t),m=D.useCallback(p=>{var E;switch(r&&r(t.children),p==null||(E=p.operation)===null||E===void 0?void 0:E.type){case"set_selection":i==null||i(t.selection);break;default:o==null||o(t.children)}f(_=>({v:_.v+1,editor:t})),g(t)},[t,g,r,i,o]);D.useEffect(()=>(Nv.set(t,m),()=>{Nv.set(t,()=>{})}),[t,m]);var[y,v]=D.useState(ee.isFocused(t));return D.useEffect(()=>{v(ee.isFocused(t))},[t]),Ss(()=>{var p=()=>v(ee.isFocused(t));return O2>=17?(document.addEventListener("focusin",p),document.addEventListener("focusout",p),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",p)}):(document.addEventListener("focus",p,!0),document.addEventListener("blur",p,!0),()=>{document.removeEventListener("focus",p,!0),document.removeEventListener("blur",p,!0)})},[]),Le.createElement(uA.Provider,{value:h},Le.createElement(rA.Provider,{value:c},Le.createElement(Fv.Provider,{value:c.editor},Le.createElement(aA.Provider,{value:y},n))))},eM=()=>YL(e=>e.selection,tM),tM=(e,t)=>!e&&!t?!0:!e||!t?!1:q.equals(e,t),lA=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},cA=(e,t,n)=>{var r=ee.toDOMRange(e,t).getBoundingClientRect(),i=ee.toDOMRange(e,n).getBoundingClientRect();return lA(r,i)&&lA(i,r)},nM=(e,t)=>{var n=C.range(e,q.end(t)),r=Array.from(C.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(cA(e,C.range(e,r[i]),n))return C.range(e,r[i],n);if(r.length<2)return C.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)cA(e,C.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return C.range(e,r[o],n)};function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var rM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:i,onChange:o,deleteBackward:a,addMark:l,removeMark:c}=r;return jd.set(r,new WeakMap),r.addMark=(f,h)=>{var g,m;(g=Lv.get(r))===null||g===void 0||g(),!Jr.get(r)&&(m=Un.get(r))!==null&&m!==void 0&&m.length&&Jr.set(r,null),Hi.delete(r),l(f,h)},r.removeMark=f=>{var h;!Jr.get(r)&&(h=Un.get(r))!==null&&h!==void 0&&h.length&&Jr.set(r,null),Hi.delete(r),c(f)},r.deleteBackward=f=>{if(f!=="line")return a(f);if(r.selection&&q.isCollapsed(r.selection)){var h=C.above(r,{match:v=>we.isElement(v)&&C.isBlock(r,v),at:r.selection});if(h){var[,g]=h,m=C.range(r,g,r.selection.anchor),y=nM(r,m);q.isCollapsed(y)||K.delete(r,{at:y})}}},r.apply=f=>{var h=[],g=[],m=Un.get(r);if(m!=null&&m.length){var y=m.map(T=>eL(T,f)).filter(Boolean);Un.set(r,y)}var v=To.get(r);v&&To.set(r,U2(r,v,f));var p=Ro.get(r);if(p!=null&&p.at){var E=je.isPoint(p==null?void 0:p.at)?Uv(r,p.at,f):U2(r,p.at,f);Ro.set(r,E?dA(dA({},p),{},{at:E}):null)}switch(f.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{h.push(...za(r,f.path));break}case"set_selection":{var _;(_=$l.get(r))===null||_===void 0||_.unref(),$l.delete(r);break}case"insert_node":case"remove_node":{h.push(...za(r,N.parent(f.path)));break}case"merge_node":{var b=N.previous(f.path);h.push(...za(r,b));break}case"move_node":{var x=N.common(N.parent(f.path),N.parent(f.newPath));h.push(...za(r,x));var O;N.isBefore(f.path,f.newPath)?(h.push(...za(r,N.parent(f.path))),O=f.newPath):(h.push(...za(r,N.parent(f.newPath))),O=f.path);var B=de.get(t,N.parent(O)),k=ee.findKey(r,B),P=C.pathRef(r,N.parent(O));g.push([P,k]);break}}i(f);for(var[I,Q]of h){var[j]=C.node(r,I);$d.set(j,Q)}for(var[X,$]of g)if(X.current){var[U]=C.node(r,X.current);$d.set(U,$)}},r.setFragmentData=f=>{var{selection:h}=r;if(h){var[g,m]=q.edges(h),y=C.void(r,{at:g.path}),v=C.void(r,{at:m.path});if(!(q.isCollapsed(h)&&!y)){var p=ee.toDOMRange(r,h),E=p.cloneContents(),_=E.childNodes[0];if(E.childNodes.forEach(j=>{j.textContent&&j.textContent.trim()!==""&&(_=j)}),v){var[b]=v,x=p.cloneRange(),O=ee.toDOMNode(r,b);x.setEndAfter(O),E=x.cloneContents()}if(y&&(_=E.querySelector("[data-slate-spacer]")),Array.from(E.querySelectorAll("[data-slate-zero-width]")).forEach(j=>{var X=j.getAttribute("data-slate-zero-width")==="n";j.textContent=X?` `:""}),N2(_)){var B=_.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(_),E.appendChild(B),_=B}var k=r.getFragment(),P=JSON.stringify(k),I=window.btoa(encodeURIComponent(P));_.setAttribute("data-slate-fragment",I),f.setData("application/".concat(n),I);var Q=E.ownerDocument.createElement("div");return Q.appendChild(E),Q.setAttribute("hidden","true"),E.ownerDocument.body.appendChild(Q),f.setData("text/html",Q.innerHTML),f.setData("text/plain",M2(Q)),E.ownerDocument.body.removeChild(Q),f}}},r.insertData=f=>{r.insertFragmentData(f)||r.insertTextData(f)},r.insertFragmentData=f=>{var h=f.getData("application/".concat(n))||V9(f);if(h){var g=decodeURIComponent(window.atob(h)),m=JSON.parse(g);return r.insertFragment(m),!0}return!1},r.insertTextData=f=>{var h=f.getData("text/plain");if(h){var g=h.split(/\r\n|\r|\n/),m=!1;for(var y of g)m&&K.splitNodes(r,{always:!0}),r.insertText(y),m=!0;return!0}return!1},r.onChange=f=>{var h=O2<18?QP.unstable_batchedUpdates:g=>g();h(()=>{var g=Nv.get(r);g&&g(f),o(f)})},r},za=(e,t)=>{var n=[];for(var[r,i]of C.levels(e,{at:t})){var o=ee.findKey(e,r);n.push([i,o])}return n};const iM={icon:"_icon_1x9qx_7"},oM={all_star:"\\f101",arrow:"\\25b3",arrow_back:"\\2770",arrow_down:"\f102",arrow_forward:"\\2771",arrow_up:"\\f103",arrow_2:"\\25bd",bell:"\\2b26",camera:"\\233c",cancel:"\\2715",chat_bubble:"\\f104",checkmark:"\\2714",clock:"\\23f2",cog:"\\2699",comment:"\\e603",delete:"\\f105",discovery:"\\2604",discussion:"\\f106",disqus:"\\64",expand_corners:"\\2922",expand:"\\23cd",export:"\\2924",facebook_circle:"\\46",facebook:"\\66",feed:"\\72",flag:"\\2691",forward:"\\3e",google_plus_circle:"\\47",google_plus:"\\67",group:"\\f107",heart_empty:"\\f108",heart:"\\f109",images:"\\26fa",info:"\\24d8",lightning:"\\f10a",link:"\\bb",location:"\\2351",lock:"\\1f512",mail:"\\2709",map:"\\25eb",megaphone:"\\e600",menu:"\\2630",minus:"\\2d",music:"\\266b",pause:"\\268c",pencil_large:"\\270e",pencil:"\\270f",photo:"\\25f1",pin:"\\2199",play:"\\25ba",plus:"\\2b",proceed:"\\2192",remove:"\\2716",reply_large:"\\21a9",reply:"\\3c",search:"\\26b2",share:"\\2945",site_new:"\\f10b",site:"\\f10c",spam:"\\f10d",star:"\\2605",trophy:"\\1f3c6",twitter_circle:"\\54",twitter:"\\74",upgrade_arrow_pro:"\\f10e",video:"\\25b6",warning:"\\26a0",write:"\\29c4"},{icon:sM}=iM,aM=({icon:e,className:t="",title:n=void 0,ariaLabel:r=void 0})=>{const i={"--icon-content":`'${oM[e]}'`};return W("span",{className:`${sM} ${t}`,style:i,title:n,"aria-label":r})},Hd={success:"_success_16l9s_1",info:"_info_16l9s_1",warn:"_warn_16l9s_1",error:"_error_16l9s_1",message:"_message_16l9s_33",icon:"_icon_16l9s_38",dismiss:"_dismiss_16l9s_44"},uM=({clearAlert:e,message:t,type:n="error",safe:r})=>Ve("div",{className:Hd[n],children:[Ve("span",{className:Hd.message,children:[(n==="warn"||n==="error")&&W(aM,{className:Hd.icon,icon:"warning"}),r?W("span",{dangerouslySetInnerHTML:{__html:t}}):t]}),W("button",{className:Hd.dismiss,onClick:e,children:"×"})]}),hA={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+shift+m":"code","mod+s":"strikethrough"},pA={"mod+shift+0":"spoiler","mod+shift+s":"spoiler"},gA={"mod+shift+9":"block-quote"},lM={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var Ue=(e=>(e.QUOTE="block-quote",e.BLOCK="div",e.LINK="link",e.IMAGE="image",e.VIDEO="video",e.SPOILER="spoiler",e.MENTION="mention",e.MEDIA_PREVIEW="media-preview",e))(Ue||{});const Vv=["image","video"],cM=[...Vv,"link","mention","spoiler"],mA={">":"block-quote"},fM=["block-quote"],dM=["link","spoiler"],hM=` `,jl="\uFEFF",mi=`${hM}${jl}`,vA=[{type:"div",children:[{text:""}]}],pM=1e3*60*60*24,yA=(e,t)=>{wA(e,t)?C.removeMark(e,t):C.addMark(e,t,!0),ee.focus(e)},wA=(e,t)=>{const n=C.marks(e);return n?n[t]===!0:!1},bA=e=>{const[t]=C.nodes(e,{match:n=>!C.isEditor(n)&&we.isElement(n)&&n.type==="spoiler"});return t},Wd=e=>{const t=bA(e);return t?!(q.isExpanded(e.selection)&&C.string(e,t[1])===jl):!1},_A=e=>{K.unwrapNodes(e,{match:t=>!C.isEditor(t)&&we.isElement(t)&&t.type==="spoiler"})},gM=e=>{Wd(e)&&_A(e);const{selection:t}=e,n=t&&q.isCollapsed(t),r={type:"spoiler",children:n?[{text:jl}]:[]};n?K.insertNodes(e,r):(K.wrapNodes(e,r,{split:!0}),K.collapse(e,{edge:"end"}))},mM=e=>{gM(e)},CA=e=>{if(ee.focus(e),Wd(e)){const t=bA(e),n=C.end(e,t[1]);Kv(e,n)?K.move(e,{unit:"offset"}):_A(e)}else mM(e)},vM=(e,t,n)=>{for(const r in hA)if(Nl(r,t)){t.preventDefault();const i=hA[r];yA(e,i)}for(const r in pA)Nl(r,t)&&(t.preventDefault(),pA[r]===Ue.SPOILER&&CA(e));for(const r in gA)if(Nl(r,t)){t.preventDefault();const i=gA[r];kA(e,i)}if(Nl("mod?+backspace",t)){const r=e.selection;if(!r)return;const[,i]=C.first(e,[0]),[,o]=C.last(e,[e.children.length-1]),a=C.range(e,i,o);if(q.equals(r,a)){t.preventDefault(),K.removeNodes(e,{mode:"highest",hanging:!0}),e.children.length===0&&K.insertNodes(e,vA);return}}if(Nl("mod+enter",t)){n();return}},yM=e=>{const t=ee.androidPendingDiffs(e);(t==null?void 0:t.some(({diff:r,path:i})=>{if(!r.text.endsWith(" "))return!1;const{text:o}=de.leaf(e,i);if(!(o.slice(0,r.start)+r.text.slice(0,-1)in mA))return;const l=C.above(e,{at:i,match:f=>we.isElement(f)&&C.isBlock(e,f)});if(!l)return!1;const[,c]=l;return C.isStart(e,C.start(e,i),c)}))&&ee.androidScheduleFlush(e)},EA=e=>e.children.length===1&&C.isEmpty(e,e.children[0]),Kv=(e,t)=>e.selection&&je.equals(e.selection.anchor,t),wM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:15,...e},D.createElement("g",{fill:"currentColor"},D.createElement("path",{d:"M17.1 1.847v11.084H1.9V1.847h15.2ZM17.1 0H1.9C.855 0 0 .831 0 1.847v11.084c0 1.016.855 1.847 1.9 1.847h15.2c1.045 0 1.9-.831 1.9-1.847V1.847C19 .831 18.145 0 17.1 0Z"}),D.createElement("text",{x:3.5,y:10.5,fontFamily:"Helvetica Neue, arial, sans-serif",fontSize:7.5,fontWeight:700},"GIF"))),bM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 14",...e},D.createElement("path",{fill:"currentColor",d:"M0 14V0h4.772c1.699 0 3.074.311 4.044.933.97.623 1.456 1.634 1.456 2.878 0 .622-.162 1.245-.485 1.711-.324.545-.89.856-1.537 1.167.89.155 1.618.544 2.022 1.167.485.622.728 1.322.728 2.1 0 1.322-.485 2.333-1.375 3.033-.97.7-2.346 1.011-3.963 1.011H0Zm2.912-8.167h1.94c.81 0 1.376-.155 1.78-.466.486-.234.647-.7.647-1.323 0-.622-.242-1.088-.647-1.4-.404-.31-1.051-.466-1.86-.466h-1.86v3.655Zm0 1.945v4.044h2.75c.809 0 1.375-.155 1.78-.466.404-.312.646-.778.646-1.4 0-.7-.162-1.167-.566-1.556-.404-.389-.97-.544-1.78-.544h-2.83v-.078Z"})),_M=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 17",...e},D.createElement("path",{fill:"currentColor",d:"M11.137.137h2.157L10 17H7.706zM7.044 13.193l-1.737 1.351L.606 8.5l4.701-6.044 1.737 1.351L3.394 8.5zm7.562 0 1.737 1.351L21.044 8.5l-4.7-6.044-1.738 1.351 3.65 4.693z"})),CM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",...e},D.createElement("path",{fill:"currentColor",d:"M5.6 0H12v2.333H9.903l-3.451 9.334H8.4V14H2v-2.333h2.052l3.451-9.334H5.6V0Z"})),EM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,...e},D.createElement("g",{fill:"currentColor",fillRule:"nonzero"},D.createElement("path",{d:"M13.829 9.706a1.1 1.1 0 0 1-1.61-1.5c1.253-1.344 1.227-3.773-.133-5.042-1.426-1.33-3.683-1.237-5.039.218-1.356 1.455-1.292 3.712.134 5.041a1.1 1.1 0 1 1-1.5 1.61C3.36 7.87 3.257 4.22 5.438 1.881c2.18-2.34 5.829-2.49 8.148-.327 2.267 2.114 2.308 5.936.243 8.15Z"}),D.createElement("path",{d:"M9.465 6.086A1.1 1.1 0 0 0 8.11 7.82c1.448 1.13 1.802 3.534.657 5-1.201 1.537-3.444 1.798-5.011.573-1.567-1.224-1.857-3.464-.656-5a1.1 1.1 0 0 0-1.734-1.355c-1.952 2.5-1.484 6.12 1.035 8.089 2.52 1.969 6.147 1.547 8.1-.952 1.907-2.443 1.35-6.224-1.036-8.089Z"}))),DM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},D.createElement("path",{fill:"currentColor",stroke:"null",d:"M7.634 10.966a.678.678 0 0 1 .958.958L6.77 13.747a3.243 3.243 0 0 1-2.302.95 3.247 3.247 0 0 1-3.253-3.252c0-.834.317-1.67.95-2.303l1.823-1.823a.677.677 0 1 1 .958.958L3.122 10.1a1.897 1.897 0 0 0-.553 1.345 1.894 1.894 0 0 0 1.898 1.898c.488 0 .975-.185 1.344-.554l1.823-1.823zM9.07 8.08a.677.677 0 0 1-.957.956L6.875 7.798a.677.677 0 0 1 .956-.957L9.07 8.08zm1.41 7.632-.78.162a.189.189 0 0 1-.222-.146l-.504-2.432a.187.187 0 0 1 .146-.221l.78-.165c.102-.02.2.045.221.146l.505 2.435c.02.101-.045.2-.146.221zM5.569.195l.765-.19c.1-.024.202.037.227.137l.606 2.407a.188.188 0 0 1-.137.228l-.772.195a.188.188 0 0 1-.228-.136L5.424.424A.188.188 0 0 1 5.56.197l.01-.002zm8.227 13.068-.557.574a.188.188 0 0 1-.265 0l-1.782-1.729a.187.187 0 0 1-.003-.264l.554-.573a.187.187 0 0 1 .265-.004l1.784 1.731a.188.188 0 0 1 .004.265zm2.142-3.491-.206.769a.187.187 0 0 1-.23.132l-2.4-.642a.188.188 0 0 1-.133-.23l.207-.77c.027-.1.13-.159.23-.133l2.4.644c.1.027.159.13.132.23zM.012 6.28l.217-.752a.188.188 0 0 1 .23-.128l2.388.678c.1.029.158.133.13.232l-.217.767a.188.188 0 0 1-.231.13L.136 6.526a.188.188 0 0 1-.129-.232l.005-.014zm2.017-3.565.555-.555a.188.188 0 0 1 .265 0l1.756 1.757a.188.188 0 0 1 0 .265l-.562.564a.187.187 0 0 1-.265 0L2.02 2.99a.188.188 0 0 1 0-.266l.009-.008zm6.258 2.22a.677.677 0 1 1-.957-.959l1.845-1.845.043-.04a3.248 3.248 0 0 1 2.26-.91 3.247 3.247 0 0 1 3.253 3.253c0 .834-.317 1.669-.95 2.302l-1.846 1.846a.678.678 0 0 1-.958-.958l1.845-1.846a1.89 1.89 0 0 0 .554-1.344c0-.488-.185-.976-.554-1.345a1.896 1.896 0 0 0-1.344-.554c-.477 0-.952.174-1.315.522L8.287 4.934z"})),xM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 14",...e},D.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m15.375 12.245-1.06 1.018-2.06-1.978c-.603.202-1.235.351-1.886.441l-.007.002h-.009l-.02.003-.04.005h-.007l-.002.002c-.023.001-.045.004-.068.007l-.007.002-.012.001-.022.003-.027.003-.015.002h-.006l-.062.007-.009.001-.018.002-.021.001-.016.002-.02.003-.014.001h-.004l-.024.003-.034.003-.038.003-.01.002h-.005c-.479.04-.96.05-1.438.026h-.002l-.003-.001-.04-.002-.035-.001-.016-.002H8.31l-.018-.001-.015-.002a.7.7 0 0 1-.055-.003h-.006l-.015-.001-.026-.002-.024-.003h-.018c-.021-.003-.043-.004-.064-.005h-.007l-.008-.002a.747.747 0 0 1-.068-.006l-.045-.004h-.002l-.02-.002-.024-.003h-.003l-.037-.003-.006-.001a9.964 9.964 0 0 1-2.653-.649l-.003-.001-.102-.041-.006-.002-.005-.003a1.036 1.036 0 0 1-.06-.025 9.483 9.483 0 0 1-3.31-2.316l-.008-.01-.003-.002-.013-.015-.02-.02-.012-.014-.01-.012-.016-.016-.01-.013-.01-.01-.022-.025-.014-.017-.005-.004-.051-.059a2.084 2.084 0 0 1-.05-.059l-.006-.006-.01-.012-.018-.02-.016-.02-.011-.013-.006-.007-.007-.01-.035-.042-.006-.007-.005-.006-.035-.044-.006-.007-.006-.01-.012-.014-.016-.02-.013-.015-.013-.017-.008-.01-.006-.007-.022-.03-.016-.02-.016-.021-.024-.031-.003-.004-.009-.012-.015-.02-.012-.014L1.104 8l-.015-.021-.009-.013-.005-.005-.014-.02-.021-.03-.026-.035L1 7.859v-.003l-.01-.013-.017-.024-.009-.013-.007-.01-.015-.022-.011-.015-.003-.004-.01-.017-.026-.035-.025-.038-.011-.015-.001-.003-.01-.013-.016-.025-.009-.012-.007-.012-.016-.022-.009-.015-.003-.004-.013-.02L.75 7.49l-.02-.03-.014-.024-.003-.004-.008-.012-.013-.022-.011-.016-.009-.015-.012-.02-.008-.012-.004-.006-.02-.031-.013-.022-.01-.018-.023-.038-.004-.008-.006-.01-.011-.018-.012-.019-.01-.02-.011-.017-.005-.009-.006-.01-.027-.046-.004-.008-.002-.003-.03-.053-.006-.01-.004-.008-.006-.013-.014-.025-.013-.024-.007-.013-.005-.008-.036-.066-.03-.057A8.864 8.864 0 0 1 0 6.06a8.988 8.988 0 0 1 1.038-1.85l.004-.006.006-.008.017-.023.006-.007c.012-.018.026-.035.038-.051l.044-.06.004-.004.001-.001a9.272 9.272 0 0 1 1.743-1.747L1.565 1.018 2.625 0l12.75 12.245ZM4.918 4.24l-.049.104a5.02 5.02 0 0 0-.188.5l-.013.044-.014.049-.004.016-.01.035A4.2 4.2 0 0 0 4.5 6.01v.113l.002.049.001.05.003.05v.016l.003.046.003.047.005.044c.02.252.065.501.133.746l.015.05.009.031.012.04.013.045.017.048.005.016.016.046.02.054.014.038.014.037c.468 1.194 1.486 2.149 2.74 2.569l.04.012.05.016.047.015.05.014.048.014.046.011.045.012c.31.08.63.125.951.139l.051.001.048.002.04.001h.134l.009-.001h.042a4.772 4.772 0 0 0 1.77-.401l-1.17-1.123A3.176 3.176 0 0 1 8.071 8.8l-.004-.002a2.978 2.978 0 0 1-1.736-1.422l-.001-.001v-.002l-.002-.003-.013-.023-.002-.006h-.001a.33.33 0 0 0-.017-.033l-.01-.022-.003-.006-.002-.004-.003-.004-.003-.008-.007-.014-.002-.005-.001-.003-.012-.025-.002-.004-.003-.008-.004-.007-.003-.009-.005-.009-.001-.004v-.002l-.01-.022-.002-.004-.005-.012-.002-.006-.002-.004-.005-.01-.003-.008v-.001l-.003-.003-.007-.021-.008-.018v-.003l-.001-.001-.005-.012-.003-.01v-.002a.91.91 0 0 1-.025-.067l-.022-.068V6.9h-.003l-.02-.065V6.83l-.001-.003a.865.865 0 0 1-.016-.06l-.002-.007-.002-.006-.003-.01-.001-.006v-.001l-.006-.022-.002-.005-.001-.009-.003-.013-.002-.007-.001-.006-.002-.005-.006-.03-.001-.004-.004-.019-.002-.009v-.004l-.002-.003c-.001-.01-.002-.022-.005-.032l-.006-.036a2.73 2.73 0 0 1 .048-1.17L4.918 4.24ZM6.675.547a10.35 10.35 0 0 1 3.468-.18l.075.009.06.007.088.012.038.004c.04.006.082.012.123.02h.003c.444.067.879.163 1.3.285l.029.008.037.012.066.019.06.019.101.03.053.019c1.854.605 3.45 1.72 4.591 3.16l.027.034.052.067.052.07.052.067.05.07.05.068.029.042c.367.521.677 1.081.921 1.67a8.621 8.621 0 0 1-.98 1.754l-.004.008-.004.006-.012.017-.01.01-.035.052-.041.053-.006.008-.003.004a9.308 9.308 0 0 1-1.9 1.88L13.04 7.966l.033-.065.072-.154c.048-.112.048-.112.091-.224.069-.193.129-.39.172-.588l.008-.037.002-.01.006-.03.001-.007.007-.039.006-.038.002-.004.006-.037V6.73c.014-.081.024-.162.033-.243v-.002l.003-.041.005-.04V6.4l.002-.035v-.009l.002-.03.002-.008.001-.037.002-.013v-.023l.001-.017V6.21l.002-.02v-.033l.001-.028v-.125l-.002-.055-.001-.053V5.89l-.003-.044v-.01l-.003-.052-.003-.049-.002-.015-.003-.036-.001-.015-.006-.049-.005-.048-.001-.015-.005-.036-.002-.016-.006-.044-.004-.02-.002-.026-.005-.026-.003-.018-.02-.107V5.26a4.152 4.152 0 0 0-.17-.614l-.002-.008-.012-.03-.005-.014-.01-.028-.009-.024-.006-.014-.008-.018-.01-.027-.008-.017-.011-.03-.007-.014-.019-.045-.02-.042-.002-.008-.019-.038-.007-.015-.014-.03-.013-.027-.002-.002a4.483 4.483 0 0 0-2.586-2.237l-.033-.01-.016-.006-.04-.013-.01-.002-.046-.015-.05-.014-.019-.005-.028-.009-.026-.007-.021-.006-.03-.007-.015-.003a4.649 4.649 0 0 0-.999-.14l-.009-.002h-.052l-.035-.001h-.135l-.009.001h-.043l-.037.002h-.01l-.028.001H8.78l-.027.002-.01.001c-.361.02-.718.08-1.063.183l-.009.002-.029.008-.009.003-.034.01a4.798 4.798 0 0 0-.546.213l-.036.016L5.625.844C5.964.728 6.314.63 6.67.548h.002l.003-.001Zm5.301 5.147a2.8 2.8 0 0 1-.092 1.161L8.172 3.292a3.134 3.134 0 0 1 1.962.101l.033.014.045.019.046.02c.89.395 1.543 1.196 1.703 2.155l.01.057.005.037Z"})),AM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 14",...e},D.createElement("path",{fill:"currentColor",d:"m2 12.018 1.444-1.632c.998.909 2.335 1.528 3.61 1.528 1.57 0 2.42-.681 2.42-1.734 0-.535-.205-.894-.557-1.18H0V7h4.614c-1.069-.618-1.998-1.61-1.998-3.201C2.616 1.652 4.569 0 7.286 0c1.614 0 3.185.66 4.268 1.714l-1.253 1.528c-.891-.723-1.825-1.156-3.014-1.156-1.317 0-2.187.598-2.187 1.59 0 1.053 1.061 1.445 2.208 1.9l1.89.763c.456.19.875.406 1.243.661H15v2h-3.115c.075.301.115.632.115.994C12 12.183 10.132 14 7.01 14c-1.868 0-3.694-.723-5.01-1.982Z",clipRule:"evenodd"})),SM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 16",...e},D.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.507 0v7.496c0 1.535.905 2.54 2.515 2.54 1.602 0 2.507-1.005 2.507-2.54V0h2.507v7.745c0 2.64-1.951 4.44-5.014 4.44-3.071 0-5.022-1.8-5.022-4.44V0h2.507ZM0 14h10v2H0z"})),OM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 14",...e},D.createElement("path",{fill:"currentColor",d:"M.907 5.333C1.814 1.778 3.628 0 4.535 0h2.721S3.628 2.667 3.628 6.222l1.495-.244A3.4 3.4 0 0 1 9.07 9.333a4 4 0 0 1-4 4h-.08A4.409 4.409 0 0 1 .58 8.987C.56 7.49.668 6.271.907 5.333Zm9.977 0C11.791 1.778 13.605 0 14.512 0h2.722s-3.629 2.667-3.629 6.222l1.495-.244a3.4 3.4 0 0 1 3.948 3.355 4 4 0 0 1-4 4h-.082a4.409 4.409 0 0 1-4.408-4.346c-.022-1.498.087-2.716.326-3.654Z"})),FM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:15,...e},D.createElement("g",{fill:"currentColor",fillRule:"nonzero"},D.createElement("path",{d:"M17.1 1.847v11.084H1.9V1.847h15.2ZM17.1 0H1.9C.855 0 0 .831 0 1.847v11.084c0 1.016.855 1.847 1.9 1.847h15.2c1.045 0 1.9-.831 1.9-1.847V1.847C19 .831 18.145 0 17.1 0Z"}),D.createElement("path",{d:"m5.7 5.542 3.8 2.771 1.9-.924 3.8 2.217v1.477H3.8V7.389z"}),D.createElement("ellipse",{cx:13.775,cy:5.08,rx:1.425,ry:1.385}))),qv=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},D.createElement("path",{fill:"currentColor",d:"M12 38c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4V14H12v24zM38 8h-7l-2-2H19l-2 2h-7v4h28V8z",className:"color000000 svgShape"}),D.createElement("path",{fill:"none",d:"M0 0h48v48H0z"})),BM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 26 26",...e},D.createElement("path",{fill:"currentColor",d:"M15.203 17.138h-.093c-.718 2.019-2.022 3.028-3.911 3.028-1.417 0-2.56-.529-3.427-1.586-.868-1.057-1.302-2.521-1.302-4.391 0-2.42.601-4.389 1.802-5.906s2.649-2.275 4.343-2.275c1.531 0 2.49.618 2.88 1.855h.062l.153-1.569h3.466c-.462 4.502-.694 7.446-.694 8.83 0 1.48.39 2.219 1.171 2.219.822 0 1.5-.56 2.033-1.68.534-1.12.802-2.584.802-4.391 0-2.473-.766-4.5-2.295-6.08-1.531-1.58-3.666-2.37-6.408-2.37-2.937 0-5.379 1.054-7.324 3.163-1.946 2.108-2.919 4.68-2.919 7.713 0 2.938.86 5.253 2.58 6.944 1.72 1.691 4.094 2.537 7.124 2.537 2.311 0 4.426-.454 6.346-1.363v3.028c-1.756.77-4.015 1.156-6.777 1.156-3.79 0-6.873-1.118-9.25-3.353C1.188 20.412 0 17.408 0 13.634c0-3.847 1.268-7.081 3.805-9.702C6.34 1.311 9.606 0 13.6 0c3.697 0 6.688 1.017 8.973 3.052S26 7.768 26 11.098c0 2.738-.698 4.933-2.095 6.588-1.396 1.654-3.127 2.481-5.19 2.481-1.016 0-1.844-.28-2.48-.84-.638-.561-.982-1.291-1.032-2.189zm-2.049-8.371c-.924 0-1.676.542-2.256 1.625-.581 1.084-.871 2.338-.871 3.765 0 1.015.198 1.805.593 2.371.395.566.905.848 1.532.848.966 0 1.725-.533 2.28-1.601.554-1.067.831-2.494.831-4.28 0-.846-.193-1.512-.578-1.998s-.894-.73-1.531-.73z"})),kM=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",...e},D.createElement("path",{fill:"currentColor",d:"M642.752 144 41.376 745.376a32.026 32.026 0 0 0-9.048 18.104l-32 224a31.98 31.98 0 0 0 9.048 27.152 32.015 32.015 0 0 0 27.152 9.048l224-32a32.015 32.015 0 0 0 18.096-9.056L880 381.248 642.752 144zM64 960l32-192 160 160-192 32zm950.624-713.376L925.248 336 688 98.752l89.376-89.376c12.488-12.496 32.768-12.496 45.248 0l192 192c12.504 12.488 12.504 32.76 0 45.248z"})),Eue={icon:"_icon_rsxid_1"},Os=(e,t)=>{const n={bold:()=>W(bM,{className:t}),italic:()=>W(CM,{className:t}),underline:()=>W(SM,{className:t}),code:()=>W(_M,{className:t}),strikethrough:()=>W(AM,{className:t}),spoiler:()=>W(xM,{className:t}),"block-quote":()=>W(OM,{className:t}),link:()=>W(EM,{className:t}),image:()=>W(FM,{className:t}),gifPicker:()=>W(wM,{className:t}),mention:()=>W(BM,{className:t}),default:()=>W("span",{})};return n[e]??n.default},DA=(e=[{text:""}])=>({type:Ue.BLOCK,children:e}),PM=(e,t)=>({type:Ue.LINK,url:e,view:"link",children:[{text:t}]}),Gv=e=>{const[t]=C.nodes(e,{match:n=>!C.isEditor(n)&&we.isElement(n)&&n.type===Ue.LINK});return!!t},Qv=(e,t={})=>K.unwrapNodes(e,{match:n=>!C.isEditor(n)&&we.isElement(n)&&n.type===Ue.LINK,voids:!0,...t}),xA=(e,t,n="")=>{const{selection:r}=e;r&&(K.removeNodes(e,{at:r,match:i=>!C.isEditor(i)&&we.isElement(i)&&i.type===Ue.LINK}),Vd(e,t,n))},Vd=(e,t,n)=>{var o;if(Gv(e)&&Qv(e),!t)return;t=t.replaceAll(" ","");const{selection:r}=e,i=PM(t,n.trim());if(ee.focus(e),r){const[a,l]=C.parent(e,(o=r.focus)==null?void 0:o.path);a.type===Ue.LINK&&Qv(e),e.isVoid(a)?(K.insertNodes(e,DA([i.children[0]]),{at:N.next(l),select:!0}),K.move(e,{unit:"character"})):q.isCollapsed(r)?(K.insertNodes(e,i,{select:!0}),K.move(e,{unit:"offset"})):(K.insertFragment(e,[i]),K.collapse(e,{edge:"end"}),K.move(e,{unit:"offset"}))}else K.insertNodes(e,DA([i.children[0]])),K.move(e,{unit:"offset"})},RM=e=>{const[t]=C.nodes(e,{match:n=>!C.isEditor(n)&&we.isElement(n)&&n.type===Ue.LINK});if(t){const n=t[0].url;return{text:de.string(t[0]),url:n}}return{text:"",url:""}},AA=(e,t)=>{ee.focus(e),K.insertNodes(e,[t,{text:""}]),K.move(e)},TM=(e,t)=>{const n={id:t,type:Ue.IMAGE,url:null,isUploading:!0,children:[{text:""}]};AA(e,n)},IM=(e,t,n)=>{K.setNodes(e,{isUploading:!1,url:t},{at:[],match:r=>r.id===n})},NM=(e,t)=>{K.removeNodes(e,{at:[],match:n=>n.id===t})},LM=(e,t)=>{const n={type:Ue.VIDEO,url:t,children:[{text:""}]};AA(e,n)},SA=(e,t)=>{const n=q.end(e.selection);return C.string(e,{anchor:{path:n.path,offset:t.offset-1},focus:{path:n.path,offset:t.offset}})},Yv=(e,t)=>{const n=q.end(e.selection);return C.string(e,{anchor:{path:n.path,offset:t.offset},focus:{path:n.path,offset:t.offset+1}})},MM=/[@0-9a-z]/i,Kd=(e,t=MM)=>{const{selection:n}=e;if(n){const r=q.end(n);let i="";const o={offset:r.offset,path:[...r.path]};let a=r.offset,l=r.offset;for(;o.offset>=0&&SA(e,o).match(t);)i=SA(e,o)+i,a=o.offset-1,o.offset--;for(o.offset=r.offset;i.length&&Yv(e,o).match(t);)i+=Yv(e,o),l=o.offset+1,o.offset++;const c={anchor:{path:r.path,offset:a},focus:{path:r.path,offset:l}};return{currentWord:i,currentRange:c}}return{}};var qd={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */qd.exports,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",g=1,m=2,y=4,v=1,p=2,E=1,_=2,b=4,x=8,O=16,B=32,k=64,P=128,I=256,Q=512,j=30,X="...",$=800,U=16,T=1,G=2,se=3,re=1/0,V=9007199254740991,te=17976931348623157e292,le=0/0,ce=4294967295,ye=ce-1,De=ce>>>1,Ce=[["ary",P],["bind",E],["bindKey",_],["curry",x],["curryRight",O],["flip",Q],["partial",B],["partialRight",k],["rearg",I]],L="[object Arguments]",ne="[object Array]",J="[object AsyncFunction]",Y="[object Boolean]",ge="[object Date]",he="[object DOMException]",Pe="[object Error]",me="[object Function]",Fe="[object GeneratorFunction]",Se="[object Map]",Re="[object Number]",Be="[object Null]",ke="[object Object]",ct="[object Promise]",Mt="[object Proxy]",At="[object RegExp]",ht="[object Set]",rt="[object String]",Kt="[object Symbol]",ve="[object Undefined]",be="[object WeakMap]",Ze="[object WeakSet]",it="[object ArrayBuffer]",Je="[object DataView]",qt="[object Float32Array]",sn="[object Float64Array]",pn="[object Int8Array]",cr="[object Int16Array]",Pr="[object Int32Array]",Rr="[object Uint8Array]",Gi="[object Uint8ClampedArray]",Qi="[object Uint16Array]",Yi="[object Uint32Array]",Ls=/\b__p \+= '';/g,cc=/\b(__p \+=) '' \+/g,_y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,BF=/&(?:amp|lt|gt|quot|#39);/g,kF=/[&<>"']/g,Aee=RegExp(BF.source),See=RegExp(kF.source),Oee=/<%-([\s\S]+?)%>/g,Fee=/<%([\s\S]+?)%>/g,PF=/<%=([\s\S]+?)%>/g,Bee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kee=/^\w*$/,Pee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cy=/[\\^$.*+?()[\]{}|]/g,Ree=RegExp(Cy.source),Ey=/^\s+/,Tee=/\s/,Iee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nee=/\{\n\/\* \[wrapped with (.+)\] \*/,Lee=/,? & /,Mee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$ee=/[()=,{}\[\]\/\s]/,jee=/\\(\\)?/g,zee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RF=/\w*$/,Uee=/^[-+]0x[0-9a-f]+$/i,Hee=/^0b[01]+$/i,Wee=/^\[object .+?Constructor\]$/,Vee=/^0o[0-7]+$/i,Kee=/^(?:0|[1-9]\d*)$/,qee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lp=/($^)/,Gee=/['\n\r\u2028\u2029\\]/g,cp="\\ud800-\\udfff",Qee="\\u0300-\\u036f",Yee="\\ufe20-\\ufe2f",Jee="\\u20d0-\\u20ff",TF=Qee+Yee+Jee,IF="\\u2700-\\u27bf",NF="a-z\\xdf-\\xf6\\xf8-\\xff",Xee="\\xac\\xb1\\xd7\\xf7",Zee="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ete="\\u2000-\\u206f",tte=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",LF="A-Z\\xc0-\\xd6\\xd8-\\xde",MF="\\ufe0e\\ufe0f",$F=Xee+Zee+ete+tte,Dy="['’]",nte="["+cp+"]",jF="["+$F+"]",fp="["+TF+"]",zF="\\d+",rte="["+IF+"]",UF="["+NF+"]",HF="[^"+cp+$F+zF+IF+NF+LF+"]",xy="\\ud83c[\\udffb-\\udfff]",ite="(?:"+fp+"|"+xy+")",WF="[^"+cp+"]",Ay="(?:\\ud83c[\\udde6-\\uddff]){2}",Sy="[\\ud800-\\udbff][\\udc00-\\udfff]",du="["+LF+"]",VF="\\u200d",KF="(?:"+UF+"|"+HF+")",ote="(?:"+du+"|"+HF+")",qF="(?:"+Dy+"(?:d|ll|m|re|s|t|ve))?",GF="(?:"+Dy+"(?:D|LL|M|RE|S|T|VE))?",QF=ite+"?",YF="["+MF+"]?",ste="(?:"+VF+"(?:"+[WF,Ay,Sy].join("|")+")"+YF+QF+")*",ate="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ute="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JF=YF+QF+ste,lte="(?:"+[rte,Ay,Sy].join("|")+")"+JF,cte="(?:"+[WF+fp+"?",fp,Ay,Sy,nte].join("|")+")",fte=RegExp(Dy,"g"),dte=RegExp(fp,"g"),Oy=RegExp(xy+"(?="+xy+")|"+cte+JF,"g"),hte=RegExp([du+"?"+UF+"+"+qF+"(?="+[jF,du,"$"].join("|")+")",ote+"+"+GF+"(?="+[jF,du+KF,"$"].join("|")+")",du+"?"+KF+"+"+qF,du+"+"+GF,ute,ate,zF,lte].join("|"),"g"),pte=RegExp("["+VF+cp+TF+MF+"]"),gte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],vte=-1,Ct={};Ct[qt]=Ct[sn]=Ct[pn]=Ct[cr]=Ct[Pr]=Ct[Rr]=Ct[Gi]=Ct[Qi]=Ct[Yi]=!0,Ct[L]=Ct[ne]=Ct[it]=Ct[Y]=Ct[Je]=Ct[ge]=Ct[Pe]=Ct[me]=Ct[Se]=Ct[Re]=Ct[ke]=Ct[At]=Ct[ht]=Ct[rt]=Ct[be]=!1;var vt={};vt[L]=vt[ne]=vt[it]=vt[Je]=vt[Y]=vt[ge]=vt[qt]=vt[sn]=vt[pn]=vt[cr]=vt[Pr]=vt[Se]=vt[Re]=vt[ke]=vt[At]=vt[ht]=vt[rt]=vt[Kt]=vt[Rr]=vt[Gi]=vt[Qi]=vt[Yi]=!0,vt[Pe]=vt[me]=vt[be]=!1;var yte={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wte={"&":"&","<":"<",">":">",'"':""","'":"'"},bte={"&":"&","<":"<",">":">",""":'"',"'":"'"},_te={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cte=parseFloat,Ete=parseInt,XF=typeof Gt=="object"&&Gt&&Gt.Object===Object&&Gt,Dte=typeof self=="object"&&self&&self.Object===Object&&self,gn=XF||Dte||Function("return this")(),Fy=t&&!t.nodeType&&t,Ms=Fy&&!0&&e&&!e.nodeType&&e,ZF=Ms&&Ms.exports===Fy,By=ZF&&XF.process,Tr=function(){try{var z=Ms&&Ms.require&&Ms.require("util").types;return z||By&&By.binding&&By.binding("util")}catch{}}(),e5=Tr&&Tr.isArrayBuffer,t5=Tr&&Tr.isDate,n5=Tr&&Tr.isMap,r5=Tr&&Tr.isRegExp,i5=Tr&&Tr.isSet,o5=Tr&&Tr.isTypedArray;function fr(z,ie,Z){switch(Z.length){case 0:return z.call(ie);case 1:return z.call(ie,Z[0]);case 2:return z.call(ie,Z[0],Z[1]);case 3:return z.call(ie,Z[0],Z[1],Z[2])}return z.apply(ie,Z)}function xte(z,ie,Z,xe){for(var $e=-1,ot=z==null?0:z.length;++$e<ot;){var Xt=z[$e];ie(xe,Xt,Z(Xt),z)}return xe}function Ir(z,ie){for(var Z=-1,xe=z==null?0:z.length;++Z<xe&&ie(z[Z],Z,z)!==!1;);return z}function Ate(z,ie){for(var Z=z==null?0:z.length;Z--&&ie(z[Z],Z,z)!==!1;);return z}function s5(z,ie){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(!ie(z[Z],Z,z))return!1;return!0}function Wo(z,ie){for(var Z=-1,xe=z==null?0:z.length,$e=0,ot=[];++Z<xe;){var Xt=z[Z];ie(Xt,Z,z)&&(ot[$e++]=Xt)}return ot}function dp(z,ie){var Z=z==null?0:z.length;return!!Z&&hu(z,ie,0)>-1}function ky(z,ie,Z){for(var xe=-1,$e=z==null?0:z.length;++xe<$e;)if(Z(ie,z[xe]))return!0;return!1}function St(z,ie){for(var Z=-1,xe=z==null?0:z.length,$e=Array(xe);++Z<xe;)$e[Z]=ie(z[Z],Z,z);return $e}function Vo(z,ie){for(var Z=-1,xe=ie.length,$e=z.length;++Z<xe;)z[$e+Z]=ie[Z];return z}function Py(z,ie,Z,xe){var $e=-1,ot=z==null?0:z.length;for(xe&&ot&&(Z=z[++$e]);++$e<ot;)Z=ie(Z,z[$e],$e,z);return Z}function Ste(z,ie,Z,xe){var $e=z==null?0:z.length;for(xe&&$e&&(Z=z[--$e]);$e--;)Z=ie(Z,z[$e],$e,z);return Z}function Ry(z,ie){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(ie(z[Z],Z,z))return!0;return!1}var Ote=Ty("length");function Fte(z){return z.split("")}function Bte(z){return z.match(Mee)||[]}function a5(z,ie,Z){var xe;return Z(z,function($e,ot,Xt){if(ie($e,ot,Xt))return xe=ot,!1}),xe}function hp(z,ie,Z,xe){for(var $e=z.length,ot=Z+(xe?1:-1);xe?ot--:++ot<$e;)if(ie(z[ot],ot,z))return ot;return-1}function hu(z,ie,Z){return ie===ie?Ute(z,ie,Z):hp(z,u5,Z)}function kte(z,ie,Z,xe){for(var $e=Z-1,ot=z.length;++$e<ot;)if(xe(z[$e],ie))return $e;return-1}function u5(z){return z!==z}function l5(z,ie){var Z=z==null?0:z.length;return Z?Ny(z,ie)/Z:le}function Ty(z){return function(ie){return ie==null?n:ie[z]}}function Iy(z){return function(ie){return z==null?n:z[ie]}}function c5(z,ie,Z,xe,$e){return $e(z,function(ot,Xt,pt){Z=xe?(xe=!1,ot):ie(Z,ot,Xt,pt)}),Z}function Pte(z,ie){var Z=z.length;for(z.sort(ie);Z--;)z[Z]=z[Z].value;return z}function Ny(z,ie){for(var Z,xe=-1,$e=z.length;++xe<$e;){var ot=ie(z[xe]);ot!==n&&(Z=Z===n?ot:Z+ot)}return Z}function Ly(z,ie){for(var Z=-1,xe=Array(z);++Z<z;)xe[Z]=ie(Z);return xe}function Rte(z,ie){return St(ie,function(Z){return[Z,z[Z]]})}function f5(z){return z&&z.slice(0,g5(z)+1).replace(Ey,"")}function dr(z){return function(ie){return z(ie)}}function My(z,ie){return St(ie,function(Z){return z[Z]})}function fc(z,ie){return z.has(ie)}function d5(z,ie){for(var Z=-1,xe=z.length;++Z<xe&&hu(ie,z[Z],0)>-1;);return Z}function h5(z,ie){for(var Z=z.length;Z--&&hu(ie,z[Z],0)>-1;);return Z}function Tte(z,ie){for(var Z=z.length,xe=0;Z--;)z[Z]===ie&&++xe;return xe}var Ite=Iy(yte),Nte=Iy(wte);function Lte(z){return"\\"+_te[z]}function Mte(z,ie){return z==null?n:z[ie]}function pu(z){return pte.test(z)}function $te(z){return gte.test(z)}function jte(z){for(var ie,Z=[];!(ie=z.next()).done;)Z.push(ie.value);return Z}function $y(z){var ie=-1,Z=Array(z.size);return z.forEach(function(xe,$e){Z[++ie]=[$e,xe]}),Z}function p5(z,ie){return function(Z){return z(ie(Z))}}function Ko(z,ie){for(var Z=-1,xe=z.length,$e=0,ot=[];++Z<xe;){var Xt=z[Z];(Xt===ie||Xt===h)&&(z[Z]=h,ot[$e++]=Z)}return ot}function pp(z){var ie=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++ie]=xe}),Z}function zte(z){var ie=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++ie]=[xe,xe]}),Z}function Ute(z,ie,Z){for(var xe=Z-1,$e=z.length;++xe<$e;)if(z[xe]===ie)return xe;return-1}function Hte(z,ie,Z){for(var xe=Z+1;xe--;)if(z[xe]===ie)return xe;return xe}function gu(z){return pu(z)?Vte(z):Ote(z)}function ei(z){return pu(z)?Kte(z):Fte(z)}function g5(z){for(var ie=z.length;ie--&&Tee.test(z.charAt(ie)););return ie}var Wte=Iy(bte);function Vte(z){for(var ie=Oy.lastIndex=0;Oy.test(z);)++ie;return ie}function Kte(z){return z.match(Oy)||[]}function qte(z){return z.match(hte)||[]}var Gte=function z(ie){ie=ie==null?gn:mu.defaults(gn.Object(),ie,mu.pick(gn,mte));var Z=ie.Array,xe=ie.Date,$e=ie.Error,ot=ie.Function,Xt=ie.Math,pt=ie.Object,jy=ie.RegExp,Qte=ie.String,Nr=ie.TypeError,gp=Z.prototype,Yte=ot.prototype,vu=pt.prototype,mp=ie["__core-js_shared__"],vp=Yte.toString,ut=vu.hasOwnProperty,Jte=0,m5=function(){var s=/[^.]+$/.exec(mp&&mp.keys&&mp.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),yp=vu.toString,Xte=vp.call(pt),Zte=gn._,ene=jy("^"+vp.call(ut).replace(Cy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wp=ZF?ie.Buffer:n,qo=ie.Symbol,bp=ie.Uint8Array,v5=wp?wp.allocUnsafe:n,_p=p5(pt.getPrototypeOf,pt),y5=pt.create,w5=vu.propertyIsEnumerable,Cp=gp.splice,b5=qo?qo.isConcatSpreadable:n,dc=qo?qo.iterator:n,$s=qo?qo.toStringTag:n,Ep=function(){try{var s=Ws(pt,"defineProperty");return s({},"",{}),s}catch{}}(),tne=ie.clearTimeout!==gn.clearTimeout&&ie.clearTimeout,nne=xe&&xe.now!==gn.Date.now&&xe.now,rne=ie.setTimeout!==gn.setTimeout&&ie.setTimeout,Dp=Xt.ceil,xp=Xt.floor,zy=pt.getOwnPropertySymbols,ine=wp?wp.isBuffer:n,_5=ie.isFinite,one=gp.join,sne=p5(pt.keys,pt),Zt=Xt.max,En=Xt.min,ane=xe.now,une=ie.parseInt,C5=Xt.random,lne=gp.reverse,Uy=Ws(ie,"DataView"),hc=Ws(ie,"Map"),Hy=Ws(ie,"Promise"),yu=Ws(ie,"Set"),pc=Ws(ie,"WeakMap"),gc=Ws(pt,"create"),Ap=pc&&new pc,wu={},cne=Vs(Uy),fne=Vs(hc),dne=Vs(Hy),hne=Vs(yu),pne=Vs(pc),Sp=qo?qo.prototype:n,mc=Sp?Sp.valueOf:n,E5=Sp?Sp.toString:n;function S(s){if($t(s)&&!ze(s)&&!(s instanceof Ye)){if(s instanceof Lr)return s;if(ut.call(s,"__wrapped__"))return DB(s)}return new Lr(s)}var bu=function(){function s(){}return function(u){if(!Rt(u))return{};if(y5)return y5(u);s.prototype=u;var d=new s;return s.prototype=n,d}}();function Op(){}function Lr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}S.templateSettings={escape:Oee,evaluate:Fee,interpolate:PF,variable:"",imports:{_:S}},S.prototype=Op.prototype,S.prototype.constructor=S,Lr.prototype=bu(Op.prototype),Lr.prototype.constructor=Lr;function Ye(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function gne(){var s=new Ye(this.__wrapped__);return s.__actions__=Vn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vn(this.__views__),s}function mne(){if(this.__filtered__){var s=new Ye(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vne(){var s=this.__wrapped__.value(),u=this.__dir__,d=ze(s),w=u<0,A=d?s.length:0,F=Fre(0,A,this.__views__),R=F.start,M=F.end,H=M-R,ae=w?M:R-1,ue=this.__iteratees__,fe=ue.length,_e=0,Oe=En(H,this.__takeCount__);if(!d||!w&&A==H&&Oe==H)return q5(s,this.__actions__);var Ie=[];e:for(;H--&&_e<Oe;){ae+=u;for(var We=-1,Ne=s[ae];++We<fe;){var Ge=ue[We],Xe=Ge.iteratee,gr=Ge.type,In=Xe(Ne);if(gr==G)Ne=In;else if(!In){if(gr==T)continue e;break e}}Ie[_e++]=Ne}return Ie}Ye.prototype=bu(Op.prototype),Ye.prototype.constructor=Ye;function js(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var w=s[u];this.set(w[0],w[1])}}function yne(){this.__data__=gc?gc(null):{},this.size=0}function wne(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function bne(s){var u=this.__data__;if(gc){var d=u[s];return d===c?n:d}return ut.call(u,s)?u[s]:n}function _ne(s){var u=this.__data__;return gc?u[s]!==n:ut.call(u,s)}function Cne(s,u){var d=this.__data__;return this.size+=this.has(s)?0:1,d[s]=gc&&u===n?c:u,this}js.prototype.clear=yne,js.prototype.delete=wne,js.prototype.get=bne,js.prototype.has=_ne,js.prototype.set=Cne;function Ji(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var w=s[u];this.set(w[0],w[1])}}function Ene(){this.__data__=[],this.size=0}function Dne(s){var u=this.__data__,d=Fp(u,s);if(d<0)return!1;var w=u.length-1;return d==w?u.pop():Cp.call(u,d,1),--this.size,!0}function xne(s){var u=this.__data__,d=Fp(u,s);return d<0?n:u[d][1]}function Ane(s){return Fp(this.__data__,s)>-1}function Sne(s,u){var d=this.__data__,w=Fp(d,s);return w<0?(++this.size,d.push([s,u])):d[w][1]=u,this}Ji.prototype.clear=Ene,Ji.prototype.delete=Dne,Ji.prototype.get=xne,Ji.prototype.has=Ane,Ji.prototype.set=Sne;function Xi(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var w=s[u];this.set(w[0],w[1])}}function One(){this.size=0,this.__data__={hash:new js,map:new(hc||Ji),string:new js}}function Fne(s){var u=zp(this,s).delete(s);return this.size-=u?1:0,u}function Bne(s){return zp(this,s).get(s)}function kne(s){return zp(this,s).has(s)}function Pne(s,u){var d=zp(this,s),w=d.size;return d.set(s,u),this.size+=d.size==w?0:1,this}Xi.prototype.clear=One,Xi.prototype.delete=Fne,Xi.prototype.get=Bne,Xi.prototype.has=kne,Xi.prototype.set=Pne;function zs(s){var u=-1,d=s==null?0:s.length;for(this.__data__=new Xi;++u<d;)this.add(s[u])}function Rne(s){return this.__data__.set(s,c),this}function Tne(s){return this.__data__.has(s)}zs.prototype.add=zs.prototype.push=Rne,zs.prototype.has=Tne;function ti(s){var u=this.__data__=new Ji(s);this.size=u.size}function Ine(){this.__data__=new Ji,this.size=0}function Nne(s){var u=this.__data__,d=u.delete(s);return this.size=u.size,d}function Lne(s){return this.__data__.get(s)}function Mne(s){return this.__data__.has(s)}function $ne(s,u){var d=this.__data__;if(d instanceof Ji){var w=d.__data__;if(!hc||w.length<i-1)return w.push([s,u]),this.size=++d.size,this;d=this.__data__=new Xi(w)}return d.set(s,u),this.size=d.size,this}ti.prototype.clear=Ine,ti.prototype.delete=Nne,ti.prototype.get=Lne,ti.prototype.has=Mne,ti.prototype.set=$ne;function D5(s,u){var d=ze(s),w=!d&&Ks(s),A=!d&&!w&&Xo(s),F=!d&&!w&&!A&&Du(s),R=d||w||A||F,M=R?Ly(s.length,Qte):[],H=M.length;for(var ae in s)(u||ut.call(s,ae))&&!(R&&(ae=="length"||A&&(ae=="offset"||ae=="parent")||F&&(ae=="buffer"||ae=="byteLength"||ae=="byteOffset")||no(ae,H)))&&M.push(ae);return M}function x5(s){var u=s.length;return u?s[ew(0,u-1)]:n}function jne(s,u){return Up(Vn(s),Us(u,0,s.length))}function zne(s){return Up(Vn(s))}function Wy(s,u,d){(d!==n&&!ni(s[u],d)||d===n&&!(u in s))&&Zi(s,u,d)}function vc(s,u,d){var w=s[u];(!(ut.call(s,u)&&ni(w,d))||d===n&&!(u in s))&&Zi(s,u,d)}function Fp(s,u){for(var d=s.length;d--;)if(ni(s[d][0],u))return d;return-1}function Une(s,u,d,w){return Go(s,function(A,F,R){u(w,A,d(A),R)}),w}function A5(s,u){return s&&Di(u,an(u),s)}function Hne(s,u){return s&&Di(u,qn(u),s)}function Zi(s,u,d){u=="__proto__"&&Ep?Ep(s,u,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[u]=d}function Vy(s,u){for(var d=-1,w=u.length,A=Z(w),F=s==null;++d<w;)A[d]=F?n:xw(s,u[d]);return A}function Us(s,u,d){return s===s&&(d!==n&&(s=s<=d?s:d),u!==n&&(s=s>=u?s:u)),s}function Mr(s,u,d,w,A,F){var R,M=u&g,H=u&m,ae=u&y;if(d&&(R=A?d(s,w,A,F):d(s)),R!==n)return R;if(!Rt(s))return s;var ue=ze(s);if(ue){if(R=kre(s),!M)return Vn(s,R)}else{var fe=Dn(s),_e=fe==me||fe==Fe;if(Xo(s))return Y5(s,M);if(fe==ke||fe==L||_e&&!A){if(R=H||_e?{}:gB(s),!M)return H?bre(s,Hne(R,s)):wre(s,A5(R,s))}else{if(!vt[fe])return A?s:{};R=Pre(s,fe,M)}}F||(F=new ti);var Oe=F.get(s);if(Oe)return Oe;F.set(s,R),WB(s)?s.forEach(function(Ne){R.add(Mr(Ne,u,d,Ne,s,F))}):UB(s)&&s.forEach(function(Ne,Ge){R.set(Ge,Mr(Ne,u,d,Ge,s,F))});var Ie=ae?H?fw:cw:H?qn:an,We=ue?n:Ie(s);return Ir(We||s,function(Ne,Ge){We&&(Ge=Ne,Ne=s[Ge]),vc(R,Ge,Mr(Ne,u,d,Ge,s,F))}),R}function Wne(s){var u=an(s);return function(d){return S5(d,s,u)}}function S5(s,u,d){var w=d.length;if(s==null)return!w;for(s=pt(s);w--;){var A=d[w],F=u[A],R=s[A];if(R===n&&!(A in s)||!F(R))return!1}return!0}function O5(s,u,d){if(typeof s!="function")throw new Nr(a);return Dc(function(){s.apply(n,d)},u)}function yc(s,u,d,w){var A=-1,F=dp,R=!0,M=s.length,H=[],ae=u.length;if(!M)return H;d&&(u=St(u,dr(d))),w?(F=ky,R=!1):u.length>=i&&(F=fc,R=!1,u=new zs(u));e:for(;++A<M;){var ue=s[A],fe=d==null?ue:d(ue);if(ue=w||ue!==0?ue:0,R&&fe===fe){for(var _e=ae;_e--;)if(u[_e]===fe)continue e;H.push(ue)}else F(u,fe,w)||H.push(ue)}return H}var Go=tB(Ei),F5=tB(qy,!0);function Vne(s,u){var d=!0;return Go(s,function(w,A,F){return d=!!u(w,A,F),d}),d}function Bp(s,u,d){for(var w=-1,A=s.length;++w<A;){var F=s[w],R=u(F);if(R!=null&&(M===n?R===R&&!pr(R):d(R,M)))var M=R,H=F}return H}function Kne(s,u,d,w){var A=s.length;for(d=He(d),d<0&&(d=-d>A?0:A+d),w=w===n||w>A?A:He(w),w<0&&(w+=A),w=d>w?0:KB(w);d<w;)s[d++]=u;return s}function B5(s,u){var d=[];return Go(s,function(w,A,F){u(w,A,F)&&d.push(w)}),d}function mn(s,u,d,w,A){var F=-1,R=s.length;for(d||(d=Tre),A||(A=[]);++F<R;){var M=s[F];u>0&&d(M)?u>1?mn(M,u-1,d,w,A):Vo(A,M):w||(A[A.length]=M)}return A}var Ky=nB(),k5=nB(!0);function Ei(s,u){return s&&Ky(s,u,an)}function qy(s,u){return s&&k5(s,u,an)}function kp(s,u){return Wo(u,function(d){return ro(s[d])})}function Hs(s,u){u=Yo(u,s);for(var d=0,w=u.length;s!=null&&d<w;)s=s[xi(u[d++])];return d&&d==w?s:n}function P5(s,u,d){var w=u(s);return ze(s)?w:Vo(w,d(s))}function Rn(s){return s==null?s===n?ve:Be:$s&&$s in pt(s)?Ore(s):zre(s)}function Gy(s,u){return s>u}function qne(s,u){return s!=null&&ut.call(s,u)}function Gne(s,u){return s!=null&&u in pt(s)}function Qne(s,u,d){return s>=En(u,d)&&s<Zt(u,d)}function Qy(s,u,d){for(var w=d?ky:dp,A=s[0].length,F=s.length,R=F,M=Z(F),H=1/0,ae=[];R--;){var ue=s[R];R&&u&&(ue=St(ue,dr(u))),H=En(ue.length,H),M[R]=!d&&(u||A>=120&&ue.length>=120)?new zs(R&&ue):n}ue=s[0];var fe=-1,_e=M[0];e:for(;++fe<A&&ae.length<H;){var Oe=ue[fe],Ie=u?u(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(_e?fc(_e,Ie):w(ae,Ie,d))){for(R=F;--R;){var We=M[R];if(!(We?fc(We,Ie):w(s[R],Ie,d)))continue e}_e&&_e.push(Ie),ae.push(Oe)}}return ae}function Yne(s,u,d,w){return Ei(s,function(A,F,R){u(w,d(A),F,R)}),w}function wc(s,u,d){u=Yo(u,s),s=wB(s,u);var w=s==null?s:s[xi(jr(u))];return w==null?n:fr(w,s,d)}function R5(s){return $t(s)&&Rn(s)==L}function Jne(s){return $t(s)&&Rn(s)==it}function Xne(s){return $t(s)&&Rn(s)==ge}function bc(s,u,d,w,A){return s===u?!0:s==null||u==null||!$t(s)&&!$t(u)?s!==s&&u!==u:Zne(s,u,d,w,bc,A)}function Zne(s,u,d,w,A,F){var R=ze(s),M=ze(u),H=R?ne:Dn(s),ae=M?ne:Dn(u);H=H==L?ke:H,ae=ae==L?ke:ae;var ue=H==ke,fe=ae==ke,_e=H==ae;if(_e&&Xo(s)){if(!Xo(u))return!1;R=!0,ue=!1}if(_e&&!ue)return F||(F=new ti),R||Du(s)?dB(s,u,d,w,A,F):Are(s,u,H,d,w,A,F);if(!(d&v)){var Oe=ue&&ut.call(s,"__wrapped__"),Ie=fe&&ut.call(u,"__wrapped__");if(Oe||Ie){var We=Oe?s.value():s,Ne=Ie?u.value():u;return F||(F=new ti),A(We,Ne,d,w,F)}}return _e?(F||(F=new ti),Sre(s,u,d,w,A,F)):!1}function ere(s){return $t(s)&&Dn(s)==Se}function Yy(s,u,d,w){var A=d.length,F=A,R=!w;if(s==null)return!F;for(s=pt(s);A--;){var M=d[A];if(R&&M[2]?M[1]!==s[M[0]]:!(M[0]in s))return!1}for(;++A<F;){M=d[A];var H=M[0],ae=s[H],ue=M[1];if(R&&M[2]){if(ae===n&&!(H in s))return!1}else{var fe=new ti;if(w)var _e=w(ae,ue,H,s,u,fe);if(!(_e===n?bc(ue,ae,v|p,w,fe):_e))return!1}}return!0}function T5(s){if(!Rt(s)||Nre(s))return!1;var u=ro(s)?ene:Wee;return u.test(Vs(s))}function tre(s){return $t(s)&&Rn(s)==At}function nre(s){return $t(s)&&Dn(s)==ht}function rre(s){return $t(s)&&Gp(s.length)&&!!Ct[Rn(s)]}function I5(s){return typeof s=="function"?s:s==null?Gn:typeof s=="object"?ze(s)?M5(s[0],s[1]):L5(s):r4(s)}function Jy(s){if(!Ec(s))return sne(s);var u=[];for(var d in pt(s))ut.call(s,d)&&d!="constructor"&&u.push(d);return u}function ire(s){if(!Rt(s))return jre(s);var u=Ec(s),d=[];for(var w in s)w=="constructor"&&(u||!ut.call(s,w))||d.push(w);return d}function Xy(s,u){return s<u}function N5(s,u){var d=-1,w=Kn(s)?Z(s.length):[];return Go(s,function(A,F,R){w[++d]=u(A,F,R)}),w}function L5(s){var u=hw(s);return u.length==1&&u[0][2]?vB(u[0][0],u[0][1]):function(d){return d===s||Yy(d,s,u)}}function M5(s,u){return gw(s)&&mB(u)?vB(xi(s),u):function(d){var w=xw(d,s);return w===n&&w===u?Aw(d,s):bc(u,w,v|p)}}function Pp(s,u,d,w,A){s!==u&&Ky(u,function(F,R){if(A||(A=new ti),Rt(F))ore(s,u,R,d,Pp,w,A);else{var M=w?w(vw(s,R),F,R+"",s,u,A):n;M===n&&(M=F),Wy(s,R,M)}},qn)}function ore(s,u,d,w,A,F,R){var M=vw(s,d),H=vw(u,d),ae=R.get(H);if(ae){Wy(s,d,ae);return}var ue=F?F(M,H,d+"",s,u,R):n,fe=ue===n;if(fe){var _e=ze(H),Oe=!_e&&Xo(H),Ie=!_e&&!Oe&&Du(H);ue=H,_e||Oe||Ie?ze(M)?ue=M:Ht(M)?ue=Vn(M):Oe?(fe=!1,ue=Y5(H,!0)):Ie?(fe=!1,ue=J5(H,!0)):ue=[]:xc(H)||Ks(H)?(ue=M,Ks(M)?ue=qB(M):(!Rt(M)||ro(M))&&(ue=gB(H))):fe=!1}fe&&(R.set(H,ue),A(ue,H,w,F,R),R.delete(H)),Wy(s,d,ue)}function $5(s,u){var d=s.length;if(d)return u+=u<0?d:0,no(u,d)?s[u]:n}function j5(s,u,d){u.length?u=St(u,function(F){return ze(F)?function(R){return Hs(R,F.length===1?F[0]:F)}:F}):u=[Gn];var w=-1;u=St(u,dr(Te()));var A=N5(s,function(F,R,M){var H=St(u,function(ae){return ae(F)});return{criteria:H,index:++w,value:F}});return Pte(A,function(F,R){return yre(F,R,d)})}function sre(s,u){return z5(s,u,function(d,w){return Aw(s,w)})}function z5(s,u,d){for(var w=-1,A=u.length,F={};++w<A;){var R=u[w],M=Hs(s,R);d(M,R)&&_c(F,Yo(R,s),M)}return F}function are(s){return function(u){return Hs(u,s)}}function Zy(s,u,d,w){var A=w?kte:hu,F=-1,R=u.length,M=s;for(s===u&&(u=Vn(u)),d&&(M=St(s,dr(d)));++F<R;)for(var H=0,ae=u[F],ue=d?d(ae):ae;(H=A(M,ue,H,w))>-1;)M!==s&&Cp.call(M,H,1),Cp.call(s,H,1);return s}function U5(s,u){for(var d=s?u.length:0,w=d-1;d--;){var A=u[d];if(d==w||A!==F){var F=A;no(A)?Cp.call(s,A,1):rw(s,A)}}return s}function ew(s,u){return s+xp(C5()*(u-s+1))}function ure(s,u,d,w){for(var A=-1,F=Zt(Dp((u-s)/(d||1)),0),R=Z(F);F--;)R[w?F:++A]=s,s+=d;return R}function tw(s,u){var d="";if(!s||u<1||u>V)return d;do u%2&&(d+=s),u=xp(u/2),u&&(s+=s);while(u);return d}function Ke(s,u){return yw(yB(s,u,Gn),s+"")}function lre(s){return x5(xu(s))}function cre(s,u){var d=xu(s);return Up(d,Us(u,0,d.length))}function _c(s,u,d,w){if(!Rt(s))return s;u=Yo(u,s);for(var A=-1,F=u.length,R=F-1,M=s;M!=null&&++A<F;){var H=xi(u[A]),ae=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return s;if(A!=R){var ue=M[H];ae=w?w(ue,H,M):n,ae===n&&(ae=Rt(ue)?ue:no(u[A+1])?[]:{})}vc(M,H,ae),M=M[H]}return s}var H5=Ap?function(s,u){return Ap.set(s,u),s}:Gn,fre=Ep?function(s,u){return Ep(s,"toString",{configurable:!0,enumerable:!1,value:Ow(u),writable:!0})}:Gn;function dre(s){return Up(xu(s))}function $r(s,u,d){var w=-1,A=s.length;u<0&&(u=-u>A?0:A+u),d=d>A?A:d,d<0&&(d+=A),A=u>d?0:d-u>>>0,u>>>=0;for(var F=Z(A);++w<A;)F[w]=s[w+u];return F}function hre(s,u){var d;return Go(s,function(w,A,F){return d=u(w,A,F),!d}),!!d}function Rp(s,u,d){var w=0,A=s==null?w:s.length;if(typeof u=="number"&&u===u&&A<=De){for(;w<A;){var F=w+A>>>1,R=s[F];R!==null&&!pr(R)&&(d?R<=u:R<u)?w=F+1:A=F}return A}return nw(s,u,Gn,d)}function nw(s,u,d,w){var A=0,F=s==null?0:s.length;if(F===0)return 0;u=d(u);for(var R=u!==u,M=u===null,H=pr(u),ae=u===n;A<F;){var ue=xp((A+F)/2),fe=d(s[ue]),_e=fe!==n,Oe=fe===null,Ie=fe===fe,We=pr(fe);if(R)var Ne=w||Ie;else ae?Ne=Ie&&(w||_e):M?Ne=Ie&&_e&&(w||!Oe):H?Ne=Ie&&_e&&!Oe&&(w||!We):Oe||We?Ne=!1:Ne=w?fe<=u:fe<u;Ne?A=ue+1:F=ue}return En(F,ye)}function W5(s,u){for(var d=-1,w=s.length,A=0,F=[];++d<w;){var R=s[d],M=u?u(R):R;if(!d||!ni(M,H)){var H=M;F[A++]=R===0?0:R}}return F}function V5(s){return typeof s=="number"?s:pr(s)?le:+s}function hr(s){if(typeof s=="string")return s;if(ze(s))return St(s,hr)+"";if(pr(s))return E5?E5.call(s):"";var u=s+"";return u=="0"&&1/s==-re?"-0":u}function Qo(s,u,d){var w=-1,A=dp,F=s.length,R=!0,M=[],H=M;if(d)R=!1,A=ky;else if(F>=i){var ae=u?null:Dre(s);if(ae)return pp(ae);R=!1,A=fc,H=new zs}else H=u?[]:M;e:for(;++w<F;){var ue=s[w],fe=u?u(ue):ue;if(ue=d||ue!==0?ue:0,R&&fe===fe){for(var _e=H.length;_e--;)if(H[_e]===fe)continue e;u&&H.push(fe),M.push(ue)}else A(H,fe,d)||(H!==M&&H.push(fe),M.push(ue))}return M}function rw(s,u){return u=Yo(u,s),s=wB(s,u),s==null||delete s[xi(jr(u))]}function K5(s,u,d,w){return _c(s,u,d(Hs(s,u)),w)}function Tp(s,u,d,w){for(var A=s.length,F=w?A:-1;(w?F--:++F<A)&&u(s[F],F,s););return d?$r(s,w?0:F,w?F+1:A):$r(s,w?F+1:0,w?A:F)}function q5(s,u){var d=s;return d instanceof Ye&&(d=d.value()),Py(u,function(w,A){return A.func.apply(A.thisArg,Vo([w],A.args))},d)}function iw(s,u,d){var w=s.length;if(w<2)return w?Qo(s[0]):[];for(var A=-1,F=Z(w);++A<w;)for(var R=s[A],M=-1;++M<w;)M!=A&&(F[A]=yc(F[A]||R,s[M],u,d));return Qo(mn(F,1),u,d)}function G5(s,u,d){for(var w=-1,A=s.length,F=u.length,R={};++w<A;){var M=w<F?u[w]:n;d(R,s[w],M)}return R}function ow(s){return Ht(s)?s:[]}function sw(s){return typeof s=="function"?s:Gn}function Yo(s,u){return ze(s)?s:gw(s,u)?[s]:EB(st(s))}var pre=Ke;function Jo(s,u,d){var w=s.length;return d=d===n?w:d,!u&&d>=w?s:$r(s,u,d)}var Q5=tne||function(s){return gn.clearTimeout(s)};function Y5(s,u){if(u)return s.slice();var d=s.length,w=v5?v5(d):new s.constructor(d);return s.copy(w),w}function aw(s){var u=new s.constructor(s.byteLength);return new bp(u).set(new bp(s)),u}function gre(s,u){var d=u?aw(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function mre(s){var u=new s.constructor(s.source,RF.exec(s));return u.lastIndex=s.lastIndex,u}function vre(s){return mc?pt(mc.call(s)):{}}function J5(s,u){var d=u?aw(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function X5(s,u){if(s!==u){var d=s!==n,w=s===null,A=s===s,F=pr(s),R=u!==n,M=u===null,H=u===u,ae=pr(u);if(!M&&!ae&&!F&&s>u||F&&R&&H&&!M&&!ae||w&&R&&H||!d&&H||!A)return 1;if(!w&&!F&&!ae&&s<u||ae&&d&&A&&!w&&!F||M&&d&&A||!R&&A||!H)return-1}return 0}function yre(s,u,d){for(var w=-1,A=s.criteria,F=u.criteria,R=A.length,M=d.length;++w<R;){var H=X5(A[w],F[w]);if(H){if(w>=M)return H;var ae=d[w];return H*(ae=="desc"?-1:1)}}return s.index-u.index}function Z5(s,u,d,w){for(var A=-1,F=s.length,R=d.length,M=-1,H=u.length,ae=Zt(F-R,0),ue=Z(H+ae),fe=!w;++M<H;)ue[M]=u[M];for(;++A<R;)(fe||A<F)&&(ue[d[A]]=s[A]);for(;ae--;)ue[M++]=s[A++];return ue}function eB(s,u,d,w){for(var A=-1,F=s.length,R=-1,M=d.length,H=-1,ae=u.length,ue=Zt(F-M,0),fe=Z(ue+ae),_e=!w;++A<ue;)fe[A]=s[A];for(var Oe=A;++H<ae;)fe[Oe+H]=u[H];for(;++R<M;)(_e||A<F)&&(fe[Oe+d[R]]=s[A++]);return fe}function Vn(s,u){var d=-1,w=s.length;for(u||(u=Z(w));++d<w;)u[d]=s[d];return u}function Di(s,u,d,w){var A=!d;d||(d={});for(var F=-1,R=u.length;++F<R;){var M=u[F],H=w?w(d[M],s[M],M,d,s):n;H===n&&(H=s[M]),A?Zi(d,M,H):vc(d,M,H)}return d}function wre(s,u){return Di(s,pw(s),u)}function bre(s,u){return Di(s,hB(s),u)}function Ip(s,u){return function(d,w){var A=ze(d)?xte:Une,F=u?u():{};return A(d,s,Te(w,2),F)}}function _u(s){return Ke(function(u,d){var w=-1,A=d.length,F=A>1?d[A-1]:n,R=A>2?d[2]:n;for(F=s.length>3&&typeof F=="function"?(A--,F):n,R&&Tn(d[0],d[1],R)&&(F=A<3?n:F,A=1),u=pt(u);++w<A;){var M=d[w];M&&s(u,M,w,F)}return u})}function tB(s,u){return function(d,w){if(d==null)return d;if(!Kn(d))return s(d,w);for(var A=d.length,F=u?A:-1,R=pt(d);(u?F--:++F<A)&&w(R[F],F,R)!==!1;);return d}}function nB(s){return function(u,d,w){for(var A=-1,F=pt(u),R=w(u),M=R.length;M--;){var H=R[s?M:++A];if(d(F[H],H,F)===!1)break}return u}}function _re(s,u,d){var w=u&E,A=Cc(s);function F(){var R=this&&this!==gn&&this instanceof F?A:s;return R.apply(w?d:this,arguments)}return F}function rB(s){return function(u){u=st(u);var d=pu(u)?ei(u):n,w=d?d[0]:u.charAt(0),A=d?Jo(d,1).join(""):u.slice(1);return w[s]()+A}}function Cu(s){return function(u){return Py(t4(e4(u).replace(fte,"")),s,"")}}function Cc(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var d=bu(s.prototype),w=s.apply(d,u);return Rt(w)?w:d}}function Cre(s,u,d){var w=Cc(s);function A(){for(var F=arguments.length,R=Z(F),M=F,H=Eu(A);M--;)R[M]=arguments[M];var ae=F<3&&R[0]!==H&&R[F-1]!==H?[]:Ko(R,H);if(F-=ae.length,F<d)return uB(s,u,Np,A.placeholder,n,R,ae,n,n,d-F);var ue=this&&this!==gn&&this instanceof A?w:s;return fr(ue,this,R)}return A}function iB(s){return function(u,d,w){var A=pt(u);if(!Kn(u)){var F=Te(d,3);u=an(u),d=function(M){return F(A[M],M,A)}}var R=s(u,d,w);return R>-1?A[F?u[R]:R]:n}}function oB(s){return to(function(u){var d=u.length,w=d,A=Lr.prototype.thru;for(s&&u.reverse();w--;){var F=u[w];if(typeof F!="function")throw new Nr(a);if(A&&!R&&jp(F)=="wrapper")var R=new Lr([],!0)}for(w=R?w:d;++w<d;){F=u[w];var M=jp(F),H=M=="wrapper"?dw(F):n;H&&mw(H[0])&&H[1]==(P|x|B|I)&&!H[4].length&&H[9]==1?R=R[jp(H[0])].apply(R,H[3]):R=F.length==1&&mw(F)?R[M]():R.thru(F)}return function(){var ae=arguments,ue=ae[0];if(R&&ae.length==1&&ze(ue))return R.plant(ue).value();for(var fe=0,_e=d?u[fe].apply(this,ae):ue;++fe<d;)_e=u[fe].call(this,_e);return _e}})}function Np(s,u,d,w,A,F,R,M,H,ae){var ue=u&P,fe=u&E,_e=u&_,Oe=u&(x|O),Ie=u&Q,We=_e?n:Cc(s);function Ne(){for(var Ge=arguments.length,Xe=Z(Ge),gr=Ge;gr--;)Xe[gr]=arguments[gr];if(Oe)var In=Eu(Ne),mr=Tte(Xe,In);if(w&&(Xe=Z5(Xe,w,A,Oe)),F&&(Xe=eB(Xe,F,R,Oe)),Ge-=mr,Oe&&Ge<ae){var Wt=Ko(Xe,In);return uB(s,u,Np,Ne.placeholder,d,Xe,Wt,M,H,ae-Ge)}var ri=fe?d:this,oo=_e?ri[s]:s;return Ge=Xe.length,M?Xe=Ure(Xe,M):Ie&&Ge>1&&Xe.reverse(),ue&&H<Ge&&(Xe.length=H),this&&this!==gn&&this instanceof Ne&&(oo=We||Cc(oo)),oo.apply(ri,Xe)}return Ne}function sB(s,u){return function(d,w){return Yne(d,s,u(w),{})}}function Lp(s,u){return function(d,w){var A;if(d===n&&w===n)return u;if(d!==n&&(A=d),w!==n){if(A===n)return w;typeof d=="string"||typeof w=="string"?(d=hr(d),w=hr(w)):(d=V5(d),w=V5(w)),A=s(d,w)}return A}}function uw(s){return to(function(u){return u=St(u,dr(Te())),Ke(function(d){var w=this;return s(u,function(A){return fr(A,w,d)})})})}function Mp(s,u){u=u===n?" ":hr(u);var d=u.length;if(d<2)return d?tw(u,s):u;var w=tw(u,Dp(s/gu(u)));return pu(u)?Jo(ei(w),0,s).join(""):w.slice(0,s)}function Ere(s,u,d,w){var A=u&E,F=Cc(s);function R(){for(var M=-1,H=arguments.length,ae=-1,ue=w.length,fe=Z(ue+H),_e=this&&this!==gn&&this instanceof R?F:s;++ae<ue;)fe[ae]=w[ae];for(;H--;)fe[ae++]=arguments[++M];return fr(_e,A?d:this,fe)}return R}function aB(s){return function(u,d,w){return w&&typeof w!="number"&&Tn(u,d,w)&&(d=w=n),u=io(u),d===n?(d=u,u=0):d=io(d),w=w===n?u<d?1:-1:io(w),ure(u,d,w,s)}}function $p(s){return function(u,d){return typeof u=="string"&&typeof d=="string"||(u=zr(u),d=zr(d)),s(u,d)}}function uB(s,u,d,w,A,F,R,M,H,ae){var ue=u&x,fe=ue?R:n,_e=ue?n:R,Oe=ue?F:n,Ie=ue?n:F;u|=ue?B:k,u&=~(ue?k:B),u&b||(u&=~(E|_));var We=[s,u,A,Oe,fe,Ie,_e,M,H,ae],Ne=d.apply(n,We);return mw(s)&&bB(Ne,We),Ne.placeholder=w,_B(Ne,s,u)}function lw(s){var u=Xt[s];return function(d,w){if(d=zr(d),w=w==null?0:En(He(w),292),w&&_5(d)){var A=(st(d)+"e").split("e"),F=u(A[0]+"e"+(+A[1]+w));return A=(st(F)+"e").split("e"),+(A[0]+"e"+(+A[1]-w))}return u(d)}}var Dre=yu&&1/pp(new yu([,-0]))[1]==re?function(s){return new yu(s)}:kw;function lB(s){return function(u){var d=Dn(u);return d==Se?$y(u):d==ht?zte(u):Rte(u,s(u))}}function eo(s,u,d,w,A,F,R,M){var H=u&_;if(!H&&typeof s!="function")throw new Nr(a);var ae=w?w.length:0;if(ae||(u&=~(B|k),w=A=n),R=R===n?R:Zt(He(R),0),M=M===n?M:He(M),ae-=A?A.length:0,u&k){var ue=w,fe=A;w=A=n}var _e=H?n:dw(s),Oe=[s,u,d,w,A,ue,fe,F,R,M];if(_e&&$re(Oe,_e),s=Oe[0],u=Oe[1],d=Oe[2],w=Oe[3],A=Oe[4],M=Oe[9]=Oe[9]===n?H?0:s.length:Zt(Oe[9]-ae,0),!M&&u&(x|O)&&(u&=~(x|O)),!u||u==E)var Ie=_re(s,u,d);else u==x||u==O?Ie=Cre(s,u,M):(u==B||u==(E|B))&&!A.length?Ie=Ere(s,u,d,w):Ie=Np.apply(n,Oe);var We=_e?H5:bB;return _B(We(Ie,Oe),s,u)}function cB(s,u,d,w){return s===n||ni(s,vu[d])&&!ut.call(w,d)?u:s}function fB(s,u,d,w,A,F){return Rt(s)&&Rt(u)&&(F.set(u,s),Pp(s,u,n,fB,F),F.delete(u)),s}function xre(s){return xc(s)?n:s}function dB(s,u,d,w,A,F){var R=d&v,M=s.length,H=u.length;if(M!=H&&!(R&&H>M))return!1;var ae=F.get(s),ue=F.get(u);if(ae&&ue)return ae==u&&ue==s;var fe=-1,_e=!0,Oe=d&p?new zs:n;for(F.set(s,u),F.set(u,s);++fe<M;){var Ie=s[fe],We=u[fe];if(w)var Ne=R?w(We,Ie,fe,u,s,F):w(Ie,We,fe,s,u,F);if(Ne!==n){if(Ne)continue;_e=!1;break}if(Oe){if(!Ry(u,function(Ge,Xe){if(!fc(Oe,Xe)&&(Ie===Ge||A(Ie,Ge,d,w,F)))return Oe.push(Xe)})){_e=!1;break}}else if(!(Ie===We||A(Ie,We,d,w,F))){_e=!1;break}}return F.delete(s),F.delete(u),_e}function Are(s,u,d,w,A,F,R){switch(d){case Je:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case it:return!(s.byteLength!=u.byteLength||!F(new bp(s),new bp(u)));case Y:case ge:case Re:return ni(+s,+u);case Pe:return s.name==u.name&&s.message==u.message;case At:case rt:return s==u+"";case Se:var M=$y;case ht:var H=w&v;if(M||(M=pp),s.size!=u.size&&!H)return!1;var ae=R.get(s);if(ae)return ae==u;w|=p,R.set(s,u);var ue=dB(M(s),M(u),w,A,F,R);return R.delete(s),ue;case Kt:if(mc)return mc.call(s)==mc.call(u)}return!1}function Sre(s,u,d,w,A,F){var R=d&v,M=cw(s),H=M.length,ae=cw(u),ue=ae.length;if(H!=ue&&!R)return!1;for(var fe=H;fe--;){var _e=M[fe];if(!(R?_e in u:ut.call(u,_e)))return!1}var Oe=F.get(s),Ie=F.get(u);if(Oe&&Ie)return Oe==u&&Ie==s;var We=!0;F.set(s,u),F.set(u,s);for(var Ne=R;++fe<H;){_e=M[fe];var Ge=s[_e],Xe=u[_e];if(w)var gr=R?w(Xe,Ge,_e,u,s,F):w(Ge,Xe,_e,s,u,F);if(!(gr===n?Ge===Xe||A(Ge,Xe,d,w,F):gr)){We=!1;break}Ne||(Ne=_e=="constructor")}if(We&&!Ne){var In=s.constructor,mr=u.constructor;In!=mr&&"constructor"in s&&"constructor"in u&&!(typeof In=="function"&&In instanceof In&&typeof mr=="function"&&mr instanceof mr)&&(We=!1)}return F.delete(s),F.delete(u),We}function to(s){return yw(yB(s,n,SB),s+"")}function cw(s){return P5(s,an,pw)}function fw(s){return P5(s,qn,hB)}var dw=Ap?function(s){return Ap.get(s)}:kw;function jp(s){for(var u=s.name+"",d=wu[u],w=ut.call(wu,u)?d.length:0;w--;){var A=d[w],F=A.func;if(F==null||F==s)return A.name}return u}function Eu(s){var u=ut.call(S,"placeholder")?S:s;return u.placeholder}function Te(){var s=S.iteratee||Fw;return s=s===Fw?I5:s,arguments.length?s(arguments[0],arguments[1]):s}function zp(s,u){var d=s.__data__;return Ire(u)?d[typeof u=="string"?"string":"hash"]:d.map}function hw(s){for(var u=an(s),d=u.length;d--;){var w=u[d],A=s[w];u[d]=[w,A,mB(A)]}return u}function Ws(s,u){var d=Mte(s,u);return T5(d)?d:n}function Ore(s){var u=ut.call(s,$s),d=s[$s];try{s[$s]=n;var w=!0}catch{}var A=yp.call(s);return w&&(u?s[$s]=d:delete s[$s]),A}var pw=zy?function(s){return s==null?[]:(s=pt(s),Wo(zy(s),function(u){return w5.call(s,u)}))}:Pw,hB=zy?function(s){for(var u=[];s;)Vo(u,pw(s)),s=_p(s);return u}:Pw,Dn=Rn;(Uy&&Dn(new Uy(new ArrayBuffer(1)))!=Je||hc&&Dn(new hc)!=Se||Hy&&Dn(Hy.resolve())!=ct||yu&&Dn(new yu)!=ht||pc&&Dn(new pc)!=be)&&(Dn=function(s){var u=Rn(s),d=u==ke?s.constructor:n,w=d?Vs(d):"";if(w)switch(w){case cne:return Je;case fne:return Se;case dne:return ct;case hne:return ht;case pne:return be}return u});function Fre(s,u,d){for(var w=-1,A=d.length;++w<A;){var F=d[w],R=F.size;switch(F.type){case"drop":s+=R;break;case"dropRight":u-=R;break;case"take":u=En(u,s+R);break;case"takeRight":s=Zt(s,u-R);break}}return{start:s,end:u}}function Bre(s){var u=s.match(Nee);return u?u[1].split(Lee):[]}function pB(s,u,d){u=Yo(u,s);for(var w=-1,A=u.length,F=!1;++w<A;){var R=xi(u[w]);if(!(F=s!=null&&d(s,R)))break;s=s[R]}return F||++w!=A?F:(A=s==null?0:s.length,!!A&&Gp(A)&&no(R,A)&&(ze(s)||Ks(s)))}function kre(s){var u=s.length,d=new s.constructor(u);return u&&typeof s[0]=="string"&&ut.call(s,"index")&&(d.index=s.index,d.input=s.input),d}function gB(s){return typeof s.constructor=="function"&&!Ec(s)?bu(_p(s)):{}}function Pre(s,u,d){var w=s.constructor;switch(u){case it:return aw(s);case Y:case ge:return new w(+s);case Je:return gre(s,d);case qt:case sn:case pn:case cr:case Pr:case Rr:case Gi:case Qi:case Yi:return J5(s,d);case Se:return new w;case Re:case rt:return new w(s);case At:return mre(s);case ht:return new w;case Kt:return vre(s)}}function Rre(s,u){var d=u.length;if(!d)return s;var w=d-1;return u[w]=(d>1?"& ":"")+u[w],u=u.join(d>2?", ":" "),s.replace(Iee,`{ /* [wrapped with `+u+`] */ `)}function Tre(s){return ze(s)||Ks(s)||!!(b5&&s&&s[b5])}function no(s,u){var d=typeof s;return u=u??V,!!u&&(d=="number"||d!="symbol"&&Kee.test(s))&&s>-1&&s%1==0&&s<u}function Tn(s,u,d){if(!Rt(d))return!1;var w=typeof u;return(w=="number"?Kn(d)&&no(u,d.length):w=="string"&&u in d)?ni(d[u],s):!1}function gw(s,u){if(ze(s))return!1;var d=typeof s;return d=="number"||d=="symbol"||d=="boolean"||s==null||pr(s)?!0:kee.test(s)||!Bee.test(s)||u!=null&&s in pt(u)}function Ire(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function mw(s){var u=jp(s),d=S[u];if(typeof d!="function"||!(u in Ye.prototype))return!1;if(s===d)return!0;var w=dw(d);return!!w&&s===w[0]}function Nre(s){return!!m5&&m5 in s}var Lre=mp?ro:Rw;function Ec(s){var u=s&&s.constructor,d=typeof u=="function"&&u.prototype||vu;return s===d}function mB(s){return s===s&&!Rt(s)}function vB(s,u){return function(d){return d==null?!1:d[s]===u&&(u!==n||s in pt(d))}}function Mre(s){var u=Kp(s,function(w){return d.size===f&&d.clear(),w}),d=u.cache;return u}function $re(s,u){var d=s[1],w=u[1],A=d|w,F=A<(E|_|P),R=w==P&&d==x||w==P&&d==I&&s[7].length<=u[8]||w==(P|I)&&u[7].length<=u[8]&&d==x;if(!(F||R))return s;w&E&&(s[2]=u[2],A|=d&E?0:b);var M=u[3];if(M){var H=s[3];s[3]=H?Z5(H,M,u[4]):M,s[4]=H?Ko(s[3],h):u[4]}return M=u[5],M&&(H=s[5],s[5]=H?eB(H,M,u[6]):M,s[6]=H?Ko(s[5],h):u[6]),M=u[7],M&&(s[7]=M),w&P&&(s[8]=s[8]==null?u[8]:En(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=A,s}function jre(s){var u=[];if(s!=null)for(var d in pt(s))u.push(d);return u}function zre(s){return yp.call(s)}function yB(s,u,d){return u=Zt(u===n?s.length-1:u,0),function(){for(var w=arguments,A=-1,F=Zt(w.length-u,0),R=Z(F);++A<F;)R[A]=w[u+A];A=-1;for(var M=Z(u+1);++A<u;)M[A]=w[A];return M[u]=d(R),fr(s,this,M)}}function wB(s,u){return u.length<2?s:Hs(s,$r(u,0,-1))}function Ure(s,u){for(var d=s.length,w=En(u.length,d),A=Vn(s);w--;){var F=u[w];s[w]=no(F,d)?A[F]:n}return s}function vw(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var bB=CB(H5),Dc=rne||function(s,u){return gn.setTimeout(s,u)},yw=CB(fre);function _B(s,u,d){var w=u+"";return yw(s,Rre(w,Hre(Bre(w),d)))}function CB(s){var u=0,d=0;return function(){var w=ane(),A=U-(w-d);if(d=w,A>0){if(++u>=$)return arguments[0]}else u=0;return s.apply(n,arguments)}}function Up(s,u){var d=-1,w=s.length,A=w-1;for(u=u===n?w:u;++d<u;){var F=ew(d,A),R=s[F];s[F]=s[d],s[d]=R}return s.length=u,s}var EB=Mre(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(Pee,function(d,w,A,F){u.push(A?F.replace(jee,"$1"):w||d)}),u});function xi(s){if(typeof s=="string"||pr(s))return s;var u=s+"";return u=="0"&&1/s==-re?"-0":u}function Vs(s){if(s!=null){try{return vp.call(s)}catch{}try{return s+""}catch{}}return""}function Hre(s,u){return Ir(Ce,function(d){var w="_."+d[0];u&d[1]&&!dp(s,w)&&s.push(w)}),s.sort()}function DB(s){if(s instanceof Ye)return s.clone();var u=new Lr(s.__wrapped__,s.__chain__);return u.__actions__=Vn(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function Wre(s,u,d){(d?Tn(s,u,d):u===n)?u=1:u=Zt(He(u),0);var w=s==null?0:s.length;if(!w||u<1)return[];for(var A=0,F=0,R=Z(Dp(w/u));A<w;)R[F++]=$r(s,A,A+=u);return R}function Vre(s){for(var u=-1,d=s==null?0:s.length,w=0,A=[];++u<d;){var F=s[u];F&&(A[w++]=F)}return A}function Kre(){var s=arguments.length;if(!s)return[];for(var u=Z(s-1),d=arguments[0],w=s;w--;)u[w-1]=arguments[w];return Vo(ze(d)?Vn(d):[d],mn(u,1))}var qre=Ke(function(s,u){return Ht(s)?yc(s,mn(u,1,Ht,!0)):[]}),Gre=Ke(function(s,u){var d=jr(u);return Ht(d)&&(d=n),Ht(s)?yc(s,mn(u,1,Ht,!0),Te(d,2)):[]}),Qre=Ke(function(s,u){var d=jr(u);return Ht(d)&&(d=n),Ht(s)?yc(s,mn(u,1,Ht,!0),n,d):[]});function Yre(s,u,d){var w=s==null?0:s.length;return w?(u=d||u===n?1:He(u),$r(s,u<0?0:u,w)):[]}function Jre(s,u,d){var w=s==null?0:s.length;return w?(u=d||u===n?1:He(u),u=w-u,$r(s,0,u<0?0:u)):[]}function Xre(s,u){return s&&s.length?Tp(s,Te(u,3),!0,!0):[]}function Zre(s,u){return s&&s.length?Tp(s,Te(u,3),!0):[]}function eie(s,u,d,w){var A=s==null?0:s.length;return A?(d&&typeof d!="number"&&Tn(s,u,d)&&(d=0,w=A),Kne(s,u,d,w)):[]}function xB(s,u,d){var w=s==null?0:s.length;if(!w)return-1;var A=d==null?0:He(d);return A<0&&(A=Zt(w+A,0)),hp(s,Te(u,3),A)}function AB(s,u,d){var w=s==null?0:s.length;if(!w)return-1;var A=w-1;return d!==n&&(A=He(d),A=d<0?Zt(w+A,0):En(A,w-1)),hp(s,Te(u,3),A,!0)}function SB(s){var u=s==null?0:s.length;return u?mn(s,1):[]}function tie(s){var u=s==null?0:s.length;return u?mn(s,re):[]}function nie(s,u){var d=s==null?0:s.length;return d?(u=u===n?1:He(u),mn(s,u)):[]}function rie(s){for(var u=-1,d=s==null?0:s.length,w={};++u<d;){var A=s[u];w[A[0]]=A[1]}return w}function OB(s){return s&&s.length?s[0]:n}function iie(s,u,d){var w=s==null?0:s.length;if(!w)return-1;var A=d==null?0:He(d);return A<0&&(A=Zt(w+A,0)),hu(s,u,A)}function oie(s){var u=s==null?0:s.length;return u?$r(s,0,-1):[]}var sie=Ke(function(s){var u=St(s,ow);return u.length&&u[0]===s[0]?Qy(u):[]}),aie=Ke(function(s){var u=jr(s),d=St(s,ow);return u===jr(d)?u=n:d.pop(),d.length&&d[0]===s[0]?Qy(d,Te(u,2)):[]}),uie=Ke(function(s){var u=jr(s),d=St(s,ow);return u=typeof u=="function"?u:n,u&&d.pop(),d.length&&d[0]===s[0]?Qy(d,n,u):[]});function lie(s,u){return s==null?"":one.call(s,u)}function jr(s){var u=s==null?0:s.length;return u?s[u-1]:n}function cie(s,u,d){var w=s==null?0:s.length;if(!w)return-1;var A=w;return d!==n&&(A=He(d),A=A<0?Zt(w+A,0):En(A,w-1)),u===u?Hte(s,u,A):hp(s,u5,A,!0)}function fie(s,u){return s&&s.length?$5(s,He(u)):n}var die=Ke(FB);function FB(s,u){return s&&s.length&&u&&u.length?Zy(s,u):s}function hie(s,u,d){return s&&s.length&&u&&u.length?Zy(s,u,Te(d,2)):s}function pie(s,u,d){return s&&s.length&&u&&u.length?Zy(s,u,n,d):s}var gie=to(function(s,u){var d=s==null?0:s.length,w=Vy(s,u);return U5(s,St(u,function(A){return no(A,d)?+A:A}).sort(X5)),w});function mie(s,u){var d=[];if(!(s&&s.length))return d;var w=-1,A=[],F=s.length;for(u=Te(u,3);++w<F;){var R=s[w];u(R,w,s)&&(d.push(R),A.push(w))}return U5(s,A),d}function ww(s){return s==null?s:lne.call(s)}function vie(s,u,d){var w=s==null?0:s.length;return w?(d&&typeof d!="number"&&Tn(s,u,d)?(u=0,d=w):(u=u==null?0:He(u),d=d===n?w:He(d)),$r(s,u,d)):[]}function yie(s,u){return Rp(s,u)}function wie(s,u,d){return nw(s,u,Te(d,2))}function bie(s,u){var d=s==null?0:s.length;if(d){var w=Rp(s,u);if(w<d&&ni(s[w],u))return w}return-1}function _ie(s,u){return Rp(s,u,!0)}function Cie(s,u,d){return nw(s,u,Te(d,2),!0)}function Eie(s,u){var d=s==null?0:s.length;if(d){var w=Rp(s,u,!0)-1;if(ni(s[w],u))return w}return-1}function Die(s){return s&&s.length?W5(s):[]}function xie(s,u){return s&&s.length?W5(s,Te(u,2)):[]}function Aie(s){var u=s==null?0:s.length;return u?$r(s,1,u):[]}function Sie(s,u,d){return s&&s.length?(u=d||u===n?1:He(u),$r(s,0,u<0?0:u)):[]}function Oie(s,u,d){var w=s==null?0:s.length;return w?(u=d||u===n?1:He(u),u=w-u,$r(s,u<0?0:u,w)):[]}function Fie(s,u){return s&&s.length?Tp(s,Te(u,3),!1,!0):[]}function Bie(s,u){return s&&s.length?Tp(s,Te(u,3)):[]}var kie=Ke(function(s){return Qo(mn(s,1,Ht,!0))}),Pie=Ke(function(s){var u=jr(s);return Ht(u)&&(u=n),Qo(mn(s,1,Ht,!0),Te(u,2))}),Rie=Ke(function(s){var u=jr(s);return u=typeof u=="function"?u:n,Qo(mn(s,1,Ht,!0),n,u)});function Tie(s){return s&&s.length?Qo(s):[]}function Iie(s,u){return s&&s.length?Qo(s,Te(u,2)):[]}function Nie(s,u){return u=typeof u=="function"?u:n,s&&s.length?Qo(s,n,u):[]}function bw(s){if(!(s&&s.length))return[];var u=0;return s=Wo(s,function(d){if(Ht(d))return u=Zt(d.length,u),!0}),Ly(u,function(d){return St(s,Ty(d))})}function BB(s,u){if(!(s&&s.length))return[];var d=bw(s);return u==null?d:St(d,function(w){return fr(u,n,w)})}var Lie=Ke(function(s,u){return Ht(s)?yc(s,u):[]}),Mie=Ke(function(s){return iw(Wo(s,Ht))}),$ie=Ke(function(s){var u=jr(s);return Ht(u)&&(u=n),iw(Wo(s,Ht),Te(u,2))}),jie=Ke(function(s){var u=jr(s);return u=typeof u=="function"?u:n,iw(Wo(s,Ht),n,u)}),zie=Ke(bw);function Uie(s,u){return G5(s||[],u||[],vc)}function Hie(s,u){return G5(s||[],u||[],_c)}var Wie=Ke(function(s){var u=s.length,d=u>1?s[u-1]:n;return d=typeof d=="function"?(s.pop(),d):n,BB(s,d)});function kB(s){var u=S(s);return u.__chain__=!0,u}function Vie(s,u){return u(s),s}function Hp(s,u){return u(s)}var Kie=to(function(s){var u=s.length,d=u?s[0]:0,w=this.__wrapped__,A=function(F){return Vy(F,s)};return u>1||this.__actions__.length||!(w instanceof Ye)||!no(d)?this.thru(A):(w=w.slice(d,+d+(u?1:0)),w.__actions__.push({func:Hp,args:[A],thisArg:n}),new Lr(w,this.__chain__).thru(function(F){return u&&!F.length&&F.push(n),F}))});function qie(){return kB(this)}function Gie(){return new Lr(this.value(),this.__chain__)}function Qie(){this.__values__===n&&(this.__values__=VB(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function Yie(){return this}function Jie(s){for(var u,d=this;d instanceof Op;){var w=DB(d);w.__index__=0,w.__values__=n,u?A.__wrapped__=w:u=w;var A=w;d=d.__wrapped__}return A.__wrapped__=s,u}function Xie(){var s=this.__wrapped__;if(s instanceof Ye){var u=s;return this.__actions__.length&&(u=new Ye(this)),u=u.reverse(),u.__actions__.push({func:Hp,args:[ww],thisArg:n}),new Lr(u,this.__chain__)}return this.thru(ww)}function Zie(){return q5(this.__wrapped__,this.__actions__)}var eoe=Ip(function(s,u,d){ut.call(s,d)?++s[d]:Zi(s,d,1)});function toe(s,u,d){var w=ze(s)?s5:Vne;return d&&Tn(s,u,d)&&(u=n),w(s,Te(u,3))}function noe(s,u){var d=ze(s)?Wo:B5;return d(s,Te(u,3))}var roe=iB(xB),ioe=iB(AB);function ooe(s,u){return mn(Wp(s,u),1)}function soe(s,u){return mn(Wp(s,u),re)}function aoe(s,u,d){return d=d===n?1:He(d),mn(Wp(s,u),d)}function PB(s,u){var d=ze(s)?Ir:Go;return d(s,Te(u,3))}function RB(s,u){var d=ze(s)?Ate:F5;return d(s,Te(u,3))}var uoe=Ip(function(s,u,d){ut.call(s,d)?s[d].push(u):Zi(s,d,[u])});function loe(s,u,d,w){s=Kn(s)?s:xu(s),d=d&&!w?He(d):0;var A=s.length;return d<0&&(d=Zt(A+d,0)),Qp(s)?d<=A&&s.indexOf(u,d)>-1:!!A&&hu(s,u,d)>-1}var coe=Ke(function(s,u,d){var w=-1,A=typeof u=="function",F=Kn(s)?Z(s.length):[];return Go(s,function(R){F[++w]=A?fr(u,R,d):wc(R,u,d)}),F}),foe=Ip(function(s,u,d){Zi(s,d,u)});function Wp(s,u){var d=ze(s)?St:N5;return d(s,Te(u,3))}function doe(s,u,d,w){return s==null?[]:(ze(u)||(u=u==null?[]:[u]),d=w?n:d,ze(d)||(d=d==null?[]:[d]),j5(s,u,d))}var hoe=Ip(function(s,u,d){s[d?0:1].push(u)},function(){return[[],[]]});function poe(s,u,d){var w=ze(s)?Py:c5,A=arguments.length<3;return w(s,Te(u,4),d,A,Go)}function goe(s,u,d){var w=ze(s)?Ste:c5,A=arguments.length<3;return w(s,Te(u,4),d,A,F5)}function moe(s,u){var d=ze(s)?Wo:B5;return d(s,qp(Te(u,3)))}function voe(s){var u=ze(s)?x5:lre;return u(s)}function yoe(s,u,d){(d?Tn(s,u,d):u===n)?u=1:u=He(u);var w=ze(s)?jne:cre;return w(s,u)}function woe(s){var u=ze(s)?zne:dre;return u(s)}function boe(s){if(s==null)return 0;if(Kn(s))return Qp(s)?gu(s):s.length;var u=Dn(s);return u==Se||u==ht?s.size:Jy(s).length}function _oe(s,u,d){var w=ze(s)?Ry:hre;return d&&Tn(s,u,d)&&(u=n),w(s,Te(u,3))}var Coe=Ke(function(s,u){if(s==null)return[];var d=u.length;return d>1&&Tn(s,u[0],u[1])?u=[]:d>2&&Tn(u[0],u[1],u[2])&&(u=[u[0]]),j5(s,mn(u,1),[])}),Vp=nne||function(){return gn.Date.now()};function Eoe(s,u){if(typeof u!="function")throw new Nr(a);return s=He(s),function(){if(--s<1)return u.apply(this,arguments)}}function TB(s,u,d){return u=d?n:u,u=s&&u==null?s.length:u,eo(s,P,n,n,n,n,u)}function IB(s,u){var d;if(typeof u!="function")throw new Nr(a);return s=He(s),function(){return--s>0&&(d=u.apply(this,arguments)),s<=1&&(u=n),d}}var _w=Ke(function(s,u,d){var w=E;if(d.length){var A=Ko(d,Eu(_w));w|=B}return eo(s,w,u,d,A)}),NB=Ke(function(s,u,d){var w=E|_;if(d.length){var A=Ko(d,Eu(NB));w|=B}return eo(u,w,s,d,A)});function LB(s,u,d){u=d?n:u;var w=eo(s,x,n,n,n,n,n,u);return w.placeholder=LB.placeholder,w}function MB(s,u,d){u=d?n:u;var w=eo(s,O,n,n,n,n,n,u);return w.placeholder=MB.placeholder,w}function $B(s,u,d){var w,A,F,R,M,H,ae=0,ue=!1,fe=!1,_e=!0;if(typeof s!="function")throw new Nr(a);u=zr(u)||0,Rt(d)&&(ue=!!d.leading,fe="maxWait"in d,F=fe?Zt(zr(d.maxWait)||0,u):F,_e="trailing"in d?!!d.trailing:_e);function Oe(Wt){var ri=w,oo=A;return w=A=n,ae=Wt,R=s.apply(oo,ri),R}function Ie(Wt){return ae=Wt,M=Dc(Ge,u),ue?Oe(Wt):R}function We(Wt){var ri=Wt-H,oo=Wt-ae,i4=u-ri;return fe?En(i4,F-oo):i4}function Ne(Wt){var ri=Wt-H,oo=Wt-ae;return H===n||ri>=u||ri<0||fe&&oo>=F}function Ge(){var Wt=Vp();if(Ne(Wt))return Xe(Wt);M=Dc(Ge,We(Wt))}function Xe(Wt){return M=n,_e&&w?Oe(Wt):(w=A=n,R)}function gr(){M!==n&&Q5(M),ae=0,w=H=A=M=n}function In(){return M===n?R:Xe(Vp())}function mr(){var Wt=Vp(),ri=Ne(Wt);if(w=arguments,A=this,H=Wt,ri){if(M===n)return Ie(H);if(fe)return Q5(M),M=Dc(Ge,u),Oe(H)}return M===n&&(M=Dc(Ge,u)),R}return mr.cancel=gr,mr.flush=In,mr}var Doe=Ke(function(s,u){return O5(s,1,u)}),xoe=Ke(function(s,u,d){return O5(s,zr(u)||0,d)});function Aoe(s){return eo(s,Q)}function Kp(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Nr(a);var d=function(){var w=arguments,A=u?u.apply(this,w):w[0],F=d.cache;if(F.has(A))return F.get(A);var R=s.apply(this,w);return d.cache=F.set(A,R)||F,R};return d.cache=new(Kp.Cache||Xi),d}Kp.Cache=Xi;function qp(s){if(typeof s!="function")throw new Nr(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function Soe(s){return IB(2,s)}var Ooe=pre(function(s,u){u=u.length==1&&ze(u[0])?St(u[0],dr(Te())):St(mn(u,1),dr(Te()));var d=u.length;return Ke(function(w){for(var A=-1,F=En(w.length,d);++A<F;)w[A]=u[A].call(this,w[A]);return fr(s,this,w)})}),Cw=Ke(function(s,u){var d=Ko(u,Eu(Cw));return eo(s,B,n,u,d)}),jB=Ke(function(s,u){var d=Ko(u,Eu(jB));return eo(s,k,n,u,d)}),Foe=to(function(s,u){return eo(s,I,n,n,n,u)});function Boe(s,u){if(typeof s!="function")throw new Nr(a);return u=u===n?u:He(u),Ke(s,u)}function koe(s,u){if(typeof s!="function")throw new Nr(a);return u=u==null?0:Zt(He(u),0),Ke(function(d){var w=d[u],A=Jo(d,0,u);return w&&Vo(A,w),fr(s,this,A)})}function Poe(s,u,d){var w=!0,A=!0;if(typeof s!="function")throw new Nr(a);return Rt(d)&&(w="leading"in d?!!d.leading:w,A="trailing"in d?!!d.trailing:A),$B(s,u,{leading:w,maxWait:u,trailing:A})}function Roe(s){return TB(s,1)}function Toe(s,u){return Cw(sw(u),s)}function Ioe(){if(!arguments.length)return[];var s=arguments[0];return ze(s)?s:[s]}function Noe(s){return Mr(s,y)}function Loe(s,u){return u=typeof u=="function"?u:n,Mr(s,y,u)}function Moe(s){return Mr(s,g|y)}function $oe(s,u){return u=typeof u=="function"?u:n,Mr(s,g|y,u)}function joe(s,u){return u==null||S5(s,u,an(u))}function ni(s,u){return s===u||s!==s&&u!==u}var zoe=$p(Gy),Uoe=$p(function(s,u){return s>=u}),Ks=R5(function(){return arguments}())?R5:function(s){return $t(s)&&ut.call(s,"callee")&&!w5.call(s,"callee")},ze=Z.isArray,Hoe=e5?dr(e5):Jne;function Kn(s){return s!=null&&Gp(s.length)&&!ro(s)}function Ht(s){return $t(s)&&Kn(s)}function Woe(s){return s===!0||s===!1||$t(s)&&Rn(s)==Y}var Xo=ine||Rw,Voe=t5?dr(t5):Xne;function Koe(s){return $t(s)&&s.nodeType===1&&!xc(s)}function qoe(s){if(s==null)return!0;if(Kn(s)&&(ze(s)||typeof s=="string"||typeof s.splice=="function"||Xo(s)||Du(s)||Ks(s)))return!s.length;var u=Dn(s);if(u==Se||u==ht)return!s.size;if(Ec(s))return!Jy(s).length;for(var d in s)if(ut.call(s,d))return!1;return!0}function Goe(s,u){return bc(s,u)}function Qoe(s,u,d){d=typeof d=="function"?d:n;var w=d?d(s,u):n;return w===n?bc(s,u,n,d):!!w}function Ew(s){if(!$t(s))return!1;var u=Rn(s);return u==Pe||u==he||typeof s.message=="string"&&typeof s.name=="string"&&!xc(s)}function Yoe(s){return typeof s=="number"&&_5(s)}function ro(s){if(!Rt(s))return!1;var u=Rn(s);return u==me||u==Fe||u==J||u==Mt}function zB(s){return typeof s=="number"&&s==He(s)}function Gp(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=V}function Rt(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function $t(s){return s!=null&&typeof s=="object"}var UB=n5?dr(n5):ere;function Joe(s,u){return s===u||Yy(s,u,hw(u))}function Xoe(s,u,d){return d=typeof d=="function"?d:n,Yy(s,u,hw(u),d)}function Zoe(s){return HB(s)&&s!=+s}function ese(s){if(Lre(s))throw new $e(o);return T5(s)}function tse(s){return s===null}function nse(s){return s==null}function HB(s){return typeof s=="number"||$t(s)&&Rn(s)==Re}function xc(s){if(!$t(s)||Rn(s)!=ke)return!1;var u=_p(s);if(u===null)return!0;var d=ut.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&vp.call(d)==Xte}var Dw=r5?dr(r5):tre;function rse(s){return zB(s)&&s>=-V&&s<=V}var WB=i5?dr(i5):nre;function Qp(s){return typeof s=="string"||!ze(s)&&$t(s)&&Rn(s)==rt}function pr(s){return typeof s=="symbol"||$t(s)&&Rn(s)==Kt}var Du=o5?dr(o5):rre;function ise(s){return s===n}function ose(s){return $t(s)&&Dn(s)==be}function sse(s){return $t(s)&&Rn(s)==Ze}var ase=$p(Xy),use=$p(function(s,u){return s<=u});function VB(s){if(!s)return[];if(Kn(s))return Qp(s)?ei(s):Vn(s);if(dc&&s[dc])return jte(s[dc]());var u=Dn(s),d=u==Se?$y:u==ht?pp:xu;return d(s)}function io(s){if(!s)return s===0?s:0;if(s=zr(s),s===re||s===-re){var u=s<0?-1:1;return u*te}return s===s?s:0}function He(s){var u=io(s),d=u%1;return u===u?d?u-d:u:0}function KB(s){return s?Us(He(s),0,ce):0}function zr(s){if(typeof s=="number")return s;if(pr(s))return le;if(Rt(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Rt(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=f5(s);var d=Hee.test(s);return d||Vee.test(s)?Ete(s.slice(2),d?2:8):Uee.test(s)?le:+s}function qB(s){return Di(s,qn(s))}function lse(s){return s?Us(He(s),-V,V):s===0?s:0}function st(s){return s==null?"":hr(s)}var cse=_u(function(s,u){if(Ec(u)||Kn(u)){Di(u,an(u),s);return}for(var d in u)ut.call(u,d)&&vc(s,d,u[d])}),GB=_u(function(s,u){Di(u,qn(u),s)}),Yp=_u(function(s,u,d,w){Di(u,qn(u),s,w)}),fse=_u(function(s,u,d,w){Di(u,an(u),s,w)}),dse=to(Vy);function hse(s,u){var d=bu(s);return u==null?d:A5(d,u)}var pse=Ke(function(s,u){s=pt(s);var d=-1,w=u.length,A=w>2?u[2]:n;for(A&&Tn(u[0],u[1],A)&&(w=1);++d<w;)for(var F=u[d],R=qn(F),M=-1,H=R.length;++M<H;){var ae=R[M],ue=s[ae];(ue===n||ni(ue,vu[ae])&&!ut.call(s,ae))&&(s[ae]=F[ae])}return s}),gse=Ke(function(s){return s.push(n,fB),fr(QB,n,s)});function mse(s,u){return a5(s,Te(u,3),Ei)}function vse(s,u){return a5(s,Te(u,3),qy)}function yse(s,u){return s==null?s:Ky(s,Te(u,3),qn)}function wse(s,u){return s==null?s:k5(s,Te(u,3),qn)}function bse(s,u){return s&&Ei(s,Te(u,3))}function _se(s,u){return s&&qy(s,Te(u,3))}function Cse(s){return s==null?[]:kp(s,an(s))}function Ese(s){return s==null?[]:kp(s,qn(s))}function xw(s,u,d){var w=s==null?n:Hs(s,u);return w===n?d:w}function Dse(s,u){return s!=null&&pB(s,u,qne)}function Aw(s,u){return s!=null&&pB(s,u,Gne)}var xse=sB(function(s,u,d){u!=null&&typeof u.toString!="function"&&(u=yp.call(u)),s[u]=d},Ow(Gn)),Ase=sB(function(s,u,d){u!=null&&typeof u.toString!="function"&&(u=yp.call(u)),ut.call(s,u)?s[u].push(d):s[u]=[d]},Te),Sse=Ke(wc);function an(s){return Kn(s)?D5(s):Jy(s)}function qn(s){return Kn(s)?D5(s,!0):ire(s)}function Ose(s,u){var d={};return u=Te(u,3),Ei(s,function(w,A,F){Zi(d,u(w,A,F),w)}),d}function Fse(s,u){var d={};return u=Te(u,3),Ei(s,function(w,A,F){Zi(d,A,u(w,A,F))}),d}var Bse=_u(function(s,u,d){Pp(s,u,d)}),QB=_u(function(s,u,d,w){Pp(s,u,d,w)}),kse=to(function(s,u){var d={};if(s==null)return d;var w=!1;u=St(u,function(F){return F=Yo(F,s),w||(w=F.length>1),F}),Di(s,fw(s),d),w&&(d=Mr(d,g|m|y,xre));for(var A=u.length;A--;)rw(d,u[A]);return d});function Pse(s,u){return YB(s,qp(Te(u)))}var Rse=to(function(s,u){return s==null?{}:sre(s,u)});function YB(s,u){if(s==null)return{};var d=St(fw(s),function(w){return[w]});return u=Te(u),z5(s,d,function(w,A){return u(w,A[0])})}function Tse(s,u,d){u=Yo(u,s);var w=-1,A=u.length;for(A||(A=1,s=n);++w<A;){var F=s==null?n:s[xi(u[w])];F===n&&(w=A,F=d),s=ro(F)?F.call(s):F}return s}function Ise(s,u,d){return s==null?s:_c(s,u,d)}function Nse(s,u,d,w){return w=typeof w=="function"?w:n,s==null?s:_c(s,u,d,w)}var JB=lB(an),XB=lB(qn);function Lse(s,u,d){var w=ze(s),A=w||Xo(s)||Du(s);if(u=Te(u,4),d==null){var F=s&&s.constructor;A?d=w?new F:[]:Rt(s)?d=ro(F)?bu(_p(s)):{}:d={}}return(A?Ir:Ei)(s,function(R,M,H){return u(d,R,M,H)}),d}function Mse(s,u){return s==null?!0:rw(s,u)}function $se(s,u,d){return s==null?s:K5(s,u,sw(d))}function jse(s,u,d,w){return w=typeof w=="function"?w:n,s==null?s:K5(s,u,sw(d),w)}function xu(s){return s==null?[]:My(s,an(s))}function zse(s){return s==null?[]:My(s,qn(s))}function Use(s,u,d){return d===n&&(d=u,u=n),d!==n&&(d=zr(d),d=d===d?d:0),u!==n&&(u=zr(u),u=u===u?u:0),Us(zr(s),u,d)}function Hse(s,u,d){return u=io(u),d===n?(d=u,u=0):d=io(d),s=zr(s),Qne(s,u,d)}function Wse(s,u,d){if(d&&typeof d!="boolean"&&Tn(s,u,d)&&(u=d=n),d===n&&(typeof u=="boolean"?(d=u,u=n):typeof s=="boolean"&&(d=s,s=n)),s===n&&u===n?(s=0,u=1):(s=io(s),u===n?(u=s,s=0):u=io(u)),s>u){var w=s;s=u,u=w}if(d||s%1||u%1){var A=C5();return En(s+A*(u-s+Cte("1e-"+((A+"").length-1))),u)}return ew(s,u)}var Vse=Cu(function(s,u,d){return u=u.toLowerCase(),s+(d?ZB(u):u)});function ZB(s){return Sw(st(s).toLowerCase())}function e4(s){return s=st(s),s&&s.replace(qee,Ite).replace(dte,"")}function Kse(s,u,d){s=st(s),u=hr(u);var w=s.length;d=d===n?w:Us(He(d),0,w);var A=d;return d-=u.length,d>=0&&s.slice(d,A)==u}function qse(s){return s=st(s),s&&See.test(s)?s.replace(kF,Nte):s}function Gse(s){return s=st(s),s&&Ree.test(s)?s.replace(Cy,"\\$&"):s}var Qse=Cu(function(s,u,d){return s+(d?"-":"")+u.toLowerCase()}),Yse=Cu(function(s,u,d){return s+(d?" ":"")+u.toLowerCase()}),Jse=rB("toLowerCase");function Xse(s,u,d){s=st(s),u=He(u);var w=u?gu(s):0;if(!u||w>=u)return s;var A=(u-w)/2;return Mp(xp(A),d)+s+Mp(Dp(A),d)}function Zse(s,u,d){s=st(s),u=He(u);var w=u?gu(s):0;return u&&w<u?s+Mp(u-w,d):s}function eae(s,u,d){s=st(s),u=He(u);var w=u?gu(s):0;return u&&w<u?Mp(u-w,d)+s:s}function tae(s,u,d){return d||u==null?u=0:u&&(u=+u),une(st(s).replace(Ey,""),u||0)}function nae(s,u,d){return(d?Tn(s,u,d):u===n)?u=1:u=He(u),tw(st(s),u)}function rae(){var s=arguments,u=st(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var iae=Cu(function(s,u,d){return s+(d?"_":"")+u.toLowerCase()});function oae(s,u,d){return d&&typeof d!="number"&&Tn(s,u,d)&&(u=d=n),d=d===n?ce:d>>>0,d?(s=st(s),s&&(typeof u=="string"||u!=null&&!Dw(u))&&(u=hr(u),!u&&pu(s))?Jo(ei(s),0,d):s.split(u,d)):[]}var sae=Cu(function(s,u,d){return s+(d?" ":"")+Sw(u)});function aae(s,u,d){return s=st(s),d=d==null?0:Us(He(d),0,s.length),u=hr(u),s.slice(d,d+u.length)==u}function uae(s,u,d){var w=S.templateSettings;d&&Tn(s,u,d)&&(u=n),s=st(s),u=Yp({},u,w,cB);var A=Yp({},u.imports,w.imports,cB),F=an(A),R=My(A,F),M,H,ae=0,ue=u.interpolate||lp,fe="__p += '",_e=jy((u.escape||lp).source+"|"+ue.source+"|"+(ue===PF?zee:lp).source+"|"+(u.evaluate||lp).source+"|$","g"),Oe="//# sourceURL="+(ut.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vte+"]")+` `;s.replace(_e,function(Ne,Ge,Xe,gr,In,mr){return Xe||(Xe=gr),fe+=s.slice(ae,mr).replace(Gee,Lte),Ge&&(M=!0,fe+=`' + __e(`+Ge+`) + '`),In&&(H=!0,fe+=`'; `+In+`; __p += '`),Xe&&(fe+=`' + ((__t = (`+Xe+`)) == null ? '' : __t) + '`),ae=mr+Ne.length,Ne}),fe+=`'; `;var Ie=ut.call(u,"variable")&&u.variable;if(!Ie)fe=`with (obj) { `+fe+` } `;else if($ee.test(Ie))throw new $e(l);fe=(H?fe.replace(Ls,""):fe).replace(cc,"$1").replace(_y,"$1;"),fe="function("+(Ie||"obj")+`) { `+(Ie?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(H?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+fe+`return __p }`;var We=n4(function(){return ot(F,Oe+"return "+fe).apply(n,R)});if(We.source=fe,Ew(We))throw We;return We}function lae(s){return st(s).toLowerCase()}function cae(s){return st(s).toUpperCase()}function fae(s,u,d){if(s=st(s),s&&(d||u===n))return f5(s);if(!s||!(u=hr(u)))return s;var w=ei(s),A=ei(u),F=d5(w,A),R=h5(w,A)+1;return Jo(w,F,R).join("")}function dae(s,u,d){if(s=st(s),s&&(d||u===n))return s.slice(0,g5(s)+1);if(!s||!(u=hr(u)))return s;var w=ei(s),A=h5(w,ei(u))+1;return Jo(w,0,A).join("")}function hae(s,u,d){if(s=st(s),s&&(d||u===n))return s.replace(Ey,"");if(!s||!(u=hr(u)))return s;var w=ei(s),A=d5(w,ei(u));return Jo(w,A).join("")}function pae(s,u){var d=j,w=X;if(Rt(u)){var A="separator"in u?u.separator:A;d="length"in u?He(u.length):d,w="omission"in u?hr(u.omission):w}s=st(s);var F=s.length;if(pu(s)){var R=ei(s);F=R.length}if(d>=F)return s;var M=d-gu(w);if(M<1)return w;var H=R?Jo(R,0,M).join(""):s.slice(0,M);if(A===n)return H+w;if(R&&(M+=H.length-M),Dw(A)){if(s.slice(M).search(A)){var ae,ue=H;for(A.global||(A=jy(A.source,st(RF.exec(A))+"g")),A.lastIndex=0;ae=A.exec(ue);)var fe=ae.index;H=H.slice(0,fe===n?M:fe)}}else if(s.indexOf(hr(A),M)!=M){var _e=H.lastIndexOf(A);_e>-1&&(H=H.slice(0,_e))}return H+w}function gae(s){return s=st(s),s&&Aee.test(s)?s.replace(BF,Wte):s}var mae=Cu(function(s,u,d){return s+(d?" ":"")+u.toUpperCase()}),Sw=rB("toUpperCase");function t4(s,u,d){return s=st(s),u=d?n:u,u===n?$te(s)?qte(s):Bte(s):s.match(u)||[]}var n4=Ke(function(s,u){try{return fr(s,n,u)}catch(d){return Ew(d)?d:new $e(d)}}),vae=to(function(s,u){return Ir(u,function(d){d=xi(d),Zi(s,d,_w(s[d],s))}),s});function yae(s){var u=s==null?0:s.length,d=Te();return s=u?St(s,function(w){if(typeof w[1]!="function")throw new Nr(a);return[d(w[0]),w[1]]}):[],Ke(function(w){for(var A=-1;++A<u;){var F=s[A];if(fr(F[0],this,w))return fr(F[1],this,w)}})}function wae(s){return Wne(Mr(s,g))}function Ow(s){return function(){return s}}function bae(s,u){return s==null||s!==s?u:s}var _ae=oB(),Cae=oB(!0);function Gn(s){return s}function Fw(s){return I5(typeof s=="function"?s:Mr(s,g))}function Eae(s){return L5(Mr(s,g))}function Dae(s,u){return M5(s,Mr(u,g))}var xae=Ke(function(s,u){return function(d){return wc(d,s,u)}}),Aae=Ke(function(s,u){return function(d){return wc(s,d,u)}});function Bw(s,u,d){var w=an(u),A=kp(u,w);d==null&&!(Rt(u)&&(A.length||!w.length))&&(d=u,u=s,s=this,A=kp(u,an(u)));var F=!(Rt(d)&&"chain"in d)||!!d.chain,R=ro(s);return Ir(A,function(M){var H=u[M];s[M]=H,R&&(s.prototype[M]=function(){var ae=this.__chain__;if(F||ae){var ue=s(this.__wrapped__),fe=ue.__actions__=Vn(this.__actions__);return fe.push({func:H,args:arguments,thisArg:s}),ue.__chain__=ae,ue}return H.apply(s,Vo([this.value()],arguments))})}),s}function Sae(){return gn._===this&&(gn._=Zte),this}function kw(){}function Oae(s){return s=He(s),Ke(function(u){return $5(u,s)})}var Fae=uw(St),Bae=uw(s5),kae=uw(Ry);function r4(s){return gw(s)?Ty(xi(s)):are(s)}function Pae(s){return function(u){return s==null?n:Hs(s,u)}}var Rae=aB(),Tae=aB(!0);function Pw(){return[]}function Rw(){return!1}function Iae(){return{}}function Nae(){return""}function Lae(){return!0}function Mae(s,u){if(s=He(s),s<1||s>V)return[];var d=ce,w=En(s,ce);u=Te(u),s-=ce;for(var A=Ly(w,u);++d<s;)u(d);return A}function $ae(s){return ze(s)?St(s,xi):pr(s)?[s]:Vn(EB(st(s)))}function jae(s){var u=++Jte;return st(s)+u}var zae=Lp(function(s,u){return s+u},0),Uae=lw("ceil"),Hae=Lp(function(s,u){return s/u},1),Wae=lw("floor");function Vae(s){return s&&s.length?Bp(s,Gn,Gy):n}function Kae(s,u){return s&&s.length?Bp(s,Te(u,2),Gy):n}function qae(s){return l5(s,Gn)}function Gae(s,u){return l5(s,Te(u,2))}function Qae(s){return s&&s.length?Bp(s,Gn,Xy):n}function Yae(s,u){return s&&s.length?Bp(s,Te(u,2),Xy):n}var Jae=Lp(function(s,u){return s*u},1),Xae=lw("round"),Zae=Lp(function(s,u){return s-u},0);function eue(s){return s&&s.length?Ny(s,Gn):0}function tue(s,u){return s&&s.length?Ny(s,Te(u,2)):0}return S.after=Eoe,S.ary=TB,S.assign=cse,S.assignIn=GB,S.assignInWith=Yp,S.assignWith=fse,S.at=dse,S.before=IB,S.bind=_w,S.bindAll=vae,S.bindKey=NB,S.castArray=Ioe,S.chain=kB,S.chunk=Wre,S.compact=Vre,S.concat=Kre,S.cond=yae,S.conforms=wae,S.constant=Ow,S.countBy=eoe,S.create=hse,S.curry=LB,S.curryRight=MB,S.debounce=$B,S.defaults=pse,S.defaultsDeep=gse,S.defer=Doe,S.delay=xoe,S.difference=qre,S.differenceBy=Gre,S.differenceWith=Qre,S.drop=Yre,S.dropRight=Jre,S.dropRightWhile=Xre,S.dropWhile=Zre,S.fill=eie,S.filter=noe,S.flatMap=ooe,S.flatMapDeep=soe,S.flatMapDepth=aoe,S.flatten=SB,S.flattenDeep=tie,S.flattenDepth=nie,S.flip=Aoe,S.flow=_ae,S.flowRight=Cae,S.fromPairs=rie,S.functions=Cse,S.functionsIn=Ese,S.groupBy=uoe,S.initial=oie,S.intersection=sie,S.intersectionBy=aie,S.intersectionWith=uie,S.invert=xse,S.invertBy=Ase,S.invokeMap=coe,S.iteratee=Fw,S.keyBy=foe,S.keys=an,S.keysIn=qn,S.map=Wp,S.mapKeys=Ose,S.mapValues=Fse,S.matches=Eae,S.matchesProperty=Dae,S.memoize=Kp,S.merge=Bse,S.mergeWith=QB,S.method=xae,S.methodOf=Aae,S.mixin=Bw,S.negate=qp,S.nthArg=Oae,S.omit=kse,S.omitBy=Pse,S.once=Soe,S.orderBy=doe,S.over=Fae,S.overArgs=Ooe,S.overEvery=Bae,S.overSome=kae,S.partial=Cw,S.partialRight=jB,S.partition=hoe,S.pick=Rse,S.pickBy=YB,S.property=r4,S.propertyOf=Pae,S.pull=die,S.pullAll=FB,S.pullAllBy=hie,S.pullAllWith=pie,S.pullAt=gie,S.range=Rae,S.rangeRight=Tae,S.rearg=Foe,S.reject=moe,S.remove=mie,S.rest=Boe,S.reverse=ww,S.sampleSize=yoe,S.set=Ise,S.setWith=Nse,S.shuffle=woe,S.slice=vie,S.sortBy=Coe,S.sortedUniq=Die,S.sortedUniqBy=xie,S.split=oae,S.spread=koe,S.tail=Aie,S.take=Sie,S.takeRight=Oie,S.takeRightWhile=Fie,S.takeWhile=Bie,S.tap=Vie,S.throttle=Poe,S.thru=Hp,S.toArray=VB,S.toPairs=JB,S.toPairsIn=XB,S.toPath=$ae,S.toPlainObject=qB,S.transform=Lse,S.unary=Roe,S.union=kie,S.unionBy=Pie,S.unionWith=Rie,S.uniq=Tie,S.uniqBy=Iie,S.uniqWith=Nie,S.unset=Mse,S.unzip=bw,S.unzipWith=BB,S.update=$se,S.updateWith=jse,S.values=xu,S.valuesIn=zse,S.without=Lie,S.words=t4,S.wrap=Toe,S.xor=Mie,S.xorBy=$ie,S.xorWith=jie,S.zip=zie,S.zipObject=Uie,S.zipObjectDeep=Hie,S.zipWith=Wie,S.entries=JB,S.entriesIn=XB,S.extend=GB,S.extendWith=Yp,Bw(S,S),S.add=zae,S.attempt=n4,S.camelCase=Vse,S.capitalize=ZB,S.ceil=Uae,S.clamp=Use,S.clone=Noe,S.cloneDeep=Moe,S.cloneDeepWith=$oe,S.cloneWith=Loe,S.conformsTo=joe,S.deburr=e4,S.defaultTo=bae,S.divide=Hae,S.endsWith=Kse,S.eq=ni,S.escape=qse,S.escapeRegExp=Gse,S.every=toe,S.find=roe,S.findIndex=xB,S.findKey=mse,S.findLast=ioe,S.findLastIndex=AB,S.findLastKey=vse,S.floor=Wae,S.forEach=PB,S.forEachRight=RB,S.forIn=yse,S.forInRight=wse,S.forOwn=bse,S.forOwnRight=_se,S.get=xw,S.gt=zoe,S.gte=Uoe,S.has=Dse,S.hasIn=Aw,S.head=OB,S.identity=Gn,S.includes=loe,S.indexOf=iie,S.inRange=Hse,S.invoke=Sse,S.isArguments=Ks,S.isArray=ze,S.isArrayBuffer=Hoe,S.isArrayLike=Kn,S.isArrayLikeObject=Ht,S.isBoolean=Woe,S.isBuffer=Xo,S.isDate=Voe,S.isElement=Koe,S.isEmpty=qoe,S.isEqual=Goe,S.isEqualWith=Qoe,S.isError=Ew,S.isFinite=Yoe,S.isFunction=ro,S.isInteger=zB,S.isLength=Gp,S.isMap=UB,S.isMatch=Joe,S.isMatchWith=Xoe,S.isNaN=Zoe,S.isNative=ese,S.isNil=nse,S.isNull=tse,S.isNumber=HB,S.isObject=Rt,S.isObjectLike=$t,S.isPlainObject=xc,S.isRegExp=Dw,S.isSafeInteger=rse,S.isSet=WB,S.isString=Qp,S.isSymbol=pr,S.isTypedArray=Du,S.isUndefined=ise,S.isWeakMap=ose,S.isWeakSet=sse,S.join=lie,S.kebabCase=Qse,S.last=jr,S.lastIndexOf=cie,S.lowerCase=Yse,S.lowerFirst=Jse,S.lt=ase,S.lte=use,S.max=Vae,S.maxBy=Kae,S.mean=qae,S.meanBy=Gae,S.min=Qae,S.minBy=Yae,S.stubArray=Pw,S.stubFalse=Rw,S.stubObject=Iae,S.stubString=Nae,S.stubTrue=Lae,S.multiply=Jae,S.nth=fie,S.noConflict=Sae,S.noop=kw,S.now=Vp,S.pad=Xse,S.padEnd=Zse,S.padStart=eae,S.parseInt=tae,S.random=Wse,S.reduce=poe,S.reduceRight=goe,S.repeat=nae,S.replace=rae,S.result=Tse,S.round=Xae,S.runInContext=z,S.sample=voe,S.size=boe,S.snakeCase=iae,S.some=_oe,S.sortedIndex=yie,S.sortedIndexBy=wie,S.sortedIndexOf=bie,S.sortedLastIndex=_ie,S.sortedLastIndexBy=Cie,S.sortedLastIndexOf=Eie,S.startCase=sae,S.startsWith=aae,S.subtract=Zae,S.sum=eue,S.sumBy=tue,S.template=uae,S.times=Mae,S.toFinite=io,S.toInteger=He,S.toLength=KB,S.toLower=lae,S.toNumber=zr,S.toSafeInteger=lse,S.toString=st,S.toUpper=cae,S.trim=fae,S.trimEnd=dae,S.trimStart=hae,S.truncate=pae,S.unescape=gae,S.uniqueId=jae,S.upperCase=mae,S.upperFirst=Sw,S.each=PB,S.eachRight=RB,S.first=OB,Bw(S,function(){var s={};return Ei(S,function(u,d){ut.call(S.prototype,d)||(s[d]=u)}),s}(),{chain:!1}),S.VERSION=r,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),Ir(["drop","take"],function(s,u){Ye.prototype[s]=function(d){d=d===n?1:Zt(He(d),0);var w=this.__filtered__&&!u?new Ye(this):this.clone();return w.__filtered__?w.__takeCount__=En(d,w.__takeCount__):w.__views__.push({size:En(d,ce),type:s+(w.__dir__<0?"Right":"")}),w},Ye.prototype[s+"Right"]=function(d){return this.reverse()[s](d).reverse()}}),Ir(["filter","map","takeWhile"],function(s,u){var d=u+1,w=d==T||d==se;Ye.prototype[s]=function(A){var F=this.clone();return F.__iteratees__.push({iteratee:Te(A,3),type:d}),F.__filtered__=F.__filtered__||w,F}}),Ir(["head","last"],function(s,u){var d="take"+(u?"Right":"");Ye.prototype[s]=function(){return this[d](1).value()[0]}}),Ir(["initial","tail"],function(s,u){var d="drop"+(u?"":"Right");Ye.prototype[s]=function(){return this.__filtered__?new Ye(this):this[d](1)}}),Ye.prototype.compact=function(){return this.filter(Gn)},Ye.prototype.find=function(s){return this.filter(s).head()},Ye.prototype.findLast=function(s){return this.reverse().find(s)},Ye.prototype.invokeMap=Ke(function(s,u){return typeof s=="function"?new Ye(this):this.map(function(d){return wc(d,s,u)})}),Ye.prototype.reject=function(s){return this.filter(qp(Te(s)))},Ye.prototype.slice=function(s,u){s=He(s);var d=this;return d.__filtered__&&(s>0||u<0)?new Ye(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),u!==n&&(u=He(u),d=u<0?d.dropRight(-u):d.take(u-s)),d)},Ye.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ye.prototype.toArray=function(){return this.take(ce)},Ei(Ye.prototype,function(s,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),A=S[w?"take"+(u=="last"?"Right":""):u],F=w||/^find/.test(u);A&&(S.prototype[u]=function(){var R=this.__wrapped__,M=w?[1]:arguments,H=R instanceof Ye,ae=M[0],ue=H||ze(R),fe=function(Ge){var Xe=A.apply(S,Vo([Ge],M));return w&&_e?Xe[0]:Xe};ue&&d&&typeof ae=="function"&&ae.length!=1&&(H=ue=!1);var _e=this.__chain__,Oe=!!this.__actions__.length,Ie=F&&!_e,We=H&&!Oe;if(!F&&ue){R=We?R:new Ye(this);var Ne=s.apply(R,M);return Ne.__actions__.push({func:Hp,args:[fe],thisArg:n}),new Lr(Ne,_e)}return Ie&&We?s.apply(this,M):(Ne=this.thru(fe),Ie?w?Ne.value()[0]:Ne.value():Ne)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(s){var u=gp[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var A=arguments;if(w&&!this.__chain__){var F=this.value();return u.apply(ze(F)?F:[],A)}return this[d](function(R){return u.apply(ze(R)?R:[],A)})}}),Ei(Ye.prototype,function(s,u){var d=S[u];if(d){var w=d.name+"";ut.call(wu,w)||(wu[w]=[]),wu[w].push({name:u,func:d})}}),wu[Np(n,_).name]=[{name:"wrapper",func:n}],Ye.prototype.clone=gne,Ye.prototype.reverse=mne,Ye.prototype.value=vne,S.prototype.at=Kie,S.prototype.chain=qie,S.prototype.commit=Gie,S.prototype.next=Qie,S.prototype.plant=Jie,S.prototype.reverse=Xie,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=Zie,S.prototype.first=S.prototype.head,dc&&(S.prototype[dc]=Yie),S},mu=Gte();Ms?((Ms.exports=mu)._=mu,Fy._=mu):gn._=mu}).call(Gt)}(qd,qd.exports);var $M=qd.exports;const jM=(e,t)=>we.isElement(t)&&C.isBlock(e,t),zM=(e,t,n)=>n?typeof n=="object"?Object.entries(n).every(([r,i])=>$M.castArray(i).includes(e[r])):n(e,t):!0,OA=(e,t)=>{const{match:n,block:r}=t;return C.above(e,{...t,match:n||r?(i,o)=>zM(i,o,n)&&(!t.block||jM(e,i)):void 0})},FA=(e,{at:t,...n})=>{if(t||(t=e.selection),!t)return;const[r,i]=q.edges(t),o=OA(e,{at:r,...n}),a=OA(e,{at:i,...n});if(!(!o&&!a))return!o||!a?!0:!N.equals(o[1],a[1])},UM=(e,t)=>{const{selection:n}=e;if(n&&q.isCollapsed(n)){const{nativeEvent:r}=t;if(S2("left",r)){const{currentWord:i}=Kd(e,/\uFEFF/i);if(i&&i.match(/.*\uFEFF/)){t.preventDefault(),K.move(e,{unit:"character",reverse:!0,distance:2});return}}if(S2("right",r)){const i=q.end(n),o={offset:i.offset,path:[...i.path]};if(Yv(e,o).match(/\n/i)){t.preventDefault(),K.move(e,{unit:"character",distance:2});return}const l=C.above(e);if(l&&je.compare(C.end(e,l[1]),n.focus)===0){K.move(e,{unit:"offset"});return}}}},BA=(e,t)=>{const{selection:n}=e;if(!n)return!1;const[r]=Array.from(C.nodes(e,{at:C.unhangRange(e,n),match:i=>!C.isEditor(i)&&we.isElement(i)&&i.type===t}));return!!r},kA=(e,t)=>{const n=BA(e,t),{selection:r}=e,i={type:n?Ue.BLOCK:t},o=r?!!Array.from(C.nodes(e,{match:a=>we.isElement(a)&&[...Vv,Ue.MENTION].includes(a.type)}))[0]:!1;if(r&&(q.isExpanded(r)||o)&&n)K.setNodes(e,{type:Ue.BLOCK});else if(r&&(q.isExpanded(r)||o)){const a=C.fragment(e,r);K.delete(e,{at:r}),K.insertNodes(e,{type:Ue.QUOTE,children:a}),K.unwrapNodes(e,{match:l=>we.isElement(l)&&l.type===Ue.BLOCK})}else n?K.setNodes(e,{type:Ue.BLOCK}):o||K.insertNodes(e,{type:Ue.QUOTE,children:[{text:""}]});K.setNodes(e,i,{match:a=>we.isElement(a)&&C.isBlock(e,a)&&C.isEmpty(e,a)}),ee.focus(e)},Jv={button:"_button_1559b_1",active:"_active_1559b_1",icon:"_icon_1559b_36"},HM=({format:e,title:t})=>{const n=Wi(),r=BA(n,e)?Jv.active:Jv.button;return W("button",{className:r,onClick:i=>{i.preventDefault(),kA(n,e)},title:t,children:Os(e,Jv.icon)()})};var PA={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(PA);var WM=PA.exports;const No=vr(WM),Fue={"avatar-square":"_avatar-square_st8h3_1","avatar-rounded":"_avatar-rounded_st8h3_1","avatar-circle":"_avatar-circle_st8h3_1",inner:"_inner_st8h3_11",image:"_image_st8h3_25","avatar-large":"_avatar-large_st8h3_43","avatar-medium":"_avatar-medium_st8h3_48","avatar-small":"_avatar-small_st8h3_53","avatar-xsmall":"_avatar-xsmall_st8h3_58"},VM={link:"_link_1hoja_1"},{link:KM}=VM,RA=D.forwardRef(({className:e,label:t,children:n,...r},i)=>W("a",{className:No(KM,e),...r,ref:i,children:t||n}));RA.displayName="Link";const Xv={button:"_button_8fv5d_1","button-fill":"_button-fill_8fv5d_15","button-primary":"_button-primary_8fv5d_38","button-danger":"_button-danger_8fv5d_61","button-success":"_button-success_8fv5d_84"},{button:qM}=Xv,Zv=D.forwardRef(function({children:t,className:n,color:r,disabled:i,href:o,rel:a,target:l,type:c="button",variant:f="fill",onClick:h},g){const m=No([qM,r&&Xv[`button-${r}`],f&&Xv[`button-${f}`],n]);return o?W(RA,{className:m,href:o,target:l,rel:a,onClick:h,children:t}):W("button",{className:m,disabled:i,ref:g,type:c,onClick:h,children:t})}),Rue={card:"_card_hu9ay_1"},Iue={content:"_content_zxk21_1"},Mue={header:"_header_1iy7u_1",heading:"_heading_1iy7u_9"},jue={footer:"_footer_pq6g3_1"},GM={checkbox:"_checkbox_1nula_1",input:"_input_1nula_8"},{checkbox:QM,input:YM}=GM;D.forwardRef(function({children:t,className:n,...r},i){return Ve("label",{className:No([QM,n]),children:[W("input",{...r,className:YM,type:"checkbox",ref:i}),W("span",{children:t})]})});const Wue={link:"_link_7oyne_1"},que={icon:"_icon_1rgg8_1",domain:"_domain_1rgg8_5"},JM={loader:"_loader_e4dlg_1"},XM=300,{loader:ZM}=JM,e1=({height:e})=>{const t={"--loader-height":`${e??XM}px`};return W("div",{className:ZM,style:t})};var t1={},n1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(n1);var qe={},Lo=Gt&&Gt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=Gt&&Gt.__assign||function(){return zl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},zl.apply(this,arguments)};Object.defineProperty(qe,"__esModule",{value:!0}),qe.cloneNode=qe.hasChildren=qe.isDocument=qe.isDirective=qe.isComment=qe.isText=qe.isCDATA=qe.isTag=qe.Element=qe.Document=qe.CDATA=qe.NodeWithChildren=qe.ProcessingInstruction=qe.Comment=qe.Text=qe.DataNode=qe.Node=void 0;var Hn=n1,r1=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),i1(this,t)},e}();qe.Node=r1;var Gd=function(e){Lo(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(r1);qe.DataNode=Gd;var TA=function(e){Lo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Hn.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Gd);qe.Text=TA;var IA=function(e){Lo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Hn.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Gd);qe.Comment=IA;var NA=function(e){Lo(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Hn.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Gd);qe.ProcessingInstruction=NA;var Qd=function(e){Lo(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(r1);qe.NodeWithChildren=Qd;var LA=function(e){Lo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Hn.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Qd);qe.CDATA=LA;var MA=function(e){Lo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Hn.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Qd);qe.Document=MA;var $A=function(e){Lo(t,e);function t(n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=n==="script"?Hn.ElementType.Script:n==="style"?Hn.ElementType.Style:Hn.ElementType.Tag);var a=e.call(this,i)||this;return a.name=n,a.attribs=r,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=n["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),t}(Qd);qe.Element=$A;function jA(e){return(0,Hn.isTag)(e)}qe.isTag=jA;function zA(e){return e.type===Hn.ElementType.CDATA}qe.isCDATA=zA;function UA(e){return e.type===Hn.ElementType.Text}qe.isText=UA;function HA(e){return e.type===Hn.ElementType.Comment}qe.isComment=HA;function WA(e){return e.type===Hn.ElementType.Directive}qe.isDirective=WA;function VA(e){return e.type===Hn.ElementType.Root}qe.isDocument=VA;function e$(e){return Object.prototype.hasOwnProperty.call(e,"children")}qe.hasChildren=e$;function i1(e,t){t===void 0&&(t=!1);var n;if(UA(e))n=new TA(e.data);else if(HA(e))n=new IA(e.data);else if(jA(e)){var r=t?o1(e.children):[],i=new $A(e.name,zl({},e.attribs),r);r.forEach(function(c){return c.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=zl({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=zl({},e["x-attribsPrefix"])),n=i}else if(zA(e)){var r=t?o1(e.children):[],o=new LA(r);r.forEach(function(f){return f.parent=o}),n=o}else if(VA(e)){var r=t?o1(e.children):[],a=new MA(r);r.forEach(function(f){return f.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else if(WA(e)){var l=new NA(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}qe.cloneNode=i1;function o1(e){for(var t=e.map(function(r){return i1(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=Gt&&Gt.__createBinding||(Object.create?function(l,c,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(c,f);(!g||("get"in g?!c.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,h,g)}:function(l,c,f,h){h===void 0&&(h=f),l[h]=c[f]}),n=Gt&&Gt.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&t(c,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=n1,i=qe;n(qe,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function l(c,f,h){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=o),typeof c=="object"&&(f=c,c=void 0),this.callback=c??null,this.options=f??o,this.elementCB=h??null}return l.prototype.onparserinit=function(c){this.parser=c},l.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(c){this.handleCallback(c)},l.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},l.prototype.onopentag=function(c,f){var h=this.options.xmlMode?r.ElementType.Tag:void 0,g=new i.Element(c,f,void 0,h);this.addNode(g),this.tagStack.push(g)},l.prototype.ontext=function(c){var f=this.lastNode;if(f&&f.type===r.ElementType.Text)f.data+=c,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new i.Text(c);this.addNode(h),this.lastNode=h}},l.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var f=new i.Comment(c);this.addNode(f),this.lastNode=f},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var c=new i.Text(""),f=new i.CDATA([c]);this.addNode(f),c.parent=f,this.lastNode=c},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(c,f){var h=new i.ProcessingInstruction(c,f);this.addNode(h)},l.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},l.prototype.addNode=function(c){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),f.children.push(c),h&&(c.prev=h,h.next=c),c.parent=f,this.lastNode=null},l}();e.DomHandler=a,e.default=a})(t1);var KA="html",qA="head",Yd="body",t$=/<([a-zA-Z]+[0-9]?)/,GA=/<head[^]*>/i,QA=/<body[^]*>/i,Jd=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s1=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},YA=typeof window=="object"&&window.DOMParser;if(typeof YA=="function"){var n$=new YA,r$="text/html";s1=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),n$.parseFromString(e,r$)},Jd=s1}if(typeof document=="object"&&document.implementation){var Xd=document.implementation.createHTMLDocument();Jd=function(e,t){if(t){var n=Xd.documentElement.querySelector(t);return n.innerHTML=e,Xd}return Xd.documentElement.innerHTML=e,Xd}}var a1=typeof document=="object"?document.createElement("template"):{},u1;a1.content&&(u1=function(e){return a1.innerHTML=e,a1.content.childNodes});function i$(e){var t,n=e.match(t$);n&&n[1]&&(t=n[1].toLowerCase());var r,i,o;switch(t){case KA:return r=s1(e),GA.test(e)||(i=r.querySelector(qA),i&&i.parentNode.removeChild(i)),QA.test(e)||(i=r.querySelector(Yd),i&&i.parentNode.removeChild(i)),r.querySelectorAll(KA);case qA:case Yd:return r=Jd(e),o=r.querySelectorAll(t),QA.test(e)&&GA.test(e)?o[0].parentNode.childNodes:o;default:return u1?u1(e):(i=Jd(e,Yd).querySelector(Yd),i.childNodes)}}var o$=i$,l1={},JA={};JA.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];for(var Zd=t1,s$=JA,XA=s$.CASE_SENSITIVE_TAG_NAMES,a$=Zd.Comment,u$=Zd.Element,l$=Zd.ProcessingInstruction,c$=Zd.Text,ZA={},c1,f1=0,f$=XA.length;f1<f$;f1++)c1=XA[f1],ZA[c1.toLowerCase()]=c1;function d$(e){return ZA[e]}function eS(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function h$(e){e=e.toLowerCase();var t=d$(e);return t||e}function tS(e,t,n){t=t||null;for(var r=[],i,o=0,a=e.length;o<a;o++){var l=e[o],c;switch(l.nodeType){case 1:i=h$(l.nodeName),c=new u$(i,eS(l.attributes)),c.children=tS(i==="template"?l.content.childNodes:l.childNodes,c);break;case 3:c=new c$(l.nodeValue);break;case 8:c=new a$(l.nodeValue);break;default:continue}var f=r[o-1]||null;f&&(f.next=c),c.parent=t,c.prev=f,c.next=null,r.push(c)}return n&&(c=new l$(n.substring(0,n.indexOf(" ")).toLowerCase(),n),c.next=r[0]||null,c.parent=t,r.unshift(c),r[1]&&(r[1].prev=r[0])),r}l1.formatAttributes=eS,l1.formatDOM=tS;var p$=o$,g$=l1,m$=g$.formatDOM,v$=/<(![a-zA-Z\s]+)>/;function y$(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(v$),n;return t&&t[1]&&(n=t[1]),m$(p$(e),null,n)}var w$=y$,Br={},eh={},b$=0;eh.SAME=b$;var _$=1;eh.CAMELCASE=_$,eh.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(Br,"__esModule",{value:!0});function C$(e,t){return E$(e)||D$(e,t)||x$(e,t)||A$()}function E$(e){if(Array.isArray(e))return e}function D$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,l;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(c){o=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function x$(e,t){if(e){if(typeof e=="string")return nS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var rS=0,Mo=1,th=2,nh=3,d1=4,iS=5,oS=6;function S$(e){return fn.hasOwnProperty(e)?fn[e]:null}function Pn(e,t,n,r,i,o,a){this.acceptsBooleans=t===th||t===nh||t===d1,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var fn={},O$=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];O$.forEach(function(e){fn[e]=new Pn(e,rS,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=C$(e,2),n=t[0],r=t[1];fn[n]=new Pn(n,Mo,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new Pn(e,th,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new Pn(e,th,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){fn[e]=new Pn(e,nh,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new Pn(e,nh,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){fn[e]=new Pn(e,d1,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){fn[e]=new Pn(e,oS,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){fn[e]=new Pn(e,iS,!1,e.toLowerCase(),null,!1,!1)});var h1=/[\-\:]([a-z])/g,p1=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(h1,p1);fn[t]=new Pn(t,Mo,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(h1,p1);fn[t]=new Pn(t,Mo,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h1,p1);fn[t]=new Pn(t,Mo,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new Pn(e,Mo,!1,e.toLowerCase(),null,!1,!1)});var F$="xlinkHref";fn[F$]=new Pn("xlinkHref",Mo,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){fn[e]=new Pn(e,Mo,!1,e.toLowerCase(),null,!0,!0)});var g1=eh,B$=g1.CAMELCASE,k$=g1.SAME,sS=g1.possibleStandardNames,P$=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",R$=P$+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",T$=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+R$+"]*$")),I$=Object.keys(sS).reduce(function(e,t){var n=sS[t];return n===k$?e[t]=t:n===B$?e[t.toLowerCase()]=t:e[t]=n,e},{});Br.BOOLEAN=nh,Br.BOOLEANISH_STRING=th,Br.NUMERIC=iS,Br.OVERLOADED_BOOLEAN=d1,Br.POSITIVE_NUMERIC=oS,Br.RESERVED=rS,Br.STRING=Mo,Br.getPropertyInfo=S$,Br.isCustomAttribute=T$,Br.possibleStandardNames=I$;var aS={},m1={exports:{}},uS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,N$=/\n/g,L$=/^\s*/,M$=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$$=/^:\s*/,j$=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z$=/^[;\s]*/,U$=/^\s+|\s+$/g,H$=` `,lS="/",cS="*",Fs="",W$="comment",V$="declaration",K$=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var p=v.match(N$);p&&(n+=p.length);var E=v.lastIndexOf(H$);r=~E?v.length-E:r+v.length}function o(){var v={line:n,column:r};return function(p){return p.position=new a(v),f(),p}}function a(v){this.start=v,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(v){var p=new Error(t.source+":"+n+":"+r+": "+v);if(p.reason=v,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(v){var p=v.exec(e);if(p){var E=p[0];return i(E),e=e.slice(E.length),p}}function f(){c(L$)}function h(v){var p;for(v=v||[];p=g();)p!==!1&&v.push(p);return v}function g(){var v=o();if(!(lS!=e.charAt(0)||cS!=e.charAt(1))){for(var p=2;Fs!=e.charAt(p)&&(cS!=e.charAt(p)||lS!=e.charAt(p+1));)++p;if(p+=2,Fs===e.charAt(p-1))return l("End of comment missing");var E=e.slice(2,p-2);return r+=2,i(E),e=e.slice(p),r+=2,v({type:W$,comment:E})}}function m(){var v=o(),p=c(M$);if(p){if(g(),!c($$))return l("property missing ':'");var E=c(j$),_=v({type:V$,property:fS(p[0].replace(uS,Fs)),value:E?fS(E[0].replace(uS,Fs)):Fs});return c(z$),_}}function y(){var v=[];h(v);for(var p;p=m();)p!==!1&&(v.push(p),h(v));return v}return f(),y()};function fS(e){return e?e.replace(U$,Fs):Fs}var q$=K$;function dS(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=q$(e),o=typeof t=="function",a,l,c=0,f=i.length;c<f;c++)r=i[c],a=r.property,l=r.value,o?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}m1.exports=dS,m1.exports.default=dS;var G$=m1.exports,rh={};rh.__esModule=!0,rh.camelCase=void 0;var Q$=/^--[a-zA-Z0-9-]+$/,Y$=/-([a-z])/g,J$=/^[^-]+$/,X$=/^-(webkit|moz|ms|o|khtml)-/,Z$=/^-(ms)-/,ej=function(e){return!e||J$.test(e)||Q$.test(e)},tj=function(e,t){return t.toUpperCase()},hS=function(e,t){return"".concat(t,"-")},nj=function(e,t){return t===void 0&&(t={}),ej(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Z$,hS):e=e.replace(X$,hS),e.replace(Y$,tj))};rh.camelCase=nj,function(e){var t=Gt&&Gt.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};e.__esModule=!0;var n=t(G$),r=rh;function i(o,a){var l={};return!o||typeof o!="string"||(0,n.default)(o,function(c,f){c&&f&&(l[(0,r.camelCase)(c,a)]=f)}),l}e.default=i}(aS);var rj=D,ij=aS.default;function oj(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",o={},a={};for(n in e){if(r=e[n],i&&(o=t(n,r),o&&o.length===2)){a[o[0]]=o[1];continue}typeof r=="string"&&(a[r]=n)}return a}function sj(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aj={reactCompat:!0};function uj(e,t){if(e!=null)try{t.style=ij(e,aj)}catch{t.style={}}}var lj=rj.version.split(".")[0]>=16,pS=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function cj(e){return!pS.has(e.name)}var gS={PRESERVE_CUSTOM_ATTRIBUTES:lj,invertObject:oj,isCustomComponent:sj,setStyleProp:uj,canTextBeChildOfNode:cj,elementsWithNoTextChildren:pS},Ul=Br,mS=gS,fj=["checked","value"],dj=["input","select","textarea"],hj={reset:!0,submit:!0},vS=function(t,n){t=t||{};var r,i,o,a,l,c={},f=t.type&&hj[t.type];for(r in t){if(o=t[r],Ul.isCustomAttribute(r)){c[r]=o;continue}if(i=r.toLowerCase(),a=yS(i),a){switch(l=Ul.getPropertyInfo(a),fj.indexOf(a)!==-1&&dj.indexOf(n)!==-1&&!f&&(a=yS("default"+i)),c[a]=o,l&&l.type){case Ul.BOOLEAN:c[a]=!0;break;case Ul.OVERLOADED_BOOLEAN:o===""&&(c[a]=!0);break}continue}mS.PRESERVE_CUSTOM_ATTRIBUTES&&(c[r]=o)}return mS.setStyleProp(t.style,c),c};function yS(e){return Ul.possibleStandardNames[e]}var pj=D,gj=vS,ih=gS,mj=ih.setStyleProp,vj=ih.canTextBeChildOfNode;function wS(e,t){t=t||{};for(var n=t.library||pj,r=n.cloneElement,i=n.createElement,o=n.isValidElement,a=[],l,c,f=typeof t.replace=="function",h,g,m,y=t.trim,v=0,p=e.length;v<p;v++){if(l=e[v],f&&(h=t.replace(l),o(h))){p>1&&(h=r(h,{key:h.key||v})),a.push(h);continue}if(l.type==="text"){if(c=!l.data.trim().length,c&&l.parent&&!vj(l.parent)||y&&c)continue;a.push(l.data);continue}switch(g=l.attribs,yj(l)?mj(g.style,g):g&&(g=gj(g,l.name)),m=null,l.type){case"script":case"style":l.children[0]&&(g.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":l.name==="textarea"&&l.children[0]?g.defaultValue=l.children[0].data:l.children&&l.children.length&&(m=wS(l.children,t));break;default:continue}p>1&&(g.key=v),a.push(i(l.name,g,m))}return a.length===1?a[0]:a}function yj(e){return ih.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ih.isCustomComponent(e.name,e.attribs)}var wj=wS,oh=t1,Ua=w$,bj=vS,bS=wj;Ua=typeof Ua.default=="function"?Ua.default:Ua;var _j={lowerCaseAttributeNames:!1};function vi(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},bS(Ua(e,t.htmlparser2||_j),t))}vi.domToReact=bS,vi.htmlToDOM=Ua,vi.attributesToProps=bj,vi.Comment=oh.Comment,vi.Element=oh.Element,vi.ProcessingInstruction=oh.ProcessingInstruction,vi.Text=oh.Text;var Cj=vi;vi.default=vi;const yi=vr(Cj);yi.domToReact,yi.htmlToDOM;var _S=yi.attributesToProps;yi.Comment;var CS=yi.Element;yi.ProcessingInstruction,yi.Text;const ES=e=>{const[t,n]=D.useState(!0),[r,i]=D.useState(!1),o=yy(e),a=()=>n(!1);return D.useEffect(()=>{o&&i(!0)},[o]),{activated:r,loading:t,onLoadend:a}},v1={root:"_root_169ev_1",iframe:"_iframe_169ev_5","iframe-loading":"_iframe-loading_169ev_11"},{iframe:Ej}=v1,Dj=v1["iframe-loading"],xj=(e,{container:t})=>{const{activated:n,loading:r,onLoadend:i}=ES(t),{htmlHeight:o,htmlWidth:a}=e,c=(()=>{var y;return!a||!o?o:(((y=t==null?void 0:t.current)==null?void 0:y.offsetWidth)||yD())*o/a})(),f={replace:g=>{if(g instanceof CS&&g.attribs&&g.name==="iframe"){const m=_S({...g.attribs,width:"100%",height:c?c.toFixed():g.attribs.height});return W("iframe",{...m,className:r?Dj:Ej,onLoad:i})}}},h=yi(e.html,f);return{activated:n,content:h,loading:r,height:c,width:a}},{root:Aj}=v1,sh=({media:e})=>{const t=D.useRef(null),{activated:n,content:r,loading:i,height:o}=xj(e,{container:t});return Ve("div",{className:Aj,ref:t,children:[i&&W(e1,{height:o}),n&&r]})},y1={root:"_root_169ev_1",iframe:"_iframe_169ev_5","iframe-loading":"_iframe-loading_169ev_11"},{iframe:Sj}=y1,Oj=y1["iframe-loading"],Fj=(e,{container:t})=>{const{html:n,htmlHeight:r}=e,{activated:i,loading:o,onLoadend:a}=ES(t),c=yi(n,{replace:f=>{if(f instanceof CS&&f.attribs&&f.name==="iframe"){const h=_S(f.attribs);return W("iframe",{...h,className:o?Oj:Sj,onLoad:a})}}});return{activated:i,content:c,height:r,loading:o}},{root:Bj}=y1,kj=({media:e})=>{const t=D.useRef(null),{activated:n,content:r,height:i,loading:o}=Fj(e,{container:t});return Ve("div",{className:Bj,ref:t,children:[o&&W(e1,{height:i}),n&&r]})},Pj=e=>{const{mediaType:t,thumbnailHeight:n,thumbnailUrl:r,thumbnailWidth:i}=e;return t!==tt.MP4_VIDEO&&t8(r)?(()=>{const l=n||null,c=i||yD();return CD(r,{h:l,w:c})})():r},Rj=e=>{const{mediaType:t,resolvedUrlRedirect:n,thumbnailUrl:r,urlRedirect:i}=e,o=t===tt.MP4_VIDEO;return{imageUrl:n||i||r,isVideo:o,thumbnailUrl:Pj(e)}},Tj={image:"_image_1mcab_1"},{image:Ij}=Tj,ah=({media:e})=>{const{imageUrl:t,isVideo:n,thumbnailUrl:r}=Rj(e);return W("a",{href:t,target:"_blank",rel:"nofollow noreferrer",children:n?W("video",{src:r,autoPlay:!0,muted:!0,loop:!0}):W("img",{className:Ij,src:r,loading:"lazy",alt:"Thumbnail"})})},Nj={root:"_root_1wfe0_1"},{root:Lj}=Nj,Mj=({media:e})=>W("div",{className:Lj,children:yi(e.html)}),DS="//platform.twitter.com/widgets.js",$j=()=>{let e=document.querySelector(`script[src*="${DS}"]`);D.useEffect(()=>{e||(e=document.createElement("script"),e.src=DS,e.async=!0,document.body.appendChild(e))},[])},jj="#2e9fff",zj=e=>{var h,g;const{url:t,resolvedUrl:n}=e,r=D.useRef(null),[i,o]=D.useState(!1);$j();const a=(h=window.document.documentElement.lang)==null?void 0:h.substring(0,2),l=window.document.body.classList.contains("dark")?"dark":"light",c=n.indexOf("/status")!==-1,f=async m=>{var y;await((y=window.twttr)==null?void 0:y.widgets.load(m)),o(!0)};return D.useEffect(()=>{var m;!i&&((m=window.twttr)!=null&&m.init)&&r.current&&f(r.current)},[(g=window.twttr)==null?void 0:g.init,i]),{language:a,linkColor:jj,theme:l,url:c?n:t,widgetRef:r}},Uj=({media:e})=>{const{language:t,linkColor:n,theme:r,url:i,widgetRef:o}=zj(e);return Ve("div",{ref:o,children:[W("meta",{name:"twitter:widgets:csp",content:"on"}),W("blockquote",{className:"twitter-tweet","data-theme":r,"data-link-color":n,lang:t,children:W("a",{href:i})})]})},kr={PLAY_HIDE:{icon:"proceed",expandMessage:"Play",collapseMessage:"Hide"},VIEW_HIDE:{icon:"proceed",expandMessage:"View",collapseMessage:"Hide"},VIEW_IMAGE:{icon:"images",expandMessage:"View",collapseMessage:"Hide"}};tt.FACEBOOK_PHOTO+"",kr.VIEW_IMAGE,tt.IMAGE_UPLOAD+"",kr.VIEW_IMAGE,tt.IMAGE+"",kr.VIEW_IMAGE,tt.MP4_VIDEO+"",kr.VIEW_IMAGE,tt.VIMEO_VIDEO+"",{...kr.PLAY_HIDE},tt.VINE_VIDEO+"",{...kr.PLAY_HIDE},tt.YOUTUBE_VIDEO+"",{...kr.PLAY_HIDE},tt.SOUNDCLOUD_SOUND+"",{...kr.PLAY_HIDE},tt.GIF_VIDEO+"",kr.VIEW_HIDE,tt.TWITTER_STATUS+"",{...kr.VIEW_HIDE},tt.FACEBOOK_VIDEO+"",{...kr.VIEW_HIDE},tt.GOOGLE_MAP+"",{...kr.VIEW_HIDE},tt.FACEBOOK_POST+"",tt.FACEBOOK_PAGE+"",tt.WEBPAGE+"";const xS={[tt.FACEBOOK_PHOTO]:ah,[tt.IMAGE_UPLOAD]:ah,[tt.IMAGE]:ah,[tt.MP4_VIDEO]:ah,[tt.GIF_VIDEO]:kj,[tt.FACEBOOK_VIDEO]:sh,[tt.GOOGLE_MAP]:sh,[tt.VIMEO_VIDEO]:sh,[tt.YOUTUBE_VIDEO]:sh,[tt.SOUNDCLOUD_SOUND]:Mj,[tt.TWITTER_STATUS]:Uj,[tt.FACEBOOK_POST]:null,[tt.FACEBOOK_PAGE]:null,[tt.VINE_VIDEO]:null,[tt.WEBPAGE]:null},nle={container:"_container_1r7qu_1"},ile={mention:"_mention_1xkh2_1"},Hj=["top","right","bottom","left"],Ha=Math.min,sr=Math.max,uh=Math.round,lh=Math.floor,$o=e=>({x:e,y:e}),Wj={left:"right",right:"left",bottom:"top",top:"bottom"},Vj={start:"end",end:"start"};function AS(e,t,n){return sr(e,Ha(t,n))}function Wa(e,t){return typeof e=="function"?e(t):e}function jo(e){return e.split("-")[0]}function Hl(e){return e.split("-")[1]}function SS(e){return e==="x"?"y":"x"}function OS(e){return e==="y"?"height":"width"}function Wl(e){return["top","bottom"].includes(jo(e))?"y":"x"}function FS(e){return SS(Wl(e))}function Kj(e,t,n){n===void 0&&(n=!1);const r=Hl(e),i=FS(e),o=OS(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ch(a)),[a,ch(a)]}function qj(e){const t=ch(e);return[w1(e),t,w1(t)]}function w1(e){return e.replace(/start|end/g,t=>Vj[t])}function Gj(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function Qj(e,t,n,r){const i=Hl(e);let o=Gj(jo(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(w1)))),o}function ch(e){return e.replace(/left|right|bottom|top/g,t=>Wj[t])}function Yj(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jj(e){return typeof e!="number"?Yj(e):{top:e,right:e,bottom:e,left:e}}function fh(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function BS(e,t,n){let{reference:r,floating:i}=e;const o=Wl(t),a=FS(t),l=OS(a),c=jo(t),f=o==="y",h=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,m=r[l]/2-i[l]/2;let y;switch(c){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-i.width,y:g};break;default:y={x:r.x,y:r.y}}switch(Hl(t)){case"start":y[a]-=m*(n&&f?-1:1);break;case"end":y[a]+=m*(n&&f?-1:1);break}return y}const Xj=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=BS(f,r,c),m=r,y={},v=0;for(let p=0;p<l.length;p++){const{name:E,fn:_}=l[p],{x:b,y:x,data:O,reset:B}=await _({x:h,y:g,initialPlacement:r,placement:m,strategy:i,middlewareData:y,rects:f,platform:a,elements:{reference:e,floating:t}});if(h=b??h,g=x??g,y={...y,[E]:{...y[E],...O}},B&&v<=50){v++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(f=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):B.rects),{x:h,y:g}=BS(f,m,c)),p=-1;continue}}return{x:h,y:g,placement:m,strategy:i,middlewareData:y}};async function Vl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:m=!1,padding:y=0}=Wa(t,e),v=Jj(y),E=l[m?g==="floating"?"reference":"floating":g],_=fh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:c})),b=g==="floating"?{...a.floating,x:r,y:i}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),O=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},B=fh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:x,strategy:c}):b);return{top:(_.top-B.top+v.top)/O.y,bottom:(B.bottom-_.bottom+v.bottom)/O.y,left:(_.left-B.left+v.left)/O.x,right:(B.right-_.right+v.right)/O.x}}const kS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...p}=Wa(e,t),E=jo(r),_=jo(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=g||(_||!v?[ch(a)]:qj(a));!g&&y!=="none"&&x.push(...Qj(a,v,y,b));const O=[a,...x],B=await Vl(t,p),k=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&k.push(B[E]),h){const X=Kj(r,o,b);k.push(B[X[0]],B[X[1]])}if(P=[...P,{placement:r,overflows:k}],!k.every(X=>X<=0)){var I,Q;const X=(((I=i.flip)==null?void 0:I.index)||0)+1,$=O[X];if($)return{data:{index:X,overflows:P},reset:{placement:$}};let U=(Q=P.filter(T=>T.overflows[0]<=0).sort((T,G)=>T.overflows[1]-G.overflows[1])[0])==null?void 0:Q.placement;if(!U)switch(m){case"bestFit":{var j;const T=(j=P.map(G=>[G.placement,G.overflows.filter(se=>se>0).reduce((se,re)=>se+re,0)]).sort((G,se)=>G[1]-se[1])[0])==null?void 0:j[0];T&&(U=T);break}case"initialPlacement":U=a;break}if(r!==U)return{reset:{placement:U}}}return{}}}};function PS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function RS(e){return Hj.some(t=>e[t]>=0)}const Zj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Wa(e,t);switch(r){case"referenceHidden":{const o=await Vl(t,{...i,elementContext:"reference"}),a=PS(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:RS(a)}}}case"escaped":{const o=await Vl(t,{...i,altBoundary:!0}),a=PS(o,n.floating);return{data:{escapedOffsets:a,escaped:RS(a)}}}default:return{}}}}};async function ez(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=jo(n),l=Hl(n),c=Wl(n)==="y",f=["left","top"].includes(a)?-1:1,h=o&&c?-1:1,g=Wa(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return l&&typeof v=="number"&&(y=l==="end"?v*-1:v),c?{x:y*h,y:m*f}:{x:m*f,y:y*h}}const dh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await ez(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},b1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:E=>{let{x:_,y:b}=E;return{x:_,y:b}}},...c}=Wa(e,t),f={x:n,y:r},h=await Vl(t,c),g=Wl(jo(i)),m=SS(g);let y=f[m],v=f[g];if(o){const E=m==="y"?"top":"left",_=m==="y"?"bottom":"right",b=y+h[E],x=y-h[_];y=AS(b,y,x)}if(a){const E=g==="y"?"top":"left",_=g==="y"?"bottom":"right",b=v+h[E],x=v-h[_];v=AS(b,v,x)}const p=l.fn({...t,[m]:y,[g]:v});return{...p,data:{x:p.x-n,y:p.y-r}}}}},tz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=()=>{},...l}=Wa(e,t),c=await Vl(t,l),f=jo(n),h=Hl(n),g=Wl(n)==="y",{width:m,height:y}=r.floating;let v,p;f==="top"||f==="bottom"?(v=f,p=h===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=f,v=h==="end"?"top":"bottom");const E=y-c[v],_=m-c[p],b=!t.middlewareData.shift;let x=E,O=_;if(g){const k=m-c.left-c.right;O=h||b?Ha(_,k):k}else{const k=y-c.top-c.bottom;x=h||b?Ha(E,k):k}if(b&&!h){const k=sr(c.left,0),P=sr(c.right,0),I=sr(c.top,0),Q=sr(c.bottom,0);g?O=m-2*(k!==0||P!==0?k+P:sr(c.left,c.right)):x=y-2*(I!==0||Q!==0?I+Q:sr(c.top,c.bottom))}await a({...t,availableWidth:O,availableHeight:x});const B=await i.getDimensions(o.floating);return m!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function zo(e){return TS(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vi(e){var t;return(t=(TS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TS(e){return e instanceof Node||e instanceof ar(e).Node}function Ut(e){return e instanceof Element||e instanceof ar(e).Element}function dn(e){return e instanceof HTMLElement||e instanceof ar(e).HTMLElement}function _1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot}function Kl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function nz(e){return["table","td","th"].includes(zo(e))}function C1(e){const t=E1(),n=ur(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function rz(e){let t=Va(e);for(;dn(t)&&!hh(t);){if(C1(t))return t;t=Va(t)}return null}function E1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hh(e){return["html","body","#document"].includes(zo(e))}function ur(e){return ar(e).getComputedStyle(e)}function ph(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Va(e){if(zo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_1(e)&&e.host||Vi(e);return _1(t)?t.host:t}function IS(e){const t=Va(e);return hh(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Kl(t)?t:IS(t)}function Bs(e,t){var n;t===void 0&&(t=[]);const r=IS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ar(r);return i?t.concat(o,o.visualViewport||[],Kl(r)?r:[]):t.concat(r,Bs(r))}function NS(e){const t=ur(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=uh(n)!==o||uh(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function D1(e){return Ut(e)?e:e.contextElement}function Ka(e){const t=D1(e);if(!dn(t))return $o(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=NS(t);let a=(o?uh(n.width):n.width)/r,l=(o?uh(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const iz=$o(0);function LS(e){const t=ar(e);return!E1()||!t.visualViewport?iz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oz(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ar(e)?!1:t}function ks(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=D1(e);let a=$o(1);t&&(r?Ut(r)&&(a=Ka(r)):a=Ka(e));const l=oz(o,n,r)?LS(o):$o(0);let c=(i.left+l.x)/a.x,f=(i.top+l.y)/a.y,h=i.width/a.x,g=i.height/a.y;if(o){const m=ar(o),y=r&&Ut(r)?ar(r):r;let v=m.frameElement;for(;v&&r&&y!==m;){const p=Ka(v),E=v.getBoundingClientRect(),_=ur(v),b=E.left+(v.clientLeft+parseFloat(_.paddingLeft))*p.x,x=E.top+(v.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,f*=p.y,h*=p.x,g*=p.y,c+=b,f+=x,v=ar(v).frameElement}}return fh({width:h,height:g,x:c,y:f})}function sz(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=dn(n),o=Vi(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},l=$o(1);const c=$o(0);if((i||!i&&r!=="fixed")&&((zo(n)!=="body"||Kl(o))&&(a=ph(n)),dn(n))){const f=ks(n);l=Ka(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}}function az(e){return Array.from(e.getClientRects())}function MS(e){return ks(Vi(e)).left+ph(e).scrollLeft}function uz(e){const t=Vi(e),n=ph(e),r=e.ownerDocument.body,i=sr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=sr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+MS(e);const l=-n.scrollTop;return ur(r).direction==="rtl"&&(a+=sr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function lz(e,t){const n=ar(e),r=Vi(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const f=E1();(!f||f&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}function cz(e,t){const n=ks(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=dn(e)?Ka(e):$o(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,f=r*o.y;return{width:a,height:l,x:c,y:f}}function $S(e,t,n){let r;if(t==="viewport")r=lz(e,n);else if(t==="document")r=uz(Vi(e));else if(Ut(t))r=cz(t,n);else{const i=LS(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return fh(r)}function jS(e,t){const n=Va(e);return n===t||!Ut(n)||hh(n)?!1:ur(n).position==="fixed"||jS(n,t)}function fz(e,t){const n=t.get(e);if(n)return n;let r=Bs(e).filter(l=>Ut(l)&&zo(l)!=="body"),i=null;const o=ur(e).position==="fixed";let a=o?Va(e):e;for(;Ut(a)&&!hh(a);){const l=ur(a),c=C1(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Kl(a)&&!c&&jS(e,a))?r=r.filter(h=>h!==a):i=l,a=Va(a)}return t.set(e,r),r}function dz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?fz(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((f,h)=>{const g=$S(t,h,i);return f.top=sr(g.top,f.top),f.right=Ha(g.right,f.right),f.bottom=Ha(g.bottom,f.bottom),f.left=sr(g.left,f.left),f},$S(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function hz(e){return NS(e)}function pz(e,t,n){const r=dn(t),i=Vi(t),o=n==="fixed",a=ks(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=$o(0);if(r||!r&&!o)if((zo(t)!=="body"||Kl(i))&&(l=ph(t)),r){const f=ks(t,!0,o,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else i&&(c.x=MS(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function zS(e,t){return!dn(e)||ur(e).position==="fixed"?null:t?t(e):e.offsetParent}function US(e,t){const n=ar(e);if(!dn(e))return n;let r=zS(e,t);for(;r&&nz(r)&&ur(r).position==="static";)r=zS(r,t);return r&&(zo(r)==="html"||zo(r)==="body"&&ur(r).position==="static"&&!C1(r))?n:r||rz(e)||n}const gz=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||US,o=this.getDimensions;return{reference:pz(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}};function mz(e){return ur(e).direction==="rtl"}const vz={convertOffsetParentRelativeRectToViewportRelativeRect:sz,getDocumentElement:Vi,getClippingRect:dz,getOffsetParent:US,getElementRects:gz,getClientRects:az,getDimensions:hz,getScale:Ka,isElement:Ut,isRTL:mz};function yz(e,t){let n=null,r;const i=Vi(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const{left:f,top:h,width:g,height:m}=e.getBoundingClientRect();if(l||t(),!g||!m)return;const y=lh(h),v=lh(i.clientWidth-(f+g)),p=lh(i.clientHeight-(h+m)),E=lh(f),b={rootMargin:-y+"px "+-v+"px "+-p+"px "+-E+"px",threshold:sr(0,Ha(1,c))||1};let x=!0;function O(B){const k=B[0].intersectionRatio;if(k!==c){if(!x)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,b)}n.observe(e)}return a(!0),o}function gh(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=D1(e),h=i||o?[...f?Bs(f):[],...Bs(t)]:[];h.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const g=f&&l?yz(f,n):null;let m=-1,y=null;a&&(y=new ResizeObserver(_=>{let[b]=_;b&&b.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),f&&!c&&y.observe(f),y.observe(t));let v,p=c?ks(e):null;c&&E();function E(){const _=ks(e);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&n(),p=_,v=requestAnimationFrame(E)}return n(),()=>{h.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),g&&g(),y&&y.disconnect(),y=null,c&&cancelAnimationFrame(v)}}const wz=(e,t,n)=>{const r=new Map,i={platform:vz,...n},o={...i.platform,_c:r};return Xj(e,t,{...i,platform:o})};var mh=typeof document<"u"?D.useLayoutEffect:D.useEffect;function vh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!vh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!vh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function HS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WS(e,t){const n=HS(e);return Math.round(t*n)/n}function VS(e){const t=D.useRef(e);return mh(()=>{t.current=e}),t}function bz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[h,g]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=D.useState(r);vh(m,r)||y(r);const[v,p]=D.useState(null),[E,_]=D.useState(null),b=D.useCallback(se=>{se!=k.current&&(k.current=se,p(se))},[p]),x=D.useCallback(se=>{se!==P.current&&(P.current=se,_(se))},[_]),O=o||v,B=a||E,k=D.useRef(null),P=D.useRef(null),I=D.useRef(h),Q=VS(c),j=VS(i),X=D.useCallback(()=>{if(!k.current||!P.current)return;const se={placement:t,strategy:n,middleware:m};j.current&&(se.platform=j.current),wz(k.current,P.current,se).then(re=>{const V={...re,isPositioned:!0};$.current&&!vh(I.current,V)&&(I.current=V,qf.flushSync(()=>{g(V)}))})},[m,t,n,j]);mh(()=>{f===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g(se=>({...se,isPositioned:!1})))},[f]);const $=D.useRef(!1);mh(()=>($.current=!0,()=>{$.current=!1}),[]),mh(()=>{if(O&&(k.current=O),B&&(P.current=B),O&&B){if(Q.current)return Q.current(O,B,X);X()}},[O,B,X,Q]);const U=D.useMemo(()=>({reference:k,floating:P,setReference:b,setFloating:x}),[b,x]),T=D.useMemo(()=>({reference:O,floating:B}),[O,B]),G=D.useMemo(()=>{const se={position:n,left:0,top:0};if(!T.floating)return se;const re=WS(T.floating,h.x),V=WS(T.floating,h.y);return l?{...se,transform:"translate("+re+"px, "+V+"px)",...HS(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:V}},[n,l,T.floating,h.x,h.y]);return D.useMemo(()=>({...h,update:X,refs:U,elements:T,floatingStyles:G}),[h,X,U,T,G])}function Ki(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}function on(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_1(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function KS(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function _z(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function qS(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(KS())||t.test(_z()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function GS(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function QS(){return/apple/i.test(navigator.vendor)}function Cz(){return KS().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yh(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ez(e){return"nativeEvent"in e}function Wn(e){return(e==null?void 0:e.ownerDocument)||document}function wh(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function x1(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Dz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YS(e){return dn(e)&&e.matches(Dz)}function lr(e){e.preventDefault(),e.stopPropagation()}var JS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qa=new WeakMap,bh=new WeakMap,_h={},A1=0,XS=function(e){return e&&(e.host||XS(e.parentNode))},xz=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=XS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ZS=function(e,t,n,r){var i=xz(t,Array.isArray(e)?e:[e]);_h[n]||(_h[n]=new WeakMap);var o=_h[n],a=[],l=new Set,c=new Set(i),f=function(g){!g||l.has(g)||(l.add(g),f(g.parentNode))};i.forEach(f);var h=function(g){!g||c.has(g)||Array.prototype.forEach.call(g.children,function(m){if(l.has(m))h(m);else{var y=m.getAttribute(r),v=y!==null&&y!=="false",p=(qa.get(m)||0)+1,E=(o.get(m)||0)+1;qa.set(m,p),o.set(m,E),a.push(m),p===1&&v&&bh.set(m,!0),E===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}})};return h(t),l.clear(),A1++,function(){a.forEach(function(g){var m=qa.get(g)-1,y=o.get(g)-1;qa.set(g,m),o.set(g,y),m||(bh.has(g)||g.removeAttribute(r),bh.delete(g)),y||g.removeAttribute(n)}),A1--,A1||(qa=new WeakMap,qa=new WeakMap,bh=new WeakMap,_h={})}},eO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||JS(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),ZS(r,i,n,"aria-hidden")):function(){return null}},Az=function(e,t,n){n===void 0&&(n="data-inert-ed");var r=t||JS(e);return r?ZS(e,r,n,"inert"):function(){return null}},tO=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},Sz=function(e,t,n){return n===void 0&&(n="data-suppressed"),(tO()?Az:eO)(e,t,n)};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var Oz=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],S1=Oz.join(","),nO=typeof Element>"u",ql=nO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ch=!nO&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Eh=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},Fz=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Bz=function(t,n,r){if(Eh(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(S1));return n&&ql.call(t,S1)&&i.unshift(t),i=i.filter(r),i},kz=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!Eh(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=l.length?l:a.children,f=e(c,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else{var h=ql.call(a,S1);h&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var g=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),m=!Eh(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(g&&m){var y=e(g===!0?a.children:g.children,!0,r);r.flatten?i.push.apply(i,y):i.push({scopeParent:a,candidates:y})}else o.unshift.apply(o,a.children)}}return i},rO=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},iO=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Fz(t))&&!rO(t)?0:t.tabIndex},Pz=function(t,n){var r=iO(t);return r<0&&n&&!rO(t)?0:r},Rz=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},oO=function(t){return t.tagName==="INPUT"},Tz=function(t){return oO(t)&&t.type==="hidden"},Iz=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Nz=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Lz=function(t){if(!t.name)return!0;var n=t.form||Ch(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=Nz(i,t.form);return!o||o===t},Mz=function(t){return oO(t)&&t.type==="radio"},$z=function(t){return Mz(t)&&!Lz(t)},jz=function(t){var n,r=t&&Ch(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,l,c;for(o=!!((a=i)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!o&&i;){var f,h,g;r=Ch(i),i=(f=r)===null||f===void 0?void 0:f.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},sO=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},zz=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ql.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(ql.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var c=t.parentElement,f=Ch(t);if(c&&!c.shadowRoot&&i(c)===!0)return sO(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=l}if(jz(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return sO(t);return!1},Uz=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return ql.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Hz=function(t,n){return!(n.disabled||Eh(n)||Tz(n)||zz(n,t)||Iz(n)||Uz(n))},aO=function(t,n){return!($z(n)||iO(n)<0||!Hz(t,n))},Wz=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Vz=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,c=Pz(l,a),f=a?e(i.candidates):l;c===0?a?n.push.apply(n,f):n.push(l):r.push({documentOrder:o,tabIndex:c,item:i,isScope:a,content:f})}),r.sort(Rz).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},O1=function(t,n){n=n||{};var r;return n.getShadowRoot?r=kz([t],n.includeContainer,{filter:aO.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Wz}):r=Bz(t,n.includeContainer,aO.bind(null,n)),Vz(r)};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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}var Nt=typeof document<"u"?D.useLayoutEffect:D.useEffect;let F1=!1,Kz=0;const uO=()=>"floating-ui-"+Kz++;function qz(){const[e,t]=D.useState(()=>F1?uO():void 0);return Nt(()=>{e==null&&t(uO())},[]),D.useEffect(()=>{F1||(F1=!0)},[]),e}const xh=qw["useId".toString()]||qz;function lO(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const cO=D.createContext(null),fO=D.createContext(null),Gl=()=>{var e;return((e=D.useContext(cO))==null?void 0:e.id)||null},Uo=()=>D.useContext(fO);function Gz(e){const t=xh(),n=Uo(),r=Gl(),i=e||r;return Nt(()=>{const o={id:t,parentId:i};return n==null||n.addNode(o),()=>{n==null||n.removeNode(o)}},[n,t,i]),t}function Qz(e){let{children:t,id:n}=e;const r=Gl();return D.createElement(cO.Provider,{value:D.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function Yz(e){let{children:t}=e;const n=D.useRef([]),r=D.useCallback(a=>{n.current=[...n.current,a]},[]),i=D.useCallback(a=>{n.current=n.current.filter(l=>l!==a)},[]),o=D.useState(()=>lO())[0];return D.createElement(fO.Provider,{value:D.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[n,r,i,o])},t)}function Ps(e){return"data-floating-ui-"+e}function Ho(e){const t=D.useRef(e);return Nt(()=>{t.current=e}),t}const dO=Ps("safe-polygon");function B1(e,t,n){return n&&!yh(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Jz(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:{domReference:a,floating:l},refs:c}=e,{enabled:f=!0,delay:h=0,handleClose:g=null,mouseOnly:m=!1,restMs:y=0,move:v=!0}=t,p=Uo(),E=Gl(),_=Ho(g),b=Ho(h),x=D.useRef(),O=D.useRef(),B=D.useRef(),k=D.useRef(),P=D.useRef(!0),I=D.useRef(!1),Q=D.useRef(()=>{}),j=D.useCallback(()=>{var T;const G=(T=i.current.openEvent)==null?void 0:T.type;return(G==null?void 0:G.includes("mouse"))&&G!=="mousedown"},[i]);D.useEffect(()=>{if(!f)return;function T(){clearTimeout(O.current),clearTimeout(k.current),P.current=!0}return o.on("dismiss",T),()=>{o.off("dismiss",T)}},[f,o]),D.useEffect(()=>{if(!f||!_.current||!n)return;function T(se){j()&&r(!1,se)}const G=Wn(l).documentElement;return G.addEventListener("mouseleave",T),()=>{G.removeEventListener("mouseleave",T)}},[l,n,r,f,_,i,j]);const X=D.useCallback(function(T,G){G===void 0&&(G=!0);const se=B1(b.current,"close",x.current);se&&!B.current?(clearTimeout(O.current),O.current=setTimeout(()=>r(!1,T),se)):G&&(clearTimeout(O.current),r(!1,T))},[b,r]),$=D.useCallback(()=>{Q.current(),B.current=void 0},[]),U=D.useCallback(()=>{if(I.current){const T=Wn(c.floating.current).body;T.style.pointerEvents="",T.removeAttribute(dO),I.current=!1}},[c]);return D.useEffect(()=>{if(!f)return;function T(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function G(V){if(clearTimeout(O.current),P.current=!1,m&&!yh(x.current)||y>0&&B1(b.current,"open")===0)return;const te=B1(b.current,"open",x.current);te?O.current=setTimeout(()=>{r(!0,V)},te):r(!0,V)}function se(V){if(T())return;Q.current();const te=Wn(l);if(clearTimeout(k.current),_.current){n||clearTimeout(O.current),B.current=_.current({...e,tree:p,x:V.clientX,y:V.clientY,onClose(){U(),$(),X(V)}});const ce=B.current;te.addEventListener("mousemove",ce),Q.current=()=>{te.removeEventListener("mousemove",ce)};return}(x.current==="touch"?!on(l,V.relatedTarget):!0)&&X(V)}function re(V){T()||_.current==null||_.current({...e,tree:p,x:V.clientX,y:V.clientY,onClose(){U(),$(),X(V)}})(V)}if(Ut(a)){const V=a;return n&&V.addEventListener("mouseleave",re),l==null||l.addEventListener("mouseleave",re),v&&V.addEventListener("mousemove",G,{once:!0}),V.addEventListener("mouseenter",G),V.addEventListener("mouseleave",se),()=>{n&&V.removeEventListener("mouseleave",re),l==null||l.removeEventListener("mouseleave",re),v&&V.removeEventListener("mousemove",G),V.removeEventListener("mouseenter",G),V.removeEventListener("mouseleave",se)}}},[a,l,f,e,m,y,v,X,$,U,r,n,p,b,_,i]),Nt(()=>{var T;if(f&&n&&(T=_.current)!=null&&T.__options.blockPointerEvents&&j()){const re=Wn(l).body;if(re.setAttribute(dO,""),re.style.pointerEvents="none",I.current=!0,Ut(a)&&l){var G,se;const V=a,te=p==null||(G=p.nodesRef.current.find(le=>le.id===E))==null||(se=G.context)==null?void 0:se.elements.floating;return te&&(te.style.pointerEvents=""),V.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{V.style.pointerEvents="",l.style.pointerEvents=""}}}},[f,n,E,l,a,p,_,i,j]),Nt(()=>{n||(x.current=void 0,$(),U())},[n,$,U]),D.useEffect(()=>()=>{$(),clearTimeout(O.current),clearTimeout(k.current),U()},[f,a,$,U]),D.useMemo(()=>{if(!f)return{};function T(G){x.current=G.pointerType}return{reference:{onPointerDown:T,onPointerEnter:T,onMouseMove(G){n||y===0||(clearTimeout(k.current),k.current=setTimeout(()=>{P.current||r(!0,G.nativeEvent)},y))}},floating:{onMouseEnter(){clearTimeout(O.current)},onMouseLeave(G){o.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),X(G.nativeEvent,!1)}}}},[o,f,y,n,r,X])}let hO=0;function qi(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(hO);const o=()=>e==null?void 0:e.focus({preventScroll:n});i?o():hO=requestAnimationFrame(o)}function Xz(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(a=>a.id===i);i=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function Ga(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var l;return i.parentId===a.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const k1=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function pO(e,t){const n=O1(e,k1());t==="prev"&&n.reverse();const r=n.indexOf(Ki(Wn(e)));return n.slice(r+1)[0]}function gO(){return pO(document.body,"next")}function mO(){return pO(document.body,"prev")}function Ql(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!on(n,r)}function Zz(e){O1(e,k1()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function eU(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const P1={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let tU;function vO(e){e.key==="Tab"&&(e.target,clearTimeout(tU))}const Ah=D.forwardRef(function(t,n){const[r,i]=D.useState();Nt(()=>(QS()&&i("button"),document.addEventListener("keydown",vO),()=>{document.removeEventListener("keydown",vO)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Ps("focus-guard")]:"",style:P1};return D.createElement("span",Dh({},t,o))}),yO=D.createContext(null);function nU(e){let{id:t,root:n}=e===void 0?{}:e;const[r,i]=D.useState(null),o=xh(),a=wO(),l=D.useMemo(()=>({id:t,root:n,portalContext:a,uniqueId:o}),[t,n,a,o]),c=D.useRef();return Nt(()=>()=>{r==null||r.remove()},[r,l]),Nt(()=>{if(c.current===l)return;c.current=l;const{id:f,root:h,portalContext:g,uniqueId:m}=l,y=f?document.getElementById(f):null,v=Ps("portal");if(y){const p=document.createElement("div");p.id=m,p.setAttribute(v,""),y.appendChild(p),i(p)}else{let p=h||(g==null?void 0:g.portalNode);p&&!Ut(p)&&(p=p.current),p=p||document.body;let E=null;f&&(E=document.createElement("div"),E.id=f,p.appendChild(E));const _=document.createElement("div");_.id=m,_.setAttribute(v,""),p=E||p,p.appendChild(_),i(_)}},[l]),r}function Sh(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e;const o=nU({id:n,root:r}),[a,l]=D.useState(null),c=D.useRef(null),f=D.useRef(null),h=D.useRef(null),g=D.useRef(null),m=!!a&&!a.modal&&a.open&&i&&!!(r||o);return D.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function y(v){o&&Ql(v)&&(v.type==="focusin"?eU:Zz)(o)}return o.addEventListener("focusin",y,!0),o.addEventListener("focusout",y,!0),()=>{o.removeEventListener("focusin",y,!0),o.removeEventListener("focusout",y,!0)}},[o,i,a==null?void 0:a.modal]),D.createElement(yO.Provider,{value:D.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:f,beforeInsideRef:h,afterInsideRef:g,portalNode:o,setFocusManagerState:l}),[i,o])},m&&o&&D.createElement(Ah,{"data-type":"outside",ref:c,onFocus:y=>{if(Ql(y,o)){var v;(v=h.current)==null||v.focus()}else{const p=mO()||(a==null?void 0:a.refs.domReference.current);p==null||p.focus()}}}),m&&o&&D.createElement("span",{"aria-owns":o.id,style:P1}),o&&qf.createPortal(t,o),m&&o&&D.createElement(Ah,{"data-type":"outside",ref:f,onFocus:y=>{if(Ql(y,o)){var v;(v=g.current)==null||v.focus()}else{const p=gO()||(a==null?void 0:a.refs.domReference.current);p==null||p.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,y.nativeEvent))}}}))}const wO=()=>D.useContext(yO),rU=D.forwardRef(function(t,n){return D.createElement("button",Dh({},t,{type:"button",ref:n,tabIndex:-1,style:P1}))});function R1(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:l=!0,modal:c=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:h=!0}=e,{open:g,refs:m,nodeId:y,onOpenChange:v,events:p,dataRef:E,elements:{domReference:_,floating:b}}=t,x=tO()?o:!0,O=Ho(i),B=Ho(a),k=Ho(l),P=Uo(),I=wO(),Q=typeof a=="number"&&a<0,j=D.useRef(null),X=D.useRef(null),$=D.useRef(!1),U=D.useRef(null),T=D.useRef(!1),G=I!=null,se=_&&_.getAttribute("role")==="combobox"&&YS(_),re=D.useCallback(function(ce){return ce===void 0&&(ce=b),ce?O1(ce,k1()):[]},[b]),V=D.useCallback(ce=>{const ye=re(ce);return O.current.map(De=>_&&De==="reference"?_:b&&De==="floating"?b:ye).filter(Boolean).flat()},[_,b,O,re]);D.useEffect(()=>{if(r||!c)return;function ce(De){if(De.key==="Tab"){on(b,Ki(Wn(b)))&&re().length===0&&!se&&lr(De);const Ce=V(),L=x1(De);O.current[0]==="reference"&&L===_&&(lr(De),De.shiftKey?qi(Ce[Ce.length-1]):qi(Ce[1])),O.current[1]==="floating"&&L===b&&De.shiftKey&&(lr(De),qi(Ce[0]))}}const ye=Wn(b);return ye.addEventListener("keydown",ce),()=>{ye.removeEventListener("keydown",ce)}},[r,_,b,c,O,m,se,re,V]),D.useEffect(()=>{if(r||!h)return;function ce(){T.current=!0,setTimeout(()=>{T.current=!1})}function ye(De){const Ce=De.relatedTarget;queueMicrotask(()=>{const L=!(on(_,Ce)||on(b,Ce)||on(Ce,b)||on(I==null?void 0:I.portalNode,Ce)||Ce!=null&&Ce.hasAttribute(Ps("focus-guard"))||P&&(Ga(P.nodesRef.current,y).find(ne=>{var J,Y;return on((J=ne.context)==null?void 0:J.elements.floating,Ce)||on((Y=ne.context)==null?void 0:Y.elements.domReference,Ce)})||Xz(P.nodesRef.current,y).find(ne=>{var J,Y;return((J=ne.context)==null?void 0:J.elements.floating)===Ce||((Y=ne.context)==null?void 0:Y.elements.domReference)===Ce})));Ce&&L&&!T.current&&Ce!==U.current&&($.current=!0,v(!1,De))})}if(b&&dn(_))return _.addEventListener("focusout",ye),_.addEventListener("pointerdown",ce),!c&&b.addEventListener("focusout",ye),()=>{_.removeEventListener("focusout",ye),_.removeEventListener("pointerdown",ce),!c&&b.removeEventListener("focusout",ye)}},[r,_,b,c,y,P,I,v,h]),D.useEffect(()=>{var ce;if(r)return;const ye=Array.from((I==null||(ce=I.portalNode)==null?void 0:ce.querySelectorAll("["+Ps("portal")+"]"))||[]);if(b&&c){const De=[b,...ye,j.current,X.current].filter(ne=>ne!=null),L=(x?eO:Sz)(O.current.includes("reference")||se?De.concat(_||[]):De,void 0,Ps("inert"));return()=>{L()}}},[r,_,b,c,O,I,se,x]),Nt(()=>{if(r||!b)return;const ce=Wn(b),ye=Ki(ce);queueMicrotask(()=>{const De=V(b),Ce=B.current,L=(typeof Ce=="number"?De[Ce]:Ce.current)||b,ne=on(b,ye);!Q&&!ne&&g&&qi(L,{preventScroll:L===b})})},[r,g,b,Q,V,B]),Nt(()=>{if(r||!b)return;let ce=!1;const ye=Wn(b),De=Ki(ye),Ce=E.current;U.current=De;function L(ne){if(ne.type==="escapeKey"&&m.domReference.current&&(U.current=m.domReference.current),["referencePress","escapeKey"].includes(ne.type))return;const J=ne.data.returnFocus;typeof J=="object"?($.current=!1,ce=J.preventScroll):$.current=!J}return p.on("dismiss",L),()=>{p.off("dismiss",L);const ne=Ki(ye);(on(b,ne)||P&&Ga(P.nodesRef.current,y).some(Y=>{var ge;return on((ge=Y.context)==null?void 0:ge.elements.floating,ne)})||Ce.openEvent&&["click","mousedown"].includes(Ce.openEvent.type))&&m.domReference.current&&(U.current=m.domReference.current),k.current&&dn(U.current)&&!$.current&&qi(U.current,{cancelPrevious:!1,preventScroll:ce})}},[r,b,k,E,m,p,P,y]),Nt(()=>{if(!(r||!I))return I.setFocusManagerState({...t,modal:c,closeOnFocusOut:h,open:g}),()=>{I.setFocusManagerState(null)}},[r,I,c,g,h,t]),Nt(()=>{if(!r&&b&&typeof MutationObserver=="function"){const ce=()=>{const De=b.getAttribute("tabindex");O.current.includes("floating")||Ki(Wn(b))!==m.domReference.current&&re().length===0?De!=="0"&&b.setAttribute("tabindex","0"):De!=="-1"&&b.setAttribute("tabindex","-1")};ce();const ye=new MutationObserver(ce);return ye.observe(b,{childList:!0,subtree:!0,attributes:!0}),()=>{ye.disconnect()}}},[r,b,m,O,re]);function te(ce){return r||!f||!c?null:D.createElement(rU,{ref:ce==="start"?j:X,onClick:ye=>v(!1,ye.nativeEvent)},typeof f=="string"?f:"Dismiss")}const le=!r&&x&&!se&&(G||c);return D.createElement(D.Fragment,null,le&&D.createElement(Ah,{"data-type":"inside",ref:I==null?void 0:I.beforeInsideRef,onFocus:ce=>{if(c){const De=V();qi(i[0]==="reference"?De[0]:De[De.length-1])}else if(I!=null&&I.preserveTabOrder&&I.portalNode)if($.current=!1,Ql(ce,I.portalNode)){const De=gO()||_;De==null||De.focus()}else{var ye;(ye=I.beforeOutsideRef.current)==null||ye.focus()}}}),!se&&te("start"),n,te("end"),le&&D.createElement(Ah,{"data-type":"inside",ref:I==null?void 0:I.afterInsideRef,onFocus:ce=>{if(c)qi(V()[0]);else if(I!=null&&I.preserveTabOrder&&I.portalNode)if(h&&($.current=!0),Ql(ce,I.portalNode)){const De=mO()||_;De==null||De.focus()}else{var ye;(ye=I.afterOutsideRef.current)==null||ye.focus()}}}))}function iU(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function oU(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const bO=D.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function sU(e){let{children:t,elementsRef:n,labelsRef:r}=e;const[i,o]=D.useState(()=>new Map),a=D.useCallback(c=>{o(f=>new Map(f).set(c,null))},[]),l=D.useCallback(c=>{o(f=>{const h=new Map(f);return h.delete(c),h})},[]);return Nt(()=>{const c=new Map(i);Array.from(c.keys()).sort(iU).forEach((h,g)=>{c.set(h,g)}),oU(i,c)||o(c)},[i]),D.createElement(bO.Provider,{value:D.useMemo(()=>({register:a,unregister:l,map:i,elementsRef:n,labelsRef:r}),[a,l,i,n,r])},t)}function _O(e){let{label:t}=e===void 0?{}:e;const[n,r]=D.useState(null),i=D.useRef(null),{register:o,unregister:a,map:l,elementsRef:c,labelsRef:f}=D.useContext(bO),h=D.useCallback(g=>{if(i.current=g,n!==null&&(c.current[n]=g,f)){var m;const y=t!==void 0;f.current[n]=y?t:(m=g==null?void 0:g.textContent)!=null?m:null}},[n,c,f,t]);return Nt(()=>{const g=i.current;if(g)return o(g),()=>{a(g)}},[o,a]),Nt(()=>{const g=i.current?l.get(i.current):null;g!=null&&r(g)},[l]),D.useMemo(()=>({ref:h,index:n??-1}),[n,h])}function CO(e){return dn(e.target)&&e.target.tagName==="BUTTON"}function EO(e){return YS(e)}function T1(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:f=!1,keyboardHandlers:h=!0}=t,g=D.useRef(),m=D.useRef(!1);return D.useMemo(()=>a?{reference:{onPointerDown(y){g.current=y.pointerType},onMouseDown(y){y.button===0&&(yh(g.current,!0)&&f||l!=="click"&&(n&&c&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,y.nativeEvent):(y.preventDefault(),r(!0,y.nativeEvent))))},onClick(y){if(l==="mousedown"&&g.current){g.current=void 0;return}yh(g.current,!0)&&f||(n&&c&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,y.nativeEvent):r(!0,y.nativeEvent))},onKeyDown(y){g.current=void 0,!(y.defaultPrevented||!h||CO(y))&&(y.key===" "&&!EO(o)&&(y.preventDefault(),m.current=!0),y.key==="Enter"&&r(!(n&&c),y.nativeEvent))},onKeyUp(y){y.defaultPrevented||!h||CO(y)||EO(o)||y.key===" "&&m.current&&(m.current=!1,r(!(n&&c),y.nativeEvent))}}}:{},[a,i,l,f,h,o,c,n,r])}const aU=qw["useInsertionEffect".toString()]||(e=>e());function Qa(e){const t=D.useRef(()=>{});return aU(()=>{t.current=e}),D.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}const uU={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},lU={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},cU=e=>{var t,n;return{escapeKeyBubbles:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePressBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Oh(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,nodeId:o,elements:{reference:a,domReference:l,floating:c},dataRef:f}=e,{enabled:h=!0,escapeKey:g=!0,outsidePress:m=!0,outsidePressEvent:y="pointerdown",referencePress:v=!1,referencePressEvent:p="pointerdown",ancestorScroll:E=!1,bubbles:_}=t,b=Uo(),x=Gl()!=null,O=Qa(typeof m=="function"?m:()=>!1),B=typeof m=="function"?O:m,k=D.useRef(!1),{escapeKeyBubbles:P,outsidePressBubbles:I}=cU(_),Q=Qa(X=>{if(!n||!h||!g||X.key!=="Escape")return;const $=b?Ga(b.nodesRef.current,o):[];if(!P&&(X.stopPropagation(),$.length>0)){let U=!0;if($.forEach(T=>{var G;if((G=T.context)!=null&&G.open&&!T.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,Ez(X)?X.nativeEvent:X)}),j=Qa(X=>{const $=k.current;if(k.current=!1,$||typeof B=="function"&&!B(X))return;const U=x1(X);if(dn(U)&&c){const se=U.clientWidth>0&&U.scrollWidth>U.clientWidth,re=U.clientHeight>0&&U.scrollHeight>U.clientHeight;let V=re&&X.offsetX>U.clientWidth;if(re&&ur(U).direction==="rtl"&&(V=X.offsetX<=U.offsetWidth-U.clientWidth),V||se&&X.offsetY>U.clientHeight)return}const T=b&&Ga(b.nodesRef.current,o).some(se=>{var re;return wh(X,(re=se.context)==null?void 0:re.elements.floating)});if(wh(X,c)||wh(X,l)||T)return;const G=b?Ga(b.nodesRef.current,o):[];if(G.length>0){let se=!0;if(G.forEach(re=>{var V;if((V=re.context)!=null&&V.open&&!re.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:x?{preventScroll:!0}:qS(X)||GS(X)}}),r(!1,X)});return D.useEffect(()=>{if(!n||!h)return;f.current.__escapeKeyBubbles=P,f.current.__outsidePressBubbles=I;function X(T){r(!1,T)}const $=Wn(c);g&&$.addEventListener("keydown",Q),B&&$.addEventListener(y,j);let U=[];return E&&(Ut(l)&&(U=Bs(l)),Ut(c)&&(U=U.concat(Bs(c))),!Ut(a)&&a&&a.contextElement&&(U=U.concat(Bs(a.contextElement)))),U=U.filter(T=>{var G;return T!==((G=$.defaultView)==null?void 0:G.visualViewport)}),U.forEach(T=>{T.addEventListener("scroll",X,{passive:!0})}),()=>{g&&$.removeEventListener("keydown",Q),B&&$.removeEventListener(y,j),U.forEach(T=>{T.removeEventListener("scroll",X)})}},[f,c,l,a,g,B,y,n,r,E,h,P,I,Q,j]),D.useEffect(()=>{k.current=!1},[B,y]),D.useMemo(()=>h?{reference:{onKeyDown:Q,[uU[p]]:X=>{v&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,X.nativeEvent))}},floating:{onKeyDown:Q,[lU[y]]:()=>{k.current=!0}}}:{},[h,i,v,y,p,r,Q])}function Fh(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:i}=e,[o,a]=D.useState(null),l=((t=e.elements)==null?void 0:t.reference)||o,c=bz(e),f=Uo(),h=Qa((O,B)=>{O&&(m.current.openEvent=B),r==null||r(O,B)}),g=D.useRef(null),m=D.useRef({}),y=D.useState(()=>lO())[0],v=xh(),p=D.useCallback(O=>{const B=Ut(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;c.refs.setReference(B)},[c.refs]),E=D.useCallback(O=>{(Ut(O)||O===null)&&(g.current=O,a(O)),(Ut(c.refs.reference.current)||c.refs.reference.current===null||O!==null&&!Ut(O))&&c.refs.setReference(O)},[c.refs]),_=D.useMemo(()=>({...c.refs,setReference:E,setPositionReference:p,domReference:g}),[c.refs,E,p]),b=D.useMemo(()=>({...c.elements,domReference:l}),[c.elements,l]),x=D.useMemo(()=>({...c,refs:_,elements:b,dataRef:m,nodeId:i,floatingId:v,events:y,open:n,onOpenChange:h}),[c,i,v,y,n,h,_,b]);return Nt(()=>{const O=f==null?void 0:f.nodesRef.current.find(B=>B.id===i);O&&(O.context=x)}),D.useMemo(()=>({...c,context:x,refs:_,elements:b}),[c,_,b,x])}function DO(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,refs:a,elements:{floating:l,domReference:c}}=e,{enabled:f=!0,keyboardOnly:h=!0}=t,g=D.useRef(""),m=D.useRef(!1),y=D.useRef();return D.useEffect(()=>{if(!f)return;const p=Wn(l).defaultView||window;function E(){!n&&dn(c)&&c===Ki(Wn(c))&&(m.current=!0)}return p.addEventListener("blur",E),()=>{p.removeEventListener("blur",E)}},[l,c,n,f]),D.useEffect(()=>{if(!f)return;function v(p){(p.type==="referencePress"||p.type==="escapeKey")&&(m.current=!0)}return o.on("dismiss",v),()=>{o.off("dismiss",v)}},[o,f]),D.useEffect(()=>()=>{clearTimeout(y.current)},[]),D.useMemo(()=>f?{reference:{onPointerDown(v){let{pointerType:p}=v;g.current=p,m.current=!!(p&&h)},onMouseLeave(){m.current=!1},onFocus(v){var p;m.current||v.type==="focus"&&((p=i.current.openEvent)==null?void 0:p.type)==="mousedown"&&wh(i.current.openEvent,c)||r(!0,v.nativeEvent)},onBlur(v){m.current=!1;const p=v.relatedTarget,E=Ut(p)&&p.hasAttribute(Ps("focus-guard"))&&p.getAttribute("data-type")==="outside";y.current=setTimeout(()=>{on(a.floating.current,p)||on(c,p)||E||r(!1,v.nativeEvent)})}}}:{},[f,h,c,a,i,r])}function I1(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(i=>i?i[n]:null).concat(e).reduce((i,o)=>(o&&Object.entries(o).forEach(a=>{let[l,c]=a;if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof c=="function"){var f;(f=r.get(l))==null||f.push(c),i[l]=function(){for(var h,g=arguments.length,m=new Array(g),y=0;y<g;y++)m[y]=arguments[y];return(h=r.get(l))==null?void 0:h.map(v=>v(...m)).find(v=>v!==void 0)}}}else i[l]=c}),i),{})}}function Bh(e){e===void 0&&(e=[]);const t=e,n=D.useCallback(o=>I1(o,e,"reference"),t),r=D.useCallback(o=>I1(o,e,"floating"),t),i=D.useCallback(o=>I1(o,e,"item"),e.map(o=>o==null?void 0:o.item));return D.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])}let xO=!1;const N1="ArrowUp",kh="ArrowDown",Ya="ArrowLeft",Yl="ArrowRight";function Ph(e,t,n){return Math.floor(e/t)!==n}function Jl(e,t){return t<0||t>=e.current.length}function _n(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=t===void 0?{}:t;const a=e.current;let l=n;do{var c,f;l=l+(r?-o:o)}while(l>=0&&l<=a.length-1&&(i?i.includes(l):a[l]==null||(c=a[l])!=null&&c.hasAttribute("disabled")||((f=a[l])==null?void 0:f.getAttribute("aria-disabled"))==="true"));return l}function Rh(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function AO(e,t){return Rh(t,e===N1||e===kh,e===Ya||e===Yl)}function L1(e,t,n){return Rh(t,e===kh,n?e===Ya:e===Yl)||e==="Enter"||e==" "||e===""}function fU(e,t,n){return Rh(t,n?e===Ya:e===Yl,e===kh)}function dU(e,t,n){return Rh(t,n?e===Yl:e===Ya,e===N1)}function M1(e,t){return _n(e,{disabledIndices:t})}function SO(e,t){return _n(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function hU(e,t){const{open:n,onOpenChange:r,refs:i,elements:{domReference:o,floating:a}}=e,{listRef:l,activeIndex:c,onNavigate:f=()=>{},enabled:h=!0,selectedIndex:g=null,allowEscape:m=!1,loop:y=!1,nested:v=!1,rtl:p=!1,virtual:E=!1,focusItemOnOpen:_="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:x=!0,disabledIndices:O=void 0,orientation:B="vertical",cols:k=1,scrollItemIntoView:P=!0}=t,I=Gl(),Q=Uo(),j=Qa(f),X=D.useRef(_),$=D.useRef(g??-1),U=D.useRef(null),T=D.useRef(!0),G=D.useRef(j),se=D.useRef(!!a),re=D.useRef(!1),V=D.useRef(!1),te=Ho(O),le=Ho(n),ce=Ho(P),[ye,De]=D.useState(),Ce=Qa(function(J,Y,ge){ge===void 0&&(ge=!1);const he=J.current[Y.current];he&&(E?De(he.id):qi(he,{preventScroll:!0,sync:Cz()&&QS()?xO||re.current:!1}),requestAnimationFrame(()=>{const Pe=ce.current;Pe&&he&&(ge||!T.current)&&(he.scrollIntoView==null||he.scrollIntoView(typeof Pe=="boolean"?{block:"nearest",inline:"nearest"}:Pe))}))});Nt(()=>{document.createElement("div").focus({get preventScroll(){return xO=!0,!1}})},[]),Nt(()=>{h&&(n&&a?X.current&&g!=null&&(V.current=!0,j(g)):se.current&&($.current=-1,G.current(null)))},[h,n,a,g,j]),Nt(()=>{if(h&&n&&a)if(c==null){if(re.current=!1,g!=null)return;if(se.current&&($.current=-1,Ce(l,$)),!se.current&&X.current&&(U.current!=null||X.current===!0&&U.current==null)){let J=0;const Y=()=>{l.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Y),J++):($.current=U.current==null||L1(U.current,B,p)||v?M1(l,te.current):SO(l,te.current),U.current=null,j($.current))};Y()}}else Jl(l,c)||($.current=c,Ce(l,$,V.current),V.current=!1)},[h,n,a,c,g,v,l,B,p,j,Ce,te]),Nt(()=>{if(h&&se.current&&!a&&Q){var J,Y;const ge=Q.nodesRef.current,he=(J=ge.find(Fe=>Fe.id===I))==null||(Y=J.context)==null?void 0:Y.elements.floating,Pe=Ki(Wn(a)),me=ge.some(Fe=>Fe.context&&on(Fe.context.elements.floating,Pe));he&&!me&&he.focus({preventScroll:!0})}},[h,a,Q,I]),Nt(()=>{G.current=j,se.current=!!a}),Nt(()=>{n||(U.current=null)},[n]);const L=c!=null,ne=D.useMemo(()=>{function J(ge){if(!n)return;const he=l.current.indexOf(ge);he!==-1&&j(he)}return{onFocus(ge){let{currentTarget:he}=ge;J(he)},onClick:ge=>{let{currentTarget:he}=ge;return he.focus({preventScroll:!0})},...b&&{onMouseMove(ge){let{currentTarget:he}=ge;J(he)},onPointerLeave(ge){let{pointerType:he}=ge;!T.current||he==="touch"||($.current=-1,Ce(l,$),j(null),E||qi(i.floating.current,{preventScroll:!0}))}}}},[n,i,Ce,b,l,j,E]);return D.useMemo(()=>{if(!h)return{};const J=te.current;function Y(me){if(T.current=!1,re.current=!0,!le.current&&me.currentTarget===i.floating.current)return;if(v&&dU(me.key,B,p)){lr(me),r(!1,me.nativeEvent),dn(o)&&o.focus();return}const Fe=$.current,Se=M1(l,J),Re=SO(l,J);if(me.key==="Home"&&(lr(me),$.current=Se,j($.current)),me.key==="End"&&(lr(me),$.current=Re,j($.current)),k>1){const Be=$.current;if(me.key===N1){if(lr(me),Be===-1)$.current=Re;else if($.current=_n(l,{startingIndex:Be,amount:k,decrement:!0,disabledIndices:J}),y&&(Be-k<Se||$.current<0)){const ke=Be%k,ct=Re%k,Mt=Re-(ct-ke);ct===ke?$.current=Re:$.current=ct>ke?Mt:Mt-k}Jl(l,$.current)&&($.current=Be),j($.current)}if(me.key===kh&&(lr(me),Be===-1?$.current=Se:($.current=_n(l,{startingIndex:Be,amount:k,disabledIndices:J}),y&&Be+k>Re&&($.current=_n(l,{startingIndex:Be%k-k,amount:k,disabledIndices:J}))),Jl(l,$.current)&&($.current=Be),j($.current)),B==="both"){const ke=Math.floor(Be/k);me.key===Yl&&(lr(me),Be%k!==k-1?($.current=_n(l,{startingIndex:Be,disabledIndices:J}),y&&Ph($.current,k,ke)&&($.current=_n(l,{startingIndex:Be-Be%k-1,disabledIndices:J}))):y&&($.current=_n(l,{startingIndex:Be-Be%k-1,disabledIndices:J})),Ph($.current,k,ke)&&($.current=Be)),me.key===Ya&&(lr(me),Be%k!==0?($.current=_n(l,{startingIndex:Be,disabledIndices:J,decrement:!0}),y&&Ph($.current,k,ke)&&($.current=_n(l,{startingIndex:Be+(k-Be%k),decrement:!0,disabledIndices:J}))):y&&($.current=_n(l,{startingIndex:Be+(k-Be%k),decrement:!0,disabledIndices:J})),Ph($.current,k,ke)&&($.current=Be));const ct=Math.floor(Re/k)===ke;Jl(l,$.current)&&(y&&ct?$.current=me.key===Ya?Re:_n(l,{startingIndex:Be-Be%k-1,disabledIndices:J}):$.current=Be),j($.current);return}}if(AO(me.key,B)){if(lr(me),n&&!E&&Ki(me.currentTarget.ownerDocument)===me.currentTarget){$.current=L1(me.key,B,p)?Se:Re,j($.current);return}L1(me.key,B,p)?y?$.current=Fe>=Re?m&&Fe!==l.current.length?-1:Se:_n(l,{startingIndex:Fe,disabledIndices:J}):$.current=Math.min(Re,_n(l,{startingIndex:Fe,disabledIndices:J})):y?$.current=Fe<=Se?m&&Fe!==-1?l.current.length:Re:_n(l,{startingIndex:Fe,decrement:!0,disabledIndices:J}):$.current=Math.max(Se,_n(l,{startingIndex:Fe,decrement:!0,disabledIndices:J})),Jl(l,$.current)?j(null):j($.current)}}function ge(me){_==="auto"&&qS(me.nativeEvent)&&(X.current=!0)}function he(me){X.current=_,_==="auto"&&GS(me.nativeEvent)&&(X.current=!0)}const Pe=E&&n&&L&&{"aria-activedescendant":ye};return{reference:{...Pe,onKeyDown(me){T.current=!1;const Fe=me.key.indexOf("Arrow")===0;if(E&&n)return Y(me);if(!n&&!x&&Fe)return;const Se=Fe||me.key==="Enter"||me.key.trim()==="",Re=AO(me.key,B),Be=fU(me.key,B,p);if(Se&&(U.current=v&&Re?null:me.key),v){Be&&(lr(me),n?($.current=M1(l,J),j($.current)):r(!0,me.nativeEvent));return}Re&&(g!=null&&($.current=g),lr(me),!n&&x?r(!0,me.nativeEvent):Y(me),n&&j($.current))},onFocus(){n&&j(null)},onPointerDown:he,onMouseDown:ge,onClick:ge},floating:{"aria-orientation":B==="both"?void 0:B,...Pe,onKeyDown:Y,onPointerMove(){T.current=!0}},item:ne}},[o,i,ye,te,le,l,h,B,p,E,n,L,v,g,x,m,k,y,_,j,r,ne])}function Xl(e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}function Th(e,t){t===void 0&&(t={});const{open:n,floatingId:r}=e,{enabled:i=!0,role:o="dialog"}=t,a=xh();return D.useMemo(()=>{const l={id:r,role:o};return i?o==="tooltip"?{reference:{"aria-describedby":n?r:void 0},floating:l}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?r:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[i,o,n,r,a])}function OO(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let a=0,l=o-1;a<o;l=a++){const[c,f]=t[a]||[0,0],[h,g]=t[l]||[0,0];f>=r!=g>=r&&n<=(h-c)*(r-f)/(g-f)+c&&(i=!i)}return i}function pU(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function gU(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,a=null,l=null,c=performance.now();function f(g,m){const y=performance.now(),v=y-c;if(a===null||l===null||v===0)return a=g,l=m,c=y,null;const p=g-a,E=m-l,b=Math.sqrt(p*p+E*E)/v;return a=g,l=m,c=y,b}const h=g=>{let{x:m,y,placement:v,elements:p,onClose:E,nodeId:_,tree:b}=g;return function(O){function B(){clearTimeout(i),E()}if(clearTimeout(i),!p.domReference||!p.floating||v==null||m==null||y==null)return;const{clientX:k,clientY:P}=O,I=[k,P],Q=x1(O),j=O.type==="mouseleave",X=on(p.floating,Q),$=on(p.domReference,Q),U=p.domReference.getBoundingClientRect(),T=p.floating.getBoundingClientRect(),G=v.split("-")[0],se=m>T.right-T.width/2,re=y>T.bottom-T.height/2,V=pU(I,U),te=T.width>U.width,le=T.height>U.height,ce=(te?U:T).left,ye=(te?U:T).right,De=(le?U:T).top,Ce=(le?U:T).bottom;if(X&&(o=!0,!j))return;if($&&(o=!1),$&&!j){o=!0;return}if(j&&Ut(O.relatedTarget)&&on(p.floating,O.relatedTarget)||b&&Ga(b.nodesRef.current,_).some(J=>{let{context:Y}=J;return Y==null?void 0:Y.open}))return;if(G==="top"&&y>=U.bottom-1||G==="bottom"&&y<=U.top+1||G==="left"&&m>=U.right-1||G==="right"&&m<=U.left+1)return B();let L=[];switch(G){case"top":L=[[ce,U.top+1],[ce,T.bottom-1],[ye,T.bottom-1],[ye,U.top+1]];break;case"bottom":L=[[ce,T.top+1],[ce,U.bottom-1],[ye,U.bottom-1],[ye,T.top+1]];break;case"left":L=[[T.right-1,Ce],[T.right-1,De],[U.left+1,De],[U.left+1,Ce]];break;case"right":L=[[U.right-1,Ce],[U.right-1,De],[T.left+1,De],[T.left+1,Ce]];break}function ne(J){let[Y,ge]=J;switch(G){case"top":{const he=[te?Y+t/2:se?Y+t*4:Y-t*4,ge+t+1],Pe=[te?Y-t/2:se?Y+t*4:Y-t*4,ge+t+1],me=[[T.left,se||te?T.bottom-t:T.top],[T.right,se?te?T.bottom-t:T.top:T.bottom-t]];return[he,Pe,...me]}case"bottom":{const he=[te?Y+t/2:se?Y+t*4:Y-t*4,ge-t],Pe=[te?Y-t/2:se?Y+t*4:Y-t*4,ge-t],me=[[T.left,se||te?T.top+t:T.bottom],[T.right,se?te?T.top+t:T.bottom:T.top+t]];return[he,Pe,...me]}case"left":{const he=[Y+t+1,le?ge+t/2:re?ge+t*4:ge-t*4],Pe=[Y+t+1,le?ge-t/2:re?ge+t*4:ge-t*4];return[...[[re||le?T.right-t:T.left,T.top],[re?le?T.right-t:T.left:T.right-t,T.bottom]],he,Pe]}case"right":{const he=[Y-t,le?ge+t/2:re?ge+t*4:ge-t*4],Pe=[Y-t,le?ge-t/2:re?ge+t*4:ge-t*4],me=[[re||le?T.left+t:T.right,T.top],[re?le?T.left+t:T.right:T.left+t,T.bottom]];return[he,Pe,...me]}}}if(!OO([k,P],L)){if(o&&!V)return B();if(!j&&r){const J=f(O.clientX,O.clientY);if(J!==null&&J<.1)return B()}OO([k,P],ne([m,y]))?!o&&r&&(i=window.setTimeout(B,40)):B()}}};return h.__options={blockPointerEvents:n},h}const $1=D.createContext({getItemProps:()=>({}),activeIndex:null,setActiveIndex:()=>{},isOpen:!1}),mU={menu:"_menu_1hdnv_1",button:"_button_1hdnv_8"},{button:vU,menu:yU}=mU,wU=D.forwardRef(function({children:t,buttonLabel:n,...r},i){const[o,a]=D.useState(!1),[l,c]=D.useState(null),f=D.useRef([]),h=D.useRef([]),g=D.useContext($1),m=Uo(),y=Gz(),v=_O(),{floatingStyles:p,refs:E,context:_}=Fh({nodeId:y,open:o,onOpenChange:a,placement:"bottom-start",middleware:[dh({mainAxis:4,alignmentAxis:0}),kS(),b1()],whileElementsMounted:gh}),b=T1(_,{event:"mousedown",toggle:!0}),x=Th(_,{role:"menu"}),O=Oh(_,{bubbles:!0}),B=hU(_,{listRef:f,activeIndex:l,onNavigate:c}),{getReferenceProps:k,getFloatingProps:P,getItemProps:I}=Bh([b,x,O,B]);return D.useEffect(()=>{if(!m)return;function Q(){a(!1)}return m.events.on("click",Q),()=>{m.events.off("click",Q)}},[m,y]),D.useEffect(()=>{o&&m&&m.events.emit("menuopen",{nodeId:y})},[m,o,y]),Ve(Qz,{id:y,children:[W("button",{ref:Xl([E.setReference,v.ref,i]),tabIndex:0,"aria-expanded":o,className:vU,...k(g.getItemProps({...r,onFocus(Q){var j;(j=r.onFocus)==null||j.call(r,Q)}})),children:n}),W($1.Provider,{value:{activeIndex:l,setActiveIndex:c,getItemProps:I,isOpen:o},children:W(sU,{elementsRef:f,labelsRef:h,children:o&&W(Sh,{children:W(R1,{context:_,children:W("div",{ref:E.setFloating,className:yU,style:p,...P(),children:t})})})})})]})});D.forwardRef(function(t,n){return W(Yz,{children:W(wU,{...t,ref:n})})});const bU={item:"_item_2hnsa_1"},{item:_U}=bU;D.forwardRef(function({children:t,disabled:n,element:r,label:i,...o},a){const l=D.useContext($1),c=_O({label:n?null:i}),f=Uo(),h=c.index===l.activeIndex,g={...o,ref:Xl([c.ref,a]),className:_U,tabIndex:h?0:-1,role:"button",...l.getItemProps({onClick(m){var y;(y=o.onClick)==null||y.call(o,m),f==null||f.events.emit("click")},onFocus(m){var y;(y=o.onFocus)==null||y.call(o,m)}})};return r&&D.isValidElement(r)?D.cloneElement(r,g):W("button",{...g,type:"button",disabled:n,children:i||t})});const CU={radio:"_radio_1lyat_1",input:"_input_1lyat_8"},{radio:EU,input:DU}=CU;D.forwardRef(function({children:t,className:n,...r},i){return Ve("label",{className:No([EU,n]),children:[W("input",{...r,className:DU,type:"radio",ref:i}),W("span",{children:t})]})});const Ih={"stars-inactive":"_stars-inactive_1axb3_1","stars-active":"_stars-active_1axb3_1","star-inactive":"_star-inactive_1axb3_6","star-active":"_star-active_1axb3_6",root:"_root_1axb3_10"};Ih["star-active"],Ih["star-inactive"],Ih["stars-active"],Ih["stars-inactive"];const ple={spacer:"_spacer_1fr9r_1"},mle={spoiler:"_spoiler_1mxys_1"},xU=({initialOpen:e=!1,placement:t="top-start",open:n,onOpenChange:r,popover:i=!1,noFlip:o=!1,returnFocus:a=!0}={})=>{const[l,c]=D.useState(e),f=n??l,h=r??c,g=Fh({placement:t,open:f,onOpenChange:h,whileElementsMounted:gh,middleware:[dh(5),!o&&kS({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),b1({padding:5})]}),m=g.context,y=Jz(m,{handleClose:gU(),move:!1,enabled:!i}),v=T1(m,{enabled:i}),p=DO(m,{enabled:n==null}),E=Oh(m),_=Th(m,{role:"tooltip"}),b=Bh([y,v,p,E,_]);return D.useMemo(()=>({open:f,returnFocus:a,setOpen:h,...b,...g}),[f,h,b,g,a])},FO=D.createContext(null),BO=()=>{const e=D.useContext(FO);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},kO=({children:e,...t})=>{const n=xU(t);return W(FO.Provider,{value:n,children:e})},AU={popover:"_popover_1ocis_1"},PO=D.forwardRef(function({style:t,...n},r){const{context:i,refs:o,returnFocus:a,getFloatingProps:l}=BO(),c=Xl([o.setFloating,r]);return i.open?W(Sh,{children:W(R1,{context:i,modal:!1,returnFocus:a,children:W("div",{ref:c,className:AU.popover,style:{...i.floatingStyles,...t},...l(n)})})}):null}),SU={button:"_button_rdrky_1"},{button:OU}=SU,RO=D.forwardRef(function({children:t,...n},r){const{open:i,refs:o,getReferenceProps:a}=BO(),{anchor:l,...c}=n;if(l&&D.isValidElement(l))return D.cloneElement(l,a({ref:Xl([o.setReference,r,l.ref]),...l.props,...c,"aria-expanded":i,onClick(g){g.preventDefault(),g.stopPropagation()}}));const f=t.ref,h=Xl([o.setReference,r,f]);return W("button",{className:OU,ref:h,"aria-expanded":i,...a({...c,onClick(g){g.preventDefault(),g.stopPropagation()}}),children:t})}),_le={tooltip:"_tooltip_ia50n_1",text:"_text_ia50n_16"},Ele={tabs:"_tabs_1wiw0_1"},Ole={disabled:"_disabled_1sb5m_1",selected:"_selected_1sb5m_1",tab:"_tab_1sb5m_1",text:"_text_1sb5m_57"},Rs={selected:"_selected_ln985_1",selectable:"_selectable_ln985_1",delete:"_delete_ln985_29",element:"_element_ln985_47",image:"_image_ln985_55",wrapper:"_wrapper_ln985_63",loader:"_loader_ln985_70"},FU=({attributes:e,children:t,element:n})=>{const r=Or(),i=ee.findPath(r,n),o=Ud();return Ve("span",{...e,className:Rs.element,children:[t,W("span",{contentEditable:!1,className:No([Rs.wrapper,o?Rs.selected:Rs.selectable]),children:n.url&&!n.isUploading?Ve(Qs,{children:[W("img",{src:n.url,className:Rs.image}),o&&W(qv,{className:Rs.delete,onClick:()=>K.removeNodes(r,{at:i})})]}):W("span",{className:Rs.loader,children:W(e1,{height:115})})})]})},BU=({text:e,url:t,onCancel:n,onSubmit:r})=>{const[i,o]=D.useState(e),[a,l]=D.useState(t),c=()=>{o(""),l("")},f=()=>{c(),n()},h=g=>{g.preventDefault(),!(!i||!a)&&(r({text:i,url:a}),c())};return D.useEffect(()=>o(e),[e]),D.useEffect(()=>l(t),[t]),{textValue:i,urlValue:a,onCancelHandler:f,onSubmitHandler:h,setText:o,setUrl:l}},Xr={dialog:"_dialog_1p5t1_1",submit:"_submit_1p5t1_11",cancel:"_cancel_1p5t1_11",form:"_form_1p5t1_15",field:"_field_1p5t1_22",label:"_label_1p5t1_28",input:"_input_1p5t1_35",buttons:"_buttons_1p5t1_80"},TO=({submitButtonText:e,text:t="",url:n="",onCancel:r,onSubmit:i})=>{const{t:o}=zn(),{textValue:a,urlValue:l,onCancelHandler:c,onSubmitHandler:f,setText:h,setUrl:g}=BU({text:t,url:n,onCancel:r,onSubmit:i});return W("div",{className:Xr.dialog,children:Ve("form",{className:Xr.form,onSubmit:f,children:[Ve("div",{className:Xr.field,children:[W("label",{className:Xr.label,children:o("Text")}),W("input",{className:Xr.input,value:a,onChange:m=>h(m.target.value),placeholder:o("Text to display")})]}),Ve("div",{className:Xr.field,children:[W("label",{className:Xr.label,children:o("Link")}),W("input",{className:Xr.input,value:l,onChange:m=>g(m.target.value),placeholder:o("Paste or type a link")})]}),Ve("div",{className:Xr.buttons,children:[W(Zv,{className:Xr.cancel,onClick:c,type:"reset",children:o("Cancel")}),W(Zv,{className:Xr.submit,disabled:!a||!l,color:"primary",type:"submit",children:e||o("Insert")})]})]})})},kU=()=>{const e=Wi(),{selection:t}=e,[n,r]=D.useState(""),[i,o]=D.useState(""),a=Gv(e),l=a&&FA(e,{at:e.selection}),[c,f]=D.useState(!1),h=y=>f(y),g=()=>{ee.focus(e)},m=({text:y,url:v})=>{a?xA(e,v,y):Vd(e,v,y),f(!1)};return D.useEffect(()=>{if(!t)return;const y=C.string(e,t);if(a){const v=RM(e),{text:p,url:E}=v;p.includes(y)?r(p):r(y),o(E)}else q.isExpanded(t)?(r(y),o("")):(r(""),o(""))},[t,a]),D.useEffect(()=>{c||ee.focus(e)},[e,c]),{isActive:a,isDisabled:l,isOpen:c,text:n,url:i,onCancel:g,onOpenChange:h,onSubmit:m}},j1={button:"_button_1559b_1",active:"_active_1559b_1",icon:"_icon_1559b_36"},PU=()=>{const{t:e}=zn(),{isActive:t,isDisabled:n,isOpen:r,text:i,url:o,onCancel:a,onOpenChange:l,onSubmit:c}=kU();return Ve(kO,{open:r,placement:"right-end",popover:!0,onOpenChange:l,returnFocus:!1,children:[W(RO,{anchor:W("button",{className:t?j1.active:j1.button,disabled:n,title:e("Link"),children:Os("link",j1.icon)()})}),W(PO,{children:W(TO,{text:i,url:o,onCancel:a,onSubmit:c})})]})},Zl={selected:"_selected_10kig_1",selectable:"_selectable_10kig_1",delete:"_delete_10kig_29",preview:"_preview_10kig_47","no-pointer":"_no-pointer_10kig_56"},RU=({children:e,media:t,selected:n,onDelete:r})=>{const i=t?xS[t.mediaType]:null;return i?Ve("span",{className:No([Zl.preview,n?Zl.selected:Zl.selectable]),children:[e,W("span",{className:Zl["no-pointer"],children:W(i,{media:t})}),n&&W(qv,{className:Zl.delete,onClick:r})]}):null},Ts={button:"_button_1ka0a_1",container:"_container_1ka0a_36",link:"_link_1ka0a_56",separator:"_separator_1ka0a_69",icon:"_icon_1ka0a_79"},TU=({url:e,onDelete:t,onEdit:n})=>{const{t:r}=zn();return Ve("span",{className:Ts.container,contentEditable:!1,children:[W("a",{className:Ts.link,href:e,target:"_blank",rel:"noopener noreferrer",tabIndex:-1,children:e}),W("span",{className:Ts.separator}),W("button",{className:Ts.button,onClick:n,title:r("Edit"),children:W(kM,{className:Ts.icon})}),W("button",{className:Ts.button,onClick:t,title:r("Remove"),children:W(DM,{className:Ts.icon})})]})},IU=({children:e,context:t,disableFocus:n=!1,interactions:r,isOpen:i,refs:o,returnFocus:a=!1})=>{var h;const{getFloatingProps:l}=r,{middlewareData:c,floatingStyles:f}=t;return W(Sh,{children:i&&W(R1,{context:t,modal:!1,disabled:n,returnFocus:a,children:W("div",{ref:o.setFloating,style:{...f,visibility:(h=c.hide)!=null&&h.referenceHidden?"hidden":"visible"},...l(),children:e})})})},NU=({elementContext:e,isOpen:t=!1,placement:n="bottom-start",onOpenChange:r}={})=>{const i=Wi(),o=D.useRef(),{context:a,refs:l}=Fh({middleware:[dh(5),Zj(),b1({crossAxis:!0,boundary:o.current,elementContext:e})],open:t,placement:n,strategy:"fixed",onOpenChange:r,whileElementsMounted:gh}),c=Th(a,{role:"menu"}),f=Oh(a),h=T1(a,{enabled:!0}),g=DO(a),m=Bh([g,c,f,h]);return D.useEffect(()=>{o.current=ee.toDOMNode(i,i)},[i]),{context:a,refs:l,interactions:m}},LU=fi()(e=>({forum:"",thread:"",init({forum:t,thread:n}){e(bt(r=>{r.forum=t,r.thread=n}))}})),IO=di(LU),MU=({element:e})=>{const[t,n]=D.useState(!1),[r,i]=D.useState(!1),o=Wi(),a=IO.use.forum(),{url:l,view:c}=e,f=de.string(e),h=ee.findPath(o,e),{data:g}=UD({forum:a,url:l}),m=g?xS[g.mediaType]:null,y=()=>n(!0),v=()=>Qv(o,{at:h}),p=({text:b,url:x})=>{xA(o,x,b),n(!1),i(!1)},E=()=>{n(!1),i(!1)};D.useEffect(()=>{r||ee.focus(o)},[o,r]);const _=()=>K.removeNodes(o,{at:h});return D.useEffect(()=>{g&&ER.includes(g.mediaType)&&K.setNodes(o,{view:"embed"},{at:h})},[g]),{editor:o,isEditing:t,isOpen:r,media:g,RichMediaView:m,text:f,url:l,view:c,onCancelHandler:E,onDeleteHandler:v,onEditHandler:y,onUpdateHandler:p,removeElement:_,setOpen:i}},$U={block:"_block_865k6_1"},jU=({attributes:e,element:t,children:n})=>{const{t:r}=zn(),i=Ud(),{isEditing:o,isOpen:a,text:l,media:c,url:f,view:h,onCancelHandler:g,onDeleteHandler:m,onEditHandler:y,onUpdateHandler:v,removeElement:p,setOpen:E}=MU({element:t}),{context:_,interactions:b,refs:x}=NU({onOpenChange:E,isOpen:a}),{getReferenceProps:O}=b;return Ve(Qs,{children:[h==="embed"&&c?W("span",{className:$U.block,...e,children:W("span",{...O(),ref:x.setReference,children:Ve(RU,{selected:i,media:c,onDelete:p,children:[f!==l&&W("a",{href:f,children:l}),n]})})}):W("a",{href:f,...e,...O(),ref:x.setReference,children:n}),W(IU,{context:_,disableFocus:!o,interactions:b,isOpen:a,refs:x,children:o?W(TO,{submitButtonText:r("Save"),text:l,url:f,onCancel:g,onSubmit:v}):W(TU,{url:f,onEdit:y,onDelete:m})})]})},NO={selected:"_selected_12oyo_1",mention:"_mention_12oyo_1"},zU=({attributes:e,children:t,element:n})=>{const r=Ud(),i=qL();return Ve("span",{...e,className:i&&r?NO.selected:NO.mention,contentEditable:!1,children:[n.name,t]})},LO={default:"_default_1alzx_1",active:"_active_1alzx_12"},UU=({attributes:e,children:t})=>{const n=Or(),r=Wd(n)?LO.active:LO.default;return W("span",{...e,onClick:i=>i.preventDefault(),className:r,children:t})},Ja={selected:"_selected_4roo0_1",selectable:"_selectable_4roo0_1",delete:"_delete_4roo0_29",video:"_video_4roo0_47",container:"_container_4roo0_57",wrapper:"_wrapper_4roo0_63"},HU=({attributes:e,children:t,element:n,forum:r})=>{const i=Wi(),o=Ud(),{url:a}=n,l=ee.findPath(i,n),{data:c}=UD({forum:r,url:a});return Ve("span",{...e,className:Ja.container,children:[t,Ve("span",{contentEditable:!1,className:No([Ja.wrapper,o?Ja.selected:Ja.selectable]),children:[W("video",{className:Ja.video,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:c==null?void 0:c.thumbnailUrl}),o&&W(qv,{className:Ja.delete,onClick:()=>K.removeNodes(i,{at:l})})]})]})},WU={quote:"_quote_11ucn_1"},VU=({attributes:e,children:t,element:n,forum:r})=>{const i={"block-quote":()=>W("blockquote",{className:WU.quote,...e,children:t}),link:()=>W(jU,{element:n,attributes:e,children:t}),spoiler:()=>W(UU,{attributes:e,children:t}),image:()=>W(FU,{element:n,attributes:e,children:t}),mention:()=>W(zU,{attributes:e,element:n,children:t}),video:()=>W(HU,{element:n,attributes:e,forum:r,children:t}),default:()=>W("div",{...e,children:t})};return i[n.type]??i.default},KU=({attributes:e,children:t,element:n,forum:r})=>VU({attributes:e,children:t,element:n,forum:r})(),qU={button:"_button_12m5a_1"},GU=({title:e,open:t})=>W(Qs,{children:W("button",{className:qU.button,onClick:n=>{n.preventDefault(),t()},title:e,children:Os("image")()})}),QU={code:"_code_vr1vh_1"},YU=({attributes:e,children:t,leaf:n})=>(n.bold&&(t=W("b",{children:t})),n.code&&(t=W("code",{className:QU.code,children:t})),n.italic&&(t=W("i",{children:t})),n.underline&&(t=W("u",{children:t})),n.strikethrough&&(t=W("s",{children:t})),W("span",{...e,children:t})),z1={button:"_button_1559b_1",active:"_active_1559b_1",icon:"_icon_1559b_36"},ec=({format:e,title:t})=>{const n=Wi(),r=wA(n,e)?z1.active:z1.button;return W("button",{className:r,onClick:i=>{i.preventDefault(),yA(n,e)},title:t,children:Os(e,z1.icon)()})},JU=()=>{const e=Wi();return{onClick:n=>{n.preventDefault(),CA(e)}}},U1={button:"_button_1559b_1",active:"_active_1559b_1",icon:"_icon_1559b_36"},XU=()=>{const e=Wi(),{onClick:t}=JU(),{t:n}=zn(),r=Wd(e)?U1.active:U1.button;return W("button",{className:r,onClick:t,title:n("Spoiler"),children:Os("spoiler",U1.icon)()})},ZU={button:"_button_12m5a_1"},eH=D.forwardRef(function({title:t,onClick:n},r){return W("button",{ref:r,className:ZU.button,onClick:n,title:t,children:Os("gifPicker")()})}),MO="Trending",$O={LEFT:[{title:MO,gifUrl:"https://media.giphy.com/media/WsV5AoDeKePw4/200w_d.gif",width:200,height:113},{title:"OMG",gifUrl:"https://media.giphy.com/media/5VKbvrjxpVJCM/200w_d.gif",width:200,height:160},{title:"No",gifUrl:"https://media.giphy.com/media/z5WtAAaFpnIgU/200w_d.gif",width:200,height:150},{title:"Slow clap",gifUrl:"https://media.giphy.com/media/58FMN3DmsmYta2m0aB/200w_d.gif",width:200,height:150},{title:"Love",gifUrl:"https://media.giphy.com/media/Xf7g5BjIIMun8fR14k/200w_d.gif",width:200,height:199},{title:"Eye roll",gifUrl:"https://media.giphy.com/media/sbwjM9VRh0mLm/200w_d.gif",width:200,height:142}],RIGHT:[{title:"Applause",gifUrl:"https://media.giphy.com/media/fnK0jeA8vIh2QLq3IZ/200w_d.gif",width:200,height:201},{title:"Agree",gifUrl:"https://media.giphy.com/media/3og0ILzGlzG26yNINq/200w_d.gif",width:200,height:166},{title:"Ok",gifUrl:"https://media.giphy.com/media/mgqefqwSbToPe/200w_d.gif",width:200,height:150},{title:"Thumbs up",gifUrl:"https://media.giphy.com/media/j5QcmXoFWl4Q0/200w_d.gif",width:200,height:125},{title:"Thumbs down",gifUrl:"https://media.giphy.com/media/KUrgyFtn9bQNW/200w_d.gif",width:200,height:128},{title:"Thank you",gifUrl:"https://media.giphy.com/media/QAsBwSjx9zVKoGp9nr/200w_d.gif",width:200,height:144}]},Nh={categories:"_categories_lunsx_1",column:"_column_lunsx_16",image:"_image_lunsx_22",title:"_title_lunsx_54"},tH=({onCategoryClick:e})=>{const{t}=zn(),n=(r,i)=>{r.code===Li.ENTER&&e(i)};return W("div",{className:Nh.categories,children:Object.keys($O).map(r=>W("div",{className:Nh.column,children:$O[r].map(i=>Ve("div",{className:Nh.image,"data-action":"gif-picker-category","data-tag":i.title,tabIndex:0,"aria-label":t("Collection of animated images in the category of %(category)s",{category:i.title}),onClick:()=>e(i),onKeyDown:o=>n(o,i),children:[W("img",{src:i.gifUrl,style:{height:`${i.height}px`,width:`${i.width}px`}}),W("div",{className:Nh.title,children:W("b",{children:i.title})})]},i.title))},r))})},nH=e=>{const t=[],n=[];let r=0,i=0;return e.forEach(o=>{const a=Number.parseInt(o.fixedWidth200.height,10)+10;i>=r?(t.push(o),r+=a):(n.push(o),i+=a)}),[t,n]},rH=({gifs:e,onEndReached:t})=>{const[n,r]=D.useState([]),i=D.useRef(null),o=yy(i);return D.useEffect(()=>{r(nH(e))},[e]),D.useEffect(()=>{o&&t()},[o]),{columns:n,observerRef:i}},Lh={gifs:"_gifs_lkt4v_1",columns:"_columns_lkt4v_12",column:"_column_lkt4v_12",image:"_image_lkt4v_29"},iH=({gifs:e,onItemClick:t,onEndReached:n})=>{const{columns:r,observerRef:i}=rH({gifs:e,onItemClick:t,onEndReached:n}),o=l=>t(l.default.url),a=(l,c)=>{l.code===Li.ENTER&&o(c)};return Ve("div",{className:Lh.gifs,children:[W("div",{className:Lh.columns,children:r.map((l,c)=>W("div",{className:Lh.column,children:l.map(f=>W("div",{className:Lh.image,"data-tag":f.default.url,tabIndex:0,"aria-label":f.title,onClick:()=>o(f),onKeyDown:h=>a(h,f),children:W("img",{src:f.fixedWidth200.url,title:f.title,style:{height:`${f.fixedWidth200.height}px`,width:`${f.fixedWidth200.width}px`}})},f.id))},c))}),W("div",{ref:i})]})},oH=({value:e,onChange:t})=>{const[n,r]=D.useState(e);return D.useEffect(()=>{const o=setTimeout(()=>{t(n)},250);return()=>clearTimeout(o)},[n]),D.useEffect(()=>{r(e)},[e]),{innerValue:n,handleOnChange:o=>r(o.target.value)}},jO={searchbox:"_searchbox_1ftd7_1",input:"_input_1ftd7_6"},sH=({className:e,placeholder:t,value:n,onChange:r})=>{const{innerValue:i,handleOnChange:o}=oH({value:n,onChange:r});return W("div",{className:No(jO.searchbox,e),children:W("input",{className:jO.input,placeholder:t,value:i,onChange:o})})},aH=[[{width:200,height:204},{width:200,height:112},{width:200,height:180},{width:200,height:240}],[{width:200,height:240},{width:200,height:180},{width:200,height:112},{width:200,height:204}]],H1={skeleton:"_skeleton_drbub_12",image:"_image_drbub_27",pulse:"_pulse_drbub_1",column:"_column_drbub_35"},uH=()=>W("div",{className:H1.skeleton,children:aH.map((e,t)=>W("div",{className:H1.column,children:e.map((n,r)=>W("div",{className:H1.image,style:{height:`${n.height}px`,width:`${n.width}px`}},r))},t))}),lH=({forum:e,isEnabled:t,query:n})=>{const r=[Wm.gifSearch,e,n];return PE({queryKey:r,enabled:t,refetchOnWindowFocus:!1,queryFn:({pageParam:i=1})=>x8({forum:e,page:i,query:n}),getNextPageParam:(i,o)=>o.length+1,select:i=>({...i,gifs:i.pages.flat()})})},cH=({forum:e})=>{const[t,n]=D.useState(!1),[r,i]=D.useState(""),[o,a]=D.useState(null),l=Or(),{data:c,isFetching:f,isFetchingNextPage:h,fetchNextPage:g}=lH({query:r,forum:e,isEnabled:!!(t&&(o||r))}),{gifs:m=[]}=c||{},y=_=>{LM(l,_),n(!1)},v=_=>n(_),p=_=>{a(_),i(_.title===MO?"":_.title)},E=_=>{a(null),i(_)};return D.useEffect(()=>{t||(a(null),i(""))},[t]),{query:r,gifs:m,isFetching:f&&!h,isOpen:t,shouldDisplayGifs:!!(o||r),fetchNextPage:g,insertHandler:y,onOpenChange:v,handleCategoryChange:p,handleQueryChange:E,setCategory:a,setQuery:i}},fH=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 581.5 67.1",...e},D.createElement("path",{fill:"currentColor",d:"M327.2 26.7h29.7v25.1c0 1.4-.4 2.5-1.2 3.6-2.3 3.2-5.3 5.4-8.8 6.9-10.6 4.2-21.3 4.5-31.9.2-7.5-3-12.6-8.6-15.3-16.2-3.3-9.3-3.1-18.6 1.1-27.7 3.9-8.3 10.5-13.5 19.2-16 6.1-1.7 12.4-1.8 18.7-.7 5.6 1 11.6 4.5 15.9 9.1-1.6 1.6-3.2 3.2-4.8 4.9L345 21c-.7-.5-1.2-.9-1.6-1.2-5.2-3.9-11-5-17.3-3.7-5 1.1-8.6 4.2-10.3 9-1.9 5.4-2 10.9.2 16.3 2.3 5.6 6.6 8.6 12.6 9.2 3.6.3 7.1 0 10.5-1.3 1.1-.4 2.2-1 3.3-1.5v-7.9h-15.2c-.1-4.3 0-8.7 0-13.2m126.4 37.2h17.1V41.3h21.9v22.6h16.9V3.3h-17c-.1 7.7.1 15.3-.1 22.8h-21.8V3.3h-17.1v60.6zm-42.6-.1V47.5c4 0 8 .1 12 0 2.7-.1 5.3-.4 7.9-1 5.1-1.2 9.4-3.7 12.5-8 3-4.2 4.1-8.9 3.9-13.9-.2-6.5-2.5-12-7.6-16.1-4.4-3.6-9.6-5.1-15.1-5.2h-31.1v60.6H411m-.3-46h12.1c5.5 0 7.9 4.7 7.2 9-.6 3.6-2.8 5.9-6.3 6.1-4.2.2-8.5 0-13 0V17.9zm136.1 6c-4.3-7.2-8.4-13.9-12.5-20.7h-19.8c7.9 12.4 15.7 24.4 23.5 36.6v23.9h17.1v-24c8-11.8 24.4-36.2 24.6-36.5h-19.8c-4.3 6.8-8.6 13.6-13.1 20.7m-164.4 40V3.1h-17.1v60.8h17.1"}),D.createElement("path",{fill:"currentColor",opacity:.6,d:"M1.7 19.3H15c6.3 0 9.9 4.1 9.9 8.9 0 4.8-3.6 8.9-9.9 8.9H7v10.6H1.7V19.3zm12.5 4.4H7v9.1h7.2c3 0 5.2-1.8 5.2-4.5s-2.2-4.6-5.2-4.6zm29.1-4.9c9.1 0 15.4 6.2 15.4 14.7s-6.4 14.7-15.4 14.7c-9.1 0-15.4-6.2-15.4-14.7s6.3-14.7 15.4-14.7zm0 4.4c-6.1 0-10 4.4-10 10.3 0 5.8 3.9 10.3 10 10.3s10-4.4 10-10.3-3.9-10.3-10-10.3zm36.8 3.5-5.8 21h-5.7L60 19.3h5.9l5.9 21.9L78 19.3h4.2l6.2 21.9 5.8-21.9h5.9l-8.6 28.5H86l-5.9-21.1zm23.7-7.4h20.7v4.4h-15.4v7.4h15.1v4.4h-15.1v7.9h15.4v4.4h-20.7V19.3zm36.6 17.8h-5.2v10.6h-5.3V19.3h13.3c6 0 9.9 3.7 9.9 8.9 0 5.1-3.5 7.8-7.2 8.4l7.4 11.2h-6.1l-6.8-10.7zm2-13.4h-7.2v9.1h7.2c3 0 5.2-1.8 5.2-4.5s-2.2-4.6-5.2-4.6zm15.9-4.4H179v4.4h-15.4v7.4h15.1v4.4h-15.1v7.9H179v4.4h-20.7V19.3zm26.1 0h11.2c9.4 0 15.8 5.9 15.8 14.3s-6.4 14.2-15.8 14.2h-11.2V19.3zm11.2 24.1c6.6 0 10.4-4.4 10.4-9.8 0-5.5-3.6-9.9-10.4-9.9h-5.9v19.7h5.9zm32.6-24.1H243c5.5 0 8.6 3.2 8.6 7.3 0 3.6-2.4 6-5.2 6.5 3.2.5 5.8 3.5 5.8 7 0 4.4-3.1 7.7-8.8 7.7h-15.3V19.3zm13.7 11.8c2.7 0 4.3-1.5 4.3-3.7s-1.5-3.7-4.3-3.7h-8.5v7.4h8.5zm.3 12.3c2.9 0 4.6-1.5 4.6-4 0-2.1-1.6-3.9-4.6-3.9h-8.7v7.9h8.7zm22.5-7.5L253 19.3h6.1l8.3 12.2 8.2-12.2h6.1L270 35.9v11.8h-5.3V35.9z"})),W1={root:"_root_4nri8_1",popout:"_popout_4nri8_5",searchbox:"_searchbox_4nri8_19","powered-by":"_powered-by_4nri8_23"},dH=({forum:e})=>{const{t}=zn(),{query:n,gifs:r,isFetching:i,isOpen:o,shouldDisplayGifs:a,fetchNextPage:l,handleCategoryChange:c,handleQueryChange:f,insertHandler:h,onOpenChange:g}=cH({forum:e});return Ve(kO,{open:o,placement:"bottom-start",popover:!0,noFlip:!0,onOpenChange:g,children:[W(RO,{anchor:W(eH,{title:t("GIF")})}),W(PO,{children:Ve("div",{className:W1.popout,children:[W(sH,{className:W1.searchbox,placeholder:t("Search for gifs"),value:n,onChange:f}),i&&W(uH,{}),!i&&Ve(Qs,{children:[a&&W(iH,{gifs:r,onItemClick:h,onEndReached:()=>!i&&l()}),!a&&W(tH,{onCategoryClick:c})]}),W(fH,{className:W1["powered-by"]})]})})]})},V1={zone:"_zone_1xgo0_1",wrapper:"_wrapper_1xgo0_12",text:"_text_1xgo0_20"},hH=({isDragActive:e,getInputProps:t})=>{const{t:n}=zn();return e?Ve(Qs,{children:[W("input",{...t()}),W("div",{className:V1.zone,children:W("div",{className:V1.wrapper,children:W("p",{className:V1.text,children:n("Drag and drop your images here to upload them.")})})})]}):W("input",{...t()})};let Mh;const pH=new Uint8Array(16);function gH(){if(!Mh&&(Mh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mh(pH)}const hn=[];for(let e=0;e<256;++e)hn.push((e+256).toString(16).slice(1));function mH(e,t=0){return hn[e[t+0]]+hn[e[t+1]]+hn[e[t+2]]+hn[e[t+3]]+"-"+hn[e[t+4]]+hn[e[t+5]]+"-"+hn[e[t+6]]+hn[e[t+7]]+"-"+hn[e[t+8]]+hn[e[t+9]]+"-"+hn[e[t+10]]+hn[e[t+11]]+hn[e[t+12]]+hn[e[t+13]]+hn[e[t+14]]+hn[e[t+15]]}const zO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vH(e,t,n){if(zO.randomUUID&&!t&&!e)return zO.randomUUID();e=e||{};const r=e.random||(e.rng||gH)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return mH(r)}var UO={exports:{}},yH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wH=yH,bH=wH;function HO(){}function WO(){}WO.resetWarningCache=HO;var _H=function(){function e(r,i,o,a,l,c){if(c!==bH){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:WO,resetWarningCache:HO};return n.PropTypes=n,n};UO.exports=_H();var CH=UO.exports;const ft=vr(CH);function Xa(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(h){try{f(r.next(h))}catch(g){a(g)}}function c(h){try{f(r.throw(h))}catch(g){a(g)}}function f(h){h.done?o(h.value):i(h.value).then(l,c)}f((r=r.apply(e,t||[])).next())})}function Za(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(h){return c([f,h])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){n.label=f[1];break}if(f[0]===6&&n.label<o[1]){n.label=o[1],o=f;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(f);break}o[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],i=0}finally{r=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function VO(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function KO(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var EH=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function tc(e,t){var n=DH(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function DH(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=EH.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var xH=[".DS_Store","Thumbs.db"];function AH(e){return Xa(this,void 0,void 0,function(){return Za(this,function(t){return $h(e)&&SH(e.dataTransfer)?[2,kH(e.dataTransfer,e.type)]:OH(e)?[2,FH(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,BH(e)]:[2,[]]})})}function SH(e){return $h(e)}function OH(e){return $h(e)&&$h(e.target)}function $h(e){return typeof e=="object"&&e!==null}function FH(e){return K1(e.target.files).map(function(t){return tc(t)})}function BH(e){return Xa(this,void 0,void 0,function(){var t;return Za(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return tc(r)})]}})})}function kH(e,t){return Xa(this,void 0,void 0,function(){var n,r;return Za(this,function(i){switch(i.label){case 0:return e.items?(n=K1(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(PH))]):[3,2];case 1:return r=i.sent(),[2,qO(GO(r))];case 2:return[2,qO(K1(e.files).map(function(o){return tc(o)}))]}})})}function qO(e){return e.filter(function(t){return xH.indexOf(t.name)===-1})}function K1(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function PH(e){if(typeof e.webkitGetAsEntry!="function")return QO(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?YO(t):QO(e)}function GO(e){return e.reduce(function(t,n){return KO(KO([],VO(t),!1),VO(Array.isArray(n)?GO(n):[n]),!1)},[])}function QO(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=tc(t);return Promise.resolve(n)}function RH(e){return Xa(this,void 0,void 0,function(){return Za(this,function(t){return[2,e.isDirectory?YO(e):TH(e)]})})}function YO(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(l){return Xa(a,void 0,void 0,function(){var c,f,h;return Za(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return c=g.sent(),n(c),[3,4];case 3:return f=g.sent(),r(f),[3,4];case 4:return[3,6];case 5:h=Promise.all(l.map(RH)),i.push(h),o(),g.label=6;case 6:return[2]}})})},function(l){r(l)})}o()})}function TH(e){return Xa(this,void 0,void 0,function(){return Za(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=tc(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var IH=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):i===l})}return!0};function JO(e){return MH(e)||LH(e)||t3(e)||NH()}function NH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MH(e){if(Array.isArray(e))return q1(e)}function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(n),!0).forEach(function(r){e3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e,t){return zH(e)||jH(e,t)||t3(e,t)||$H()}function $H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t3(e,t){if(e){if(typeof e=="string")return q1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q1(e,t)}}function q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,l;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(c){o=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function zH(e){if(Array.isArray(e))return e}var UH="file-invalid-type",HH="file-too-large",WH="file-too-small",VH="too-many-files",KH=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:UH,message:"File type must be ".concat(n)}},n3=function(t){return{code:HH,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},r3=function(t){return{code:WH,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},qH={code:VH,message:"Too many files"};function i3(e,t){var n=e.type==="application/x-moz-file"||IH(e,t);return[n,n?null:KH(t)]}function o3(e,t,n){if(Is(e.size))if(Is(t)&&Is(n)){if(e.size>n)return[!1,n3(n)];if(e.size<t)return[!1,r3(t)]}else{if(Is(t)&&e.size<t)return[!1,r3(t)];if(Is(n)&&e.size>n)return[!1,n3(n)]}return[!0,null]}function Is(e){return e!=null}function GH(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,l=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(c){var f=i3(c,n),h=nc(f,1),g=h[0],m=o3(c,r,i),y=nc(m,1),v=y[0],p=l?l(c):null;return g&&v&&!p})}function jh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function zh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function s3(e){e.preventDefault()}function QH(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function YH(e){return e.indexOf("Edge/")!==-1}function JH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return QH(e)||YH(e)}function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(l){return!jh(r)&&l&&l.apply(void 0,[r].concat(o)),jh(r)})}}function XH(){return"showOpenFilePicker"in window}function ZH(e){if(Is(e)){var t=Object.entries(e).filter(function(n){var r=nc(n,2),i=r[0],o=r[1],a=!0;return a3(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(u3))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=nc(r,2),o=i[0],a=i[1];return ZO(ZO({},n),{},e3({},o,a))},{});return[{description:"Files",accept:t}]}return e}function eW(e){if(Is(e))return Object.entries(e).reduce(function(t,n){var r=nc(n,2),i=r[0],o=r[1];return[].concat(JO(t),[i],JO(o))},[]).filter(function(t){return a3(t)||u3(t)}).join(",")}function tW(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function nW(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function a3(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function u3(e){return/^.*\.[\w]+$/.test(e)}var rW=["children"],iW=["open"],oW=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],sW=["refKey","onChange","onClick"];function aW(e){return cW(e)||lW(e)||l3(e)||uW()}function uW(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return Q1(e)}function G1(e,t){return hW(e)||dW(e,t)||l3(e,t)||fW()}function fW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l3(e,t){if(e){if(typeof e=="string")return Q1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q1(e,t)}}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,l;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(c){o=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function hW(e){if(Array.isArray(e))return e}function c3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c3(Object(n),!0).forEach(function(r){Y1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uh(e,t){if(e==null)return{};var n=pW(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var J1=D.forwardRef(function(e,t){var n=e.children,r=Uh(e,rW),i=d3(r),o=i.open,a=Uh(i,iW);return D.useImperativeHandle(t,function(){return{open:o}},[o]),Le.createElement(D.Fragment,null,n(Pt(Pt({},a),{},{open:o})))});J1.displayName="Dropzone";var f3={disabled:!1,getFilesFromEvent:AH,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};J1.defaultProps=f3,J1.propTypes={children:ft.func,accept:ft.objectOf(ft.arrayOf(ft.string)),multiple:ft.bool,preventDropOnDocument:ft.bool,noClick:ft.bool,noKeyboard:ft.bool,noDrag:ft.bool,noDragEventsBubbling:ft.bool,minSize:ft.number,maxSize:ft.number,maxFiles:ft.number,disabled:ft.bool,getFilesFromEvent:ft.func,onFileDialogCancel:ft.func,onFileDialogOpen:ft.func,useFsAccessApi:ft.bool,autoFocus:ft.bool,onDragEnter:ft.func,onDragLeave:ft.func,onDragOver:ft.func,onDrop:ft.func,onDropAccepted:ft.func,onDropRejected:ft.func,onError:ft.func,validator:ft.func};var X1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function d3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Pt(Pt({},f3),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,l=t.multiple,c=t.maxFiles,f=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,v=t.onDropRejected,p=t.onFileDialogCancel,E=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,x=t.preventDropOnDocument,O=t.noClick,B=t.noKeyboard,k=t.noDrag,P=t.noDragEventsBubbling,I=t.onError,Q=t.validator,j=D.useMemo(function(){return eW(n)},[n]),X=D.useMemo(function(){return ZH(n)},[n]),$=D.useMemo(function(){return typeof E=="function"?E:h3},[E]),U=D.useMemo(function(){return typeof p=="function"?p:h3},[p]),T=D.useRef(null),G=D.useRef(null),se=D.useReducer(gW,X1),re=G1(se,2),V=re[0],te=re[1],le=V.isFocused,ce=V.isFileDialogActive,ye=D.useRef(typeof window<"u"&&window.isSecureContext&&_&&XH()),De=function(){!ye.current&&ce&&setTimeout(function(){if(G.current){var be=G.current.files;be.length||(te({type:"closeDialog"}),U())}},300)};D.useEffect(function(){return window.addEventListener("focus",De,!1),function(){window.removeEventListener("focus",De,!1)}},[G,ce,U,ye]);var Ce=D.useRef([]),L=function(be){T.current&&T.current.contains(be.target)||(be.preventDefault(),Ce.current=[])};D.useEffect(function(){return x&&(document.addEventListener("dragover",s3,!1),document.addEventListener("drop",L,!1)),function(){x&&(document.removeEventListener("dragover",s3),document.removeEventListener("drop",L))}},[T,x]),D.useEffect(function(){return!r&&b&&T.current&&T.current.focus(),function(){}},[T,b,r]);var ne=D.useCallback(function(ve){I?I(ve):console.error(ve)},[I]),J=D.useCallback(function(ve){ve.preventDefault(),ve.persist(),At(ve),Ce.current=[].concat(aW(Ce.current),[ve.target]),zh(ve)&&Promise.resolve(i(ve)).then(function(be){if(!(jh(ve)&&!P)){var Ze=be.length,it=Ze>0&&GH({files:be,accept:j,minSize:a,maxSize:o,multiple:l,maxFiles:c,validator:Q}),Je=Ze>0&&!it;te({isDragAccept:it,isDragReject:Je,isDragActive:!0,type:"setDraggedFiles"}),f&&f(ve)}}).catch(function(be){return ne(be)})},[i,f,ne,P,j,a,o,l,c,Q]),Y=D.useCallback(function(ve){ve.preventDefault(),ve.persist(),At(ve);var be=zh(ve);if(be&&ve.dataTransfer)try{ve.dataTransfer.dropEffect="copy"}catch{}return be&&g&&g(ve),!1},[g,P]),ge=D.useCallback(function(ve){ve.preventDefault(),ve.persist(),At(ve);var be=Ce.current.filter(function(it){return T.current&&T.current.contains(it)}),Ze=be.indexOf(ve.target);Ze!==-1&&be.splice(Ze,1),Ce.current=be,!(be.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zh(ve)&&h&&h(ve))},[T,h,P]),he=D.useCallback(function(ve,be){var Ze=[],it=[];ve.forEach(function(Je){var qt=i3(Je,j),sn=G1(qt,2),pn=sn[0],cr=sn[1],Pr=o3(Je,a,o),Rr=G1(Pr,2),Gi=Rr[0],Qi=Rr[1],Yi=Q?Q(Je):null;if(pn&&Gi&&!Yi)Ze.push(Je);else{var Ls=[cr,Qi];Yi&&(Ls=Ls.concat(Yi)),it.push({file:Je,errors:Ls.filter(function(cc){return cc})})}}),(!l&&Ze.length>1||l&&c>=1&&Ze.length>c)&&(Ze.forEach(function(Je){it.push({file:Je,errors:[qH]})}),Ze.splice(0)),te({acceptedFiles:Ze,fileRejections:it,type:"setFiles"}),m&&m(Ze,it,be),it.length>0&&v&&v(it,be),Ze.length>0&&y&&y(Ze,be)},[te,l,j,a,o,c,m,y,v,Q]),Pe=D.useCallback(function(ve){ve.preventDefault(),ve.persist(),At(ve),Ce.current=[],zh(ve)&&Promise.resolve(i(ve)).then(function(be){jh(ve)&&!P||he(be,ve)}).catch(function(be){return ne(be)}),te({type:"reset"})},[i,he,ne,P]),me=D.useCallback(function(){if(ye.current){te({type:"openDialog"}),$();var ve={multiple:l,types:X};window.showOpenFilePicker(ve).then(function(be){return i(be)}).then(function(be){he(be,null),te({type:"closeDialog"})}).catch(function(be){tW(be)?(U(be),te({type:"closeDialog"})):nW(be)?(ye.current=!1,G.current?(G.current.value=null,G.current.click()):ne(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ne(be)});return}G.current&&(te({type:"openDialog"}),$(),G.current.value=null,G.current.click())},[te,$,U,_,he,ne,X,l]),Fe=D.useCallback(function(ve){!T.current||!T.current.isEqualNode(ve.target)||(ve.key===" "||ve.key==="Enter"||ve.keyCode===32||ve.keyCode===13)&&(ve.preventDefault(),me())},[T,me]),Se=D.useCallback(function(){te({type:"focus"})},[]),Re=D.useCallback(function(){te({type:"blur"})},[]),Be=D.useCallback(function(){O||(JH()?setTimeout(me,0):me())},[O,me]),ke=function(be){return r?null:be},ct=function(be){return B?null:ke(be)},Mt=function(be){return k?null:ke(be)},At=function(be){P&&be.stopPropagation()},ht=D.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be=ve.refKey,Ze=be===void 0?"ref":be,it=ve.role,Je=ve.onKeyDown,qt=ve.onFocus,sn=ve.onBlur,pn=ve.onClick,cr=ve.onDragEnter,Pr=ve.onDragOver,Rr=ve.onDragLeave,Gi=ve.onDrop,Qi=Uh(ve,oW);return Pt(Pt(Y1({onKeyDown:ct(wi(Je,Fe)),onFocus:ct(wi(qt,Se)),onBlur:ct(wi(sn,Re)),onClick:ke(wi(pn,Be)),onDragEnter:Mt(wi(cr,J)),onDragOver:Mt(wi(Pr,Y)),onDragLeave:Mt(wi(Rr,ge)),onDrop:Mt(wi(Gi,Pe)),role:typeof it=="string"&&it!==""?it:"presentation"},Ze,T),!r&&!B?{tabIndex:0}:{}),Qi)}},[T,Fe,Se,Re,Be,J,Y,ge,Pe,B,k,r]),rt=D.useCallback(function(ve){ve.stopPropagation()},[]),Kt=D.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be=ve.refKey,Ze=be===void 0?"ref":be,it=ve.onChange,Je=ve.onClick,qt=Uh(ve,sW),sn=Y1({accept:j,multiple:l,type:"file",style:{display:"none"},onChange:ke(wi(it,Pe)),onClick:ke(wi(Je,rt)),tabIndex:-1},Ze,G);return Pt(Pt({},sn),qt)}},[G,n,l,Pe,r]);return Pt(Pt({},V),{},{isFocused:le&&!r,getRootProps:ht,getInputProps:Kt,rootRef:T,inputRef:G,open:ke(me)})}function gW(e,t){switch(t.type){case"focus":return Pt(Pt({},e),{},{isFocused:!0});case"blur":return Pt(Pt({},e),{},{isFocused:!1});case"openDialog":return Pt(Pt({},X1),{},{isFileDialogActive:!0});case"closeDialog":return Pt(Pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Pt(Pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Pt(Pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Pt({},X1);default:return e}}function h3(){}const mW=({editor:e,onError:t})=>{const{uploadFile:n}=Z8(),{t:r}=zn(),{getRootProps:i,getInputProps:o,open:a,acceptedFiles:l,isDragActive:c,fileRejections:f}=d3({noClick:!0,noKeyboard:!0,accept:{"image/png":[".png"],"image/jpeg":[".jpeg",".jpg"],"image/gif":[".gif"]},minSize:1,maxSize:5*1024*1024});return D.useEffect(()=>{const h=async g=>{const m=vH();TM(e,m);try{const y=await n(g);y.ok&&IM(e,y.url,m)}catch(y){if(NM(e,m),y instanceof Error)return t==null?void 0:t(r(y.message))}};l.length>0&&h(l[0])},[l]),D.useEffect(()=>{if(f.length){const h=f.flatMap(({errors:g})=>g.flatMap(m=>m.code))[0];t==null||t(r(nv(h)))}},[f]),{open:a,getInputProps:o,getRootProps:i,isDragActive:c}},vW={placeholder:"_placeholder_s9avi_1"},yW=({placeholder:e})=>W("div",{className:vW.placeholder,children:e}),wW=({editor:e,initialState:t})=>{const[n,r]=D.useState(t),i=D.useCallback(()=>{const[o]=Array.from(C.nodes(e,{match:l=>!C.isEditor(l)&&we.isElement(l)&&l.type===Ue.QUOTE})),a=ee.androidPendingDiffs(e);r(EA(e)&&!o&&!(a!=null&&a.length))},[e]);return{isVisible:n,triggerPlaceholder:i}},bW=280,p3=480,_W={separator:"_separator_p7fwl_1"},CW=()=>W("span",{className:_W.separator}),Zr={expand:"_expand_k0g7a_1","expand-active":"_expand-active_k0g7a_1",menu:"_menu_k0g7a_41",toolbar:"_toolbar_k0g7a_47","toolbar-primary":"_toolbar-primary_k0g7a_51","toolbar-secondary-multirow":"_toolbar-secondary-multirow_k0g7a_56","toolbar-secondary":"_toolbar-secondary_k0g7a_56",actions:"_actions_k0g7a_78",submit:"_submit_k0g7a_84","submit-text":"_submit-text_k0g7a_122",cancel:"_cancel_k0g7a_126"},EW=({width:e,editor:t})=>{const[n,r]=D.useState(!1),[i,o]=D.useState(e<=p3),a=l=>{l.code===Li.ESCAPE&&ee.focus(t)};return D.useEffect(()=>{o(e<=p3)},[e]),{isExpanded:n,setIsExpanded:r,isMobile:i,onKeyDown:a}},DW=({children:e,editor:t,gifPickerButton:n,isEdit:r,uploadButton:i,onCancel:o,submitPost:a,width:l})=>{const{isMobile:c,onKeyDown:f,setIsExpanded:h,isExpanded:g}=EW({editor:t,width:l}),{t:m}=zn();return Ve("div",{className:Zr.toolbar,onKeyDown:f,children:[Ve("div",{className:Zr["toolbar-primary"],children:[Ve("div",{className:Zr.menu,children:[n,i,(i||n)&&W(CW,{}),c?W("span",{className:g?Zr["expand-active"]:Zr.expand,onClick:()=>h(y=>!y),children:"Aa"}):e]}),Ve("div",{className:Zr.actions,children:[r&&o&&W("button",{className:Zr.cancel,type:"button",onClick:o,children:m("Cancel")}),W(Zv,{className:Zr.submit,onClick:a,children:W("span",{className:Zr["submit-text"],children:m(r?"Save Edit":"Comment")})})]})]}),c&&g&&W("div",{className:l<bW?Zr["toolbar-secondary-multirow"]:Zr["toolbar-secondary"],children:e})]})},xW=e=>{const{deleteBackward:t,insertText:n}=e;return e.insertText=r=>{const{selection:i}=e;if(r.endsWith(" ")&&i&&q.isCollapsed(i)){const{anchor:o}=i,a=C.above(e,{match:m=>we.isElement(m)&&C.isBlock(e,m)}),l=a?a[1]:[],c=C.start(e,l),f={anchor:o,focus:c},h=C.string(e,f)+r.slice(0,-1),g=mA[h];if(g){K.select(e,f),q.isCollapsed(f)||K.delete(e);const m={type:g};K.setNodes(e,m,{match:y=>we.isElement(y)&&C.isBlock(e,y)});return}}n(r)},e.deleteBackward=(...r)=>{const{selection:i}=e;if(i&&q.isCollapsed(i)){const o=C.above(e,{match:a=>we.isElement(a)&&C.isBlock(e,a)});if(o){const[a,l]=o,c=C.start(e,l);if(!C.isEditor(a)&&we.isElement(a)&&a.type!==Ue.BLOCK&&je.equals(i.anchor,c)){const f={type:Ue.BLOCK};K.setNodes(e,f);return}}t(...r)}},e},AW=e=>{const{selection:t}=e;if(!t)return!0;const n=C.before(e,t);if(!n)return!0;const[r]=C.node(e,n);return de.string(r)!==""},g3=(e,t)=>C.above(e,{mode:"highest",match:n=>!C.isEditor(n)&&we.isElement(n)&&t.includes(n.type)}),SW=e=>{const{deleteBackward:t}=e;return e.deleteBackward=n=>{const{currentWord:r}=Kd(e,/\uFEFF/i);r&&r.match(/.*\uFEFF/)?(t("character"),t("character")):t(n)},e.insertBreak=()=>{const n=g3(e,fM),r=g3(e,dM);if(r){const i=C.end(e,r[1]);Kv(e,i)&&K.move(e,{unit:"offset"}),K.insertText(e,mi);return}else if(n){const i=C.end(e,n[1]);new RegExp(`(${mi})$`).test(de.string(n[0]))&&Kv(e,i)?(AW(e)&&C.deleteBackward(e,{unit:"character"}),K.insertNodes(e,{type:Ue.BLOCK,children:[{text:""}]})):K.insertText(e,mi);return}K.insertText(e,mi)},e.insertSoftBreak=()=>K.insertText(e,mi),e},OW=/data-slate-fragment="(.+?)"/m,FW=e=>{const t=e.getData("text/html"),[,n]=t.match(OW)||[];return n},BW=e=>{const{insertText:t,insertFragment:n,selection:r}=e;return e.insertFragmentData=i=>{const o=i.getData("application/x-slate-fragment")||FW(i);if(o&&r){const a=decodeURIComponent(window.atob(o)),l=JSON.parse(a),{focus:c,anchor:f}=r,h=q.isExpanded(r);return t(jl),n(l),K.delete(e,{at:h?f:c}),!0}return!1},e},kW=e=>{const{normalizeNode:t}=e;return e.normalizeNode=n=>{const[r,i]=n;if(we.isElement(r)){const o=C.previous(e,{at:i,mode:"highest"}),a=C.next(e,{at:i,mode:"highest"});if(a){const[l,c]=a;if(r.type===Ue.BLOCK&&l.type===Ue.BLOCK){const f=C.end(e,i);K.insertText(e,mi,{at:f}),K.mergeNodes(e,{at:c});return}}if(o){const[l,c]=o,f=de.string(l),h=f===""||f===mi;if(r.type===Ue.BLOCK&&l.type===Ue.BLOCK){const g=C.end(e,c);K.insertText(e,mi,{at:g}),K.mergeNodes(e,{at:i});return}if(r.type===Ue.QUOTE&&l.type===Ue.BLOCK&&h){K.removeNodes(e,{at:c});return}}}t(n)},e},PW=e=>{const{normalizeNode:t}=e;return e.normalizeNode=n=>{const[r,i]=n;if(we.isElement(r)&&r.type===Ue.BLOCK){const o=Array.from(de.children(e,i));for(const[a,l]of o)if(we.isElement(a)&&[Ue.LINK,Ue.SPOILER].includes(a.type)&&a.children.length===1&&a.children[0].text===""){o.length===1?(K.removeNodes(e,{at:i}),K.insertNodes(e,{type:Ue.BLOCK,children:[{text:""}]})):K.removeNodes(e,{at:l});return}}t(n)},e},RW=e=>{const{insertText:t,isInline:n}=e;return e.isInline=r=>cM.includes(r.type)?!0:n(r),e.insertText=r=>{const i=C.above(e);if(!i)return;const{selection:o}=e,a=C.end(e,i[1]);o&&q.isCollapsed(o)&&je.compare(a,o.focus)<=0&&Gv(e)&&K.move(e,{unit:"offset"}),t(r)},e},TW=e=>{const{isVoid:t,markableVoid:n}=e;return e.isVoid=r=>r.type==="mention"?!0:t(r),e.markableVoid=r=>r.type==="mention"||n(r),e},m3={button:"_button_1wqlf_1",icon:"_icon_1wqlf_28"},IW=()=>{const e=Or(),t=eM(),{t:n}=zn(),[r,i]=D.useState(!1);return D.useEffect(()=>{const{currentWord:o}=Kd(e),a=!!(o!=null&&o.match(/^@/));i(a)},[t]),W("button",{disabled:r,className:m3.button,onClick:o=>{o.preventDefault(),K.insertText(e,"@"),ee.focus(e)},title:n("Mention"),children:Os("mention",m3.icon)()})},eu={container:"_container_if5tp_1","item-active":"_item-active_if5tp_11",item:"_item_if5tp_11",header:"_header_if5tp_33",list:"_list_if5tp_47",avatar:"_avatar_if5tp_71"},NW=({activeItem:e,onEndReached:t})=>{const n=D.useRef(null),r=D.useRef([]),i=yy(n);return D.useEffect(()=>{i&&(t==null||t())},[i]),D.useEffect(()=>{var o;(o=r.current[e])==null||o.scrollIntoView({block:"nearest"})},[e]),{observerRef:n,listRef:r}},LW=({activeItem:e,users:t,onEndReached:n,onItemClick:r})=>{const{observerRef:i,listRef:o}=NW({activeItem:e,onEndReached:n}),{t:a}=zn();return Ve("div",{className:eu.container,children:[W("div",{className:eu.header,children:a("in this conversation")}),W("ul",{className:eu.list,children:t.map((l,c)=>Ve("li",{className:c===e?eu["item-active"]:eu.item,ref:f=>o.current[c]=f,onMouseDown:f=>{f.preventDefault(),r(l)},children:[W("img",{className:eu.avatar,src:l.avatar.small.cache}),l.name]},l.id))}),W("div",{ref:i})]})},MW=()=>{const{context:e,refs:t,floatingStyles:n}=Fh({placement:"bottom-start",strategy:"fixed",whileElementsMounted:gh,middleware:[dh({mainAxis:-2}),tz({apply({rects:a,elements:l}){Object.assign(l.floating.style,{width:`${a.reference.width}px`})}})]}),r=Th(e,{role:"listbox"}),i=Oh(e),{getFloatingProps:o}=Bh([r,i]);return{refs:t,floatingStyles:n,getFloatingProps:o}},$W=({thread:e,query:t,isEnabled:n})=>{const r=[Wm.userSuggestions,e,t];return PE({enabled:n,queryKey:r,refetchOnWindowFocus:!1,queryFn:({pageParam:i=""})=>S8({thread:e,query:t,cursor:i}),getNextPageParam:i=>{var o;return i.cursor.hasNext?(o=i.cursor.next)==null?void 0:o.slice(2):void 0},select:i=>{const a=[...new Map(i.pages.flatMap(l=>l.response).map(l=>[l.id,l])).values()];return{...i,suggestions:a}}})},jW=(e,t,n)=>{const r={type:Ue.MENTION,name:t.name,username:t.username,children:[{text:""}]};K.select(e,n),K.insertNodes(e,[{text:jl},r,{text:" "}])},zW={overlay:"_overlay_1i4qh_1"},UW=({editor:e,thread:t})=>{const[n,r]=D.useState(0),[i,o]=D.useState(""),[a,l]=D.useState(),[c,f]=D.useState(!1),[h,g]=D.useState(!1),{floatingStyles:m,refs:y,getFloatingProps:v}=MW(),{data:p,fetchNextPage:E,isFetchingNextPage:_}=$W({thread:t,query:i,isEnabled:c}),{suggestions:b=[]}=p||{},x=()=>{const{currentRange:$,currentWord:U}=Kd(e),T=U&&U.match(/^@(\w*)/);if(T){l($),o(T[1]),r(0),f(!0);return}l(null)},O=$=>{a&&(jW(e,$,a),l(null))},B=()=>{_||r(n>=b.length-1?0:n+1)},k=()=>r(n<=0?b.length-1:n-1),P=()=>O(b[n]),I=()=>l(null),Q={[Li.ARROW_DOWN]:B,[Li.ARROW_UP]:k,[Li.TAB]:P,[Li.ENTER]:P,[Li.ESCAPE]:I},j=$=>{var U;!a||b.length===0||$.code in Q&&($.preventDefault(),(U=Q[$.code])==null||U.call(Q))},X=W(Sh,{children:W("div",{className:zW.overlay,...v({ref:y.setFloating,style:{...m}}),children:h&&W(LW,{activeItem:n,users:b,onEndReached:E,onItemClick:O})})});return D.useEffect(()=>{g(!!(a&&b.length))},[a,b.length]),{index:n,search:i,target:a,suggestions:b,MentionList:X,findMention:x,handleKeyDown:j,setTarget:l,setReference:y.setReference}};var HW=qW,WW=/^(?:\w+:)?\/\/(\S+)$/,VW=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,KW=/^[^\s\.]+\.\S{2,}$/;function qW(e){if(typeof e!="string")return!1;var t=e.match(WW);if(!t)return!1;var n=t[1];return n?!!(VW.test(n)||KW.test(n)):!1}const GW=vr(HW),QW=e=>{const{insertText:t,isVoid:n}=e;return e.isVoid=r=>r.type===Ue.LINK&&r.view==="embed"?!0:n(r),e.insertText=r=>{if(GW(r)){Vd(e,r,r);return}const i=ZT(r);if(i.length){let o=0;i.forEach(a=>{t(r.slice(o,a.index)),Vd(e,a.url,a.url),o=a.endIndex}),t(r.slice(o));return}t(r)},e},YW=e=>{const{isVoid:t}=e;return e.isVoid=n=>Vv.includes(n.type)?!0:t(n),e};var JW={isHistory(e){return nn(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Bo.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Bo.isOperationList(e.undos[0].operations))}},Z1=new WeakMap,ey=new WeakMap,tu={isHistoryEditor(e){return JW.isHistory(e.history)&&C.isEditor(e)},isMerging(e){return ey.get(e)},isSaving(e){return Z1.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=tu.isMerging(e);ey.set(e,!1),t(),ey.set(e,n)},withoutSaving(e,t){var n=tu.isSaving(e);Z1.set(e,!1),t(),Z1.set(e,n)}},XW=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:i}=r;if(i.length>0){var o=i[i.length-1];o.selectionBefore&&K.setSelection(t,o.selectionBefore),tu.withoutSaving(t,()=>{C.withoutNormalizing(t,()=>{for(var a of o.operations)t.apply(a)})}),r.redos.pop(),t.writeHistory("undos",o)}},t.undo=()=>{var{history:r}=t,{undos:i}=r;if(i.length>0){var o=i[i.length-1];tu.withoutSaving(t,()=>{C.withoutNormalizing(t,()=>{var a=o.operations.map(Bo.inverse).reverse();for(var l of a)t.apply(l);o.selectionBefore&&K.setSelection(t,o.selectionBefore)})}),t.writeHistory("redos",o),r.undos.pop()}},t.apply=r=>{var{operations:i,history:o}=t,{undos:a}=o,l=a[a.length-1],c=l&&l.operations[l.operations.length-1],f=tu.isSaving(t),h=tu.isMerging(t);if(f==null&&(f=eV(r)),f){if(h==null&&(l==null?h=!1:i.length!==0?h=!0:h=ZW(r,c)),l&&h)l.operations.push(r);else{var g={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",g)}for(;a.length>100;)a.shift();o.redos=[]}n(r)},t.writeHistory=(r,i)=>{t.history[r].push(i)},t},ZW=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&N.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&N.equals(e.path,t.path)),eV=(e,t)=>e.type!=="set_selection";function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function tV(e,t){if(rc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nV(e){var t=tV(e,"string");return rc(t)==="symbol"?t:String(t)}function nu(e,t,n){return t=nV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v3=new WeakMap,y3=new WeakMap;class ty{}class Hh extends ty{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),nu(this,"offset",void 0),nu(this,"path",void 0);var{offset:n,path:r}=t;this.offset=n,this.path=r}}class Wh extends ty{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),nu(this,"offset",void 0),nu(this,"path",void 0);var{offset:n,path:r}=t;this.offset=n,this.path=r}}var rV=(e,t)=>{var n=e.text.length;v3.set(e,[n,t])},iV=e=>v3.get(e),oV=(e,t)=>{var n=e.text.length;y3.set(e,[n,t])},sV=e=>y3.get(e);function w3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(n),!0).forEach(function(r){nu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Vh=new WeakSet,Kh=e=>{var t=[],n=i=>{if(i!=null){var o=t[t.length-1];if(typeof i=="string"){var a={text:i};Vh.add(a),i=a}if(Ee.isText(i)){var l=i;Ee.isText(o)&&Vh.has(o)&&Vh.has(l)&&Ee.equals(o,l,{loose:!0})?o.text+=l.text:t.push(l)}else if(we.isElement(i))t.push(i);else if(i instanceof ty){var c=t[t.length-1];Ee.isText(c)||(n(""),c=t[t.length-1]),i instanceof Hh?rV(c,i):i instanceof Wh&&oV(c,i)}else throw new Error("Unexpected hyperscript child object: ".concat(i))}};for(var r of e.flat(1/0))n(r);return t};function aV(e,t,n){return new Hh(t)}function uV(e,t,n){return[new Hh(t),new Wh(t)]}function b3(e,t,n){return ny(ny({},t),{},{children:Kh(n)})}function lV(e,t,n){return new Wh(t)}function cV(e,t,n){return Kh(n)}function fV(e,t,n){var r=n.find(o=>o instanceof Hh),i=n.find(o=>o instanceof Wh);if(!r||r.offset==null||r.path==null)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||i.offset==null||i.path==null)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return ny({anchor:{offset:r.offset,path:r.path},focus:{offset:i.offset,path:i.path}},t)}function dV(e,t,n){var r=Kh(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(i==null&&(i={text:""}),!Ee.isText(i))throw new Error(` The <text> hyperscript tag can only contain text content as children.`);return Vh.delete(i),Object.assign(i,t),i}var hV=e=>(t,n,r)=>{var i=[],o;for(var a of r)q.isRange(a)?o=a:i.push(a);var l=Kh(i),c={},f=e();Object.assign(f,n),f.children=l;for(var[h,g]of de.texts(f)){var m=iV(h),y=sV(h);if(m!=null){var[v]=m;c.anchor={path:g,offset:v}}if(y!=null){var[p]=y;c.focus={path:g,offset:p}}}if(c.anchor&&!c.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!c.anchor&&c.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return o!=null?f.selection=o:q.isRange(c)&&(f.selection=c),f};function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(n),!0).forEach(function(r){nu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pV={anchor:aV,cursor:uV,editor:hV(a2),element:b3,focus:lV,fragment:cV,selection:fV,text:dV},gV=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{elements:n={}}=t,r=vV(n),i=ic(ic(ic({},pV),r),t.creators),o=mV(i);return o},mV=e=>{var t=function(r,i){for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l<o;l++)a[l-2]=arguments[l];var c=e[r];if(!c)throw new Error("No hyperscript creator found for tag: <".concat(r,">"));i==null&&(i={}),nn(i)||(a=[i].concat(a),i={}),a=a.filter(h=>!!h).flat();var f=c(r,i,a);return f};return t},vV=e=>{var t={},n=function(){var o=e[r];if(typeof o!="object")throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(o));t[r]=(a,l,c)=>b3("element",ic(ic({},o),l),c)};for(var r in e)n();return t},bi=gV();const yV=e=>{const t={B:()=>({bold:!0}),STRONG:()=>({bold:!0}),I:()=>({italic:!0}),EM:()=>({italic:!0}),U:()=>({underline:!0}),CODE:()=>({code:!0}),S:()=>({strikethrough:!0})};return t[e]?t[e]():{}},wV=(e,t)=>{var r;((r=e.previousSibling)==null?void 0:r.nodeName)==="P"&&e.nodeName==="P"&&Array.isArray(t)&&(t=[{text:mi},...t]);const n={BODY:()=>bi("fragment",{},t),BR:()=>mi,BLOCKQUOTE:()=>bi("element",{type:"block-quote"},t),P:()=>e.innerText===""?void 0:bi("element",{type:"div"},t),SPOILER:()=>bi("element",{type:"spoiler"},t),A:()=>{var i;if(e.getAttribute("data-dsq-mention")){const[o]=((i=e.getAttribute("data-dsq-mention"))==null?void 0:i.split(":"))||[];return bi("element",{type:"mention",name:e.innerText,username:o},t)}return e.getAttribute("href").includes("giphy.com")?bi("element",{type:"video",url:e.getAttribute("title")},t):e.getAttribute("href").includes("uploads.disquscdn.com/images")?bi("element",{type:"image",url:e.getAttribute("title")},t):bi("element",{type:"link",url:e.getAttribute("title")},t)}};return n[e.nodeName]?n[e.nodeName]():t},C3=(e,t={})=>{if(e.nodeType===Node.TEXT_NODE)return bi("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return;const n={...t,...yV(e.nodeName)},r=Array.from(e.childNodes||[]).map(i=>C3(i,n)).flat();return r.length===0&&r.push(bi("text",n,"")),wV(e,r)},oc=(e=>{const t=function(o){return e[o]},n="(?:"+Object.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(o){return o=o==null?"":""+o,r.test(o)?o.replace(i,t):o}})(lM),bV=(e,t)=>{const n={[Ue.QUOTE]:()=>t?`<blockquote>${t}</blockquote>`:"",[Ue.BLOCK]:()=>t,[Ue.LINK]:()=>` <a href="${oc(e.url)}">${t}</a> `,[Ue.SPOILER]:()=>t?`<spoiler>${t}</spoiler>`:"",[Ue.IMAGE]:()=>` ${oc(e.url)} `,[Ue.VIDEO]:()=>` ${oc(e.url)} `,[Ue.MENTION]:()=>`@${oc(e.username)}:disqus`};return n[e.type]?n[e.type]():t},E3=e=>{if(Ee.isText(e)){let n=oc(e.text).replaceAll(/\uFEFF/gi,"");return n.replace(/[^\S\r\n]+|[^\S\r\n]+$/gm,"")?(e.bold&&(n=`<b>${n}</b>`),e.italic&&(n=`<i>${n}</i>`),e.strikethrough&&(n=`<s>${n}</s>`),e.underline&&(n=`<u>${n}</u>`),e.code&&(n=`<code>${n}</code>`),n):""}const t=e.children.map(n=>E3(n)).join("").replace(/^\n/,"");return C.isEditor(e)?t:bV(e,t)},_V=e=>E3(e).trim();var CV=Array.isArray,_i=CV,EV=_i;function DV(){if(!arguments.length)return[];var e=arguments[0];return EV(e)?e:[e]}var xV=DV;const sc=vr(xV);function AV(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var D3=AV;function SV(){this.__data__=[],this.size=0}var OV=SV;function FV(e,t){return e===t||e!==e&&t!==t}var x3=FV,BV=x3;function kV(e,t){for(var n=e.length;n--;)if(BV(e[n][0],t))return n;return-1}var qh=kV,PV=qh,RV=Array.prototype,TV=RV.splice;function IV(e){var t=this.__data__,n=PV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():TV.call(t,n,1),--this.size,!0}var NV=IV,LV=qh;function MV(e){var t=this.__data__,n=LV(t,e);return n<0?void 0:t[n][1]}var $V=MV,jV=qh;function zV(e){return jV(this.__data__,e)>-1}var UV=zV,HV=qh;function WV(e,t){var n=this.__data__,r=HV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var VV=WV,KV=OV,qV=NV,GV=$V,QV=UV,YV=VV;function ru(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ru.prototype.clear=KV,ru.prototype.delete=qV,ru.prototype.get=GV,ru.prototype.has=QV,ru.prototype.set=YV;var Gh=ru,JV=Gh;function XV(){this.__data__=new JV,this.size=0}var ZV=XV;function eK(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var tK=eK;function nK(e){return this.__data__.get(e)}var rK=nK;function iK(e){return this.__data__.has(e)}var oK=iK,sK=Al,aK=Ra,uK="[object AsyncFunction]",lK="[object Function]",cK="[object GeneratorFunction]",fK="[object Proxy]";function dK(e){if(!aK(e))return!1;var t=sK(e);return t==lK||t==cK||t==uK||t==fK}var A3=dK,hK=hi,pK=hK["__core-js_shared__"],gK=pK,ry=gK,S3=function(){var e=/[^.]+$/.exec(ry&&ry.keys&&ry.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mK(e){return!!S3&&S3 in e}var vK=mK,yK=Function.prototype,wK=yK.toString;function bK(e){if(e!=null){try{return wK.call(e)}catch{}try{return e+""}catch{}}return""}var O3=bK,_K=A3,CK=vK,EK=Ra,DK=O3,xK=/[\\^$.*+?()[\]{}|]/g,AK=/^\[object .+?Constructor\]$/,SK=Function.prototype,OK=Object.prototype,FK=SK.toString,BK=OK.hasOwnProperty,kK=RegExp("^"+FK.call(BK).replace(xK,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PK(e){if(!EK(e)||CK(e))return!1;var t=_K(e)?kK:AK;return t.test(DK(e))}var RK=PK;function TK(e,t){return e==null?void 0:e[t]}var IK=TK,NK=RK,LK=IK;function MK(e,t){var n=LK(e,t);return NK(n)?n:void 0}var iu=MK,$K=iu,jK=hi,zK=$K(jK,"Map"),iy=zK,UK=iu,HK=UK(Object,"create"),Qh=HK,F3=Qh;function WK(){this.__data__=F3?F3(null):{},this.size=0}var VK=WK;function KK(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qK=KK,GK=Qh,QK="__lodash_hash_undefined__",YK=Object.prototype,JK=YK.hasOwnProperty;function XK(e){var t=this.__data__;if(GK){var n=t[e];return n===QK?void 0:n}return JK.call(t,e)?t[e]:void 0}var ZK=XK,eq=Qh,tq=Object.prototype,nq=tq.hasOwnProperty;function rq(e){var t=this.__data__;return eq?t[e]!==void 0:nq.call(t,e)}var iq=rq,oq=Qh,sq="__lodash_hash_undefined__";function aq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=oq&&t===void 0?sq:t,this}var uq=aq,lq=VK,cq=qK,fq=ZK,dq=iq,hq=uq;function ou(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ou.prototype.clear=lq,ou.prototype.delete=cq,ou.prototype.get=fq,ou.prototype.has=dq,ou.prototype.set=hq;var pq=ou,B3=pq,gq=Gh,mq=iy;function vq(){this.size=0,this.__data__={hash:new B3,map:new(mq||gq),string:new B3}}var yq=vq;function wq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bq=wq,_q=bq;function Cq(e,t){var n=e.__data__;return _q(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Yh=Cq,Eq=Yh;function Dq(e){var t=Eq(this,e).delete(e);return this.size-=t?1:0,t}var xq=Dq,Aq=Yh;function Sq(e){return Aq(this,e).get(e)}var Oq=Sq,Fq=Yh;function Bq(e){return Fq(this,e).has(e)}var kq=Bq,Pq=Yh;function Rq(e,t){var n=Pq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Tq=Rq,Iq=yq,Nq=xq,Lq=Oq,Mq=kq,$q=Tq;function su(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}su.prototype.clear=Iq,su.prototype.delete=Nq,su.prototype.get=Lq,su.prototype.has=Mq,su.prototype.set=$q;var oy=su,jq=Gh,zq=iy,Uq=oy,Hq=200;function Wq(e,t){var n=this.__data__;if(n instanceof jq){var r=n.__data__;if(!zq||r.length<Hq-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Uq(r)}return n.set(e,t),this.size=n.size,this}var Vq=Wq,Kq=Gh,qq=ZV,Gq=tK,Qq=rK,Yq=oK,Jq=Vq;function au(e){var t=this.__data__=new Kq(e);this.size=t.size}au.prototype.clear=qq,au.prototype.delete=Gq,au.prototype.get=Qq,au.prototype.has=Yq,au.prototype.set=Jq;var k3=au,Xq="__lodash_hash_undefined__";function Zq(e){return this.__data__.set(e,Xq),this}var eG=Zq;function tG(e){return this.__data__.has(e)}var nG=tG,rG=oy,iG=eG,oG=nG;function Jh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new rG;++t<n;)this.add(e[t])}Jh.prototype.add=Jh.prototype.push=iG,Jh.prototype.has=oG;var sG=Jh;function aG(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var uG=aG;function lG(e,t){return e.has(t)}var cG=lG,fG=sG,dG=uG,hG=cG,pG=1,gG=2;function mG(e,t,n,r,i,o){var a=n&pG,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var g=-1,m=!0,y=n&gG?new fG:void 0;for(o.set(e,t),o.set(t,e);++g<l;){var v=e[g],p=t[g];if(r)var E=a?r(p,v,g,t,e,o):r(v,p,g,e,t,o);if(E!==void 0){if(E)continue;m=!1;break}if(y){if(!dG(t,function(_,b){if(!hG(y,b)&&(v===_||i(v,_,n,r,o)))return y.push(b)})){m=!1;break}}else if(!(v===p||i(v,p,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var P3=mG,vG=hi,yG=vG.Uint8Array,wG=yG;function bG(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var _G=bG;function CG(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var EG=CG,R3=yd,T3=wG,DG=x3,xG=P3,AG=_G,SG=EG,OG=1,FG=2,BG="[object Boolean]",kG="[object Date]",PG="[object Error]",RG="[object Map]",TG="[object Number]",IG="[object RegExp]",NG="[object Set]",LG="[object String]",MG="[object Symbol]",$G="[object ArrayBuffer]",jG="[object DataView]",I3=R3?R3.prototype:void 0,sy=I3?I3.valueOf:void 0;function zG(e,t,n,r,i,o,a){switch(n){case jG:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $G:return!(e.byteLength!=t.byteLength||!o(new T3(e),new T3(t)));case BG:case kG:case TG:return DG(+e,+t);case PG:return e.name==t.name&&e.message==t.message;case IG:case LG:return e==t+"";case RG:var l=AG;case NG:var c=r&OG;if(l||(l=SG),e.size!=t.size&&!c)return!1;var f=a.get(e);if(f)return f==t;r|=FG,a.set(e,t);var h=xG(l(e),l(t),r,i,o,a);return a.delete(e),h;case MG:if(sy)return sy.call(e)==sy.call(t)}return!1}var UG=zG;function HG(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var WG=HG,VG=WG,KG=_i;function qG(e,t,n){var r=t(e);return KG(e)?r:VG(r,n(e))}var GG=qG;function QG(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var YG=QG;function JG(){return[]}var XG=JG,ZG=YG,eQ=XG,tQ=Object.prototype,nQ=tQ.propertyIsEnumerable,N3=Object.getOwnPropertySymbols,rQ=N3?function(e){return e==null?[]:(e=Object(e),ZG(N3(e),function(t){return nQ.call(e,t)}))}:eQ,iQ=rQ;function oQ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sQ=oQ,aQ=Al,uQ=Sl,lQ="[object Arguments]";function cQ(e){return uQ(e)&&aQ(e)==lQ}var fQ=cQ,L3=fQ,dQ=Sl,M3=Object.prototype,hQ=M3.hasOwnProperty,pQ=M3.propertyIsEnumerable,gQ=L3(function(){return arguments}())?L3:function(e){return dQ(e)&&hQ.call(e,"callee")&&!pQ.call(e,"callee")},$3=gQ,Xh={exports:{}};function mQ(){return!1}var vQ=mQ;Xh.exports,function(e,t){var n=hi,r=vQ,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||r;e.exports=f}(Xh,Xh.exports);var j3=Xh.exports,yQ=9007199254740991,wQ=/^(?:0|[1-9]\d*)$/;function bQ(e,t){var n=typeof e;return t=t??yQ,!!t&&(n=="number"||n!="symbol"&&wQ.test(e))&&e>-1&&e%1==0&&e<t}var z3=bQ,_Q=9007199254740991;function CQ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_Q}var ay=CQ,EQ=Al,DQ=ay,xQ=Sl,AQ="[object Arguments]",SQ="[object Array]",OQ="[object Boolean]",FQ="[object Date]",BQ="[object Error]",kQ="[object Function]",PQ="[object Map]",RQ="[object Number]",TQ="[object Object]",IQ="[object RegExp]",NQ="[object Set]",LQ="[object String]",MQ="[object WeakMap]",$Q="[object ArrayBuffer]",jQ="[object DataView]",zQ="[object Float32Array]",UQ="[object Float64Array]",HQ="[object Int8Array]",WQ="[object Int16Array]",VQ="[object Int32Array]",KQ="[object Uint8Array]",qQ="[object Uint8ClampedArray]",GQ="[object Uint16Array]",QQ="[object Uint32Array]",_t={};_t[zQ]=_t[UQ]=_t[HQ]=_t[WQ]=_t[VQ]=_t[KQ]=_t[qQ]=_t[GQ]=_t[QQ]=!0,_t[AQ]=_t[SQ]=_t[$Q]=_t[OQ]=_t[jQ]=_t[FQ]=_t[BQ]=_t[kQ]=_t[PQ]=_t[RQ]=_t[TQ]=_t[IQ]=_t[NQ]=_t[LQ]=_t[MQ]=!1;function YQ(e){return xQ(e)&&DQ(e.length)&&!!_t[EQ(e)]}var JQ=YQ;function XQ(e){return function(t){return e(t)}}var ZQ=XQ,Zh={exports:{}};Zh.exports,function(e,t){var n=ex,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=l}(Zh,Zh.exports);var eY=Zh.exports,tY=JQ,nY=ZQ,U3=eY,H3=U3&&U3.isTypedArray,rY=H3?nY(H3):tY,W3=rY,iY=sQ,oY=$3,sY=_i,aY=j3,uY=z3,lY=W3,cY=Object.prototype,fY=cY.hasOwnProperty;function dY(e,t){var n=sY(e),r=!n&&oY(e),i=!n&&!r&&aY(e),o=!n&&!r&&!i&&lY(e),a=n||r||i||o,l=a?iY(e.length,String):[],c=l.length;for(var f in e)(t||fY.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||uY(f,c)))&&l.push(f);return l}var hY=dY,pY=Object.prototype;function gY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||pY;return e===n}var mY=gY;function vY(e,t){return function(n){return e(t(n))}}var yY=vY,wY=yY,bY=wY(Object.keys,Object),_Y=bY,CY=mY,EY=_Y,DY=Object.prototype,xY=DY.hasOwnProperty;function AY(e){if(!CY(e))return EY(e);var t=[];for(var n in Object(e))xY.call(e,n)&&n!="constructor"&&t.push(n);return t}var SY=AY,OY=A3,FY=ay;function BY(e){return e!=null&&FY(e.length)&&!OY(e)}var uy=BY,kY=hY,PY=SY,RY=uy;function TY(e){return RY(e)?kY(e):PY(e)}var ly=TY,IY=GG,NY=iQ,LY=ly;function MY(e){return IY(e,LY,NY)}var $Y=MY,V3=$Y,jY=1,zY=Object.prototype,UY=zY.hasOwnProperty;function HY(e,t,n,r,i,o){var a=n&jY,l=V3(e),c=l.length,f=V3(t),h=f.length;if(c!=h&&!a)return!1;for(var g=c;g--;){var m=l[g];if(!(a?m in t:UY.call(t,m)))return!1}var y=o.get(e),v=o.get(t);if(y&&v)return y==t&&v==e;var p=!0;o.set(e,t),o.set(t,e);for(var E=a;++g<c;){m=l[g];var _=e[m],b=t[m];if(r)var x=a?r(b,_,m,t,e,o):r(_,b,m,e,t,o);if(!(x===void 0?_===b||i(_,b,n,r,o):x)){p=!1;break}E||(E=m=="constructor")}if(p&&!E){var O=e.constructor,B=t.constructor;O!=B&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof B=="function"&&B instanceof B)&&(p=!1)}return o.delete(e),o.delete(t),p}var WY=HY,VY=iu,KY=hi,qY=VY(KY,"DataView"),GY=qY,QY=iu,YY=hi,JY=QY(YY,"Promise"),XY=JY,ZY=iu,eJ=hi,tJ=ZY(eJ,"Set"),nJ=tJ,rJ=iu,iJ=hi,oJ=rJ(iJ,"WeakMap"),sJ=oJ,cy=GY,fy=iy,dy=XY,hy=nJ,py=sJ,K3=Al,uu=O3,q3="[object Map]",aJ="[object Object]",G3="[object Promise]",Q3="[object Set]",Y3="[object WeakMap]",J3="[object DataView]",uJ=uu(cy),lJ=uu(fy),cJ=uu(dy),fJ=uu(hy),dJ=uu(py),Ns=K3;(cy&&Ns(new cy(new ArrayBuffer(1)))!=J3||fy&&Ns(new fy)!=q3||dy&&Ns(dy.resolve())!=G3||hy&&Ns(new hy)!=Q3||py&&Ns(new py)!=Y3)&&(Ns=function(e){var t=K3(e),n=t==aJ?e.constructor:void 0,r=n?uu(n):"";if(r)switch(r){case uJ:return J3;case lJ:return q3;case cJ:return G3;case fJ:return Q3;case dJ:return Y3}return t});var hJ=Ns,gy=k3,pJ=P3,gJ=UG,mJ=WY,X3=hJ,Z3=_i,eF=j3,vJ=W3,yJ=1,tF="[object Arguments]",nF="[object Array]",ep="[object Object]",wJ=Object.prototype,rF=wJ.hasOwnProperty;function bJ(e,t,n,r,i,o){var a=Z3(e),l=Z3(t),c=a?nF:X3(e),f=l?nF:X3(t);c=c==tF?ep:c,f=f==tF?ep:f;var h=c==ep,g=f==ep,m=c==f;if(m&&eF(e)){if(!eF(t))return!1;a=!0,h=!1}if(m&&!h)return o||(o=new gy),a||vJ(e)?pJ(e,t,n,r,i,o):gJ(e,t,c,n,r,i,o);if(!(n&yJ)){var y=h&&rF.call(e,"__wrapped__"),v=g&&rF.call(t,"__wrapped__");if(y||v){var p=y?e.value():e,E=v?t.value():t;return o||(o=new gy),i(p,E,n,r,o)}}return m?(o||(o=new gy),mJ(e,t,n,r,i,o)):!1}var _J=bJ,CJ=_J,iF=Sl;function oF(e,t,n,r,i){return e===t?!0:e==null||t==null||!iF(e)&&!iF(t)?e!==e&&t!==t:CJ(e,t,n,r,oF,i)}var sF=oF,EJ=k3,DJ=sF,xJ=1,AJ=2;function SJ(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=n[i];var c=l[0],f=e[c],h=l[1];if(a&&l[2]){if(f===void 0&&!(c in e))return!1}else{var g=new EJ;if(r)var m=r(f,h,c,e,t,g);if(!(m===void 0?DJ(h,f,xJ|AJ,r,g):m))return!1}}return!0}var OJ=SJ,FJ=Ra;function BJ(e){return e===e&&!FJ(e)}var aF=BJ,kJ=aF,PJ=ly;function RJ(e){for(var t=PJ(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,kJ(i)]}return t}var TJ=RJ;function IJ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var uF=IJ,NJ=OJ,LJ=TJ,MJ=uF;function $J(e){var t=LJ(e);return t.length==1&&t[0][2]?MJ(t[0][0],t[0][1]):function(n){return n===e||NJ(n,e,t)}}var jJ=$J,zJ=_i,UJ=wd,HJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WJ=/^\w*$/;function VJ(e,t){if(zJ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||UJ(e)?!0:WJ.test(e)||!HJ.test(e)||t!=null&&e in Object(t)}var my=VJ,lF=oy,KJ="Expected a function";function vy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(KJ);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(vy.Cache||lF),n}vy.Cache=lF;var qJ=vy,GJ=qJ,QJ=500;function YJ(e){var t=GJ(e,function(r){return n.size===QJ&&n.clear(),r}),n=t.cache;return t}var JJ=YJ,XJ=JJ,ZJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eX=/\\(\\)?/g,tX=XJ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ZJ,function(n,r,i,o){t.push(i?o.replace(eX,"$1"):r||n)}),t}),nX=tX,cF=yd,rX=D3,iX=_i,oX=wd,sX=1/0,fF=cF?cF.prototype:void 0,dF=fF?fF.toString:void 0;function hF(e){if(typeof e=="string")return e;if(iX(e))return rX(e,hF)+"";if(oX(e))return dF?dF.call(e):"";var t=e+"";return t=="0"&&1/e==-sX?"-0":t}var aX=hF,uX=aX;function lX(e){return e==null?"":uX(e)}var cX=lX,fX=_i,dX=my,hX=nX,pX=cX;function gX(e,t){return fX(e)?e:dX(e,t)?[e]:hX(pX(e))}var pF=gX,mX=wd,vX=1/0;function yX(e){if(typeof e=="string"||mX(e))return e;var t=e+"";return t=="0"&&1/e==-vX?"-0":t}var tp=yX,wX=pF,bX=tp;function _X(e,t){t=wX(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bX(t[n++])];return n&&n==r?e:void 0}var gF=_X,CX=gF;function EX(e,t,n){var r=e==null?void 0:CX(e,t);return r===void 0?n:r}var DX=EX;function xX(e,t){return e!=null&&t in Object(e)}var AX=xX,SX=pF,OX=$3,FX=_i,BX=z3,kX=ay,PX=tp;function RX(e,t,n){t=SX(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=PX(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&kX(i)&&BX(a,i)&&(FX(e)||OX(e)))}var TX=RX,IX=AX,NX=TX;function LX(e,t){return e!=null&&NX(e,t,IX)}var MX=LX,$X=sF,jX=DX,zX=MX,UX=my,HX=aF,WX=uF,VX=tp,KX=1,qX=2;function GX(e,t){return UX(e)&&HX(t)?WX(VX(e),t):function(n){var r=jX(n,e);return r===void 0&&r===t?zX(n,e):$X(t,r,KX|qX)}}var QX=GX;function YX(e){return e}var JX=YX;function XX(e){return function(t){return t==null?void 0:t[e]}}var ZX=XX,eZ=gF;function tZ(e){return function(t){return eZ(t,e)}}var nZ=tZ,rZ=ZX,iZ=nZ,oZ=my,sZ=tp;function aZ(e){return oZ(e)?rZ(sZ(e)):iZ(e)}var uZ=aZ,lZ=jJ,cZ=QX,fZ=JX,dZ=_i,hZ=uZ;function pZ(e){return typeof e=="function"?e:e==null?fZ:typeof e=="object"?dZ(e)?cZ(e[0],e[1]):lZ(e):hZ(e)}var gZ=pZ;function mZ(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var c=a[e?l:++i];if(n(o[c],c,o)===!1)break}return t}}var vZ=mZ,yZ=vZ,wZ=yZ(),bZ=wZ,_Z=bZ,CZ=ly;function EZ(e,t){return e&&_Z(e,t,CZ)}var DZ=EZ,xZ=uy;function AZ(e,t){return function(n,r){if(n==null)return n;if(!xZ(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var SZ=AZ,OZ=DZ,FZ=SZ,BZ=FZ(OZ),kZ=BZ,PZ=kZ,RZ=uy;function TZ(e,t){var n=-1,r=RZ(e)?Array(e.length):[];return PZ(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var IZ=TZ,NZ=D3,LZ=gZ,MZ=IZ,$Z=_i;function jZ(e,t){var n=$Z(e)?NZ:MZ;return n(e,LZ(t))}var zZ=jZ;const UZ=vr(zZ),HZ=(e,{start:t,end:n})=>{const r=e.selection;let i=r.anchor;if(n&&(i=np(e,r,{matchString:n}),!i))return;let o,a;if(!(t&&(o=np(e,i,{matchString:t,skipInvalid:!0,afterMatch:!0}),!o||(a=np(e,i,{matchString:t,skipInvalid:!0}),!WZ(e,a)))))return{afterStartMatchPoint:o,beforeStartMatchPoint:a,beforeEndMatchPoint:i}},WZ=(e,t)=>{const n=VZ(e,t);if(n){const r=C.string(e,n)??"";if(r){const i=new RegExp("\\S+");return!r.match(i)}}return!0},np=(e,t,n)=>{if(!n||!n.match&&!n.matchString)return C.before(e,t,n);const r=!n.unit||n.unit==="offset",i=n.matchString?sc(n.matchString):[""];let o;return i.some(a=>{var m,y;let l=t,c=C.point(e,t,{edge:"end"});const f=a.length+1,h=Array.from({length:f});let g=0;for(;;){const v=C.before(e,l,n);if(!v||FA(e,{at:{anchor:v,focus:c}}))return;const p=C.string(e,{anchor:v,focus:c})??"";let E=p;if(r&&f&&(h.unshift({point:v,text:p}),h.pop(),E=UZ(h.slice(0,-1),"text").join("")),a===E||(m=n.match)!=null&&m.call(n,{beforeString:E,beforePoint:v,at:t}))return n.afterMatch?f&&r?(o=(y=h.at(-1))==null?void 0:y.point,!!o):(o=c,!0):(o=v,!0);if(c=v,l=v,g+=1,!n.skipInvalid&&(!a||g>=a.length))return}}),o},VZ=(e,t,n)=>{const r=np(e,t,n);if(!r)return;const i=C.point(e,t,{edge:"end"});return{anchor:r,focus:i}},KZ=({match:e,trigger:t})=>{let n,r;typeof e=="object"?(n=e.start,r=e.end):(n=e,r=n.split("").reverse().join(""));const i=t?sc(t):[r.slice(-1)];return r=t?r:r.slice(0,-1),{start:n,end:r,triggers:i}},qZ=(e,{key:t,at:n,shouldChange:r=!0,...i})=>{const o=n??e.selection;if(t=sc(t),o){if(q.isRange(o)&&q.isExpanded(o))K.unsetNodes(e,t,{at:o,match:a=>Ee.isText(a),split:!0,...i});else if(e.selection){const a=C.marks(e)??{};t.forEach(l=>{delete a[l]}),e.marks=a,r&&e.onChange()}}},GZ=(e,{type:t,text:n,trigger:r,match:i,ignoreTrim:o})=>{if(!t)return!1;const a=e.selection,l=sc(i);for(const c of l){const{start:f,end:h,triggers:g}=KZ({match:c,trigger:r});if(!g.includes(n))continue;const m=HZ(e,{start:f,end:h});if(!m)continue;const{afterStartMatchPoint:y,beforeEndMatchPoint:v,beforeStartMatchPoint:p}=m;let E={anchor:y,focus:v};if(!o){const b=C.string(e,E)??"";if(b.trim()!==b)continue}h&&K.delete(e,{at:{anchor:v,focus:a.anchor}});const _=sc(t);if(!de.has(e,E.focus.path)){const b=C.previous(e);if(b){const x=Array.from(de.nodes(b[0]));x.length>0&&Ee.isText(x[x.length-1][0])&&(E={...E,focus:{path:b[1],offset:x[x.length-1][0].text.length}})}}return K.select(e,E),_.forEach(b=>{e.addMark(b,!0)}),K.collapse(e,{edge:"end"}),qZ(e,{key:_,shouldChange:!1}),K.delete(e,{at:{anchor:p,focus:y}}),!0}return!1},Lt="bold",lt="italic",mt="underline",dt="strikethrough",QZ=[{mode:"mark",type:[lt,dt,mt,Lt],match:"***__~~"},{mode:"mark",type:[lt,dt,mt,Lt],match:"**___~~"},{mode:"mark",type:[mt,Lt,lt],match:"__***"},{mode:"mark",type:[mt,Lt,lt],match:"***__"},{mode:"mark",type:[mt,Lt,lt],match:"**___"},{mode:"mark",type:[mt,Lt,lt],match:"___**"},{mode:"mark",type:[dt,Lt,lt],match:"***~~"},{mode:"mark",type:[dt,Lt,lt],match:"~~***"},{mode:"mark",type:[dt,Lt,lt],match:"~~_**"},{mode:"mark",type:[dt,Lt,lt],match:"**_~~"},{mode:"mark",type:[dt,Lt,mt],match:"~~__**"},{mode:"mark",type:[dt,Lt,mt],match:"~~**__"},{mode:"mark",type:[dt,Lt,mt],match:"**~~__"},{mode:"mark",type:[dt,Lt,mt],match:"**__~~"},{mode:"mark",type:[dt,Lt,mt],match:"__**~~"},{mode:"mark",type:[dt,Lt,mt],match:"__~~**"},{mode:"mark",type:[lt,dt,mt],match:"_~~__"},{mode:"mark",type:[lt,dt,mt],match:"*~~__"},{mode:"mark",type:[lt,dt,mt],match:"~~___"},{mode:"mark",type:[lt,dt,mt],match:"~~__*"},{mode:"mark",type:[lt,dt,mt],match:"~~*__"},{mode:"mark",type:[lt,dt,mt],match:"__*~~"},{mode:"mark",type:[lt,dt,mt],match:"___~~"},{mode:"mark",type:[lt,dt,mt],match:"__~~*"},{mode:"mark",type:[Lt,lt],match:"***"},{mode:"mark",type:[mt,Lt],match:"__**"},{mode:"mark",type:[mt,Lt],match:"**__"},{mode:"mark",type:[dt,Lt],match:"**~~"},{mode:"mark",type:[dt,Lt],match:"~~**"},{mode:"mark",type:[mt,lt],match:"__*"},{mode:"mark",type:[mt,lt],match:"*__"},{mode:"mark",type:[mt,lt],match:"___"},{mode:"mark",type:[dt,lt],match:"~~*"},{mode:"mark",type:[dt,lt],match:"*~~"},{mode:"mark",type:[dt,lt],match:"_~~"},{mode:"mark",type:[dt,lt],match:"~~_"},{mode:"mark",type:Lt,match:"**"},{mode:"mark",type:lt,match:"*"},{mode:"mark",type:lt,match:"_"},{mode:"mark",type:mt,match:"__"},{mode:"mark",type:dt,match:"~~"},{mode:"mark",type:"code",match:"`"}],YZ=e=>{const{insertText:t}=e;return e.insertText=n=>{if(e.selection&&!q.isCollapsed(e.selection))return t(n);for(const r of QZ)if(GZ(e,{...r,text:n}))return;t(n)},e},JZ=({clearDraft:e,draftKey:t,focusOnLoad:n=!1,forum:r,initialState:i,isEdit:o,lang:a="en",thread:l,translations:c,onSubmit:f,setAlert:h})=>{var J;const{i18n:g}=zn(),[m,y]=D.useState(n),[v,p]=tee(t,null),E=D.useRef(null),_=IO.use.init();D.useEffect(()=>{_({forum:r,thread:l})},[]);const b=()=>{y(!0),EA(x)&&K.select(x,C.end(x,[]))},x=D.useMemo(()=>YZ(PW(BW(kW(SW(TW(QW(YW(xW(RW(XW(rM(a2())))))))))))),[]),O=D.useCallback(Y=>W(KU,{...Y,forum:r}),[]),B=D.useCallback(Y=>W(YU,{...Y}),[]),k=D.useCallback(()=>yM(x),[x]),{findMention:P,handleKeyDown:I,MentionList:Q,setReference:j}=UW({editor:x,thread:l}),{open:X,getInputProps:$,getRootProps:U,isDragActive:T}=mW({editor:x,onError:Y=>h(Y,{type:"error"})}),{ref:G}=U(),{isVisible:se,triggerPlaceholder:re}=wW({editor:x,initialState:!i&&!v}),V=Y=>{G.current=Y,j(Y)},te=Y=>{I(Y),vM(x,Y,Ce),UM(x,Y)},le=LR(()=>{x.children.length===1&&!de.string(x.children[0])?p(null):p([new Date().getTime(),x.children])},500),ce=()=>{P(),o||le(),re()};D.useEffect(()=>{c&&g.addResourceBundle(a,NE,c).changeLanguage(a)},[a,c]);const ye=()=>{if(o&&i){const ge=new DOMParser().parseFromString(i,"text/html");return C3(ge.body)}let Y=e;if(!Y&&v)try{const[ge,he]=v;if(new Date().getTime()-ge>=pM||!he)Y=!0;else return he}catch{}return Y&&p(null),vA},De=D.useMemo(()=>(x.children=ye(),C.normalize(x,{force:!0}),x.children),[x]);D.useEffect(()=>{!m&&T&&y(!0)},[T]);const Ce=()=>f(_V(x)),[L,ne]=D.useState(((J=E==null?void 0:E.current)==null?void 0:J.offsetWidth)||0);return eee(E.current,()=>{var Y;return ne(((Y=E==null?void 0:E.current)==null?void 0:Y.offsetWidth)||0)}),{editor:x,hasFocused:m,isDragActive:T,MentionList:Q,getInputProps:$,getRootProps:U,handleDOMBeforeInput:k,handleOnChange:ce,handleOnKeyDown:te,handleOnFocus:b,openUpload:X,renderElement:O,renderLeaf:B,editorValue:De,submitPost:Ce,width:L,containerRef:E,setRootRef:V,isPlaceholderVisible:se}},lu={container:"_container_ylcfx_1","editor-expanded":"_editor-expanded_ylcfx_13",editor:"_editor_ylcfx_13","editor-container-expanded":"_editor-container-expanded_ylcfx_37","editor-container":"_editor-container_ylcfx_37","placeholder-submit-button":"_placeholder-submit-button_ylcfx_55"},XZ=({alert:e,allowUploads:t,clearDraft:n,draftKey:r,focusOnLoad:i,forum:o,gifPickerEnabled:a,initialState:l,isEdit:c,lang:f,placeholder:h,thread:g,translations:m,clearAlert:y,onCancel:v,onSubmit:p,setAlert:E})=>{const{t:_}=zn(),{editor:b,hasFocused:x,isDragActive:O,MentionList:B,getInputProps:k,getRootProps:P,handleDOMBeforeInput:I,handleOnChange:Q,handleOnFocus:j,handleOnKeyDown:X,openUpload:$,renderElement:U,renderLeaf:T,editorValue:G,submitPost:se,width:re,containerRef:V,setRootRef:te,isPlaceholderVisible:le}=JZ({clearDraft:n,draftKey:r,focusOnLoad:i,forum:o,initialState:l,isEdit:c,lang:f,thread:g,translations:m,onSubmit:p,setAlert:E});return W("div",{className:lu.container,...t?P():{},ref:te,children:Ve(ZL,{editor:b,initialValue:G,onChange:Q,children:[Ve("div",{className:x?lu["editor-container-expanded"]:lu["editor-container"],ref:V,children:[h&&le&&W(yW,{placeholder:h}),W(UL,{onDrop:ce=>ce.preventDefault(),className:x?lu["editor-expanded"]:lu.editor,renderElement:U,onDOMBeforeInput:I,renderLeaf:T,spellCheck:!0,autoFocus:i,onFocus:j,onKeyDown:X}),(e==null?void 0:e.message)&&W(uM,{clearAlert:y,...e}),x?Ve(DW,{width:re,editor:b,submitPost:se,isEdit:c,onCancel:v,uploadButton:t&&W(GU,{title:_("Upload Images"),open:$}),gifPickerButton:a&&W(dH,{forum:o}),children:[W(ec,{format:"bold",title:_("Bold")}),W(ec,{format:"italic",title:_("Italic")}),W(ec,{format:"underline",title:_("Underline")}),W(ec,{format:"strikethrough",title:_("Strikethrough")}),W(PU,{}),W(XU,{}),W(ec,{format:"code",title:_("Code")}),W(HM,{format:"block-quote",title:_("Quote")}),W(IW,{})]}):W("button",{className:lu["placeholder-submit-button"],onClick:se,"aria-hidden":"true",type:"button",children:_("Comment")})]}),t&&W(hH,{isDragActive:O,getInputProps:k}),B]})})},ZZ=()=>{const e=_m(),t=s6.use.init();D.useEffect(()=>{t()},[]),window.loadTextEditor=(n,r,i)=>{if(n)return i||(i=Cm(n)),i.render(W(OE,{client:e,children:W(XZ,{...r})})),i}};function yy(e,t){const[n,r]=D.useState(!1),i=D.useRef(null);return D.useEffect(()=>{i.current=new IntersectionObserver(([o])=>r(o.isIntersecting),t)},[]),D.useEffect(()=>{var o;return e.current&&((o=i.current)==null||o.observe(e.current)),()=>{var a;return(a=i.current)==null?void 0:a.disconnect()}},[]),n}const eee=(e,t,n)=>{const r=D.useRef(new ResizeObserver(t)),i=e&&"current"in e?e.current:e;return D.useLayoutEffect(()=>{var o;return i&&((o=r.current)==null||o.observe(i,n)),()=>{var a;return(a=r.current)==null?void 0:a.disconnect()}},[i,r]),r.current},tee=(e,t)=>{const[n,r]=D.useState(tr.getItem(e)),i=D.useCallback(o=>{typeof o>"u"||o===null?(tr.removeItem(e),r(null)):(tr.setItem(e,o),r(o))},[e]);return D.useEffect(()=>{tr.getItem(e)===null&&typeof t<"u"&&i(t)},[e,t]),[n||t,i]},nee={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class rp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||nee,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new rp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new rp(this.logger,t)}}var Ci=new rp;class ip{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[l,c]=a;for(let f=0;f<c;f++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[l,c]=a;for(let f=0;f<c;f++)l.apply(l,[t,...r])})}}function ac(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function mF(e){return e==null?"":""+e}function ree(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const iee=/###/g;function uc(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(iee,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a<o.length-1;){if(i())return{};const l=r(o[a]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++a}return i()?{}:{obj:e,k:r(o[a])}}function vF(e,t,n){const{obj:r,k:i}=uc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),l=uc(e,a,Object);for(;l.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),l=uc(e,a,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n}function oee(e,t,n,r){const{obj:i,k:o}=uc(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}function op(e,t){const{obj:n,k:r}=uc(e,t);if(n)return n[r]}function see(e,t,n){const r=op(e,n);return r!==void 0?r:op(t,n)}function yF(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):yF(e[r],t[r],n):e[r]=t[r]);return e}function cu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var aee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function uee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>aee[t]):e}class lee{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const cee=[" ",",","?","!",";"],fee=new lee(20);function dee(e,t,n){t=t||"",n=n||"";const r=cee.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=fee.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function wy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,l="";for(let c=o;c<r.length;++c)if(c!==o&&(l+=n),l+=r[c],a=i[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<r.length-1)continue;o+=c-o+1;break}i=a}return i}function sp(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class wF extends ip{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const c=op(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!a||typeof r!="string"?c:wy(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),vF(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=op(this.data,l)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?yF(c,r,o):c={...c,...r},vF(this.data,l,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var bF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const _F={};class ap extends ip{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ree(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ci.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!dee(t,r,i);if(a&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const f=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(f[0])>-1)&&(o=f.shift()),t=f.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(h){const O=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${O}${a}`,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${O}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a}const g=this.resolve(t,n);let m=g&&g.res;const y=g&&g.usedKey||a,v=g&&g.exactUsedKey||a,p=Object.prototype.toString.apply(m),E=["[object Number]","[object Function]","[object RegExp]"],_=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&E.indexOf(p)<0&&!(typeof _=="string"&&p==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(g.res=O,g.usedParams=this.getUsedParamsDetails(n),g):O}if(o){const O=p==="[object Array]",B=O?[]:{},k=O?v:y;for(const P in m)if(Object.prototype.hasOwnProperty.call(m,P)){const I=`${k}${o}${P}`;B[P]=this.translate(I,{...n,joinArrays:!1,ns:l}),B[P]===I&&(B[P]=m[P])}m=B}}else if(b&&typeof _=="string"&&p==="[object Array]")m=m.join(_),m&&(m=this.extendTranslation(m,t,n,r));else{let O=!1,B=!1;const k=n.count!==void 0&&typeof n.count!="string",P=ap.hasDefaultValue(n),I=k?this.pluralResolver.getSuffix(f,n.count,n):"",Q=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",j=k&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),X=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${I}`]||n[`defaultValue${Q}`]||n.defaultValue;!this.isValidLookup(m)&&P&&(O=!0,m=X),this.isValidLookup(m)||(B=!0,m=a);const U=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:m,T=P&&X!==m&&this.options.updateMissing;if(B||O||T){if(this.logger.log(T?"updateKey":"missingKey",f,c,a,T?X:m),o){const V=this.resolve(a,{...n,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let V=0;V<se.length;V++)G.push(se[V]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(n.lng||this.language):G.push(n.lng||this.language);const re=(V,te,le)=>{const ce=P&&le!==m?le:U;this.options.missingKeyHandler?this.options.missingKeyHandler(V,c,te,ce,T,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,c,te,ce,T,n),this.emit("missingKey",V,c,te,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?G.forEach(V=>{const te=this.pluralResolver.getSuffixes(V,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&te.indexOf(`${this.options.pluralSeparator}zero`)<0&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(le=>{re([V],a+le,n[`defaultValue${le}`]||X)})}):re(G,a,X))}m=this.extendTranslation(m,t,n,g,r),B&&m===a&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${a}`),(B||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,O?m:void 0):m=this.options.parseMissingKeyHandler(m))}return i?(g.res=m,g.usedParams=this.getUsedParamsDetails(n),g):m}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const m=t.match(this.interpolator.nestingRegexp);h=m&&m.length}let g=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,r.lng||this.language,r),f){const m=t.match(this.interpolator.nestingRegexp),y=m&&m.length;h<y&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,y=new Array(m),v=0;v<m;v++)y[v]=arguments[v];return o&&o[0]===y[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):a.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=bF.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;i=h;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const m=n.count!==void 0&&typeof n.count!="string",y=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",p=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(E=>{this.isValidLookup(r)||(l=E,!_F[`${p[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(_F[`${p[0]}-${E}`]=!0,this.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(_=>{if(this.isValidLookup(r))return;a=_;const b=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,h,_,E,n);else{let O;m&&(O=this.pluralResolver.getSuffix(_,n.count,n));const B=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(b.push(h+O),n.ordinal&&O.indexOf(k)===0&&b.push(h+O.replace(k,this.options.pluralSeparator)),y&&b.push(h+B)),v){const P=`${h}${this.options.contextSeparator}${n.context}`;b.push(P),m&&(b.push(P+O),n.ordinal&&O.indexOf(k)===0&&b.push(P+O.replace(k,this.options.pluralSeparator)),y&&b.push(P+B))}}let x;for(;x=b.pop();)this.isValidLookup(r)||(o=x,r=this.getResource(_,E,x,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function by(e){return e.charAt(0).toUpperCase()+e.slice(1)}class CF{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ci.create("languageUtils")}getScriptPartFromCode(t){if(t=sp(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=by(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=by(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=by(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let hee=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],pee={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const gee=["v1","v2","v3"],mee=["v4"],EF={zero:0,one:1,two:2,few:3,many:4,other:5};function vee(){const e={};return hee.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:pee[t.fc]}})}),e}class yee{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ci.create("pluralResolver"),(!this.options.compatibilityJSON||mee.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=vee()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sp(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>EF[i]-EF[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!gee.includes(this.options.compatibilityJSON)}}function DF(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=see(e,t,n);return!o&&i&&typeof n=="string"&&(o=wy(e,n,r),o===void 0&&(o=wy(t,n,r))),o}class wee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:uee,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?cu(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?cu(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?cu(n.nestingPrefix):n.nestingPrefixEscaped||cu("$t("),this.nestingSuffix=n.nestingSuffix?cu(n.nestingSuffix):n.nestingSuffixEscaped||cu(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}const h=v=>{if(v.indexOf(this.formatSeparator)<0){const b=DF(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:v}):b}const p=v.split(this.formatSeparator),E=p.shift().trim(),_=p.join(this.formatSeparator).trim();return this.format(DF(n,c,E,this.options.keySeparator,this.options.ignoreJSONStructure),_,r,{...i,...n,interpolationkey:E})};this.resetRegExp();const g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>f(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?f(this.escape(v)):f(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const p=o[1].trim();if(a=h(p),a===void 0)if(typeof g=="function"){const _=g(t,o,i);a=typeof _=="string"?_:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))a="";else if(m){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=mF(a));const E=v.safeValue(a);if(t=t.replace(o[0],E),m?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function l(c,f){const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const g=c.split(new RegExp(`${h}[ ]*{`));let m=`{${g[1]}`;c=g[0],m=this.interpolate(m,a);const y=m.match(/'/g),v=m.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(m=m.replace(/'/g,'"'));try{a=JSON.parse(m),f&&(a={...f,...a})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,p),`${c}${h}${m}`}return delete a.defaultValue,c}for(;i=this.nestingRegexp.exec(t);){let c=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let f=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const h=i[1].split(this.formatSeparator).map(g=>g.trim());i[1]=h.shift(),c=h,f=!0}if(o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=mF(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),f&&(o=c.reduce((h,g)=>this.format(h,g,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function bee(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...c]=a.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=f),f==="false"&&(n[l.trim()]=!1),f==="true"&&(n[l.trim()]=!0),isNaN(f)||(n[l.trim()]=parseInt(f,10))})}return{formatName:t,formatOptions:n}}function fu(e){const t={};return function(r,i,o){const a=i+JSON.stringify(o);let l=t[a];return l||(l=e(sp(i),o),t[a]=l),l(r)}}class _ee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ci.create("formatter"),this.options=t,this.formats={number:fu((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:fu((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:fu((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:fu((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:fu((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fu(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{const{formatName:f,formatOptions:h}=bee(c);if(this.formats[f]){let g=l;try{const m=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=m.locale||m.lng||i.locale||i.lng||r;g=this.formats[f](l,y,{...h,...i,...m})}catch(m){this.logger.warn(m)}return g}else this.logger.warn(`there was no format function for ${f}`);return l},t)}}function Cee(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Eee extends ip{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ci.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},c={};return t.forEach(f=>{let h=!0;n.forEach(g=>{const m=`${f}|${g}`;!r.reload&&this.store.hasResourceBundle(f,g)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?a[m]===void 0&&(a[m]=!0):(this.state[m]=1,h=!1,a[m]===void 0&&(a[m]=!0),o[m]===void 0&&(o[m]=!0),c[g]===void 0&&(c[g]=!0)))}),h||(l[f]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(c=>{oee(c.loaded,[o],a),Cee(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{l[f]||(l[f]={});const h=c.loaded[f];h.length&&h.forEach(g=>{l[f][g]===void 0&&(l[f][g]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(h=>l(null,h)).catch(l):l(null,f)}catch(f){l(f)}return}return c(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...a,isUpdate:o},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(t,n,r,i,c):h=f(t,n,r,i),h&&typeof h.then=="function"?h.then(g=>l(null,g)).catch(l):l(null,h)}catch(h){l(h)}else f(t,n,r,i,l,c)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function xF(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function AF(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function up(){}function Dee(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class lc extends ip{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=AF(t),this.services={},this.logger=Ci,this.modules={external:[]},Dee(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=xF();this.options={...i,...this.options,...AF(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?Ci.init(o(this.modules.logger),this.options):Ci.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=_ee);const g=new CF(this.options);this.store=new wF(this.options.resources,this.options);const m=this.services;m.logger=Ci,m.resourceStore=this.store,m.languageUtils=g,m.pluralResolver=new yee(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=o(h),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new wee(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Eee(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(y){for(var v=arguments.length,p=new Array(v>1?v-1:0),E=1;E<v;E++)p[E-1]=arguments[E];t.emit(y,...p)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new ap(this.services,this.options),this.translator.on("*",function(y){for(var v=arguments.length,p=new Array(v>1?v-1:0),E=1;E<v;E++)p[E-1]=arguments[E];t.emit(y,...p)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=up),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const c=ac(),f=()=>{const h=(g,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),r(g,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:up;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=ac();return t||(t=this.languages),n||(n=this.options.ns),r||(r=up),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&bF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=ac();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,f)=>{f?(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||o(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,h=>{a(h,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(a,l){let c;if(typeof l!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),g=2;g<f;g++)h[g-2]=arguments[g];c=i.options.overloadTranslationOptionHandler([a,l].concat(h))}else c={...l};c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,c.keyPrefix=c.keyPrefix||r||o.keyPrefix;const m=i.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(a)?y=a.map(v=>`${c.keyPrefix}${m}${v}`):y=c.keyPrefix?`${c.keyPrefix}${m}${a}`:a,i.t(y,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const f=this.services.backendConnector.state[`${l}|${c}`];return f===-1||f===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=ac();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ac();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new CF(xF());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:up;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new lc(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new wF(this.store.data,i),o.services.resourceStore=o.store),o.translator=new ap(o.services,i),o.translator.on("*",function(l){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];o.emit(l,...f)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Cn=lc.createInstance();Cn.createInstance=lc.createInstance,Cn.createInstance,Cn.dir,Cn.init,Cn.loadResources,Cn.reloadResources,Cn.use,Cn.changeLanguage,Cn.getFixedT,Cn.t,Cn.exists,Cn.setDefaultNamespace,Cn.hasLoadedNamespace,Cn.loadNamespaces,Cn.loadLanguages,Cn.use(v6).init({fallbackLng:"en",ns:NE,interpolation:{escapeValue:!1,prefix:"%(",suffix:")s"}});const xee=Object.freeze(Object.defineProperty({__proto__:null,default:()=>(ZZ(),W(Qs,{}))},Symbol.toStringTag,{value:"Module"}))})();