ryugi-artifacts 1.90.1 → 1.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +4 -4
- package/dist/runtime/ryugi-mockup.js +2 -2
- package/dist/server.cjs +341 -337
- package/dist/viewer/ActionBar-BRoDGCkY.js +1 -0
- package/dist/viewer/{ActionIcon-BkkUSRjH.js → ActionIcon-DOW673Eh.js} +1 -1
- package/dist/viewer/{AgentStatusPill-B_gQJ7RH.js → AgentStatusPill-DZtk9E3o.js} +1 -1
- package/dist/viewer/{ArtboardLayout-BFrIQx0V.js → ArtboardLayout-C3MsI8dD.js} +1 -1
- package/dist/viewer/ArtifactList-Cx1RIsDo.js +2 -0
- package/dist/viewer/{Avatar-B-eOKlrI.js → Avatar-BmJHnWu5.js} +1 -1
- package/dist/viewer/{BottomSheet-C5fJEPwr.js → BottomSheet-DB-my5hE.js} +1 -1
- package/dist/viewer/{Canvas-BxnpeUD5.js → Canvas-sZRFev3A.js} +1 -1
- package/dist/viewer/CloudLegalNotice-C5Zmn-Kq.js +1 -0
- package/dist/viewer/{Composer-DbJMfj4B.js → Composer-C181zFr2.js} +1 -1
- package/dist/viewer/{CompositeItem-D6Grdwe9.js → CompositeItem-DdrQvGNe.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-jOrRyMod.js → DocumentExportMenu-DlJy-GX_.js} +1 -1
- package/dist/viewer/DocumentLayout-7cs04Pj0.js +2 -0
- package/dist/viewer/{DocumentPage-wMUKIU6L.js → DocumentPage-DzSwQrcy.js} +1 -1
- package/dist/viewer/{DraggablePanel-_fhhAG-X.js → DraggablePanel-B_Z6lFtZ.js} +1 -1
- package/dist/viewer/{DropdownMenu-DEZv3lcp.js → DropdownMenu-DdTUlelb.js} +1 -1
- package/dist/viewer/{FieldControl-Bo-v3GuS.js → FieldControl-Bd_9-OEp.js} +1 -1
- package/dist/viewer/{GroupVerdict-X1bIeD9E.js → GroupVerdict-BDJpXmm5.js} +1 -1
- package/dist/viewer/{HtmlLayout-_H1bOwNC.js → HtmlLayout-D1iu2aXc.js} +1 -1
- package/dist/viewer/{Input-BKi9mlk9.js → Input-CMTtasZR.js} +1 -1
- package/dist/viewer/{MenuTrigger-fR6BHPlc.js → MenuTrigger-Bs4m5Kx-.js} +1 -1
- package/dist/viewer/{PhoneArtboardBar-BlHeQ5nQ.js → PhoneArtboardBar-CxCpLUjz.js} +1 -1
- package/dist/viewer/{PhoneSheet-4iN09S2z.js → PhoneSheet-8bhKHwGM.js} +1 -1
- package/dist/viewer/{Popover-C-Y2wdjG.js → Popover-D_3uCl3a.js} +1 -1
- package/dist/viewer/{PreviewLayout-5k3DWguD.js → PreviewLayout-CTZLAM7A.js} +2 -2
- package/dist/viewer/PublishMenu-D6SyP44P.js +1 -0
- package/dist/viewer/{ReportLayout-Bx-CuT6E.js → ReportLayout-V20hFRAx.js} +1 -1
- package/dist/viewer/{Segmented-BKYgxGuQ.js → Segmented-BPy8R870.js} +1 -1
- package/dist/viewer/{Select-CFzU9n8s.js → Select-D-9ZDPyW.js} +1 -1
- package/dist/viewer/{SlidesLayout-Cd5fG0WF.js → SlidesLayout-D-sOrVtl.js} +1 -1
- package/dist/viewer/{SnapshotDocument-BJsofu8C.js → SnapshotDocument-Dm7LeQZ_.js} +1 -1
- package/dist/viewer/{SplitFrame-X4Ow9IDI.js → SplitFrame-Baiqzo4T.js} +1 -1
- package/dist/viewer/{ThreadView-CSNi-jkR.js → ThreadView-BQlLijyz.js} +1 -1
- package/dist/viewer/{VerifyLayout-Dtn2s3eO.js → VerifyLayout-CoAzuSCZ.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-DeEtAWIt.js → VirtualizedEditor-uWe43zaI-C4ICSCuv.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-B5x8Y6Vr.js → VirtualizedRenderer-C_d95FXi-BQeBsHvf.js} +1 -1
- package/dist/viewer/{WarningsBadge-DK6jitN9.js → WarningsBadge-Bej9fG8S.js} +1 -1
- package/dist/viewer/{WhiteboardLayout-uGdoT-6j.js → WhiteboardLayout-DqD3I1rp.js} +1 -1
- package/dist/viewer/{WhiteboardModal-Da83M5b8.js → WhiteboardModal-Ixf61UaL.js} +1 -1
- package/dist/viewer/{WritingCursor-BlBGqT04.js → WritingCursor-yW4BjkZd.js} +1 -1
- package/dist/viewer/{anchor-Dkeo42In.js → anchor-EMUWBHSH.js} +1 -1
- package/dist/viewer/{api-C3dvGxX5.js → api-DNnTZsO_.js} +1 -1
- package/dist/viewer/{artifact-list-BwpNpkyq.js → artifact-list-BSgndxQ4.js} +1 -1
- package/dist/viewer/{auto-publish-CDs3TjLm.js → auto-publish-twnW6xoW.js} +1 -1
- package/dist/viewer/channel-CY7kUBDr.js +4 -0
- package/dist/viewer/{dist-BxinZyZk.js → dist-B0x0o9Pb.js} +1 -1
- package/dist/viewer/{dist-B3ei1U7R.js → dist-B3NbiGwJ.js} +1 -1
- package/dist/viewer/{dist-CdkpekdJ.js → dist-BQOI82kb.js} +1 -1
- package/dist/viewer/{dist-DXMpyaLL.js → dist-BVSanaa2.js} +1 -1
- package/dist/viewer/{dist-jT2cCucx.js → dist-BZqEij7O.js} +1 -1
- package/dist/viewer/{dist-Bqt0Nms_.js → dist-Ba6XB8RM.js} +1 -1
- package/dist/viewer/{dist-D2NQ-0WS.js → dist-BfwXuc5g.js} +1 -1
- package/dist/viewer/{dist-TfisbEZU.js → dist-BitW67eM.js} +1 -1
- package/dist/viewer/{dist-CMZEQ3D8.js → dist-ByDOTw8H.js} +1 -1
- package/dist/viewer/{dist-BukHyuUD.js → dist-BzjtcMi4.js} +1 -1
- package/dist/viewer/{dist-D1TZmUy2.js → dist-C47H-97E.js} +1 -1
- package/dist/viewer/{dist-BKpEpCdQ.js → dist-CFJVzPoD.js} +1 -1
- package/dist/viewer/{dist-jIiR8m0U.js → dist-CYT6aYC9.js} +1 -1
- package/dist/viewer/{dist-DrFB2WEH.js → dist-CdYr0tgW.js} +1 -1
- package/dist/viewer/{dist-DuoSPrjm.js → dist-D-re3TMy.js} +1 -1
- package/dist/viewer/{dist-Civn_DKj.js → dist-D3tuM_93.js} +1 -1
- package/dist/viewer/{dist-BAm-L6jq.js → dist-DB6yEMHx.js} +1 -1
- package/dist/viewer/{dist-SfCZskkL.js → dist-DQMcZZV2.js} +1 -1
- package/dist/viewer/{dist-C_TockDr.js → dist-DV_FQQIu.js} +1 -1
- package/dist/viewer/{dist-DVhz-_bc.js → dist-DhEXKdkq.js} +1 -1
- package/dist/viewer/{dist-yUuN5m6d.js → dist-DrCTMejD.js} +2 -2
- package/dist/viewer/{dist-lSXMn1nU.js → dist-Dw6ZMZzF.js} +1 -1
- package/dist/viewer/{dist-DRKuf5Bg.js → dist-DzzL0VN1.js} +1 -1
- package/dist/viewer/{dist-Dt2nihXf.js → dist-v7oEiaad.js} +1 -1
- package/dist/viewer/{editor-CfJBEmk0.js → editor-C1DrRTEt.js} +4 -4
- package/dist/viewer/{icons-PNFy842P.js → icons-0ju1nuuY.js} +1 -1
- package/dist/viewer/index.html +3 -3
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index5.css +8 -0
- package/dist/viewer/{local-split-host-D5V9qpwF.js → local-split-host-BBORBCWI.js} +1 -1
- package/dist/viewer/preview.html +5 -5
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-Bxeu0aW5.js → printDocument-DBq-Vzeh.js} +1 -1
- package/dist/viewer/{ref-DdUrW49A.js → ref-BbLlsAE7.js} +1 -1
- package/dist/viewer/{route-CkQ0XWYI.js → route-BW2jMdLw.js} +3 -3
- package/dist/viewer/{route-messages-ACCsuaoq.js → route-messages-CYWT-7Q_.js} +1 -1
- package/dist/viewer/settings-tEyycnp-.js +1 -0
- package/dist/viewer/{snap-BfpHFCc8.js → snap-Cvw1TBhz.js} +1 -1
- package/dist/viewer/{split-B7GXobHZ.js → split-Ct1Q3eOg.js} +2 -2
- package/dist/viewer/{theme-iea41XFo.js → theme-_EqLVHqM.js} +1 -1
- package/dist/viewer/{tokens.stylex-DlVCGG3q.js → tokens.stylex-DDGBDW7j.js} +1 -1
- package/dist/viewer/{url-CWxrZ4zU.js → url-CDQD-emh.js} +1 -1
- package/dist/viewer/{useArtifactFeed-Bk3Ws6HJ.js → useArtifactFeed-DwP2pmH2.js} +1 -1
- package/dist/viewer/{useCloudStatus-g5yp6m7d.js → useCloudStatus-DAU43a0o.js} +1 -1
- package/dist/viewer/{useScrollLock-DpWg1mpN.js → useScrollLock-Ck4IOT4k.js} +1 -1
- package/dist/viewer/{useTranslation-DrSn15pd.js → useTranslation-1dP32_Vj.js} +1 -1
- package/dist/viewer/{useTriggerFocusGuards-yBvGi9le.js → useTriggerFocusGuards-BUjGlBK1.js} +1 -1
- package/dist/viewer/{view-Ci1Z-J2j.js → view-9WtduJwi.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-CVTCTCRe.js → viewport-CFJHn_Y6-Cf8brV0A.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/ActionBar-DU9Ec_B9.js +0 -1
- package/dist/viewer/ArtifactList-C16MjVD-.js +0 -2
- package/dist/viewer/DocumentLayout-BgenKsde.js +0 -2
- package/dist/viewer/PublishMenu-Bh9aZ0Ig.js +0 -1
- package/dist/viewer/channel-PGvksXsS.js +0 -4
- package/dist/viewer/settings-DJPu3e_Q.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{S as t,g as n,v as r}from"./route-CkQ0XWYI.js";import{t as i}from"./react-DlmbjZJV.js";import{$ as a,B as o,Cn as s,Cr as c,Dn as l,G as u,Gn as d,H as f,Kn as p,Q as m,Qn as h,Sn as g,Sr as _,St as v,Tn as y,Tt as b,U as x,V as S,W as C,Wn as w,_t as T,bn as E,br as D,bt as ee,cr as te,et as ne,fr as re,ft as ie,gt as ae,hn as oe,ht as se,lt as ce,mn as le,mt as ue,nt as de,ot as fe,pt as pe,rt as me,st as he,tt as ge,ut as _e,vn as ve,vr as ye,vt as be,wn as xe,xn as Se,xr as Ce,xt as we,yn as Te,yt as Ee,z as De}from"./url-CWxrZ4zU.js";import{t as Oe}from"./jsx-runtime-LKYXHABd.js";import{$ as ke,B as Ae,G as je,Q as Me,S as Ne,T as Pe,V as Fe,X as Ie,Z as Le,_ as Re,c as ze,d as Be,et as Ve,h as He,k as Ue,nt as We,o as Ge,q as Ke,rt as qe,tt as Je,w as Ye,x as Xe,z as Ze}from"./mergeRefs-DM4719JU.js";import{An as Qe,C as $e,Cn as et,E as tt,Gt as nt,I as rt,In as it,Jn as at,K as ot,Nt as st,Pt as ct,R as lt,Tn as ut,Ut as dt,Vn as ft,Z as pt,Zn as mt,an as ht,b as gt,bn as _t,dt as vt,g as yt,gn as bt,hn as xt,in as St,n as Ct,on as wt,ot as Tt,pn as Et,rn as Dt,un as Ot,z as kt}from"./useScrollLock-DpWg1mpN.js";import{Tt as At}from"./MotionConfigContext-B3czw3wn.js";import{$ as jt,B as Mt,C as Nt,F as Pt,H as Ft,I as It,J as Lt,K as Rt,L as zt,P as Bt,Q as Vt,R as Ht,S as Ut,T as Wt,U as Gt,V as Kt,X as qt,Y as Jt,Z as Yt,_ as Xt,a as Zt,b as Qt,c as $t,ct as en,d as tn,et as nn,f as O,g as rn,h as an,i as on,it as sn,l as cn,lt as ln,m as un,n as dn,o as fn,ot as pn,p as mn,q as hn,r as gn,rt as _n,s as vn,tt as yn,v as bn,x as xn,y as Sn,z as Cn}from"./Popover-C-Y2wdjG.js";import{t as wn}from"./arrow-up-kdcWAnXX.js";import{d as k,f as Tn}from"./useTriggerFocusGuards-yBvGi9le.js";import{t as En}from"./chevron-right-DF87CjjE.js";import{a as Dn,i as On,n as kn,o as An,r as jn,t as Mn}from"./minus-fw2MhV13.js";import{a as Nn,c as Pn,i as Fn,n as In,o as Ln,r as Rn,s as zn,t as Bn}from"./stringifyLocale-Bn2qrvRU.js";import{t as Vn}from"./code-DZDLeByL.js";import{a as Hn,c as Un,i as Wn,l as Gn,n as Kn,o as qn,r as Jn,s as Yn,t as Xn,u as Zn}from"./trash-E1jt4Cuh.js";import{a as Qn,i as $n,n as er,o as tr,t as nr}from"./ruler-Cjcj8SUx.js";import{t as rr}from"./maximize-2-BEWXAYRs.js";import{t as ir}from"./MenuTrigger-fR6BHPlc.js";var ar={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};ar.node;var or=At(ar),sr={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};sr.node;var cr=At(sr),lr={name:`arrow-up-to-line`,size:24,node:[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]};lr.node;var ur=At(lr),dr={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};dr.node;var fr=At(dr),pr={name:`dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]};pr.node;var mr=At(pr),hr={name:`equal`,size:24,node:[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}]]};hr.node;var gr=At(hr),_r={name:`grip-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]};_r.node;var vr=At(_r),yr={name:`group`,size:24,node:[[`path`,{d:`M3 7V5c0-1.1.9-2 2-2h2`,key:`adw53z`}],[`path`,{d:`M17 3h2c1.1 0 2 .9 2 2v2`,key:`an4l38`}],[`path`,{d:`M21 17v2c0 1.1-.9 2-2 2h-2`,key:`144t0e`}],[`path`,{d:`M7 21H5c-1.1 0-2-.9-2-2v-2`,key:`rtnfgi`}],[`rect`,{width:`7`,height:`5`,x:`7`,y:`7`,rx:`1`,key:`1eyiv7`}],[`rect`,{width:`7`,height:`5`,x:`10`,y:`12`,rx:`1`,key:`1qlmkx`}]]};yr.node;var br=At(yr),xr={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};xr.node;var Sr=At(xr),Cr={name:`highlighter`,size:24,node:[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]};Cr.node;var wr=At(Cr),Tr={name:`letter-h`,size:24,node:[[`path`,{d:`M18 20V4`,key:`o2hl4u`}],[`path`,{d:`M6 12H18`,key:`1fx1vx`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}]],aliases:[`heading`]};Tr.node;var Er=At(Tr),Dr={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};Dr.node;var Or=At(Dr),kr={name:`lock-open`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]],aliases:[`unlock`]};kr.node;var Ar=At(kr),jr={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};jr.node;var Mr=At(jr),Nr={name:`move-right`,size:24,node:[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]};Nr.node;var Pr=At(Nr),Fr={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Fr.node;var Ir=At(Fr),Lr={name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]};Lr.node;var Rr=At(Lr),zr={name:`slash`,size:24,node:[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]};zr.node;var Br=At(zr),Vr={name:`spline`,size:24,node:[[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}]]};Vr.node;var Hr=At(Vr),Ur={name:`squircle`,size:24,node:[[`path`,{d:`M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9`,key:`garfkc`}]]};Ur.node;var Wr=At(Ur),Gr={name:`strikethrough`,size:24,node:[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]};Gr.node;var Kr=At(Gr),qr={name:`ungroup`,size:24,node:[[`rect`,{x:`11`,y:`14`,width:`10`,height:`7`,rx:`2`,key:`nfm8rk`}],[`rect`,{x:`3`,y:`3`,width:`10`,height:`7`,rx:`2`,key:`1ljebb`}]]};qr.node;var Jr=At(qr),Yr={name:`waypoints`,size:24,node:[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]};Yr.node;var Xr=At(Yr),Zr={name:`zoom-in`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};Zr.node;var Qr=At(Zr),$r={name:`zoom-out`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};$r.node;var ei=At($r),A=e(i(),1),j=Oe(),ti=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=A.useMemo(()=>({open:t,close:n}),[t,n]);return(0,j.jsx)(qt.Provider,{value:t,children:(0,j.jsx)(yn,{delay:i,timeoutMs:r,children:e.children})})},ni=class extends nn{constructor(){super(Vt(),`Tooltip`)}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function ri(){return new ni}var ii=A.createContext(void 0);function ai(){let e=A.useContext(ii);if(e===void 0)throw Error(Le(34));return e}var oi=A.forwardRef(function(e,t){let{render:n,className:r,value:i,defaultValue:a,onValueChange:o,disabled:s=!1,style:l,"aria-labelledby":u,...d}=e,[f,p]=A.useState(void 0),[m,h]=c({controlled:i,default:a,name:`MenuRadioGroup`}),g=We((e,t)=>{o?.(e,t),t.isCanceled||h(e)}),_=je(`div`,e,{state:{disabled:s},ref:t,props:{role:`group`,"aria-labelledby":u??f,"aria-disabled":s||void 0,...d}}),v=A.useMemo(()=>({value:m,setValue:g,disabled:s}),[m,g,s]);return(0,j.jsx)(se.Provider,{value:p,children:(0,j.jsx)(ii.Provider,{value:v,children:_})})}),si=A.memo(A.forwardRef(function(e,t){let n=we()?.RadioGroup??oi;return(0,j.jsx)(n,{...e,ref:t})})),ci=A.createContext(void 0);function li(){let e=A.useContext(ci);if(e===void 0)throw Error(Le(35));return e}var ui=A.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,value:l,style:u,...d}=e,{store:f}=b(),{value:p,setValue:m,disabled:h}=ai(),g=Ce({guess:!0,label:a}),_=Fe(i),v=f.useState(`isActive`,g.index),y=f.useState(`floatingNodeId`),x=f.useState(`itemProps`),S=f.useState(`disabled`),C=s||h||S,w=p===l,{getItemProps:T,itemRef:E}=ee({closeOnClick:c,disabled:C,highlighted:v,id:_,store:f,nativeButton:o,nodeId:y,itemMetadata:Ee}),D=A.useMemo(()=>({disabled:C,highlighted:v,checked:w}),[C,v,w]);function te(e){let t=Ze(Pe,e.nativeEvent,void 0,{preventUnmountOnClose:Je});m(l,t)}let ne=je(`div`,e,{state:D,stateAttributesMapping:be,props:[x,{role:`menuitemradio`,"aria-checked":w,onClick:te},d,T],ref:[E,t,g.ref]});return(0,j.jsx)(ci.Provider,{value:D,children:ne})}),di=A.forwardRef(function(e,t){let n=v(e,t);return n.visible?(0,j.jsx)(ui,{...e,ref:n.ref}):null}),fi=A.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=li(),c=A.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=mt(s.checked);_t({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}});let f={checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l};return je(`span`,e,{state:f,stateAttributesMapping:be,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||u})}),pi=e(t(),1),mi=new Map;function hi(e={}){let{locale:t,...n}=e,r={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...n},i=`${Bn(t)}|${JSON.stringify(r)}`,a=mi.get(i);if(a)return a;let o=new Intl.Collator(t,r),s={contains(e,t,n){if(!t)return!0;let r=Ft(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(o.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Ft(e,n);return o.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Ft(e,n),i=t.length;return r.length>=i&&o.compare(r.slice(r.length-i),t)===0}};return mi.set(i,s),s}var gi=``;function _i(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function vi(e=!0){let t=ze(),n=A.useRef(null);return A.useEffect(()=>{if(!e||bt)return;let r=n.current;if(r==null)return;let i=_i(r);if(i==null)return;let a=i.data,o=`${a}${gi}`;return i.nodeValue=o,t.start(200,()=>{i.nodeValue===o&&(i.nodeValue=a)}),()=>{t.clear(),i.nodeValue===o&&(i.nodeValue=a)}},[e,n,t]),n}function yi(e,t,n,r,i,a,o,s,c,l=2){let u=Tt(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:l,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return vt(n.current,u)?void 0:u}var bi=A.createContext(void 0),xi=A.createContext(void 0),Si=A.createContext(void 0),Ci=A.createContext(!1),wi=A.createContext(``);function Ti(){let e=A.useContext(bi);if(!e)throw Error(Le(22));return e}function Ei(){let e=A.useContext(xi);if(!e)throw Error(Le(23));return e}function Di(){let e=A.useContext(Si);if(!e)throw Error(Le(24));return e}function Oi(){return A.useContext(wi)}function ki(){return A.useContext(Ci)}var Ai={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?Mt(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>rn(t,e,n)):rn(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};function ji(e){return e==null?void 0:`${e}-popup`}function Mi(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}var Ni=hi;function Pi(e,t=!1){let{overflowY:n}=Qe(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}var Fi=Symbol(`none`),Ii={value:Fi,index:-1};function Li(e,t,n){let r=e.get(t);if(r!==void 0||n===Xt)return r;for(let[r,i]of e)if(rn(r,t,n))return i}function Ri(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:l,defaultOpen:u=!1,selectionMode:d,onItemHighlighted:f,name:p,form:m,disabled:g=!1,readOnly:_=!1,required:v=!1,inputRef:y,grid:b=!1,items:x,filteredItems:S,filter:C,filterQuery:w,openOnInputClick:T=!0,autoHighlight:D=!1,keepHighlight:ee=!1,highlightItemOnHover:ne=!0,loopFocus:ie=!0,itemToStringLabel:ae,itemToStringValue:se,isItemEqualToValue:ce=Xt,virtualized:ue=!1,inline:fe=!1,fillInputOnItemPress:pe=!0,modal:he=!1,limit:ge=-1,autoComplete:_e=`list`,formAutoComplete:ve,locale:ye,submitOnItemClick:be=!1}=e,{clearErrors:Se}=Te(),{setDirty:Ce,validityData:we,setFilled:Ee,name:De,disabled:Oe,setTouched:je,setFocused:Fe,validationMode:ze,validation:Be}=xe(),He=h(),Ge=oe({id:t}),Qe=Ni({locale:ye}),nt=Array.isArray(x)?null:x;if(nt&&typeof nt.label!=`function`)throw Error(Le(100));let at=nt?nt.data:x,ot=nt?.value,ut=ot?void 0:at,dt=A.useMemo(()=>{if(!S||!ot)return;let e=Cn(S),t=e.map(ot),n;return{values:t,findItem(r,i){if(!n){n=new Map;for(let r=0;r<t.length;r+=1)n.has(t[r])||n.set(t[r],e[r])}return Li(n,r,i)}}},[S,ot]),pt=A.useMemo(()=>nt?e=>nt.label(e,ce,e=>{let t=dt?.findItem(e,ce);return t==null?Ft(e,ae):nt.itemLabel(t)}):ae,[nt,ae,dt,ce]),mt=A.useMemo(()=>nt?Object.assign(e=>nt.itemLabel(e),{selected:e=>Ft(e,pt)}):ae,[nt,pt,ae]);function _t(e){return Ft(e,pt)}let[vt,yt]=A.useState(!1),[bt,xt]=A.useState(null),Ct=A.useRef(bt),Tt=A.useRef([]),Et=A.useRef([]),Ot=A.useRef(null),kt=A.useRef(null),At=A.useRef(null),Mt=A.useRef(null),Pt=A.useRef(null),It=A.useRef(!1),Lt=A.useRef(null),Rt=A.useRef(null),zt=A.useRef(null),Bt=A.useRef(Ii),Vt=A.useRef(null),Ht=A.useRef([]),Ut=A.useRef(null),qt=Oe||g,Jt=De??p,Yt=d===`multiple`,Zt=d===`single`,$t=s!==void 0||o!==void 0,en=at!==void 0,tn=S!==void 0,nn;nn=D===`always`?`always`:D?`input-change`:!1;let[O,an]=c({controlled:i,default:Yt?r??ke:r,name:`Combobox`,state:`selectedValue`}),on=A.useMemo(()=>C===null?()=>!0:C===void 0?Mi(Qe,mt):C,[C,Qe,mt]),sn=qe(()=>$t?o??``:Zt?_t(O):``).current,[cn,ln]=c({controlled:s,default:sn,name:`Combobox`,state:`inputValue`}),[un,dn]=c({controlled:l,default:u,name:`Combobox`,state:`open`}),fn=Kt(at),pn=!un&&bt!==null?bt:String(cn).trim(),mn=Zt?_t(O):``,hn=Zt&&!vt&&pn!==``&&mn.length===pn.length&&Qe.contains(mn,pn),gn=hn?``:w??pn,_n=en&&tn&&hn&&(!nt||nt.hasValue(O,ce)),vn=A.useMemo(()=>at?Cn(at):ke,[at]),yn=A.useMemo(()=>{if(S&&!_n)return S;if(!at)return ke;if(fn){let e=at,t=[],n=0;for(let r of e){if(ge>-1&&n>=ge)break;let e=ge>-1?ge-n:1/0,i=gn===``?r.items.slice(0,e):[];if(gn!==``)for(let t of r.items){if(i.length>=e)break;on(t,gn,mt)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(gn===``)return ge>-1?vn.slice(0,ge):vn;let e=[];for(let t of vn){if(ge>-1&&e.length>=ge)break;on(t,gn,mt)&&e.push(t)}return e},[S,_n,at,fn,gn,ge,on,mt,vn]),wn=A.useMemo(()=>{if(dt&&yn===S)return dt.values;let e=Cn(yn);return ot?e.map(e=>ot(e)):e},[yn,S,dt,ot]),k=qe(()=>{let e=null;return fe&&un&&en&&d!==`none`&&(e=Sn(wn,O,ce,Yt)),new gt({id:Ge,labelId:void 0,selectedValue:O,open:un,items:ut,selectionMode:d,name:Jt,form:m,disabled:qt,readOnly:_,required:v,grid:b,virtualized:ue,openOnInputClick:T,itemToStringLabel:pt,isItemEqualToValue:ce,modal:he,autoHighlight:nn,submitOnItemClick:be,hasInputValue:$t,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:fe,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemRoot:{props:Ve,id:Ge,selectionMode:d,disabled:qt,readOnly:_,isItemEqualToValue:ce},positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:d===`none`},{onOpenChangeComplete:Je,setOpen:Je,setInputValue:Je,setSelectedValue:Je,setIndices:Je,handleSelection:Je,forceMount:Je,requestSubmit:Je,listRef:Tt,labelsRef:Et,popupRef:Ot,emptyRef:Pt,inputRef:kt,startDismissRef:At,endDismissRef:Mt,chipsContainerRef:Lt,clearRef:Rt,valuesRef:Ht,pointerDownItemRef:Ut,selectionEventRef:zt},Ai)}).current,Tn=d===`none`?cn:O,En=A.useMemo(()=>d===`none`?Tn:Array.isArray(O)?O.map(e=>Gt(e,se)):Gt(O,se),[Tn,se,d,O]),Dn=We(f),On=We(n),kn=k.useState(`activeIndex`),An=k.useState(`selectedIndex`),jn=k.useState(`positionerElement`),Mn=k.useState(`listElement`),Nn=k.useState(`triggerElement`),Pn=k.useState(`inputElement`),Fn=k.useState(`inputGroupElement`),In=k.useState(`inline`),Ln=k.useState(`inputInsidePopup`),Rn=k.useState(`inputOwnsFormValue`),zn=Zt&&!Ln&&cn===mn,Bn=et(Nn),{openMethod:Vn,triggerProps:Hn}=me(un),Un=We(()=>En);E(Ln?Bn:kt,Ge,Tn,Un,!qt,p);let Wn=We(()=>{at?Et.current=wn.map(_t):k.set(`forceMounted`,!0)}),Gn=We((e,t,n,r)=>{if(t===-1){if(Bt.current===Ii)return;Bt.current=Ii}else Bt.current={value:e,index:t};Dn(e,Ae(n,r,{index:t}))}),Kn=We(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),k.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?Gn(void 0,-1,r,e.event):Gn(Ht.current[n],n,r,e.event)}),qn=We((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(It.current=n.reason===Ne,n.reason===`input-change`){un&&bt!==null&&xt(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&yt(!0),Vt.current={hasQuery:e};let n=k.state.listElement;if(!k.state.virtualized&&n){let e=Ot.current;for(let t of it(n.firstElementChild??n)){if(!ft(t)||(e?!ht(e,t):t.getAttribute(`role`)===`dialog`))break;if(Pi(t)){t.scrollTop=0;break}}}e&&nn&&k.state.activeIndex==null&&(un||In)&&k.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&k.state.inputInsidePopup&&(Vt.current={hasQuery:!1,selection:!0});ln(t)}}),Jn=We(e=>{let t=!e&&Ln&&!In&&cn!==``&&(String(cn).trim()===bt||cn===mn);!e&&(t||cn===``||zn)&&yt(!1),xt(null),t&&qn(``,Ze(Ne))}),[Yn,Xn]=A.useState(!1),Zn=We((t,n)=>{if(un===t)return;n.reason===`escape-key`&&en&&wn.length===0&&!Pt.current&&n.allowPropagation();let r=n,i=tt(r);if(e.onOpenChange?.(t,r),Vt.current?.hasQuery&&n.reason===`input-change`===n.isCanceled&&(Vt.current=null),!n.isCanceled&&(t&&bt!==null&&Jn(n.reason===Xe),!t&&vt&&(Zt?(In||xt(pn),pn===``&&yt(!1)):Yt&&(In||xt(pn),Ln&&Kn({activeIndex:null}),(!Ln||In)&&qn(``,Ze(Ne,n.event,void 0,{isItemPress:n.reason===Pe})))),t||Xn(i()),dn(t),!t&&Ln&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(je(!0),Fe(!1),ze===`onBlur`))){let e=d===`none`?cn:O;Be.commit(e)}}),Qn=We((e,t)=>{a?.(e,t),t.isCanceled||(an(e),(d===`none`&&Ot.current&&pe||Zt&&!k.state.inputInsidePopup)&&qn(_t(e),Ze(t.reason,t.event)))}),$n=We((e,t)=>{let n=wt(e),r=zt.current??e;zt.current=null;let i=Ze(Pe,r),a=St(n,`a`)?.getAttribute(`href`);if(a)a.startsWith(`#`)&&Zn(!1,i);else if(Yt){let e=Array.isArray(O)?O:[],n=Nt(e,t,ce),r=n?xn(e,t,ce):[...e,t];if(Qn(r,i),i.isCanceled||!(kt.current&&kt.current.value.trim()!==``))return;if(k.state.inputInsidePopup){qn(``,Ze(Ne,i.event,void 0,{isItemPress:!0}));let e=Vt.current;e&&!n&&(e.toggledValue=t)}else Zn(!1,i)}else{if(Qn(t,i),i.isCanceled)return;Zn(!1,i)}}),er=We(()=>{let e=Be.inputRef.current?.form??k.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),tr=We(()=>{if(On?.(!1),yt(!1),xt(null),Kn(d===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Yt&&kt.current&&kt.current.value!==``&&!It.current&&qn(``,Ze(Ne)),Zt){if(k.state.inputInsidePopup)kt.current&&kt.current.value!==``&&qn(``,Ze(Ne));else{let e=_t(O);kt.current&&kt.current.value!==e&&qn(e,Ze(e===``?Ne:Ue))}}}),nr=A.useMemo(()=>In&&jn?{current:St(jn,`[role="dialog"]`)}:Ot,[In,jn]),{mounted:rr,transitionStatus:ir,forceUnmount:ar}=rt({open:un,ref:nr,preventUnmountOnClose:Yn,setPreventUnmountOnClose:Xn,onUnmount:tr});A.useImperativeHandle(e.actionsRef,()=>({unmount:ar,close:()=>Zn(!1,Ze(Re))}),[ar,Zn]),Me(function(){let e=Ct.current!==null&&bt===null;if(Ct.current=bt,un&&(!e||!en)||(un||(Ut.current=null),d===`none`))return;let t=en?wn:Ht.current;Kn({selectedIndex:Sn(t,O,ce,Yt)})},[un,bt,O,d,Yt,en,wn,ce,Kn]),Me(()=>{at&&(Ht.current=wn,Tt.current.length=wn.length)},[at,wn]),Me(()=>{!un&&Vt.current?.hasQuery&&(Vt.current=null)},[un]),Me(()=>{if(!un&&In&&nr.current){Vt.current=null;return}let e=en||tn?wn:Ht.current,t=Vt.current;if(t){let n=un||In||k.state.positionerElement?.hidden===!1;if(t.hasQuery){let t=kt.current;!nn||String(cn).trim()===``||In&&nn!==`always`&&(!t||Dt(t.ownerDocument)!==t)?Vt.current=null:n&&(e[0]!==void 0||!en&&!tn)&&(k.set(`activeIndex`,0),Vt.current=null)}else if(String(cn).trim()===``&&(Vt.current=null,n)){let e=t.selection;nn===`always`&&!e&&k.state.selectionMode===`none`&&k.set(`activeIndex`,0),queueMicrotask(()=>{if(!k.state.open&&(!k.state.inline||nr.current)||kt.current&&kt.current.value.trim()!==``)return;let n=k.state.selectedValue,r=k.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:k.state.selectionMode!==`none`&&n!=null){let e=en||tn?wn:Ht.current,i=bn(e,t.toggledValue,k.state.isItemEqualToValue);k.set(`activeIndex`,i===-1?Sn(e,n,k.state.isItemEqualToValue,r):i)}else e?k.set(`activeIndex`,null):nn===`always`&&k.set(`activeIndex`,0)})}}if(!un&&!In)return;let n=k.state.activeIndex;if(n==null){if(nn===`always`&&e.length>0){k.set(`activeIndex`,0);return}Gn(void 0,-1,Ue);return}if(n>=e.length){Gn(void 0,-1,Ue),k.set(`activeIndex`,null);return}let r=e[n],i=Bt.current.value,a=i!==Fi&&rn(r,i,k.state.isItemEqualToValue);Bt.current.index===n&&a||Gn(r,n,Ue)},[kn,nn,Gn,tn,en,wn,In,un,nr,k,cn]),Me(()=>{Ee(d===`none`?String(cn)!==``:Yt?Array.isArray(O)&&O.length>0:O!=null)},[Ee,d,cn,O,Yt]),A.useEffect(()=>{en&&nn&&wn.length===0&&Kn({activeIndex:null})},[en,nn,wn.length,Kn]);function or(){un&&pn!==``&&pn!==String(sn)&&!zn&&yt(!0)}function sr(){un&&bt!==null&&Jn(!1)}let cr=!1;function lr(){!cr&&cn!==mn&&(cr=!0,qn(mn,Ze(Ue)))}function ur(){d!==`none`&&(Se(Jt),Ce(Qt(O,we.initialValue,ce)),Be.change(O),Zt&&!$t&&!Ln&&lr())}function dr(){Zt&&!$t&&!Ln&&!vt&&lr()}function fr(){d===`none`&&(Se(Jt),Ce(cn!==we.initialValue),Be.change(cn))}le(pn,or),le(un,sr),le(O,ur),le(mn,dr),le(at,dr),le(cn,fr);let pr=jt({open:In?!0:un,onOpenChange:Zn,elements:{reference:Ln?Nn:Pn,floating:jn}}),mr=b?`grid`:`listbox`,hr=un||In,gr=hr?`true`:`false`,_r=A.useMemo(()=>{let e=Pn?.tagName===`INPUT`,t=Pn==null||e,n=t||hr,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=gr,r[`aria-haspopup`]=mr,r[`aria-controls`]=hr?Mn?.id:void 0,r[`aria-autocomplete`]=_?`none`:_e),{reference:r,floating:{role:`presentation`}}},[Pn,hr,gr,mr,Mn?.id,_e,_]),vr=re(pr,{enabled:!qt&&T,event:`mousedown-only`,toggle:!1,touchOpenDelay:Ln?0:100,reason:Ye}),yr=lt(pr,{enabled:!qt&&!In,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:In?!0:void 0,outsidePress(e){let t=wt(e);return!ht(Nn,t)&&!ht(Rt.current,t)&&!ht(Lt.current,t)&&!ht(Fn,t)}}),br=te(pr,{enabled:!qt,id:Ge,listRef:Tt,activeIndex:kn,selectedIndex:An,virtual:!0,loopFocus:ie,allowEscape:ie&&!nn,focusItemOnOpen:vt||d===`none`&&!nn?!1:`auto`,focusItemOnHover:ne,resetOnPointerLeave:!ee,orientation:b?`horizontal`:void 0,rtl:He===`rtl`,disabledIndices:ke,grid:b?yi:void 0,onNavigate(e,t){(t||un||In&&e===null)&&ir!==`ending`&&Kn({activeIndex:e,type:de(t),event:t?.nativeEvent})}}),xr=A.useMemo(()=>Ke(br.reference,{onKeyDown(e){b&&k.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},yr.reference,vr.reference,_r.reference),[br.reference,yr.reference,vr.reference,_r.reference,b,k]),Sr=A.useMemo(()=>Ke($e,yr.floating),[yr.floating]),Cr=A.useMemo(()=>Ke(br.floating,_r.floating),[br.floating,_r.floating]),wr=A.useMemo(()=>{let e=br.item;return{props:e?{...e,onFocus:void 0}:Ve,id:Ge,selectionMode:d,disabled:qt,readOnly:_,isItemEqualToValue:ce}},[br.item,Ge,d,qt,_,ce]);k.useContextCallback(`setOpen`,Zn),k.useContextCallback(`setInputValue`,qn),k.useContextCallback(`setSelectedValue`,Qn),k.useContextCallback(`setIndices`,Kn),k.useContextCallback(`handleSelection`,$n),k.useContextCallback(`forceMount`,Wn),k.useContextCallback(`requestSubmit`,er),k.useContextCallback(`onOpenChangeComplete`,n),Wt(()=>{k.update({inline:fe,popupProps:Sr,listProps:Cr,inputProps:xr,triggerProps:Hn,itemRoot:wr})});let Tr={id:Ge,selectedValue:O,open:un,mounted:rr,transitionStatus:ir,items:ut,inline:fe,popupProps:Sr,listProps:Cr,inputProps:xr,triggerProps:Hn,itemRoot:wr,openMethod:Vn,selectionMode:d,name:Jt,form:m,disabled:qt,readOnly:_,required:v,grid:b,virtualized:ue,openOnInputClick:T,itemToStringLabel:pt,modal:he,autoHighlight:nn,isItemEqualToValue:ce,submitOnItemClick:be,hasInputValue:$t};Me(()=>{k.update({...Tr,inputOwnsFormValue:d===`none`&&(fe||!k.state.inputInsidePopup)})},[k,...Object.values(Tr)]);let Er=Ie(y,Be.inputRef),Dr=A.useMemo(()=>({query:pn,hasItems:en,filteredItems:yn,flatFilteredValues:wn}),[pn,en,yn,wn]),Or=A.useMemo(()=>Array.isArray(Tn)?``:Gt(Tn,se),[Tn,se]),kr=Yt&&Array.isArray(O)&&O.length>0,Ar=Yt||d===`none`&&Rn?void 0:Jt,jr=A.useMemo(()=>!Yt||!Array.isArray(O)||!Jt?null:O.map(e=>{let t=Gt(e,se);return(0,j.jsx)(`input`,{type:`hidden`,form:m,name:Jt,value:t,disabled:qt},t)}),[Yt,O,m,Jt,se,qt]),Mr=(0,j.jsxs)(A.Fragment,{children:[e.children,(0,j.jsx)(`input`,{...Be.getValidationProps(qt,{onFocus(){Ln?Nn?.focus():(kt.current||Nn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||qt||_)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=Ze(Ue,e.nativeEvent),i=()=>Ht.current.findIndex(e=>Gt(e,se).toLowerCase()===n||_t(e).toLowerCase()===n);function a(){if(Yt)return;if(d===`none`){qn(t,r);return}let e=i();e===-1&&(e=Ht.current.findIndex((e,t)=>{let r=Et.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:Ht.current[e];a!=null&&Qn?.(a,r)}Zt&&(Wn(),at&&i()===-1&&k.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:Ge&&Ar==null?`${Ge}-hidden-input`:void 0,form:m,name:Ar,autoComplete:ve,disabled:qt,required:v&&!kr,readOnly:_,value:Or,ref:Er,style:Ar?ct:st,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),jr]});return(0,j.jsx)(bi.Provider,{value:k,children:(0,j.jsx)(xi.Provider,{value:pr,children:(0,j.jsx)(Ci.Provider,{value:en,children:(0,j.jsx)(Si.Provider,{value:Dr,children:(0,j.jsx)(wi.Provider,{value:cn,children:Mr})})})})})}var zi=`data-popup-side`,Bi=`data-list-empty`,Vi={...nt,...l,popupSide:e=>e?{[zi]:e}:null,listEmpty:e=>e?{[Bi]:``}:null};function Hi(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function Ui(){return Di().filteredItems.length===0}function Wi(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Gi(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Ki=A.createContext(void 0);function qi(){return A.useContext(Ki)}var Ji=A.createContext(void 0);function Yi(e){let t=A.useContext(Ji);if(t===void 0&&!e)throw Error(Le(21));return t}var Xi=A.forwardRef(function(e,t){let n=Ti(),{buttonRef:r,getButtonProps:i}=ut({native:!1}),a=Ie(t,r);function o(e){n.context.setOpen(!1,Ze(Be,e.nativeEvent,e.currentTarget))}let s=i({onClick:o});return(0,j.jsx)(`span`,{ref:a,...s,"aria-label":`Dismiss`,tabIndex:void 0,style:ct})}),Zi=A.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...c}=e,{state:l,disabled:u,setTouched:d,validationMode:f,validation:p}=xe(),{labelId:m}=ve(),_=qi(),v=!!Yi(!0),b=Ti(),x=Oi(),S=h(),C=b.useState(`required`),w=b.useState(`disabled`),T=b.useState(`readOnly`),E=b.useState(`name`),D=b.useState(`form`),ee=b.useState(`selectionMode`),te=b.useState(`autoHighlight`),ne=b.useState(`inputProps`),re=b.useState(`triggerProps`),ie=b.useState(`open`),ae=b.useState(`mounted`),oe=b.useState(`selectedValue`),se=b.useState(`id`),ce=b.useState(`inline`),le=b.useState(`modal`),ue=!!te,fe=Hi(b),pe=u||w||i,me=Ui(),he=Se(pe,b.context.inputRef),ge=v||ce,_e=!ge||le,ye=Fe(a??(ge?void 0:se)),be=v?y:l,[Ce,we]=A.useState(null),Te=A.useRef(!1),Ee=A.useRef(null);Me(()=>{ie||(Ee.current=null)},[ie]);let De=ee===`none`&&!v,Oe=We(e=>{let t=v||b.state.inline;t&&!b.state.hasInputValue&&b.context.setInputValue(``,Ze(Ue)),b.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:De})}),ke=v?c:p.getValidationProps(pe,c);function Ae(e){b.context.setIndices({activeIndex:null,selectedIndex:null,type:de(e),event:e})}let Pe={...be,open:ie,disabled:pe,readOnly:T,popupSide:fe,listEmpty:me};function Ie(e){if(!_)return;let t,n=_.chipsRef.current.length,[r]=Wi(S);return e.key===r&&(e.currentTarget.selectionStart??0)===0&&oe.length>0&&(e.preventDefault(),t=n>0?n-1:void 0),t}let Le=je(`input`,e,{state:Pe,ref:[t,b.context.inputRef,Oe],props:[ne,re,{value:Ce??x,"aria-readonly":T||void 0,"aria-required":C||void 0,"aria-labelledby":m,disabled:pe,readOnly:T,required:ee===`none`?C:void 0,form:D,...De&&E&&{name:E},id:ye,onFocus(){if(he(!0),!ce)return;let e=Ee.current;Ee.current=null,e!=null&&Object.hasOwn(b.context.valuesRef.current,e)&&b.context.setIndices({activeIndex:e})},onBlur(){d(!0),he(!1);let e=b.state.activeIndex;if(ce&&e!==null&&te!==`always`&&(Ee.current=e,b.context.setIndices({activeIndex:null})),f===`onBlur`){let e=ee===`none`?x:oe;p.commit(e)}},onCompositionStart(e){xt||(Te.current=!0,we(e.currentTarget.value))},onCompositionEnd(e){Te.current=!1;let t=e.currentTarget.value;we(null),b.context.setInputValue(t,Ze(Xe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Te.current||!r;function a(e){!T&&!pe&&e&&i&&(b.context.setOpen(!0,Ze(Xe,t)),ue||Ae(t))}if(Te.current){let n=e.currentTarget.value;we(n),n===``&&!b.state.openOnInputClick&&!b.state.inputInsidePopup&&b.context.setOpen(!1,Ze(Ne,t));let r=n.trim(),i=ue&&r!==``;a(r),ie&&b.state.activeIndex!==null&&!i&&Ae(t);return}let o=Ze(Xe,t);if(b.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=Ze(Ne,t);s&&!b.state.inputInsidePopup&&(ee===`single`&&b.context.setSelectedValue(null,c),b.state.openOnInputClick||b.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),ie&&b.state.activeIndex!==null&&!ue&&Ae(t)},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(pe||T){T&&e.key===`Enter`&&ie&&b.state.activeIndex!==null&&Ot(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=S===`rtl`;if(e.key===`Home`){Ot(e);let n=Et&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Ot(e);let i=Et&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!ae&&e.key===`Escape`){let t=ee===`multiple`&&Array.isArray(oe)?oe.length===0:oe===null,n=Ze(He,e.nativeEvent),r=ee===`multiple`?[]:null;b.context.setInputValue(``,n),b.context.setSelectedValue(r,n),t||b.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(_&&e.key===`Backspace`&&t.value===``&&Array.isArray(oe)&&oe.length>0){let t=_.chipsRef.current.length,n=t>0?t-1:oe.length-1,r=oe.filter((e,t)=>t!==n);Ae(e.nativeEvent),b.context.setSelectedValue(r,Ze(Ue,e.nativeEvent));return}let i=Ie(e);if(i!==void 0&&_?.chipsRef.current[i]?.focus(),e.which!==229&&e.key===`Enter`&&ie){let t=b.state.activeIndex,n=e.nativeEvent;if(t===null){if(ce)return;b.context.setOpen(!1,Ze(Ue,n));return}Ot(e),Gi(b,t,n)}}},ke],stateAttributesMapping:Vi}),Re=v?(0,j.jsx)(s.Provider,{value:g,children:Le}):Le;return(0,j.jsxs)(A.Fragment,{children:[ie&&_e&&(0,j.jsx)(Xi,{ref:b.context.startDismissRef}),Re]})}),Qi=A.createContext(null);function $i(){return A.useContext(Qi)}function ea(e){let{children:t}=e,{filteredItems:n}=Di(),r=$i(),i=r?r.items:n;return(0,j.jsx)(A.Fragment,{children:i.map(t)})}var ta=A.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Ti(),l=Ei(),u=!!Yi(!0),{filteredItems:d,hasItems:f}=Di(),p=c.useState(`selectionMode`),m=c.useState(`grid`),h=c.useState(`readOnly`),g=c.useState(`listProps`),v=c.useState(`virtualized`),y=c.useState(`forceMounted`),b=p===`multiple`,x=d.length===0,S=We(e=>{c.set(`positionerElement`,e)}),C=We(e=>{c.set(`listElement`,e)}),w=A.useMemo(()=>typeof o==`function`?n||=(0,j.jsx)(ea,{children:o}):o,[o]),T={empty:x},E=l.useState(`floatingId`),D=je(`div`,e,{state:T,ref:[t,C,u?null:S],props:[g,{children:w,tabIndex:-1,id:E,role:m?`grid`:`listbox`,"aria-multiselectable":b?`true`:void 0,"aria-readonly":!m&&h?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Ot(e),Gi(c,t,e.nativeEvent)}}},s]});if(v)return D;let ee=f&&!y?void 0:c.context.labelsRef;return(0,j.jsx)(_,{elementsRef:c.context.listRef,labelsRef:ee,children:D})}),na=A.createContext(void 0);function ra(){let e=A.useContext(na);if(e===void 0)throw Error(Le(20));return e}var ia=A.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Ti(),a=i.useState(`mounted`),o=i.useState(`forceMounted`);return a||n||o?(0,j.jsx)(na.Provider,{value:n,children:(0,j.jsx)(ot,{ref:t,...r})}):null}),aa=A.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=pt,style:_,...v}=e,y=Ti(),b=Ei(),x=ra(),S=y.useState(`modal`),C=y.useState(`open`),T=y.useState(`mounted`),E=y.useState(`openMethod`),D=y.useState(`positionerElement`),ee=y.useState(`triggerElement`),te=y.useState(`inputElement`),ne=y.useState(`inputGroupElement`),re=y.useState(`inputInsidePopup`),ie=y.useState(`transitionStatus`),ae=Ui(),oe=p({anchor:i??(re?ee:ne??te),floatingRootContext:b,positionMethod:a,mounted:T,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:m,disableAnchorTracking:h,keepMounted:x,collisionAvoidance:g,lazyFlip:!0});he(C&&S,E===`touch`,D,ee);let se={open:C,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,empty:ae};Me(()=>{y.set(`popupSide`,oe.side)},[y,oe.side]);let ce=We(e=>{y.set(`positionerElement`,e)}),le=w(e,se,{styles:oe.positionerStyles,transitionStatus:ie,props:v,refs:[t,ce],hidden:!T,inert:!C});return(0,j.jsxs)(Ji.Provider,{value:oe,children:[T&&S&&(0,j.jsx)(Ct,{inert:yt(!C),cutout:ne??te??ee}),le]})}),oa={...dt,...at},sa=A.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Ti(),l=Yi(),u=Ei(),f=c.useState(`mounted`),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`popupProps`),g=c.useState(`transitionStatus`),_=c.useState(`inputInsidePopup`),v=c.useState(`inputElement`),y=c.useState(`modal`),b=c.useState(`id`),x=Ui(),S=s.id??(_?ji(b):void 0);Me(()=>(c.set(`popupId`,c.context.popupRef.current?.id||S),()=>{c.set(`popupId`,void 0)}),[c,S]),_t({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete(!0)}});let C={open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:g,empty:x},w=je(`div`,e,{state:C,ref:[t,c.context.popupRef],props:[h,{id:S,role:_?`dialog`:`presentation`,onFocus(e){let t=wt(e.nativeEvent);m!==`touch`&&(ht(c.state.listElement,t)||t===e.currentTarget)&&c.context.inputRef.current?.focus()}},d(g),s],stateAttributesMapping:oa}),T=a===void 0?_?e=>e===`touch`?c.context.popupRef.current:v:!1:a,E;E=o??(_?void 0:!1);let D=!_||y;return(0,j.jsx)(kt,{context:u,disabled:!f,modal:D,openInteractionType:m,initialFocus:T,returnFocus:E,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,j.jsxs)(A.Fragment,{children:[w,D&&(0,j.jsx)(Xi,{ref:c.context.endDismissRef})]})})}),ca=A.createContext(void 0),la=A.createContext(!1);function ua(){return A.useContext(la)}function da(e){let{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:o,style:s,value:c=null,index:l,disabled:u=!1,nativeButton:d=!1,...f}=t,p=A.useRef(null),m=Ce({guess:!0,index:l,textRef:p}),h=Ti(),g=ua(),_=ki(),{props:v,id:y,selectionMode:b,disabled:x,readOnly:S,isItemEqualToValue:C}=h.useState(`itemRoot`),w=x||u,T=b!==`none`,E=l??i??m.index,D=E!==-1,ee=h.useState(`isActive`,E),te=h.useState(`isSelected`,c),ne=A.useRef(null),re=y!=null&&D?`${y}-${E}`:void 0,ie=te&&T;Me(()=>{if(!D||!r&&l==null)return;let e=h.context.listRef.current;return e[E]=ne.current,()=>{delete e[E]}},[D,r,E,l,h]),Me(()=>{if(!D||_)return;let e=h.context.valuesRef.current;return e[E]=c,()=>{delete e[E]}},[D,_,E,c,h]),Me(()=>{if(!D||_)return;let e=h.state.selectedValue,t=h.state.selectedIndex;h.state.selectionMode===`multiple`&&Array.isArray(e)?t=Ut(E,c,h.context.valuesRef.current,e,C,t):rn(c,e,C)&&(t=E),h.set(`selectedIndex`,t)},[D,_,h,E,c,C]);let{getButtonProps:ae,buttonRef:oe}=ut({disabled:w,focusableWhenDisabled:!0,native:d,composite:!0}),se={disabled:w,selected:ie,highlighted:ee};function ce(e){function t(){h.context.handleSelection(e,c)}h.state.submitOnItemClick?(pi.flushSync(t),h.context.requestSubmit()):t()}let le={id:re,role:g?`gridcell`:`option`,"aria-selected":T?ie:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(h.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){w||S||ce(e.nativeEvent)},onMouseUp(e){let t=h.context.pointerDownItemRef.current===e.currentTarget;h.context.pointerDownItemRef.current=null,w||S||e.button!==0||t||!ee||ce(e.nativeEvent)}},ue=je(`div`,t,{ref:[oe,n,m.ref,ne],state:se,props:[v,le,f,ae]}),de=A.useMemo(()=>({selected:ie,textRef:p}),[ie,p]);return(0,j.jsx)(ca.Provider,{value:de,children:ue})}function fa(e){let{componentProps:t,forwardedRef:n}=e,r=Ti().useState(`isItemEqualToValue`),{flatFilteredValues:i}=Di(),a=t.value??null,o=bn(i,a,r);return(0,j.jsx)(da,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:o})}var pa=A.memo(A.forwardRef(function(e,t){let n=Ti().useState(`virtualized`);return n&&e.index==null?(0,j.jsx)(fa,{componentProps:e,forwardedRef:t}):(0,j.jsx)(da,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),ma=A.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=Di(),c=Ti(),l=vi(),u=s.length===0?a:null;return je(`div`,e,{ref:[t,c.context.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),ha=(0,A.createContext)(null);function ga(e,t){let n=null;return e!=null&&(n=e[1]),{getTheme:function(){return t??(n==null?null:n.getTheme())}}}function _a(){let e=(0,A.useContext)(ha);return e??function(e,...t){throw function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);return n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(e,...t)}(8),e}function va(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);return n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){throw va(e,...t)}function ya(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ba(){return typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0}var xa=ba();function Sa(){return xa&&`documentMode`in document?document.documentMode:null}var Ca=Sa();function wa(e){return xa&&e.test(navigator.platform)}function Ta(e){return xa&&e.test(navigator.userAgent)}var Ea=wa(/Mac|iPod|iPhone|iPad/),Da=Ta(/^(?!.*Seamonkey)(?=.*Firefox).*/i);function Oa(){return!(!xa||!(`InputEvent`in window)||Ca)&&`getTargetRanges`in new window.InputEvent(`input`)}var ka=Oa();function Aa(){return xa&&!window.MSStream&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints>1)}var ja=Aa(),Ma=Ta(/Android/),Na=Ta(/Version\/[\d.]+.*Safari/)&&!Ma,Pa=Ta(/^(?=.*Chrome).*/i),Fa=xa&&Ma&&Pa,Ia=Ta(/AppleWebKit\/[\d.]+/)&&Ea&&!Pa;function La(){return 2047}var Ra=La(),za=Na||ja||Ia?`\xA0`:``,Ba=`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{S as t,g as n,v as r}from"./route-BW2jMdLw.js";import{t as i}from"./react-DlmbjZJV.js";import{$ as a,B as o,Cn as s,Cr as c,Dn as l,G as u,Gn as d,H as f,Kn as p,Q as m,Qn as h,Sn as g,Sr as _,St as v,Tn as y,Tt as b,U as x,V as S,W as C,Wn as w,_t as T,bn as E,br as D,bt as ee,cr as te,et as ne,fr as re,ft as ie,gt as ae,hn as oe,ht as se,lt as ce,mn as le,mt as ue,nt as de,ot as fe,pt as pe,rt as me,st as he,tt as ge,ut as _e,vn as ve,vr as ye,vt as be,wn as xe,xn as Se,xr as Ce,xt as we,yn as Te,yt as Ee,z as De}from"./url-CDQD-emh.js";import{t as Oe}from"./jsx-runtime-LKYXHABd.js";import{$ as ke,B as Ae,G as je,Q as Me,S as Ne,T as Pe,V as Fe,X as Ie,Z as Le,_ as Re,c as ze,d as Be,et as Ve,h as He,k as Ue,nt as We,o as Ge,q as Ke,rt as qe,tt as Je,w as Ye,x as Xe,z as Ze}from"./mergeRefs-DM4719JU.js";import{An as Qe,C as $e,Cn as et,E as tt,Gt as nt,I as rt,In as it,Jn as at,K as ot,Nt as st,Pt as ct,R as lt,Tn as ut,Ut as dt,Vn as ft,Z as pt,Zn as mt,an as ht,b as gt,bn as _t,dt as vt,g as yt,gn as bt,hn as xt,in as St,n as Ct,on as wt,ot as Tt,pn as Et,rn as Dt,un as Ot,z as kt}from"./useScrollLock-Ck4IOT4k.js";import{Tt as At}from"./MotionConfigContext-B3czw3wn.js";import{$ as jt,B as Mt,C as Nt,F as Pt,H as Ft,I as It,J as Lt,K as Rt,L as zt,P as Bt,Q as Vt,R as Ht,S as Ut,T as Wt,U as Gt,V as Kt,X as qt,Y as Jt,Z as Yt,_ as Xt,a as Zt,b as Qt,c as $t,ct as en,d as tn,et as nn,f as O,g as rn,h as an,i as on,it as sn,l as cn,lt as ln,m as un,n as dn,o as fn,ot as pn,p as mn,q as hn,r as gn,rt as _n,s as vn,tt as yn,v as bn,x as xn,y as Sn,z as Cn}from"./Popover-D_3uCl3a.js";import{t as wn}from"./arrow-up-kdcWAnXX.js";import{d as k,f as Tn}from"./useTriggerFocusGuards-BUjGlBK1.js";import{t as En}from"./chevron-right-DF87CjjE.js";import{a as Dn,i as On,n as kn,o as An,r as jn,t as Mn}from"./minus-fw2MhV13.js";import{a as Nn,c as Pn,i as Fn,n as In,o as Ln,r as Rn,s as zn,t as Bn}from"./stringifyLocale-Bn2qrvRU.js";import{t as Vn}from"./code-DZDLeByL.js";import{a as Hn,c as Un,i as Wn,l as Gn,n as Kn,o as qn,r as Jn,s as Yn,t as Xn,u as Zn}from"./trash-E1jt4Cuh.js";import{a as Qn,i as $n,n as er,o as tr,t as nr}from"./ruler-Cjcj8SUx.js";import{t as rr}from"./maximize-2-BEWXAYRs.js";import{t as ir}from"./MenuTrigger-Bs4m5Kx-.js";var ar={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};ar.node;var or=At(ar),sr={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};sr.node;var cr=At(sr),lr={name:`arrow-up-to-line`,size:24,node:[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]};lr.node;var ur=At(lr),dr={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};dr.node;var fr=At(dr),pr={name:`dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]};pr.node;var mr=At(pr),hr={name:`equal`,size:24,node:[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}]]};hr.node;var gr=At(hr),_r={name:`grip-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]};_r.node;var vr=At(_r),yr={name:`group`,size:24,node:[[`path`,{d:`M3 7V5c0-1.1.9-2 2-2h2`,key:`adw53z`}],[`path`,{d:`M17 3h2c1.1 0 2 .9 2 2v2`,key:`an4l38`}],[`path`,{d:`M21 17v2c0 1.1-.9 2-2 2h-2`,key:`144t0e`}],[`path`,{d:`M7 21H5c-1.1 0-2-.9-2-2v-2`,key:`rtnfgi`}],[`rect`,{width:`7`,height:`5`,x:`7`,y:`7`,rx:`1`,key:`1eyiv7`}],[`rect`,{width:`7`,height:`5`,x:`10`,y:`12`,rx:`1`,key:`1qlmkx`}]]};yr.node;var br=At(yr),xr={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};xr.node;var Sr=At(xr),Cr={name:`highlighter`,size:24,node:[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]};Cr.node;var wr=At(Cr),Tr={name:`letter-h`,size:24,node:[[`path`,{d:`M18 20V4`,key:`o2hl4u`}],[`path`,{d:`M6 12H18`,key:`1fx1vx`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}]],aliases:[`heading`]};Tr.node;var Er=At(Tr),Dr={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};Dr.node;var Or=At(Dr),kr={name:`lock-open`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]],aliases:[`unlock`]};kr.node;var Ar=At(kr),jr={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};jr.node;var Mr=At(jr),Nr={name:`move-right`,size:24,node:[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]};Nr.node;var Pr=At(Nr),Fr={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Fr.node;var Ir=At(Fr),Lr={name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]};Lr.node;var Rr=At(Lr),zr={name:`slash`,size:24,node:[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]};zr.node;var Br=At(zr),Vr={name:`spline`,size:24,node:[[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}]]};Vr.node;var Hr=At(Vr),Ur={name:`squircle`,size:24,node:[[`path`,{d:`M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9`,key:`garfkc`}]]};Ur.node;var Wr=At(Ur),Gr={name:`strikethrough`,size:24,node:[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]};Gr.node;var Kr=At(Gr),qr={name:`ungroup`,size:24,node:[[`rect`,{x:`11`,y:`14`,width:`10`,height:`7`,rx:`2`,key:`nfm8rk`}],[`rect`,{x:`3`,y:`3`,width:`10`,height:`7`,rx:`2`,key:`1ljebb`}]]};qr.node;var Jr=At(qr),Yr={name:`waypoints`,size:24,node:[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]};Yr.node;var Xr=At(Yr),Zr={name:`zoom-in`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};Zr.node;var Qr=At(Zr),$r={name:`zoom-out`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};$r.node;var ei=At($r),A=e(i(),1),j=Oe(),ti=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=A.useMemo(()=>({open:t,close:n}),[t,n]);return(0,j.jsx)(qt.Provider,{value:t,children:(0,j.jsx)(yn,{delay:i,timeoutMs:r,children:e.children})})},ni=class extends nn{constructor(){super(Vt(),`Tooltip`)}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function ri(){return new ni}var ii=A.createContext(void 0);function ai(){let e=A.useContext(ii);if(e===void 0)throw Error(Le(34));return e}var oi=A.forwardRef(function(e,t){let{render:n,className:r,value:i,defaultValue:a,onValueChange:o,disabled:s=!1,style:l,"aria-labelledby":u,...d}=e,[f,p]=A.useState(void 0),[m,h]=c({controlled:i,default:a,name:`MenuRadioGroup`}),g=We((e,t)=>{o?.(e,t),t.isCanceled||h(e)}),_=je(`div`,e,{state:{disabled:s},ref:t,props:{role:`group`,"aria-labelledby":u??f,"aria-disabled":s||void 0,...d}}),v=A.useMemo(()=>({value:m,setValue:g,disabled:s}),[m,g,s]);return(0,j.jsx)(se.Provider,{value:p,children:(0,j.jsx)(ii.Provider,{value:v,children:_})})}),si=A.memo(A.forwardRef(function(e,t){let n=we()?.RadioGroup??oi;return(0,j.jsx)(n,{...e,ref:t})})),ci=A.createContext(void 0);function li(){let e=A.useContext(ci);if(e===void 0)throw Error(Le(35));return e}var ui=A.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,value:l,style:u,...d}=e,{store:f}=b(),{value:p,setValue:m,disabled:h}=ai(),g=Ce({guess:!0,label:a}),_=Fe(i),v=f.useState(`isActive`,g.index),y=f.useState(`floatingNodeId`),x=f.useState(`itemProps`),S=f.useState(`disabled`),C=s||h||S,w=p===l,{getItemProps:T,itemRef:E}=ee({closeOnClick:c,disabled:C,highlighted:v,id:_,store:f,nativeButton:o,nodeId:y,itemMetadata:Ee}),D=A.useMemo(()=>({disabled:C,highlighted:v,checked:w}),[C,v,w]);function te(e){let t=Ze(Pe,e.nativeEvent,void 0,{preventUnmountOnClose:Je});m(l,t)}let ne=je(`div`,e,{state:D,stateAttributesMapping:be,props:[x,{role:`menuitemradio`,"aria-checked":w,onClick:te},d,T],ref:[E,t,g.ref]});return(0,j.jsx)(ci.Provider,{value:D,children:ne})}),di=A.forwardRef(function(e,t){let n=v(e,t);return n.visible?(0,j.jsx)(ui,{...e,ref:n.ref}):null}),fi=A.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=li(),c=A.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=mt(s.checked);_t({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}});let f={checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l};return je(`span`,e,{state:f,stateAttributesMapping:be,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||u})}),pi=e(t(),1),mi=new Map;function hi(e={}){let{locale:t,...n}=e,r={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...n},i=`${Bn(t)}|${JSON.stringify(r)}`,a=mi.get(i);if(a)return a;let o=new Intl.Collator(t,r),s={contains(e,t,n){if(!t)return!0;let r=Ft(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(o.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Ft(e,n);return o.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Ft(e,n),i=t.length;return r.length>=i&&o.compare(r.slice(r.length-i),t)===0}};return mi.set(i,s),s}var gi=``;function _i(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function vi(e=!0){let t=ze(),n=A.useRef(null);return A.useEffect(()=>{if(!e||bt)return;let r=n.current;if(r==null)return;let i=_i(r);if(i==null)return;let a=i.data,o=`${a}${gi}`;return i.nodeValue=o,t.start(200,()=>{i.nodeValue===o&&(i.nodeValue=a)}),()=>{t.clear(),i.nodeValue===o&&(i.nodeValue=a)}},[e,n,t]),n}function yi(e,t,n,r,i,a,o,s,c,l=2){let u=Tt(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:l,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return vt(n.current,u)?void 0:u}var bi=A.createContext(void 0),xi=A.createContext(void 0),Si=A.createContext(void 0),Ci=A.createContext(!1),wi=A.createContext(``);function Ti(){let e=A.useContext(bi);if(!e)throw Error(Le(22));return e}function Ei(){let e=A.useContext(xi);if(!e)throw Error(Le(23));return e}function Di(){let e=A.useContext(Si);if(!e)throw Error(Le(24));return e}function Oi(){return A.useContext(wi)}function ki(){return A.useContext(Ci)}var Ai={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?Mt(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>rn(t,e,n)):rn(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};function ji(e){return e==null?void 0:`${e}-popup`}function Mi(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}var Ni=hi;function Pi(e,t=!1){let{overflowY:n}=Qe(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}var Fi=Symbol(`none`),Ii={value:Fi,index:-1};function Li(e,t,n){let r=e.get(t);if(r!==void 0||n===Xt)return r;for(let[r,i]of e)if(rn(r,t,n))return i}function Ri(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:l,defaultOpen:u=!1,selectionMode:d,onItemHighlighted:f,name:p,form:m,disabled:g=!1,readOnly:_=!1,required:v=!1,inputRef:y,grid:b=!1,items:x,filteredItems:S,filter:C,filterQuery:w,openOnInputClick:T=!0,autoHighlight:D=!1,keepHighlight:ee=!1,highlightItemOnHover:ne=!0,loopFocus:ie=!0,itemToStringLabel:ae,itemToStringValue:se,isItemEqualToValue:ce=Xt,virtualized:ue=!1,inline:fe=!1,fillInputOnItemPress:pe=!0,modal:he=!1,limit:ge=-1,autoComplete:_e=`list`,formAutoComplete:ve,locale:ye,submitOnItemClick:be=!1}=e,{clearErrors:Se}=Te(),{setDirty:Ce,validityData:we,setFilled:Ee,name:De,disabled:Oe,setTouched:je,setFocused:Fe,validationMode:ze,validation:Be}=xe(),He=h(),Ge=oe({id:t}),Qe=Ni({locale:ye}),nt=Array.isArray(x)?null:x;if(nt&&typeof nt.label!=`function`)throw Error(Le(100));let at=nt?nt.data:x,ot=nt?.value,ut=ot?void 0:at,dt=A.useMemo(()=>{if(!S||!ot)return;let e=Cn(S),t=e.map(ot),n;return{values:t,findItem(r,i){if(!n){n=new Map;for(let r=0;r<t.length;r+=1)n.has(t[r])||n.set(t[r],e[r])}return Li(n,r,i)}}},[S,ot]),pt=A.useMemo(()=>nt?e=>nt.label(e,ce,e=>{let t=dt?.findItem(e,ce);return t==null?Ft(e,ae):nt.itemLabel(t)}):ae,[nt,ae,dt,ce]),mt=A.useMemo(()=>nt?Object.assign(e=>nt.itemLabel(e),{selected:e=>Ft(e,pt)}):ae,[nt,pt,ae]);function _t(e){return Ft(e,pt)}let[vt,yt]=A.useState(!1),[bt,xt]=A.useState(null),Ct=A.useRef(bt),Tt=A.useRef([]),Et=A.useRef([]),Ot=A.useRef(null),kt=A.useRef(null),At=A.useRef(null),Mt=A.useRef(null),Pt=A.useRef(null),It=A.useRef(!1),Lt=A.useRef(null),Rt=A.useRef(null),zt=A.useRef(null),Bt=A.useRef(Ii),Vt=A.useRef(null),Ht=A.useRef([]),Ut=A.useRef(null),qt=Oe||g,Jt=De??p,Yt=d===`multiple`,Zt=d===`single`,$t=s!==void 0||o!==void 0,en=at!==void 0,tn=S!==void 0,nn;nn=D===`always`?`always`:D?`input-change`:!1;let[O,an]=c({controlled:i,default:Yt?r??ke:r,name:`Combobox`,state:`selectedValue`}),on=A.useMemo(()=>C===null?()=>!0:C===void 0?Mi(Qe,mt):C,[C,Qe,mt]),sn=qe(()=>$t?o??``:Zt?_t(O):``).current,[cn,ln]=c({controlled:s,default:sn,name:`Combobox`,state:`inputValue`}),[un,dn]=c({controlled:l,default:u,name:`Combobox`,state:`open`}),fn=Kt(at),pn=!un&&bt!==null?bt:String(cn).trim(),mn=Zt?_t(O):``,hn=Zt&&!vt&&pn!==``&&mn.length===pn.length&&Qe.contains(mn,pn),gn=hn?``:w??pn,_n=en&&tn&&hn&&(!nt||nt.hasValue(O,ce)),vn=A.useMemo(()=>at?Cn(at):ke,[at]),yn=A.useMemo(()=>{if(S&&!_n)return S;if(!at)return ke;if(fn){let e=at,t=[],n=0;for(let r of e){if(ge>-1&&n>=ge)break;let e=ge>-1?ge-n:1/0,i=gn===``?r.items.slice(0,e):[];if(gn!==``)for(let t of r.items){if(i.length>=e)break;on(t,gn,mt)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(gn===``)return ge>-1?vn.slice(0,ge):vn;let e=[];for(let t of vn){if(ge>-1&&e.length>=ge)break;on(t,gn,mt)&&e.push(t)}return e},[S,_n,at,fn,gn,ge,on,mt,vn]),wn=A.useMemo(()=>{if(dt&&yn===S)return dt.values;let e=Cn(yn);return ot?e.map(e=>ot(e)):e},[yn,S,dt,ot]),k=qe(()=>{let e=null;return fe&&un&&en&&d!==`none`&&(e=Sn(wn,O,ce,Yt)),new gt({id:Ge,labelId:void 0,selectedValue:O,open:un,items:ut,selectionMode:d,name:Jt,form:m,disabled:qt,readOnly:_,required:v,grid:b,virtualized:ue,openOnInputClick:T,itemToStringLabel:pt,isItemEqualToValue:ce,modal:he,autoHighlight:nn,submitOnItemClick:be,hasInputValue:$t,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:fe,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemRoot:{props:Ve,id:Ge,selectionMode:d,disabled:qt,readOnly:_,isItemEqualToValue:ce},positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:d===`none`},{onOpenChangeComplete:Je,setOpen:Je,setInputValue:Je,setSelectedValue:Je,setIndices:Je,handleSelection:Je,forceMount:Je,requestSubmit:Je,listRef:Tt,labelsRef:Et,popupRef:Ot,emptyRef:Pt,inputRef:kt,startDismissRef:At,endDismissRef:Mt,chipsContainerRef:Lt,clearRef:Rt,valuesRef:Ht,pointerDownItemRef:Ut,selectionEventRef:zt},Ai)}).current,Tn=d===`none`?cn:O,En=A.useMemo(()=>d===`none`?Tn:Array.isArray(O)?O.map(e=>Gt(e,se)):Gt(O,se),[Tn,se,d,O]),Dn=We(f),On=We(n),kn=k.useState(`activeIndex`),An=k.useState(`selectedIndex`),jn=k.useState(`positionerElement`),Mn=k.useState(`listElement`),Nn=k.useState(`triggerElement`),Pn=k.useState(`inputElement`),Fn=k.useState(`inputGroupElement`),In=k.useState(`inline`),Ln=k.useState(`inputInsidePopup`),Rn=k.useState(`inputOwnsFormValue`),zn=Zt&&!Ln&&cn===mn,Bn=et(Nn),{openMethod:Vn,triggerProps:Hn}=me(un),Un=We(()=>En);E(Ln?Bn:kt,Ge,Tn,Un,!qt,p);let Wn=We(()=>{at?Et.current=wn.map(_t):k.set(`forceMounted`,!0)}),Gn=We((e,t,n,r)=>{if(t===-1){if(Bt.current===Ii)return;Bt.current=Ii}else Bt.current={value:e,index:t};Dn(e,Ae(n,r,{index:t}))}),Kn=We(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),k.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?Gn(void 0,-1,r,e.event):Gn(Ht.current[n],n,r,e.event)}),qn=We((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(It.current=n.reason===Ne,n.reason===`input-change`){un&&bt!==null&&xt(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&yt(!0),Vt.current={hasQuery:e};let n=k.state.listElement;if(!k.state.virtualized&&n){let e=Ot.current;for(let t of it(n.firstElementChild??n)){if(!ft(t)||(e?!ht(e,t):t.getAttribute(`role`)===`dialog`))break;if(Pi(t)){t.scrollTop=0;break}}}e&&nn&&k.state.activeIndex==null&&(un||In)&&k.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&k.state.inputInsidePopup&&(Vt.current={hasQuery:!1,selection:!0});ln(t)}}),Jn=We(e=>{let t=!e&&Ln&&!In&&cn!==``&&(String(cn).trim()===bt||cn===mn);!e&&(t||cn===``||zn)&&yt(!1),xt(null),t&&qn(``,Ze(Ne))}),[Yn,Xn]=A.useState(!1),Zn=We((t,n)=>{if(un===t)return;n.reason===`escape-key`&&en&&wn.length===0&&!Pt.current&&n.allowPropagation();let r=n,i=tt(r);if(e.onOpenChange?.(t,r),Vt.current?.hasQuery&&n.reason===`input-change`===n.isCanceled&&(Vt.current=null),!n.isCanceled&&(t&&bt!==null&&Jn(n.reason===Xe),!t&&vt&&(Zt?(In||xt(pn),pn===``&&yt(!1)):Yt&&(In||xt(pn),Ln&&Kn({activeIndex:null}),(!Ln||In)&&qn(``,Ze(Ne,n.event,void 0,{isItemPress:n.reason===Pe})))),t||Xn(i()),dn(t),!t&&Ln&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(je(!0),Fe(!1),ze===`onBlur`))){let e=d===`none`?cn:O;Be.commit(e)}}),Qn=We((e,t)=>{a?.(e,t),t.isCanceled||(an(e),(d===`none`&&Ot.current&&pe||Zt&&!k.state.inputInsidePopup)&&qn(_t(e),Ze(t.reason,t.event)))}),$n=We((e,t)=>{let n=wt(e),r=zt.current??e;zt.current=null;let i=Ze(Pe,r),a=St(n,`a`)?.getAttribute(`href`);if(a)a.startsWith(`#`)&&Zn(!1,i);else if(Yt){let e=Array.isArray(O)?O:[],n=Nt(e,t,ce),r=n?xn(e,t,ce):[...e,t];if(Qn(r,i),i.isCanceled||!(kt.current&&kt.current.value.trim()!==``))return;if(k.state.inputInsidePopup){qn(``,Ze(Ne,i.event,void 0,{isItemPress:!0}));let e=Vt.current;e&&!n&&(e.toggledValue=t)}else Zn(!1,i)}else{if(Qn(t,i),i.isCanceled)return;Zn(!1,i)}}),er=We(()=>{let e=Be.inputRef.current?.form??k.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),tr=We(()=>{if(On?.(!1),yt(!1),xt(null),Kn(d===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Yt&&kt.current&&kt.current.value!==``&&!It.current&&qn(``,Ze(Ne)),Zt){if(k.state.inputInsidePopup)kt.current&&kt.current.value!==``&&qn(``,Ze(Ne));else{let e=_t(O);kt.current&&kt.current.value!==e&&qn(e,Ze(e===``?Ne:Ue))}}}),nr=A.useMemo(()=>In&&jn?{current:St(jn,`[role="dialog"]`)}:Ot,[In,jn]),{mounted:rr,transitionStatus:ir,forceUnmount:ar}=rt({open:un,ref:nr,preventUnmountOnClose:Yn,setPreventUnmountOnClose:Xn,onUnmount:tr});A.useImperativeHandle(e.actionsRef,()=>({unmount:ar,close:()=>Zn(!1,Ze(Re))}),[ar,Zn]),Me(function(){let e=Ct.current!==null&&bt===null;if(Ct.current=bt,un&&(!e||!en)||(un||(Ut.current=null),d===`none`))return;let t=en?wn:Ht.current;Kn({selectedIndex:Sn(t,O,ce,Yt)})},[un,bt,O,d,Yt,en,wn,ce,Kn]),Me(()=>{at&&(Ht.current=wn,Tt.current.length=wn.length)},[at,wn]),Me(()=>{!un&&Vt.current?.hasQuery&&(Vt.current=null)},[un]),Me(()=>{if(!un&&In&&nr.current){Vt.current=null;return}let e=en||tn?wn:Ht.current,t=Vt.current;if(t){let n=un||In||k.state.positionerElement?.hidden===!1;if(t.hasQuery){let t=kt.current;!nn||String(cn).trim()===``||In&&nn!==`always`&&(!t||Dt(t.ownerDocument)!==t)?Vt.current=null:n&&(e[0]!==void 0||!en&&!tn)&&(k.set(`activeIndex`,0),Vt.current=null)}else if(String(cn).trim()===``&&(Vt.current=null,n)){let e=t.selection;nn===`always`&&!e&&k.state.selectionMode===`none`&&k.set(`activeIndex`,0),queueMicrotask(()=>{if(!k.state.open&&(!k.state.inline||nr.current)||kt.current&&kt.current.value.trim()!==``)return;let n=k.state.selectedValue,r=k.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:k.state.selectionMode!==`none`&&n!=null){let e=en||tn?wn:Ht.current,i=bn(e,t.toggledValue,k.state.isItemEqualToValue);k.set(`activeIndex`,i===-1?Sn(e,n,k.state.isItemEqualToValue,r):i)}else e?k.set(`activeIndex`,null):nn===`always`&&k.set(`activeIndex`,0)})}}if(!un&&!In)return;let n=k.state.activeIndex;if(n==null){if(nn===`always`&&e.length>0){k.set(`activeIndex`,0);return}Gn(void 0,-1,Ue);return}if(n>=e.length){Gn(void 0,-1,Ue),k.set(`activeIndex`,null);return}let r=e[n],i=Bt.current.value,a=i!==Fi&&rn(r,i,k.state.isItemEqualToValue);Bt.current.index===n&&a||Gn(r,n,Ue)},[kn,nn,Gn,tn,en,wn,In,un,nr,k,cn]),Me(()=>{Ee(d===`none`?String(cn)!==``:Yt?Array.isArray(O)&&O.length>0:O!=null)},[Ee,d,cn,O,Yt]),A.useEffect(()=>{en&&nn&&wn.length===0&&Kn({activeIndex:null})},[en,nn,wn.length,Kn]);function or(){un&&pn!==``&&pn!==String(sn)&&!zn&&yt(!0)}function sr(){un&&bt!==null&&Jn(!1)}let cr=!1;function lr(){!cr&&cn!==mn&&(cr=!0,qn(mn,Ze(Ue)))}function ur(){d!==`none`&&(Se(Jt),Ce(Qt(O,we.initialValue,ce)),Be.change(O),Zt&&!$t&&!Ln&&lr())}function dr(){Zt&&!$t&&!Ln&&!vt&&lr()}function fr(){d===`none`&&(Se(Jt),Ce(cn!==we.initialValue),Be.change(cn))}le(pn,or),le(un,sr),le(O,ur),le(mn,dr),le(at,dr),le(cn,fr);let pr=jt({open:In?!0:un,onOpenChange:Zn,elements:{reference:Ln?Nn:Pn,floating:jn}}),mr=b?`grid`:`listbox`,hr=un||In,gr=hr?`true`:`false`,_r=A.useMemo(()=>{let e=Pn?.tagName===`INPUT`,t=Pn==null||e,n=t||hr,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=gr,r[`aria-haspopup`]=mr,r[`aria-controls`]=hr?Mn?.id:void 0,r[`aria-autocomplete`]=_?`none`:_e),{reference:r,floating:{role:`presentation`}}},[Pn,hr,gr,mr,Mn?.id,_e,_]),vr=re(pr,{enabled:!qt&&T,event:`mousedown-only`,toggle:!1,touchOpenDelay:Ln?0:100,reason:Ye}),yr=lt(pr,{enabled:!qt&&!In,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:In?!0:void 0,outsidePress(e){let t=wt(e);return!ht(Nn,t)&&!ht(Rt.current,t)&&!ht(Lt.current,t)&&!ht(Fn,t)}}),br=te(pr,{enabled:!qt,id:Ge,listRef:Tt,activeIndex:kn,selectedIndex:An,virtual:!0,loopFocus:ie,allowEscape:ie&&!nn,focusItemOnOpen:vt||d===`none`&&!nn?!1:`auto`,focusItemOnHover:ne,resetOnPointerLeave:!ee,orientation:b?`horizontal`:void 0,rtl:He===`rtl`,disabledIndices:ke,grid:b?yi:void 0,onNavigate(e,t){(t||un||In&&e===null)&&ir!==`ending`&&Kn({activeIndex:e,type:de(t),event:t?.nativeEvent})}}),xr=A.useMemo(()=>Ke(br.reference,{onKeyDown(e){b&&k.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},yr.reference,vr.reference,_r.reference),[br.reference,yr.reference,vr.reference,_r.reference,b,k]),Sr=A.useMemo(()=>Ke($e,yr.floating),[yr.floating]),Cr=A.useMemo(()=>Ke(br.floating,_r.floating),[br.floating,_r.floating]),wr=A.useMemo(()=>{let e=br.item;return{props:e?{...e,onFocus:void 0}:Ve,id:Ge,selectionMode:d,disabled:qt,readOnly:_,isItemEqualToValue:ce}},[br.item,Ge,d,qt,_,ce]);k.useContextCallback(`setOpen`,Zn),k.useContextCallback(`setInputValue`,qn),k.useContextCallback(`setSelectedValue`,Qn),k.useContextCallback(`setIndices`,Kn),k.useContextCallback(`handleSelection`,$n),k.useContextCallback(`forceMount`,Wn),k.useContextCallback(`requestSubmit`,er),k.useContextCallback(`onOpenChangeComplete`,n),Wt(()=>{k.update({inline:fe,popupProps:Sr,listProps:Cr,inputProps:xr,triggerProps:Hn,itemRoot:wr})});let Tr={id:Ge,selectedValue:O,open:un,mounted:rr,transitionStatus:ir,items:ut,inline:fe,popupProps:Sr,listProps:Cr,inputProps:xr,triggerProps:Hn,itemRoot:wr,openMethod:Vn,selectionMode:d,name:Jt,form:m,disabled:qt,readOnly:_,required:v,grid:b,virtualized:ue,openOnInputClick:T,itemToStringLabel:pt,modal:he,autoHighlight:nn,isItemEqualToValue:ce,submitOnItemClick:be,hasInputValue:$t};Me(()=>{k.update({...Tr,inputOwnsFormValue:d===`none`&&(fe||!k.state.inputInsidePopup)})},[k,...Object.values(Tr)]);let Er=Ie(y,Be.inputRef),Dr=A.useMemo(()=>({query:pn,hasItems:en,filteredItems:yn,flatFilteredValues:wn}),[pn,en,yn,wn]),Or=A.useMemo(()=>Array.isArray(Tn)?``:Gt(Tn,se),[Tn,se]),kr=Yt&&Array.isArray(O)&&O.length>0,Ar=Yt||d===`none`&&Rn?void 0:Jt,jr=A.useMemo(()=>!Yt||!Array.isArray(O)||!Jt?null:O.map(e=>{let t=Gt(e,se);return(0,j.jsx)(`input`,{type:`hidden`,form:m,name:Jt,value:t,disabled:qt},t)}),[Yt,O,m,Jt,se,qt]),Mr=(0,j.jsxs)(A.Fragment,{children:[e.children,(0,j.jsx)(`input`,{...Be.getValidationProps(qt,{onFocus(){Ln?Nn?.focus():(kt.current||Nn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||qt||_)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=Ze(Ue,e.nativeEvent),i=()=>Ht.current.findIndex(e=>Gt(e,se).toLowerCase()===n||_t(e).toLowerCase()===n);function a(){if(Yt)return;if(d===`none`){qn(t,r);return}let e=i();e===-1&&(e=Ht.current.findIndex((e,t)=>{let r=Et.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:Ht.current[e];a!=null&&Qn?.(a,r)}Zt&&(Wn(),at&&i()===-1&&k.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:Ge&&Ar==null?`${Ge}-hidden-input`:void 0,form:m,name:Ar,autoComplete:ve,disabled:qt,required:v&&!kr,readOnly:_,value:Or,ref:Er,style:Ar?ct:st,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),jr]});return(0,j.jsx)(bi.Provider,{value:k,children:(0,j.jsx)(xi.Provider,{value:pr,children:(0,j.jsx)(Ci.Provider,{value:en,children:(0,j.jsx)(Si.Provider,{value:Dr,children:(0,j.jsx)(wi.Provider,{value:cn,children:Mr})})})})})}var zi=`data-popup-side`,Bi=`data-list-empty`,Vi={...nt,...l,popupSide:e=>e?{[zi]:e}:null,listEmpty:e=>e?{[Bi]:``}:null};function Hi(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function Ui(){return Di().filteredItems.length===0}function Wi(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Gi(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Ki=A.createContext(void 0);function qi(){return A.useContext(Ki)}var Ji=A.createContext(void 0);function Yi(e){let t=A.useContext(Ji);if(t===void 0&&!e)throw Error(Le(21));return t}var Xi=A.forwardRef(function(e,t){let n=Ti(),{buttonRef:r,getButtonProps:i}=ut({native:!1}),a=Ie(t,r);function o(e){n.context.setOpen(!1,Ze(Be,e.nativeEvent,e.currentTarget))}let s=i({onClick:o});return(0,j.jsx)(`span`,{ref:a,...s,"aria-label":`Dismiss`,tabIndex:void 0,style:ct})}),Zi=A.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...c}=e,{state:l,disabled:u,setTouched:d,validationMode:f,validation:p}=xe(),{labelId:m}=ve(),_=qi(),v=!!Yi(!0),b=Ti(),x=Oi(),S=h(),C=b.useState(`required`),w=b.useState(`disabled`),T=b.useState(`readOnly`),E=b.useState(`name`),D=b.useState(`form`),ee=b.useState(`selectionMode`),te=b.useState(`autoHighlight`),ne=b.useState(`inputProps`),re=b.useState(`triggerProps`),ie=b.useState(`open`),ae=b.useState(`mounted`),oe=b.useState(`selectedValue`),se=b.useState(`id`),ce=b.useState(`inline`),le=b.useState(`modal`),ue=!!te,fe=Hi(b),pe=u||w||i,me=Ui(),he=Se(pe,b.context.inputRef),ge=v||ce,_e=!ge||le,ye=Fe(a??(ge?void 0:se)),be=v?y:l,[Ce,we]=A.useState(null),Te=A.useRef(!1),Ee=A.useRef(null);Me(()=>{ie||(Ee.current=null)},[ie]);let De=ee===`none`&&!v,Oe=We(e=>{let t=v||b.state.inline;t&&!b.state.hasInputValue&&b.context.setInputValue(``,Ze(Ue)),b.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:De})}),ke=v?c:p.getValidationProps(pe,c);function Ae(e){b.context.setIndices({activeIndex:null,selectedIndex:null,type:de(e),event:e})}let Pe={...be,open:ie,disabled:pe,readOnly:T,popupSide:fe,listEmpty:me};function Ie(e){if(!_)return;let t,n=_.chipsRef.current.length,[r]=Wi(S);return e.key===r&&(e.currentTarget.selectionStart??0)===0&&oe.length>0&&(e.preventDefault(),t=n>0?n-1:void 0),t}let Le=je(`input`,e,{state:Pe,ref:[t,b.context.inputRef,Oe],props:[ne,re,{value:Ce??x,"aria-readonly":T||void 0,"aria-required":C||void 0,"aria-labelledby":m,disabled:pe,readOnly:T,required:ee===`none`?C:void 0,form:D,...De&&E&&{name:E},id:ye,onFocus(){if(he(!0),!ce)return;let e=Ee.current;Ee.current=null,e!=null&&Object.hasOwn(b.context.valuesRef.current,e)&&b.context.setIndices({activeIndex:e})},onBlur(){d(!0),he(!1);let e=b.state.activeIndex;if(ce&&e!==null&&te!==`always`&&(Ee.current=e,b.context.setIndices({activeIndex:null})),f===`onBlur`){let e=ee===`none`?x:oe;p.commit(e)}},onCompositionStart(e){xt||(Te.current=!0,we(e.currentTarget.value))},onCompositionEnd(e){Te.current=!1;let t=e.currentTarget.value;we(null),b.context.setInputValue(t,Ze(Xe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Te.current||!r;function a(e){!T&&!pe&&e&&i&&(b.context.setOpen(!0,Ze(Xe,t)),ue||Ae(t))}if(Te.current){let n=e.currentTarget.value;we(n),n===``&&!b.state.openOnInputClick&&!b.state.inputInsidePopup&&b.context.setOpen(!1,Ze(Ne,t));let r=n.trim(),i=ue&&r!==``;a(r),ie&&b.state.activeIndex!==null&&!i&&Ae(t);return}let o=Ze(Xe,t);if(b.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=Ze(Ne,t);s&&!b.state.inputInsidePopup&&(ee===`single`&&b.context.setSelectedValue(null,c),b.state.openOnInputClick||b.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),ie&&b.state.activeIndex!==null&&!ue&&Ae(t)},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(pe||T){T&&e.key===`Enter`&&ie&&b.state.activeIndex!==null&&Ot(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=S===`rtl`;if(e.key===`Home`){Ot(e);let n=Et&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Ot(e);let i=Et&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!ae&&e.key===`Escape`){let t=ee===`multiple`&&Array.isArray(oe)?oe.length===0:oe===null,n=Ze(He,e.nativeEvent),r=ee===`multiple`?[]:null;b.context.setInputValue(``,n),b.context.setSelectedValue(r,n),t||b.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(_&&e.key===`Backspace`&&t.value===``&&Array.isArray(oe)&&oe.length>0){let t=_.chipsRef.current.length,n=t>0?t-1:oe.length-1,r=oe.filter((e,t)=>t!==n);Ae(e.nativeEvent),b.context.setSelectedValue(r,Ze(Ue,e.nativeEvent));return}let i=Ie(e);if(i!==void 0&&_?.chipsRef.current[i]?.focus(),e.which!==229&&e.key===`Enter`&&ie){let t=b.state.activeIndex,n=e.nativeEvent;if(t===null){if(ce)return;b.context.setOpen(!1,Ze(Ue,n));return}Ot(e),Gi(b,t,n)}}},ke],stateAttributesMapping:Vi}),Re=v?(0,j.jsx)(s.Provider,{value:g,children:Le}):Le;return(0,j.jsxs)(A.Fragment,{children:[ie&&_e&&(0,j.jsx)(Xi,{ref:b.context.startDismissRef}),Re]})}),Qi=A.createContext(null);function $i(){return A.useContext(Qi)}function ea(e){let{children:t}=e,{filteredItems:n}=Di(),r=$i(),i=r?r.items:n;return(0,j.jsx)(A.Fragment,{children:i.map(t)})}var ta=A.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Ti(),l=Ei(),u=!!Yi(!0),{filteredItems:d,hasItems:f}=Di(),p=c.useState(`selectionMode`),m=c.useState(`grid`),h=c.useState(`readOnly`),g=c.useState(`listProps`),v=c.useState(`virtualized`),y=c.useState(`forceMounted`),b=p===`multiple`,x=d.length===0,S=We(e=>{c.set(`positionerElement`,e)}),C=We(e=>{c.set(`listElement`,e)}),w=A.useMemo(()=>typeof o==`function`?n||=(0,j.jsx)(ea,{children:o}):o,[o]),T={empty:x},E=l.useState(`floatingId`),D=je(`div`,e,{state:T,ref:[t,C,u?null:S],props:[g,{children:w,tabIndex:-1,id:E,role:m?`grid`:`listbox`,"aria-multiselectable":b?`true`:void 0,"aria-readonly":!m&&h?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Ot(e),Gi(c,t,e.nativeEvent)}}},s]});if(v)return D;let ee=f&&!y?void 0:c.context.labelsRef;return(0,j.jsx)(_,{elementsRef:c.context.listRef,labelsRef:ee,children:D})}),na=A.createContext(void 0);function ra(){let e=A.useContext(na);if(e===void 0)throw Error(Le(20));return e}var ia=A.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Ti(),a=i.useState(`mounted`),o=i.useState(`forceMounted`);return a||n||o?(0,j.jsx)(na.Provider,{value:n,children:(0,j.jsx)(ot,{ref:t,...r})}):null}),aa=A.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=pt,style:_,...v}=e,y=Ti(),b=Ei(),x=ra(),S=y.useState(`modal`),C=y.useState(`open`),T=y.useState(`mounted`),E=y.useState(`openMethod`),D=y.useState(`positionerElement`),ee=y.useState(`triggerElement`),te=y.useState(`inputElement`),ne=y.useState(`inputGroupElement`),re=y.useState(`inputInsidePopup`),ie=y.useState(`transitionStatus`),ae=Ui(),oe=p({anchor:i??(re?ee:ne??te),floatingRootContext:b,positionMethod:a,mounted:T,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:m,disableAnchorTracking:h,keepMounted:x,collisionAvoidance:g,lazyFlip:!0});he(C&&S,E===`touch`,D,ee);let se={open:C,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,empty:ae};Me(()=>{y.set(`popupSide`,oe.side)},[y,oe.side]);let ce=We(e=>{y.set(`positionerElement`,e)}),le=w(e,se,{styles:oe.positionerStyles,transitionStatus:ie,props:v,refs:[t,ce],hidden:!T,inert:!C});return(0,j.jsxs)(Ji.Provider,{value:oe,children:[T&&S&&(0,j.jsx)(Ct,{inert:yt(!C),cutout:ne??te??ee}),le]})}),oa={...dt,...at},sa=A.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Ti(),l=Yi(),u=Ei(),f=c.useState(`mounted`),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`popupProps`),g=c.useState(`transitionStatus`),_=c.useState(`inputInsidePopup`),v=c.useState(`inputElement`),y=c.useState(`modal`),b=c.useState(`id`),x=Ui(),S=s.id??(_?ji(b):void 0);Me(()=>(c.set(`popupId`,c.context.popupRef.current?.id||S),()=>{c.set(`popupId`,void 0)}),[c,S]),_t({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete(!0)}});let C={open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:g,empty:x},w=je(`div`,e,{state:C,ref:[t,c.context.popupRef],props:[h,{id:S,role:_?`dialog`:`presentation`,onFocus(e){let t=wt(e.nativeEvent);m!==`touch`&&(ht(c.state.listElement,t)||t===e.currentTarget)&&c.context.inputRef.current?.focus()}},d(g),s],stateAttributesMapping:oa}),T=a===void 0?_?e=>e===`touch`?c.context.popupRef.current:v:!1:a,E;E=o??(_?void 0:!1);let D=!_||y;return(0,j.jsx)(kt,{context:u,disabled:!f,modal:D,openInteractionType:m,initialFocus:T,returnFocus:E,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,j.jsxs)(A.Fragment,{children:[w,D&&(0,j.jsx)(Xi,{ref:c.context.endDismissRef})]})})}),ca=A.createContext(void 0),la=A.createContext(!1);function ua(){return A.useContext(la)}function da(e){let{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:o,style:s,value:c=null,index:l,disabled:u=!1,nativeButton:d=!1,...f}=t,p=A.useRef(null),m=Ce({guess:!0,index:l,textRef:p}),h=Ti(),g=ua(),_=ki(),{props:v,id:y,selectionMode:b,disabled:x,readOnly:S,isItemEqualToValue:C}=h.useState(`itemRoot`),w=x||u,T=b!==`none`,E=l??i??m.index,D=E!==-1,ee=h.useState(`isActive`,E),te=h.useState(`isSelected`,c),ne=A.useRef(null),re=y!=null&&D?`${y}-${E}`:void 0,ie=te&&T;Me(()=>{if(!D||!r&&l==null)return;let e=h.context.listRef.current;return e[E]=ne.current,()=>{delete e[E]}},[D,r,E,l,h]),Me(()=>{if(!D||_)return;let e=h.context.valuesRef.current;return e[E]=c,()=>{delete e[E]}},[D,_,E,c,h]),Me(()=>{if(!D||_)return;let e=h.state.selectedValue,t=h.state.selectedIndex;h.state.selectionMode===`multiple`&&Array.isArray(e)?t=Ut(E,c,h.context.valuesRef.current,e,C,t):rn(c,e,C)&&(t=E),h.set(`selectedIndex`,t)},[D,_,h,E,c,C]);let{getButtonProps:ae,buttonRef:oe}=ut({disabled:w,focusableWhenDisabled:!0,native:d,composite:!0}),se={disabled:w,selected:ie,highlighted:ee};function ce(e){function t(){h.context.handleSelection(e,c)}h.state.submitOnItemClick?(pi.flushSync(t),h.context.requestSubmit()):t()}let le={id:re,role:g?`gridcell`:`option`,"aria-selected":T?ie:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(h.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){w||S||ce(e.nativeEvent)},onMouseUp(e){let t=h.context.pointerDownItemRef.current===e.currentTarget;h.context.pointerDownItemRef.current=null,w||S||e.button!==0||t||!ee||ce(e.nativeEvent)}},ue=je(`div`,t,{ref:[oe,n,m.ref,ne],state:se,props:[v,le,f,ae]}),de=A.useMemo(()=>({selected:ie,textRef:p}),[ie,p]);return(0,j.jsx)(ca.Provider,{value:de,children:ue})}function fa(e){let{componentProps:t,forwardedRef:n}=e,r=Ti().useState(`isItemEqualToValue`),{flatFilteredValues:i}=Di(),a=t.value??null,o=bn(i,a,r);return(0,j.jsx)(da,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:o})}var pa=A.memo(A.forwardRef(function(e,t){let n=Ti().useState(`virtualized`);return n&&e.index==null?(0,j.jsx)(fa,{componentProps:e,forwardedRef:t}):(0,j.jsx)(da,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),ma=A.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=Di(),c=Ti(),l=vi(),u=s.length===0?a:null;return je(`div`,e,{ref:[t,c.context.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),ha=(0,A.createContext)(null);function ga(e,t){let n=null;return e!=null&&(n=e[1]),{getTheme:function(){return t??(n==null?null:n.getTheme())}}}function _a(){let e=(0,A.useContext)(ha);return e??function(e,...t){throw function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);return n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(e,...t)}(8),e}function va(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);return n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){throw va(e,...t)}function ya(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ba(){return typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0}var xa=ba();function Sa(){return xa&&`documentMode`in document?document.documentMode:null}var Ca=Sa();function wa(e){return xa&&e.test(navigator.platform)}function Ta(e){return xa&&e.test(navigator.userAgent)}var Ea=wa(/Mac|iPod|iPhone|iPad/),Da=Ta(/^(?!.*Seamonkey)(?=.*Firefox).*/i);function Oa(){return!(!xa||!(`InputEvent`in window)||Ca)&&`getTargetRanges`in new window.InputEvent(`input`)}var ka=Oa();function Aa(){return xa&&!window.MSStream&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints>1)}var ja=Aa(),Ma=Ta(/Android/),Na=Ta(/Version\/[\d.]+.*Safari/)&&!Ma,Pa=Ta(/^(?=.*Chrome).*/i),Fa=xa&&Ma&&Pa,Ia=Ta(/AppleWebKit\/[\d.]+/)&&Ea&&!Pa;function La(){return 2047}var Ra=La(),za=Na||ja||Ia?`\xA0`:``,Ba=`
|
|
2
2
|
|
|
3
3
|
`,Va=Da?`\xA0`:za,Ha={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Ua={directionless:1,unmergeable:2},Wa={center:2,end:6,justify:4,left:1,right:3,start:5};function Ga(e){let t={};for(let n of Object.keys(e))t[e[n]]=n;return t}var Ka=Ga(Wa),qa={normal:0,segmented:2,token:1},Ja=Ga(qa),Ya=Symbol.for(`@lexical/ctrlOrOtherKey`),Xa=`$config`;function Za(e){return()=>{}}function N(e){return{type:e}}var Qa=N(`SELECTION_CHANGE_COMMAND`),$a=N(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),eo=N(`CLICK_COMMAND`),to=N(`BEFORE_INPUT_COMMAND`),no=N(`INPUT_COMMAND`),ro=N(`COMPOSITION_START_COMMAND`),io=N(`COMPOSITION_END_COMMAND`),ao=N(`DELETE_CHARACTER_COMMAND`),oo=N(`INSERT_LINE_BREAK_COMMAND`),so=N(`INSERT_PARAGRAPH_COMMAND`),co=N(`CONTROLLED_TEXT_INSERTION_COMMAND`),lo=N(`PASTE_COMMAND`),uo=N(`REMOVE_TEXT_COMMAND`),fo=N(`DELETE_WORD_COMMAND`),po=N(`DELETE_LINE_COMMAND`),mo=N(`FORMAT_TEXT_COMMAND`),ho=N(`SET_TEXT_FORMAT_COMMAND`),go=N(`UNDO_COMMAND`),_o=N(`REDO_COMMAND`),vo=N(`KEYDOWN_COMMAND`),yo=N(`KEY_ARROW_RIGHT_COMMAND`),bo=N(`MOVE_TO_END`),xo=N(`KEY_ARROW_LEFT_COMMAND`),So=N(`MOVE_TO_START`),Co=N(`KEY_ARROW_UP_COMMAND`),wo=N(`KEY_ARROW_DOWN_COMMAND`),To=N(`KEY_ENTER_COMMAND`),Eo=N(`KEY_SPACE_COMMAND`),Do=N(`KEY_BACKSPACE_COMMAND`),Oo=N(`KEY_ESCAPE_COMMAND`),ko=N(`KEY_DELETE_COMMAND`),Ao=N(`KEY_TAB_COMMAND`),jo=N(`INSERT_TAB_COMMAND`),Mo=N(`INDENT_CONTENT_COMMAND`),No=N(`OUTDENT_CONTENT_COMMAND`),Po=N(`DROP_COMMAND`),Fo=N(`FORMAT_ELEMENT_COMMAND`),Io=N(`DRAGSTART_COMMAND`),Lo=N(`DRAGOVER_COMMAND`),Ro=N(`DRAGEND_COMMAND`),zo=N(`COPY_COMMAND`),Bo=N(`CUT_COMMAND`),Vo=N(`SELECT_ALL_COMMAND`),Ho=N(`CLEAR_EDITOR_COMMAND`),Uo=N(`CLEAR_HISTORY_COMMAND`),Wo=N(`CAN_REDO_COMMAND`),Go=N(`CAN_UNDO_COMMAND`),Ko=N(`FOCUS_COMMAND`),qo=N(`BLUR_COMMAND`),Jo=N(`KEY_MODIFIER_COMMAND`);function Yo(e,t){return{...t,[Ya]:e}}var Xo=Yo(`metaKey`,{ctrlKey:!Ea,metaKey:Ea}),Zo=Yo(`altKey`,{altKey:Ea,ctrlKey:!Ea}),Qo=[[`altKey`,1],[`ctrlKey`,2],[`metaKey`,4],[`shiftKey`,8]];function $o(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}var es=class{byKey=new Map;byCode=new Map;add(e){let{key:t,modifiers:n={}}=e;t.length>0||M(399);let r=t.toLowerCase();for(let i of function(e){let t=[0];for(let[n,r]of Qo){let i=e[n]||!1;i===`any`?t=t.concat(t.map(e=>e|r)):i&&(t=t.map(e=>e|r))}return t}(n))$o(this.byKey,`${i}:${r}`,e),t.length===1&&(/[0-9]/.test(t)?$o(this.byCode,`${i}:Digit${t}`,e):/[a-z]/.test(r)&&$o(this.byCode,`${i}:Key${r.toUpperCase()}`,e));return this}matches(e){let t=e.key;if(!t)return[];let n=function(e){let t=0;for(let[n,r]of Qo)e[n]&&(t|=r);return t}(e),r=this.byKey.get(`${n}:${t.toLowerCase()}`),i=r?r.slice():[];if(this.byCode.size>0&&!(t.length===1&&t.charCodeAt(0)<=127)){let t=this.byCode.get(`${n}:${e.code}`);t&&i.push(...t)}return i}match(e){return this.matches(e)[0]}};function ts(e){let t=new es;for(let n of e)t.add(n);return t}function ns(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function rs(){let e;try{e=`0.53.0+prod.esm`}catch{}return e??`"<unknown>+source"`}var is=rs(),as=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){let e=Array.from(this._front).reverse();for(let t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},os=null;function ss(e,t=1e3){return e instanceof cs?e.clone():e.size<t?new Map(e):new cs().init(new Map(e),void 0,e.size)}var cs=class e{_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,new e().init(this._old,this._nursery,this._size)}init(e,t,n){return this._old=e,this._nursery=t,this._size=n,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){let t=this._nursery&&this._nursery.get(e);return t===void 0?this._old&&this._old.get(e):t}get(e){let t=this.getWithTombstone(e);return t===os?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){let e=new Map(this._old);for(let[t,n]of this._nursery)n===os?e.delete(t):e.set(t,n);this._old=e,this._nursery=void 0}return this._mutable=!1,this}set(e,t){let n=this.getWithTombstone(e);if(n===t)return this;let r=this.getNursery();return n!==os&&n!==void 0||(this._size++,n===os&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,os),this._size--),t}getOrInsert(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}getOrInsertComputed(e,t){let n=this.get(e);if(n!==void 0)return n;let r=t(e);return this.set(e,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(let e of this.entries())yield e[0]}*values(){for(let e of this.entries())yield e[1]}*entries(){let e=this._nursery,t=this._old;if(e){if(t)for(let n of t){let t=n[0],r=e.get(t);r!==os&&(r!==void 0&&(n[1]=r),yield n)}for(let n of e)n[1]===os||t&&t.has(n[0])||(yield n)}else t&&(yield*t)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.entries())e(n,t,this)}get[Symbol.toStringTag](){return`GenMap`}[Symbol.iterator](){return this.entries()}},ls=!1;function us(e,t,...n){let r=ls,i;try{ls=e,i=t()}finally{ls=r}var a;return(a=i)===null||typeof a!=`object`&&typeof a!=`function`||typeof a.then!=`function`||M(421),i}function ds(){return ls}function fs(e){let t=e.exportJSON(ls),n=e.constructor;return t.type!==n.getType()&&M(130,n.name),I(e)&&!Array.isArray(t.children)&&M(59,n.name),t}function ps(){return Xf()._blockCursorElement}function ms(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}var hs=Ia||ja||Na;function gs(){let e=Mf().createElement(`img`);e.setAttribute(`data-lexical-decorator-boundary`,`true`),e.alt=``;for(let[t,n]of[[`position`,`absolute`],[`width`,`0px`],[`height`,`0px`],[`border`,`0px`],[`margin`,`0px`],[`padding`,`0px`]])e.style.setProperty(t,n,`important`);return e}function _s(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-decorator-boundary`)}var vs=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&M(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&M(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&M(359),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=ys(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let a=ys(e,t);if(a===null)return`after`;let o=Array.prototype.indexOf.call(e.childNodes,a);return o>=0&&o<=i?`before`:`after`}getInsertionAnchor(){return this.before}};function ys(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}var bs=class e extends vs{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()||this.getDecoratorBoundaryAnchor(`trailing`)}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;ms(t);)e=t,t=t.nextSibling;_s(t)&&(e=t,t=t.nextSibling);let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===ps()?n:e}getDecoratorBoundaryAnchor(e){let t;if(e===`leading`){let e=super.getFirstChildAnchor();for(t=e?e.nextSibling:this.element.firstChild;ms(t);)t=t.nextSibling}else t=this.before?this.before.previousSibling:this.element.lastChild,t!==null&&t===ps()&&(t=t.previousSibling);return _s(t)?t:null}setDecoratorBoundaryAnchor(e,t){let n=this.getDecoratorBoundaryAnchor(e);if(t!==(n!==null)){if(n!==null)this.element.removeChild(n);else if(e===`leading`){let e=this.getFirstChildAnchor();this.element.insertBefore(gs(),e?e.nextSibling:this.element.firstChild)}else this.element.insertBefore(gs(),this.before)}}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){let t=this.element,n=this.after===null?t.firstChild:this.after.nextSibling,r=e===`empty`&&ms(n)?null:e;if(t.__lexicalLastChildKind!==r){if(t.__lexicalLastChildKind=r,r===null)this.removeManagedLineBreak();else{let e=r===`decorator`&&hs;this.insertManagedLineBreak(e)}}}removeManagedLineBreak(){let e=this.element,t=this.getManagedLineBreak();if(t){t.remove();for(let t of e.querySelectorAll(`:scope > [data-lexical-managed-linebreak]`))t.remove();e.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.element,n=this.getManagedLineBreak();if(n){let r=e?n.nextSibling:n;if(r&&r===t.querySelector(`:scope > br[data-lexical-managed-linebreak]`))return;this.removeManagedLineBreak()}let r=this.before||this.getDecoratorBoundaryAnchor(`trailing`),i=Mf().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),t.insertBefore(i,r),e){let e=Mf().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,t.insertBefore(e,i),t.__lexicalLineBreak=e}else t.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset(),n=ps(),i=this.element.childNodes,a=Math.min(r,i.length),o=0;for(let e=t;e<a;e++)i[e]!==n&&o++;return[e,Math.min(o,e.getChildrenSize())]}let i=xs(t,n);i.push(r);let a=xs(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};function xs(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&M(225),n.reverse()}var Ss=!1,Cs=0;function ws(){Cs=performance.now()}function Ts(e){return W(e)&&e.hasAttribute(`data-lexical-managed-linebreak`)}function Es(e,t,n){let r=Tf(hf(n)),i=r&&Ff(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&qd(t,s,a,o,!1)}function Ds(e,t,n){if(q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return yd(t)&&n.isAttached()}function Os(e,t,n){for(let r=e;r&&!up(r);r=sf(r)){let e=Md(r,t);if(e!==void 0){let t=B(e,n);if(t)return L(t)||!W(r)?void 0:[r,t]}}}function ks(e,t,n,r){Ss=!0;let i=e._inputState.unprocessedBeforeInputData===null&&performance.now()-Cs>100;try{nh(e,()=>{let a=J()||function(e){return e.read(`latest`,()=>{let e=J();return e===null?null:e.clone()})}(e),o=new Map,s=e._editorState,c=e._blockCursorElement,l=!1,u=``;for(let n of t){let t=n.type,d=n.target,f=Os(d,e,s);if(!f)continue;let[p,m]=f;if(t===`characterData`)r?R(m)&&m.isAttached()&&m.markDirty():i&&R(m)&&yd(d)&&Ds(a,d,m)&&Es(d,m,e);else{l=!0;for(let t of n.addedNodes){let n=Md(t,e);if(t!==c&&t.parentNode===d&&(n?e.getElementByKey(n)!==t:!(e._slotsUsed&&W(t)&&t.hasAttribute(`data-lexical-slot`)||up(t)))){if(Da){let e=(W(t)?t.innerText:null)||t.nodeValue;e&&(u+=e)}d.removeChild(t)}}for(let e of n.removedNodes){let t=c===e;if(t||_s(e)||Ts(e)){let t=n.nextSibling,r=n.previousSibling;d.insertBefore(e,t&&t.parentNode!==d?r?r.parentNode===d?r.nextSibling:null:d.firstChild:t)}t||o.set(p,m)}}}for(let[t,n]of o)n.reconcileObservedMutation(t,e);let d=n.takeRecords();for(let t of d)for(let n of t.addedNodes)n.nodeName!==`BR`||Md(n,e)||Ts(n)||n.remove();n.takeRecords(),a!==null&&(l&&Rd(a),Da&&af(e)&&a.insertRawText(u))})}finally{Ss=!1}}function As(e,t,n){let r=e._observer;if(r!==null){let i=r.takeRecords();(!n||i.length>0)&&ks(e,i,r,t)}}function js(e){(function(e){hf(e).addEventListener(`textInput`,ws,!0)})(e),e._observer=new MutationObserver((t,n)=>{ks(e,t,n)})}function Ms(e,t,n){let{isEqual:r}=e;return t===n||r!==void 0&&r(t,n)}function Ns(e,t){return Ms(e,t,e.defaultValue)}function Ps(e){return typeof e==`object`&&!!e}function Fs(e,t){let n=Bs(e,t).getter;return Ps(n)&&n.getterTable!==void 0||M(405,t),zs(n.getterTable)}function Is(e,t){let n=Bs(e,t).setter;return Ps(n)&&n.setterTable!==void 0||M(406,t),zs(n.setterTable)}function Ls(e,t,n){let{meta:r}=Bs(e,t);for(let e=0;;)if(r.kind===`aliased`){if(e===n)return zs(r.aliases);e++,r=r.inner.meta}else r.kind===`nullable`||r.kind===`optional`?r=r.inner.meta:r.kind===`array`?r=r.item.meta:M(407,t,String(n))}function Rs(e,t){let n=Bs(e,t),{setter:r}=n;Ps(r)&&r.setterTable!==void 0||M(408,t);let i=String(n.defaultValue);return Ys(r.setterTable,i)||M(409,t,i),r.setterTable[i]}function zs(e){return Object.assign(Object.create(null),e)}function Bs(e,t){let n=e.get(t);return n===void 0&&M(410,t),n}function Vs(e,t,n,r,i){i!==void 0&&Hs.add(i);let a=n===void 0,o=a?e(void 0):n;return a&&Gs(o),Object.assign(e,{accepts:i,defaultValue:o,isEqual:r,meta:t})}var Hs=new WeakSet,Us=new WeakSet;function Ws(e){return typeof e==`object`&&e&&Us.add(e),e}function Gs(e){if(typeof e==`object`&&e&&!Object.isFrozen(e)&&!Us.has(e)){Object.freeze(e);for(let t of Object.values(e))Gs(t)}}function Ks(e){let{isEqual:t}=e;return t===void 0?void 0:(e,n)=>e==null||n==null?e===n:t(e,n)}function qs(e,t){return n=>t(n)||Js(e,n)}function Js(e,t){let{accepts:n}=e;return n===void 0?function(e,t){let{accepts:n}=e;if(n!==void 0)return Js(e,t)?{parsed:e(t)}:void 0;let r=e(t);return Ns(e,r)&&t!==e.defaultValue?void 0:{parsed:r}}(e,t)!==void 0:n.call(e,t)}function Ys(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xs(e=``){return Vs(t=>typeof t==`string`?t:e,{kind:`string`},void 0,void 0,e=>typeof e==`string`)}var Zs=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Qs(e=0,t={}){let{integer:n,clamp:r}=t,i=n&&t.min!==void 0?Math.ceil(t.min):t.min,a=n&&t.max!==void 0?Math.floor(t.max):t.max,o=e=>typeof e==`string`&&Zs.test(e)?Number(e):e,s=e=>typeof e==`number`&&Number.isFinite(e)&&(!n||Number.isInteger(e)),c=e=>s(e)&&(i===void 0||e>=i)&&(a===void 0||e<=a);return Vs(t=>{let n=o(t);return r&&s(n)?i!==void 0&&n<i?i:a!==void 0&&n>a?a:n:c(n)?n:e},{clamp:r,integer:n,kind:`number`,max:a,min:i},void 0,void 0,e=>r?s(o(e)):c(o(e)))}function $s(e=!1){return Vs(t=>typeof t==`boolean`?t:e,{kind:`boolean`},void 0,void 0,e=>typeof e==`boolean`)}function ec(e,...t){let n=Ws(t.length===0?e[0]:t[0]),r=new Set(e);return Vs(e=>e!==void 0&&r.has(e)?e:n,{kind:`enum`,values:e},n,void 0,e=>r.has(e)&&(e!==void 0||n===void 0))}function tc(e,t={}){let{defaultAsNull:n}=t;return Vs(t=>{if(t==null)return null;let r=e(t);return n&&Ns(e,r)?null:r},{defaultAsNull:n,inner:e,kind:`nullable`},void 0,Ks(e),qs(e,e=>e==null))}function nc(e,t={}){let{omitDefault:n}=t;return Vs(t=>{if(t===void 0)return;let r=e(t);return n&&Ns(e,r)?void 0:r},{inner:e,kind:`optional`,omitDefault:n},void 0,Ks(e),qs(e,e=>e===void 0))}function rc(){return e=>function(e){return{meta:{fields:e,kind:`node`}}}(e)}function ic(e,t){let n=e=>typeof e==`string`&&Ys(t,e);return Vs(r=>n(r)?t[r]:e(r),{aliases:t,inner:e,kind:`aliased`},e.defaultValue,e.isEqual,t=>n(t)||Js(e,t))}function ac(e){return Vs(t=>{if(!Array.isArray(t))return[];let n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e(t[r]);return n},{item:e,kind:`array`},void 0,(t,n)=>{if(!Array.isArray(t)||!Array.isArray(n)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!Ms(e,t[r],n[r]))return!1;return!0},e=>Array.isArray(e))}function oc(e,t){return cc(0,e,{getter:{field:t.field,getterTable:t.getterTable,method:t.getter,when:t.when},setter:{field:t.field,method:t.setter,setterTable:t.setterTable}},!0===t.derived)}function sc(e,t){return cc(0,e,{getter:t.getter,setter:t.setter},!0===t.derived)}function cc(e,t,n,r=!1){return Object.assign(e=>t(e),{accepts:t.accepts,defaultValue:t.defaultValue,...r?{derived:!0}:{},getter:n.getter,isEqual:t.isEqual,meta:t.meta,setter:n.setter})}var lc=`latest`,uc=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;derived;schema;constructor(e,t){this.key=e,this.derived=!0===t.derived;let n=`meta`in(r=t.parse)&&typeof r.meta==`object`&&r.meta!==null&&`kind`in r.meta&&typeof r.meta.kind==`string`&&`defaultValue`in r?t.parse:void 0;var r;this.schema=n,this.parse=t.parse.bind(t),this.unparse=(t.unparse||xc).bind(t),this.isEqual=t.isEqual?t.isEqual.bind(t):n!==void 0&&n.isEqual!==void 0?(e,t)=>Ms(n,e,t):Object.is,this.defaultValue=n===void 0?this.parse(void 0):n.defaultValue,this.resetOnCopyNode=t.resetOnCopyNode||!1}};function dc(e,t){return new uc(e,t)}function fc(e,t,n=lc){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function pc(e,t,n){let r;if(Fm(),typeof n==`function`){let i=e.getLatest(),a=fc(i,t);if(r=mc(t,n(a)),t.isEqual(a,r))return i}else r=mc(t,n);let i=e.getWritable();return vc(i).updateFromKnown(t,r),i}function mc(e,t){let{schema:n}=e;return n!==void 0&&n.meta.kind===`set`?e.parse(t):t}function hc(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of Hp(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}var gc=new Set([`__proto__`,`constructor`,`prototype`]),_c=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.knownState.set(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return bc(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){if(gc.has(i))continue;let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(let e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;i&&n in i?(delete i[n],this.unknownState=bc(i)):r.has(e)||this.size++,r.set(e,t)}updateFromUnknown(e,t){if(gc.has(e))return;let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function vc(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new _c(t,function(e){return e.__state?e.__state.sharedNodeState:cd(Xf(),e.getType()).sharedNodeState}(t));return t.__state=n,n}function yc(e,t){let n=e.getWritable(),r=t.$;return(n.__state||r)&&vc(e).updateFromJSON(r),n}function bc(e){if(e)for(let t in e)return e}function xc(e){return e}function Sc(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function Cc(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function wc(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Tc(e){return!ou(e)&&e.getTextContent!==tu.prototype.getTextContent}var Ec=Symbol.for(`@lexical/CachedTextSize`);function Dc(e,t){return Hc.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=Vc.get(r);if(i===void 0&&M(345,r),I(i)){let a=Uc.get(r);if(a!==void 0&&I(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=Wc.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&M(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else if(ol(i).size>0)n+=i.getTextContentSize();else{let e=i[Ec];e===void 0&&M(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:P})}function Oc(e){I(e)||ol(e).size>0||e[Ec]===void 0&&(e[Ec]=R(e)?e.__text.length:e.getTextContentSize())}var kc=4,Ac,P,jc,F=``,Mc=null,Nc=null,Pc=null;function Fc(){return{firstTextKey:Pc,format:Mc,style:Nc}}function Ic(e){e.firstTextKey!==null&&(Mc=e.format,Nc=e.style,Pc=e.firstTextKey)}function Lc(e){if(Pc!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&M(348),t===null)return;let n=Uc.get(t);R(n)&&(Mc=n.getFormat(),Nc=n.getStyle(),Pc=t)}var Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc=!1,Yc=!1;function Xc(e,t){let n=Vc.get(e),r=Uc.has(e);if(t!==null){let n=xl(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(P._keyToDOMMap.delete(e),I(n)){let e=Wp(n,Vc);Zc(e,0,e.length-1,null)}if(n!==void 0){for(let e of ol(n).values()){let t=cl(e);Xc(e,null),t!==null&&t.remove()}ef(Kc,jc,Rc,n,`destroyed`)}}}function Zc(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&Xc(t,r)}}function Qc(e,t){e.setProperty(`text-align`,t)}var $c=`40px`;function el(e,t){let n=Ac.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${$c}))`),Qd(e,`class`),Qd(e,`style`)}function tl(e,t){let n=e.style;t===0?Qc(n,``):t===1?Qc(n,`left`):t===2?Qc(n,`center`):t===3?Qc(n,`right`):t===4?Qc(n,`justify`):t===5?Qc(n,`start`):t===6&&Qc(n,`end`),Qd(e,`style`)}function nl(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(ou(e))return null;let n=e.getParent();return n===null||U(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function rl(e){let t=Mf().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function il(e,t,n){t||e.contentEditable===`false`?dp(n,P):n.removeAttribute(`contenteditable`)}function al(e,t,n){let r=F,i=Fc();F=``;let a=``,o=L(e);for(let[r,i]of n){let n=rl(r);il(t,o,n),t.appendChild(n),F=``;let s=Fc();ul(i,Qf(e,n,P)),Ic(s),sl(e,r,t,n),a+=F}return Ic(i),F=r,a}function ol(e){return p_(e)&&e.__slots!==null?e.__slots:f_}function sl(e,t,n,r){let i=qc.$getSlotTargetElement(e,t,n,P);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function cl(e){let t=Wc.get(e);return t===void 0?null:t.parentElement}function ll(e,t,n){let r=ol(e),i=ol(t);for(let[e,t]of r)if(!i.has(e)){let e=cl(t);Xc(t,null),e!==null&&e.remove()}let a=F,o=Fc(),s=``,c=null,l=L(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:cl(i);F=``;let u=Fc();if(o===null){o=rl(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),ul(a,Qf(t,o,P))}else i===a?gl(a,o):(i!==void 0&&Xc(i,o),ul(a,Qf(t,o,P)));if(Ic(u),il(n,l,o),sl(t,e,n,o),s+=F,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return Ic(o),F=a,s}function ul(e,t){let n=Uc.get(e);if(n===void 0&&M(60),t!==null){let r=Vc.get(e);if(r!==void 0){let i=Wc.get(e);if(i!==void 0){let a=m_(r)?r.__slotHost:null,o=m_(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),gl(e,t.element)}}}let r=qc.$createDOM(n,P);if(function(e,t,n){let r=n._keyToDOMMap;jd(t,n,e),r.set(e,t)}(e,r,P),R(n)?r.setAttribute(`data-lexical-text`,`true`):L(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),lp(r,{captureSelection:!0})),I(n)){let e=F,t=n.__indent,i=n.__size;nl(r,n),t!==0&&el(r,t);let a=ol(n),o=a.size>0?al(n,r,a):``;if(i===0)r.__lexicalTextContent=o,r.__lexicalFirstTextKey=null,F+=o,a.size>0&&(r.__lexicalSlotTextLength=o.length);else{let t=i-1;if(dl(Wp(n,Uc),n,0,t,Qf(n,r,P)),o!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=o+t,F=e+o+t}a.size>0&&(r.__lexicalSlotTextLength=o.length)}if(Tc(n)){let t=n.getTextContent();r.__lexicalTextContent=t,F=e+t}let s=n.__format;s!==0&&tl(r,s),n.isInline()||(ml(0,n,r),pl(n,r))}else{let t=n.getTextContent();if(L(n)){let t=n.decorate(P,Ac);t!==null&&_l(e,t),r.contentEditable=`false`;let i=ol(n);i.size>0&&al(n,r,i)}F+=t}return t!==null&&t.insertChild(r),qc.$decorateDOM(n,null,r,P),Oc(n),ef(Kc,jc,Rc,n,`created`),r}function dl(e,t,n,r,i){let a=F,o=Fc();F=``,Mc=null,Nc=null,Pc=null;let s=n;for(;s<=r;++s){let t=Fc();ul(e[s],i);let n=Uc.get(e[s]);n!==null&&R(n)?Mc===null&&(Mc=n.getFormat(),Nc=n.getStyle(),Pc=n.__key):I(n)&&s<r&&!n.isInline()&&(F+=Ba),Ic(t)}let c=P._keyToDOMMap.get(t.__key);c===void 0&&M(349,t.__key),c.__lexicalTextContent=F,c.__lexicalFirstTextKey=Pc,F=a+F,Ic(o)}function fl(e){return L(e)&&!e.isInline()}function pl(e,t,n=Qf(e,t,P)){n.setDecoratorBoundaryAnchor(`leading`,fl(e.getFirstChild())),n.setDecoratorBoundaryAnchor(`trailing`,fl(e.getLastChild()))}function ml(e,t,n){let r=Qf(t,n,P),i=function(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return dm(e)?`line-break`:L(e)&&e.isInline()?`decorator`:null}return`empty`}return null}(t,Uc);r.setManagedLineBreak(i)}function hl(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=Uc.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=Uc.get(r);if(R(e))return Mc=e.getFormat(),void(Nc=e.getStyle())}}t.__lexicalFirstTextKey=Pc}function gl(e,t){let n=Vc.get(e),r=Uc.get(e);n!==void 0&&r!==void 0||M(61);let i=Jc||Bc.has(e)||zc.has(e),a=of(P,e);if(n===r&&!i){let e;if(I(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&M(355,n.getType()),e=t,Lc(a)}else e=n.getTextContent();return F+=e,a}if(n!==r&&i&&ef(Kc,jc,Rc,r,`updated`),qc.$updateDOM(r,n,a,P)){let n=ul(e,null);return t===null&&M(62),t.replaceChild(n,a),Xc(e,null),n}if(I(n)){I(r)||M(334,e);let t=r.__indent;(Jc||t!==n.__indent)&&el(a,t);let o=r.__format;(Jc||o!==n.__format)&&tl(a,o);let s=i&&(ol(r).size>0||ol(n).size>0)?ll(n,r,a):``;if(i){let e=F;if(function(e,t,n){var r;Mc=null,Nc=null,Pc=null,function(e,t,n){let r=F,i=e.__size,a=t.__size;F=``;let o=n.element,s=P._keyToDOMMap.get(t.__key);s===void 0&&M(351,t.__key);let c=a-i;if(!Jc&&Math.abs(c)<=1&&i>=kc&&e.__first===t.__first&&(c!==0||!P._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=Gc.get(e.__key);if(!Jc&&!Tc(t)&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a<n;){if(!t.has(r))return null;i=r;let e=Uc.get(r);if(e===void 0)return null;r=e.__prev,a++}return a!==n||r!==null&&t.has(r)?null:i}(t,l);if(a!==null){let u=l.size;if(c===0){let e=Dc(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=Uc.get(n);if(e===void 0)break;let t=Fc();gl(n,o),R(e)&&Mc===null&&(Mc=e.getFormat(),Nc=e.getStyle(),Pc=e.__key),Ic(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=Uc.get(n);if(e===void 0)break;let t;if(I(e)){let r=P._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&M(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&I(e)&&!e.isInline()&&(d+=Ba),n=e.__next,c++}let f=s.__lexicalSlotTextLength||0,p=f>0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,F=r+m,hl(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e<c-1;e++){if(l===null)return!1;let e=Vc.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=Uc.get(a),d=Vc.get(l);if(u===void 0||d===void 0||u.__prev!==d.__prev)return!1;let f=[],p=a;for(let e=0;e<o;e++){if(p===null)return!1;f.push(p);let e=Uc.get(p);p=e?e.__next:null}let m=[];p=l;for(let e=0;e<c;e++){if(p===null)return!1;m.push(p);let e=Vc.get(p);p=e?e.__next:null}let h=new Set(m),g=new Set(f),_=[],v=0,y=0;for(;v<c&&y<o;)if(f[y]===m[v])_.push({key:f[y],kind:`reconcile`}),v++,y++;else if(g.has(m[v])){if(h.has(f[y]))return!1;_.push({key:f[y],kind:`create`,nextIndex:y}),y++}else _.push({key:m[v],kind:`destroy`}),v++;for(;v<c;)_.push({key:m[v++],kind:`destroy`});for(;y<o;)_.push({key:f[y],kind:`create`,nextIndex:y}),y++;let b=Dc(l,c);for(let e of _){let t=Fc();if(e.kind===`reconcile`)gl(e.key,n.element);else if(e.kind===`destroy`)Xc(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=P._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}ul(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=Uc.get(e.key);t&&R(t)&&Mc===null&&(Mc=t.getFormat(),Nc=t.getStyle(),Pc=t.__key)}Ic(t)}let x=``;for(let e=0;e<o;e++){let t=Uc.get(f[e]);if(t===void 0)return!1;let n;if(I(t)){let r=P._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&M(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&I(t)&&!t.isInline()&&(x+=Ba)}let S=r.__lexicalSlotTextLength||0,C=S>0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&M(353),F=r+e,hl(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=Uc.get(t);if(e===void 0)break;let r=Jc||Bc.has(t)||zc.has(t),i=Fc();if(r)gl(t,o);else{let n,r;if(I(e)){r=Wc.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&M(354,e.getType()),n=i}else n=e.getTextContent();F+=n,r!==void 0&&Lc(r)}R(e)?Mc===null&&(Mc=e.getFormat(),Nc=e.getStyle(),Pc=e.__key):I(e)&&n<a-1&&!e.isInline()&&(F+=Ba),Ic(i),t=e.__next,n++}s.__lexicalTextContent=F,s.__lexicalFirstTextKey=Pc,F=r+F;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)gl(r,o);else{let e=xl(r),t=ul(i,null);try{e.parentNode===o?o.replaceChild(t,e):n.insertChild(t)}catch(n){if(typeof n==`object`&&n){let a=`${n.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw Error(a)}throw n}Xc(r,null)}let a=Uc.get(i);R(a)&&Mc===null&&(Mc=a.getFormat(),Nc=a.getStyle(),Pc=a.__key)}else{let r=Wp(e,Vc),s=Wp(t,Uc);if(r.length!==i&&M(227),s.length!==a&&M(228),i===0)a!==0&&dl(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&ol(t).size===0&&n.element.__lexicalLineBreak==null;Zc(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else(function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f],i=Fc();if(e===r)u=vl(gl(r,a.element)),d++,f++;else{if(l===void 0&&(l=yl(n,f)),c===void 0)c=yl(t,d);else if(!c.has(e)){d++,Ic(i);continue}if(!l.has(e)){let t=xl(e);t.parentNode===a.element&&(u=vl(t)),Xc(e,a.element),d++,c.delete(e),Ic(i);continue}if(c.has(r)){let e=of(P,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=vl(gl(r,a.element)),d++,f++}else ul(r,a.withBefore(u??a.before)),f++}let o=Uc.get(r);o!==null&&R(o)?Mc===null&&(Mc=o.getFormat(),Nc=o.getStyle(),Pc=o.__key):I(o)&&f<=s&&!o.isInline()&&(F+=Ba),Ic(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:P.getElementByKey(t);dl(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&Zc(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=F,s.__lexicalFirstTextKey=Pc,F=r+F}(e,t,Qf(t,n,P)),U(t)||(r=t,Mc==null||Mc===r.__textFormat||Yc||r.setTextFormat(Mc),function(e){Nc==null||Nc===e.__textStyle||Yc||e.setTextStyle(Nc)}(t))}(n,r,a),r.isInline()||(ou(r)||ml(0,r,a),pl(r,a)),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,F=e+s+t,a.__lexicalSlotTextLength=s.length}else(ol(r).size>0||ol(n).size>0)&&(a.__lexicalSlotTextLength=0);if(Tc(r)){let t=r.getTextContent();a.__lexicalTextContent=t,F=e+t}}else{let e=a.__lexicalTextContent;typeof e!=`string`&&M(356,n.getType()),F+=e,Lc(a)}if((Jc||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(nl(a,r),ou(r)&&!Jc))for(let e of r.getChildren())I(e)&&nl(of(P,e.getKey()),e)}else{let t=r.getTextContent();if(L(r)){let t=r.decorate(P,Ac);t!==null&&_l(e,t),i&&(ol(r).size>0||ol(n).size>0)&&ll(n,r,a)}F+=t}if(!Yc&&ou(r)){let e=r.getLatest();if(e.__cachedText!==F){let t=e.getWritable();t.__cachedText=F,r=t}}return qc.$decorateDOM(r,n,a,P),Oc(r),a}function _l(e,t){let n=P._pendingDecorators,r=P._decorators;if(n===null){if(r[e]===t)return;n=Pd(P)}n[e]=t}function vl(e){let t=e.nextSibling;return t!==null&&t===P._blockCursorElement&&(t=t.nextSibling),t}function yl(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function bl(e,t,n,r,i,a){F=``,Mc=null,Nc=null,Pc=null,Jc=r===2,P=n,Ac=n._config,qc=n._config.dom||vm,jc=n._nodes,Rc=P._listeners.mutation,zc=i,Bc=a,Vc=e._nodeMap,Hc=e,Uc=t._nodeMap,Yc=t._readOnly,Wc=ss(n._keyToDOMMap),Gc=function(){let e=new Map,t=t=>{for(let n of t){let t=Uc.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(zc.keys()),t(Bc),e}();let o=new Map;return Kc=o,gl(`root`,null),P=void 0,jc=void 0,zc=void 0,Bc=void 0,Vc=void 0,Hc=void 0,Uc=void 0,Ac=void 0,Wc=void 0,Gc=void 0,Kc=void 0,qc=vm,o}function xl(e){let t=Wc.get(e);return t===void 0&&M(75,e),t}function Sl(e,t,n){Fm();let r=e.__key,i=e.getParent();if(i===null)return void(h_(e)!==null&&M(367,r,String(h_(e))));let a=function(e){let t=J();if(!q(t)||!I(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return pf(i,e)&&n.set(e.__key,0,`element`),pf(a,e)&&r.set(e.__key,0,`element`),t}(e),o=!1;if(q(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(Wg(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(Wg(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else dg(a)&&t&&e.isSelected()&&e.selectPrevious();c_(e.getWritable(),t&&!o&&q(a)?a:null),n||U(i)||i.canBeEmpty()||!i.isEmpty()||Sl(i,t),t&&a&&ou(i)&&i.isEmpty()&&i.selectEnd()}function Cl(e){return e}var wl=Symbol.for(`ephemeral`);function Tl(e){return e[wl]||!1}var El={configurable:!0,enumerable:!1,value:void 0,writable:!0},Dl=class{__type;__key;__parent;__prev;__next;__state;static getType(){let{ownNodeType:e}=Pp(this);return e===void 0&&M(64,this.name),e}static clone(e){M(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Gp(this.constructor);return Object.assign(t,{extends:n}),typeof e==`string`&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&=this.__state.getWritable(this).resetOnCopyNode()}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",El),Object.defineProperty(this,Ec,El),wd(this,e)}getType(){return this.__type}isInline(){M(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=B(e);if(t===null)break;e=t.__parent===null?h_(t):t.__parent}return!1}isSelected(e){let t=e||J();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(R(this))return n;if(q(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(L(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:B(e)}getParentOrThrow(){let e=this.getParent();return e===null&&M(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(U(t)||h_(e)!==null)return I(e)||e===this&&L(e)||M(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&M(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:B(e)}getPreviousSiblings(){return d_(this.getPreviousSibling(),`previous`).reverse()}getNextSibling(){let e=this.getLatest().__next;return e===null?null:B(e)}getNextSiblings(){return d_(this.getNextSibling(),`next`)}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=pv(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?uv(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&M(279),!1)))}isParentOf(e){return pf(e,this)}getNodesBetween(e){let t=this.isBefore(e),n=[],r=this,i=!0,a=0;for(;r!==null&&((i||a===0)&&n.push(r),!r.is(e));){!i&&a>0&&a--;let e=i&&I(r)?t?r.getFirstChild():r.getLastChild():null;e!==null&&a++;let n=e||(t?r.getNextSibling():r.getPreviousSibling());i=n!==null,r=n||r.getParent()}return t?n:n.reverse()}isDirty(){let e=K()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(Tl(this))return this;let e=B(this.__key);return e===null&&M(442,this.__key,this.__type),e}getWritable(){if(Tl(this))return this;Fm();let e=Lm(),t=K(),n=this.__key,r=t._cloneNotNeeded,i=r.get(n),a=e._selection;if(a!==null&&a.setCachedNodes(null),i!==void 0)return Ed(i),i;let o=e._nodeMap,s=o.get(n);s===void 0&&M(442,n,this.__type);let c=ip(s);return r.set(n,c),o.set(n,c),Ed(c),c}getTextContent(){return k_(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){M(70)}updateDOM(e,t,n){M(71)}getDOMSlot(e){return new vs(e)}exportDOM(e){return{element:Zf(e).$createDOM(this,e)}}exportJSON(e=!1){let t=function(e,t){let n=gp(hp(e.constructor)),{generated:r,isCompactDefault:i}=n,a=r===null?void 0:t?r.exportCompactJSON:r.exportJSON;return a===void 0?function(e,t,n){let r=n?{type:e.__type}:{};return I(e)&&(r.children=[]),function(e,t,n,r){for(let i=0;i<t.length;i++){let a=t[i];if(r&&a.derived)continue;let o;if(a.kind===`ownField`){let t=kp(e)[a.field];o=a.getterTable===void 0?t:Ys(a.getterTable,t)?a.getterTable[t]:void 0}else o=a.getter.call(e);a.kind===`ownField`&&a.when!==void 0&&(!Ap(a,o)&&a.when.call(e)||(o=void 0)),r&&Ap(a,o)||(n[a.key]=o)}}(e,t,r,n),n||(r.type=e.__type,r.version=1),r}(e,n.getters,t):t?a(e,i):a(e)}(this,e),n=this.__state?this.__state.toJSON():void 0;return n!==void 0&&Object.assign(t,n),t}static importJSON(e){M(18,this.name)}updateFromJSON(e){return Np(yc(this,e),e)}static transform(){return null}remove(e){Sl(this,!0,e)}replace(e,t){Fm();let n=J();n!==null&&(n=n.clone()),xf(this,e);let r=this.getLatest(),i=this.__key,a=g_(r);a!==null&&M(400,i,r.getType(),a.getKey(),a.getType());let o=e.__key,s=e.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size,u=s.getParent();c_(s,q(n)?n:null);let d=r.getPreviousSibling(),f=r.getNextSibling();Sl(r,!1,!0),o_(c,s,d&&d.getWritable(),f&&f.getWritable()),c.__size=u!==null&&u.is(c)?l-1:l;let p=0;if(t&&(I(this)&&I(s)||M(139),p=s.getChildrenSize(),s.splice(p,0,this.getChildren())),q(n)){Rd(n);for(let e of[n.anchor,n.focus])e.key===i&&(t&&e.type===`element`?e.set(s.__key,p+e.offset,`element`):ig(e,s))}return Od()===i&&Dd(o),s}insertAfter(e,t=!0){return l_(this,`next`,e,t)}insertBefore(e,t=!0){return l_(this,`previous`,e,t)}isParentRequired(){return!1}createParentElementNode(){return z()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){return u_(Y(this,`previous`),e,t)}selectNext(e,t){return u_(Y(this,`next`),e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};function Ol(e){return e instanceof Dl}function kl(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&Sc(n,e,t)||t&&Sc(n,t,e)||e&&Cc(n,e,t)||t&&Cc(n,t,e))}(c,l))}function Al(e,t){let n=e.mergeWithSibling(t),r=K()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function jl(e){let t,n,r=e;if(!kd(r)){if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&R(t)&&t.isSimpleText()&&!t.isUnmergeable()&&!kd(t);){if(t.__text!==``){if(kl(t,r)){r=Al(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&R(n)&&n.isSimpleText()&&!n.isUnmergeable()&&!kd(n);){if(n.__text!==``){if(kl(r,n)){r=Al(r,n);break}break}n.remove()}}else r.remove()}}function Ml(e){return Nl(e.anchor),Nl(e.focus),e}function Nl(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),R(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!I(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var Pl=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Fl(e,t){if(typeof e==`number`)return Number.isFinite(e)?e:t;if(typeof e!=`string`||!Pl.test(e))return t;let n=Number(e);return Number.isFinite(n)?n:t}function Il(e,t,n,r,i){let a=Fl(e,t);return a>=n&&a<=r&&Number.isInteger(a)?a:t}var Ll=e=>{let t=Fs(e,`format`),n=Is(e,`format`),r=Rs(e,`format`);return{exportJSON:function(e){let n=e.__textFormat,r=e.__textStyle,i=(n!==0||r!==``)&&e.shouldSerializeTextStyles();return{children:[],direction:e.__dir,format:t[e.__format],indent:e.__indent,textFormat:n!==0&&i?n:void 0,textStyle:r!==``&&i?r:void 0,type:e.__type,version:1}},exportCompactJSON:function(e){let n=e.__textFormat,r=e.__textStyle,i=(n!==0||r!==``)&&e.shouldSerializeTextStyles(),a={type:e.__type,children:[]},o=e.__dir;o!=null&&(a.direction=o);let s=t[e.__format];s!==void 0&&s!==``&&(a.format=s);let c=e.__indent;return c!==void 0&&c!==0&&(a.indent=c),n!==void 0&&n!==0&&i&&(a.textFormat=n),r!==void 0&&r!==``&&i&&(a.textStyle=r),a},updateFromJSON:function(e,t){let i=t.direction;e.__dir=i===null||i===`ltr`||i===`rtl`?i:null;let a=t.format;e.__format=typeof a==`string`&&a in n?n[a]:r,e.__indent=Il(t.indent,0,0,1/0),e.__textFormat=Fl(t.textFormat,0);let o=t.textStyle;return e.__textStyle=typeof o==`string`?o:``,e}}};function Rl(e,t){e.__detail=t.__detail,e.__format=t.__format,e.__mode=t.__mode,e.__style=t.__style,e.__text=t.__text}var zl=e=>{let t=Fs(e,`mode`),n=Ls(e,`detail`,0),r=Ls(e,`format`,0),i=Is(e,`mode`),a=Rs(e,`mode`);return{exportJSON:function(e){return{detail:e.__detail,format:e.__format,mode:t[e.__mode],style:e.__style,text:e.__text,type:e.__type,version:1}},exportCompactJSON:function(e){let n={type:e.__type},r=e.__detail;r!==void 0&&r!==0&&(n.detail=r);let i=e.__format;i!==void 0&&i!==0&&(n.format=i);let a=t[e.__mode];a!==void 0&&a!==`normal`&&(n.mode=a);let o=e.__style;o!==void 0&&o!==``&&(n.style=o);let s=e.__text;return s!==void 0&&s!==``&&(n.text=s),n},updateFromJSON:function(e,t){let o=t.detail;e.__detail=typeof o==`string`&&o in n?n[o]:Fl(o,0);let s=t.format;e.__format=typeof s==`string`&&s in r?r[s]:Fl(s,0);let c=t.mode;e.__mode=typeof c==`string`&&c in i?i[c]:a;let l=t.style;e.__style=typeof l==`string`?l:``;let u=t.text;return e.__text=typeof u==`string`?u:``,e},afterCloneFrom:Rl}},Bl=e=>{let t=Fs(e,`format`),n=Is(e,`format`),r=Rs(e,`format`);return{exportJSON:function(e){let n=e.__textFormat,r=e.__textStyle,i=(n!==0||r!==``)&&e.shouldSerializeTextStyles();return{children:[],direction:e.__dir,format:t[e.__format],indent:e.__indent,textFormat:n!==0&&i?n:void 0,textStyle:r!==``&&i?r:void 0,type:e.__type,version:1}},exportCompactJSON:function(e){let n=e.__textFormat,r=e.__textStyle,i=(n!==0||r!==``)&&e.shouldSerializeTextStyles(),a={type:e.__type,children:[]},o=e.__dir;o!=null&&(a.direction=o);let s=t[e.__format];s!==void 0&&s!==``&&(a.format=s);let c=e.__indent;return c!==void 0&&c!==0&&(a.indent=c),n!==void 0&&n!==0&&i&&(a.textFormat=n),r!==void 0&&r!==``&&i&&(a.textStyle=r),a},updateFromJSON:function(e,t){let i=t.direction;e.__dir=i===null||i===`ltr`||i===`rtl`?i:null;let a=t.format;e.__format=typeof a==`string`&&a in n?n[a]:r,e.__indent=Il(t.indent,0,0,1/0),e.__textFormat=Fl(t.textFormat,0);let o=t.textStyle;return e.__textStyle=typeof o==`string`?o:``,e}}},Vl=()=>({exportJSON:function(e){return{type:e.__type,version:1}},exportCompactJSON:function(e){return{type:e.__type}}}),Hl=e=>{let t=Fs(e,`mode`),n=Ls(e,`format`,0);return{exportJSON:function(e){return{detail:e.__detail,mode:t[e.__mode],text:e.__text,format:e.__format,style:e.__style,type:e.__type,version:1}},exportCompactJSON:function(e){let t={type:e.__type},n=e.__format;n!==void 0&&n!==0&&(t.format=n);let r=e.__style;return r!==void 0&&r!==``&&(t.style=r),t},updateFromJSON:function(e,t){let r=t.format;e.__format=typeof r==`string`&&r in n?n[r]:Fl(r,0);let i=t.style;return e.__style=typeof i==`string`?i:``,e}}},Ul=new WeakMap;function Wl(e,t){for(let n=e;n!==null&&n!==t;n=Object.getPrototypeOf(n)){let t=n.prototype;if(t!==void 0&&Object.prototype.hasOwnProperty.call(t,`isInline`)&&typeof t.isInline==`function`&&!Lp(t.isInline))try{let t=e.prototype.isInline.call(Object.create(e.prototype));return typeof t==`boolean`?t:null}catch{return null}}}function Gl(e){for(let{ownNodeConfig:t}of Hp(e))if(t&&t.children!==void 0)return t.children}function Kl(e){let t=Ul.get(e);if(t===void 0){let n={},r={},i=!1;for(let{klass:t,ownNodeConfig:a}of Hp(e))a&&(r.inline===void 0&&a.inline!==void 0&&(n.inline=a.inline,r.inline=t),r.children===void 0&&a.children!==void 0&&(n.children=a.children,r.children=t),i||a.mergeAdjacent===void 0||(i=!0,!1!==a.mergeAdjacent&&(n.mergeAdjacent=a.mergeAdjacent,r.mergeAdjacent=t)));let a=function(e){let t=new Set,n=Tp(e);for(let e of Object.keys(n))!0===n[e].derived&&t.add(e);for(let{ownNodeConfig:n}of Hp(e)){let e=n&&n.stateConfigs;if(e)for(let n of e){let e=n instanceof uc?n:n.stateConfig;e.derived&&t.add(e.key)}}return t}(e);r.inline!==void 0&&r.inline!==e&&Wl(e,r.inline)!==void 0&&Wl(e,r.inline)!==n.inline&&(delete n.inline,delete r.inline),r.mergeAdjacent===void 0||r.mergeAdjacent===e||function(e,t,n){let r=Tp(e);for(let e of t.by)if(typeof e==`string`){if(!(e in r))return{entry:e,reason:`unknown`};if(n.has(e))return{entry:e,reason:`derived`}}else if(e.derived)return{entry:String(e.key),reason:`derived-state`};return null}(e,n.mergeAdjacent,a)===null&&function(e,t){if(!Array.isArray(t)||t.includes(`inline`))return null;for(let n of t){if(n===`inline`)continue;let t=Gl(n);if(!(t===`inline`||Array.isArray(t)&&t.includes(`inline`)&&t.every(t=>t===`inline`||t===e||e.prototype instanceof t)))return n}return null}(e,n.children)===null||(delete n.mergeAdjacent,delete r.mergeAdjacent),t=Object.freeze({...n,declaredBy:Object.freeze(r),derived:a,derivedNames:a}),Ul.set(e,t)}return t}function ql(e){let{derivedNames:t,...n}=Kl(e);return Object.freeze({...n,derived:new Set(t)})}function Jl(e){return!1}function Yl(){return{...Ka,0:``}}function Xl(){return{...Wa,"":0}}var Zl=Yl(),Ql=Xl(),$l=rc()({direction:oc(ec([null,`ltr`,`rtl`]),{field:`__dir`}),format:oc(ec([``,`left`,`start`,`center`,`right`,`end`,`justify`]),{field:`__format`,getter:`getFormatType`,getterTable:Zl,setter:`setFormat`,setterTable:Ql}),indent:oc(Qs(0,{integer:!0,min:0}),{field:`__indent`}),textFormat:sc(Qs(),{getter:{field:`__textFormat`,method:`getSerializedTextFormat`,when:`shouldSerializeTextStyles`},setter:{field:`__textFormat`}}),textStyle:sc(Xs(),{getter:{field:`__textStyle`,method:`getSerializedTextStyle`,when:`shouldSerializeTextStyles`},setter:{field:`__textStyle`}})});function eu(e){if(U(e)&&!Jl(K())){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}var tu=class extends Dl{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:eu,extends:Dl,generated:Ll,json:$l})}constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``,this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&M(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots),this.__style=e.__style,function(e,t){e.__dir=t.__dir,e.__format=t.__format,e.__indent=t.__indent,e.__textFormat=t.__textFormat,e.__textStyle=t.__textStyle}(this,e)}getFormat(){return this.getLatest().__format}getFormatType(){return Ka[this.getFormat()]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){return d_(this.getFirstChild(),`next`)}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&x_(this).length===0}isDirty(){let e=K()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[];for(let t of x_(this)){let n=S_(this,t);if(I(n))for(let t of n.getAllTextNodes())e.push(t)}let t=this.getFirstChild();for(;t!==null;){if(R(t)&&e.push(t),I(t))for(let n of t.getAllTextNodes())e.push(n);t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;I(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;I(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=e>=this.getChildrenSize(),n=t?this.getLastChild():this.getChildAtIndex(e);return I(n)&&(t?n.getLastDescendant():n.getFirstDescendant())||n}getFirstChild(){let e=this.getLatest().__first;return e===null?null:B(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&M(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:B(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&M(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=k_(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),I(i)&&r!==n-1&&!i.isInline()&&(e+=Ba)}return e}getTextContentSize(){let e=function(e){let t=0;for(let n of b_(e).values()){let e=B(n);e!==null&&(t+=e.getTextContentSize())}return t}(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),I(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=Wa[e];return(this.getFormat()&t)!==0}return!1}hasTextFormat(e){let t=Ha[e];return(this.getTextFormat()&t)!==0}getFormatFlags(e,t){return Sd(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Fm();let n=J(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(R(e)||I(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(R(e)||I(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return q(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):Pg(o,r,o,i,`element`,`element`)}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){let t=this.getWritable();return t.__format=e!==``&&Wa[e]||0,t}setStyle(e){let t=this.getWritable();return t.__style=e||``,t}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){let t=this.getWritable();return t.__indent=e,t}splice(e,t,n){Tl(this)&&M(324,this.__key,this.__type);let r=this.getChildrenSize(),i=this.getWritable();e+t<=r||M(226,String(e),String(t),String(r));for(let e of n);let a=i.__key,o=[],s=[],c=this.getChildAtIndex(e+t),l=null,u=r-t+n.length;if(e!==0){if(e===r)l=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(l=t.getPreviousSibling())}}t>0&&(s=function(e,t,n,r){let i=[],a=t;for(let e=0;e<n;e++){a===null&&M(100);let e=a.getNextSibling();i.push(a.getWritable()),a=e}return i_(e,r&&r.getWritable(),a&&a.getWritable()),e.__size-=i.length,i.map(e=>(a_(e),e.__prev=null,e.__next=null,e.__parent=null,e.__key))}(i,l===null?this.getFirstChild():l.getNextSibling(),t,l));let d=n.length>0&&l!==null?l.getWritable():null;for(let e of n){d!==null&&e.is(d)&&(l=d.getPreviousSibling(),d=l&&l.getWritable()),c!==null&&e.is(c)&&(c=c.getNextSibling());let t=e.getWritable();t.__parent===a&&u--,s_(t);let n=e.__key;o_(i,t,d,c&&c.getWritable()),e.__key===a&&M(76),o.push(n),d=t}if(i.__size=u,s.length){let e=J();if(q(e)){let t=new Set(s),n=new Set(o);for(let r of[e.anchor,e.focus])nu(r,t,n)&&Wg(r,r.getNode(),this,l,c);u!==0||this.canBeEmpty()||U(this)||this.remove()}}return i}getDOMSlot(e){return new bs(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(W(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+`px`,t.setAttribute(`data-lexical-indent`,String(e)));let n=this.getDirection();n&&(t.dir=n)}return{element:t}}shouldSerializeTextStyles(){if(U(this))return!1;for(let e=this.getFirstChild();e!==null;e=e.getNextSibling())if(R(e))return!1;return!0}getSerializedTextFormat(){let e=this.getTextFormat();return e!==0&&this.shouldSerializeTextStyles()?e:void 0}getSerializedTextStyle(){let e=this.getTextStyle();return e!==``&&this.shouldSerializeTextStyles()?e:void 0}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){t.read(`latest`,()=>{let n=Qf(this,e,t),r=n.element;n.after&&n.after.parentNode!==r&&(n=n.withAfter(null)),n.before&&n.before.parentNode!==r&&(n=n.withBefore(null));let i=n.getManagedLineBreak();i&&n.insertManagedLineBreak(i.nodeName===`IMG`);let a=n.getFirstChild();for(let e of this.getChildrenKeys()){let i=t.getElementByKey(e);if(!i)continue;let o,s=a;for(;s&&!(o=Md(s,t))&&up(s);)s=s.nextSibling;s!==i&&r.insertBefore(i,o?s:a||n.getInsertionAnchor()),a=i.nextSibling}pl(this,e,n)})}};function I(e){return e instanceof tu}function nu(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}var ru=class extends Dl{__slotHost;__slots;constructor(e){super(e),this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&M(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots)}decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function L(e){return e instanceof ru}function iu(e){let t=e.getLatest().__cachedText;return t===null||!Pm()&&K()._dirtyType!==0?null:t}var au=class extends tu{__cachedText;$config(){return this.config(`root`,{extends:tu})}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){M(51)}getTextContent(){let e=iu(this);return e===null?super.getTextContent():e}getTextContentSize(){let e=iu(this);return e===null?super.getTextContentSize():e.length}remove(){M(52)}replace(e){M(53)}insertBefore(e){M(54)}insertAfter(e){M(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)I(e)||L(e)||M(282);return super.splice(e,t,n)}static importJSON(e){return V().updateFromJSON(e)}collapseAtStart(){return!0}};function ou(e){return e instanceof au}function su(e){let t={};if(!e)return t;let n=``,r=``,i=null,a=!1,o=!1,s=!1,c=0,l=e.length,u=-1;for(let d=0;d<l;d++){let l=e[d];if(a)l===`*`&&e[d+1]===`/`&&(a=!1,d++);else if(o)u===-1&&(u=d),o=!1;else if(i===null){if(l!==`/`||e[d+1]!==`*`){if(l!==`"`&&l!==`'`){if(l!==`(`){if(l!==`)`){if(s||l!==`:`||c!==0){if(l===`;`&&c===0){u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1);let i=n.trim(),a=r.trim();i!==``&&a!==``&&(t[i]=a),n=``,r=``,s=!1;continue}u===-1&&(u=d)}else u!==-1&&(n+=e.slice(u,d),u=-1),s=!0}else u===-1&&(u=d),c=Math.max(0,c-1)}else u===-1&&(u=d),c++}else u===-1&&(u=d),i=l}else u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1),a=!0,d++}else u===-1&&(u=d),l===`\\`?o=!0:l===i&&(i=null)}u!==-1&&(s?r+=e.slice(u,l):n+=e.slice(u,l));let d=n.trim(),f=r.trim();return d!==``&&f!==``&&(t[d]=f),t}function cu(e,t,n){let r=n.trimEnd(),i=r.length-10;i>=0&&r.slice(i).toLowerCase()===`!important`?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function lu(e,t,n=``){if(t===n)return;let r=su(n),i=su(t);for(let t in i)delete r[t],cu(e,t,i[t]);for(let t in r)e.removeProperty(t)}var uu=rc()({detail:oc(ic(Qs(),Ua),{field:`__detail`}),format:oc(ic(Qs(),Ha),{field:`__format`}),mode:oc(ec([`normal`,`token`,`segmented`]),{field:`__mode`,getterTable:Ja,setterTable:qa}),style:oc(Xs(),{field:`__style`}),text:oc(Xs(),{field:`__text`,getter:`getTextContent`,setter:`setTextContent`})});function du(e,t){return 16&t?`code`:128&t?`mark`:32&t?`sub`:64&t?`sup`:null}function fu(e,t){return 1&t?`strong`:2&t?`em`:`span`}function pu(e,t,n,r,i){let a=r.classList,o=$d(i,`base`);o!==void 0&&a.add(...o),o=$d(i,`underlineStrikethrough`);let s=!1,c=8&t&&4&t;o!==void 0&&(8&n&&4&n?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in Ha){let r=Ha[e];if(o=$d(i,e),o!==void 0){if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}Qd(r,`class`)}function mu(e,t,n){let r=n.isComposing(),i=e+(r?za:``),a=Xf(),o=Zf(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild(Mf().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i){if(r||Da||Pa){let[e,t,n]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}(l,i);c.replaceData(e,t,n)}else c.nodeValue=i}}function hu(e,t,n,r,i,a){mu(i,e,t);let o=a.theme.text;o!==void 0&&pu(0,0,r,e,o)}function gu(e,t){let n=Mf().createElement(t);return n.appendChild(e),n}function _u(e){return e!=null&&!0===e.__isInlineFormattable}var vu=class extends Dl{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}$config(){return this.config(`text`,{extends:Dl,generated:zl,importDOM:{"#text":()=>({conversion:Cu,priority:0}),b:()=>({conversion:bu,priority:0}),code:()=>({conversion:Eu,priority:0}),em:()=>({conversion:Eu,priority:0}),i:()=>({conversion:Eu,priority:0}),mark:()=>({conversion:Eu,priority:0}),s:()=>({conversion:Eu,priority:0}),span:()=>({conversion:yu,priority:0}),strong:()=>({conversion:Eu,priority:0}),sub:()=>({conversion:Eu,priority:0}),sup:()=>({conversion:Eu,priority:0}),u:()=>({conversion:Eu,priority:0})},json:uu})}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return Ja[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Od()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=Ha[e];return(this.getFormat()&t)!==0}isSimpleText(){let e=this.getLatest();return e.__type===`text`&&e.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Sd(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=du(0,n),i=fu(0,n),a=r===null?i:r,o=Mf().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=Mf().createElement(i),o.appendChild(s)),hu(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&lu(o.style,c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=du(0,i),s=du(0,a),c=fu(0,i),l=fu(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??M(48);let i=Mf().createElement(l);return hu(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??M(49)),mu(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&pu(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&(lu(t.style,p,f),Qd(t,`style`)),!1}exportDOM(e){let{element:t}=super.exportDOM(e);return W(t)||M(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=gu(t,`b`)),this.hasFormat(`italic`)&&(t=gu(t,`i`)),this.hasFormat(`strikethrough`)&&(t=gu(t,`s`)),this.hasFormat(`underline`)&&(t=gu(t,`u`)),{element:t}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?Ha[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Ua[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=Sd(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=qa[e];if(this.getLatest().__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.getLatest().__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){Fm();let n=e,r=t,i=J(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!q(i))return Pg(o,n,o,r,`text`,`text`);{let e=Od();e!==i.anchor.key&&e!==i.focus.key||Dd(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=J();if(r&&q(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Fm();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=Od(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=J();if(q(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=Du(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=wc(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=Du(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=wc(t,n);let a=n.__key;i===r&&Dd(a),y.push(n)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!g&&!_)break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&Ed(t),n!==null&&Ed(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),q(v)&&Ug(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||M(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;Od()===r&&Dd(n);let o=J();if(q(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&Gg(i,t,n,e,a),s!==null&&s.key===r&&Gg(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}};function yu(e){return{forChild:Ou(e.style),node:null}}function bu(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:Ou(t.style,n?void 0:`bold`),node:null}}var xu=new WeakMap;function Su(e){if(!W(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function Cu(e){let t=e;e.parentElement===null&&M(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=xu.get(n))===void 0&&!Su(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)xu.set(r[e],i);return i}(t)!==null)return{node:Zg(n)};if(n=n.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),n===``)return{node:null};if(n[0]===` `){let e=t,r=!0;for(;e!==null&&(e=wu(e,!1))!==null;){let t=e.textContent||``;if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=wu(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:Du(n)}}function wu(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,W(n)){let e=n.style.display;if(e===``&&!Kf(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(yd(n))return n;if(n.nodeName===`BR`)return null}}var Tu={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`};function Eu(e){let t=Tu[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Ou(e.style,t),node:null}}function Du(e=``){return bf(new vu(e))}function R(e){return e instanceof vu}function Ou(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign,l=e.textTransform;return e=>((R(e)||_u(e))&&(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),l!==`lowercase`&&l!==`uppercase`&&l!==`capitalize`||e.hasFormat(l)||e.toggleFormat(l),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}function ku(e,t){let{type:n,key:r,offset:i}=e,a=Sf(e.key);return n===`text`?(R(a)||M(266,a.getType(),r),q_(a,t,i)):(I(a)||M(267,a.getType(),r),Hu(a,e.offset,t))}function Au(e,t){let{origin:n,direction:r}=t,i=r===`next`;V_(t)?e.set(n.getKey(),t.offset,`text`):H_(t)?R(n)?e.set(n.getKey(),J_(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(U_(t)&&I(n)||M(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function ju(e){let t=J(),n=q(t)?t:Fg();return Mu(n,e),Rd(n),n}function Mu(e,t){Au(e.anchor,t.anchor),Au(e.focus,t.focus)}function Nu(e){let{anchor:t,focus:n}=e,r=ku(t,`next`),i=ku(n,`next`),a=sv(r,i)<=0?`next`:`previous`;return av(nv(r,a),nv(i,a))}function Pu(e){let{direction:t,origin:n}=e,r=Y(n,L_(t)).getNodeAtCaret();return r?Y(r,t):X_(n.getParentOrThrow(),t)}function Fu(e,t=`root`){let n=[e];for(let r=U_(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(Pu(r));return n}function Iu(e){return!!e&&e.origin.isAttached()}function Lu(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=Vu(e,r),o=a.anchor.origin;for(;o!==null&&!U(o);)o=o.getParent();let s=I(o)?o.getFirstChild():null,c=Fu(a.anchor,n),l=Fu(a.focus.getFlipped(),n),u=new Set,d=[];for(let e of a.iterNodeCarets(n))if(U_(e))u.add(e.origin.getKey());else if(H_(e)){let{origin:t}=e;I(t)&&!u.has(t.getKey())||d.push(t)}let f=new Set;for(let e of d){let t=e.getParent();t===null||u.has(t.getKey())||f.add(t),Td(e)}for(let e of f)!e.canBeEmpty()&&!U(e)&&e.isEmpty()&&e.isAttached()&&e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=Pu(Y(t,r)),o=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||o===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(o===`segmented`){let e=t.origin,n=Du(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=q_(n,r,t.offset)}n.is(c[0].origin)&&(c[0]=t),n.is(l[0].origin)&&(l[0]=t.getFlipped())}}let p=Ru(c),m=Ru(l),h=function(e,t,n){let r=e&&e.getParentAtCaret(),i=t&&t.getParentAtCaret(),a=r&&i&&pv(r,i);if(!a||a.type!==`branch`)return null;let o=(e,t)=>{let r;for(let i=e;i&&!i.is(a.commonAncestor);i=i.getParent()){if(U(i))return;t&&!n.has(i.__key)||!Yf(i)||(r=i)}return r},s=o(r,!1),c=s&&o(i,!0);return s&&c&&x_(c).length===0?[s,c]:null}(p,m,u);if(h){let[e,t]=h;X_(e,`previous`).splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}else if(m){let e=function(e){if(U_(e)){let t=e.origin;if(Yf(t))return t}else{let t=e.getParentAtCaret();if(t&&Yf(t))return t}return null}(m),t=e&&e.getParent(),n=e&&e.getParents().findLast(vf);if(e&&t&&!ou(t)&&e.isEmpty()&&u.has(e.getKey())&&x_(e).length===0&&(!n||u.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!ou(n)&&n.isEmpty();){let e=n.getParent();if(e&&ou(e)&&e.getChildrenSize()<=1&&n.canBeEmpty())break;let t=n;n=e,t.remove(!0)}}}Ld(o,s)!==null||o===null||o.isAttached()||Ld(V(),null);let g=Ru([p,m,...c,...l]);if(g)return iv(nv(g,e.direction));M(269,JSON.stringify(c.map(e=>e.origin.__key)))}function Ru(e){let t=e.find(Iu);return t&&zu(t)}function zu(e){let t=function(e){let t=e;for(;U_(t);){let e=Q_(t);if(!U_(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(R(t.origin))return V_(t)?t:q_(t.origin,n,n);let r=t.getAdjacentCaret();return H_(r)&&R(r.origin)?q_(r.origin,n,L_(n)):t}function Bu(e){return V_(e)&&e.offset!==J_(e.origin,e.direction)}function Vu(e,t){return e.direction===t?e:av(nv(e.focus,t),nv(e.anchor,t))}function Hu(e,t,n){let r=e.getChildrenSize(),i=(t>0?Math.min(Math.ceil(t),r):0)-+(n===`next`),a=i<0||i>=r?null:e.getChildAtIndex(i);return a===null?X_(e,n):Y(a,n)}function Uu(e,t=`root`){let n=0,r=e,i=Q_(r);for(;i===null;){if(n--,i=r.getParentCaret(t),!i)return null;r=i,i=Q_(r)}return i&&[i,n]}function Wu(e){let{origin:t,offset:n,direction:r}=e;if(n===J_(t,r))return e.getSiblingCaret();if(n===J_(t,L_(r)))return Pu(e.getSiblingCaret());let[i]=t.splitText(n);return R(i)||M(281),nv(Y(i,`next`),r)}function Gu(e,t){for(let n of e)if(n!==null&&n.caret.origin.is(t))return n}function Ku(e,t=null){let{origin:n}=e.caret,[r,i]=e.getSliceIndices();if(r===i)return null;if(r===0&&i===n.getTextContentSize())return n;let a=n.getParent(),o=t&&a&&Hg(t,a)?n.getIndexWithinParent():-1,s=t?[t.anchor,t.focus].map(e=>[e,e.key===n.__key&&e.type===`text`?e.offset-r:a!==null&&e.key===a.__key&&e.offset===o?0:null]):[],c=n.splitText(r,i),l=c[r===0?0:1];a&&t&&t!==J()&&Ug(t,a,o,c.length-1);for(let[e,t]of s)t!==null&&e.set(l.__key,t,`text`);return l}function qu(e,t){return!0}function Ju(e,{$copyElementNode:t=yf,$splitTextPointCaretNext:n=Wu,rootMode:r=`shadowRoot`,$shouldSplit:i=qu,removeEmptyDestination:a=!1}={}){if(V_(e))return n(e);let o=e.getParentCaret(r);if(o){let{origin:n}=o;if(U_(e)){let e=Pu(o);if(a&&n.isEmpty())return n.remove(),e;if(!n.canBeEmpty()||!i(n,`first`))return e}let r=d_((s=e).getNodeAtCaret(),s.direction);(r.length>0||!a&&n.canBeEmpty()&&i(n,`last`))&&o.insert(t(n).splice(0,0,r))}var s;return o}function Yu(e,t,n){let r=nv(t,`next`);V_(r)&&(r.offset===0?r=Y(r.origin,`previous`).getFlipped():r.offset===r.origin.getTextContentSize()&&(r=Y(r.origin,`next`))),r.origin.is(e)&&(H_(r)||M(342,e.getKey(),e.getType()),r=Pu(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=Ju(e,n))r=e;return V_(r)&&M(283),r.insert(e.isInline()?z().append(e):e),nv(Y(e.getLatest(),`next`),t.direction)}function Xu(e,t){let n=Vu(q(t)?Nu(t):t,`next`),r=v_(n.anchor.origin),i=v_(e.getLatest());if(r===null?i!==null:!r.is(i))return!1;let a=zu(X_(e,`next`)),o=nv(zu(X_(e,`previous`)),`next`);return sv(n.anchor,a)<=0&&sv(n.focus,o)>=0}var Zu=class extends tu{$config(){return this.config(`paragraph`,{children:`inline`,extends:tu,generated:Bl,importDOM:{p:()=>({conversion:Qu,priority:0})}})}createDOM(e){let t=Mf().createElement(`p`),n=$d(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(W(t)){this.isEmpty()&&t.append(Mf().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}exportJSON(e=!1){let t=super.exportJSON(e);if(t.textFormat===void 0||t.textStyle===void 0){let n=this.getChildren().find(R),r=n?n.getFormat():this.getTextFormat(),i=n?n.getStyle():this.getTextStyle();e&&r===0||(t.textFormat=r),e&&i===``||(t.textStyle=i)}return t}extractWithChild(e,t,n){if(!q(t)||this.getFormatType()===``&&this.getIndent()===0&&this.getStyle()===``)return!1;if(Xu(this,t)){let e=this.getTextContent();return e!==``&&t.getTextContent()===e}return!1}insertNewAfter(e,t){let n=z();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){if(this.getChildren().every(e=>R(e)&&!/\S/.test(e.getTextContent()))){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function Qu(e){let t=z();if(cp(t,e),op(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in Wa&&t.setFormat(n)}return sp(t,e),{node:t}}function z(){return bf(new Zu)}function $u(e){return e instanceof Zu}var ed=rc()({detail:sc(Qs(2),{getter:{field:`__detail`},setter:null}),mode:sc(ec([`normal`]),{getter:{field:`__mode`,getterTable:{0:`normal`}},setter:null}),text:sc(Xs(` `),{getter:{field:`__text`,method:`getTextContent`},setter:null})}),td=class extends vu{$config(){return this.config(`tab`,{extends:vu,generated:Hl,json:ed})}constructor(e=void 0){super(` `,e),this.__detail=2}createDOM(e){let t=super.createDOM(e),n=$d(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}setTextContent(e){return super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||M(286),this}setDetail(e){return e!==2&&M(127),this}setMode(e){return e!==`normal`&&M(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function nd(){return bf(new td)}function rd(e){return e instanceof td}var id=null;function ad(e){id=e}var od=Symbol(`INTERNAL_SKIP_AFTER_CLONE_FROM`),sd=1;function cd(e,t){let n=ld(e,t);return n===void 0&&M(30,t),n}function ld(e,t){return e._nodes.get(t)}var ud=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)};function dd(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return bd(t)||Df(t)?Bf(t):null})():t;if(!W(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=Nd(n),i=n.nodeName;return Ol(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&gd(n)==null)}function fd(e){let t=e===null?null:Vf(e);return Uf(t)&&dd(t)}function pd(e,t,n){let r=e.getRootElement();if(!r)return!1;try{if(!t||!r.contains(t)||!r.contains(n))return!1}catch{return!1}return hd(t)===e&&e.read(`latest`,()=>!dd(t))}function md(e){return e instanceof Sm}function hd(e){let t=e;for(;t!=null;){let e=gd(t);if(md(e))return e;t=sf(t)}return null}function gd(e){return e?e.__lexicalEditor:null}function _d(e){return rd(e)||e.isToken()}function vd(e){return _d(e)||e.isSegmented()}function yd(e){return Uf(e)&&e.nodeType===3}function bd(e){return Uf(e)&&e.nodeType===9}function xd(e){let t=e;for(;t!=null;){if(yd(t))return t;t=t.firstChild}return null}function Sd(e,t,n){let r=Ha[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~Ha.superscript:t===`superscript`?i&=~Ha.subscript:t===`lowercase`?(i&=~Ha.uppercase,i&=~Ha.capitalize):t===`uppercase`?(i&=~Ha.lowercase,i&=~Ha.capitalize):t===`capitalize`&&(i&=~Ha.lowercase,i&=~Ha.uppercase),i}function Cd(e){return R(e)||dm(e)||L(e)}function wd(e,t){let n=function(){let e=id;return id=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);Fm(),Im();let r=K(),i=Lm(),a=``+sd++;i._nodeMap.set(a,e),I(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.set(a,e),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function Td(e){s_(e.getParent()===null?e:e.getWritable())}function Ed(e){Im(),Tl(e)&&M(323,e.__key,e.__type);let t=e.__parent===null?m_(e)?e.__slotHost:null:e.__parent,n=Lm(),r=K(),i=n._nodeMap,a=r._dirtyElements;t!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent===null?m_(e)?e.__slotHost:null:e.__parent}}(t,i,a);let o=e.__key;r._dirtyType===0&&(r._dirtyType=1),I(e)?a.set(o,!0):r._dirtyLeaves.add(o)}function Dd(e){Fm();let t=K(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=B(n);e!==null&&e.getWritable()}if(e!==null){let t=B(e);t!==null&&t.getWritable()}}}function Od(){return Pm()?null:K()._compositionKey}function kd(e){return!ja&&(Na||Ia)&&e.__text===``&&e.__key===K()._compositionKey}function B(e,t){let n=(t||Lm())._nodeMap.get(e);return n===void 0?null:n}function Ad(e,t){let n=Md(e,K());return n===void 0?null:B(n,t)}function jd(e,t,n){e[`__lexicalKey_${t._key}`]=n}function Md(e,t){return e[`__lexicalKey_${t._key}`]}function Nd(e,t){let n=e;for(;n!=null;){let e=Ad(n,t);if(e!==null)return e;n=sf(n)}return null}function Pd(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Fd(e){return e.read(()=>V().getTextContent())}function Id(e,t){let n=rp(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=B(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:`history-merge`}:void 0)}function V(){return Lm()._nodeMap.get(`root`)}function Ld(e,t){if(!(U(e)&&e.isAttached()&&(ou(e)?e.getChildrenSize()===0:e.isEmpty())&&(ou(e)||t!==null&&Yf(t))))return null;let n=z();return e.append(n),n}function Rd(e){Fm();let t=Lm();e!==null&&(e.dirty=!0,e.setCachedNodes(null),q(e)&&K()._slotsUsed&&Ag(e)),t._selection=e}function zd(e){Fm(),As(K(),e)}function Bd(e){let t=function(e,t){let n=e;for(;n!=null;){let e=Md(n,t);if(e!==void 0)return e;n=sf(n)}return null}(e,K());return t===null?null:B(t)}function Vd(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Hd(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}var Ud=0;function Wd(){return xa?Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5):`s${(++Ud).toString(36)}`}function Gd(e){return yd(e)?e.nodeValue:null}function Kd(e,t,n){let r=Tf(hf(t));if(r===null)return;let i=Ff(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=Gd(a),r=Nd(a);if(t!==null&&R(r)){if((t===za||t===Va)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&qd(r,t,o,s,e)}}}function qd(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing(),s=!ja&&(Na||Ia);if(a.isToken()&&o)return;let c=t;if((o||i)&&(!t.endsWith(za)||s&&t===a.getTextContent()||(c=t.slice(0,-za.length)),i&&!s)){let e=Va,t;for(;(t=c.indexOf(e))!==-1;)c=c.slice(0,t)+c.slice(t+e.length),n!==null&&n>t&&(n=Math.max(t,n-e.length)),r!==null&&r>t&&(r=Math.max(t,r-e.length))}let l=a.getTextContent();if(i||c!==l){let t=J();if(c===``){if(o&&!i&&s)return void Jd(a,``,t);if(Dd(null),Na||ja||Ia)a.remove();else{let e=K();Jd(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let l=a.getParent(),u=Vg(),d=a.getTextContentSize(),f=Od(),p=a.getKey();if(a.isToken()&&!o||f!==null&&p===f&&!o||q(u)&&(l!==null&&!l.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===e.__key&&u.anchor.offset===0&&!a.canInsertTextBefore()&&!o||u.focus.key===e.__key&&u.focus.offset===d&&!a.canInsertTextAfter()&&!o))return void a.markDirty();if(!q(t)||n===null||r===null)return void Jd(a,c,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=Du(a.getTextContent());a.replace(e),a=e}Jd(a,c,t)}}}function Jd(e,t,n){if(e.setTextContent(t),q(n)){let t=e.getKey(),r=!1;for(let i of[`anchor`,`focus`]){let a=n[i];a.type===`text`&&a.key===t&&(a.offset=J_(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function Yd(e){let t=e;for(;t!==null;){let e=t.getParent();if(e===null)return null;if(ou(e))return t;t=e}return null}function Xd(e,t){let{anchor:n,focus:r}=e,i=n.key,a=n.offset,o=n.type,s=r.key,c=r.offset,l=r.type;if(Ml(e),!ou(t))return e;let u=Yd(n.getNode());return I(u)&&u.isShadowRoot()&&u.is(Yd(r.getNode()))&&(n.set(i,a,o),r.set(s,c,l)),e}function Zd(e){let t=V();if(q(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(ou(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Xd(e,r),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();return a===null?(I(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),Xd(e,i)),e):(t.set(a.getKey(),0,`element`),n.set(a.getKey(),a.getChildrenSize(),`element`),Xd(e,a),e)}{let e=t.select(0,t.getChildrenSize());return Rd(Xd(e,t)),e}}function Qd(e,t){e.getAttribute(t)===``&&e.removeAttribute(t)}function $d(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=hv(i);return n[t]=e,e}return i}function ef(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&M(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function tf(e){let t=e.getType(),n=Lm();if(n._readOnly){let e=rp(n).get(t);return e?Array.from(e.values()):[]}let r=n._nodeMap,i=[];for(let[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&i.push(n);return i}function nf(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function rf(e,t){let n=e.offset;if(e.type===`element`)return nf(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?nf(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function af(e){let t=hf(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function H(e,t,...n){return Zm(e,t,n[0],e)}function of(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&M(75,t),n}function sf(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return Df(n)?n.host:null}function cf(e){return bd(e)?e:W(e)?e.ownerDocument:null}function lf(e,t){let n=parseFloat(e);return isFinite(n)?e.endsWith(`%`)?n*t/100:n:0}function uf(e,t,n,r){let i=t.clientWidth,a=t.scrollWidth-i;if(a<=0)return 0;let o=e.getComputedStyle(t);if(o.overflowX!==`auto`&&o.overflowX!==`scroll`)return 0;let s=t.getBoundingClientRect(),c=t.offsetWidth,l=c>0&&Math.abs(s.width-c)>1?s.width/c:1,u=o.direction===`rtl`,d=s.left+t.clientLeft*l,f=d+lf(o.scrollPaddingLeft,i)*l,p=d+(i-lf(o.scrollPaddingRight,i))*l,m=n,h=Math.max(r,n+1);h-m>p-f&&(u?m=h-1:h=m+1);let g=0;if(m<f?g=m-f:h>p&&(g=h-p),g===0)return 0;let _=t.scrollLeft,v=_+g/l,y=g>0?Math.ceil(v):Math.floor(v),b=u?Math.min(0,Math.max(-a,y)):Math.max(0,Math.min(a,y)),x=_*l;return Math.abs(b)<Math.abs(_)&&m+x>=f&&h+x<=p&&(b=0),b===_?0:(t.scrollLeft=b,(t.scrollLeft-_)*l)}function df(e){Fm(),K()._updateTags.add(e)}function ff(e){Fm(),K()._deferred.push(e)}function pf(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function mf(e){let t=cf(e);return t?t.defaultView:null}function hf(e){let t=e._window;return t===null&&M(78),t}function gf(e){return I(e)&&e.isInline()||L(e)&&e.isInline()}function _f(e){let t=e.getLatest();for(;t!==null;){if(h_(t)!==null&&I(t))return t;let e=t.getParentOrThrow();if(U(e))return e;t=e}return t}function vf(e){return I(e)&&e.isShadowRoot()}function U(e){return ou(e)||vf(e)}function yf(e,t=!1){let n=e.constructor.clone(e,od);return wd(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function bf(e){let t=K(),n=e.getType(),r=ld(t,n);r===void 0&&M(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||M(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||M(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&M(203,e.constructor.name,n,r.name,r.getType()),t}return e}function xf(e,t){!ou(e.getParent())||I(t)||L(t)||M(99)}function Sf(e){let t=B(e);return t===null&&M(63,e),t}function Cf(e){if(!e||e.isInline())return!1;if(L(e))return!0;if(I(e)){if(e.isShadowRoot()){let t=e.getParent();return!(I(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function wf(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function Tf(e){return xa?(e||window).getSelection():null}function Ef(e){let t=mf(e);return t?t.getSelection():null}function Df(e){return Wf(e)&&`host`in e}var Of=[];function kf(e){let t=e.getRootNode();if(t===e||!Df(t))return Of;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!Df(e))break;n.push(e),r=e.host}return n}function*Af(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(bd(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function jf(e){return e===null?document:e.ownerDocument}function Mf(){let e=Vm();return jf(e===null?null:e._rootElement)}function Nf(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=kf(t);if(n.length===0)return null;let r=e.getComposedRanges;try{let t=r.call(e,{shadowRoots:n})[0];if(t!==void 0)return t}catch{}try{let t=r.apply(e,n)[0];if(t!==void 0)return t}catch{}return null}function Pf(e,t){let n=Nf(e,t);if(n!==null){let e=If(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function Ff(e,t){let n=Nf(e,t);return n===null?e:Lf(n,Rf(e))}function If(e){let t=e.startContainer.ownerDocument;if(t===null)return null;let n=t.createRange();try{return n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),n}catch{return null}}function Lf(e,t){let{startContainer:n,startOffset:r,endContainer:i,endOffset:a}=e;return t===`backward`?{anchorNode:i,anchorOffset:a,direction:t,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:t,focusNode:i,focusOffset:a}}function Rf(e){return e.direction}function zf(e){let t=e.getRootNode();return bd(t)||Df(t)?t.activeElement:null}function Bf(e){let t=e.activeElement;for(;t!==null&&t.shadowRoot!==null;){let e=t.shadowRoot.activeElement;if(e===null)break;t=e}return t}function Vf(e){let t=e.target;if(t!==null&&W(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function Hf(e){return W(e)&&e.tagName===`A`}function W(e){return Uf(e)&&e.nodeType===1}function Uf(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Wf(e){return Uf(e)&&e.nodeType===11}var Gf=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i;function Kf(e){return!(!W(e)||!e.style.display.startsWith(`inline`))||Gf.test(e.nodeName)}var qf=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i;function Jf(e){return(!W(e)||!e.style.display.startsWith(`inline`))&&qf.test(e.nodeName)}function Yf(e){if(L(e)&&!e.isInline())return!0;if(!I(e)||U(e))return!1;let t=e.getFirstChild(),n=t===null||dm(t)||R(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Xf(){return K()}function Zf(e=Xf()){return e._config.dom||vm}function Qf(e,t,n=Xf()){let r=Zf(n).$getDOMSlot(e,t,n);return I(e)&&($f(r)||M(344,e.getKey(),e.getType())),r}function $f(e){return e instanceof bs}function ep(e,t,n=Xf()){return xd(Qf(e,t,n).element)}var tp=new WeakMap,np=new Map;function rp(e){if(!e._readOnly&&e.isEmpty())return np;e._readOnly||M(192);let t=tp.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),tp.set(e,t)),t}function ip(e){let t=e.constructor.clone(e,od);return t.afterCloneFrom(e),t}function ap(e){return(t=ip(e))[wl]=!0,t;var t}function op(e,t){let n=e.getAttribute(`data-lexical-indent`);if(n!==null){let e=parseInt(n,10);if(Number.isFinite(e)&&e>=0)return void t.setIndent(e)}let r=parseInt(e.style.paddingInlineStart,10)||0,i=Math.round(r/40);t.setIndent(i)}function sp(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function cp(e,t){let n=t.style.textAlign;return n&&n in Wa?e.setFormat(n):e}function lp(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function up(e){return!0===e.__lexicalUnmanaged}function dp(e,t=Xf()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function fp(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(W(n)&&n.hasAttribute(`data-lexical-slot`)||Md(n,t)!==void 0)return!1;n=sf(n)}return!1}function pp(e,t){return Ys(e,t)&&e[t]!==Dl[t]}var mp=new WeakMap;function hp(e){let t=mp.get(e);return t===void 0?function(e){let t=e.prototype!=null&&Xa in e.prototype?e.prototype[Xa]():void 0,n=function(e){if(!(e===Dl||e.prototype instanceof Dl)){let t=`<unknown>`,n=`<unknown>`;try{t=e.getType()}catch{}try{Sm.version&&(n=JSON.parse(Sm.version))}catch{}M(290,e.name,t,n)}return e===ru||e===tu||e===Dl}(e),r=!n&&pp(e,`getType`)?e.getType:void 0,i=r&&!(_p in r)?r.call(e):void 0,a,o=i;if(t){if(i)a=t[i];else{for(let[e,n]of Object.entries(t))o=e,a=n;if(!a)for(let e of Object.getOwnPropertySymbols(t)){let n=t[e];if(n){a=n;break}}}}let s={compiled:void 0,composed:void 0,config:{declaresOwnConfig:Ys(e.prototype,Xa),klass:e,ownNodeConfig:a,ownNodeType:o},ownFieldsValidated:!1};mp.set(e,s);try{let t=function(e){let t=e.prototype,n=new Map,{fieldsBaseFirst:r}=wp(e);for(let[i,a]of r){let r=Op(e,i,a);if(r===null)continue;if(Ps(r)){let t=r.field;if(t===`__proto__`&&M(430,e.name,i),r.setterTable!==void 0){let{setterTable:t}=r,{meta:n}=a;for(let r of n.kind===`enum`?n.values:[a.defaultValue])Ys(t,String(r))||M(431,e.name,i,JSON.stringify(r))}n.set(i,{field:t,key:i,kind:`ownField`,schema:a,setterTable:r.setterTable});continue}let o=t[r];typeof o!=`function`&&M(432,e.name,i,r),n.set(i,{key:i,kind:`field`,schema:a,setter:o})}return n.size===0?vp:[...n.values()]}(e),r=function(e){let t=e.prototype,n=new Map;for(let[r,i]of wp(e).fieldsDerivedFirst){let a=Dp(e,r,i);if(a===null)continue;if(Ps(a)){let o=a.field;o===`__proto__`&&M(426,e.name,r);let s=a.when,c;if(s!==void 0){let n=t[s];typeof n!=`function`&&M(427,e.name,r,s),c=n}n.set(r,{defaultValue:i.defaultValue,derived:i.setter===null,field:o,getterTable:a.getterTable,isEqual:i.isEqual,key:r,kind:`ownField`,schema:i,when:c});continue}let o=t[a];typeof o!=`function`&&M(428,e.name,r,a),n.set(r,{defaultValue:i.defaultValue,derived:i.setter===null,getter:o,isEqual:i.isEqual,key:r,kind:`method`,schema:i})}return n.size===0?Ep:[...n.values()]}(e),i=wp(e),c=function(e,t,n){let r,i=e;for(let{klass:t,ownNodeConfig:n}of Hp(e))n&&n.generated!==void 0&&(r===void 0?(r=n.generated,i=t):n.generated===r&&(i=t));return r===void 0?null:i===e||function(e,t){if(e.getters.length!==t.getters.length||e.setters.length!==t.setters.length)return!1;for(let n=0;n<e.getters.length;n++){let r=e.getters[n],i=t.getters[n];if(r.kind!==i.kind||r.key!==i.key||r.schema!==i.schema||r.derived!==i.derived||r.isEqual!==i.isEqual||!Object.is(r.defaultValue,i.defaultValue)||r.kind===`ownField`&&i.kind===`ownField`&&(r.field!==i.field||r.getterTable===void 0!=(i.getterTable===void 0)))return!1}for(let n=0;n<e.setters.length;n++){let r=e.setters[n],i=t.setters[n];if(r.kind!==i.kind||r.key!==i.key||r.schema!==i.schema||r.kind===`ownField`&&i.kind===`ownField`&&(r.field!==i.field||r.setterTable===void 0!=(i.setterTable===void 0)))return!1}return!0}(n,gp(hp(i)))?r:null}(e,0,{getters:r,setters:t});s.compiled={flatStates:i.flatStates,generated:c===null?null:c(i.fields),getters:r,isCompactDefault:jp(r),setters:t},function(e,t,n,r){if(!t&&n){if(!pp(e,`getType`)){let t=e,r=function(){return this===t?n:Dl.getType.call(this)};r[_p]=!0,e.getType=r}if(pp(e,`clone`)||(e.clone=(t,n)=>{ad(t);let r=new e;return n!==od&&r.afterCloneFrom(t),r}),pp(e,`importJSON`)||(e.importJSON=r&&r.$importJSON||function(e){return t=>{let n=Up(e);return n.updateFromJSON===Dl.prototype.updateFromJSON?function(e,t){return Np(e.__state||t.$!==void 0?yc(e,t):e,t)}(n,t):n.updateFromJSON(t)}}(e)),!pp(e,`importDOM`)&&r){let{importDOM:t}=r;t&&(e.importDOM=()=>t)}let t=e.prototype;Ys(t,`getTextContent`)&&!Ys(t,`getTextContentSize`)&&(e.prototype.getTextContentSize=Dl.prototype.getTextContentSize)}}(e,n,o,a),function(e){for(let{klass:t,ownNodeConfig:n}of Hp(e)){let e=t.prototype;if(Ys(e,`afterCloneFrom`))continue;let r=Vp(t);if(r.length===0)continue;let i=Object.getPrototypeOf(e),a=n&&n.generated!==void 0?gp(hp(t)).generated:null,o=a!==null&&a.afterCloneFrom||((e,t)=>{let n=e,i=t;for(let e=0;e<r.length;e++){let t=r[e];n[t]=i[t]}});e.afterCloneFrom=function(e){i.afterCloneFrom.call(this,e),o(this,e)},e.afterCloneFrom[zp]=!0}}(e),function(e,t){t&&t.inline!==void 0&&Ys(e.prototype,Xa)&&!Object.prototype.hasOwnProperty.call(e.prototype,`isInline`)&&Object.defineProperty(e.prototype,"isInline",{configurable:!0,value:t.inline?Fp:Ip,writable:!0})}(e,a)}catch(t){throw mp.delete(e),t}return s}(e):t}function gp(e){let{compiled:t}=e;return t===void 0&&M(422,e.config.klass.name),t}var _p=Symbol(`lexical.synthesizedGetType`),vp=[];function yp(e,t,n,r){let i=n.method===void 0?r:n.method,a=wp(e).declaredBy.get(t);if(a===void 0)return n;let o=e.prototype,s=a.prototype;return bp(o,s,i)&&bp(o,s,r)?n:i}function bp(e,t,n){return e[n]===t[n]}function xp(e){return`set${e.charAt(0).toUpperCase()}${e.slice(1)}`}function Sp(e){return`get${e.charAt(0).toUpperCase()}${e.slice(1)}`}var Cp={declaredBy:new Map,fields:new Map,fieldsBaseFirst:[],fieldsDerivedFirst:[],flatStates:[]};function wp(e){let t=hp(e);return t.composed===void 0&&(t.composed=function(e){let t=[],n=[],r=[];for(let{klass:i,ownNodeConfig:a}of Hp(e)){let e=a&&a.json;n.push(i),t.push(e&&e.meta.kind===`node`?Object.entries(e.meta.fields):[]);let o=[];if(a&&a.stateConfigs)for(let e of a.stateConfigs)`stateConfig`in e&&e.flat&&o.push(e.stateConfig);r.push(o)}let i=new Map;for(let e=0;e<t.length;e++)for(let[n,r]of t[e])i.has(n)||i.set(n,r);let a=new Map,o=new Map,s=new Map;for(let e=t.length-1;e>=0;e--){for(let[r,s]of t[e]){let t=i.get(r);t===void 0||a.has(r)||a.set(r,t),t===void 0||s!==t||o.has(r)||o.set(r,n[e])}for(let t of r[e])s.has(t.key)||s.set(t.key,t)}return i.size===0&&s.size===0?Cp:{declaredBy:o,fields:a,fieldsBaseFirst:[...a],fieldsDerivedFirst:[...i],flatStates:[...s.values()]}}(e)),t.composed}function Tp(e){let{fieldsDerivedFirst:t,flatStates:n}=wp(e),r={};for(let e of n)e.schema&&(r[e.key]=e.schema);for(let[e,n]of t)r[e]=n;return r}var Ep=[];function Dp(e,t,n){let r=n.getter;if(r===null)return null;let i=r===void 0?Sp(t):r;return Ps(i)?yp(e,t,i,Sp(t)):i}function Op(e,t,n){let r=n.setter;if(r===null)return null;let i=r===void 0?xp(t):r;return Ps(i)?yp(e,t,i,xp(t)):i}function kp(e){return e}function Ap(e,t){let{defaultValue:n,isEqual:r}=e;return t===void 0||t===n||r!==void 0&&r(t,n)}function jp(e){let t;return(n,r)=>{t===void 0&&(t=new Map(e.map(e=>[e.key,e])));let i=t.get(n);return i!==void 0&&Ap(i,r)}}function Mp(e){let{setterTable:t,schema:n}=e,{defaultValue:r}=n;return t===void 0?r:t[String(r)]}function Np(e,t){let{flatStates:n,generated:r,setters:i}=gp(hp(e.constructor)),a=function(e,t,n){let r=e;for(let e=0;e<n.length;e++){let i=n[e],a=t[i.key];if(a!==void 0){let e=i.parse(a);r=pc(r,i,()=>e)}}return r}(e,t,n);return r!==null&&r.updateFromJSON!==void 0?r.updateFromJSON(a,t):function(e,t,n){for(let r=0;r<n.length;r++){let i=n[r],a=i.schema(t[i.key]);i.kind===`ownField`?kp(e)[i.field]=i.setterTable===void 0?a:Ys(i.setterTable,a)?i.setterTable[a]:Mp(i):i.setter.call(e,a)}return e}(a,t,i)}function Pp(e){return hp(e).config}function Fp(){return!0}function Ip(){return!1}function Lp(e){return e===Fp||e===Ip}function Rp(e){let t=[];for(let n of[e.getter,e.setter])Ps(n)&&n.field!==`__proto__`&&!t.includes(n.field)&&t.push(n.field);return t}var zp=`__lexicalSynthesizedAfterCloneFrom`;function Bp(e){let{declaredBy:t,fieldsBaseFirst:n}=wp(e),r=[];for(let[i,a]of n)if(t.get(i)===e)for(let e of Rp(a))r.includes(e)||r.push(e);return r}function Vp(e){let t=Bp(e);if(t.length===0)return t;let n=new Set;for(let{klass:t}of Hp(e))if(t!==e)for(let e of Bp(t))n.add(e);return n.size===0?t:t.filter(e=>!n.has(e))}function*Hp(e){for(let t=e;t&&(t===Dl||Ol(t.prototype));){let e=Pp(t),n=e.declaresOwnConfig;yield n?e:{...e,ownNodeConfig:void 0},t=n&&e.ownNodeConfig&&e.ownNodeConfig.extends||Gp(t)}}function Up(e){let t=Xf();Fm();let n=t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e)),r=new n.klass;return n.replace===null?r:bf(r)}var G=(e,t)=>{let n=e;for(;n!=null&&!ou(n);){if(t(n))return n;n=n.getParent()}return null};function Wp(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t===null?B(r):t.get(r);e??M(174),n.push(r),r=e.__next}return n}function Gp(e){let t=Object.getPrototypeOf(e);if(typeof t==`function`&&t!==Function.prototype)return t;let n=e.prototype&&Object.getPrototypeOf(e.prototype);return n?n.constructor:null}function Kp(e){return new Xp(ss(e._nodeMap),null,e._slotsUsed)}function qp(){return new Xp(new Map([[`root`,new au]]),null,!1)}function Jp(e){let t=e.constructor,n=fs(e);if(I(e)){let t=n.children,r=e.getChildren();for(let e=0;e<r.length;e++)t.push(Jp(r[e]))}let r=x_(e);if(r.length>0){let i={};for(let n of r){let r=S_(e,n);r===null&&M(366,t.name,n),i[n]=Jp(r)}n.$slots=i}return n}function Yp(e){return e instanceof Xp}var Xp=class e{_nodeMap;_movedNodes;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(e,t=null,n=!1){this._nodeMap=e,this._movedNodes=null,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return this._nodeMap.size<=1&&this._selection===null}read(e,t){return qm(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t,this._slotsUsed);return n._readOnly=!0,n._parsed=this._parsed,n}toJSON(e){return us(typeof e==`boolean`&&e,()=>qm(null,this,()=>({root:Jp(V())})))}},Zp=`historic`,Qp=`history-push`,$p=`history-merge`,em=`paste`,tm=`collaboration`,nm=`skip-collab`,rm=`skip-scroll-into-view`,im=`skip-dom-selection`,am=`skip-selection-focus`,om=`composition-end`,sm=class extends tu{$config(){return this.config(`artificial`,{extends:tu})}createDOM(e){return Mf().createElement(`div`)}},cm=class extends Dl{$config(){return this.config(`linebreak`,{extends:Dl,generated:Vl,importDOM:{br:e=>fm(e)||pm(e)?null:{conversion:lm,priority:0}}})}getTextContent(){return`
|
|
4
4
|
`}createDOM(){return Mf().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}};function lm(e){return{node:um()}}function um(){return bf(new cm)}function dm(e){return e instanceof cm}function fm(e){let t=e.parentElement;if(t!==null&&Jf(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&mm(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&mm(n))return!0}}return!1}function pm(e){let t=e.parentElement;if(t!==null&&Jf(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&mm(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&mm(r))return!0}return!1}function mm(e){return yd(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function hm(e){console.warn(e)}function gm(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=qp(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(e._updateTags=new Set,e._updates=[],e._cascadeCount=0),e._blockCursorElement=null,e._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(e._inputState.handledSelectionCommandTimeoutId),t!==null&&xh(e,t),e._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},composedSegmentedKey:null,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,isShiftKeyDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,lastPointerType:``,mouseDrag:null,postDeleteSelectionToRestore:null,savedInputMode:void 0,selectionChangeFromDOMUpdatePoints:null,unprocessedBeforeInputData:null};let o=e._observer;o!==null&&(o.disconnect(),e._observer=null),t!==null&&(t.textContent=``,function(e,t){delete e[`__lexicalKey_${t._key}`]}(t,e)),n!==null&&(n.textContent=``,a.set(`root`,n),jd(n,e,`root`))}function _m(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of Hp(e)){let e=r.transform;if(!n.has(e)){n.add(e);let i=r.transform();i&&t.add(i)}if(i){let e=i.$transform;e&&t.add(e)}}return t}var vm={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=ld(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>I(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>I(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)};function ym(e){let t=e||{},n=Vm(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=qp(),s=t.namespace||(i===null?Wd():i._config.namespace),c=t.editorState,l=[au,vu,cm,td,Zu,sm,...t.nodes||[]],{onError:u,onWarn:d,html:f}=t,p=t.editable===void 0||t.editable,m;if(e===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let e=0;e<l.length;e++){let n=l[e],r=null,i=null;if(n&&typeof n==`object`){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}if(typeof n!=`function`||!n.prototype||!(n===Dl||n.prototype instanceof Dl)){let r=`<unknown>`;try{r=JSON.parse(is)}catch{}M(365,String(e-l.length+(t.nodes?t.nodes.length:0)),typeof n==`function`?`${n.name}${typeof n.getType==`function`?` (type ${String(n.getType())})`:``}`:String(n),String(r))}Pp(n);let a=n.getType(),o=_m(n);m.set(a,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:hc(l[e]),transforms:o})}}let h=new Sm(o,i,m,{disableEvents:a,dom:{...vm,...e&&e.dom},namespace:s,theme:r},u||console.error,d||hm,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}(m,f?f.import:void 0),p,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),function(e){e.registerCommand(to,jh,0),e.registerCommand(no,Nh,0),e.registerCommand(ro,Fh,0),e.registerCommand(io,Ih,0),e.registerCommand(vo,qh,0)}(h),h}function bm(e,t){let n=e.get(t);e.delete(t),n&&n()}function xm(e,t,n){return e.set(t,n),bm.bind(null,e,t)}var Sm=class{static version=is;_headless;_recordNodeMoves;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_keyDownShortcuts;_inputState;_lastNotifiedSelection;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new cs,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Map,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Wd(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._recordNodeMoves=!1,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._keyDownShortcuts=null,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},composedSegmentedKey:null,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,isShiftKeyDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,lastPointerType:``,mouseDrag:null,postDeleteSelectionToRestore:null,savedInputMode:void 0,selectionChangeFromDOMUpdatePoints:null,unprocessedBeforeInputData:null},this._lastNotifiedSelection=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return xm(this._listeners.update,e)}registerEditableListener(e){return xm(this._listeners.editable,e)}registerDecoratorListener(e){return xm(this._listeners.decorator,e)}registerTextContentListener(e){return xm(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return rh(xm(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){let r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){n===void 0&&M(35);let r=this._commands;r.has(e)||r.set(e,[new as,new as,new as,new as,new as]);let i=r.get(e);i===void 0&&M(36,String(e));let a=function(e){return 7&e}(n),o=i[a];return a===n?o.addBack(t):o.addFront(t),()=>{o.delete(t),i.every(e=>e.size===0)&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&M(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=rp(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return Id(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return H(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=$d(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,gm(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||function(e){let t=sh.get(e);if(t===void 0)return void eg();let n=ch.get(t);if(n===void 0)return void eg();sh.delete(e);let r=gd(e);md(r)?(function(e){if(e._parentEditor!==null){let t=Hd(e),n=t[t.length-1]._key;Xh.get(n)===e&&Xh.delete(n)}else Xh.delete(e._key)}(r),n.editors.delete(r),n.hasShadowEditor=void 0,e.__lexicalEditor=null):r&&M(198);let i=Jh(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),n!=null&&t.classList.remove(...n)),e!==null){let t=mf(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=2,js(this),this._updateTags.add($p),Jm(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;sh.set(e,n);let r=ch.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},ch.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=Jh(e);i.push(lh.register(n));let a={blur:qo,click:gh,compositionend:zh,compositionstart:Ph,copy:zo,cut:Bo,dragend:Ro,dragover:Lo,dragstart:Io,drop:Po,focus:Ko,input:Mh,keydown:Bh,paste:lo,pointerdown:Sh,...ka&&{beforeinput:Ah},...ja&&{keyup:Vh,mousedown:yh}};for(let[n,r]of Object.entries(a))i.push(ih(e,n,i=>{$h(i)||(Qh(i),n===`blur`&&(xh(t,e),t._inputState.isShiftKeyDown=!1,t._inputState.isInsertLineBreak=!1),(t.isEditable()||n===`click`||n===`copy`)&&(typeof r==`function`?r(i,t):H(t,r,i)))}));let o,s=()=>{t._inputState.mouseDrag=null},c=n=>{let i=t._inputState,a=i.mouseDrag;if(o&&o.defaultPrevented&&!n.buttons&&(i.isSelectionChangeFromMouseDown=!1),!a||n.pointerType!==`mouse`)return;let c=n.type===`pointerup`;if(n.type===`pointercancel`||!c&&n.buttons!==1)return s();i.mouseDrag=c?null:n,nh(t,()=>{let o=Tf(hf(t));if(a.type!==`mousedown`){let r=c&&o&&q(J())&&zg(Vg(),o,t,new Event(`selectionchange`));return r&&Rd(r),wh(t,n,c&&o?Ff(o,e).focusNode:null)}let l=Lg(o,t);if(a.defaultPrevented||!a.shiftKey&&l&&!l.isCollapsed())s();else if(o&&i.isSelectionChangeFromMouseDown){Yh(t,o,new Event(`selectionchange`),r),wh(t,a,Ff(o,e).focusNode);let n=J();q(n)&&n.isCollapsed()&&!n.is(Vg())&&hh(t,n)}})};i.push(ah(n,{pointercancel:c,pointermove:c,pointerup:c},!0),ih(hf(t),`blur`,s),t.registerEditableListener(s),ah(e,{contextmenu:s,dragstart:s,keydown:e=>e.getModifierState&&e.getModifierState(e.key)||s(),mousedown:e=>{let n=t._inputState;n.mouseDrag=e.button!==0||e.detail!==1||e.defaultPrevented||n.lastPointerType!==`mouse`||!t.isEditable()||t.isComposing()||fp(Vf(e),t)?null:e}}),ih(e,`pointerdown`,e=>{o=e,t._inputState.lastPointerType=e.pointerType},!0)),ja&&i.push(function(e,t){let n=null,r={capture:!0,passive:!0};return rh(ih(e,`touchstart`,e=>{let t=e.touches.length===1?e.touches[0]:null;n=t?{x:t.clientX,y:t.clientY}:null},r),ih(e,`touchend`,e=>{let r=e.changedTouches[0];n!==null&&r&&e.touches.length===0&&Math.abs(r.clientX-n.x)<=_h&&Math.abs(r.clientY-n.y)<=_h&&t(e),n=null},r))}(e,n=>function(e,t,n){t._inputState.savedInputMode!==void 0&&(bh(e,t,n)||(Bf(n.ownerDocument)===n&&n.blur(),xh(t,n)))}(n,t,e)))}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add($p),Jm(this);Ym(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){let n=e.isEmpty(),r=e;r._readOnly&&(r=Kp(e),r._selection=e._selection?e._selection.clone():null),As(this);let i=this._pendingEditorState,a=t===void 0?null:t.tag;i===null||i.isEmpty()||(a!=null&&this._updateTags.add(a),Jm(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,nh(this,()=>{if(a&&this._updateTags.add(a),n&&(ya(38),V().append(z())),e._parsed)for(let[e,t]of r._nodeMap.entries())I(t)?this._dirtyElements.set(e,!0):this._dirtyLeaves.add(e)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(e,t,n){let r=qp(),i=wm,a=Em,o=Tm,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Map,t._dirtyType=0,wm=r,Em=!1,Tm=t,ad(null);try{let i=t._nodes;Km(e.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,wm=i,Em=a,Tm=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(...e){let[t,n]=e.length===1?[`force-commit`,e[0]]:e;return t===`force-commit`&&(jm.has(this)||Jm(this)),(t===`pending`?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):th(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),nh(this,()=>{let r=J(),i=V();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||Rd(r.clone()),df(`focus`),ff(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=Tf(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ym(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>zm()))}toJSON(){return{editorState:this._editorState.toJSON(ds())}}};function Cm(e,t,n,r,i,a){if(I(e)){let o=e.__first;for(;o!==null;){let e=r.get(o);if(e===void 0)break;let s=I(e);e.__parent!==t||s&&a.has(o)||((s||p_(e)&&e.__slots!==null)&&Cm(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o)),o=e.__next}}for(let o of p_(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&m_(e)&&e.__slotHost===t&&((I(e)||p_(e)&&e.__slots!==null)&&Cm(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}var wm=null,Tm=null,Em=!1,Dm=!1,Om=!1,km=new Set,Am=new Set,jm=new Set,Mm=0,Nm={characterData:!0,childList:!0,subtree:!0};function Pm(){return Em||wm!==null&&wm._readOnly}function Fm(){Em&&M(13)}function Im(){Mm>99&&M(14)}function Lm(){return wm===null&&M(195,Bm()),wm}function Rm(e){Lm()!==null&&Tm===null&&(Tm=e),Tm!==e&&ya(378)}function K(){return Tm===null&&M(337,Bm()),Tm}function zm(){K()._dirtyType=2}function Bm(){let e=0,t=new Set,n=Sm.version;if(typeof window<`u`)for(let r of Af(document)){let i=gd(r);if(md(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function Vm(){return Tm}function Hm(e,t,n){let r=t.__type,i=cd(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function Um(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Wm(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function Gm(e){return Km(e,K()._nodes)}function Km(e,t){let n=e.type,r=t.get(n);r===void 0&&M(17,n);let i=r.klass;e.type!==i.getType()&&M(18,i.name);let a=i.importJSON(e),o=e.children;if(I(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=Km(o[e],t);a.append(n)}let s=e.$slots;if(s){p_(a)||M(379,i.name);for(let e in s)j_(a,e,Km(s[e],t))}return a}function qm(e,t,n){let r=wm,i=Em,a=Tm;wm=t,Em=!0,Tm=e;try{return n()}finally{wm=r,Em=i,Tm=a}}function Jm(e,t){e._pendingEditorState!==null&&Tm!==e&&As(e,!1,!0);let n=Om;Om=!0;try{let n=function(e){if(Am.has(e))return!1;Am.add(e);try{for(let t=0;e._pendingEditorState!==null;t++){let n=e._pendingEditorState._selection,r=e._rootElement;if(!Xm(e,n))return!1;let i=(n===null||q(n))&&(e._headless||r===null||!r.isConnected);if(i||t===100)return e._lastNotifiedSelection=n===null?null:n.clone(),!i;th(e,()=>e.dispatchCommand(Qa),void 0,!0)}return!1}finally{Am.delete(e)}}(e);(function(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return void(!e._updating&&e._deferred.length>0&&Qm(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=wm,u=Em,d=Tm,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){Tm=e,wm=n,Em=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=bl(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),Dm)throw t;gm(e,null,r,n),js(e),e._dirtyType=2,Dm=!0,Jm(e,a),Dm=!1;return}finally{p.observe(r,Nm),e._updating=f,wm=l,Em=u,Tm=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set),e._updateTags=new Set;let y=e._deferred;f||(e._deferred=[]),function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=Pd(e)),delete r[a])}(e,n);let b=i?null:Tf(hf(e));if(e._editable&&b!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!v.has(`skip-dom-selection`)){Tm=e,wm=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&wf(t,e,r),Jg(o,s,e,b,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(q(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(zf(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())Cf(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);t!==null&&Cf(t)&&(s=!0,c=e.getElementByKey(t.__key))}if(s){let n=Qf(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=Mf().createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=hv(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&wf(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,Nm),Tm=d,wm=l}}let x=jm.has(e);jm.add(e);try{m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,v,h,a);let r=e._pendingDecorators;r!==null&&(e._decorators=r,e._pendingDecorators=null,Ym(`decorator`,e,!0,r)),function(e,t,n){let r=Fd(t),i=Fd(n);r!==i&&Ym(`textcontent`,e,!0,i)}(e,t||a,n),Ym(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v})}finally{x||jm.delete(e)}f||Qm(e,y),function(e){let t=e._updates;if(t.length===0)return void(e._cascadeCount=0);if(function(e){km.has(e)||(km.add(e),setTimeout(()=>{km.delete(e),e._cascadeCount=0},0))}(e),e._cascadeCount++>99)return e._updates=[],e._cascadeCount=0,void e._onWarn(va(437,e._config.namespace));let n=t.shift();if(n){let[t,r]=n;th(e,t,r)}}(e)})(e,t),n&&e._onWarn(va(436))}finally{Om=n}}function Ym(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=t._listeners[e],i=Array.from(n);for(let[e,t]of i){t&&t();let i=e(...r),a=typeof i==`function`?i:void 0;n.has(e)?n.set(e,a):a&&a()}}finally{t._updating=i}}function Xm(e,t){let n=e._lastNotifiedSelection;return t===null?n!==null:!t.is(n)}function Zm(e,t,n,r){let i=Hd(e),a;if(!Om)for(let e=0;e<i.length;e++)i[e]._updating||(i[e]._cascadeCount=0);if(t===Qa){if(Tm!==e||Em){let i=!1;return nh(e,()=>{i=Zm(e,t,n,r)}),i}let i=Lm()._selection;e._lastNotifiedSelection=i===null?null:i.clone()}for(let e=4;e>=0;e--)for(let o=0;o<i.length;o++){let s=i[o];if(o>0&&s._updating){a=s;break}let c=s._commands.get(t);if(c!==void 0){let t=c[e];if(t.size>0){let e=!1;if(nh(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{Zm(a,t,n,r)}),!1}function Qm(e,t){if(e._deferred===t&&(e._deferred=[]),t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}function $m(e,t){let n=e._updates,r=t||!1;for(;n.length!==0;){let t=n.shift();if(t){let[n,i]=t,a=e._pendingEditorState,o;i!==void 0&&(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(a===null&&M(191),a._flushSync=!0),o&&e._deferred.push(o),Wm(e,i.tag)),a==null?th(e,n,i):n()}}return r}function eh(){let e=Lm();Fm(),e._flushSync=!0}function th(e,t,n,r=!1){let i=e._updateTags,a,o=!1,s=!1;n!==void 0&&(a=n.onUpdate,Wm(e,n.tag),o=n.skipTransforms||!1,s=n.discrete||!1),a&&e._deferred.push(a);let c=e._editorState,l=e._pendingEditorState,u=!1;(l===null||l._readOnly)&&(l=e._pendingEditorState=Kp(l||c),u=!0),l._flushSync=s;let d=wm,f=Em,p=Tm,m=e._updating,h=e._lastNotifiedSelection;wm=l,Em=!1,e._updating=!0,Tm=e;let g=e._headless||e.getRootElement()===null;ad(null);try{u&&(g?c._selection!==null&&(l._selection=c._selection.clone()):l._selection=function(e,t){let n=e.getEditorState()._selection,r=Tf(hf(e));return q(n)||n==null?zg(n,r,e,t):n.clone()}(e,n&&n.event||null));let r=e._compositionKey;t(),o=$m(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(q(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(l,e),e._dirtyType!==0&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);R(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&jl(t)}}(l,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=Od(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);R(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&jl(r),r!==void 0&&Um(r,a)&&Hm(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){Mm++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&Um(c,a)&&Hm(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,Mm++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),$m(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(I(t)&&Cm(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(p_(t)&&t.__slots!==null&&Cm(t,e,i,a,o,n),i.has(e)||n.delete(e),o.push(e))}let s=K(),c=s._cloneNotNeeded;for(let e of o)a.delete(e),c.delete(e);let l=s._compositionKey;l===null||a.has(l)||(s._compositionKey=null)}(c,l,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(l._flushSync=!0);let i=l._selection;if(q(i)){e._slotsUsed&&Ag(i);let t=l._nodeMap,n=i.anchor.key,r=i.focus.key;t.get(n)!==void 0&&t.get(r)!==void 0||M(19)}else dg(i)&&i._nodes.size===0&&(l._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=c;let n=c._selection;e._lastNotifiedSelection=n===null?null:n.clone(),e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),Jm(e);return}finally{wm=d,Em=f,Tm=p,e._updating=m,Mm=0}r||(e._dirtyType!==0||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(l,e)?l._flushSync?(l._flushSync=!1,Jm(e)):u&&ud(()=>{Jm(e)}):(l._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null,e._lastNotifiedSelection=h)))}function nh(e,t,n){Tm===e&&n===void 0?Pm()?th(e,t,n):t():th(e,t,n)}function rh(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ih(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function ah(e,t,n){return rh(...Object.entries(t).map(([t,r])=>ih(e,t,r,n)))}var oh=30,sh=new WeakMap,ch=new WeakMap,lh=ns(e=>(e.addEventListener(`selectionchange`,Zh),()=>e.removeEventListener(`selectionchange`,Zh)));function uh(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=K(),u;if(a!==void 0)u=a;else{let e=Tf(hf(l));u=e===null?null:Ff(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!R(c)||(!i&&(!ka||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||Vd(n))&&o.offset!==s.offset&&!c.isComposing()||vd(c)||c.isDirty()&&m>1||(i||!ka)&&p!==null&&!c.isComposing()&&d!==ep(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=_d(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(R(t)||I(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function dh(e,t){return yd(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function fh(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=Ff(e,t._rootElement),s=t._inputState;if(s.isSelectionChangeFromDOMUpdate){s.isSelectionChangeFromDOMUpdate=!1;let e=s.selectionChangeFromDOMUpdatePoints;if(s.selectionChangeFromDOMUpdatePoints=null,dh(r,i)&&dh(a,o)&&!s.postDeleteSelectionToRestore&&(e===null||e.anchorNode===r&&e.anchorOffset===i&&e.focusNode===a&&e.focusOffset===o))return}nh(t,()=>{if(!n)return void Rd(null);if(!pd(t,r,a))return;let c=s.mouseDrag;!c||c.type===`mousedown`&&c.defaultPrevented||wh(t,c,a);let l=Ch.has(c),u=J();if(s.postDeleteSelectionToRestore&&q(u)&&u.isCollapsed()){let e=u.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(u=s.postDeleteSelectionToRestore.clone(),Rd(u))}if(s.postDeleteSelectionToRestore=null,q(u)){let n=u.anchor;if(u.isCollapsed())e.type===`Range`&&r===a&&(u.dirty=!0),hh(t,u);else{let e=n.key,t=u.focus,r=t.key,a=u.getNodes(),s=a.length,c=u.isBackward(),[d,f]=l?[n.offset,t.offset]:[i,o],p=c?f:d,m=c?d:f,h=c?r:e,g=c?e:r,_=Ra,v=!1;for(let e=0;e<s;e++){let t=a[e],n=t.getTextContentSize();if(R(t)&&n!==0&&!(e===0&&t.__key===h&&p===n||e===s-1&&t.__key===g&&m===0)&&(v=!0,_&=t.getFormat(),_===0))break}u.format=v?_:0}}(function(e,t,n=!1){(n||Xm(e,t))&&e.dispatchCommand(Qa)})(t,u,u!==null&&(u.dirty&&!l||!q(u)))})}function ph(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function mh(e,t){ph(e,t.getFormat(),t.getStyle())}function hh(e,t){let n=t.anchor,r=n.getNode(),i=hf(e).event,a=i?i.timeStamp:performance.now(),{format:o,style:s,offset:c,key:l,timeStamp:u}=e._inputState.collapsedSelectionFormat;a<u+200&&n.offset===c&&n.key===l?ph(t,o,s):n.type===`text`?(R(r)||M(141),mh(t,r)):(e.isComposing()||V().getTextContent()!==``)&&(I(r)||M(259),r.isEmpty()?Bg(t,``):ph(t,t.format,``))}function gh(e,t){nh(t,()=>{let n=J(),r=Tf(hf(t)),i=Vg();if(r){if(q(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!ou(t)&&V().getChildrenSize()===1&&t.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType===`touch`||e.pointerType===`pen`||ja&&t._inputState.lastPointerType!==`mouse`){let n=Ff(r,t._rootElement).anchorNode;(W(n)||yd(n))&&Rd(zg(i,r,t,e))}}if(Da&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;e<n.childNodes.length;e++){let t=n.childNodes[e];if(W(t)){let n=t.getBoundingClientRect();if(a<=(n.top+n.bottom)/2){o=e;break}}}r.setBaseAndExtent(n,o,n,o);let s=zg(i,r,t,e);s===null?r.removeAllRanges():Rd(s)}}H(t,eo,e)})}var _h=10,vh=`input:not(:disabled),textarea:not(:disabled),select:not(:disabled),button:not(:disabled),a[href],area[href],label,summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable]:not([contenteditable="false"])`;function yh(e,t){let n=t.getRootElement();n!==null&&(bh(e,t,n)?(e.preventDefault(),Bf(n.ownerDocument)!==n&&(t._inputState.savedInputMode===void 0&&(t._inputState.savedInputMode=n.getAttribute(`inputmode`)),n.setAttribute(`inputmode`,`none`),n.focus({preventScroll:!0}))):xh(t,n))}function bh(e,t,n){if(t._inputState.lastPointerType===`mouse`)return!1;let r=Vf(e);if(!Uf(r))return!1;let i=!1;for(let e=r;e!==null;e=sf(e)){if(e===n)return i;if(e.nodeType===1){let t=e;if(t.matches(vh))return!1;t.getAttribute(`data-lexical-decorator`)===`true`&&(i=!0)}}return!1}function xh(e,t){let n=e._inputState.savedInputMode;n!==void 0&&(e._inputState.savedInputMode=void 0,n===null?t.removeAttribute(`inputmode`):t.setAttribute(`inputmode`,n))}function Sh(e,t){let n=Vf(e),r=e.pointerType;Uf(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&nh(t,()=>{fp(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}var Ch=new WeakSet;function wh(e,t,n=null){let r=J(),i=r&&r.clone();(function(e,t,n){let r=Vg(),i=t.type===`mousedown`,a=i&&!t.shiftKey,o=n&&Nd(n);L(o)&&(i?a&&o.isInline()&&o.selectPrevious():q(r)&&Rd(r.clone()));let s=J(),c=s||(a?Fg():q(r)?r.clone():null),l=e.getRootElement(),u=l&&l.getRootNode();if(!q(c)||a&&!c.isCollapsed()||!bd(u)&&!Df(u))return;let{anchor:d,focus:f}=c;if(!i&&q(r)){let{key:e,offset:t,type:n}=r.anchor;d.set(e,t,n,!0)}let{clientX:p,clientY:m}=t,h=u.elementFromPoint&&u.elementFromPoint(p,m),g=h&&Nd(h),_=(e,t)=>I(e)?t===`next`?e.getLastDescendant():e.getFirstDescendant():e,v=[null],y=I(g)&&!g.isInline()&&(ou(g)?G(f.getNode(),Ng):g);for(let e of y?X_(y,`next`):[])v.push(Y(e.origin,`previous`),e);let b=hf(e),x=b.document.createRange(),S=null;for(let t of v){let n=t?_(t.origin,t.direction):g;if(!L(n)||!n.isInline()||n===S)continue;let r=e.getElementByKey(n.getKey());if(!r)continue;x.selectNodeContents(r);let i=x.getBoundingClientRect(),o=r.getBoundingClientRect(),{bottom:l,left:u,right:h,top:v}=i.height>o.height?i:o;if(t&&(m<v||m>l)){S=n;continue}let y=b.getComputedStyle(sf(r)||r).direction===`rtl`,C=2*p>u+h!==y,w=C?`next`:`previous`,T=t&&t.getNodeAtCaret(),E=T&&e.getElementByKey(T.getKey()),D=E?E.getClientRects():[],ee=D[C?0:D.length-1];if(!t||t.direction===w&&b.getComputedStyle(r).cssFloat===`none`&&(!T||dm(T)||ee&&(C===y?2*ee.right>u+h:2*ee.left<u+h))){if(!n.is(_(rf(f,C),w))){let e=Y(n,w);Au(f,e),a&&Au(d,e)}s||Rd(c);return}}if(L(o)&&!i){let t=b.document,n=t.caretPositionFromPoint&&t.caretPositionFromPoint(p,m,{shadowRoots:Df(u)?[u]:[]}),r=n&&Tg(n.offsetNode,n.offset,null,e);if(r){let[{key:e,offset:t,type:n}]=r;f.set(e,t,n)}}})(e,t,n);let a=J(),o=e._inputState.mouseDrag;o&&a&&!a.is(i)&&Ch.add(o),t.type===`mousedown`&&q(a)&&Bg(a,q(i)?i.anchor.key:``)}function Th(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function Eh(e){let{lastKeyCode:t}=K()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./icons-
|
|
1
|
+
import{n as e,t}from"./icons-0ju1nuuY.js";var n=[`#7B61FF`,`#0EA5E9`,`#10B981`,`#F59E0B`,`#EF4444`,`#EC4899`,`#14B8A6`,`#8B5CF6`],r=new Set([`ClaudeCode`,`Claude`]);function i(e){let t=e.slice(1),n=t.length===3?[...t].map(e=>e+e).join(``):t,[r,i,a]=[0,2,4].map(e=>Number.parseInt(n.slice(e,e+2),16)/255).map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*r+.7152*i+.0722*a}function a(e){let t=0;for(let n of e)t=t*31+n.codePointAt(0)>>>0;return n[t%n.length]}function o(n){let o=e(n),s=o?t[o].colorPrimary:a(n),c=i(s);return{color:s,icon:o,mascot:o&&r.has(o)?`clawd`:null,darkInk:c>.4,pale:c>.8}}var s={selection:`var(--xz9b1o7)`,measure:`var(--x12zgsxp)`,selectionFill:`var(--x1ydd341)`,selectionWash:`var(--xyof5m5)`,selectionLine:`var(--xv1zbpl)`,agent:`var(--x1yp0pxi)`,updated:`var(--xdthzzi)`,updatedTint:`var(--x1cuppqf)`,success:`var(--xddzn0v)`,successWash:`var(--x1p5ujpn)`,danger:`var(--xwwgkko)`,warning:`var(--x15l3w53)`,warningStrong:`var(--xfcvl3h)`,warningText:`var(--x1hnv96z)`,warningBar:`var(--x1sggc3h)`,warningEdge:`var(--x4j7fax)`,warningSurface:`var(--x1ftxjmd)`,warningWash:`var(--xh446nk)`,warningChip:`var(--x1bl6dc2)`,human:`var(--xt8y3m5)`,white:`var(--xjffli4)`,black:`var(--x1o9hz8v)`,onStrong:`var(--xbrcsgx)`,ink:`var(--x1aqvqge)`,paper:`var(--x1w6i5k)`,paperWarm:`var(--x13i0757)`,inkWarm:`var(--x19q4ttn)`,mediaDeep:`var(--x5m97pb)`,media:`var(--x1pjxfil)`,mediaRail:`var(--x614pga)`,mediaBorder:`var(--x16zt9ik)`,mediaMuted:`var(--xbo83wt)`,mediaOff:`var(--x7c8l7v)`,mediaHover:`var(--x1st7bhy)`,mediaMutedHover:`var(--x1m9ezr7)`,resolved:`var(--x1ld1v06)`,resolvedText:`var(--x1xow7pe)`,overlay:`var(--xgfjza)`,overlayActive:`var(--x13qbfu1)`,overlayText:`var(--x9mn84y)`,overlayShadow:`var(--xpcd2gp)`,overlayShadowSoft:`var(--x5ax8g5)`,overlayShadowHair:`var(--xn5fqny)`,debug:`var(--x1au6rkg)`,debugText:`var(--x1dhvxtc)`,shadowSoft:`var(--x176phpw)`,shadowFaint:`var(--x10164xt)`,shadow:`var(--x1ohnfdm)`,shadowPanel:`var(--xnpy9u9)`,shadowStrong:`var(--x1tjwm2t)`,shadowHeavy:`var(--x1uu8wmb)`,__varGroupHash__:`xpq9wmc`};export{o as n,s as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{S as t,i as n}from"./route-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{S as t,i as n}from"./route-BW2jMdLw.js";import{t as r}from"./react-DlmbjZJV.js";import{t as i}from"./jsx-runtime-LKYXHABd.js";import{$ as a,B as o,D as s,E as c,F as l,G as u,I as d,M as f,Q as p,T as m,V as h,W as g,X as _,Z as v,_ as y,at as b,c as x,ct as S,d as C,et as w,g as T,it as E,j as D,k as O,l as k,n as A,nt as j,o as M,ot as N,q as P,r as F,rt as I,s as L,st as R,tt as z,z as B}from"./mergeRefs-DM4719JU.js";import{n as V,r as H,t as U}from"./clsx-DRUh9g2d.js";import{$ as W,$n as ee,$t as te,A as G,An as K,At as ne,B as re,Bn as q,Bt as ie,C as ae,Cn as J,Ct as Y,D as oe,Dn as se,Dt as ce,E as le,En as ue,Et as de,F as X,Fn as fe,Ft as pe,G as me,Gn as he,H as ge,Hn as _e,In as ve,It as ye,Jn as be,K as xe,Kn as Se,Kt as Ce,L as we,Ln as Te,Lt as Ee,M as De,Mn as Oe,N as ke,Nn as Ae,Nt as je,O as Me,Ot as Ne,Pn as Pe,Pt as Fe,R as Ie,Rn as Le,Rt as Re,S as ze,Sn as Be,St as Ve,Tn as He,Tt as Ue,U as We,Un as Ge,Ut as Ke,V as qe,Vn as Je,W as Ye,Wt as Xe,X as Ze,Z as Qe,Zn as $e,_ as et,_n as tt,_t as nt,an as rt,b as it,bn as at,bt as ot,cn as st,ct,dt as lt,en as ut,et as dt,fn as ft,ft as pt,g as mt,gn as ht,gt,ht as _t,in as vt,j as yt,jn as bt,jt as xt,k as St,kt as Ct,ln as wt,lt as Tt,m as Et,mn as Dt,mt as Ot,n as kt,nn as At,nt as jt,on as Mt,pt as Nt,q as Pt,qn as Ft,rn as It,s as Lt,sn as Rt,st as zt,t as Bt,tn as Vt,un as Ht,ut as Ut,v as Wt,vn as Gt,vt as Kt,w as qt,wn as Jt,wt as Yt,xn as Xt,xt as Zt,yt as Qt,z as $t,zn as en,zt as tn}from"./useScrollLock-Ck4IOT4k.js";import{$ as nn,A as rn,C as an,D as on,E as sn,F as cn,H as ln,J as un,K as dn,L as fn,M as pn,O as mn,P as hn,Q as gn,R as _n,S as vn,T as yn,Tt as bn,U as xn,V as Sn,W as Cn,X as wn,Y as Tn,Z as En,_ as Dn,_t as On,a as kn,at as An,b as jn,bt as Mn,ct as Nn,d as Pn,dt as Fn,et as In,f as Ln,ft as Rn,g as zn,h as Bn,ht as Vn,i as Hn,it as Un,j as Wn,k as Gn,l as Kn,lt as qn,m as Jn,mt as Yn,n as Xn,nt as Zn,o as Qn,ot as $n,pt as er,q as tr,r as nr,rt as rr,s as ir,t as ar,tt as or,ut as sr,v as cr,vt as lr,w as ur,wt as dr,x as fr,xt as pr,y as mr,yt as hr,z as gr}from"./MotionConfigContext-B3czw3wn.js";var Z=e(r(),1),_r=e=>{let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t},vr=(0,Z.memo)(({url:e})=>{let t=(0,Z.useRef)(null);return(0,Z.useEffect)(()=>{let n=_r(e);document.head.append(n),t.current=n;let r=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener(`error`,r),()=>{n.removeEventListener(`error`,r),n.remove(),t.current=null}},[e]),null});vr.displayName=`FontLoader`;var yr=`
|
|
2
2
|
[data-lobe-global-focus-ring] {
|
|
3
3
|
all: initial;
|
|
4
4
|
position: fixed;
|