@layers-app/editor 0.7.93 → 0.7.95
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/README.md +831 -831
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +5 -65
- package/dist/index.js +12 -14
- package/dist/{layers.yFxcgyah.js → layers.-E5ZL8uG.js} +2 -2
- package/dist/{layers._ram0v-H.js → layers.13yQCoaW.js} +1 -1
- package/dist/{layers.BPni5cr6.js → layers.2SbhtZ-F.js} +2 -2
- package/dist/{layers.l9IaJ8Na.js → layers.2kEY3VsX.js} +1 -1
- package/dist/{layers.sFmfgHo4.js → layers.2mP7D5Gk.js} +3 -3
- package/dist/layers.3Q8u36mg.js +76 -0
- package/dist/layers.4AD4x-dG.js +1 -0
- package/dist/{layers.DDQgSWZM.js → layers.4DlTMioA.js} +4 -4
- package/dist/{layers.Daizjhsk.js → layers.6yAkjn3_.js} +3 -3
- package/dist/{layers.4vqpsuc3.js → layers.75v9_J7l.js} +1 -1
- package/dist/{layers.DzZ61AN4.js → layers.93L1Omwe.js} +1 -1
- package/dist/{layers.zW7UNB56.js → layers.98qn79XI.js} +1 -1
- package/dist/{layers.DEkU827U.js → layers.9YdRm5Ps.js} +1 -1
- package/dist/layers.9naw7mjQ.js +276 -0
- package/dist/{layers.CNUJb-Qd.js → layers.Aw93WAhu.js} +1 -1
- package/dist/{layers.BDiPbruK.js → layers.B-jCO_Ab.js} +1 -1
- package/dist/{layers.DTCgqxVH.js → layers.B0JlC05E.js} +1 -1
- package/dist/{layers._TXR7_BW.js → layers.B0NJNWRr.js} +1 -1
- package/dist/{layers.Lm3yzugI.js → layers.B0YMRqML.js} +1 -1
- package/dist/{layers.BLpNviKk.js → layers.B17FuWom.js} +1 -1
- package/dist/{layers.BnBIaczk.js → layers.B18E95WW.js} +1 -1
- package/dist/layers.B3RezEDU.js +1 -0
- package/dist/{layers.BzoSDIc-.js → layers.B4PQefTU.js} +1 -1
- package/dist/{layers.DM5FQGwH.js → layers.B5UtlMbi.js} +1 -1
- package/dist/{layers.BGJFkxfG.js → layers.B79K0gu0.js} +1 -1
- package/dist/{layers.BHnL_Uok.js → layers.B7bFm27p.js} +1 -1
- package/dist/{layers.GsD0_GxX.js → layers.B8cRjTv5.js} +8 -8
- package/dist/{layers.CC44ZlQZ.js → layers.BFTJjwZU.js} +24 -24
- package/dist/{layers.DHzGmamJ.js → layers.BFxVLejv.js} +1 -1
- package/dist/{layers.DAvGftUZ.js → layers.BH4Gwh3Q.js} +4 -4
- package/dist/{layers.iCGkfdqe.js → layers.BMlZJCFk.js} +1 -1
- package/dist/{layers.D_CVQ8_U.js → layers.BNCzrHwP.js} +1 -1
- package/dist/{layers.vvoHMkog.js → layers.BQMnzD02.js} +1 -1
- package/dist/{layers.CRV0BKlE.js → layers.BRJqlys_.js} +1 -1
- package/dist/layers.BRj8XDiJ.js +6 -0
- package/dist/{layers.iYPrW38K.js → layers.BRkx-I0n.js} +1 -1
- package/dist/{layers.BalFy4Pd.js → layers.BSC2_swu.js} +1 -1
- package/dist/{layers.D0l4OEP1.js → layers.BTEq-3Ng.js} +1 -1
- package/dist/{layers.DxYNx_WJ.js → layers.BTcW771z.js} +1 -1
- package/dist/layers.BV7jD_UG.js +300 -0
- package/dist/layers.BVu5YqDM.js +1 -0
- package/dist/layers.BWOY5x_s.js +215 -0
- package/dist/layers.BXcX2RSV.js +295 -0
- package/dist/{layers.Bcb3CJTF.js → layers.BXoWrkcs.js} +2 -2
- package/dist/{layers.OFbtrZYp.js → layers.BY-BtZXU.js} +3 -3
- package/dist/{layers.Fp2xKhlB.js → layers.BYsTLzE6.js} +1 -1
- package/dist/{layers.UWbJSE_q.js → layers.BZb38RRY.js} +1 -1
- package/dist/{layers.DRGSxBgi.js → layers.BaOjlgv_.js} +1 -1
- package/dist/{layers.DTkHkrLG.js → layers.BaT31SFJ.js} +5 -5
- package/dist/layers.BbKbad0b.js +1 -0
- package/dist/{layers.DWAnuPjJ.js → layers.BcJegCaI.js} +1 -1
- package/dist/{layers.BaDwWFkk.js → layers.BdHWNfs-.js} +1 -1
- package/dist/{layers.mCNNRzMK.js → layers.BePEn0X4.js} +1 -1
- package/dist/{layers.D5ldRac_.js → layers.BerJ0Pg3.js} +1 -1
- package/dist/{layers.-qD_IlHz.js → layers.Bfe9Pp9D.js} +1 -1
- package/dist/{layers.B6rOc-Ti.js → layers.BgySFLMk.js} +1 -1
- package/dist/{layers.D1UqHxFG.js → layers.BhvHH_Ju.js} +1 -1
- package/dist/{layers.IkYeHNd-.js → layers.Bi9ySoON.js} +1 -1
- package/dist/{layers.CsqTB_b0.js → layers.Bkv9fsTk.js} +1 -1
- package/dist/{layers.CxiX7XmH.js → layers.Blxnf5Vj.js} +1 -1
- package/dist/{layers.GVr5uU5W.js → layers.BpFBNir0.js} +1 -1
- package/dist/{layers.DkwDMTq9.js → layers.BpbSyRnx.js} +1 -1
- package/dist/{layers.kpBucBt1.js → layers.BpsE8-NY.js} +1 -1
- package/dist/{layers.D_1KCN2L.js → layers.BqGHT5wm.js} +1 -1
- package/dist/layers.Br2e9Qz-.js +1 -0
- package/dist/{layers.CfocA5Re.js → layers.BrNQmBHb.js} +1 -1
- package/dist/{layers.Dyd9_aH-.js → layers.BrVjD0OE.js} +1 -1
- package/dist/{layers.BEKTKoir.js → layers.BrsLij4r.js} +1 -1
- package/dist/{layers.VBselTAE.js → layers.BtdZ-A8x.js} +1 -1
- package/dist/{layers.BLCWQ59V.js → layers.BvnrNMBr.js} +1 -1
- package/dist/{layers.DuqUo0oU.js → layers.BzeRvcdG.js} +1 -1
- package/dist/{layers.jI-GVlXe.js → layers.BzlLEXPU.js} +1 -1
- package/dist/{layers.Y7kZzQzI.js → layers.C0SzQIIy.js} +1 -1
- package/dist/{layers.VjAp6vpG.js → layers.C16hyb_d.js} +1 -1
- package/dist/{layers.Qr2h1-VC.js → layers.C25rwqWq.js} +1 -1
- package/dist/{layers.BtJnQ0mI.js → layers.C4sZy2bH.js} +1 -1
- package/dist/{layers.C-Q16oCj.js → layers.C8KnrbJP.js} +1 -1
- package/dist/{layers.QnTzffzI.js → layers.C8Vg5nct.js} +1 -1
- package/dist/{layers.DcVK6qgi.js → layers.C8s-IpyV.js} +1 -1
- package/dist/{layers.CM5hqLt_.js → layers.C9ylISWH.js} +1 -1
- package/dist/{layers.CBaBV2iZ.js → layers.CC1bWKza.js} +1 -1
- package/dist/{layers.CV9JMOd0.js → layers.CClda9ub.js} +1 -1
- package/dist/{layers.vU738QAp.js → layers.CDPzHrZq.js} +1 -1
- package/dist/{layers.BkHV48yv.js → layers.CDlXOuYY.js} +1 -1
- package/dist/{layers.czDrchz1.js → layers.CE1Ndc4E.js} +1 -1
- package/dist/{layers.B0R-ifEH.js → layers.CFDWiiQA.js} +1 -1
- package/dist/{layers.CWjT_Kbq.js → layers.CGavCtyF.js} +1 -1
- package/dist/{layers.BoOiKUQt.js → layers.CGqJjyC3.js} +65 -65
- package/dist/{layers.CjgXNJBg.js → layers.CKAQZ-0D.js} +1 -1
- package/dist/{layers.DNoj8uH2.js → layers.CMpczyu-.js} +1 -1
- package/dist/{layers.ChEJ2zyQ.js → layers.CMuPbUPi.js} +1 -1
- package/dist/{layers.Brrg4jj_.js → layers.CMuo3nXh.js} +1 -1
- package/dist/{layers.CjvUFr5W.js → layers.COJrFB7F.js} +1 -1
- package/dist/{layers.aZyt0ZhK.js → layers.COKgTzFb.js} +4 -4
- package/dist/{layers.FuV5aVfW.js → layers.COWvbQVp.js} +1 -1
- package/dist/{layers.fsKnbvfV.js → layers.CQ6la2e9.js} +1 -1
- package/dist/{layers.C8DpC6Mn.js → layers.CQfNfZlg.js} +1 -1
- package/dist/{layers.CGwmNznF.js → layers.CRHKyZqs.js} +5 -5
- package/dist/{layers.CWuSuPfS.js → layers.CTJeDsBu.js} +1 -1
- package/dist/{layers.5usI25Xs.js → layers.CV24J_Mp.js} +1 -1
- package/dist/{layers.JabcC5VX.js → layers.CVM7K8J4.js} +1 -1
- package/dist/{layers.CFZqbydb.js → layers.Ca7SArHb.js} +3 -3
- package/dist/{layers.C_ZG_NmP.js → layers.CbfcnlO3.js} +1 -1
- package/dist/{layers.CTGsC808.js → layers.Ce9XkdTw.js} +1 -1
- package/dist/{layers.D_gH0Is5.js → layers.Cewl7lsR.js} +1 -1
- package/dist/{layers.zE2Ag_LD.js → layers.Cmz7hc2R.js} +1 -1
- package/dist/{layers.9iTOFkOz.js → layers.Cnk5pS5i.js} +1 -1
- package/dist/{layers.Bzd_kEIv.js → layers.CoRn3fKC.js} +1 -1
- package/dist/{layers._LRYHSJ0.js → layers.Colb3gh6.js} +1 -1
- package/dist/{layers.CN2AORSh.js → layers.CpJXQf84.js} +1 -1
- package/dist/{layers.CmFR2uKv.js → layers.CquKLVv1.js} +1 -1
- package/dist/{layers.C01LyZL_.js → layers.CrkcoIS9.js} +1 -1
- package/dist/{layers.I1SLD0UK.js → layers.CtqVlJjA.js} +1 -1
- package/dist/{layers.BEGCfKQE.js → layers.CuxC1Aal.js} +1 -1
- package/dist/{layers.CXoinSNf.js → layers.D0Ggmjob.js} +4 -4
- package/dist/{layers.DTBSutEB.js → layers.D1Ji033n.js} +1 -1
- package/dist/{layers.CmNwAjIw.js → layers.D1oWAK49.js} +1 -1
- package/dist/{layers.CRgtKhyz.js → layers.D2GOeQIy.js} +1 -1
- package/dist/{layers.D4BL-_g4.js → layers.D2gAypcS.js} +1 -1
- package/dist/{layers.msmp08Xf.js → layers.D3_1Ua0e.js} +4 -4
- package/dist/{layers.Chx21Noj.js → layers.D41K-b5z.js} +1 -1
- package/dist/{layers.PvxtC1eC.js → layers.D4mim_ow.js} +1 -1
- package/dist/layers.D6gRryL0.js +1 -0
- package/dist/{layers.DYnnh-09.js → layers.D7NR5knE.js} +1 -1
- package/dist/{layers.B7ml1wOj.js → layers.D7WjeTgf.js} +3 -3
- package/dist/{layers.Dzvv_LWT.js → layers.D86lQuXS.js} +3 -3
- package/dist/layers.D8k8DGNi.js +1 -0
- package/dist/{layers.CF7penQ9.js → layers.D9VyZLzg.js} +2 -2
- package/dist/{layers.BufejxmY.js → layers.D9qkyzx8.js} +1 -1
- package/dist/{layers.DryQJgTf.js → layers.DASXYyHC.js} +1 -1
- package/dist/{layers.D4QdQ1B8.js → layers.DAszBVfh.js} +1 -1
- package/dist/{layers.BKTJE34P.js → layers.DBCBDR3b.js} +1 -1
- package/dist/{layers.DmvODDQ0.js → layers.DH_mqaBo.js} +4 -4
- package/dist/{layers.D9BOJQ5y.js → layers.DHetpaGH.js} +1 -1
- package/dist/{layers.CfDwsZU0.js → layers.DJoZHH64.js} +1 -1
- package/dist/layers.DL2tuvoX.js +32090 -0
- package/dist/{layers.DDZzHO2e.js → layers.DLcN8PIe.js} +1 -1
- package/dist/{layers.CeI3w2iY.js → layers.DMFI38mY.js} +1 -1
- package/dist/{layers.MqC_9V6k.js → layers.DN34PNqI.js} +1 -1
- package/dist/{layers.Csi-9lrm.js → layers.DQ2wvSLl.js} +1 -1
- package/dist/{layers.DOTdJgPv.js → layers.DU9HGoz0.js} +1 -1
- package/dist/{layers.Cz_0Xe5w.js → layers.DVCmLI6u.js} +1 -1
- package/dist/{layers.Bk7jKmXI.js → layers.DVuJFeFE.js} +1 -1
- package/dist/{layers.BUhQr1my.js → layers.D_jnzZSL.js} +1 -1
- package/dist/{layers.DFmZFu4s.js → layers.Da7oE5mU.js} +1 -1
- package/dist/{layers.D6sxU8A2.js → layers.Dad7Lsnl.js} +2 -2
- package/dist/{layers.cYc9Mkkl.js → layers.Dci5QVDS.js} +1 -1
- package/dist/{layers.CpvsNStS.js → layers.DdbTq5aA.js} +1 -1
- package/dist/{layers.BcCelUDj.js → layers.DeIv1hll.js} +1 -1
- package/dist/layers.DeprR50W.js +1 -0
- package/dist/{layers.DGh8drOs.js → layers.DjWDEJ8X.js} +1 -1
- package/dist/{layers.BUFOBCMy.js → layers.DnE2GcHE.js} +3 -3
- package/dist/{layers.CKJZJ_ts.js → layers.Dnqr53bm.js} +1 -1
- package/dist/{layers.Bksq8_Qt.js → layers.DoP3fAoc.js} +1 -1
- package/dist/{layers.7jwh_MfI.js → layers.DrM9csiN.js} +1 -1
- package/dist/{layers.Stx3Iboc.js → layers.DszQIpo4.js} +1 -1
- package/dist/{layers.DXe2VR26.js → layers.Dt6tiPdm.js} +1 -1
- package/dist/{layers.BV-g-xzT.js → layers.Dwrzi8nh.js} +1 -1
- package/dist/{layers.CNcMdVwf.js → layers.DxJaSE64.js} +1 -1
- package/dist/{layers.CWTCSE0f.js → layers.DzMwdIk6.js} +1 -1
- package/dist/{layers.CZ4Y6y3c.js → layers.DzRpsx95.js} +1 -1
- package/dist/{layers.D_m-25Ic.js → layers.Fum9dFUj.js} +3 -3
- package/dist/{layers.DFuWTxaW.js → layers.ISpgzsWD.js} +1 -1
- package/dist/{layers.qRe_lZMu.js → layers.JLbefGlL.js} +1 -1
- package/dist/{layers.268NfhIX.js → layers.JfTTob86.js} +1 -1
- package/dist/{layers.C2fhjYrc.js → layers.KGrV8VX2.js} +1 -1
- package/dist/{layers.rulLZ93L.js → layers.KK7ljVw5.js} +1 -1
- package/dist/layers.MxJMzalS.js +304 -0
- package/dist/{layers.ve-b1iUI.js → layers.N8mnQie3.js} +1 -1
- package/dist/{layers.DqwY2YKL.js → layers.NgClHNlL.js} +1 -1
- package/dist/{layers.DwFHPFXW.js → layers.O8nidRfN.js} +1 -1
- package/dist/{layers.BpnHi2Sm.js → layers.PI9aySDS.js} +1 -1
- package/dist/{layers.mRg6Wxq7.js → layers.PYM0IMGs.js} +1 -1
- package/dist/{layers.orgRZ2V9.js → layers.RxFUv3Bx.js} +1 -1
- package/dist/{layers.V9lJ9Ccb.js → layers.V3nYpF_O.js} +1 -1
- package/dist/{layers.SWM1KY20.js → layers.VvK0SOcd.js} +1 -1
- package/dist/{layers.811TSpOY.js → layers.WIreiaYt.js} +1 -1
- package/dist/{layers.DhR_eZa8.js → layers.WrlUzNAW.js} +1 -1
- package/dist/{layers.XxXB7ixR.js → layers.Y0NPe355.js} +1 -1
- package/dist/{layers.nltEsUBo.js → layers._9wKr3L_.js} +4 -4
- package/dist/{layers.yasiEV95.js → layers.atxKDiCs.js} +1 -1
- package/dist/{layers.DTUuZqOa.js → layers.ayZrrBx5.js} +3 -3
- package/dist/{layers.CDOF7D2m.js → layers.b4rn0Atm.js} +4 -4
- package/dist/{layers.LQ0WKJCL.js → layers.bBh5bzLb.js} +1 -1
- package/dist/{layers.hmEL7VCj.js → layers.c2Is_p3D.js} +1 -1
- package/dist/{layers.DFmhjbPv.js → layers.cJw8uJHc.js} +3 -3
- package/dist/{layers.DVTq8SE9.js → layers.g0SmonNN.js} +1 -1
- package/dist/{layers.gCS_1NW6.js → layers.hI4w-_CI.js} +1 -1
- package/dist/{layers.DUlvtU8P.js → layers.hYb_RCe5.js} +1 -1
- package/dist/{layers.DhwgnsWZ.js → layers.iivRqxRU.js} +1 -1
- package/dist/{layers.mCqe-cvO.js → layers.jO4OWeX_.js} +1 -1
- package/dist/layers.jx_O1wUV.js +8 -0
- package/dist/{layers.C94ZEZX8.js → layers.kVp2pqJH.js} +1 -1
- package/dist/{layers.BeIbAvhr.js → layers.nvOqxz3c.js} +1 -1
- package/dist/layers.o-pm_2Rk.js +271 -0
- package/dist/{layers.M4h6tkxO.js → layers.osawo8PK.js} +1 -1
- package/dist/{layers.BZp78mT0.js → layers.qKOcmQPG.js} +1 -1
- package/dist/{layers.Dhtl9hTt.js → layers.r7BDo2cG.js} +1 -1
- package/dist/{layers.igq8-CrV.js → layers.rZOTpVnw.js} +6 -6
- package/dist/{layers.CLVPhrnI.js → layers.sZGMBfa4.js} +7 -7
- package/dist/{layers.BRP3PhII.js → layers.smouwFHe.js} +3 -3
- package/dist/{layers.B5LuOdoA.js → layers.soKSk4Tf.js} +1 -1
- package/dist/{layers.DSzKKGJF.js → layers.xLYLKZWw.js} +1 -1
- package/dist/{layers.CFML777f.js → layers.yikAnJS7.js} +1 -1
- package/dist/{layers.BfyTGtGq.js → layers.ym_97Wes.js} +1 -1
- package/dist/{layers.CG4NZuoY.js → layers.yo62u_-M.js} +1 -1
- package/package.json +20 -46
- package/dist/layers.-tiwgsIy.js +0 -17
- package/dist/layers.BF5czbZm.js +0 -310
- package/dist/layers.Brbunzgb.js +0 -1
- package/dist/layers.C8scOXtX.js +0 -46873
- package/dist/layers.CNASfKEr.js +0 -1
- package/dist/layers.Ce5d3c4K.js +0 -1
- package/dist/layers.CmmYt3Ou.js +0 -1
- package/dist/layers.CnCND_tm.js +0 -533
- package/dist/layers.DBe4vr1J.js +0 -6
- package/dist/layers.DGYg3grQ.js +0 -346
- package/dist/layers.DH0uo8fs.js +0 -1
- package/dist/layers.Dh7vm0BH.js +0 -500
- package/dist/layers.DilA0qnM.js +0 -54
- package/dist/layers.Dybb-MrJ.js +0 -1
- package/dist/layers.UyyKG0j1.js +0 -8
- package/dist/layers.vgzUgI4K.js +0 -1
package/dist/layers.BF5czbZm.js
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
"use strict";var h9=Object.defineProperty;var p9=(e,n,t)=>n in e?h9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Ne=(e,n,t)=>p9(e,typeof n!="symbol"?n+"":n,t);const Og=require("@mantine/dropzone"),p=require("lexical"),s=require("react/jsx-runtime"),m=require("react"),Ue=require("react-i18next"),m9=require("@lexical/react/LexicalCollaborationContext"),g9=require("@lexical/react/LexicalCollaborationPlugin"),C9=require("@lexical/react/LexicalComposer"),Vh=require("@lexical/react/LexicalHistoryPlugin"),v=require("@mantine/core"),DC=require("yjs"),A9=require("i18next"),At=require("@layers-app/shared"),ot=require("@lexical/react/LexicalComposerContext"),ve=require("@lexical/utils"),eo=require("@lexical/react/LexicalDecoratorBlockNode"),Ft=require("@mantine/hooks"),Gt=require("@lexical/code"),dn=require("@lexical/selection"),ei=require("@lexical/react/LexicalBlockWithAlignableContents"),Br=require("react-dom"),Ee=require("@tabler/icons-react"),b9=require("@lexical/hashtag"),cn=require("@lexical/link"),vs=require("@lexical/mark"),OC=require("@lexical/overflow"),Pi=require("@lexical/react/LexicalHorizontalRuleNode"),fn=require("@lexical/rich-text"),y9=require("react-dom/server"),x9=require("@lexical/react/useLexicalNodeSelection"),v9=require("@lexical/react/LexicalClearEditorPlugin"),w9=require("@lexical/react/LexicalClickableLinkPlugin"),k9=require("@lexical/react/LexicalErrorBoundary"),S9=require("@lexical/react/LexicalHashtagPlugin"),E9=require("@lexical/react/LexicalHorizontalRulePlugin"),T9=require("@lexical/react/LexicalOnChangePlugin"),M9=require("@lexical/react/LexicalRichTextPlugin"),L9=require("@lexical/react/LexicalLinkPlugin"),N9=require("@lexical/react/LexicalMarkdownShortcutPlugin"),ao=require("@lexical/markdown"),jn=require("@lexical/table"),za=require("@lexical/html"),PC=require("@mantine/notifications"),j9=require("shaka-player-react"),mf=require("@mantine/carousel"),Ka=require("@lexical/clipboard"),Su=require("lodash-es"),BC=require("@lexical/react/useLexicalEditable"),R9=require("@lexical/react/LexicalTableOfContentsPlugin"),uc=require("@lexical/file"),I9=require("@lexical/yjs"),Ua=require("@lexical/react/LexicalTypeaheadMenuPlugin"),D9=require("@lexical/react/LexicalTreeView"),O9=require("@lexical/react/LexicalContentEditable");function _C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const P9=_C(m),qh=_C(DC),ws=()=>new Map,FC=(e,n,t)=>{let r=e.get(n);return r===void 0&&e.set(n,r=t()),r},WC=()=>new Set,B9=Array.from,_9=String.fromCharCode,F9=e=>e.toLowerCase(),W9=/^\s*/g,z9=e=>e.replace(W9,""),K9=/([A-Z])/g,Pg=(e,n)=>z9(e.replace(K9,t=>`${n}${F9(t)}`)),U9=e=>{const n=unescape(encodeURIComponent(e)),t=n.length,r=new Uint8Array(t);for(let o=0;o<t;o++)r[o]=n.codePointAt(o);return r},Ha=typeof TextEncoder<"u"?new TextEncoder:null,H9=e=>Ha.encode(e),Y9=Ha?H9:U9;let Ma=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});Ma&&Ma.decode(new Uint8Array).length===1&&(Ma=null);const Bg=e=>e===void 0?null:e;class Z9{constructor(){this.map=new Map}setItem(n,t){this.map.set(n,t)}getItem(n){return this.map.get(n)}}let zC=new Z9,Qh=!0;try{typeof localStorage<"u"&&localStorage&&(zC=localStorage,Qh=!1)}catch{}const KC=zC,G9=e=>Qh||addEventListener("storage",e),V9=e=>Qh||removeEventListener("storage",e),_g=Symbol("Equality"),q9=Object.keys,Q9=(e,n)=>{const t=[];for(const r in e)t.push(n(e[r],r));return t},Fg=e=>q9(e).length,J9=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),La=(e,n)=>{if(e===n)return!0;if(e==null||n==null||e.constructor!==n.constructor&&(e.constructor||Object)!==(n.constructor||Object))return!1;if(e[_g]!=null)return e[_g](n);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),n=new Uint8Array(n);case Uint8Array:{if(e.byteLength!==n.byteLength)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;break}case Set:{if(e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;break}case Map:{if(e.size!==n.size)return!1;for(const t of e.keys())if(!n.has(t)||!La(e.get(t),n.get(t)))return!1;break}case void 0:case Object:if(Fg(e)!==Fg(n))return!1;for(const t in e)if(!J9(e,t)||!La(e[t],n[t]))return!1;break;case Array:if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!La(e[t],n[t]))return!1;break;default:return!1}return!0},X9=(e,n)=>n.includes(e),ai=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",UC=typeof window<"u"&&typeof document<"u"&&!ai;let io;const $9=()=>{if(io===void 0)if(ai){io=ws();const e=process.argv;let n=null;for(let t=0;t<e.length;t++){const r=e[t];r[0]==="-"?(n!==null&&io.set(n,""),n=r):n!==null&&(io.set(n,r),n=null)}n!==null&&io.set(n,"")}else typeof location=="object"?(io=ws(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[n,t]=e.split("=");io.set(`--${Pg(n,"-")}`,t),io.set(`-${Pg(n,"-")}`,t)}})):io=ws();return io},Vf=e=>$9().has(e),qf=e=>Bg(ai?process.env[e.toUpperCase().replaceAll("-","_")]:KC.getItem(e)),HC=e=>Vf("--"+e)||qf(e)!==null;HC("production");const e8=ai&&X9(process.env.FORCE_COLOR,["true","1","2"]);e8||!Vf("--no-colors")&&!HC("no-color")&&(!ai||process.stdout.isTTY)&&(!ai||Vf("--color")||qf("COLORTERM")!==null||(qf("TERM")||"").includes("color"));const YC=Math.floor,ZC=(e,n)=>e<n?e:n,t8=(e,n)=>e>n?e:n,n8=Math.pow,GC=128,Fc=127,r8=Number.MAX_SAFE_INTEGER;class o8{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Nr=()=>new o8,Jh=e=>{let n=e.cpos;for(let t=0;t<e.bufs.length;t++)n+=e.bufs[t].length;return n},pr=e=>{const n=new Uint8Array(Jh(e));let t=0;for(let r=0;r<e.bufs.length;r++){const o=e.bufs[r];n.set(o,t),t+=o.length}return n.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),t),n},Jc=(e,n)=>{const t=e.cbuf.length;e.cpos===t&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(t*2),e.cpos=0),e.cbuf[e.cpos++]=n},An=(e,n)=>{for(;n>Fc;)Jc(e,GC|Fc&n),n=YC(n/128);Jc(e,Fc&n)},Qf=new Uint8Array(3e4),i8=Qf.length/3,s8=(e,n)=>{if(n.length<i8){const t=Ha.encodeInto(n,Qf).written||0;An(e,t);for(let r=0;r<t;r++)Jc(e,Qf[r])}else Mo(e,Y9(n))},a8=(e,n)=>{const t=unescape(encodeURIComponent(n)),r=t.length;An(e,r);for(let o=0;o<r;o++)Jc(e,t.codePointAt(o))},l8=Ha&&Ha.encodeInto?s8:a8,c8=(e,n)=>{const t=e.cbuf.length,r=e.cpos,o=ZC(t-r,n.length),i=n.length-o;e.cbuf.set(n.subarray(0,o),r),e.cpos+=o,i>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(t8(t*2,i)),e.cbuf.set(n.subarray(o)),e.cpos=i)},Mo=(e,n)=>{An(e,n.byteLength),c8(e,n)},VC=e=>new Error(e),u8=VC("Unexpected end of array"),d8=VC("Integer out of Range");class f8{constructor(n){this.arr=n,this.pos=0}}const qC=e=>new f8(e),h8=(e,n)=>{const t=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,n);return e.pos+=n,t},Eu=e=>h8(e,oi(e)),Wg=e=>e.arr[e.pos++],oi=e=>{let n=0,t=1;const r=e.arr.length;for(;e.pos<r;){const o=e.arr[e.pos++];if(n=n+(o&Fc)*t,t*=128,o<GC)return n;if(n>r8)throw d8}throw u8},p8=e=>{let n=oi(e);if(n===0)return"";{let t=String.fromCodePoint(Wg(e));if(--n<100)for(;n--;)t+=String.fromCodePoint(Wg(e));else for(;n>0;){const r=n<1e4?n:1e4,o=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,t+=String.fromCodePoint.apply(null,o),n-=r}return decodeURIComponent(escape(t))}},m8=e=>Ma.decode(Eu(e)),QC=Ma?m8:p8,g8=e=>new Uint8Array(e),C8=(e,n,t)=>new Uint8Array(e,n,t),A8=e=>new Uint8Array(e),b8=e=>{let n="";for(let t=0;t<e.byteLength;t++)n+=_9(e[t]);return btoa(n)},y8=e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),x8=e=>{const n=atob(e),t=g8(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},v8=e=>{const n=Buffer.from(e,"base64");return C8(n.buffer,n.byteOffset,n.byteLength)},w8=UC?b8:y8,k8=UC?x8:v8,JC=new Map;class S8{constructor(n){this.room=n,this.onmessage=null,this._onChange=t=>t.key===n&&this.onmessage!==null&&this.onmessage({data:k8(t.newValue||"")}),G9(this._onChange)}postMessage(n){KC.setItem(this.room,w8(A8(n)))}close(){V9(this._onChange)}}const E8=typeof BroadcastChannel>"u"?S8:BroadcastChannel,Xh=e=>FC(JC,e,()=>{const n=WC(),t=new E8(e);return t.onmessage=r=>n.forEach(o=>o(r.data,"broadcastchannel")),{bc:t,subs:n}}),T8=(e,n)=>(Xh(e).subs.add(n),n),M8=(e,n)=>{const t=Xh(e),r=t.subs.delete(n);return r&&t.subs.size===0&&(t.bc.close(),JC.delete(e)),r},Cs=(e,n,t=null)=>{const r=Xh(e);r.bc.postMessage(n),r.subs.forEach(o=>o(n,t))},_i=Date.now,XC=0,$h=1,$C=2,Jf=(e,n)=>{An(e,XC);const t=qh.encodeStateVector(n);Mo(e,t)},eA=(e,n,t)=>{An(e,$h),Mo(e,qh.encodeStateAsUpdate(n,t))},L8=(e,n,t)=>eA(n,t,Eu(e)),tA=(e,n,t,r)=>{try{qh.applyUpdate(n,Eu(e),t)}catch(o){r!=null&&r(o),console.error("Caught error while handling a Yjs update",o)}},N8=(e,n)=>{An(e,$C),Mo(e,n)},j8=tA,R8=(e,n,t,r,o)=>{const i=oi(e);switch(i){case XC:L8(e,n,t);break;case $h:tA(e,t,r,o);break;case $C:j8(e,t,r,o);break;default:throw new Error("Unknown message type")}return i},I8=0,D8=(e,n,t)=>{switch(oi(e)){case I8:t(n,QC(e))}};class nA{constructor(){this._observers=ws()}on(n,t){FC(this._observers,n,WC).add(t)}once(n,t){const r=(...o)=>{this.off(n,r),t(...o)};this.on(n,r)}off(n,t){const r=this._observers.get(n);r!==void 0&&(r.delete(t),r.size===0&&this._observers.delete(n))}emit(n,t){return B9((this._observers.get(n)||ws()).values()).forEach(r=>r(...t))}destroy(){this._observers=ws()}}const gf=3e4;class O8 extends nA{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const t=_i();this.getLocalState()!==null&&gf/2<=t-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((o,i)=>{i!==this.clientID&&gf<=t-o.lastUpdated&&this.states.has(i)&&r.push(i)}),r.length>0&&e1(this,r,"timeout")},YC(gf/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const t=this.clientID,r=this.meta.get(t),o=r===void 0?0:r.clock+1,i=this.states.get(t);n===null?this.states.delete(t):this.states.set(t,n),this.meta.set(t,{clock:o,lastUpdated:_i()});const l=[],c=[],d=[],f=[];n===null?f.push(t):i==null?n!=null&&l.push(t):(c.push(t),La(i,n)||d.push(t)),(l.length>0||d.length>0||f.length>0)&&this.emit("change",[{added:l,updated:d,removed:f},"local"]),this.emit("update",[{added:l,updated:c,removed:f},"local"])}setLocalStateField(n,t){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[n]:t})}getStates(){return this.states}}const e1=(e,n,t)=>{const r=[];for(let o=0;o<n.length;o++){const i=n[o];if(e.states.has(i)){if(e.states.delete(i),i===e.clientID){const l=e.meta.get(i);e.meta.set(i,{clock:l.clock+1,lastUpdated:_i()})}r.push(i)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},t]),e.emit("update",[{added:[],updated:[],removed:r},t]))},Na=(e,n,t=e.states)=>{const r=n.length,o=Nr();An(o,r);for(let i=0;i<r;i++){const l=n[i],c=t.get(l)||null,d=e.meta.get(l).clock;An(o,l),An(o,d),l8(o,JSON.stringify(c))}return pr(o)},P8=(e,n,t)=>{const r=qC(n),o=_i(),i=[],l=[],c=[],d=[],f=oi(r);for(let h=0;h<f;h++){const g=oi(r);let C=oi(r);const b=JSON.parse(QC(r)),y=e.meta.get(g),x=e.states.get(g),w=y===void 0?0:y.clock;(w<C||w===C&&b===null&&e.states.has(g))&&(b===null?g===e.clientID&&e.getLocalState()!=null?C++:e.states.delete(g):e.states.set(g,b),e.meta.set(g,{clock:C,lastUpdated:o}),y===void 0&&b!==null?i.push(g):y!==void 0&&b===null?d.push(g):b!==null&&(La(b,x)||c.push(g),l.push(g)))}(i.length>0||c.length>0||d.length>0)&&e.emit("change",[{added:i,updated:c,removed:d},t]),(i.length>0||l.length>0||d.length>0)&&e.emit("update",[{added:i,updated:l,removed:d},t])},B8=e=>Q9(e,(n,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"),Di=0,rA=3,ks=1,_8=2,il=[];il[Di]=(e,n,t,r,o)=>{An(e,Di);const i=R8(n,e,t.doc,t);r&&i===$h&&!t.synced&&(t.synced=!0)};il[rA]=(e,n,t,r,o)=>{An(e,ks),Mo(e,Na(t.awareness,Array.from(t.awareness.getStates().keys())))};il[ks]=(e,n,t,r,o)=>{P8(t.awareness,Eu(n),t)};il[_8]=(e,n,t,r,o)=>{D8(n,t.doc,(i,l)=>F8(t,l))};const zg=3e4,F8=(e,n)=>console.warn(`Permission denied to access ${e.url}.
|
|
2
|
-
${n}`),oA=(e,n,t)=>{const r=qC(n),o=Nr(),i=oi(r),l=e.messageHandlers[i];return l?l(o,r,e,t,i):console.error("Unable to compute message"),o},iA=e=>{if(e.shouldConnect&&e.ws===null){const n=new e._WS(e.url);n.binaryType="arraybuffer",e.ws=n,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,n.onmessage=t=>{e.wsLastMessageReceived=_i();const r=oA(e,new Uint8Array(t.data),!0);Jh(r)>1&&n.send(pr(r))},n.onerror=t=>{e.emit("connection-error",[t,e])},n.onclose=t=>{e.emit("connection-close",[t,e]),e.ws=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,e1(e.awareness,Array.from(e.awareness.getStates().keys()).filter(r=>r!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(iA,ZC(n8(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},n.onopen=()=>{e.wsLastMessageReceived=_i(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const t=Nr();if(An(t,Di),Jf(t,e.doc),n.send(pr(t)),e.awareness.getLocalState()!==null){const r=Nr();An(r,ks),Mo(r,Na(e.awareness,[e.doc.clientID])),n.send(pr(r))}},e.emit("status",[{status:"connecting"}])}},Cf=(e,n)=>{const t=e.ws;e.wsconnected&&t&&t.readyState===t.OPEN&&t.send(n),e.bcconnected&&Cs(e.bcChannel,n,e)};class sA extends nA{constructor(n,t,r,{connect:o=!0,awareness:i=new O8(r),params:l={},WebSocketPolyfill:c=WebSocket,resyncInterval:d=-1,maxBackoffTime:f=2500,disableBc:h=!1}={}){for(super();n[n.length-1]==="/";)n=n.slice(0,n.length-1);const g=B8(l);this.maxBackoffTime=f,this.bcChannel=n+"/"+t,this.url=n+"/"+t+(g.length===0?"":"?"+g),this.roomname=t,this.doc=r,this._WS=c,this.awareness=i,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=h,this.wsUnsuccessfulReconnects=0,this.messageHandlers=il.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=o,this._resyncInterval=0,d>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const C=Nr();An(C,Di),Jf(C,r),this.ws.send(pr(C))}},d)),this._bcSubscriber=(C,b)=>{if(b!==this){const y=oA(this,new Uint8Array(C),!1);Jh(y)>1&&Cs(this.bcChannel,pr(y),this)}},this._updateHandler=(C,b)=>{if(b!==this){const y=Nr();An(y,Di),N8(y,C),Cf(this,pr(y))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:C,updated:b,removed:y},x)=>{const w=C.concat(b).concat(y),k=Nr();An(k,ks),Mo(k,Na(i,w)),Cf(this,pr(k))},this._exitHandler=()=>{e1(this.awareness,[r.clientID],"app closed")},ai&&typeof process<"u"&&process.on("exit",this._exitHandler),i.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&zg<_i()-this.wsLastMessageReceived&&this.ws.close()},zg/10),o&&this.connect()}get synced(){return this._synced}set synced(n){this._synced!==n&&(this._synced=n,this.emit("synced",[n]),this.emit("sync",[n]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),ai&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(T8(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const n=Nr();An(n,Di),Jf(n,this.doc),Cs(this.bcChannel,pr(n),this);const t=Nr();An(t,Di),eA(t,this.doc),Cs(this.bcChannel,pr(t),this);const r=Nr();An(r,rA),Cs(this.bcChannel,pr(r),this);const o=Nr();An(o,ks),Mo(o,Na(this.awareness,[this.doc.clientID])),Cs(this.bcChannel,pr(o),this)}disconnectBc(){const n=Nr();An(n,ks),Mo(n,Na(this.awareness,[this.doc.clientID],new Map)),Cf(this,pr(n)),this.bcconnected&&(M8(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(iA(this),this.connectBc())}}const W8="0.7.93",z8={version:W8},K8=JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","placeholders":{"list":"List","todo":"To-do","quote":"Quote","toggle":"Toggle","collapsibleContent":"Empty. Click or drop blocks inside","layoutAddContent":"Add content"},"heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"text":{"title":"Text"},"advanced":{"title":"Advanced blocks"},"inline":{"title":"Inline"},"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Check List","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Toggle list","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","languageSearchPlaceholder":"Search for a language...","mobileActions":"Actions","languageDrawerTitle":"Language","languageDrawerDone":"Done","languageSearchNoResults":"Nothing found","drawer":{"collapse":"Collapse","expand":"Expand"},"collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics","tools":{"frameTool":"Frame tool","webEmbed":"Web Embed","generate":"Generate"}}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","loading":"Loading documents...","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"pageLink":{"name":"Link to page","subtitle":"Insert a link to another page","modalTitle":"Choose a page","selectPage":"Select a page","searchPlaceholder":"Search for a page...","empty":"No pages available","placeholder":"Link page","drawerTitle":"Add content"},"inlinePageLink":{"name":"Inline page link","subtitle":"Insert a page link inside text"},"emoji":{"name":"Emoji","subtitle":"Add emoji"},"equation":{"name":"Equation","subtitle":"Add a block equation","copy":"Copy equation","overlayTitle":"TeX equation","mobileTitle":"Add a TeX equation","mobileActions":"Actions","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","block":"block","expression":"expression","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Embed anything (PDFs, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Inline Equation","subtitle":"Add an inline equation","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","inline":"inline","expression":"expression","tex":"tex"}}},"equation":{"placeholder":{"block":"Add a TeX equation","inline":"New equation"}},"integrations":{"title":"Embeds"},"formatting":{"title":"Formatting","inlineCode":"Inline code"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Align Justified","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment","more":"More","equation":"Inline equation","colorPicker":{"recentlyUsed":"Recently used","textColors":"Text colors","textHighlights":"Text highlights","background":"Background","tooltipText":"{{name}} text","tooltipHighlight":"{{name}} highlight","names":{"default":"Default","violet":"Violet","indigo":"Indigo","blue":"Blue","teal":"Teal","green":"Green","yellow":"Yellow","orange":"Orange","red":"Red","brown":"Brown","gray":"Gray"}}},"link":{"linkName":"Link name","link":"Link","name":"Name","message":"Message","enterMessage":"Enter message","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","copied":"Link copied to clipboard","addLink":"Add link","editLink":"Edit link","type":{"web":"Web link","phone":"Phone number","email":"Email address","sms":"SMS message"}},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance","copyLink":"Copy link to block","copyLinks":"Copy links to all","linkCopied":"Link to block copied","linksCopied":"Links to blocks copied"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","violet":"Violet color","indigo":"Indigo color","blue":"Blue color","teal":"Teal color","green":"Green color","yellow":"Yellow color","orange":"Orange color","red":"Red highlights","brown":"Brown color","gray":"Gray color","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video","source":{"embedLink":"Embed link","uploadVideo":"Upload video","drawerTitle":"Source"},"link":{"placeholder":"Paste the video link...","save":"Save","invalid":"Enter a valid video link."},"upload":{"title":"Upload video","processed":"Video uploaded. {{percent}}% processed.","dragDrop":"Drag & drop a video or","chooseFile":"choose a file","toUpload":"to upload","maxSize":"Maximum file size: {{size}}. Supported formats: MP4, WebM, OGG.","otherFormats":"(Other formats will be converted automatically)","uploading":"Uploading File","remaining":"Remaining:","progress":"Uploading:"},"actions":{"pause":"Pause","resume":"Resume","cancel":"Cancel","retry":"Retry","selectAnotherFile":"Select another file"},"errors":{"uploadFailed":"Upload failed","sizeLimit":"Your file surpasses the size limit of {{size}}","format":"This video format isn't supported and can't be converted.","formatHint":"Please upload a video in MP4, WebM, or OGG format.","interrupted":"Upload interrupted. Check your connection.","offsetMismatch":"Upload synchronization error. The upload will be retried automatically.","stall":"Upload appears to be stalled. Please check your connection and try again.","unknown":"An error occurred during upload."},"transcoding":{"title":"Transcoding video","analysis":"Analysis","conversion":"Conversion"},"player":{"play":"Play","pause":"Pause","mute":"Mute","unmute":"Unmute","volume":"Volume","settings":"Settings","pictureInPicture":"Picture in picture","enterFullscreen":"Enter fullscreen","exitFullscreen":"Exit fullscreen","playbackError":"Playback error: code {{code}}. Try refreshing the page."},"settings":{"title":"Settings","subtitlesCc":"Subtitles/CC","speed":"Speed","quality":"Quality","normal":"Normal","auto":"Auto","off":"Off"},"settingsModal":{"title":"Video settings","cover":"Cover","uploadFile":"Upload file","cropCoverImage":"Crop cover image","subtitles":"Subtitles","enableAutoSubtitles":"Enable auto-generated subtitles","hideAutoSubtitles":"Hide automatically generated subtitles","uploadSubtitlesManually":"Upload subtitles manually","subtitlesFormatHint":"Upload subtitles in .SRT or .VTT format.","successfullyLoaded":"Successfully loaded","autoGenerated":"Auto-generated","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete track","uploadError":"Upload failed","chapters":"Transcript","chaptersCustom":"Custom transcript","chaptersDontShow":"Don't show transcript","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Chapter name","chaptersInvalidTimeRange":"Invalid chapter time range","addChapter":"Add a transcript","deleteChapter":"Delete transcript","saveChapters":"Save chapters","suggestChapters":"Suggest auto","refreshChapters":"Refresh","emptyChapters":"No chapters yet","chaptersError":"Failed to load chapters","transcript":"Transcript","enableAutoTranscript":"Enable auto-generated transcript","uploadTranscriptManually":"Upload transcript manually","addTranscriptManually":"Add a transcript manually","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete","mobile":{"actions":"Actions"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview","previewFullScreen":"Preview full screen","mobileActions":"Actions","tabsDrawerTitle":"Source"},"file":{"add_file":"Add File","mobileActions":"Actions","tabsDrawerTitle":"Source"},"audio":{"add_audio":"Add Audio","mobileActions":"Actions","player":{"waveformSeek":"Seek along the track","playbackSpeed":"Playback speed","volume":"Volume","openVolume":"Open volume control"}},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns","color":"Color","headerColumn":"Header column","headerRow":"Header row","insertAbove":"Insert above","insertBelow":"Insert below","insertLeft":"Insert left","insertRight":"Insert right","duplicate":"Duplicate","clearContent":"Clear content","delete":"Delete","increaseIndent":"Increase indent","decreaseIndent":"Decrease indent","addRowAndCol":"Add row and column"},"colorPicker":{"cellBackground":"Cell background"},"mobile":{"rowActions":"Row actions","columnActions":"Column actions"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addRightMaxReached":"Maximum of 4 columns — remove a column to add another","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Color","moveRight":"Move a column to the right","duplicate":"Duplicate","clearContent":"Clear content","deleteColumn":"Delete a column","mobile":{"columnActions":"Actions"}},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Type or paste URL","insert":"Embed","addEmbed":"Add a embed anything (PDFs, Google Docs, Google maps...)","addPrefix":"Add a","save":"Save","hidePreview":"Hide preview","showPreview":"Show preview","viewOriginal":"View original","copyLink":"Copy link","delete":"Delete","openPreview":"Open preview","alignment":"Alignment","moreAction":"More action","linkCopied":"Link copied to clipboard","linkCopyFailed":"Failed to copy link"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"composer":{"discardCommentTitle":"Close without saving?","discardCommentDescription":"Your entered content will be lost.","discardConfirm":"Close","cancel":"Continue","replaceComment":{"title":"Comment already exists","description":"You have selected text that already contains a comment.\\nThe previous comment will be removed.","confirm":"Replace","cancel":"Cancel"},"uploadErrors":{"fileTooLarge":"The file is too large — the maximum size is 5 MB.","tooManyFiles":"You cannot upload more than 10 files."},"placeholder":"Add comment"},"ai":{"placeholder":"Custom prompt","copied":"Copied","copy":"Copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel","smartPaste":{"aiButton":"Improve writing","rulesButton":"Split via Rules (Safe)","plainButton":"Paste","dontShowAgain":"Don't show again","processing":"Processing...","fallback":"Processing failed, pasting as-is","textTooLong":"The text is too long for AI to process (max {{max}}). Please remove {{excess}} characters to continue.","accept":"Accept","discard":"Discard","freeLimitReached":"Free Smart Paste limit reached. Upgrade your plan for unlimited use.","feedbackTitle":"How satisfied are you with AI text editing?"}}`),U8={editor:K8},H8=JSON.parse(`{"placeholder":"Escribe algo o pulsa '/' para comandos...","placeholders":{"list":"Lista","todo":"Tarea","quote":"Cita","toggle":"Desplegable","collapsibleContent":"Vacío. Haz clic o suelta bloques aquí","layoutAddContent":"Añadir contenido"},"heading":{"h1":"Encabezado 1","h2":"Encabezado 2","h3":"Encabezado 3","name":"Encabezado"},"close":"Cerrar","upload":"Subir","unsavedChanges":{"title":"Cambios no guardados","message":"¿Está seguro de que desea cerrar la página? Todos los datos no guardados se perderán.","cancel":"Cancelar","closeWithoutSaving":"Cerrar sin guardar"},"menu":{"text":{"title":"Texto"},"advanced":{"title":"Bloques avanzados"},"inline":{"title":"En línea"},"heading":{"title":"Encabezados","hintShowCase":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","h1":{"subtitle":"Encabezado grande","hintDescription":"H1 se utiliza para crear el encabezado principal de una página o sección, estableciendo el tema general. También se utiliza para generar automáticamente el índice de contenidos del documento.","keywords":{"header1":"encabezado1","headerOne":"encabezadouno","h1":"h1"}},"h2":{"subtitle":"Encabezado mediano","hintDescription":"H2 se utiliza para crear un encabezado secundario de una página o sección, estableciendo un tema general. También se utiliza para generar automáticamente el índice de contenidos.","keywords":{"header2":"encabezado2","headerTwo":"encabezadodos","h2":"h2"}},"h3":{"subtitle":"Encabezado pequeño","hintDescription":"H3 se utiliza para crear un subencabezado de una página o sección. También genera automáticamente el índice de contenidos.","keywords":{"header3":"encabezado3","headerThree":"encabezadotres","h3":"h3"}}},"lists":{"title":"Listas","numberList":{"name":"Lista numerada","subtitle":"Una lista numerada simple","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Esta herramienta crea una lista con elementos que se numeran automáticamente al agregar nuevas filas."}},"bulletList":{"name":"Lista con viñetas","subtitle":"Lista con marcadores automáticos","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Crea una lista cuyos elementos están marcados automáticamente con viñetas."}},"checkList":{"name":"Lista de tareas","subtitle":"Gestión de tareas fácil","hint":{"indeterminate":"Indeterminado","unchecked":"No marcado","checked":"Marcado","description":"Crea una lista de tareas con opción de marcar como completadas."}}},"main":{"title":"Elementos básicos","paragraph":{"name":"Párrafo","subtitle":"Comienza a escribir texto normal","hint":{"text":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Un bloque de texto alineado a la izquierda."}},"quote":{"name":"Cita","subtitle":"Escribe una cita","hint":{"text":"/quote Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Inserta citas o destaca bloques de texto importantes."}},"collapse":{"name":"Lista expandible","subtitle":"Oculta contenido del bloque","hint":{"firstItemEmpty":"Primer elemento vacío","secondItem":"Segundo elemento","firstSubItemEmpty":"Primer subelemento vacío","secondSubItem":"Segundo subelemento","firstSubSubItemEmpty":"Primer sub-subelemento vacío","secondSubSubItem":"Segundo sub-subelemento","description":"Crea bloques cuyo contenido se puede ocultar o mostrar al hacer clic."}},"horizontal-rule":{"name":"Divisor","subtitle":"Visualiza divisores de bloques","hint":{"topText":"Presionó la barra diagonal. Luego ingresó algo...","bottomText":"Al día siguiente, todo quedó más claro. Lo que ayer era desconocido, hoy es familiar. Por ejemplo...","description":"Separa visualmente secciones o bloques de texto."}},"table":{"name":"Tabla","subtitle":"Agrega una tabla simple a la página","hint":{"firstRow":"Primera celda con texto","secondRow":"Otra celda con texto","description":"Crea tablas con múltiples filas y columnas para organizar datos."}},"grid":{"name":"Cuadrícula","subtitle":"Hasta 4 columnas de bloques","hint":{"firstColumn":"Al día siguiente todo fue más claro...","secondColumn":"Tus ideas, documentos y planes. Unidos...","description":"Divide el documento en múltiples columnas que pueden contener bloques."}},"code":{"name":"Código","subtitle":"Escribe un fragmento de código","copy":"Copiar código","exitCommandText":"Shift + Enter para salir del bloque","languageSearchPlaceholder":"Buscar un idioma...","mobileActions":"Acciones","languageDrawerTitle":"Idioma","languageDrawerDone":"Listo","languageSearchNoResults":"Sin resultados","drawer":{"collapse":"Colapsar","expand":"Expandir"},"collapsible":{"hidden":"Colapsar código","expand":"Expandir código"},"hint":{"description":"Inserta fragmentos de código con resaltado de sintaxis."}},"callout":{"name":"Llamado","subtitle":"Destaca un bloque de texto","hint":{"description":"-."}}},"callout":{"title":"Llamado","default":{"name":"Por defecto","hint":{"description":"Bloque de texto alineado a la izquierda.","body":"/callout Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}..."},"keywords":{"callout":"llamado","type":"default"},"subtitle":"Llamado por defecto"},"success":{"name":"Éxito","subtitle":"Notificación de éxito","keywords":{"callout":"llamado","type":"success"}},"warning":{"name":"Advertencia","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"warning"},"subtitle":"Notificación importante"},"alert":{"name":"Alerta","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"alert"},"subtitle":"Notificación crítica"}},"media":{"title":"Multimedia","photo":{"name":"Imagen","hint":{"description":"Agrega una imagen a la página."},"subtitle":"Sube o enlaza una imagen"},"form":{"name":"Formulario","subtitle":"Agrega un formulario"},"video":{"name":"Video","hint":{"description":"Incrusta un video en la página."},"subtitle":"Agrega un video"},"file":{"name":"Archivo","hint":{"description":"Sube archivos de hasta 500 MB para que puedan ser descargados por quienes tengan el enlace."},"subtitle":"Agrega un archivo"},"audio":{"name":"Audio","hint":{"description":"Sube archivos de audio de hasta 5 MB para compartir y escuchar."},"subtitle":"Agrega un audio"},"excalidraw":{"name":"Dibujo","hint":{"description":"Dibuja cualquier esquema o paisaje. Creatividad sin límites."},"keywords":{"video":"dibujo"},"subtitle":"Trabaja con gráficos vectoriales","tools":{"frameTool":"Herramienta de marco","webEmbed":"Incrustación web","generate":"Generar"}}},"other":{"title":"Otros","documents":{"empty":"No tienes documentos anidados","loading":"Cargando documentos...","name":"Documentos Anidados","subtitle":"Muestra una lista de documentos anidados"},"pageLink":{"name":"Enlace a página","subtitle":"Insertar enlace a otra página","modalTitle":"Elige una página","selectPage":"Selecciona una página","searchPlaceholder":"Buscar página...","empty":"No hay páginas disponibles","placeholder":"Enlazar página","drawerTitle":"Agregar contenido"},"inlinePageLink":{"name":"Enlace de página en línea","subtitle":"Insertar un enlace a página dentro del texto"},"emoji":{"name":"Emoji","subtitle":"Agrega emoji"},"equation":{"name":"Ecuacion","subtitle":"Agrega una ecuacion en bloque","copy":"Copiar ecuación","overlayTitle":"Ecuación TeX","mobileTitle":"Agregar ecuación TeX","mobileActions":"Acciones","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","block":"bloque","expression":"expresion","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Incrustar cualquier cosa (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Ecuacion en linea","subtitle":"Agrega una ecuacion en linea","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","inline":"linea","expression":"expresion","tex":"tex"}}},"equation":{"placeholder":{"block":"Agrega una ecuación TeX","inline":"Nueva ecuación"}},"integrations":{"title":"Incrustaciones"},"formatting":{"title":"Formato","inlineCode":"Código en línea"}},"toolbar":{"turnInto":"Convertir en","bold":"Negrita","italic":"Cursiva","underline":"Subrayado","strike":"Tachado","superscript":"Superíndice","subscript":"Subíndice","align":"Alineación","left":"Alinear a la izquierda","center":"Alinear al centro","right":"Alinear a la derecha","justify":"Alinear justificado","indent":"Aumentar sangría","outdent":"Disminuir sangría","color":"Color","code":"Código","link":"Agregar enlace","clear":"Quitar formato","comment":"Comentario","more":"Más","equation":"Ecuación en línea","colorPicker":{"recentlyUsed":"Usados recientemente","textColors":"Colores de texto","textHighlights":"Resaltados de texto","background":"Fondo","tooltipText":"{{name}} — texto","tooltipHighlight":"{{name}} — resaltado","names":{"default":"Predeterminado","violet":"Violeta","indigo":"Índigo","blue":"Azul","teal":"Verde azulado","green":"Verde","yellow":"Amarillo","orange":"Naranja","red":"Rojo","brown":"Marrón","gray":"Gris"}}},"link":{"linkName":"Nombre del enlace","link":"Enlace","name":"Nombre","message":"Mensaje","enterMessage":"Escribe un mensaje","save":"Guardar","remove":"Eliminar","edit":"Editar","copy":"Copiar","copied":"Enlace copiado al portapapeles","addLink":"Añadir enlace","editLink":"Editar enlace","type":{"web":"Enlace web","phone":"Número de teléfono","email":"Dirección de correo electrónico","sms":"Mensaje SMS"}},"contextMenu":{"copy":"Copiar","cut":"Cortar","paste":"Pegar","delete":"Eliminar","add":"Agregar","selectAll":"Seleccionar todo","duplicate":"Duplicar","appearance":"Apariencia","copyLink":"Copiar enlace al bloque","copyLinks":"Copiar enlaces a todos","linkCopied":"Enlace al bloque copiado","linksCopied":"Enlaces a bloques copiados"},"colors":{"lastTimeUsed":"Último uso","color":"Color","background":"Fondo","theme":"Tema","violet":"Color violeta","indigo":"Color índigo","blue":"Color azul","teal":"Color turquesa","green":"Color verde","yellow":"Color amarillo","orange":"Color naranja","red":"Resaltado rojo","brown":"Color marrón","gray":"Color gris","colors":{"standard":"Estándar","gray":"Gris","brown":"Marrón","orange":"Naranja","yellow":"Amarillo","green":"Verde","blue":"Azul","purple":"Púrpura","pink":"Rosa","red":"Rojo"},"callout":{"success":"Éxito","alert":"Alerta","warning":"Advertencia"}},"video":{"insert":"Insertar","apply":"Aplicar","worksWith":"Funciona con","add_video":"Agregar video","source":{"embedLink":"Insertar enlace","uploadVideo":"Subir video","drawerTitle":"Origen"},"link":{"placeholder":"Pega el enlace del video...","save":"Guardar","invalid":"Introduce un enlace de video válido."},"upload":{"title":"Subir video","processed":"Video subido. {{percent}}% procesado.","dragDrop":"Arrastra un video o","chooseFile":"elige un archivo","toUpload":"para subir","maxSize":"Tamaño máximo: {{size}}. Formatos: MP4, WebM, OGG.","otherFormats":"(Otros formatos se convertirán automáticamente)","uploading":"Subiendo archivo","remaining":"Restante:","progress":"Subiendo:"},"actions":{"pause":"Pausar","resume":"Reanudar","cancel":"Cancelar","retry":"Reintentar","selectAnotherFile":"Seleccionar otro archivo"},"errors":{"uploadFailed":"Error al subir","sizeLimit":"El archivo supera el límite de {{size}}","format":"Este formato de video no es compatible y no se puede convertir.","formatHint":"Sube un video en formato MP4, WebM u OGG.","interrupted":"Subida interrumpida. Comprueba tu conexión.","offsetMismatch":"Error de sincronización. Se reintentará automáticamente.","stall":"La subida se ha detenido. Comprueba tu conexión e inténtalo de nuevo.","unknown":"Ocurrió un error durante la subida."},"transcoding":{"title":"Transcodificando video","analysis":"Análisis","conversion":"Conversión"},"player":{"play":"Reproducir","pause":"Pausar","mute":"Silenciar","unmute":"Activar sonido","volume":"Volumen","settings":"Ajustes","pictureInPicture":"Picture in picture","enterFullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","playbackError":"Error de reproducción: código {{code}}. Intenta actualizar la página."},"settings":{"title":"Ajustes","subtitlesCc":"Subtítulos/CC","speed":"Velocidad","quality":"Calidad","normal":"Normal","auto":"Auto","off":"Apagado"},"settingsModal":{"title":"Configuración del video","cover":"Portada","uploadFile":"Subir archivo","cropCoverImage":"Recortar portada","subtitles":"Subtítulos","enableAutoSubtitles":"Activar subtítulos generados automáticamente","hideAutoSubtitles":"Ocultar subtítulos generados automáticamente","uploadSubtitlesManually":"Subir subtítulos manualmente","subtitlesFormatHint":"Sube subtítulos en formato .SRT o .VTT.","successfullyLoaded":"Cargado correctamente","autoGenerated":"Automático","addSubtitleTrack":"Añadir pista de subtítulos","selectLanguage":"Seleccionar idioma","defaultLabel":"Predeterminado","setDefaultSubtitle":"Establecer como predeterminado","downloadVtt":"Descargar VTT","deleteSubtitle":"Eliminar pista","uploadError":"Error al subir","chapters":"Transcripción","chaptersCustom":"Transcripción personalizada","chaptersDontShow":"No mostrar transcripción","chaptersPlaceholder":"00:00 Introducción\\n01:23 Demo\\n05:10 Resumen","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Nombre del capítulo","chaptersInvalidTimeRange":"Rango de tiempo de capítulo inválido","addChapter":"Añadir transcripción","deleteChapter":"Eliminar transcripción","saveChapters":"Guardar capítulos","suggestChapters":"Sugerir auto","refreshChapters":"Actualizar","emptyChapters":"Aún no hay capítulos","chaptersError":"Error al cargar capítulos","transcript":"Transcripción","enableAutoTranscript":"Activar transcripción generada automáticamente","uploadTranscriptManually":"Subir transcripción manualmente","addTranscriptManually":"Añadir una transcripción manualmente","setCover":"Establecer como portada","emptyCovers":"Aún no hay vistas previas de portada","loadError":"Error al cargar vistas previas de portada","retry":"Reintentar","cancel":"Cancelar","save":"Guardar"},"delete":"Eliminar","mobile":{"actions":"Acciones"}},"swagger":{"insert":"Swagger","worksWith":"Funciona con","add":"Agregar Swagger"},"image":{"add_photo":"Agregar imagen","preview":"Vista previa","previewFullScreen":"Vista previa pantalla completa","mobileActions":"Acciones","tabsDrawerTitle":"Origen"},"file":{"add_file":"Agregar archivo","mobileActions":"Acciones","tabsDrawerTitle":"Origen"},"audio":{"add_audio":"Agregar audio","mobileActions":"Acciones","player":{"waveformSeek":"Buscar en la pista","playbackSpeed":"Velocidad de reproducción","volume":"Volumen","openVolume":"Abrir control de volumen"}},"mention":{"mark":"Mencionar a alguien"},"validation":{"link":"Enlace inválido","shouldNotExceed":"El tamaño del archivo no debe exceder {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Por favor, no subas más de un archivo.","swaggerUnavailable":"La documentación de Swagger no está disponible. Asegúrese de que la URL sea correcta y que el servidor esté respondiendo."},"table":{"background_one":"Color de fondo de celda","background_other":"Color de fondo de las celdas","settings":"Configuraciones","menu":{"addColAfter":"Agregar columna a la derecha","addColBefore":"Agregar columna a la izquierda","addRowAbove":"Agregar fila arriba","addRowBelow":"Agregar fila abajo","deleteCol":"Eliminar columna","deleteRow":"Eliminar fila","mergeCells":"Combinar celdas","disconnectCells":"Desconectar celdas","splitCell":"Dividir celda","deleteTable":"Eliminar tabla","insertRow_one":"Insertar fila","insertRow_other":"Insertar {{count}} filas","deleteRow_one":"Eliminar fila","deleteRow_other":"Eliminar {{count}} filas","insertCol_one":"Insertar columna","insertCol_other":"Insertar {{count}} columnas","deleteCol_one":"Eliminar columna","deleteCol_other":"Eliminar {{count}} columnas","headTable_col":"Columna de fila {{value}}","headTable_row":"Encabezado de fila {{value}}","below":"Debajo","above":"Arriba","left":"Izquierda","right":"Derecha","row":"Fila","rows":"Filas","column":"Columna","columns":"Columnas","color":"Color","headerColumn":"Columna de encabezado","headerRow":"Fila de encabezado","insertAbove":"Insertar arriba","insertBelow":"Insertar abajo","insertLeft":"Insertar a la izquierda","insertRight":"Insertar a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","delete":"Eliminar","increaseIndent":"Aumentar sangría","decreaseIndent":"Disminuir sangría","addRowAndCol":"Agregar fila y columna"},"colorPicker":{"cellBackground":"Fondo de celda"},"mobile":{"rowActions":"Acciones de fila","columnActions":"Acciones de columna"}},"column":{"name":"Insertar cuadrícula","insert":"Insertar","columns":"Columnas","addRight":"Agregar columna a la derecha","addRightMaxReached":"Máximo 4 columnas — elimina una para añadir otra","addLeft":"Agregar columna a la izquierda","moveLeft":"Mover columna a la izquierda","changeColor":"Color","moveRight":"Mover columna a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","deleteColumn":"Eliminar columna","mobile":{"columnActions":"Acciones"}},"hoverOptions":{"addNewBlockBelow":"Agregar bloque debajo","addNewBlockAbove":"Agregar bloque arriba","drag":"Arrastrar","click":"Clic","clickAction":"Para abrir el menú","dragAction":"Para mover"},"embed":{"placeholder":"Escribe o pega una URL","insert":"Insertar","addEmbed":"Incrustar cualquier cosa (PDFs, Google Docs, Google Maps...)","addPrefix":"Agregar","save":"Guardar","hidePreview":"Ocultar vista previa","showPreview":"Mostrar vista previa","viewOriginal":"Ver original","copyLink":"Copiar enlace","delete":"Eliminar","openPreview":"Abrir vista previa","alignment":"Alineación","moreAction":"Más acciones","linkCopied":"Enlace copiado al portapapeles","linkCopyFailed":"Error al copiar el enlace"},"content":"Contenido","emoji":{"emojis":"Emoji","icons":"Íconos","search":"Buscar","searchResults":"Resultado de búsqueda","searchNoResults":"Emoji no encontrado","remove":"Eliminar","emojiCategory":{"frequent":"Usados frecuentemente","people":"Emociones y personas","nature":"Animales y naturaleza","foods":"Comida y bebidas","activity":"Actividades","places":"Viajes y lugares","objects":"Objetos","symbols":"Símbolos","flags":"Banderas"}},"form":{"url":"Introduce una URL válida."},"noTitle":"Sin título","gallery":{"download":"Descargar","close":"Cerrar","errorFile":"No se pudo descargar el archivo"},"emptyPageOptions":{"heading":"Un encabezado que generará automáticamente un índice interactivo","grid":"La cuadrícula ayuda a estructurar horizontalmente la página","list":"Lista numerada para estructurar fácilmente reuniones","template":"Crear desde plantilla","code":"Bloque de código con resaltado de sintaxis","callout":"Llamado para resaltar información","table":"Tabla para encontrar dependencias en los datos","integrations":"Muchas integraciones de servicios externos"},"composer":{"discardCommentTitle":"¿Cerrar sin guardar?","discardCommentDescription":"Tu contenido ingresado se perderá.","discardConfirm":"Cerrar","cancel":"Continuar","replaceComment":{"title":"El comentario ya existe","description":"Has seleccionado un texto que ya contiene un comentario.\\nEl comentario anterior será eliminado.","confirm":"Reemplazar","cancel":"Cancelar"},"uploadErrors":{"fileTooLarge":"El archivo es demasiado grande — el tamaño máximo es de 5 MB.","tooManyFiles":"No puedes subir más de 10 archivos."},"placeholder":"Agregar comentario"},"ai":{"placeholder":"Prompt personalizado","copied":"Copiado","copy":"Copiar","back":"Atrás","menu":{"style":{"professional":"Profesional","straightforward":"Directo","passiveAggressive":"Pasivo-agresivo","friendly":"Amistoso","poetic":"Poético","passive_aggressive":"Pasivo agresivo","pirate":"Pirata"},"main":{"modifySelection":"Modificar selección","improveWriting":"Mejorar redacción","fixMistakes":"Corregir errores","simplify":"Simplificar","addMoreDetail":"Agregar más detalle","generate":"Generar","summarise":"Resumir","translate":"Traducir a...","changeStyle":"Cambiar estilo a...","explain":"Explicar"},"answer":{"replaceSelection":"Reemplazar selección","addTextInline":"Agregar texto en línea","addBelowParagraph":"Agregar debajo del párrafo","modifyFurther":"Modificar más","continueWriting":"Seguir escribiendo","regenerate":"Regenerar","otherOptions":"Otras opciones","discard":"Descartar"},"languages":{"arabic":"Árabe","bengali":"Bengalí","chinese":"Chino","dutch":"Holandés","english":"Inglés","french":"Francés","german":"Alemán","hindi":"Hindi","japanese":"Japonés","korean":"Coreano","nepali":"Nepalí","portuguese":"Portugués","spanish":"Español"}}},"actions":{"delete":"Eliminar","align":"Alineación"},"cancel":"Cancelar","smartPaste":{"aiButton":"Mejorar texto","rulesButton":"Dividir con Rules (Safe)","plainButton":"Pegar","dontShowAgain":"No volver a mostrar","processing":"Procesando...","fallback":"Error al procesar, pegando tal cual","textTooLong":"El texto es demasiado largo para procesarlo con IA (máx. {{max}}). Elimine {{excess}} caracteres para continuar.","accept":"Aceptar","discard":"Descartar","freeLimitReached":"Límite gratuito de Smart Paste alcanzado. Mejora tu plan para uso ilimitado.","feedbackTitle":"¿Qué tan satisfecho estás con la edición de texto con IA?"}}`),Y8={editor:H8},Z8=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","placeholders":{"list":"Список","todo":"Задача","quote":"Цитата","toggle":"Переключатель","collapsibleContent":"Пусто. Нажмите или перетащите блоки сюда","layoutAddContent":"Добавьте контент"},"upload":"Загрузить","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","unsavedChanges":{"title":"Несохранённые изменения","message":"Вы действительно хотите закрыть страницу? Все несохранённые данные будут потеряны.","cancel":"Отмена","closeWithoutSaving":"Закрыть без сохранения"},"menu":{"text":{"title":"Текст"},"advanced":{"title":"Расширенные блоки"},"inline":{"title":"Инлайн"},"heading":{"title":"Заголовоки","hintShowCase":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","h1":{"subtitle":"Большой заголовок","hintDescription":"H1 используется для создания основного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header1":"заголовок1","headerOne":"заголовокодин","h1":"з1"}},"h2":{"subtitle":"средний заголовок","hintDescription":"H2 используется для создания дополнительного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header2":"заголовок2","headerTwo":"заголовокдва","h2":"з2"}},"h3":{"subtitle":"Маленький заголовок","hintDescription":"H3 используется для создания подзаголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header3":"заголовок3","headerThree":"заголовоктри","h3":"з3"}}},"lists":{"title":"Списки","numberList":{"name":"Нумерованный Список","subtitle":"Простой нумерованный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые автоматически нумеруются при добавлении новых строк."},"keywords":{"headingList":"нумерованныйсписок","heading":"нумерация","markers":"цифры"}},"bulletList":{"name":"Маркированный список","subtitle":"Автоматически маркированный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые маркируются автоматически при добавлении новых строк."},"keywords":{"headingList":"маркированныйсписок","heading":"маркеры","markers":"точки","bulletsAlt1":"буллеты","bulletsAlt2":"булеты"}},"checkList":{"name":"Чек-лист","subtitle":"Простое управление задачами","hint":{"indeterminate":"Неопределен","unchecked":"Неотмечен","checked":"Отмечен","description":"Создает список задач с возможностью отметки выполненных пунктов и подпунктов"},"keywords":{"headingList":"списокзадач","heading":"чеклист","markers":"флажки","shoppingList":"списокпокупок"}}},"main":{"title":"Базовые","paragraph":{"name":"Парараграф","subtitle":"Просто начнийте писать обычным текстом","hint":{"text":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок"},"keywords":{"paragraph":"параграф","text":"текст"}},"quote":{"name":"Цитата","subtitle":"Запишите цитату","hint":{"text":"/quote Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Оставайтесь сосредоточенными, действуйте слаженно и добивайтесь большего с Layers.","description":"Используется для вставки цитат или выделения важных блоков текста. Визуально выносится отдельно от основного текста"},"keywords":{"quote":"цитата","mark":"кавычки","citation":"цитирование"}},"collapse":{"name":"Список с переключателем","subtitle":"Прячет содержимое блока","hint":{"firstItemEmpty":"Первый пункт пустой","secondItem":"Второй пункт","firstSubItemEmpty":"Первый подпункт пустой","secondSubItem":"Второй подпункт","firstSubSubItemEmpty":"Первый подподпункт пустой ","secondSubSubItem":"Второй подподпункт","description":"Используется для создания блоков с содержимым, которое можно скрыть или показать при нажатии. Внутри такого списка может быть почти любой другой блок"},"keywords":{"collapsibleList":"сворачиваемыйсписок","expandList":"раскрыть","hideList":"скрыть","turnList":"свернуть"}},"horizontal-rule":{"name":"Разделитель","subtitle":"Визуализирует разделитель блоков","hint":{"topText":"нажал на слэш. Потом что-то ввёл...","bottomText":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","description":"Используется для визуального разделения разделов или блоков текста на странице"},"keywords":{"divider":"разделитель","horizontalLine":"линия","border":"граница"}},"table":{"name":"Таблица","subtitle":"Добавьте на свою страницу простую таблицу","hint":{"firstRow":"Первая ячейка заполненная текстом","secondRow":"И ещё одна с текстом ячейка","description":"Инструмент для создания таблиц с несколькими строками и столбцами для организации данных"},"keywords":{"table":"таблица"}},"grid":{"name":"Сетка","subtitle":"До 4-х колонок из блоков","hint":{"firstColumn":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","secondColumn":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Инструмент для разделения докуента на несколько столбцов, в которые можно помещать любые блоки"},"keywords":{"net":"сетка","grid":"грид","columns":"столбцы"}},"code":{"name":"Код","subtitle":"Запишите фрагмент кода","copy":"Копировать код","exitCommandText":"Shift + Enter чтобы выйти из блока кода","languageSearchPlaceholder":"Найти язык...","mobileActions":"Действия","languageDrawerTitle":"Язык","languageDrawerDone":"Готово","languageSearchNoResults":"Ничего не найдено","drawer":{"collapse":"Свернуть","expand":"Развернуть"},"collapsible":{"hidden":"Свернуть код","expand":"Развернуть код"},"hint":{"description":"Инструмент для вставки фрагментов программного кода с подсветкой синтаксиса"},"keywords":{"code":"код","snippet":"сниппет"}}},"media":{"title":"Медиа","photo":{"name":"Картинка","hint":{"description":"Инструмент для добавления изображения на страницу"},"keywords":{"picture":"картинка","display":"изображение","meme":"мем","drawing":"иллюстрация","memePic":"пикча"},"subtitle":"Загрузите и разместите с помощью ссылки"},"form":{"name":"Форма","subtitle":"Добавьте форму"},"video":{"name":"Видео","hint":{"description":"Инструмент для вставки видео на страницу"},"keywords":{"video":"видео"},"subtitle":"Добавьте видео"},"file":{"name":"Файл","hint":{"description":"Загружайте любые файлы объёмом до 500 Мб и они будут доступны для скачивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"файл"},"subtitle":"Добавьте файл"},"audio":{"name":"Аудио","hint":{"description":"Загружайте любые аудиофайлы объёмом до 5 Мб и они будут доступны для скачивания и прослушивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"аудио"},"subtitle":"Добавьте аудио"},"excalidraw":{"name":"Доска для рисования","hint":{"description":"Нарисуй любую схему или концепт. Полная свобода творчества — всё в твоих руках."},"keywords":{"draw":"рисовать","drawing":"рисовалка"},"subtitle":"Работайте с векторной графикой","tools":{"frameTool":"Инструмент рамки","webEmbed":"Веб-встраивание","generate":"Генерировать"}}},"callout":{"title":"Тип","default":{"name":"По умолчанию","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок.","body":"/callout Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа"},"keywords":{"callout":"оповещение","type":"поумолчанию"},"subtitle":"Уведомление по умолчанию"},"success":{"name":"Успех","subtitle":"Успешное уведомления","keywords":{"callout":"оповещение","type":"успех"}},"warning":{"name":"Предупреждение","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"предупреждение"},"subtitle":"Важное уведомления"},"alert":{"name":"Внимание","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"внимание"},"subtitle":"Критическое уведомление"}},"other":{"title":"Прочее","documents":{"empty":"У вас нет вложенных документов","loading":"Загрузка документов...","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"pageLink":{"name":"Ссылка на страницу","subtitle":"Вставить ссылку на другую страницу","modalTitle":"Выберите страницу","selectPage":"Выберите страницу","searchPlaceholder":"Поиск страницы...","empty":"Нет доступных страниц","placeholder":"Ссылка на страницу","drawerTitle":"Добавить контент"},"inlinePageLink":{"name":"Ссылка на страницу в тексте","subtitle":"Вставить ссылку на страницу прямо в текст"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"},"equation":{"name":"Формула","subtitle":"Добавьте блочную формулу","copy":"Копировать формулу","overlayTitle":"Формула TeX","mobileTitle":"Добавить формулу TeX","mobileActions":"Действия","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","block":"блок","expression":"выражение","tex":"тех"}},"embed":{"name":"Embed","subtitle":"Встроить что угодно (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Формула в тексте","subtitle":"Добавьте формулу внутри строки текста","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","inline":"встроенная","expression":"выражение","tex":"тех"}}},"equation":{"placeholder":{"block":"Добавьте формулу TeX","inline":"Новая формула"}},"integrations":{"title":"Встраивания"},"formatting":{"title":"Форматирование","inlineCode":"Код в строке"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"По ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат","comment":"Комментарий","more":"Ещё","equation":"Формула в строке","colorPicker":{"recentlyUsed":"Недавние","textColors":"Цвета текста","textHighlights":"Подсветка текста","background":"Подложка","tooltipText":"{{name}} — текст","tooltipHighlight":"{{name}} — подсветка","names":{"default":"По умолчанию","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый"}}},"link":{"linkName":"Название ссылки","link":"Ссылка","name":"Название","message":"Сообщение","enterMessage":"Введите сообщение","save":"Сохранить","remove":"Удалить","edit":"Редактировать","copy":"Копировать","copied":"Ссылка скопирована в буфер обмена","addLink":"Добавить ссылку","editLink":"Редактировать ссылку","type":{"web":"Веб-ссылка","phone":"Номер телефона","email":"Адрес почты","sms":"SMS сообщение"}},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид","copyLink":"Скопировать ссылку на блок","copyLinks":"Скопировать ссылки на все","linkCopied":"Ссылка на блок скопирована","linksCopied":"Ссылки на блоки скопированы"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","apply":"Применить","worksWith":"Работает с","add_video":"Добавить видео","source":{"embedLink":"Вставить ссылку","uploadVideo":"Загрузить видео","drawerTitle":"Источник"},"link":{"placeholder":"Вставьте ссылку на видео...","save":"Сохранить","invalid":"Введите корректную ссылку на видео."},"upload":{"title":"Загрузить видео","processed":"Видео загружено. Обработано {{percent}}%.","dragDrop":"Перетащите видео или","chooseFile":"выберите файл","toUpload":"для загрузки","maxSize":"Максимальный размер файла: {{size}}. Форматы: MP4, WebM, OGG.","otherFormats":"(Другие форматы будут конвертированы автоматически)","uploading":"Загрузка файла","remaining":"Осталось:","progress":"Загружено:"},"actions":{"pause":"Пауза","resume":"Продолжить","cancel":"Отмена","retry":"Повторить","selectAnotherFile":"Выбрать другой файл"},"errors":{"uploadFailed":"Ошибка загрузки","sizeLimit":"Размер файла превышает лимит {{size}}","format":"Этот формат видео не поддерживается и не может быть конвертирован.","formatHint":"Загрузите видео в формате MP4, WebM или OGG.","interrupted":"Загрузка прервана. Проверьте соединение.","offsetMismatch":"Ошибка синхронизации загрузки. Будет выполнена повторная попытка.","stall":"Загрузка остановилась. Проверьте соединение и попробуйте снова.","unknown":"Произошла ошибка при загрузке."},"transcoding":{"title":"Конвертация видео","analysis":"Анализ","conversion":"Конвертация"},"player":{"play":"Воспроизвести","pause":"Пауза","mute":"Выключить звук","unmute":"Включить звук","volume":"Громкость","settings":"Настройки","pictureInPicture":"Картинка в картинке","enterFullscreen":"Полный экран","exitFullscreen":"Выйти из полноэкранного режима","playbackError":"Ошибка воспроизведения: код {{code}}. Попробуйте обновить страницу."},"settings":{"title":"Настройки","subtitlesCc":"Субтитры/CC","speed":"Скорость","quality":"Качество","normal":"Нормальная","auto":"Авто","off":"Выкл"},"settingsModal":{"title":"Настройки видео","cover":"Обложка","uploadFile":"Загрузить файл","cropCoverImage":"Обрезать обложку","subtitles":"Субтитры","enableAutoSubtitles":"Включить автогенерацию субтитров","hideAutoSubtitles":"Скрыть автоматически сгенерированные субтитры","uploadSubtitlesManually":"Загрузить субтитры вручную","subtitlesFormatHint":"Загрузите субтитры в формате .SRT или .VTT.","successfullyLoaded":"Успешно загружено","autoGenerated":"Автоматические","addSubtitleTrack":"Добавить дорожку субтитров","selectLanguage":"Выбрать язык","defaultLabel":"По умолчанию","setDefaultSubtitle":"Сделать по умолчанию","downloadVtt":"Скачать VTT","deleteSubtitle":"Удалить трек","uploadError":"Не удалось загрузить","chapters":"Транскрипт","chaptersCustom":"Свой транскрипт","chaptersDontShow":"Не показывать транскрипт","chaptersPlaceholder":"00:00 Вступление\\n01:23 Демонстрация\\n05:10 Итоги","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Название главы","chaptersInvalidTimeRange":"Некорректный диапазон времени главы","addChapter":"Добавить транскрипт","deleteChapter":"Удалить транскрипт","saveChapters":"Сохранить главы","suggestChapters":"Автопредложение","refreshChapters":"Обновить","emptyChapters":"Главы пока не заданы","chaptersError":"Не удалось загрузить главы","transcript":"Транскрипт","enableAutoTranscript":"Включить автогенерацию транскрипта","uploadTranscriptManually":"Загрузить транскрипт вручную","addTranscriptManually":"Добавить транскрипт вручную","setCover":"Установить обложку","emptyCovers":"Превью для обложки пока нет","loadError":"Не удалось загрузить превью обложки","retry":"Повторить","cancel":"Отмена","save":"Сохранить"},"delete":"Удалить","mobile":{"actions":"Действия"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью","previewFullScreen":"Открыть на весь экран","mobileActions":"Действия","tabsDrawerTitle":"Источник"},"file":{"add_file":"Добавить файл","mobileActions":"Действия","tabsDrawerTitle":"Источник"},"audio":{"add_audio":"Добавить аудио","mobileActions":"Действия","player":{"waveformSeek":"Перейти к моменту трека","playbackSpeed":"Скорость воспроизведения","volume":"Громкость","openVolume":"Открыть настройку громкости"}},"mention":{"mark":"Отменить кого-то"},"validation":{"link":"Неверная ссылка","shouldNotExceed":"Размер файла не должен превышать {{maxSize}} МБ.","doNotUploadMoreThanSingleFile":"Пожалуйста, загружайте не более одного файла.","swaggerUnavailable":"Swagger-документация недоступна. Убедитесь, что адрес указан правильно и сервер отвечает."},"table":{"background_one":"Цвет фона ячейки","background_few":"Цвет фона ячеек","background_other":"Цвет фона ячеек","settings":"Настройки","menu":{"addColAfter":"Добавить столбец справа","addColBefore":"Добавить столбец слева","addRowAbove":"Добавить строку выше","addRowBelow":"Добавить строку ниже","deleteCol":"Удалить столбец","deleteRow":"Удалить строку","mergeCells":"Объединить ячейки","disconnectCells":"Разъединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","insertRow_one":"Вставить строку","insertRow_few":"Вставить {{count}} строки","insertRow_many":"Вставить {{count}} строк","deleteRow_one":"Удалить строку","deleteRow_few":"Удалить {{count}} строки","deleteRow_many":"Удалить {{count}} строк","insertCol_one":"Вставить столбец","insertCol_few":"Вставить {{count}} столбца","insertCol_many":"Вставить {{count}} столбец","deleteCol_one":"Удалить столбец","deleteCol_few":"Удалить {{count}} столбца","deleteCol_many":"Удалить {{count}} столбец","headTable_col":"{{value}} заголовок столбца","headTable_row":"{{value}} заголовок строки","below":"ниже","above":"выше","left":"слева","right":"справа","row":"cтроку","rows":"cтроки","column":"cтолбец","columns":"cтолбца","color":"Цвет","headerColumn":"Заголовок столбца","headerRow":"Заголовок строки","insertAbove":"Вставить выше","insertBelow":"Вставить ниже","insertLeft":"Вставить слева","insertRight":"Вставить справа","duplicate":"Дублировать","clearContent":"Очистить содержимое","delete":"Удалить","increaseIndent":"Увеличить отступ","decreaseIndent":"Уменьшить отступ","addRowAndCol":"Добавить строку и столбец"},"colorPicker":{"cellBackground":"Фон ячейки"},"mobile":{"rowActions":"Действия со строкой","columnActions":"Действия со столбцом"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addRightMaxReached":"Не больше 4 колонок — удалите колонку, чтобы добавить ещё","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","duplicate":"Дублировать","clearContent":"Очистить содержимое","deleteColumn":"Удалить колонку","changeColor":"Цвет","mobile":{"columnActions":"Действия"}},"hoverOptions":{"addNewBlockAbove":"Добавить блок выше","addNewBlockBelow":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите или вставьте URL","insert":"Встроить","addEmbed":"Встроить что угодно (PDF, Google Docs, Google Maps...)","addPrefix":"Добавить","save":"Сохранить","hidePreview":"Скрыть предпросмотр","showPreview":"Показать предпросмотр","viewOriginal":"Открыть оригинал","copyLink":"Копировать ссылку","delete":"Удалить","openPreview":"Открыть предпросмотр","alignment":"Выравнивание","moreAction":"Ещё","linkCopied":"Ссылка скопирована","linkCopyFailed":"Не удалось скопировать ссылку"},"content":"Содержание","emoji":{"emojis":"Эмодзи","icons":"Иконки","search":"Поиск","searchResults":"Результат поиска","searchNoResults":"Эмодзи не найдено","remove":"Удалить","emojiCategory":{"frequent":"Часто используемые","people":"Эмоции и люди","nature":"Животные и природа","foods":"Еда и напитки","activity":"Активности","places":"Путешествия и места","objects":"Предметы","symbols":"Символы","flags":"Флаги"}},"form":{"url":"Укажите правильный URL."},"noTitle":"Без названия","gallery":{"download":"Загрузить","close":"Закрыть","errorFile":"Не удалось загрузить файл"},"emptyPageOptions":{"heading":"Заголовок, который автоматически создаст интерактивное оглавление","template":"Создать из шаблона","grid":"Сетка поможет структурировать страницу по горизонтали","list":"Нумерованный список для удобного планирования встречи","code":"Блок кода с поддержкой синтаксиса","callout":"Выделенный блок для акцента","table":"Таблица для поиска зависимостей в данных","integrations":"Множество интеграций от сторонних сервисов"},"composer":{"discardCommentTitle":"Закрыть без сохранения?","discardCommentDescription":"Ваш введённый контент будет утерян.","discardConfirm":"Закрыть","cancel":"Продолжить","replaceComment":{"title":"Комментарий уже существует","description":"Вы выделили текст, который уже содержит комментарий.\\nПредыдущий комментарий будет удалён.","confirm":"Заменить","cancel":"Отмена"},"uploadErrors":{"fileTooLarge":"Файл слишком большой — максимальный размер 5 МБ.","tooManyFiles":"Нельзя загружать больше 10 файлов."},"placeholder":"Добавить комментарий"},"actions":{"delete":"Удалить","align":"Выравнивание"},"ai":{"placeholder":"Пользовательский запрос","copied":"Скопировано","copy":"Копировать","back":"Назад","menu":{"style":{"professional":"Профессиональный","straightforward":"Простой и понятный","friendly":"Дружелюбный","poetic":"Поэтический","passiveAggressive":"Пассивно-агрессивный","pirate":"Пиратский"},"main":{"modifySelection":"Изменить выделение","improveWriting":"Улучшить текст","fixMistakes":"Исправить ошибки","simplify":"Упростить","addMoreDetail":"Добавить подробности","generate":"Сгенерировать","summarise":"Резюме","translate":"Перевести на...","changeStyle":"Изменить стиль на...","explain":"Объяснить"},"answer":{"replaceSelection":"Заменить выделение","addTextInline":"Добавить текст в строку","addBelowParagraph":"Добавить под абзацем","modifyFurther":"Дополнительно изменить","continueWriting":"Продолжить написание","regenerate":"Сгенерировать заново","otherOptions":"Другие варианты","discard":"Удалить"},"languages":{"arabic":"Арабский","bengali":"Бенгальский","chinese":"Китайский","dutch":"Голландский","english":"Английский","french":"Французский","german":"Немецкий","hindi":"Хинди","japanese":"Японский","korean":"Корейский","nepali":"Непальский","portuguese":"Португальский","spanish":"Испанский"}}},"cancel":"Отменить","smartPaste":{"aiButton":"Улучшить текст","rulesButton":"Разделить через Rules (Safe)","plainButton":"Вставить","dontShowAgain":"Больше не показывать","processing":"Обработка...","fallback":"Не удалось обработать, вставляем как есть","textTooLong":"Текст слишком длинный для обработки ИИ (макс. {{max}}). Удалите {{excess}} символов, чтобы продолжить.","accept":"Принять","discard":"Отменить","freeLimitReached":"Лимит бесплатного Smart Paste исчерпан. Обновите план для безлимитного использования.","feedbackTitle":"Насколько вы довольны ИИ-редактированием текста?"}}`),G8={editor:Z8},Xf=A9.createInstance();Xf.use(Ue.initReactI18next).init({resources:{en:{translation:U8,ui:At.enUI},ru:{translation:G8,ui:At.ruUI},es:{translation:Y8,ui:At.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(e=>{});const Rr={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",codeWrapper:"dsd__theme__overlay-wrapper",codeHeader:"dsd__theme__overlay-header",codeHighlight:{atrule:"dsd__theme__tokenAttr",attr:"dsd__theme__tokenAttr",boolean:"dsd__theme__tokenProperty",builtin:"dsd__theme__tokenSelector",cdata:"dsd__theme__tokenComment",char:"dsd__theme__tokenSelector",class:"dsd__theme__tokenFunction","class-name":"dsd__theme__tokenFunction",comment:"dsd__theme__tokenComment",constant:"dsd__theme__tokenProperty",deleted:"dsd__theme__tokenProperty",doctype:"dsd__theme__tokenComment",entity:"dsd__theme__tokenOperator",function:"dsd__theme__tokenFunction",important:"dsd__theme__tokenVariable",inserted:"dsd__theme__tokenSelector",keyword:"dsd__theme__tokenAttr",namespace:"dsd__theme__tokenVariable",number:"dsd__theme__tokenProperty",operator:"dsd__theme__tokenOperator",prolog:"dsd__theme__tokenComment",property:"dsd__theme__tokenProperty",punctuation:"dsd__theme__tokenPunctuation",regex:"dsd__theme__tokenVariable",selector:"dsd__theme__tokenSelector",string:"dsd__theme__tokenSelector",symbol:"dsd__theme__tokenProperty",tag:"dsd__theme__tokenProperty",url:"dsd__theme__tokenOperator",variable:"dsd__theme__tokenVariable"},embedBlock:{base:"dsd__theme__embedBlock",focus:"dsd__theme__embedBlockFocus"},hashtag:"dsd__theme__hashtag",heading:{h1:"dsd__theme__h1",h2:"dsd__theme__h2",h3:"dsd__theme__h3",h4:"dsd__theme__h4",h5:"dsd__theme__h5",h6:"dsd__theme__h6"},excalidraw:"editor-excalidraw",image:"editor-image",indent:"dsd__theme__indent",inlineImage:"inline-editor-image",layoutContainer:"dsd__theme__layoutContainer",layoutItem:"dsd__theme__layoutItem",layoutDivider:"dsd__theme__layoutDivider",calloutIcon:"dsd__theme__callout-icon",callout:"dsd__theme__callout-container",calloutWrapper:"dsd__theme__callout-wrapper",calloutContainer:"dsd__theme__callout-main-container",link:"dsd__theme__link",list:{checklist:"dsd__theme__checklist",listitem:"dsd__theme__listItem",listitemChecked:"dsd__theme__listItemChecked",listitemUnchecked:"dsd__theme__listItemUnchecked",nested:{listitem:"dsd__theme__nestedListItem"},olDepth:["dsd__theme__ol1","dsd__theme__ol2","dsd__theme__ol3","dsd__theme__ol4","dsd__theme__ol5"],ul:"dsd__theme__ul"},listitemIndeterminate:"dsd__theme__listIndeterminate",mark:"dsd__theme__mark",markOverlap:"dsd__theme__markOverlap",paragraph:"dsd__theme__paragraph",quote:"dsd__theme__quote",rtl:"dsd__theme__rtl",table:"dsd__theme__table",tableAddColumns:"dsd__theme__tableAddColumns",tableAddRows:"dsd__theme__tableAddRows",tableCell:"dsd__theme__tableCell",tableCellActionButton:"dsd__theme__tableCellActionButton",tableCellActionButtonContainer:"dsd__theme__tableCellActionButtonContainer",tableCellEditing:"dsd__theme__tableCellEditing",tableCellHeader:"dsd__theme__tableCellHeader",tableCellPrimarySelected:"dsd__theme__tableCellPrimarySelected",tableCellResizer:"dsd__theme__tableCellResizer",tableCellSelected:"dsd__theme__tableCellSelected",tableCellSortedIndicator:"dsd__theme__tableCellSortedIndicator",tableResizeRuler:"dsd__theme__tableCellResizeRuler",tableSelected:"dsd__theme__tableSelected",tableSelection:"dsd__theme__tableSelection",tableScrollableWrapper:"dsd__theme__table-scrollable-wrapper",text:{bold:"dsd__theme__textBold",capitalize:"dsd__theme__textCapitalize",code:"dsd__theme__textCode",highlight:"dsd__theme__textHighlight",italic:"dsd__theme__textItalic",lowercase:"dsd__theme__textLowercase",strikethrough:"dsd__theme__textStrikethrough",subscript:"dsd__theme__textSubscript",superscript:"dsd__theme__textSuperscript",underline:"dsd__theme__textUnderline",underlineStrikethrough:"dsd__theme__textUnderlineStrikethrough",uppercase:"dsd__theme__textUppercase"}},V8=e=>{const n={...Rr,text:{...Rr.text}};return e==="comment"&&n.text&&(delete n.text.strikethrough,delete n.text.underlineStrikethrough),n},q8=P9.lazy(()=>Promise.resolve().then(()=>require("./layers.Dybb-MrJ.js")));function Kg(e){const n=e.getAttribute("data-lexical-equation"),t=e.getAttribute("data-lexical-inline")==="true",r=e.getAttribute("data-lexical-equation-preview");let o="";if(n!=null)try{o=decodeURIComponent(escape(atob(n)))}catch{o=""}else if(r!=null)try{o=decodeURIComponent(r)}catch{o=""}return{node:Ya(o,t)}}class Zs extends p.DecoratorNode{constructor(t,r,o){super(o);Ne(this,"__equation");Ne(this,"__inline");this.__equation=t,this.__inline=r??!1}static getType(){return"equation"}static clone(t){return new Zs(t.__equation,t.__inline,t.__key)}static importJSON(t){return Ya(t.equation,t.inline).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),equation:this.getEquation(),inline:this.__inline}}createDOM(t){const r=document.createElement(this.__inline?"span":"div");return r.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation",r}exportDOM(){const t=document.createElement(this.__inline?"span":"div");t.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation";let r="";try{r=btoa(unescape(encodeURIComponent(this.__equation)))}catch{r=""}return t.setAttribute("data-lexical-equation",r),t.setAttribute("data-lexical-inline",`${this.__inline}`),t.setAttribute("data-lexical-equation-preview",encodeURIComponent(this.__equation)),{element:t}}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-equation")?{conversion:Kg,priority:2}:null,span:t=>t.hasAttribute("data-lexical-equation")?{conversion:Kg,priority:1}:null}}updateDOM(t){return this.__inline!==t.__inline}getTextContent(){return this.__equation}getEquation(){return this.__equation}isInline(){return this.__inline}setEquation(t){const r=this.getWritable();r.__equation=t}decorate(){return s.jsx(q8,{equation:this.__equation,inline:this.__inline,nodeKey:this.__key})}}function Ya(e="",n=!1){const t=new Zs(e,n);return p.$applyNodeReplacement(t)}function _o(e){return e instanceof Zs}const Q8=[["path",{d:"M12.001 5.00003V19.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.002 12.002L4.99998 12.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],J8=[["path",{d:"M14 12.6483L16.3708 10.2775C16.6636 9.98469 16.81 9.83827 16.8883 9.68032C17.0372 9.3798 17.0372 9.02696 16.8883 8.72644C16.81 8.56849 16.6636 8.42207 16.3708 8.12923C16.0779 7.83638 15.9315 7.68996 15.7736 7.61169C15.473 7.46277 15.1202 7.46277 14.8197 7.61169C14.6617 7.68996 14.5153 7.83638 14.2225 8.12923L11.8517 10.5M14 12.6483L5.77754 20.8708C5.4847 21.1636 5.33827 21.31 5.18032 21.3883C4.8798 21.5372 4.52696 21.5372 4.22644 21.3883C4.06849 21.31 3.92207 21.1636 3.62923 20.8708C3.33639 20.5779 3.18996 20.4315 3.11169 20.2736C2.96277 19.973 2.96277 19.6202 3.11169 19.3197C3.18996 19.1617 3.33639 19.0153 3.62923 18.7225L11.8517 10.5M14 12.6483L11.8517 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5 2.5L19.3895 2.79873C19.2445 3.19044 19.172 3.38629 19.0292 3.52917C18.8863 3.67204 18.6904 3.74452 18.2987 3.88946L18 4L18.2987 4.11054C18.6904 4.25548 18.8863 4.32796 19.0292 4.47083C19.172 4.61371 19.2445 4.80956 19.3895 5.20127L19.5 5.5L19.6105 5.20127C19.7555 4.80956 19.828 4.61371 19.9708 4.47083C20.1137 4.32796 20.3096 4.25548 20.7013 4.11054L21 4L20.7013 3.88946C20.3096 3.74452 20.1137 3.67204 19.9708 3.52917C19.828 3.38629 19.7555 3.19044 19.6105 2.79873L19.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 12.5L19.3895 12.7987C19.2445 13.1904 19.172 13.3863 19.0292 13.5292C18.8863 13.672 18.6904 13.7445 18.2987 13.8895L18 14L18.2987 14.1105C18.6904 14.2555 18.8863 14.328 19.0292 14.4708C19.172 14.6137 19.2445 14.8096 19.3895 15.2013L19.5 15.5L19.6105 15.2013C19.7555 14.8096 19.828 14.6137 19.9708 14.4708C20.1137 14.328 20.3096 14.2555 20.7013 14.1105L21 14L20.7013 13.8895C20.3096 13.7445 20.1137 13.672 19.9708 13.5292C19.828 13.3863 19.7555 13.1904 19.6105 12.7987L19.5 12.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10.5 2.5L10.3895 2.79873C10.2445 3.19044 10.172 3.38629 10.0292 3.52917C9.88629 3.67204 9.69044 3.74452 9.29873 3.88946L9 4L9.29873 4.11054C9.69044 4.25548 9.88629 4.32796 10.0292 4.47083C10.172 4.61371 10.2445 4.80956 10.3895 5.20127L10.5 5.5L10.6105 5.20127C10.7555 4.80956 10.828 4.61371 10.9708 4.47083C11.1137 4.32796 11.3096 4.25548 11.7013 4.11054L12 4L11.7013 3.88946C11.3096 3.74452 11.1137 3.67204 10.9708 3.52917C10.828 3.38629 10.7555 3.19044 10.6105 2.79873L10.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],X8=[["path",{d:"M17 11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.3327 4.64612C15.5394 4.49594 16.4959 3.53944 16.6461 2.33267C16.6689 2.14999 16.8159 2 17 2C17.1841 2 17.3311 2.14999 17.3539 2.33267C17.5041 3.53944 18.4606 4.49594 19.6673 4.64612C19.85 4.66885 20 4.81591 20 5C20 5.1841 19.85 5.33115 19.6673 5.35388C18.4606 5.50406 17.5041 6.46056 17.3539 7.66733C17.3311 7.85001 17.1841 8 17 8C16.8159 8 16.6689 7.85001 16.6461 7.66733C16.4959 6.46056 15.5394 5.50406 14.3327 5.35388C14.15 5.33115 14 5.1841 14 5C14 4.81591 14.15 4.66885 14.3327 4.64612Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],$8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],t1=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],ek=[["path",{d:"M3 11C3 7.25027 3 5.3754 3.95491 4.06107C4.26331 3.6366 4.6366 3.26331 5.06107 2.95491C6.3754 2 8.25027 2 12 2C15.7497 2 17.6246 2 18.9389 2.95491C19.3634 3.26331 19.7367 3.6366 20.0451 4.06107C21 5.3754 21 7.25027 21 11V13C21 16.7497 21 18.6246 20.0451 19.9389C19.7367 20.3634 19.3634 20.7367 18.9389 21.0451C17.6246 22 15.7497 22 12 22C8.25027 22 6.3754 22 5.06107 21.0451C4.6366 20.7367 4.26331 20.3634 3.95491 19.9389C3 18.6246 3 16.7497 3 13V11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 9.5L8 9.5M13.5 14.5H10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Xc=[["path",{d:"M12 19L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 10L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 2L12 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.00036 7.5C8.00036 6.65611 7.91699 5.68211 8.75036 5.20096C9.09844 5 9.56575 5 10.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H10.5004C9.56575 10 9.09844 10 8.75036 9.79904C7.91699 9.31789 8.00036 8.34389 8.00036 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H17.5004C18.435 14 18.9023 14 19.2504 14.201C20.0837 14.6821 20.0004 15.6561 20.0004 16.5C20.0004 17.3439 20.0837 18.3179 19.2504 18.799C18.9023 19 18.435 19 17.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],aA=[["path",{d:"M8.00232 7.5C8.00232 6.65611 7.91895 5.68211 8.75232 5.20096C9.10039 5 9.5677 5 10.5023 5H11.5023C12.4369 5 12.9042 5 13.2523 5.20096C14.0857 5.68211 14.0023 6.65611 14.0023 7.5C14.0023 8.34389 14.0857 9.31789 13.2523 9.79904C12.9042 10 12.4369 10 11.5023 10H10.5023C9.5677 10 9.10039 10 8.75232 9.79904C7.91895 9.31789 8.00232 8.34389 8.00232 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00232 16.5C8.00232 15.6561 7.91895 14.6821 8.75232 14.201C9.10039 14 9.5677 14 10.5023 14H17.5023C18.4369 14 18.9042 14 19.2523 14.201C20.0857 14.6821 20.0023 15.6561 20.0023 16.5C20.0023 17.3439 20.0857 18.3179 19.2523 18.799C18.9042 19 18.4369 19 17.5023 19H10.5023C9.5677 19 9.10039 19 8.75232 18.799C7.91895 18.3179 8.00232 17.3439 8.00232 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],lA=[["path",{d:"M10.0004 7.5C10.0004 6.65611 9.91699 5.68211 10.7504 5.20096C11.0984 5 11.5657 5 12.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H12.5004C11.5657 10 11.0984 10 10.7504 9.79904C9.91699 9.31789 10.0004 8.34389 10.0004 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H13.5004C14.435 14 14.9023 14 15.2504 14.201C16.0837 14.6821 16.0004 15.6561 16.0004 16.5C16.0004 17.3439 16.0837 18.3179 15.2504 18.799C14.9023 19 14.435 19 13.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],tk=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 7.00002C15 7.00002 12.7905 9.99999 12 10C11.2094 10 9 7 9 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 3V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],nk=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 5.99998C15 5.99998 12.7905 3.00001 12 3C11.2094 2.99999 9 6 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 10V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Jr=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],rk=[["path",{d:"M16.4999 3.26621C17.3443 3.25421 20.1408 2.67328 20.7337 3.26621C21.3266 3.85913 20.7457 6.65559 20.7337 7.5M20.5059 3.49097L13.5021 10.4961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.26636 16.5001C3.25436 17.3445 2.67343 20.141 3.26636 20.7339C3.85928 21.3268 6.65574 20.7459 7.50015 20.7339M10.502 13.4976L3.49824 20.5027",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],cA=[["path",{d:"M8.00001 3.09779C8.00001 3.09779 4.03375 2.74194 3.38784 3.38785C2.74192 4.03375 3.09784 8 3.09784 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00001 20.9022C8.00001 20.9022 4.03375 21.2581 3.38784 20.6122C2.74192 19.9662 3.09784 16 3.09784 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.09779C16 3.09779 19.9663 2.74194 20.6122 3.38785C21.2581 4.03375 20.9022 8 20.9022 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 20.9022C16 20.9022 19.9663 21.2581 20.6122 20.6122C21.2581 19.9662 20.9022 16 20.9022 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.0107 9.99847L20.0625 3.94678",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9.99696 14.0024L3.63966 20.3807",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M9.99732 10.0024L3.84571 3.85889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M13.9795 14.0024L20.5279 20.4983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"7"}]],uA=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],n1=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ok=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Fi=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],r1=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ik=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],sk=[["path",{d:"M7.5 8.5H16.5M7.5 12.5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 10.5C2 9.72921 2.01346 8.97679 2.03909 8.2503C2.12282 5.87683 2.16469 4.69009 3.13007 3.71745C4.09545 2.74481 5.3157 2.6926 7.7562 2.58819C9.09517 2.5309 10.5209 2.5 12 2.5C13.4791 2.5 14.9048 2.5309 16.2438 2.58819C18.6843 2.6926 19.9046 2.74481 20.8699 3.71745C21.8353 4.69009 21.8772 5.87683 21.9609 8.2503C21.9865 8.97679 22 9.72921 22 10.5C22 11.2708 21.9865 12.0232 21.9609 12.7497C21.8772 15.1232 21.8353 16.3099 20.8699 17.2826C19.9046 18.2552 18.6843 18.3074 16.2437 18.4118C15.5098 18.4432 14.7498 18.4667 13.9693 18.4815C13.2282 18.4955 12.8576 18.5026 12.532 18.6266C12.2064 18.7506 11.9325 18.9855 11.3845 19.4553L9.20503 21.3242C9.07273 21.4376 8.90419 21.5 8.72991 21.5C8.32679 21.5 8 21.1732 8 20.7701V18.4219C7.91842 18.4186 7.83715 18.4153 7.75619 18.4118C5.31569 18.3074 4.09545 18.2552 3.13007 17.2825C2.16469 16.3099 2.12282 15.1232 2.03909 12.7497C2.01346 12.0232 2 11.2708 2 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],o1=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],ak=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],lk=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 9.5V6.5C16.5 4.01472 14.4853 2 12 2C9.51472 2 7.5 4.01472 7.5 6.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],ck=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9.5V6.5C7.5 4.01472 9.51472 2 12 2C13.5602 2 14.935 2.79401 15.7422 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],uk=[["path",{d:"M17.5798 9.71016C17.0765 9.57314 16.5468 9.5 16 9.5C13.4668 9.5 11.3002 11.0699 10.4202 13.2898M17.5798 9.71016C20.1271 10.4036 22 12.7331 22 15.5C22 18.8137 19.3137 21.5 16 21.5C14.4633 21.5 13.0615 20.9223 12 19.9722M17.5798 9.71016C17.851 9.02618 18 8.2805 18 7.5C18 4.18629 15.3137 1.5 12 1.5C8.68629 1.5 6 4.18629 6 7.5C6 8.2805 6.14903 9.02618 6.42018 9.71016M10.4202 13.2898C10.149 13.9738 10 14.7195 10 15.5C10 17.277 10.7725 18.8736 12 19.9722M10.4202 13.2898C8.59146 12.792 7.11029 11.451 6.42018 9.71016M6.42018 9.71016C3.87294 10.4036 2 12.7331 2 15.5C2 18.8137 4.68629 21.5 8 21.5C9.53671 21.5 10.9385 20.9223 12 19.9722",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],dk=[["path",{d:"M8 13.5H16M8 8.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],ir=[["path",{d:"M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],sl=[["path",{d:"M16.9637 8.98209C16.9613 6.03194 16.9167 4.50384 16.0578 3.45753C15.892 3.25546 15.7067 3.07019 15.5047 2.90436C14.4008 1.99854 12.7609 1.99854 9.48087 1.99854C6.20089 1.99854 4.5609 1.99854 3.45708 2.90436C3.255 3.07018 3.06971 3.25546 2.90387 3.45753C1.99799 4.56128 1.99799 6.20116 1.99799 9.48091C1.99799 12.7607 1.99799 14.4005 2.90387 15.5043C3.0697 15.7063 3.255 15.8916 3.45708 16.0574C4.50346 16.9162 6.03167 16.9608 8.98201 16.9632",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.0283 9.02455L16.994 8.98193M14.0143 22.0013L16.9799 21.9586M21.9716 14.0221L21.9436 16.9818M9.01033 14.0357L8.98236 16.9953M11.4873 9.02455C10.6545 9.17371 9.31781 9.32713 9.01033 11.0488M19.4946 21.9586C20.3296 21.8223 21.6685 21.6894 22.0025 19.9726M19.4946 9.02455C20.3274 9.17371 21.6641 9.32713 21.9716 11.0488M11.5 21.9573C10.6672 21.8086 9.33039 21.6559 9.02197 19.9344",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],fk=[["path",{d:"M14.5563 13.2183C13.514 14.2606 11.8241 14.2606 10.7817 13.2183C9.73942 12.1759 9.73942 10.486 10.7817 9.44364L13.1409 7.0845C14.1357 6.08961 15.7206 6.04433 16.7692 6.94866M16.4437 3.78175C17.486 2.73942 19.1759 2.73942 20.2183 3.78175C21.2606 4.82408 21.2606 6.51403 20.2183 7.55636L17.8591 9.9155C16.8643 10.9104 15.2794 10.9557 14.2308 10.0513",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.4999 3C7.21257 3 5.56889 3 4.46256 3.9079C4.25998 4.07414 4.07423 4.25989 3.90798 4.46247C3.00007 5.56879 3.00006 7.21247 3.00002 10.4998L3 12.9999C2.99996 16.7712 2.99995 18.6568 4.17152 19.8284C5.3431 21 7.22873 21 11 21H13.4999C16.7874 21 18.4311 21 19.5375 20.092C19.74 19.9258 19.9257 19.7401 20.092 19.5376C20.9999 18.4312 20.9999 16.7875 20.9999 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],hk=[["circle",{cx:"12",cy:"18",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 15V10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 13C22 7.47715 17.5228 3 12 3C6.47715 3 2 7.47715 2 13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],sn=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.7349H15",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10.5 15.6543H13.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 5.5H21M16.0555 5.5L15.3729 4.09173C14.9194 3.15626 14.6926 2.68852 14.3015 2.39681C14.2148 2.3321 14.1229 2.27454 14.0268 2.2247C13.5937 2 13.0739 2 12.0343 2C10.9686 2 10.4358 2 9.99549 2.23412C9.89791 2.28601 9.80479 2.3459 9.7171 2.41317C9.32145 2.7167 9.10044 3.20155 8.65842 4.17126L8.05273 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],pk=[["path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 5.5C14.5 6.88071 13.3807 8 12 8C10.6193 8 9.5 6.88071 9.5 5.5C9.5 4.11929 10.6193 3 12 3C13.3807 3 14.5 4.11929 14.5 5.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 18.5C14.5 19.8807 13.3807 21 12 21C10.6193 21 9.5 19.8807 9.5 18.5C9.5 17.1193 10.6193 16 12 16C13.3807 16 14.5 17.1193 14.5 18.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Is=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],dA=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],mk=[["path",{d:"M16.9767 19.5C19.4017 17.8876 21 15.1305 21 12C21 7.02944 16.9706 3 12 3C11.3126 3 10.6432 3.07706 10 3.22302M16.9767 19.5V16M16.9767 19.5H20.5M7 4.51555C4.58803 6.13007 3 8.87958 3 12C3 16.9706 7.02944 21 12 21C12.6874 21 13.3568 20.9229 14 20.777M7 4.51555V8M7 4.51555H3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Ug=[["path",{d:"M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Hg=[["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],gk=[["path",{d:"M17 3C17.4644 3 17.6966 3 17.8919 3.02201C19.5145 3.20484 20.7952 4.48545 20.978 6.10812C21 6.30344 21 6.53563 21 7M17 21C17.4644 21 17.6966 21 17.8919 20.978C19.5145 20.7952 20.7952 19.5145 20.978 17.8919C21 17.6966 21 17.4644 21 17M7 3C6.53563 3 6.30344 3 6.10812 3.02201C4.48545 3.20484 3.20484 4.48545 3.02201 6.10812C3 6.30344 3 6.53563 3 7M7 21C6.53563 21 6.30344 21 6.10812 20.978C4.48545 20.7952 3.20484 19.5145 3.02201 17.8919C3 17.6966 3 17.4644 3 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Af=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12C8 18 12 22 12 22C12 22 16 18 16 12C16 6 12 2 12 2C12 2 8 6 8 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 15H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M21 9H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],i1=[["path",{d:"M4 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 19H18.5M20 19H18.5M18.5 19V11L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 12L14 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],s1=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],a1=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],ja=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 11V15H20.5M20.5 15V19M20.5 15V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ck=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],fA=[["path",{d:"M3 16L7.46967 11.5303C7.80923 11.1908 8.26978 11 8.75 11C9.23022 11 9.69077 11.1908 10.0303 11.5303L14 15.5M15.5 17L14 15.5M21 16L18.5303 13.5303C18.1908 13.1908 17.7302 13 17.25 13C16.7698 13 16.3092 13.1908 15.9697 13.5303L14 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 8C15.7761 8 16 7.77614 16 7.5C16 7.22386 15.7761 7 15.5 7M15.5 8C15.2239 8 15 7.77614 15 7.5C15 7.22386 15.2239 7 15.5 7M15.5 8V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.69797 19.7472C2.5 18.3446 2.5 16.2297 2.5 12C2.5 7.77027 2.5 5.6554 3.69797 4.25276C3.86808 4.05358 4.05358 3.86808 4.25276 3.69797C5.6554 2.5 7.77027 2.5 12 2.5C16.2297 2.5 18.3446 2.5 19.7472 3.69797C19.9464 3.86808 20.1319 4.05358 20.302 4.25276C21.5 5.6554 21.5 7.77027 21.5 12C21.5 16.2297 21.5 18.3446 20.302 19.7472C20.1319 19.9464 19.9464 20.1319 19.7472 20.302C18.3446 21.5 16.2297 21.5 12 21.5C7.77027 21.5 5.6554 21.5 4.25276 20.302C4.05358 20.1319 3.86808 19.9464 3.69797 19.7472Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],hA=[["path",{d:"M2.8125 18C3.01415 18.8888 3.34564 19.5638 3.89059 20.1088C5.28184 21.5 7.52101 21.5 11.9994 21.5C16.4777 21.5 18.7169 21.5 20.1081 20.1088C21.4993 18.7175 21.4993 16.4783 21.4993 12C21.4993 7.52166 21.4993 5.28249 20.1081 3.89124C18.7169 2.5 16.4777 2.5 11.9994 2.5C7.52101 2.5 5.28184 2.5 3.89059 3.89124C3.34564 4.4362 3.01415 5.11125 2.8125 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.5 9L2.5 12L5.5 15M3.5 12L10.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 2.49805L15 21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.5 8.49805H15M21.5 15.498H15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],pA=[["path",{d:"M21.1868 18C20.9852 18.8888 20.6537 19.5638 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C20.6537 4.4362 20.9852 5.11125 21.1868 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18.5 9L21.5 12L18.5 15M20.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9 2.49805V21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.49805 8.49805H8.99805M2.49805 15.498H8.99805",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],mA=[["path",{d:"M18 21.1868C18.8888 20.9852 19.5638 20.6537 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C4.4362 20.6537 5.11125 20.9852 6.00001 21.1868",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13.5V20.5M9 18.5L12 21.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 2.5L8.5 9M15.5 2.5L15.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],gA=[["path",{d:"M18 2.8125C18.8888 3.01415 19.5638 3.34564 20.1088 3.89059C21.5 5.28184 21.5 7.52101 21.5 11.9994C21.5 16.4777 21.5 18.7169 20.1088 20.1081C18.7175 21.4993 16.4783 21.4993 12 21.4993C7.52166 21.4993 5.28249 21.4993 3.89124 20.1081C2.5 18.7169 2.5 16.4777 2.5 11.9993C2.5 7.52101 2.5 5.28184 3.89124 3.89059C4.4362 3.34564 5.11125 3.01415 6.00001 2.8125",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 5.5L12 2.5L15 5.5M12 3.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 15H21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 21.5L8.5 15M15.5 21.5L15.5 15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],Ak=[["path",{d:"M14.5 7H9.5C6.21252 7 4.56878 7 3.46243 7.90796C3.25989 8.07418 3.07418 8.25989 2.90796 8.46243C2 9.56878 2 11.2125 2 14.5C2 17.7875 2 19.4312 2.90796 20.5376C3.07418 20.7401 3.25989 20.9258 3.46243 21.092C4.56878 22 6.21252 22 9.5 22H14.5C17.7875 22 19.4312 22 20.5376 21.092C20.7401 20.9258 20.9258 20.7401 21.092 20.5376C22 19.4312 22 17.7875 22 14.5C22 11.2125 22 9.56878 21.092 8.46243C20.9258 8.25989 20.7401 8.07418 20.5376 7.90796C19.4312 7 17.7875 7 14.5 7Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7V5C12 4.44772 12.4477 4 13 4C13.5523 4 14 3.55228 14 3V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 12L8 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.5 12L12.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16 12L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7 17L17 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],bk=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],$c=[["path",{d:"M20.1069 20.1088C18.7156 21.5001 16.4765 21.5001 11.9981 21.5001C7.51976 21.5001 5.28059 21.5001 3.88935 20.1088C2.49811 18.7176 2.49811 16.4784 2.49811 12.0001C2.49811 7.52172 2.49811 5.28255 3.88935 3.89131C5.28059 2.50006 7.51976 2.50006 11.9981 2.50006C16.4764 2.50006 18.7156 2.50006 20.1069 3.8913C21.4981 5.28255 21.4981 7.52172 21.4981 12.0001C21.4981 16.4784 21.4981 18.7176 20.1069 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.99811 21.5001L8.99811 2.50006",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.4981 8.00006L2.49811 8.00006",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.4981 16.0001H2.49811",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],eu=[["path",{d:"M8 5.5L20 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L20 12.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19.5L20 19.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4.375 5.5H4.25M4.5 5.5C4.5 5.63807 4.38807 5.75 4.25 5.75C4.11193 5.75 4 5.63807 4 5.5C4 5.36193 4.11193 5.25 4.25 5.25C4.38807 5.25 4.5 5.36193 4.5 5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 12.5H4.25M4.5 12.5C4.5 12.6381 4.38807 12.75 4.25 12.75C4.11193 12.75 4 12.6381 4 12.5C4 12.3619 4.11193 12.25 4.25 12.25C4.38807 12.25 4.5 12.3619 4.5 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 19.5H4.25M4.5 19.5C4.5 19.6381 4.38807 19.75 4.25 19.75C4.11193 19.75 4 19.6381 4 19.5C4 19.3619 4.11193 19.25 4.25 19.25C4.38807 19.25 4.5 19.3619 4.5 19.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],l1=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],yk=[["path",{d:"M11 5.5L21 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 18.5L21 18.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],c1=[["path",{d:"M9.14339 10.691L9.35031 10.4841C11.329 8.50532 14.5372 8.50532 16.5159 10.4841C18.4947 12.4628 18.4947 15.671 16.5159 17.6497L13.6497 20.5159C11.671 22.4947 8.46279 22.4947 6.48405 20.5159C4.50532 18.5372 4.50532 15.329 6.48405 13.3503L6.9484 12.886",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.0516 11.114L17.5159 10.6497C19.4947 8.67095 19.4947 5.46279 17.5159 3.48405C15.5372 1.50532 12.329 1.50532 10.3503 3.48405L7.48405 6.35031C5.50532 8.32904 5.50532 11.5372 7.48405 13.5159C9.46279 15.4947 12.671 15.4947 14.6497 13.5159L14.8566 13.309",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Ds=[["path",{d:"M9.5 14.5L14.5 9.49995",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],xk=[["path",{d:"M10 13.229C10.1416 13.4609 10.3097 13.6804 10.5042 13.8828C11.7117 15.1395 13.5522 15.336 14.9576 14.4722C15.218 14.3121 15.4634 14.1157 15.6872 13.8828L18.9266 10.5114C20.3578 9.02184 20.3578 6.60676 18.9266 5.11718C17.4953 3.6276 15.1748 3.62761 13.7435 5.11718L13.03 5.85978",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9703 18.14L10.2565 18.8828C8.82526 20.3724 6.50471 20.3724 5.07345 18.8828C3.64218 17.3932 3.64218 14.9782 5.07345 13.4886L8.31287 10.1172C9.74413 8.62761 12.0647 8.6276 13.4959 10.1172C13.6904 10.3195 13.8584 10.539 14 10.7708",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],CA=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],vk=[["path",{d:"M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],wk=[["path",{d:"M8.5 14.5H15.5M8.5 9.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.1706 20.8905C18.3536 20.6125 21.6856 17.2332 21.9598 12.9909C22.0134 12.1607 22.0134 11.3009 21.9598 10.4707C21.6856 6.22838 18.3536 2.84913 14.1706 2.57107C12.7435 2.47621 11.2536 2.47641 9.8294 2.57107C5.64639 2.84913 2.31441 6.22838 2.04024 10.4707C1.98659 11.3009 1.98659 12.1607 2.04024 12.9909C2.1401 14.536 2.82343 15.9666 3.62791 17.1746C4.09501 18.0203 3.78674 19.0758 3.30021 19.9978C2.94941 20.6626 2.77401 20.995 2.91484 21.2351C3.05568 21.4752 3.37026 21.4829 3.99943 21.4982C5.24367 21.5285 6.08268 21.1757 6.74868 20.6846C7.1264 20.4061 7.31527 20.2668 7.44544 20.2508C7.5756 20.2348 7.83177 20.3403 8.34401 20.5513C8.8044 20.7409 9.33896 20.8579 9.8294 20.8905C11.2536 20.9852 12.7435 20.9854 14.1706 20.8905Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Gs=[["path",{d:"M21 12C21 11.1716 20.3284 10.5 19.5 10.5C18.6716 10.5 18 11.1716 18 12C18 12.8284 18.6716 13.5 19.5 13.5C20.3284 13.5 21 12.8284 21 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 12C6 11.1716 5.32843 10.5 4.5 10.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5C5.32843 13.5 6 12.8284 6 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],qn=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Wc=[["path",{d:"M11.9967 12.5V12M11.9967 6.5V6M11.9967 18.5V18M12.9967 12.5C12.9967 11.9477 12.549 11.5 11.9967 11.5C11.4444 11.5 10.9967 11.9477 10.9967 12.5C10.9967 13.0523 11.4444 13.5 11.9967 13.5C12.549 13.5 12.9967 13.0523 12.9967 12.5ZM12.9967 6.5C12.9967 5.94772 12.549 5.5 11.9967 5.5C11.4444 5.5 10.9967 5.94772 10.9967 6.5C10.9967 7.05228 11.4444 7.5 11.9967 7.5C12.549 7.5 12.9967 7.05228 12.9967 6.5ZM12.9967 18.5C12.9967 17.9477 12.549 17.5 11.9967 17.5C11.4444 17.5 10.9967 17.9477 10.9967 18.5C10.9967 19.0523 11.4444 19.5 11.9967 19.5C12.549 19.5 12.9967 19.0523 12.9967 18.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],u1=[["path",{d:"M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],kk=[["circle",{cx:"6.5",cy:"18.5",r:"3.5",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"18",cy:"16",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 18.5L10 7C10 6.07655 10 5.61483 10.2635 5.32794C10.5269 5.04106 11.0175 4.9992 11.9986 4.91549C16.022 4.57222 18.909 3.26005 20.3553 2.40978C20.6508 2.236 20.7986 2.14912 20.8993 2.20672C21 2.26432 21 2.4315 21 2.76587V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 10C15.8667 10 19.7778 7.66667 21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Sk=[["path",{d:"M12.8809 7.01656L17.6538 8.28825M11.8578 10.8134L14.2442 11.4492M11.9765 17.9664L12.9311 18.2208C15.631 18.9401 16.981 19.2998 18.0445 18.6893C19.108 18.0787 19.4698 16.7363 20.1932 14.0516L21.2163 10.2548C21.9398 7.57005 22.3015 6.22768 21.6875 5.17016C21.0735 4.11264 19.7235 3.75295 17.0235 3.03358L16.0689 2.77924C13.369 2.05986 12.019 1.70018 10.9555 2.31074C9.89196 2.9213 9.53023 4.26367 8.80678 6.94841L7.78366 10.7452C7.0602 13.4299 6.69848 14.7723 7.3125 15.8298C7.92652 16.8874 9.27651 17.2471 11.9765 17.9664Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20.9462L11.0477 21.2055C8.35403 21.939 7.00722 22.3057 5.94619 21.6832C4.88517 21.0607 4.52429 19.692 3.80253 16.9546L2.78182 13.0833C2.06006 10.3459 1.69918 8.97718 2.31177 7.89892C2.84167 6.96619 4 7.00015 5.5 7.00003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Ek=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C12.8417 22 14 22.1163 14 21C14 20.391 13.6832 19.9212 13.3686 19.4544C12.9082 18.7715 12.4523 18.0953 13 17C13.6667 15.6667 14.7778 15.6667 16.4815 15.6667C17.3334 15.6667 18.3334 15.6667 19.5 15.5C21.601 15.1999 22 13.9084 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"9.5",cy:"8.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"16.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.125 15H7M7.25 15C7.25 15.1381 7.13807 15.25 7 15.25C6.86193 15.25 6.75 15.1381 6.75 15C6.75 14.8619 6.86193 14.75 7 14.75C7.13807 14.75 7.25 14.8619 7.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],li=[["path",{d:"M10 4C10 2.89543 10.8954 2 12 2H13C14.1046 2 15 2.89543 15 4V6.55337C15 7.86603 15.8534 9.02626 17.1065 9.41722L17.8935 9.66278C19.1466 10.0537 20 11.214 20 12.5266V14C20 14.5523 19.5523 15 19 15H6C5.44772 15 5 14.5523 5 14V12.5266C5 11.214 5.85339 10.0537 7.10648 9.66278L7.89352 9.41722C9.14661 9.02626 10 7.86603 10 6.55337V4Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.00217 15C6.15797 16.3082 5.4957 19.5132 4 21.8679C4 21.8679 14.2924 23.0594 15.6851 17.9434V19.8712C15.6851 20.8125 15.6851 21.2831 15.9783 21.5755C16.5421 22.1377 19.1891 22.1531 19.7538 21.5521C20.0504 21.2363 20.0207 20.7819 19.9611 19.8731C19.8629 18.3746 19.5932 16.4558 18.8523 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],AA=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Tk=[["path",{d:"M11.5 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C21.947 6.29018 21.9976 8.05974 21.9999 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.5 14H15.5C14.6716 14 14 14.6716 14 15.5V18.5C14 19.3284 14.6716 20 15.5 20H20.5C21.3284 20 22 19.3284 22 18.5V15.5C22 14.6716 21.3284 14 20.5 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 9.5V12C11.0475 12.5744 10.6034 13.0238 10 13H7.5M6 8L10 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],bA=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Yg=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V16M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],zc=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],d1=[["path",{d:"M10 8C10 9.88562 10 10.8284 9.41421 11.4142C8.82843 12 7.88562 12 6 12C4.11438 12 3.17157 12 2.58579 11.4142C2 10.8284 2 9.88562 2 8C2 6.11438 2 5.17157 2.58579 4.58579C3.17157 4 4.11438 4 6 4C7.88562 4 8.82843 4 9.41421 4.58579C10 5.17157 10 6.11438 10 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 7L10 11.4821C10 15.4547 7.48429 18.8237 4 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 8C22 9.88562 22 10.8284 21.4142 11.4142C20.8284 12 19.8856 12 18 12C16.1144 12 15.1716 12 14.5858 11.4142C14 10.8284 14 9.88562 14 8C14 6.11438 14 5.17157 14.5858 4.58579C15.1716 4 16.1144 4 18 4C19.8856 4 20.8284 4 21.4142 4.58579C22 5.17157 22 6.11438 22 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 7L22 11.4821C22 15.4547 19.4843 18.8237 16 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],Mk=[["path",{d:"M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.3313 3 18.2398 4.80989 19.796 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.9991 3V4.27816C20.9991 6.47004 20.9991 7.56599 20.2918 8.16512C19.5846 8.76425 18.5036 8.58408 16.3415 8.22373L14.9991 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Za=[["path",{d:"M22 5H13.6138C12.3798 5 11.965 5.1398 11.659 6.36394L9.33913 15.6416C8.78948 17.8398 8.51466 18.9389 7.78481 18.9976C7.05496 19.0564 6.55032 18.02 5.54104 15.9472L4.97014 14.7748C4.53541 13.882 4.31804 13.4356 3.87855 13.3147C3.21709 13.1327 2.5084 13.6703 2 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.4004 11.004C15.1804 10.92 16.1337 11.0385 16.4404 11.64C17.0523 12.84 18.0604 15.36 18.4204 16.14C18.6004 16.44 18.7804 16.8 19.5004 16.98C19.9804 17.04 20.6039 16.9955 20.6039 16.9955",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.0005 10.998C19.5005 10.998 18.5405 12.66 17.7005 13.68C16.6205 15.24 15.4205 17.1 13.9805 16.98",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],Lk=[["path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 8L3 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.0003 16L11 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 5.00011L8.5 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],tu=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Nk=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Zg=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5C10 9.32843 9.32843 10 8.5 10Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 17C16.3284 17 17 16.3284 17 15.5C17 14.6716 16.3284 14 15.5 14C14.6716 14 14 14.6716 14 15.5C14 16.3284 14.6716 17 15.5 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 8.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 15.5L7 15.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],jk=[["path",{d:"M21 6.5C21 8.15685 19.6569 9.5 18 9.5C16.3431 9.5 15 8.15685 15 6.5C15 4.84315 16.3431 3.5 18 3.5C19.6569 3.5 21 4.84315 21 6.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 17.5C21 19.1569 19.6569 20.5 18 20.5C16.3431 20.5 15 19.1569 15 17.5C15 15.8431 16.3431 14.5 18 14.5C19.6569 14.5 21 15.8431 21 17.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.72852 10.7495L15.2285 7.75M8.72852 13.25L15.2285 16.2495",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],Rk=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]],Ik=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Dk=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 15C8.91212 16.2144 10.3643 17 12 17C13.6357 17 15.0879 16.2144 16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.625 8.387V8.91649M8.375 8.387V8.91649M8.75 8.75C8.75 8.33579 8.58211 8 8.375 8C8.16789 8 8 8.33579 8 8.75C8 9.16421 8.16789 9.5 8.375 9.5C8.58211 9.5 8.75 9.16421 8.75 8.75ZM16 8.75C16 8.33579 15.8321 8 15.625 8C15.4179 8 15.25 8.33579 15.25 8.75C15.25 9.16421 15.4179 9.5 15.625 9.5C15.8321 9.5 16 9.16421 16 8.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Ga=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Ok=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 14H15M12 14H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],yA=[["path",{d:"M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 13L21.5 13",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.5 17L21.5 17",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M12 21.5L12 9",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],xA=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 9H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 21H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],vA=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Kc=[["path",{d:"M3 3H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],wA=[["path",{d:"M13 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],kA=[["path",{d:"M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z",stroke:"currentColor",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Pk=[["path",{d:"M11 20.001H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 4L8 20.0008M12 4C13.3874 4 15.1695 4.03054 16.5884 4.17648C17.1885 4.23819 17.4886 4.26905 17.7541 4.37789C18.3066 4.60428 18.7518 5.10062 18.9194 5.6768C19 5.95381 19 6.26991 19 6.90214M12 4C10.6126 4 8.83047 4.03054 7.41161 4.17648C6.8115 4.23819 6.51144 4.26905 6.24586 4.37789C5.69344 4.60428 5.24816 5.10062 5.08057 5.6768C5 5.95381 5 6.26991 5 6.90214",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 15L19 20M14 20L19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Bk=[["path",{d:"M4 4.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 9.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 14.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 19.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M13 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 8.5L18.4578 9.74227C17.1526 10.7937 16.5 11.3193 16.5 12C16.5 12.6807 17.1526 13.2063 18.4578 14.2577L20 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],_k=[["path",{d:"M15 4.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 14.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 19.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4 8.5L5.54218 9.74227C6.84739 10.7937 7.5 11.3193 7.5 12C7.5 12.6807 6.84739 13.2063 5.54218 14.2577L4 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],SA=[["path",{d:"M12 4H19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 20L16 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 20H12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],$f=[["path",{d:"M6.99892 9.5C6.75828 7.50503 7.91475 7.09687 11.9989 7M11.9989 7C16.1223 7.10058 17.3402 7.59829 16.9989 9.5M11.9989 7V17M9.99892 17H13.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C5.28249 21.5 7.52166 21.5 12 21.5C16.4783 21.5 18.7175 21.5 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],EA=[["path",{d:"M4 12H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Tu=[["path",{d:"M15 21.001H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],TA=[["path",{d:"M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Jn=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],f1=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Fk=[["path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.66873 3 5.76018 4.80989 4.20404 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 3V4.27816C3 6.47004 3 7.56599 3.70725 8.16512C4.4145 8.76425 5.49553 8.58408 7.6576 8.22373L9 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],eh=[["path",{d:"M18 19C18 19 13.5811 14 12 14C10.4188 14 6 19 6 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 5.00004C18 5.00004 13.5811 9.99999 12 10C10.4188 10 6 5 6 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],th=[["path",{d:"M10.3483 10H13.6517C15.6822 10 16.6974 10 16.9501 9.39139C17.2028 8.78277 16.4849 8.06648 15.0491 6.63391L13.3974 4.9859L13.3974 4.9859C12.7387 4.32863 12.4093 4 12 4C11.5907 4 11.2613 4.32864 10.6026 4.9859L8.95091 6.63391L8.95091 6.63391C7.51513 8.06649 6.79724 8.78277 7.0499 9.39139C7.30256 10 8.31781 10 10.3483 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.3483 14H13.6517C15.6822 14 16.6974 14 16.9501 14.6086C17.2028 15.2172 16.4849 15.9335 15.0491 17.3661L13.3974 19.0141C12.7387 19.6714 12.4093 20 12 20C11.5907 20 11.2613 19.6714 10.6026 19.0141L8.95091 17.3661C7.51513 15.9335 6.79724 15.2172 7.0499 14.6086C7.30256 14 8.31781 14 10.3483 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Wk=[["path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],h1=[["path",{d:"M19.439 15.439C20.3636 14.5212 21.0775 13.6091 21.544 12.955C21.848 12.5287 22 12.3155 22 12C22 11.6845 21.848 11.4713 21.544 11.045C20.1779 9.12944 16.6892 5 12 5C11.0922 5 10.2294 5.15476 9.41827 5.41827M6.74742 6.74742C4.73118 8.1072 3.24215 9.94266 2.45604 11.045C2.15201 11.4713 2 11.6845 2 12C2 12.3155 2.15201 12.5287 2.45604 12.955C3.8221 14.8706 7.31078 19 12 19C13.9908 19 15.7651 18.2557 17.2526 17.2526",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.85786 10C9.32783 10.53 9 11.2623 9 12.0711C9 13.6887 10.3113 15 11.9289 15C12.7377 15 13.47 14.6722 14 14.1421",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],MA=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],LA=[["path",{d:"M14 14.8135V9.18646C14 6.04126 14 4.46866 13.0747 4.0773C12.1494 3.68593 11.0603 4.79793 8.88232 7.02192C7.75439 8.17365 7.11085 8.42869 5.50604 8.42869C4.10257 8.42869 3.40084 8.42869 2.89675 8.77262C1.85035 9.48655 2.00852 10.882 2.00852 12C2.00852 13.118 1.85035 14.5134 2.89675 15.2274C3.40084 15.5713 4.10257 15.5713 5.50604 15.5713C7.11085 15.5713 7.75439 15.8264 8.88232 16.9781C11.0603 19.2021 12.1494 20.3141 13.0747 19.9227C14 19.5313 14 17.9587 14 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 9C17.6254 9.81968 18 10.8634 18 12C18 13.1366 17.6254 14.1803 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 7C21.2508 8.36613 22 10.1057 22 12C22 13.8943 21.2508 15.6339 20 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],zk=[["path",{d:"M19 9C19.6254 9.81968 20 10.8634 20 12C20 13.1366 19.6254 14.1803 19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 14.8135V9.18646C16 6.04126 16 4.46866 15.0747 4.0773C14.1494 3.68593 13.0604 4.79793 10.8823 7.02192C9.7544 8.17365 9.11086 8.42869 7.50605 8.42869C6.10259 8.42869 5.40086 8.42869 4.89677 8.77262C3.85036 9.48655 4.00854 10.882 4.00854 12C4.00854 13.118 3.85036 14.5134 4.89677 15.2274C5.40086 15.5713 6.10259 15.5713 7.50605 15.5713C9.11086 15.5713 9.7544 15.8264 10.8823 16.9781C13.0604 19.2021 14.1494 20.3141 15.0747 19.9227C16 19.5313 16 17.9587 16 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],NA=[["path",{d:"M22 22L2 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 10C17.6296 10.7667 18 11.7054 18 12.7195C18 13.1635 17.929 13.593 17.7963 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 8C21.2508 9.22951 22 10.7952 22 12.5C22 13.9164 21.4829 15.2367 20.5906 16.348",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 14C14 17.1452 14 19.5313 13.074 19.9227C12.1481 20.3141 11.0583 19.2021 8.8787 16.9781C7.7499 15.8264 7.106 15.5713 5.5 15.5713C4.3879 15.5713 3.02749 15.7187 2.33706 14.6643C2 14.1496 2 13.4331 2 12C2 10.5669 2 9.85038 2.33706 9.33566C3.02749 8.28131 4.3879 8.42869 5.5 8.42869C6.60725 8.42869 7.3569 8.43869 7.96 7.96M14 9.5C14 6.3548 14.026 4.46866 13.1 4.0773C12.3292 3.75147 11.5323 4.46765 10 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Kk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},$=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},C)=>{const b=t!==void 0?r?Number(t)*24/Number(n):t:void 0,y=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},x={ref:C,...Kk,width:n,height:n,color:d||e,className:o,...y,...g},k=[...l&&i?i:c].sort(([,T],[,R])=>{const N=T.opacity!==void 0;return R.opacity!==void 0?1:N?-1:0}).map(([T,R])=>{const N=R.opacity!==void 0,L=N&&!h?R.opacity:void 0,M=f?{...R.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...R,...y,...M,opacity:L,key:R.key})});return m.createElement("svg",x,k)});$.displayName="HugeiconsIcon";const mi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uk=mi&&"documentMode"in document?document.documentMode:null;var IC;const Hk=(IC=navigator.userAgentData)==null?void 0:IC.platform,Wi=mi&&/macOS|iPod|iPhone|iPad/.test(Hk);mi&&"InputEvent"in window&&!Uk&&"getTargetRanges"in new window.InputEvent("input");const Yk=mi&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Zk=768,rt=mi&&navigator.maxTouchPoints>0&&window.innerWidth<=Zk,gi=mi&&window.matchMedia("(hover: hover)").matches,Yn=mi&&!gi&&!rt,Gk="1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4))",Jt=m.forwardRef(function({label:n,icon:t,iconColor:r,tooltipDisabled:o,flexBorder:i,className:l,...c},d){const f=["action-icon",l].filter(Boolean).join(" ");return s.jsx(v.Tooltip,{label:n,disabled:o||!gi,children:s.jsx(v.Flex,{component:"div",w:32,h:32,gap:0,justify:"center",align:"center",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",bdrs:"8px",bd:i?Gk:void 0,children:s.jsx(v.ActionIcon,{ref:d,size:28,variant:"transparent",bd:"none",className:f,...c,children:s.jsx($,{icon:t,size:16,color:r})})})})});function Ci({label:e,ariaLabel:n,onClick:t}){return s.jsx(Jt,{className:"header-menu__action-icon","aria-label":n,radius:"md",variant:"default",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",size:28,label:e,onClick:t,icon:sn,iconColor:"var(--mantine-color-red-5)"})}function Mu({label:e,ariaLabel:n,onClick:t}){return s.jsx(Jt,{className:"header-menu__action-icon","aria-label":n,radius:"md",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",variant:"default",size:28,label:e,onClick:t,icon:ir,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})}const p1=m.forwardRef(function({isEmpty:n,copyToClipboard:t,onDuplicate:r,tooltipCopy:o,tooltipDuplicate:i},l){const[c,d]=m.useState(!1),f=n?i:o;function h(){if(n){r();return}t().then(C=>{C&&(d(!0),setTimeout(()=>{d(!1)},1e3))})}const g=n?ir:c?Jn:sl;return s.jsx(Jt,{ref:l,className:!n&&c?"header-menu__action-icon header-menu__copy-icon header-menu__copy-icon--success":"header-menu__action-icon header-menu__copy-icon","aria-label":f,label:f,onClick:h,icon:g,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})});function jA(e,n){const[t,r]=m.useState(()=>{let o=!1;return e.getEditorState().read(()=>{var i;o=!!((i=n())!=null&&i.getTextContent().trim())}),o});return m.useEffect(()=>e.registerUpdateListener(({editorState:o})=>{o.read(()=>{var l;const i=!!((l=n())!=null&&l.getTextContent().trim());r(c=>c===i?c:i)})}),[e,n]),t}const Vk=80,qk=.5,Bt=({title:e,children:n,classNames:t,onClose:r,...o})=>{const i=["mobile-drawer",t==null?void 0:t.content].filter(Boolean).join(" ").trim(),l=m.useRef(null),c=m.useRef(null),d=()=>{var C;return(C=l.current)==null?void 0:C.closest(".mobile-drawer")},f=C=>{const b=d();b&&(c.current={startY:C.touches[0].clientY,startTime:Date.now(),active:!0},b.style.transition="none")},h=C=>{const b=c.current,y=d();if(!(b!=null&&b.active)||!y)return;const x=C.touches[0].clientY-b.startY;x>0&&(y.style.transform=`translateY(${x}px)`)},g=C=>{const b=c.current,y=d();if(!(b!=null&&b.active)||!y)return;const x=C.changedTouches[0].clientY-b.startY,w=Date.now()-b.startTime,k=w>0?x/w:0;y.style.transition="",y.style.transform="",(x>Vk||k>qk)&&(r==null||r()),c.current=null};return s.jsxs(v.Drawer,{position:"bottom",size:"auto",withCloseButton:!1,padding:0,zIndex:1001,lockScroll:!0,onClose:r,classNames:{...t,content:i||void 0},...o,children:[s.jsx(v.Box,{ref:l,className:"mobile-drawer__handle-rail",onTouchStart:f,onTouchMove:h,onTouchEnd:g,children:s.jsx(v.Box,{className:"mobile-drawer__handle"})}),s.jsxs(v.Box,{className:"mobile-drawer__body",children:[e?s.jsx(v.Text,{component:"p",className:"mobile-drawer__title",children:e}):null,s.jsx(v.Box,{className:"mobile-drawer__main",children:n})]})]})};class jo extends p.TextNode{constructor(n,t){super(n,t)}static getType(){return"extended-text"}static clone(n){return new jo(n.__text,n.__key)}static importDOM(){const n=p.TextNode.importDOM(),t=document.body.getAttribute("mode")?{code:()=>({conversion:qo(n==null?void 0:n.span),priority:1}),s:()=>({conversion:qo(n==null?void 0:n.span),priority:1})}:{code:()=>({conversion:qo(n==null?void 0:n.code),priority:1})};return{...n,...t,em:()=>({conversion:qo(n==null?void 0:n.em),priority:1}),span:()=>({conversion:qo(n==null?void 0:n.span),priority:1}),strong:()=>({conversion:qo(n==null?void 0:n.strong),priority:1}),sub:()=>({conversion:qo(n==null?void 0:n.sub),priority:1}),sup:()=>({conversion:qo(n==null?void 0:n.sup),priority:1})}}static importJSON(n){return p.TextNode.importJSON(n)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(n){let{element:t}=super.exportDOM(n);return t instanceof HTMLElement&&t.setAttribute("lexical-element","true"),{element:t}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function ci(e=""){return p.$applyNodeReplacement(new jo(e))}function In(e){return e instanceof jo}function qo(e){return n=>{const t=e==null?void 0:e(n);if(!t)return null;const r=t.conversion(n);if(!r)return r;const o=n.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),i=o?n.style.backgroundColor:"",l=o?n.style.color:"",c=n.style.textDecoration;return{...r,forChild:(d,f)=>{const g=((r==null?void 0:r.forChild)??(C=>C))(d,f);if(In(g)){const C=[i?`background-color: ${i}`:null,l?`color: ${l}`:null,c?`text-decoration: ${c}`:null].filter(b=>b!=null).join("; ");if(C.length)return g.setStyle(C)}return g}}}}const nh={...Rr};function Qk(){return{node:al()}}class Vi extends p.ElementNode{static getType(){return"callout"}static clone(n){return new Vi(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div");return typeof n.theme.callout=="string"&&ve.addClassNamesToElement(t,nh.callout),t}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:n=>n.className!==nh.callout?null:{conversion:Qk,priority:2}}}static importJSON(){return al()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function al(){return new Vi}function Ai(e){return e instanceof Vi}const Jk=new Set(["success","warning","alert"]),Xk=new Set(["#f3f3f4","rgba(219, 242, 233, 1)","rgba(255, 224, 223, 1)","rgba(254, 247, 230, 1)","rgba(254, 247, 230)"]);function Gg(e,n){return!(Jk.has(n)||!e||Xk.has(e))}function $k(e){const n=e.getAttribute("data-type"),t=e.style.backgroundColor;return{node:ll(t,n||"default")}}class Ro extends p.ElementNode{constructor(t,r,o){super(o);Ne(this,"__backgroundColor");Ne(this,"__calloutType");this.__backgroundColor=t===void 0?"":t,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(t){return new Ro(t.__backgroundColor,t.__calloutType,t.__key)}createDOM(t){const r=document.createElement("div");return typeof t.theme.callout=="string"&&ve.addClassNamesToElement(r,t.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),Gg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor="",r}updateDOM(t,r){return t&&(r.setAttribute("data-type",this.__calloutType),Gg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor=""),!1}static importDOM(){return{div:t=>t.className!==nh.calloutWrapper?null:{conversion:$k,priority:2}}}static importJSON(t){return ll(t.backgroundColor,t.calloutType)}setBackgroundColor(t){const r=this.getWritable();r.__backgroundColor=t}setType(t="default"){const r=this.getWritable();r.__calloutType=t}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function ll(e="",n="default"){return new Ro(e,n)}function fo(e){return e instanceof Ro}function qi({label:e,checked:n,onSelect:t}){return s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1,width:"100%",minWidth:0}},bg:n?"light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))":void 0,onClick:t,children:s.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[s.jsx(v.Text,{size:"sm",children:e}),n?s.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"}):null]})})}function cl({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,searchable:i,data:l,value:c,defaultValue:d,placeholder:f,onChange:h,inputClassName:g,...C}){var Q;const{t:b}=Ue.useTranslation(),{onClick:y,type:x,onCopy:w,onCut:k,onPaste:T,classNames:R,allowDeselect:N,...L}=C,S=[typeof R=="object"&&R&&"input"in R?R.input:void 0,g].filter(Boolean).join(" ")||void 0,I=S?{...typeof R=="object"&&R?R:{},input:S}:R,[j,B]=m.useState(""),_=v.useCombobox({onDropdownClose:()=>{_.resetSelectedOption(),_.focusTarget(),B("")},onDropdownOpen:()=>{_.focusSearchInput()}}),D=m.useMemo(()=>(Array.isArray(l)?l:[]).map(J=>typeof J=="string"?{value:J,label:J}:J),[l]),O=c??d??null,W=!i||!j?D:D.filter(J=>J.label.toLowerCase().includes(j.toLowerCase().trim())),K=((Q=D.find(J=>J.value===O))==null?void 0:Q.label)??"",F=(J,xe,we)=>o?o({option:{value:J,label:xe},checked:we}):s.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[s.jsx(v.Text,{size:"sm",children:xe}),we?s.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"}):null]}),{width:Y,...q}=t||{},ee=Y??250;return s.jsxs(v.Combobox,{store:_,withinPortal:!0,onOptionSubmit:J=>{const xe=D.find(we=>we.value===J)??{value:J,label:J};h==null||h(J,xe),_.closeDropdown()},width:ee,...q,children:[s.jsx(v.Combobox.Target,{children:s.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:I,pointer:!0,rightSection:r??s.jsx("span",{className:"editor-select__chevron",children:s.jsx($,{icon:Jr,size:16})}),rightSectionPointerEvents:"none",onClick:J=>{y==null||y(J),_.toggleDropdown()},...L,children:K})}),s.jsxs(v.Combobox.Dropdown,{children:[i&&s.jsx(v.Combobox.Search,{value:j,onChange:J=>B(J.currentTarget.value),placeholder:f,size:e,leftSectionWidth:40,leftSection:s.jsx($,{icon:tu,size:16,color:"var(--mantine-color-gray-6)"}),leftSectionPointerEvents:"none",classNames:{input:"editor-select__search-input"}}),s.jsx(v.Combobox.Options,{className:["editor-select__combobox-options",i?"editor-select__combobox-options--after-search":""].filter(Boolean).join(" "),style:{maxHeight:200,overflowY:"auto"},children:W.length>0?W.map(J=>{const xe=J.value===O;return s.jsx(v.Combobox.Option,{value:J.value,className:xe?"editor-select__combobox-option--selected":void 0,children:F(J.value,J.label,xe)},J.value)}):s.jsx(v.Combobox.Empty,{children:b("editor.menu.main.code.languageSearchNoResults")})})]})]})}function e7({onCollapsibleCode:e,copyToClipboard:n,onDuplicateCodeBlock:t,hasCodeContent:r,onRemoveCodeBlock:o,showExpandButton:i,isCollapsed:l}){const{t:c}=Ue.useTranslation();return s.jsx("div",{className:"code-block-header-menu__burger",children:s.jsxs(v.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[s.jsx(v.Menu.Target,{children:s.jsx(v.Button,{radius:"sm",h:25,px:5,size:"xs",variant:"default",children:s.jsx(Ee.IconMenu2,{size:18})})}),s.jsxs(v.Menu.Dropdown,{children:[s.jsx(v.Menu.Item,{rightSection:s.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:r?sl:ir}),onClick:()=>{r?n():t()},children:s.jsx(v.Text,{size:"12px",children:c(r?"editor.contextMenu.copy":"editor.contextMenu.duplicate")})}),i&&s.jsx(v.Menu.Item,{onClick:e,rightSection:l?s.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:th}):s.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:eh}),children:s.jsx(v.Text,{size:"12px",children:c(l?"editor.menu.main.code.collapsible.expand":"editor.menu.main.code.collapsible.hidden")})}),s.jsx(v.Menu.Item,{rightSection:s.jsx($,{size:16,color:"var(--mantine-color-red-outline)",icon:sn}),onClick:o,children:s.jsx(v.Text,{size:"12px",children:c("editor.actions.delete")})})]})]})})}const Ss={json:"JSON",...Gt.CODE_LANGUAGE_FRIENDLY_NAME_MAP};function t7({editor:e,headerKey:n}){const{t}=Ue.useTranslation(),{disable:r}=m.useContext(ft),[o,{open:i,close:l}]=Ft.useDisclosure(!1),[c,{open:d,close:f}]=Ft.useDisclosure(!1),[h,g]=m.useState(!1),[C,b]=m.useState(""),[y,x]=m.useState(!1),[w,k]=m.useState(""),T=m.useMemo(()=>Object.entries(Ss).map(([F,Y])=>({value:F,label:Y})),[]),R=m.useMemo(()=>{const F=w.toLowerCase().trim();return F?T.filter(Y=>Y.label.toLowerCase().includes(F)):T},[T,w]),N=()=>{const F=p.$getNodeByKey(n);if(!F)return null;const Y=F.getNextSibling();return yn(Y)?Y:null},L=m.useCallback(()=>{const F=p.$getNodeByKey(n);if(!F)return null;const Y=F.getNextSibling();return yn(Y)?Y:null},[n]),M=jA(e,L);m.useEffect(()=>{e.getEditorState().read(()=>{const F=N();if(!F)return;const Y=F.getLanguage()||"plain",q=Gt.CODE_LANGUAGE_MAP[Y]||Y;b(q),g(F.__isCollapsed)})},[e,n]),m.useEffect(()=>{const F=()=>{let q=null;if(e.getEditorState().read(()=>{const Q=N();Q&&(q=Q.getKey())}),h){x(!0);return}if(!q){x(!1);return}const ee=e.getElementByKey(q);if(!ee){x(!1);return}x(ee.offsetHeight>300)};F();const Y=e.registerUpdateListener(()=>{F()});return window.addEventListener("resize",F),()=>{Y(),window.removeEventListener("resize",F)}},[e,n,h]);const S=F=>{F&&e.update(()=>{const Y=N();if(!Y)return;Y.setLanguage(F),Y.selectStart();const q=Y.getLanguage()||"plain",ee=Gt.CODE_LANGUAGE_MAP[q]||q;b(ee)})},I=()=>{e.update(()=>{const F=N();F&&(F.toggleCodeState(),g(Y=>!Y))})},j=()=>{l(),I()},B=()=>{e.update(()=>{const F=p.$getNodeByKey(n),Y=F==null?void 0:F.getParent();Do(Y)&&Y.remove()})},_=()=>{l(),B()},D=async()=>{let F="";if(e.getEditorState().read(()=>{const Y=N();Y&&(F=Y.getTextContent())}),!F.trim())return!1;try{return await navigator.clipboard.writeText(F),!0}catch(Y){return console.error("Failed to copy code block:",Y),!1}},O=()=>{e.update(()=>{const F=p.$getNodeByKey(n),Y=F==null?void 0:F.getParent();Do(Y)&&Y.insertAfter(Ir(Y))})},W=()=>{l(),O()},K=()=>{l(),D()};return rt?s.jsxs(s.Fragment,{children:[s.jsxs(v.Group,{className:"code-block-header-mobile__row",wrap:"nowrap",justify:"space-between",align:"center",gap:"xs",flex:1,miw:0,children:[s.jsx(v.Box,{className:"code-block-header-mobile__select-host",children:s.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:120,classNames:{input:"editor-select__input--codeblock"},rightSection:s.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{l(),d()},children:Ss[C]??C})}),!r&&s.jsx(Jt,{label:t("editor.toolbar.more"),icon:Gs,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:()=>{f(),i()}})]}),s.jsx(Bt,{opened:!r&&c,onClose:()=>{f(),k("")},title:t("editor.menu.main.code.languageDrawerTitle"),children:s.jsxs(v.Stack,{gap:"sm",p:0,children:[s.jsx(v.TextInput,{value:w,onChange:F=>k(F.currentTarget.value),placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),size:"sm",classNames:{input:"code-block-language-drawer__search-input editor-select__search-input"}}),s.jsx(v.Stack,{gap:4,children:R.length===0?s.jsx(v.Text,{size:"sm",c:"dimmed",py:"xs",children:t("editor.menu.main.code.languageSearchNoResults")}):R.map(F=>{const Y=F.value===C;return s.jsx(qi,{label:F.label,checked:Y,onSelect:()=>{S(F.value),f(),k("")}},F.value)})})]})}),s.jsx(Bt,{opened:!r&&o,onClose:l,title:t("editor.menu.main.code.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[y&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:j,leftSection:s.jsx($,{icon:h?th:eh,size:16,color:"var(--mantine-color-dimmed)"}),children:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:M?K:W,leftSection:s.jsx($,{icon:M?sl:ir,size:16,color:"var(--mantine-color-dimmed)"}),children:t(M?"editor.contextMenu.copy":"editor.contextMenu.duplicate")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:_,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):s.jsxs(s.Fragment,{children:[s.jsx(cl,{data:T,value:C,size:"sm",rightSectionWidth:32,searchable:!0,w:120,placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),onChange:S,disabled:r,classNames:{wrapper:"editor-select__wrapper--codeblock"},inputClassName:"editor-select__input--codeblock"}),!r&&s.jsxs("div",{className:"code-block-header-menu__main",children:[s.jsxs("div",{className:"code-block-header-menu__actions",children:[!Yn&&s.jsx(v.Tooltip,{label:t("editor.menu.main.code.exitCommandText"),children:s.jsx(v.Text,{size:"xs",c:"dimmed",children:"(Shift+Enter)"})}),y&&s.jsx(Jt,{className:"header-menu__action-icon","aria-label":t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),label:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),onClick:I,icon:h?th:eh,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"}),s.jsx(p1,{isEmpty:!M,copyToClipboard:D,onDuplicate:O,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),s.jsx(Ci,{label:t("editor.actions.delete"),ariaLabel:"remove-code-block",onClick:B})]}),s.jsx(e7,{onCollapsibleCode:I,copyToClipboard:D,onDuplicateCodeBlock:O,hasCodeContent:M,onRemoveCodeBlock:B,showExpandButton:y,isCollapsed:h})]})]})}const bf=new Map;class Qn extends Gt.CodeNode{constructor(t=!1,r="plain",o){super(r,o);Ne(this,"__isCollapsed");this.__isCollapsed=t}static getType(){return"extend-code"}static clone(t){return new Qn(t.__isCollapsed,t.getLanguage(),t.__key)}static importJSON(t){const{isCollapsed:r=!0,language:o=null}=t,i=new Qn(r,o,t.key);return i.setLanguage(t.language||""),i}createDOM(t,r){const o=document.createElement("code");o.classList.add("dsd__theme__code"),o.setAttribute("spellcheck","false"),o.setAttribute("data-language",String(this.__language)),o.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(o.classList.add(t.theme.codeCollapsed),o.setAttribute("data-collapsed",String(this.__isCollapsed))):o.setAttribute("data-collapsed","false");const i=Ss[this.__language||"plain"]||this.__language;return o.setAttribute("data-name-language",String(i)),setTimeout(()=>{bf.set(this.__key,o.getAttribute("data-gutter")||"")},0),o}updateDOM(t,r,o){if(this.__isCollapsed!==t.__isCollapsed)return this.__isCollapsed?(r.classList.add(Rr.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Rr.codeCollapsed),r.setAttribute("data-collapsed","false")),!1;if(this.__language!==t.__language){const i=Ss[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(i))}return setTimeout(()=>{bf.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(t,r,o)}exportDOM(t){var l;const r=document.createElement("pre");ve.addClassNamesToElement(r,t._config.theme.code,(l=t._config.theme.ltr)==null?void 0:l[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain");const o=Ss[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(o)),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(t._config.theme.codeCollapsed);const i=bf.get(this.__key);return r.setAttribute("data-gutter",i||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const o=r.getAttribute("data-collapsed")==="true",i=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new Qn(o,i)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const t=this.getWritable();return t.__isCollapsed=!this.__isCollapsed}insertNewAfter(t,r=!0){const{anchor:o,focus:i}=t,c=(o.isBefore(i)?o:i).getNode();if(p.$isTextNode(c)){let d=n7(c);const f=[];for(;;)if(p.$isTabNode(d))f.push(p.$createTabNode()),d=d.getNextSibling();else if(Gt.$isCodeHighlightNode(d)){let w=0;const k=d.getTextContent(),T=d.getTextContentSize();for(;w<T&&k[w]===" ";)w++;if(w!==0&&f.push(p.$applyNodeReplacement(new Gt.CodeHighlightNode(" ".repeat(w)))),w!==T)break;d=d.getNextSibling()}else break;const h=c.splitText(o.offset)[0],g=o.offset===0?0:1,C=h.getIndexWithinParent()+g,b=c.getParentOrThrow(),y=[p.$createLineBreakNode(),...f];b.splice(C,0,y);const x=f[f.length-1];x?x.select():o.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(yn(c)){const{offset:d}=t.anchor;c.splice(d,0,[p.$createLineBreakNode()]),c.select(d+1,d+1)}return null}}function rh(e=!1){return p.$applyNodeReplacement(new Qn(e))}function yn(e){return e instanceof Qn}function n7(e){let n=e,t=e;for(;Gt.$isCodeHighlightNode(t)||p.$isTabNode(t);)n=t,t=t.getPreviousSibling();return n}function en(e){const n=p.$getSelection();if(p.$isRangeSelection(n)){const r=n.anchor.getNode();if(r!==null){const o=r.getParent();return e?o:r}}return null}function r7(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=n.getNodes();let r=null,o=null;if(t.forEach((i,l)=>{l===0&&(r=i.getParent()),l===t.length-1&&(o=i.getParent())}),r&&o){const i=p.$getSelection();p.$isRangeSelection(i)&&(r.isAttached()&&o.isAttached()?In(r)&&In(o)?i.setTextNodeRange(r,0,o,o.getTextContentSize()):(i.anchor.set(r.getKey(),0,"element"),i.focus.set(o.getKey(),o.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const Lu=(e,n)=>{e.update(()=>{if(typeof n=="string"){const t=p.$getNodeByKey(n);t&&t.remove();return}n&&n.remove()})};function o7(e,n){n.update(()=>{let t=p.$createRangeSelection();e.getParent()&&(t.anchor.set(e.getKey(),0,"element"),t.focus.set(e.getKey(),0,"element"),p.$setSelection(t))})}function i7(){const e=p.$getSelection();if(p.$isRangeSelection(e)){const n=e.anchor,t=e.focus,r=t.getNode(),o=yn(r)?r.__size:r.getTextContentSize(),i=n.offset===0,l=t.offset===o;if(i&&l)return!0}return!1}function Ir(e,n){const t=p.$copyNode(e),r=[[e,t]];let o;for(;(o=r.length)>0;)for(let i=0;i<o;i++){const l=r.shift();if(l!==void 0){const[c,d]=l;if(p.$isElementNode(c)&&p.$isElementNode(d)){const f=c.getChildren();for(const h of f){if(n&&h.is(n))continue;const g=p.$copyNode(h);In(h)&&In(g)&&(g.setFormat(h.__format),g.setStyle(h.__style)),d.append(g),r.push([h,g])}}}}return t}function s7(e,n,t=3){if(!e)return null;let r=e,o=0;for(;r&&o<t;){if(n(r))return r;if(r.__type==="root")break;r=r.getParent(),o++}return null}function Os(e,n,t){var o;const r=t||{root:!0};if(e){let i=e.getParent();if(r[i==null?void 0:i.__type]){const l=n.getElementByKey(e.__key),c=s7(i,Ai);if(c&&(c.getFirstChild()===e.getTopLevelElement()||c.getFirstChild()===((o=e.getTopLevelElement())==null?void 0:o.getParent()))){const f=c.getParent(),h=f?n.getElementByKey(f.__key):null;if(h)return{htmlElement:h,lexicalNode:p.$getNearestNodeFromDOMNode(h)}}return{htmlElement:l,lexicalNode:e}}return Os(i,n,r)}return{htmlElement:null,lexicalNode:null}}function Vg(e,n,t,r){var o;if(e)if((e==null?void 0:e.__type)==="root"||(e==null?void 0:e.__type)==="layout-item"||(e==null?void 0:e.__type)==="callout-wrapper"||(e==null?void 0:e.__type)==="collapsible-content"){const i=(r==null?void 0:r.clientY)||0,{left:l}=((o=n.getElementByKey(e.__key))==null?void 0:o.getBoundingClientRect())||{left:0},{paddingLeft:c}=window.getComputedStyle(r==null?void 0:r.target),d=document.elementFromPoint(l+parseFloat(c)+10,i),f=p.$getNearestNodeFromDOMNode(d||document.body);return f?Os(f,n,t):{htmlElement:null,lexicalNode:null}}else return Os(e,n,t);return{htmlElement:null,lexicalNode:null}}const zi=e=>{e.update(()=>{p.$getSelection()!==null&&p.$setSelection(null)})},oh=()=>{const e=p.$getRoot(),n=e==null?void 0:e.getFirstChild();return e.getChildren().length>1?!1:n&&p.$isParagraphNode(n)&&n.isEmpty()},RA=e=>{e.update(()=>{const n=p.$getRoot(),t=p.$createParagraphNode(),r=p.$getSelection();p.$isRangeSelection(r)&&(r.format=0,r.setStyle("")),n.append(t).selectEnd()})},ii=p.createCommand(),ih=p.createCommand(),Nu=p.createCommand(),sh=p.createCommand(),ju=p.createCommand(),IA=p.createCommand(),DA=p.createCommand(),m1=p.createCommand(),Va=p.createCommand(),nu=p.createCommand(),OA=p.createCommand();function Uc(e){for(;e;){if(Ou(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const a7=e=>{e.update(()=>{let n=p.$getSelection();if(!n)return;if(p.$isNodeSelection(n)&&(n=n.clone(),n.dirty=!0),!p.$isRangeSelection(n)||n.isCollapsed()){dn.$setBlocksType(n,()=>Qa(()=>{const r=Ya("",!1);return setTimeout(()=>{e.dispatchCommand(nu,r.getKey())},0),r})());return}const t=Qa(()=>{const r=Ya("",!1);return setTimeout(()=>{e.dispatchCommand(nu,r.getKey())},0),r})();n.insertNodes([t,p.$createParagraphNode()])})};function l7({editor:e,headerKey:n}){const{t}=Ue.useTranslation(),{disable:r}=m.useContext(ft),[o,{open:i,close:l}]=Ft.useDisclosure(!1),c=m.useCallback(()=>{const w=p.$getNodeByKey(n);if(!w)return null;const k=Uc(w);return k?k.getChildren().find(_o)??null:null},[n]),d=m.useCallback(()=>c(),[c]),f=jA(e,d),h=async()=>{let w="";e.getEditorState().read(()=>{const T=c();T&&(w=T.getEquation())});const k=w.trim();if(!k)return!1;try{return await navigator.clipboard.writeText(k),!0}catch{return!1}},g=m.useCallback(()=>{e.update(()=>{const w=p.$getNodeByKey(n);if(!w)return;const k=Uc(w);if(!k||!Ou(k))return;const T=p.$createParagraphNode();k.insertAfter(T),k.remove(),T.selectStart()})},[e,n]),C=m.useCallback(()=>{e.update(()=>{const w=p.$getNodeByKey(n);if(!w)return;const k=Uc(w);k&&k.insertAfter(Ir(k))})},[e,n]),b=m.useCallback(()=>{l(),C()},[l,C]),y=m.useCallback(()=>{l(),h()},[l]),x=m.useCallback(()=>{l(),g()},[l,g]);return rt?s.jsxs(s.Fragment,{children:[s.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&s.jsx(Jt,{label:t("editor.toolbar.more"),icon:Gs,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:i}),s.jsx(Bt,{opened:o,onClose:l,title:t("editor.menu.other.equation.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:f?y:b,leftSection:s.jsx($,{icon:f?sl:ir,size:16,color:"var(--mantine-color-dimmed)"}),children:t(f?"editor.contextMenu.copy":"editor.contextMenu.duplicate")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:x,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):s.jsxs(s.Fragment,{children:[s.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&s.jsxs(v.Group,{gap:4,children:[s.jsx(p1,{isEmpty:!f,copyToClipboard:h,onDuplicate:C,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),s.jsx(Ci,{label:t("editor.actions.delete"),ariaLabel:"remove-equation-block",onClick:g})]})]})}function c7(){const[e,n]=m.useState(!1),t=()=>n(!0),r=()=>n(!1);return m.useEffect(()=>{const o=i=>{e&&(i.preventDefault(),i.returnValue="")};return e&&window.addEventListener("beforeunload",o),()=>{e&&window.removeEventListener("beforeunload",o)}},[e]),{startLoading:t,stopLoading:r}}function u7({size:e=20,color:n="currentColor"}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false",children:[s.jsx("path",{d:"M13.5 8C13.5 7.79302 13.4883 7.58864 13.4661 7.38802C13.436 7.11376 13.634 6.86706 13.9082 6.83659C14.1827 6.80624 14.4299 7.00418 14.4603 7.27865C14.4865 7.51568 14.5 7.7564 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C5.95787 14.5 4.13548 13.5575 2.94466 12.0859C2.77102 11.8713 2.80424 11.5565 3.01888 11.3828C3.23354 11.2092 3.54832 11.2424 3.72201 11.457C4.73113 12.7041 6.27244 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C10.0422 1.5 11.8645 2.44246 13.0553 3.91406C13.229 4.12872 13.1958 4.4435 12.9811 4.61719C12.7665 4.79083 12.4517 4.75761 12.278 4.54297C11.2688 3.2959 9.72758 2.5 8 2.5C4.96244 2.5 2.5 4.96244 2.5 8C2.5 8.20695 2.51167 8.41133 2.53385 8.61198C2.56402 8.88625 2.36604 9.13295 2.0918 9.16341C1.81733 9.19376 1.57006 8.99582 1.53971 8.72135C1.51352 8.48435 1.5 8.24363 1.5 8Z",fill:n}),s.jsx("path",{d:"M12.8337 2.66667V2C12.8337 1.72386 13.0575 1.5 13.3337 1.5C13.6098 1.5 13.8337 1.72386 13.8337 2V2.66667C13.8337 3.12394 13.8348 3.51736 13.7926 3.83073C13.7486 4.15842 13.649 4.47242 13.3942 4.72721C13.1394 4.98198 12.8254 5.08157 12.4977 5.12565C12.1843 5.16778 11.7909 5.16667 11.3337 5.16667H10.667C10.3908 5.16667 10.167 4.94281 10.167 4.66667C10.167 4.39052 10.3908 4.16667 10.667 4.16667H11.3337C11.8191 4.16667 12.133 4.16585 12.3643 4.13477C12.5811 4.10562 12.6491 4.05826 12.6872 4.02018C12.7252 3.98212 12.7726 3.91414 12.8018 3.69727C12.8328 3.46602 12.8337 3.15214 12.8337 2.66667Z",fill:n}),s.jsx("path",{d:"M2.167 14V13.3334C2.167 12.8761 2.16588 12.4827 2.20801 12.1693C2.25209 11.8416 2.35168 11.5276 2.60645 11.2728C2.86124 11.0181 3.17524 10.9185 3.50293 10.8744C3.8163 10.8323 4.20973 10.8334 4.667 10.8334H5.33366C5.6098 10.8334 5.83366 11.0572 5.83366 11.3334C5.83366 11.6095 5.6098 11.8334 5.33366 11.8334H4.667C4.18152 11.8334 3.86764 11.8342 3.6364 11.8653C3.41952 11.8944 3.35154 11.9418 3.31348 11.9799C3.2754 12.018 3.22804 12.086 3.1989 12.3028C3.16781 12.534 3.167 12.8479 3.167 13.3334V14C3.167 14.2762 2.94314 14.5 2.667 14.5C2.39085 14.5 2.167 14.2762 2.167 14Z",fill:n})]})}function ul({onPause:e,onResume:n,onCancel:t,onRetry:r,isPaused:o=!1,showRetry:i=!1}){const{t:l}=Ue.useTranslation();return s.jsxs("div",{className:"upload-actions",children:[(e||n)&&s.jsx(v.Tooltip,{label:l(o?"editor.video.actions.resume":"editor.video.actions.pause"),children:s.jsx(v.ActionIcon,{variant:"light",color:o?"blue":"gray",size:28,radius:"md",onClick:o?n:e,children:o?s.jsx($,{icon:bA,size:16,color:"currentColor"}):s.jsx($,{icon:AA,size:16,color:"currentColor"})})}),i&&r&&s.jsx(v.Tooltip,{label:l("editor.video.actions.retry"),children:s.jsx(v.ActionIcon,{variant:"light",color:"gray",size:28,radius:"md",onClick:r,children:s.jsx(u7,{size:16,color:"currentColor"})})}),t&&s.jsx(v.Tooltip,{label:l("editor.video.actions.cancel"),children:s.jsx(v.ActionIcon,{variant:"light",color:"red",size:28,radius:"md",onClick:t,children:s.jsx($,{icon:u1,size:16,color:"currentColor"})})})]})}function Ru({progress:e,showSpeed:n=!0,showRemaining:t=!1,showInfo:r=!0,isPaused:o=!1}){const{t:i}=Ue.useTranslation(),l=h=>{const g=Math.max(0,h);return g===0?"0 MB":`${(g/(1024*1024)).toFixed(2)} MB`},c=h=>{const g=Math.max(0,h);return g===0?"0.00 MB/s":`${(g/(1024*1024)).toFixed(2)} MB/s`},d=h=>{if(h<=0)return"0s";if(h<60)return`${h}s`;const g=Math.floor(h/60),C=h%60;return`${g}m ${C}s`},f=Math.min(100,Math.max(0,Math.round(e.percent)));return s.jsxs("div",{className:"upload-progress-container",children:[s.jsxs("div",{className:"upload-progress-header",children:[s.jsxs(v.Text,{size:"sm",fw:400,c:"var(--mantine-color-bright)",children:[f,"%"]}),o?s.jsx(v.Text,{size:"sm",c:"var(--mantine-color-text)",children:i("editor.video.actions.pause")}):t&&e.remaining>0&&s.jsxs(v.Text,{size:"sm",c:"var(--mantine-color-dimmed)",children:[i("editor.video.upload.remaining"),s.jsxs(v.Text,{component:"span",c:"var(--mantine-color-text)",children:[" ",d(e.remaining)]})]})]}),s.jsx(v.Progress,{value:f,size:6,radius:"md"}),r&&s.jsxs("div",{className:"upload-progress-info",children:[s.jsxs(v.Text,{size:"xs",c:"dimmed",children:[i("editor.video.upload.progress"),s.jsxs(v.Text,{component:"span",size:"xs",c:"var(--mantine-color-text)",inherit:!0,children:[" ",l(e.uploaded)," / ",l(e.total)]})]}),n&&!o&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"upload-progress-dot"}),s.jsx(v.Text,{size:"xs",c:"var(--mantine-color-text)",children:c(e.speed||0)})]})]})]})}function ru({isPaused:e=!1}){const{t:n}=Ue.useTranslation();return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[s.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e?void 0:"video-upload-spinner",children:[s.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-gray-light)",strokeWidth:2.5}),!e&&s.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-bright)",strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:"66 22"})]}),s.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",children:n("editor.video.upload.uploading")})]})}function d7({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?s.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:s.jsx(v.Stack,{align:"center",children:s.jsx(ru,{isPaused:o})})}):s.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:s.jsxs(v.Stack,{gap:"lg",align:"center",children:[s.jsx(ru,{isPaused:o}),s.jsx(v.Box,{w:"100%",children:s.jsx(Ru,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),s.jsx(ul,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const f7=8*1024*1024,h7=3e4,qg=3,p7=3,m7=15,g7=3e3,C7=20,Qg=.15;function yf(e,n){return new Promise(t=>{if(n!=null&&n.aborted){t();return}const r=setTimeout(t,e);n==null||n.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}function PA({api:e,parentId:n,parentType:t="PAGE",onComplete:r,onError:o}){const[i,l]=m.useState({percent:0,uploaded:0,total:0,speed:0,remaining:0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,C]=m.useState(null),b=m.useRef({uploadId:null,currentOffset:0,file:null,signal:null,controller:null,lastUploadAckAt:0,uploadStallReported:!1,lastTime:0,lastBytes:0,startedAt:0,isPaused:!1,isPausing:!1,currentXhr:null,chunkAbortController:null,uploadSession:0,cancelled:!1}),y=m.useRef(null),x=m.useRef([]),w=m.useRef(0),k=m.useRef(0),T=m.useRef(null),R=m.useRef(r);R.current=r;const N=m.useRef(o);N.current=o;const L=m.useRef(e);L.current=e;const M=m.useCallback((O,W,K)=>{const F=b.current;if(F.lastTime===0)return F.lastTime=K,F.lastBytes=O,x.current=[],T.current=null,w.current=0,{speed:0,remaining:0};const Y=(K-F.lastTime)/1e3,q=O-F.lastBytes;if(q<0)return F.lastBytes=O,F.lastTime=K,{speed:T.current??0,remaining:w.current};if(Y>0&&!F.isPaused){const ee=Math.max(0,q/Y);x.current.push(ee),x.current.length>C7&&x.current.shift(),T.current===null?T.current=ee:T.current=Qg*ee+(1-Qg)*T.current;const Q=T.current;F.lastTime=K,F.lastBytes=O;const J=W>O&&Q>0?Math.ceil((W-O)/Q):0,xe=w.current;let we;return xe===0||J<=xe?we=J:we=Math.min(J,xe+1),w.current=we,{speed:Q,remaining:we}}if(F.isPaused&&x.current.length>0){const ee=x.current[x.current.length-1],Q=W>O&&ee>0?Math.ceil((W-O)/ee):0;return{speed:ee,remaining:Q}}return{speed:0,remaining:0}},[]),S=m.useCallback((O,W)=>{const K=Date.now(),{speed:F,remaining:Y}=M(O,W,K),q=W>0?Math.floor(O*100/W):0,ee=Math.max(q,k.current);k.current=ee,l({percent:ee,uploaded:Math.max(O,W*ee/100),total:W,speed:F,remaining:Y})},[M]),I=m.useCallback(async(O,W,K=0)=>{var we,Te,We,ie,X,ae,pe;const F=b.current,Y=O.size;let q=Math.max(0,K);F.lastUploadAckAt=Date.now(),F.uploadStallReported=!1,F.startedAt=Date.now(),F.lastTime=0,F.lastBytes=q,F.currentOffset=q,x.current=[],y.current&&clearInterval(y.current),y.current=setInterval(()=>{var Ce;F.isPaused||F.isPausing||!((Ce=F.signal)!=null&&Ce.aborted)&&F.currentOffset<Y&&S(F.currentOffset,Y)},1e3);let ee=0,Q=0,J=0,xe=!1;for(S(q>0?q:0,Y);q<Y;){if(F.cancelled||(we=F.signal)!=null&&we.aborted)throw new Error("Upload cancelled");if(F.isPaused)break;if(F.isPausing){F.isPausing=!1,F.isPaused=!0,h(!0);break}const Ce=Date.now();!F.uploadStallReported&&Ce-F.lastUploadAckAt>h7&&(F.uploadStallReported=!0);const G=Math.min(Y-1,q+f7-1),he=q,oe=new AbortController;F.chunkAbortController=oe;const H=()=>oe.abort();(Te=F.signal)!=null&&Te.aborted||F.cancelled?oe.abort():F.signal&&F.signal.addEventListener("abort",H,{once:!0});try{const Z=await L.current.uploadChunk(W,O,q,G,Y,oe.signal,re=>{if(F.isPaused||F.isPausing)return;const fe=he+re;fe<=G+1&&(F.currentOffset=fe)},re=>{F.currentXhr=re});if(F.chunkAbortController=null,F.currentXhr=null,(We=F.signal)==null||We.removeEventListener("abort",H),Z.expectedOffset!=null){if(ee++,ee>=qg)throw{status:409,statusText:"Conflict",data:{message:"Too many consecutive offset conflicts"}};q=Z.expectedOffset;continue}if(ee=0,Q=0,xe=!0,q=Z.nextOffset!=null?Z.nextOffset:G+1,q<Y&&await yf(500,F.signal??void 0),F.currentOffset=q,F.chunkAbortController=null,F.lastUploadAckAt=Date.now(),F.uploadStallReported=!1,!F.isPaused&&!F.isPausing&&S(q,Y),F.isPausing){F.isPausing=!1,F.isPaused=!0,h(!0);break}}catch(Z){if(F.currentXhr=null,F.chunkAbortController=null,(ie=F.signal)==null||ie.removeEventListener("abort",H),F.isPaused||F.isPausing){F.isPausing=!1,F.isPaused=!0;break}if((Z==null?void 0:Z.name)==="AbortError"||(X=F.signal)!=null&&X.aborted||F.cancelled)throw new Error("Upload cancelled");if((Z==null?void 0:Z.status)===409&&((ae=Z==null?void 0:Z.data)==null?void 0:ae.expectedOffset)!=null){if(ee++,ee>=qg)throw Z;q=Z.data.expectedOffset;continue}if((!(Z!=null&&Z.status)||(Z==null?void 0:Z.status)===0||(Z==null?void 0:Z.status)===409)&&Q<p7&&J<m7){Q++,J++;const fe=g7*Q;if(await yf(fe,F.signal??void 0),F.cancelled||(pe=F.signal)!=null&&pe.aborted||F.isPaused||F.isPausing)break;try{const ge=await L.current.fetchOffset(W);if(ge.nextOffset!=null){const Re=ge.nextOffset;if(Re===q&&Q>=2){await yf(5e3,F.signal??void 0);const Oe=await L.current.fetchOffset(W);if(Oe.nextOffset!=null&&Oe.nextOffset>q){q=Oe.nextOffset,F.currentOffset=q,Q=0;continue}}q=Re,F.currentOffset=Re}}catch{}continue}throw Z}}if(y.current&&(clearInterval(y.current),y.current=null),q>=Y&&!xe&&ee>0&&!F.isPaused&&!F.isPausing)throw{status:409,statusText:"Conflict",data:{message:"Upload completed via offset corrections without any successful chunk transfer"}};q>=Y?!F.isPaused&&!F.isPausing&&S(Y,Y):F.isPaused||F.isPausing?S(F.currentOffset,Y):S(Y,Y)},[S]),j=m.useCallback(async O=>{var Y,q,ee;const W=b.current;(W.isPaused||W.isPausing)&&(W.isPaused=!1,W.isPausing=!1,W.cancelled=!0,W.uploadId=null),d(!0),h(!1);const K=b.current;K.uploadSession++;const F=K.uploadSession;K.isPaused=!1,K.isPausing=!1,K.cancelled=!1,K.file=O,K.currentOffset=0,K.lastTime=0,K.lastBytes=0,K.uploadStallReported=!1,k.current=0,(Y=K.controller)==null||Y.abort(),K.controller=new AbortController,K.signal=K.controller.signal;try{if(!n)throw new Error("Upload requires parentId");let Q=K.uploadId,J=0;if(Q){try{const xe=await L.current.fetchOffset(Q);xe.nextOffset!=null?J=xe.nextOffset:(Q=null,K.uploadId=null,C(null))}catch{Q=null,K.uploadId=null,C(null)}Q||(Q=(await L.current.init(O,n,t)).id,K.uploadId=Q,C(Q))}else{const xe=await L.current.init(O,n,t);Q=xe.id,K.uploadId=Q,C(Q);try{const we=await L.current.fetchOffset(Q);we.nextOffset!=null&&we.nextOffset>0?J=we.nextOffset:xe.startOffset!=null&&(J=xe.startOffset)}catch{xe.startOffset!=null&&(J=xe.startOffset)}}if(!Q)throw new Error("Upload ID is missing after initialization");if(K.currentOffset=J,K.file=O,await I(O,Q,J),K.uploadSession!==F||K.isPaused)return;if(!Q)throw new Error("Upload ID became null after upload");d(!1),(q=R.current)==null||q.call(R,Q,O)}catch(Q){if(K.uploadSession!==F||K.isPaused||K.isPausing||(Q==null?void 0:Q.message)==="Upload cancelled")return;(ee=N.current)==null||ee.call(N,Q),d(!1)}},[n,t,I]),B=m.useCallback(()=>{const O=b.current;O.isPaused||O.isPausing||O.file&&O.currentOffset>=O.file.size||(O.isPausing=!0,h(!0),y.current&&(clearInterval(y.current),y.current=null),O.chunkAbortController?O.chunkAbortController.abort():(O.isPaused=!0,O.isPausing=!1))},[]),_=m.useCallback(async()=>{var W,K,F;const O=b.current;if(O.file&&O.uploadId&&O.currentOffset<(O.file.size||0)){O.uploadSession++;const Y=O.uploadSession;d(!0);try{let q=O.currentOffset;try{const ee=await L.current.fetchOffset(O.uploadId);ee.nextOffset!=null&&(q=ee.nextOffset,O.currentOffset=q)}catch{O.uploadSession===Y&&d(!1);return}if(x.current=[],O.lastTime=0,O.lastBytes=q,(!O.signal||O.signal.aborted)&&(O.controller=new AbortController,O.signal=O.controller.signal),h(!1),O.isPaused=!1,O.isPausing=!1,O.cancelled=!1,await I(O.file,O.uploadId,q),O.uploadSession!==Y)return;!O.isPaused&&!O.isPausing&&O.uploadId&&(d(!1),(W=R.current)==null||W.call(R,O.uploadId,O.file))}catch(q){if(O.uploadSession!==Y||O.isPaused||O.isPausing||(q==null?void 0:q.message)==="Upload cancelled")return;if(((q==null?void 0:q.status)===0||(q==null?void 0:q.status)===409)&&O.file&&!O.cancelled){O.uploadId=null,C(null),j(O.file);return}(K=N.current)==null||K.call(N,q),d(!1)}}O.file&&O.uploadId&&O.currentOffset>=(O.file.size||0)&&(d(!1),(F=R.current)==null||F.call(R,O.uploadId,O.file))},[I,j]),D=m.useCallback(()=>{const O=b.current;if(O.chunkAbortController)try{O.chunkAbortController.abort()}catch{}if(O.cancelled=!0,O.controller)try{O.controller.abort()}catch{}y.current&&(clearInterval(y.current),y.current=null),d(!1),h(!1),C(null),l({percent:0,uploaded:0,total:0,speed:0,remaining:0}),O.uploadId=null,O.currentOffset=0,O.file=null,O.lastTime=0,O.lastBytes=0,O.uploadStallReported=!1,O.isPaused=!1,O.isPausing=!1,O.currentXhr=null,O.chunkAbortController=null,x.current=[],k.current=0},[]);return{uploadProgress:i,isUploading:c,isPaused:f,uploadId:g,handleUpload:j,handlePause:B,handleResume:_,handleCancel:D}}function A7({parentId:e,parentType:n="PAGE",fileChunkUploadApi:t,onComplete:r,onError:o}){const i=m.useMemo(()=>({init:async(l,c,d)=>{var h;if(!t)throw new Error("File chunk upload API is missing from Context");const f=await t.initAttachment(l,c,d);return{id:f.attachmentId,startOffset:(h=f.status)==null?void 0:h.nextOffset}},uploadChunk:(l,c,d,f,h,g,C,b)=>t.uploadChunkWithProgress(l,c,d,f,h,g,C,b),fetchOffset:l=>t.fetchContentStatus(l)}),[t]);return PA({api:i,parentId:e,parentType:n,onComplete:r,onError:o})}function BA(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),t.remove()}function b7(e,n=2){if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB","TB","PB"];if(e<t)return`${e} B`;if(e<=0)return"0 B";const o=Math.floor(Math.log(e)/Math.log(t)),i=(e/Math.pow(t,o)).toFixed(1);return`${parseFloat(i).toString()}${r[o]}`}const dl=["link","upload"],_A={link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},upload:{labelKey:"editor.image.upload",fallback:"Upload"}};function ou(e){return e&&dl.includes(e)?e:"upload"}function Iu(e,n){const{link:t,download:r}=e,o=t===void 0?!0:t,i=r===void 0?!0:r,l=new Set;o&&l.add("link"),i&&l.add("upload");const c=dl.filter(f=>l.has(f)),d=c.filter(f=>f==="upload"?n.hasOnUpload:!0);return{showTabKeys:c,visibleInFilePicker:d}}function iu(e,n){return n.length?e&&n.includes(e)?e:n[0]:dl[0]}const y7=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:i,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ft),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:C}=m.useMemo(()=>Iu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),b=m.useMemo(()=>iu(o,C),[o,C]);m.useLayoutEffect(()=>{if(!h||!i)return;const x=iu(o,C);x!==o&&i(x)},[h,o,i,C]);const y={type:"file",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{}},inline:n,tab:b,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return s.jsx(At.FilePicker,{...y})};function x7({src:e,editor:n,nodeKey:t,filePickerTab:r}){const{t:o}=Ue.useTranslation(),{disable:i,pageId:l,fileChunkUploadApi:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),g=m.useRef(null),{startLoading:C,stopLoading:b}=c7(),y=m.useCallback(Q=>{n.update(()=>{const J=p.$getNodeByKey(t);if(!J)return;Io(J)&&J.setSrc(Q);const xe=J.getNextSibling();xe&&p.$setSelection(xe.selectNext())})},[n,t]),{uploadProgress:x,isUploading:w,isPaused:k,handleUpload:T,handlePause:R,handleResume:N,handleCancel:L}=A7({parentId:l,parentType:"PAGE",fileChunkUploadApi:c,onComplete:(Q,J)=>{b();const xe=`/v1/attachments/${Q}/content`,we=new URLSearchParams({contentType:J.type||"application/octet-stream",fileSize:String(J.size),originalFileName:J.name}),Te=`${xe}?${we.toString()}`;y(Te)},onError:Q=>{b(),Q&&At.showErrorNotification({message:o("editor.gallery.errorFile")})}});m.useEffect(()=>{n.update(()=>{var xe,we;const Q=p.$getNodeByKey(t),J=((we=(xe=g.current)==null?void 0:xe.firstChild)==null?void 0:we.outerHTML)||"";Q instanceof ui&&e&&Q.setRef(J)})},[e,n,t]);const{fileSize:M,fileName:S,contentType:I}=m.useMemo(()=>{const Q=new URL(window.location.href+e),J=Q.searchParams.get("contentType"),xe=Q.searchParams.get("fileSize"),we=Q.searchParams.get("originalFileName");return{contentType:J,fileName:we||e,fileSize:xe}},[e]),j=m.useMemo(()=>!!(I&&I.toLowerCase().includes("pdf")||S&&/\.pdf(\?|$)/i.test(S)),[I,S]),B=m.useMemo(()=>At.getFileType(I||"application/octet-stream"),[I]),_=m.useMemo(()=>At.getFileIcons(B,!1,40),[B]),D=m.useMemo(()=>{var J,xe;const Q=(xe=(J=S.split("/").pop())==null?void 0:J.split("?")[0])==null?void 0:xe.trim();return Q&&Q.length>0?Q:"file"},[S]),O=m.useCallback(()=>{L(),b()},[L,b]),W=m.useCallback(Q=>{Q.length&&(C(),T(Q[0]))},[T,C]);m.useEffect(()=>n.registerCommand(Ib,Q=>e!=="upload"||w?!1:(W(Q),!0),p.COMMAND_PRIORITY_LOW),[e,n,W,w]);const K=m.useCallback(Q=>ah(n,t,Q),[n,t]),F=Q=>{Q.stopPropagation(),Q.preventDefault(),n.update(()=>{const J=p.$getNodeByKey(t);J&&J.remove()})},Y=m.useCallback(Q=>{Q.stopPropagation(),Q.preventDefault(),BA(e,D)},[e,D]),q=m.useCallback(async Q=>{Q.stopPropagation(),Q.preventDefault();const J=window.open("","_blank");try{const xe=await fetch(e);if(!xe.ok)throw new Error("failed to fetch pdf");const we=await xe.blob(),Te=we.type==="application/pdf"?we:new Blob([we],{type:"application/pdf"}),We=URL.createObjectURL(Te);J?J.location.href=We:window.location.href=We,setTimeout(()=>URL.revokeObjectURL(We),6e4)}catch{J==null||J.close(),At.showErrorNotification({message:o("editor.gallery.errorFile")})}},[e,o]);if(!e||e==="upload")return s.jsx(v.Box,{"data-editor-file-picker-drop-root":!0,w:"100%",children:w?s.jsx(d7,{progress:x,onPause:R,onResume:N,onCancel:O,isPaused:k}):s.jsx(y7,{inline:!0,nodeKey:t,defaultTabValue:r,onWriteTabToNode:K,uploading:!1,onUpload:W,popoverProps:{opened:!0,position:"bottom"},onChange:Q=>{let J=!1;try{const xe=new URL(Q);J=xe.protocol==="http:"||xe.protocol==="https:"}catch{J=!1}J&&y(Q)}})});const ee=b7(Number(M)||0,2);return s.jsxs(v.Flex,{ref:g,className:i?"editor-file-attached":`editor-file-attached editor-file-attached--has-actions${rt?" editor-file-attached--touch":""}${j?" editor-file-attached--pdf":""}`,align:"center",w:"100%",miw:0,children:[s.jsxs(v.Flex,{className:"editor-file-attached__body",align:"stretch",gap:0,flex:1,miw:0,children:[s.jsx(v.UnstyledButton,{component:"button",type:"button",className:"editor-file-attached__icon-link",onClick:Y,"aria-label":o("editor.gallery.download"),children:s.jsx(v.Box,{className:"editor-file-attached__icon-slot",children:_})}),s.jsxs(v.Box,{className:"editor-file-attached__meta",children:[s.jsx(v.UnstyledButton,{component:"button",type:"button",className:"editor-file-attached__meta-link",onClick:Y,"aria-label":o("editor.gallery.download"),children:s.jsxs(v.Box,{className:"editor-file-attached__row",children:[s.jsx(v.Tooltip,{label:S,disabled:rt,withArrow:!0,openDelay:300,children:s.jsx(v.Text,{component:"span",className:"editor-file-attached__name",size:"sm",fw:500,truncate:!0,c:"var(--mantine-color-bright)",children:S})}),s.jsx(v.Box,{component:"span",className:"editor-file-attached__dot","aria-hidden":!0}),s.jsx(v.Text,{component:"span",className:"editor-file-attached__size",size:"xs",c:"var(--mantine-color-gray-text)",children:ee})]})}),i?null:s.jsx(v.Box,{className:"editor-file-attached__actions",children:rt?s.jsx(Jt,{label:o("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:f}):s.jsxs(s.Fragment,{children:[j&&s.jsx(Jt,{label:o("editor.image.preview"),icon:Ug,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.image.preview"),onClick:q}),s.jsx(Jt,{label:o("editor.gallery.download"),icon:Is,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.gallery.download"),onClick:Y}),s.jsx(Jt,{label:o("editor.actions.delete"),icon:sn,iconColor:"var(--mantine-color-red-6)","aria-label":o("editor.actions.delete"),onClick:F})]})})]})]}),rt&&!i&&s.jsx(Bt,{opened:d,onClose:h,title:o("editor.file.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[j&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),q(Q)},leftSection:s.jsx($,{icon:Ug,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.image.preview")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),Y(Q)},leftSection:s.jsx($,{icon:Is,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.gallery.download")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),F(Q)},leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]})}function v7({className:e,format:n,src:t,editor:r,nodeKey:o,create:i,filePickerTab:l}){const{disable:c}=m.useContext(ft);return c&&(!t||t==="upload")?null:s.jsx(x7,{className:e,format:n,src:t,editor:r,nodeKey:o,create:i,filePickerTab:l})}const Jg=new Map,Es="upload";function w7(e){const n=e.getAttribute("data-src"),t=parseFloat(e.getAttribute("width")??"100%"),r=parseFloat(e.getAttribute("height")??"100%"),o=e.style.justifyContent||"left",i=e.getAttribute("data-file-picker-tab");return{node:g1(n||"",t,r,o,void 0,i||void 0)}}class ui extends eo.DecoratorBlockNode{constructor(t,r,o,i,l,c="left",d,f){super(r,l);Ne(this,"__src");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");Ne(this,"__filePickerTab");this.__src=t,this.__create=d||!1,this.__width=o||560,this.__height=i||315,this.__alignment=c||"left",this.__filePickerTab=f||Es}static getType(){return"file"}static clone(t){return new ui(t.__src,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create,t.__filePickerTab)}static importJSON(t){const r=g1(t.src,t.width,t.height,void 0,void 0,t.filePickerTab||Es);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"file",version:1,src:this.__src,width:this.__width,height:this.__height,...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.className==="file-container"?{conversion:w7,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="file-container",t.style.justifyContent=this.__alignment||"left",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__src==="upload"?"":this.__src,r=document.createElement("div"),o=document.createElement("span"),i=Jg.get(this.__key)||"";return r.innerHTML=i,o.className="file-container",o.setAttribute("data-src",t),o.setAttribute("data-file-picker-tab",this.__filePickerTab),o.appendChild(r),{element:o}}decorate(t,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return s.jsx(v7,{editor:t,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}setRef(t){Jg.set(this.__key,t)}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}getSrc(){return this.__src}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||Es}}function g1(e,n,t,r,o,i){return new ui(e,void 0,n,t,void 0,r,o,i)}function Xg(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Io(r)&&(t=r.getFilePickerTab())}),t}function ah(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Io(r)&&r.setFilePickerTab(t)})}function Io(e){return e instanceof ui}function k7({editor:e,headerKey:n,fileNodeKey:t,filePickerTab:r}){var M;const{t:o}=Ue.useTranslation(),{disable:i,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),[g,{open:C,close:b}]=Ft.useDisclosure(!1),{visibleInFilePicker:y}=m.useMemo(()=>Iu(l,{hasOnUpload:!!c}),[c,l]),x=m.useMemo(()=>dl.filter(S=>y.includes(S)).map(S=>{const I=_A[S];return{value:S,label:o(I.labelKey,I.fallback)}}),[o,y]),[w,k]=m.useState(()=>ou(Xg(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const S=Xg(e,t),I=ou(S??r);k(j=>j===I?j:I)}),[e,t,r]);const T=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n),I=S==null?void 0:S.getParent();a0(I)&&I.remove()})},[e,n]),R=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n);if(!S)return;const I=S.getParent();a0(I)&&I.insertAfter(Ir(I))})},[e,n]),N=()=>{h(),R()},L=()=>{h(),T()};return i?null:s.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.Box,{className:"image-header__select-host",children:s.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:s.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{h(),C()},children:((M=x.find(S=>S.value===w))==null?void 0:M.label)??w})}),s.jsx(Jt,{label:o("editor.toolbar.more"),icon:Gs,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{b(),f()}}),s.jsx(Bt,{opened:g,onClose:b,title:o("editor.file.tabsDrawerTitle"),children:s.jsx(v.Stack,{gap:4,p:0,children:x.map(S=>s.jsx(qi,{label:S.label,checked:S.value===w,onSelect:()=>{ah(e,t,S.value),b()}},S.value))})}),s.jsx(Bt,{opened:d,onClose:h,title:o("editor.file.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:N,leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:L,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):s.jsxs(s.Fragment,{children:[s.jsx(cl,{data:x,value:w,onChange:S=>{if(!S)return;ah(e,t,S)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),s.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[s.jsx(Mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-file-block",onClick:R}),s.jsx(Ci,{label:o("editor.actions.delete"),ariaLabel:"remove-file-block",onClick:T})]})]})})}const S7=m.lazy(()=>Promise.resolve().then(()=>require("./layers.CNASfKEr.js"))),Hc="upload",$g="95%";function E7(e){const n=e;if(n.src.startsWith("file:///"))return null;const{alt:t,src:r,width:o,height:i}=n,l=n.getAttribute("data-id"),c=n.getAttribute("height")??"inherit",d=n.getAttribute("width")??"inherit",f=n.getAttribute("data-image-picker-tab"),h=r===window.location.href?"":r,g=n.style.justifyContent||"left";return{node:qa({altText:t,height:c!=null&&c.includes("%")?c:i,src:h,width:d!=null&&d.includes("%")?d:o,id:String(l),alignment:g,imagePickerTab:f||Hc})}}class gr extends p.DecoratorNode{constructor(t,r,o,i,l,c,d,f,h,g,C,b,y){super(h);Ne(this,"__src");Ne(this,"__altText");Ne(this,"__width");Ne(this,"__height");Ne(this,"__maxWidth");Ne(this,"__showCaption");Ne(this,"__caption");Ne(this,"__captionsEnabled");Ne(this,"__id");Ne(this,"__create");Ne(this,"__alignment");Ne(this,"__imagePickerTab");this.__src=t,this.__altText=r,this.__maxWidth=Number(o),this.__width=i!==void 0&&i!==""?i||"inherit":$g,this.__height=l!==void 0&&l!==""?l||"inherit":$g,this.__showCaption=c||!1,this.__caption=d||p.createEditor(),this.__captionsEnabled=f||f===void 0,this.__id=g||"0",this.__create=C||!1,this.__alignment=b||"left",this.__imagePickerTab=y||Hc}static getType(){return"image"}static clone(t){return new gr(t.__src,t.__altText,t.__maxWidth,t.__width,t.__height,t.__showCaption,t.__caption,t.__captionsEnabled,t.__key,t.__id,t.__create,t.__alignment,t.__imagePickerTab)}static importJSON(t){const{altText:r,height:o,width:i,maxWidth:l,caption:c,src:d,showCaption:f,alignment:h,imagePickerTab:g}=t,C=qa({altText:r,height:o,maxWidth:l,showCaption:f,src:d,width:i,create:!1,alignment:h,imagePickerTab:g||Hc}),b=C.__caption,y=b.parseEditorState(c.editorState);return y.isEmpty()||b.setEditorState(y),C}exportDOM(){const t=document.createElement("img");t.setAttribute("src",this.__src),t.setAttribute("alt",""),t.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&t.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(t.setAttribute("width","inherit"),t.setAttribute("height","inherit")):(t.setAttribute("width",this.__width.toString()),t.setAttribute("height",this.__height.toString())),t.setAttribute("data-id",this.__id),t.style.justifyContent=this.__alignment||"left",t.setAttribute("data-image-picker-tab",this.__imagePickerTab);const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(t),{element:r}}static importDOM(){return{img:()=>({conversion:E7,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,maxWidth:this.__maxWidth,showCaption:this.__showCaption,src:this.getSrc(),type:"image",version:1,width:this.__width==="inherit"?0:this.__width,alignment:this.__alignment,...this.__imagePickerTab!=null&&this.__imagePickerTab!==""?{imagePickerTab:this.__imagePickerTab}:{}}}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){if(this.getSrc()!==""&&t.trim()==="")return;const o=this.getWritable();o.__src=t}setAlt(t){const r=this.getWritable();r.__altText=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setShowCaption(t){const r=this.getWritable();r.__showCaption=t}getImagePickerTab(){return this.__imagePickerTab}setImagePickerTab(t){const r=this.getWritable();r.__imagePickerTab=t||Hc}createDOM(t){const r=document.createElement("span"),i=t.theme.image;return r.style.justifyContent=this.__alignment||"left",i!==void 0&&(r.className=i),gr.isPlaceholderSrc(this.__src)&&r.setAttribute("data-image-placeholder",""),r}updateDOM(t,r){const o=gr.isPlaceholderSrc(this.__src),i=gr.isPlaceholderSrc(t.__src);return o!==i&&(o?r.setAttribute("data-image-placeholder",""):r.removeAttribute("data-image-placeholder")),this.__alignment!==t.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(t,r){const o=this.getWritable();o.__src=t,r&&(o.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}static isPlaceholderSrc(t){const r=t.trim();return r===""||r==="upload"}setCreated(t){const r=this.getWritable();r.__create=t}decorate(){return s.jsx(S7,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,maxWidth:this.__maxWidth,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,id:this.__id,alignment:this.__alignment||"left",create:this.__create,imagePickerTab:this.__imagePickerTab})}}function qa({altText:e,height:n,maxWidth:t,captionsEnabled:r,src:o,width:i,showCaption:l,caption:c,key:d,id:f,create:h,alignment:g,imagePickerTab:C}){return p.$applyNodeReplacement(new gr(o,e,t,i,n,l,c,r,d,f,h,g,C))}function Pr(e){return e instanceof gr}function e0(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Pr(r)&&(t=r.getImagePickerTab())}),t}function lh(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Pr(r)&&r.setImagePickerTab(t)})}const Ps=["gallery","upload","link","unsplash","giphy"],T7={gallery:{labelKey:"editor.image.gallery",fallback:"Gallery"},upload:{labelKey:"editor.image.upload",fallback:"Upload"},link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},unsplash:{labelKey:"editor.image.search_images",fallback:"Search images"},giphy:{labelKey:"editor.image.gifs",fallback:"GIFs"}};function t0(e){return e&&Ps.includes(e)?e:Ps[0]}function M7(e,n){const{link:t,download:r,unsplashClientId:o,giphyToken:i}=e,l=t===void 0?!0:t,c=r===void 0?!0:r,d=new Set;d.add("gallery"),c&&d.add("upload"),l&&d.add("link"),d.add("unsplash"),d.add("giphy");const f=Ps.filter(g=>d.has(g)),h=Ps.filter(g=>{if(!f.includes(g))return!1;switch(g){case"gallery":return n.hasGalleryInPicker;case"upload":return n.hasOnUpload;case"link":case"unsplash":case"giphy":return!0;default:return!1}});return{showTabKeys:f,visibleInFilePicker:h}}function n0(e,n){return n.length?e&&n.includes(e)?e:n[0]:Ps[0]}function L7({editor:e,headerKey:n,imageNodeKey:t,imagePickerTab:r}){var R;const{t:o}=Ue.useTranslation(),{disable:i}=m.useContext(ft),[l,{open:c,close:d}]=Ft.useDisclosure(!1),[f,{open:h,close:g}]=Ft.useDisclosure(!1),[C,b]=m.useState(()=>t0(e0(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const N=e0(e,t),L=t0(N??r);b(M=>M===L?M:L)}),[e,t,r]);const y=m.useMemo(()=>Ps.map(N=>{const L=T7[N];return{value:N,label:o(L.labelKey,L.fallback)}}),[o]),x=m.useCallback(()=>{e.update(()=>{const N=p.$getNodeByKey(n),L=N==null?void 0:N.getParent();s0(L)&&L.remove()})},[e,n]),w=m.useCallback(()=>{e.update(()=>{const N=p.$getNodeByKey(n);if(!N)return;const L=N.getParent();s0(L)&&L.insertAfter(Ir(L))})},[e,n]),k=()=>{d(),w()},T=()=>{d(),x()};return i?null:s.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.Box,{className:"image-header__select-host",children:s.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:s.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{d(),h()},children:((R=y.find(N=>N.value===C))==null?void 0:R.label)??C})}),s.jsx(Jt,{label:o("editor.toolbar.more"),icon:Gs,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{g(),c()}}),s.jsx(Bt,{opened:f,onClose:g,title:o("editor.image.tabsDrawerTitle"),children:s.jsx(v.Stack,{gap:4,p:0,children:y.map(N=>s.jsx(qi,{label:N.label,checked:N.value===C,onSelect:()=>{lh(e,t,N.value),g()}},N.value))})}),s.jsx(Bt,{opened:l,onClose:d,title:o("editor.image.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:k,leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:T,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):s.jsxs(s.Fragment,{children:[s.jsx(cl,{data:y,value:C,onChange:N=>{if(!N)return;lh(e,t,N)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),s.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[s.jsx(Mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-image-block",onClick:w}),s.jsx(Ci,{label:o("editor.actions.delete"),ariaLabel:"remove-image-block",onClick:x})]})]})})}function FA(){const e=m.useRef(null),n=m.useCallback(()=>{var r;return(r=e.current)==null||r.abort(),e.current=new AbortController,e.current.signal},[]),t=m.useCallback(()=>{var r;(r=e.current)==null||r.abort(),e.current=null},[]);return{start:n,cancel:t}}const Ts=400;let Ra=null;function C1(e){var n;Ra=((n=e.touches[0])==null?void 0:n.clientY)??null}function Bs(e){var r;let n=0;if(e instanceof WheelEvent)n=e.deltaY;else if(typeof TouchEvent<"u"&&e instanceof TouchEvent){const o=((r=e.touches[0])==null?void 0:r.clientY)??null;o!==null&&Ra!==null&&(n=Ra-o),o!==null&&(Ra=o)}if(n===0)return;let t=e.target;for(;t&&t!==document.body&&t!==document.documentElement;){const o=window.getComputedStyle(t),i=o.overflowY||o.overflow;if(/(auto|scroll|overlay)/.test(i)&&t.scrollHeight>t.clientHeight){const c=n<0&&t.scrollTop>0,d=n>0&&t.scrollTop+t.clientHeight<t.scrollHeight;if(c||d)return}t=t.parentElement}e.cancelable&&e.preventDefault()}const N7=299,xf={passive:!1,capture:!1},Ms={passive:!1,capture:!0};function j7(){const e=document.createElement("div");return Object.assign(e.style,{position:"fixed",inset:"0",zIndex:String(N7),pointerEvents:"auto",background:"transparent",touchAction:"none"}),e.setAttribute("aria-hidden","true"),e.addEventListener("wheel",Bs,xf),e.addEventListener("touchstart",C1,xf),e.addEventListener("touchmove",Bs,xf),document.body.appendChild(e),e}let WA=0,ya=null;function Vs(){WA++>0||(document.addEventListener("wheel",Bs,Ms),document.addEventListener("touchstart",C1,Ms),document.addEventListener("touchmove",Bs,Ms),ya=j7())}function Ki(){--WA>0||(document.removeEventListener("wheel",Bs,Ms),document.removeEventListener("touchstart",C1,Ms),document.removeEventListener("touchmove",Bs,Ms),ya==null||ya.remove(),ya=null,Ra=null)}function zA({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?s.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:s.jsx(v.Stack,{align:"center",children:s.jsx(ru,{isPaused:o})})}):s.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:s.jsxs(v.Stack,{gap:"lg",align:"center",w:"100%",children:[s.jsx(ru,{isPaused:o}),s.jsx(v.Box,{w:"100%",children:s.jsx(Ru,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),s.jsx(ul,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const Yc=p.createCommand("INSERT_MUSIC_COMMAND"),KA=p.createCommand("UPLOAD_MUSIC_COMMAND");function R7(e){const n=e.getSrc();return!n||!n.trim()}function I7(e,n){m.useEffect(()=>{if(!n)return;const t=e.hasNodes([Dn,to]),r=e.registerNodeTransform(Qi,i=>{if(!t)return;const l=i.getParent(),c=R7(i);if(c&&l&&!Ar(l)){const d=i.getNextSibling(),f=hl(i);d?d.insertBefore(f):l.append(f);return}if(!c&&l&&Ar(l)){const d=l;d.insertBefore(i),d.remove()}}),o=t?e.registerNodeTransform(Dn,i=>{const l=i.getChildren(),c=l.find(Xr);if(!c||l.some(qs))return;const f=Fo();c.insertBefore(f)}):()=>{};return ve.mergeRegister(r,o)},[e,n])}const D7=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:i,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ft),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:C}=m.useMemo(()=>Iu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),b=m.useMemo(()=>iu(o,C),[o,C]);m.useLayoutEffect(()=>{if(!h||!i)return;const x=iu(o,C);x!==o&&i(x)},[h,o,i,C]);const y={type:"audio",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{"audio/*":[]}},inline:n,tab:b,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return s.jsx(At.FilePicker,{...y})};function O7({children:e}){return Br.createPortal(s.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:s.jsx("p",{className:"FlashMessage__alert",role:"alert",children:e})}),document.body)}const UA=m.createContext(void 0),vf={},P7=1e3,B7=({children:e})=>{const[n,t]=m.useState(vf),r=m.useCallback((o,i)=>t(o?{duration:i,message:o}:vf),[]);return m.useEffect(()=>{if(n.message){const o=setTimeout(()=>t(vf),n.duration??P7);return()=>clearTimeout(o)}},[n]),s.jsxs(UA.Provider,{value:r,children:[e,n.message&&s.jsx(O7,{children:n.message})]})},_7=()=>{const e=m.useContext(UA);if(!e)throw new Error("Missing FlashMessageContext");return e};function fl(){return _7()}function F7(e){const n=e.trim();if(!n)return n;try{return n.startsWith("http://")||n.startsWith("https://")?n:new URL(n,window.location.href).href}catch{return n}}function HA(e){const n=e.trim();if(!n)return!1;let t;try{t=n.startsWith("http://")||n.startsWith("https://")?new URL(n):new URL(n,window.location.href)}catch{return!1}if((t.searchParams.get("contentType")||"").toLowerCase().startsWith("audio/"))return!0;const o=(t.searchParams.get("originalFileName")||"").toLowerCase();if(/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)(\?|#|$)/.test(o))return!0;const i=t.pathname.toLowerCase();return!!/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)$/.test(i)}const Ur=(e,n,t)=>Math.min(t,Math.max(n,e)),bs=e=>{if(!Number.isFinite(e))return"0:00";const n=Math.max(0,Math.floor(e)),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=n%60;return t>0?`${t}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${r}:${String(o).padStart(2,"0")}`},r0=e=>{if(!e||!Number.isFinite(e.duration)||e.duration<=0)return[];const n=[],t=e.buffered;for(let r=0;r<t.length;r+=1){const o=Ur(t.start(r)/e.duration,0,1),i=Ur(t.end(r)/e.duration,0,1);n.push({start:o,end:i})}return n},W7=[.5,.7,1,1.2,1.5,1.7,2],z7=3,YA=3,K7=z7+YA;function wf(e,n=6,t=28){return Math.round(Math.abs(Math.sin(e*2.3+1.7)*Math.cos(e*.9))*(t-n)+n)}function U7(e,n){return n!=null&&n.length?n.length===e?n:Array.from({length:e},(t,r)=>{const o=n.length>1?r/Math.max(e-1,1)*(n.length-1):0,i=Math.floor(o),l=Math.min(i+1,n.length-1),c=o-i;return Math.round((n[i]??wf(i))*(1-c)+(n[l]??wf(l))*c)}):Array.from({length:e},(t,r)=>wf(r))}function o0(e,n){const[t,r]=m.useState(!1),o=m.useRef(null),i=m.useRef(null),l=()=>{o.current&&clearTimeout(o.current),i.current&&clearTimeout(i.current)};m.useEffect(()=>()=>l(),[]);const c=m.useCallback(()=>{l(),o.current=setTimeout(()=>r(!0),e)},[e]),d=m.useCallback(()=>{l(),i.current=setTimeout(()=>r(!1),n)},[n]),f=m.useCallback(()=>{i.current&&clearTimeout(i.current)},[]);return{opened:t,setOpened:r,open:c,close:d,cancelClose:f}}function H7(e,n){return n||e===0?NA:e<=.5?zk:LA}const Y7={dropdown:"music-player-bar-speed-dropdown"},Z7={dropdown:"music-player-bar-ghost-dropdown"};function G7({src:e,duration:n,playbackRates:t=W7,initialVolume:r=1,waveformHeights:o,editor:i,nodeKey:l}){const{disable:c}=m.useContext(ft),{t:d}=Ue.useTranslation(),f=fl(),h=m.useRef(null),g=m.useRef(null),C=m.useRef(null),[b,y]=m.useState(!1),[x,w]=m.useState(0),[k,T]=m.useState(()=>n??0),[R,N]=m.useState(()=>{const ce=t.indexOf(1);return ce>=0?ce:0}),[L,M]=m.useState(r),[S,I]=m.useState(!1),[j,B]=m.useState(40),[_,D]=m.useState(!1),[O,{open:W,close:K}]=Ft.useDisclosure(!1),[F,{open:Y,close:q}]=Ft.useDisclosure(!1),ee=o0(120,220),Q=o0(120,480);m.useEffect(()=>{const ce=g.current;if(!ce)return;const Le=new ResizeObserver(([Ze])=>{const dt=Ze.contentRect.width;B(Math.max(4,Math.min(200,Math.floor((dt+YA)/K7))))});return Le.observe(ce),()=>Le.disconnect()},[]);const J=m.useMemo(()=>U7(j,o),[j,o]);m.useEffect(()=>{n!=null&&Number.isFinite(n)&&n>0&&T(n)},[n]);const{start:xe,stop:we}=Ft.useInterval(()=>{h.current&&w(h.current.currentTime)},200);m.useEffect(()=>(b?xe():we(),()=>we()),[b,xe,we]),m.useEffect(()=>{const ce=h.current;ce&&(b?ce.play().catch(()=>y(!1)):ce.pause())},[b]),m.useEffect(()=>{h.current&&(h.current.playbackRate=t[R]??1)},[R,t]),m.useEffect(()=>{h.current&&(h.current.muted=S,h.current.volume=S?0:L)},[S,L]),m.useEffect(()=>()=>{C.current!==null&&clearTimeout(C.current)},[]);const Te=m.useCallback(()=>{var Le;const ce=(Le=h.current)==null?void 0:Le.duration;Number.isFinite(ce)&&(ce??0)>0&&T(ce??0)},[]),We=m.useCallback(()=>y(!1),[]),ie=m.useCallback(()=>y(ce=>!ce),[]),X=m.useCallback(()=>I(ce=>!ce),[]),ae=m.useCallback(ce=>{N(ce),ee.setOpened(!1)},[ee]),pe=m.useCallback(ce=>{if(!h.current||!k)return;const Le=ce.currentTarget.getBoundingClientRect(),Ze=Math.max(0,Math.min((ce.clientX-Le.left)/Le.width,1))*k;h.current.currentTime=Ze,w(Ze)},[k]),Ce=m.useCallback(ce=>{M(ce),ce>0&&I(!1)},[]),G=m.useMemo(()=>{var ce,Le,Ze,dt;try{const Dt=(Le=(ce=((e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,window.location.href)).searchParams.get("originalFileName")||e).split("/").pop())==null?void 0:ce.split("?")[0])==null?void 0:Le.trim();return Dt&&Dt.length>0?Dt:"file"}catch{const Ct=(dt=(Ze=e.split("/").pop())==null?void 0:Ze.split("?")[0])==null?void 0:dt.trim();return Ct&&Ct.length>0?Ct:"file"}},[e]),he=m.useCallback(ce=>{ce.stopPropagation(),ce.preventDefault();const Le=F7(e);Le&&navigator.clipboard.writeText(Le).then(()=>{C.current!==null&&clearTimeout(C.current),D(!0),C.current=setTimeout(()=>{D(!1),C.current=null},1e3)},()=>f(d("editor.embed.linkCopyFailed")))},[f,e,d]),oe=m.useCallback(ce=>{ce.stopPropagation(),ce.preventDefault(),BA(e,G)},[e,G]),H=m.useCallback(()=>{!i||!l||i.update(()=>{const ce=p.$getNodeByKey(l);if(!Xr(ce))return;const Le=ce.getParent();uh(Le)?Le.remove():ce.remove()})},[i,l]),Z=k>0?x/k:0,re=Math.round(Z*j),fe=t[R]??1,ge=S?0:L,Re=Number.isFinite(k)&&k>0?Math.round(k):0,Oe=H7(L,S);return s.jsxs(s.Fragment,{children:[s.jsx("audio",{ref:h,src:e,title:"",onLoadedMetadata:Te,onTimeUpdate:()=>{var ce;return w(((ce=h.current)==null?void 0:ce.currentTime)??0)},onEnded:We,preload:"metadata",style:{position:"absolute",width:0,height:0,opacity:0,pointerEvents:"none"}}),s.jsxs("div",{"data-testid":"music-player-bar",className:"music-player-bar","data-popovers-open":ee.opened||Q.opened||void 0,"data-volume-open":Q.opened||void 0,"data-hover-actions-reduced":c||void 0,children:[s.jsx(v.ActionIcon,{size:28,radius:8,onClick:ie,className:"music-player-bar__play-btn","aria-label":d(b?"editor.video.player.pause":"editor.video.player.play"),children:s.jsx($,{icon:b?AA:bA,size:16,color:"var(--mantine-color-white)"})}),s.jsxs(v.Text,{component:"time",fz:14,lh:"20px",c:"var(--mantine-color-text)",className:"music-player-bar__timer","aria-label":d("editor.audio.player.timeDisplay"),children:[bs(x)," / ",bs(k)]}),s.jsx("div",{ref:g,className:"music-player-bar__waveform-clip",children:s.jsx("div",{"data-testid":"music-waveform",className:"music-player-bar__waveform",onClick:pe,role:"slider","aria-label":d("editor.audio.player.waveformSeek"),"aria-valuenow":Math.round(x),"aria-valuemin":0,"aria-valuemax":Re,children:J.map((ce,Le)=>s.jsx("div",{className:`music-player-bar__stem music-player-bar__stem--${Le<re?"active":"inactive"}`,style:{height:ce}},Le))})}),s.jsxs("div",{className:"music-player-bar__tail-rail",children:[rt?s.jsxs("div",{className:"music-player-bar__tail music-player-bar__tail--touch",children:[s.jsxs(v.UnstyledButton,{type:"button",className:"music-player-bar__speed-trigger","aria-label":d("editor.audio.player.playbackSpeed"),onClick:()=>{K(),Y()},children:[fe,"x"]}),i&&l&&s.jsx(Jt,{label:d("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":d("editor.toolbar.more"),onClick:()=>{q(),W()}})]}):s.jsxs("div",{className:"music-player-bar__tail",children:[s.jsxs(v.Popover,{opened:ee.opened,position:"top-end",offset:6,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:Y7,children:[s.jsx(v.Popover.Target,{children:s.jsxs(v.UnstyledButton,{onMouseEnter:ee.open,onMouseLeave:ee.close,className:"music-player-bar__speed-trigger","aria-label":d("editor.audio.player.playbackSpeed"),"aria-haspopup":"listbox","aria-expanded":ee.opened,children:[fe,"x"]})}),s.jsx(v.Popover.Dropdown,{children:s.jsxs(v.Stack,{gap:6,onMouseEnter:ee.cancelClose,onMouseLeave:ee.close,children:[s.jsx(v.Text,{className:"music-player-bar__speed-label",children:d("editor.audio.player.playbackSpeed")}),s.jsx(v.Box,{role:"listbox","aria-label":d("editor.audio.player.playbackSpeed"),style:{display:"flex",alignItems:"center",gap:2},children:t.map((ce,Le)=>{const Ze=Le===R;return s.jsx(v.UnstyledButton,{role:"option","aria-selected":Ze,onClick:()=>ae(Le),className:`music-player-bar__speed-chip${Ze?" music-player-bar__speed-chip--active":""}`,children:s.jsxs(v.Text,{fz:14,fw:Ze?600:400,c:Ze?"var(--mantine-primary-color-filled)":"var(--mantine-color-text)",children:[ce,"x"]})},ce)})})]})})]}),s.jsxs(v.Popover,{opened:Q.opened,onChange:Q.setOpened,position:"right",offset:4,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:Z7,children:[s.jsx(v.Popover.Target,{children:s.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:28,"aria-label":d(S||L===0?"editor.video.player.unmute":"editor.video.player.mute"),onMouseEnter:Yn?void 0:Q.open,onMouseLeave:Yn?void 0:Q.close,onClick:()=>{if(Yn&&!Q.opened){Q.setOpened(!0);return}X()},children:s.jsx($,{icon:Oe,size:20,color:"var(--mantine-color-dimmed)"})})}),s.jsx(v.Popover.Dropdown,{children:s.jsx("div",{className:"music-player-bar__volume-dropdown",onMouseEnter:Q.cancelClose,onMouseLeave:Q.close,children:Q.opened&&s.jsx(v.Slider,{min:0,max:1,step:.01,value:ge,onChange:Ce,label:null,w:57,size:2,"data-testid":"music-volume-slider",className:"music-player-bar__volume-slider","aria-label":d("editor.audio.player.volume")})})})]})]}),!rt&&s.jsx("div",{className:"music-player-bar__tail-spacer","aria-hidden":!0})]}),!rt&&i&&l&&s.jsxs("div",{className:"music-player-bar__hover-actions",onPointerDown:ce=>ce.stopPropagation(),children:[s.jsx(Jt,{label:d("editor.gallery.download"),icon:Is,iconColor:"var(--mantine-color-gray-text)",onClick:oe}),s.jsx(Jt,{label:d("editor.embed.copyLink"),icon:_?Jn:Ds,iconColor:"var(--mantine-color-gray-text)",className:_?"header-menu__copy-icon header-menu__copy-icon--success":"header-menu__copy-icon",onClick:he}),!c&&s.jsx(Ci,{label:d("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:H})]})]}),rt&&s.jsx(Bt,{opened:F,onClose:q,title:d("editor.audio.player.playbackSpeed"),children:s.jsx(v.Stack,{gap:4,p:0,children:t.map((ce,Le)=>s.jsx(qi,{label:`${ce}x`,checked:Le===R,onSelect:()=>{N(Le),q()}},ce))})}),rt&&i&&l&&s.jsx(Bt,{opened:O,onClose:K,title:d("editor.audio.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:ce=>{K(),oe(ce)},leftSection:s.jsx($,{icon:Is,size:16,color:"var(--mantine-color-dimmed)"}),children:d("editor.gallery.download")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:ce=>{K(),he(ce)},leftSection:s.jsx($,{icon:_?Jn:Ds,size:16,color:"var(--mantine-color-dimmed)"}),children:d("editor.embed.copyLink")}),!c&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{K(),H()},leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:d("editor.actions.delete")})]})})]})}function V7({className:e,format:n,src:t,editor:r,nodeKey:o,filePickerTab:i,create:l}){const[c,d]=m.useState(!1),{start:f}=FA(),{fetchUploadMedia:h,disable:g}=m.useContext(ft),C=m.useCallback(w=>ch(r,o,w),[r,o]),b=m.useCallback(w=>{r.update(()=>{const k=p.$getNodeByKey(o);if(!k)return;Xr(k)&&k.setSrc(w);const T=k.getNextSibling();T&&p.$setSelection(T.selectNext())})},[r,o]),y=m.useCallback(w=>{if(!w[0]||!h)return;d(!0);const k=f();h(w[0],(T,R,N)=>{const{originalFileName:L}=N,M=new URLSearchParams({originalFileName:L}),S=`${T}?${M.toString()}`;b(S),d(!1)},()=>{d(!1)},k)},[b,h,f]),x=c;return m.useEffect(()=>r.registerCommand(KA,w=>!w.length||x||t.trim()||!h?!1:(y(w),!0),p.COMMAND_PRIORITY_LOW),[r,h,y,x,t]),g&&!t.trim()?null:t.trim()?s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:s.jsx(v.Box,{w:"100%",children:s.jsx(G7,{src:t,editor:r,nodeKey:o})})}):s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:s.jsx(v.Box,{"data-editor-music-picker-drop-root":!0,w:"100%",style:{pointerEvents:x?"none":void 0},children:x?s.jsx(zA,{}):s.jsx(D7,{inline:!0,nodeKey:o,defaultTabValue:i,onWriteTabToNode:C,uploading:c,onUpload:w=>{!w.length||!h||y(w)},popoverProps:{opened:!0,position:"bottom",zIndex:Ts},onChange:w=>{b(w)}})})})}function q7(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-file-picker-tab");return{node:A1(n||"",void 0,t||void 0)}}class Qi extends eo.DecoratorBlockNode{constructor(t,r,o,i,l){super(r,o);Ne(this,"__src");Ne(this,"__create");Ne(this,"__filePickerTab");this.__src=t,this.__create=i||!1,this.__filePickerTab=l||Es}static getType(){return"music"}static clone(t){return new Qi(t.__src,t.__format,t.__key,t.__create,t.__filePickerTab)}static importJSON(t){const r=A1(t.src,t.create,t.filePickerTab||Es);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"music",version:1,src:this.__src,...this.__create?{create:this.__create}:{},...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.classList.contains("audio-container")?{conversion:q7,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="audio-container",t}updateDOM(t,r){return!1}exportDOM(){const t=document.createElement("span"),r=document.createElement("audio");return t.className="audio-container",r.setAttribute("controls","true"),r.setAttribute("src",this.__src),t.setAttribute("data-src",this.__src),t.setAttribute("data-file-picker-tab",this.__filePickerTab),t.appendChild(r),{element:t}}decorate(t,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return s.jsx(V7,{editor:t,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||Es}}function A1(e,n,t){return new Qi(e,void 0,void 0,n,t)}function Xr(e){return e instanceof Qi}function i0(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Xr(r)&&(t=r.getFilePickerTab())}),t}function ch(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Xr(r)&&r.setFilePickerTab(t)})}function Q7({editor:e,headerKey:n,musicNodeKey:t,filePickerTab:r}){var M;const{t:o}=Ue.useTranslation(),{disable:i,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),[g,{open:C,close:b}]=Ft.useDisclosure(!1),{visibleInFilePicker:y}=m.useMemo(()=>Iu(l,{hasOnUpload:!!c}),[c,l]),x=m.useMemo(()=>dl.filter(S=>y.includes(S)).map(S=>{const I=_A[S];return{value:S,label:o(I.labelKey,I.fallback)}}),[o,y]),[w,k]=m.useState(()=>ou(i0(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const S=i0(e,t),I=ou(S??r);k(j=>j===I?j:I)}),[e,t,r]);const T=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n),I=S==null?void 0:S.getParent();uh(I)&&I.remove()})},[e,n]),R=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n);if(!S)return;const I=S.getParent();uh(I)&&I.insertAfter(Ir(I))})},[e,n]),N=()=>{h(),R()},L=()=>{h(),T()};return i?null:s.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.Box,{className:"image-header__select-host",children:s.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:s.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{h(),C()},children:((M=x.find(S=>S.value===w))==null?void 0:M.label)??w})}),s.jsx(Jt,{label:o("editor.toolbar.more"),icon:Gs,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{b(),f()}}),s.jsx(Bt,{opened:g,onClose:b,title:o("editor.image.tabsDrawerTitle"),children:s.jsx(v.Stack,{gap:4,p:0,children:x.map(S=>s.jsx(qi,{label:S.label,checked:S.value===w,onSelect:()=>{ch(e,t,S.value),b()}},S.value))})}),s.jsx(Bt,{opened:d,onClose:h,title:o("editor.image.mobileActions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:N,leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:L,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):s.jsxs(s.Fragment,{children:[s.jsx(cl,{data:x,value:w,onChange:S=>{if(!S)return;ch(e,t,S)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),s.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[s.jsx(Mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-music-block",onClick:R}),s.jsx(Ci,{label:o("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:T})]})]})})}function J7(){return{node:Fo()}}class to extends eo.DecoratorBlockNode{static getType(){return"overlay-header"}static clone(n){return new to(n.__format,n.__key)}constructor(n,t){super(n,t)}static importJSON(){return Fo()}exportJSON(){return{...super.exportJSON(),type:"overlay-header",version:1}}static importDOM(){return{div:n=>{const t=n.classList.contains("equation-header")||n.classList.contains("extend-code-header"),r=n.classList.contains("overlay-header");return!t&&!r?null:{conversion:J7,priority:2}}}}createDOM(){const n=document.createElement("div");return ve.addClassNamesToElement(n,Rr.codeHeader,"overlay-header"),n}updateDOM(){return!1}decorate(n,t){const r=this.getNextSibling();return yn(r)?s.jsx(t7,{editor:n,headerKey:this.__key}):_o(r)?s.jsx(l7,{editor:n,headerKey:this.__key}):Pr(r)?s.jsx(L7,{editor:n,headerKey:this.__key,imageNodeKey:r.getKey(),imagePickerTab:r.getImagePickerTab()}):Io(r)?s.jsx(k7,{editor:n,headerKey:this.__key,fileNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):Xr(r)?s.jsx(Q7,{editor:n,headerKey:this.__key,musicNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):s.jsx(s.Fragment,{})}}function Fo(){return new to}function qs(e){return e instanceof to}function X7(){return{node:Du()}}class Dn extends p.ElementNode{static getType(){return"overlay-wrapper"}static clone(n){return new Dn(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div"),r=n.theme.codeWrapper||Rr.codeWrapper;return ve.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true"),t}updateDOM(){return!1}exportDOM(n){const t=document.createElement("div"),r=Rr.codeWrapper;ve.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true");const o=this.getChildren().find(yn);if(o){const l=Ss[o.getLanguage()||"plain"]||o.getLanguage();t.setAttribute("data-name-language",String(l))}const i=this.getChildren().find(_o);if(i){const l=i.getEquation();let c="";try{c=btoa(unescape(encodeURIComponent(l)))}catch{c=""}t.setAttribute("data-lexical-equation-wrapper","true"),t.setAttribute("data-lexical-equation",c)}return{element:t}}static importDOM(){const n=Rr.codeWrapper,t=o=>o.classList.contains(n),r=o=>o.classList.contains("dsd__theme__code-wrapper");return{div:o=>{if(!t(o)&&!r(o))return null;const i=o.hasAttribute("data-lexical-equation-wrapper"),l=o.hasAttribute("data-lexical-overlay-wrapper"),c=o.hasAttribute("data-name-language");return!i&&!l&&!c?null:{conversion:X7,priority:2}}}}static importJSON(n){return Du()}exportJSON(){return{...super.exportJSON(),type:"overlay-wrapper",version:1}}}function Du(){return new Dn}function Ar(e){return e instanceof Dn}function Do(e){return Ar(e)?e.getChildren().some(yn):!1}function Ou(e){return Ar(e)?e.getChildren().some(_o):!1}function Qa(e){return()=>{const n=Du(),t=Fo(),r=e();return n.append(t,r),n}}function hl(e){const n=Du(),t=Fo();return n.append(t,e),n}function s0(e){return Ar(e)?e.getChildren().some(Pr):!1}function a0(e){return Ar(e)?e.getChildren().some(Io):!1}function uh(e){return Ar(e)?e.getChildren().some(Xr):!1}function $7(e){m.useEffect(()=>{if(!e.hasNodes([Dn]))return;const n=e.registerMutationListener(Dn,t=>{e.getEditorState().read(()=>{for(const[r,o]of t)o==="updated"&&e.update(()=>{const i=p.$getNodeByKey(r);if(!i||!Ar(i))return;const l=i.getChildren(),c=l.some(yn),d=l.some(_o),f=l.some(Pr),h=l.some(Io),g=l.some(Xr);if(!(c||d||f||h||g)){for(const C of l)qs(C)?C.remove():i.insertBefore(C);i.remove()}},{tag:p.HISTORY_MERGE_TAG})})});return ve.mergeRegister(n)},[e])}function eS(){const[e]=ot.useLexicalComposerContext();return $7(e),null}function lt(e,n,...t){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}function su(...e){const n=[];for(const t of e)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))n.push(r);return n}function dh(e){let n=1,t=e.getParent();for(;t!=null;){if(jt(t)){const r=t.getParent();if(gt(r)){n++,t=r.getParent();continue}lt(!1,"A ListItemNode must have a ListNode for a parent.")}return n}return n}function fh(e){let n=e.getParent();gt(n)||lt(!1,"A ListItemNode must have a ListNode for a parent.");let t=n;for(;t!==null;)t=t.getParent(),gt(t)&&(n=t);return n}function ZA(e){let n=[];const t=e.getChildren().filter(jt);for(let r=0;r<t.length;r++){const o=t[r],i=o.getFirstChild();gt(i)?n=n.concat(ZA(i)):n.push(o)}return n}function co(e){return jt(e)&>(e.getFirstChild())}function tS(e){let n=e;for(;n.getNextSibling()==null&&n.getPreviousSibling()==null;){const t=n.getParent();if(t==null||!(jt(n)||gt(n)))break;n=t}n.remove()}function l0(e){return _n().append(e)}let GA=!1;function ys(e){GA=e}function VA(e,n){return jt(e)&&(n.length===0||n.length===1&&e.is(n[0])&&e.getChildrenSize()===0)}function hh(e,n){e.update(()=>{const t=p.$getSelection();if(t!==null){const r=t.getNodes();if(p.$isRangeSelection(t)){const i=t.getStartEndPoints();lt(i!==null,"insertList: anchor should be defined");const[l]=i,c=l.getNode(),d=c.getParent();if(VA(c,r)){const f=hn(n);if(p.$isRootOrShadowRoot(d)){c.replace(f);const h=_n();p.$isElementNode(c)&&(h.setFormat(c.getFormatType()),h.setIndent(c.getIndent())),f.append(h)}else if(jt(c)){const h=c.getParentOrThrow();Ui(f,h.getChildren()),h.replace(f)}return}}const o=new Set;for(let i=0;i<r.length;i++){const l=r[i];if(p.$isElementNode(l)&&l.isEmpty()&&!jt(l)&&!o.has(l.getKey())){c0(l,n);continue}if(p.$isLeafNode(l)){let c=l.getParent();for(;c!=null;){const d=c.getKey();if(gt(c)){if(!o.has(d)){const f=hn(n);Ui(f,c.getChildren()),c.replace(f),o.add(d)}break}else{const f=c.getParent();if(p.$isRootOrShadowRoot(f)&&!o.has(d)){o.add(d),c0(c,n);break}c=f}}}}}})}function Ui(e,n){e.splice(e.getChildrenSize(),0,n)}function nS(e,n){const t=e.getChildren().find(l=>yn(l));if(!t){const l=hn(n),c=_n();return c.append(p.$createParagraphNode()),l.append(c),e.replace(l),l}const o=t.getTextContent().split(/\r?\n/),i=hn(n);for(const l of o){const c=_n(),d=p.$createParagraphNode();d.append(p.$createTextNode(l)),c.append(d),i.append(c)}return e.replace(i),i}function c0(e,n){if(gt(e))return e;if(Do(e))return nS(e,n);const t=e.getPreviousSibling(),r=e.getNextSibling(),o=_n();if(o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),Ui(o,e.getChildren()),gt(t)&&n===t.getListType())return t.append(o),e.remove(),gt(r)&&n===r.getListType()&&(Ui(t,r.getChildren()),r.remove()),t;if(gt(r)&&n===r.getListType())return r.getFirstChildOrThrow().insertBefore(o),e.remove(),r;{const i=hn(n);return i.append(o),e.replace(i),i}}function b1(e,n){const t=e.getLastChild(),r=n.getFirstChild();t&&r&&co(t)&&co(r)&&(b1(t.getFirstChild(),r.getFirstChild()),r.remove());const o=n.getChildren();o.length>0&&e.append(...o),n.remove()}function rS(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=new Set,r=n.getNodes(),o=n.anchor.getNode();if(VA(o,r))t.add(fh(o));else for(let i=0;i<r.length;i++){const l=r[i];if(p.$isLeafNode(l)){const c=ve.$getNearestNodeOfType(l,On);c!=null&&t.add(fh(c))}}for(const i of t){let l=i;const c=ZA(i);for(const d of c){const f=p.$createParagraphNode();Ui(f,d.getChildren()),l.insertAfter(f),l=f,d.__key===n.anchor.key&&n.anchor.set(f.getKey(),0,"element"),d.__key===n.focus.key&&n.focus.set(f.getKey(),0,"element"),d.remove()}i.remove()}}})}function oS(e){const n=e.getListType()!=="check";let t=e.getStart();for(const r of e.getChildren())jt(r)&&(r.getValue()!==t&&r.setValue(t),n&&r.getLatest().__checked!=null&&r.setChecked(void 0),gt(r.getFirstChild())||t++)}function iS(e){if(GA)return;const n=e.getNextSibling();gt(n)&&e.getListType()===n.getListType()&&b1(e,n)}function sS(e){const n=new Set;if(co(e)||n.has(e.getKey()))return;const t=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(co(r)&&co(o)){const i=o.getFirstChild();if(gt(i)){i.append(e);const l=r.getFirstChild();if(gt(l)){const c=l.getChildren();Ui(i,c),r.remove(),n.add(r.getKey())}}}else if(co(r)){const i=r.getFirstChild();if(gt(i)){const l=i.getFirstChild();l!==null&&l.insertBefore(e)}}else if(co(o)){const i=o.getFirstChild();gt(i)&&i.append(e)}else if(gt(t)){const i=_n(),l=hn(t.getListType());i.append(l),l.append(e),o?o.insertAfter(i):r?r.insertBefore(i):t.append(i)}}function aS(e){if(co(e))return;const n=e.getParent(),t=n?n.getParent():void 0,r=t?t.getParent():void 0;if(gt(r)&&jt(t)&>(n)){const o=n?n.getFirstChild():void 0,i=n?n.getLastChild():void 0;if(e.is(o))t.insertBefore(e),n.isEmpty()&&t.remove();else if(e.is(i))t.insertAfter(e),n.isEmpty()&&t.remove();else{const l=n.getListType(),c=_n(),d=hn(l);c.append(d),e.getPreviousSiblings().forEach(g=>d.append(g));const f=_n(),h=hn(l);f.append(h),Ui(h,e.getNextSiblings()),t.insertBefore(c),t.insertAfter(f),t.replace(e)}}}function lS(){const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=e.anchor.getNode();if(!jt(n)||n.getChildrenSize()!==0)return!1;const t=fh(n),r=n.getParent();lt(gt(r),"A ListItemNode must have a ListNode for a parent.");const o=r.getParent();let i;if(p.$isRootOrShadowRoot(o))i=p.$createParagraphNode(),t.insertAfter(i);else if(jt(o))i=_n(),o.insertAfter(i);else return!1;i.select();const l=n.getNextSiblings();if(l.length>0){const c=hn(r.getListType());if(p.$isParagraphNode(i))i.insertAfter(c);else{const d=_n();d.append(c),i.insertAfter(d)}l.forEach(d=>{d.remove(),c.append(d)})}return tS(n),!0}class On extends p.ElementNode{constructor(t,r,o,i,l){super(l);Ne(this,"__value");Ne(this,"__checked");Ne(this,"__opened");Ne(this,"__isIndeterminate");this.__value=t===void 0?1:t,this.__checked=r,this.__opened=o,this.__isIndeterminate=i}static getType(){return"listitem"}static clone(t){return new On(t.__value,t.__checked,t.__opened,t.__isIndeterminate,t.__key)}createDOM(t){const r=document.createElement("li"),o=this.getParent();return gt(o)&&o.getListType()==="check"&&d0(r,this,null),r.value=this.__value,u0(r,t.theme,this),r}updateDOM(t,r,o){const i=this.getParent();return gt(i)&&i.getListType()==="check"&&d0(r,this,t),r.value=this.__value,u0(r,o.theme,this),!1}static transform(){return t=>{if(lt(jt(t),"node is not a ListItemNode"),t.__checked==null)return;const r=t.getParent();gt(r)&&r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:cS,priority:0})}}static importJSON(t){const r=_n(t.checked,t.opened,t.isIndeterminate);return r.setValue(t.value),r.setFormat(t.format),r.setDirection(t.direction),r}exportDOM(t){const r=this.createDOM(t._config);return r.style.textAlign=this.getFormatType(),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),opened:this.getOpened(),isIndeterminate:this.__isIndeterminate,version:1}}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(p.$isElementNode(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(t,r){if(jt(t))return super.replace(t);this.setIndent(0);const o=this.getParentOrThrow();if(!gt(o))return t;if(o.__first===this.getKey())o.insertBefore(t);else if(o.__last===this.getKey())o.insertAfter(t);else{const i=hn(o.getListType());let l=this.getNextSibling();for(;l;){const c=l;l=l.getNextSibling(),i.append(c)}o.insertAfter(t),t.insertAfter(i)}return r&&(lt(p.$isElementNode(t),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(i=>{t.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),t}insertAfter(t,r=!0){const o=this.getParentOrThrow();if(gt(o)||lt(!1,"insertAfter: list node is not parent of list item node"),jt(t))return super.insertAfter(t,r);const i=this.getNextSiblings();if(o.insertAfter(t,r),i.length!==0){const l=hn(o.getListType());i.forEach(c=>l.append(c)),t.insertAfter(l,r)}return t}remove(t){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(t),r&&o&&co(r)&&co(o)&&(b1(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(t,r=!0){const o=_n(this.__checked==null?void 0:!1);return this.insertAfter(o,r),o}collapseAtStart(t){const r=p.$createParagraphNode();this.getChildren().forEach(d=>r.append(d));const i=this.getParentOrThrow(),l=i.getParentOrThrow(),c=jt(l);if(i.getChildrenSize()===1)if(c)i.remove(),l.select();else{i.insertBefore(r),i.remove();const d=t.anchor,f=t.focus,h=r.getKey();d.type==="element"&&d.getNode().is(this)&&d.set(h,d.offset,"element"),f.type==="element"&&f.getNode().is(this)&&f.set(h,f.offset,"element")}else i.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();r.__value=t}getChecked(){const t=this.getLatest();let r;const o=this.getParent();return gt(o)&&(r=o.getListType()),r==="check"?!!t.__checked:void 0}getOpened(){const t=this.getLatest();let r;const o=this.getParent();return gt(o)&&(r=o.getListType()),r==="check"?!!t.__opened:void 0}setChecked(t){const r=this.getWritable();r.__checked=t}setOpened(t){const r=this.getWritable();r.__opened=t}setIndeterminate(t){const r=this.getWritable();r.__isIndeterminate=t}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const t=!(this.__opened===!0||this.__opened===void 0);this.setOpened(t)}getIndent(){const t=this.getParent();if(t===null)return this.getLatest().__indent;let r=t.getParentOrThrow(),o=0;for(;jt(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(t){lt(typeof t=="number","Invalid indent value."),t=Math.floor(t),lt(t>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==t;)r<t?(sS(this),r++):(aS(this),r--);return this}canInsertAfter(t){return jt(t)}canReplaceWith(t){return jt(t)}canMergeWith(t){return p.$isParagraphNode(t)||jt(t)}extractWithChild(t,r){if(!p.$isRangeSelection(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return hn("bullet")}canMergeWhenEmpty(){return!0}}function u0(e,n,t){let r=[],o=[];const i=n.list,l=i?i.listitem:void 0;let c;if(i&&i.nested&&(c=i.nested.listitem),l!==void 0&&r.push(...su(l)),i){const d=t.getParent(),f=gt(d)&&d.getListType()==="check",h=t.getChecked();(!f||h)&&o.push(i.listitemUnchecked),(!f||!h)&&o.push(i.listitemChecked),f&&r.push(h?i.listitemChecked:i.listitemUnchecked)}if(c!==void 0){const d=su(c);t.getChildren().some(f=>gt(f))?r.push(...d):o.push(...d)}t.__isIndeterminate?r=[...r,Rr.listitemIndeterminate]:o=[...o,Rr.listitemIndeterminate],o.length>0&&ve.removeClassNamesFromElement(e,...o),r.length>0&&ve.addClassNamesToElement(e,...r)}function d0(e,n,t,r){gt(n.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),(!t||n.__checked!==t.__checked)&&e.setAttribute("aria-checked",n.getChecked()?"true":"false"),n.__opened===!1?e.setAttribute("data-list","closed"):e.setAttribute("data-list","opened"))}function cS(e){if(e.classList.contains("task-list-item")){for(const c of e.children)if(c.tagName==="INPUT")return uS(c)}const t=e.getAttribute("aria-checked"),r=e.getAttribute("data-list"),o=t==="true"?!0:t==="false"?!1:void 0,i=!r||r==="opened",l=e.className.includes(Rr.listitemIndeterminate);return{node:_n(o,i,l)}}function uS(e){if(!(e.getAttribute("type")==="checkbox"))return{node:null};const t=e.hasAttribute("checked");return{node:_n(t,!1,!0)}}function _n(e,n,t){return p.$applyNodeReplacement(new On(void 0,e,n,t))}function jt(e){return e instanceof On}class br extends p.ElementNode{constructor(t,r,o){super(o);Ne(this,"__tag");Ne(this,"__start");Ne(this,"__listType");const i=p0[t]||t;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(t){const r=t.__listType||p0[t.__tag];return new br(r,t.__start,t.__key)}getTag(){return this.__tag}setListType(t){const r=this.getWritable();r.__listType=t,r.__tag=t==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(t,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,f0(i,t.theme,this),i}updateDOM(t,r,o){return t.__tag!==this.__tag?!0:(f0(r,o.theme,this),!1)}static transform(){return t=>{lt(gt(t),"node is not a ListNode"),iS(t),oS(t)}}static importDOM(){return{ol:()=>({conversion:h0,priority:0}),ul:()=>({conversion:h0,priority:0})}}static importJSON(t){const r=hn(t.listType,t.start);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportDOM(t){const{element:r}=super.exportDOM(t);return r&&ve.isHTMLElement(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(jt(o))super.append(o);else{const i=_n();if(gt(o))i.append(o);else if(p.$isElementNode(o)){const l=ci(o.getTextContent());i.append(l)}else i.append(o);super.append(i)}}return this}extractWithChild(t){return jt(t)}}function f0(e,n,t){const r=[],o=[],i=n.list;if(i!==void 0){const l=i[`${t.__tag}Depth`]||[],c=dh(t)-1,d=c%l.length,f=l[d],h=i[t.__tag];let g;const C=i.nested,b=i.checklist;if(C!==void 0&&C.list&&(g=C.list),h!==void 0&&r.push(h),b!==void 0&&t.__listType==="check"&&r.push(b),f!==void 0){r.push(...su(f));for(let y=0;y<l.length;y++)y!==d&&o.push(t.__tag+y)}if(g!==void 0){const y=su(g);c>1?r.push(...y):o.push(...y)}}o.length>0&&ve.removeClassNamesFromElement(e,...o),r.length>0&&ve.addClassNamesToElement(e,...r)}function dS(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];if(jt(r)){n.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{gt(i)&&n.push(l0(i))})}else n.push(l0(r))}return n}function fS(e){if(e.getAttribute("__lexicallisttype")==="check"||e.classList.contains("contains-task-list"))return!0;for(const n of e.childNodes)if(ve.isHTMLElement(n)&&n.hasAttribute("aria-checked"))return!0;return!1}function h0(e){const n=e.nodeName.toLowerCase();let t=null;if(n==="ol"){const r=e.start;t=hn("number",r)}else n==="ul"&&(fS(e)?t=hn("check"):t=hn("bullet"));return{after:dS,node:t}}const p0={ol:"number",ul:"bullet"};function hn(e,n=1){return p.$applyNodeReplacement(new br(e,n))}function gt(e){return e instanceof br}const y1=p.createCommand("INSERT_UNORDERED_LIST_COMMAND"),Pu=p.createCommand("INSERT_ORDERED_LIST_COMMAND"),x1=p.createCommand("INSERT_CHECK_LIST_COMMAND"),hS=p.createCommand("REMOVE_LIST_COMMAND");function pS(e){return ve.mergeRegister(e.registerCommand(Pu,()=>(hh(e,"number"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(y1,()=>(hh(e,"bullet"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(hS,()=>(rS(e),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>!!lS(),p.COMMAND_PRIORITY_LOW))}const au=/^(\d+(?:\.\d+)?)px$/,Tt={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class Zr extends p.ElementNode{constructor(t=Tt.NO_STATUS,r=1,o,i){super(i);Ne(this,"__colSpan");Ne(this,"__rowSpan");Ne(this,"__headerState");Ne(this,"__width");Ne(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=t,this.__width=o,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(t){return new Zr(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__rowSpan=t.__rowSpan,this.__backgroundColor=t.__backgroundColor}static importDOM(){return{td:t=>({conversion:m0,priority:0}),th:t=>({conversion:m0,priority:0})}}static importJSON(t){const r=t.colSpan||1,o=t.rowSpan||1;return Gr(t.headerState,r,t.width||void 0).setRowSpan(o).setBackgroundColor(t.backgroundColor||null)}createDOM(t){const r=document.createElement(this.getTag());return this.__width&&(r.style.maxWidth=`${this.__width}px`,r.style.minWidth=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),ve.addClassNamesToElement(r,t.theme.tableCell,this.hasHeader()&&t.theme.tableCellHeader),r}exportDOM(t){const{element:r}=super.exportDOM(t);if(r){const o=r;this.__colSpan>1&&(o.colSpan=this.__colSpan),this.__rowSpan>1&&(o.rowSpan=this.__rowSpan),this.getWidth()&&(o.style.maxWidth=`${this.getWidth()}px`,o.style.minWidth=`${this.getWidth()}px`),o.style.verticalAlign="top",o.style.textAlign="start";const i=this.getBackgroundColor();i!==null&&(o.style.backgroundColor=i)}return{element:r}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(t){const r=this.getWritable();return r.__colSpan=t,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(t){const r=this.getWritable();return r.__rowSpan=t,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(t,r=Tt.BOTH){const o=this.getWritable();return o.__headerState=t&r|o.__headerState&~r,o}getHeaderStyles(){return this.getLatest().__headerState}setWidth(t){const r=this.getWritable();return r.__width=t,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(t){const r=this.getWritable();return r.__backgroundColor=t,r}toggleHeaderStyle(t){const r=this.getWritable();return(r.__headerState&t)===t?r.__headerState-=t:r.__headerState+=t,r}hasHeaderState(t){return(this.getHeaderStyles()&t)===t}hasHeader(){return this.getLatest().__headerState!==Tt.NO_STATUS}updateDOM(t){return t.__headerState!==this.__headerState||t.__width!==this.__width||t.__colSpan!==this.__colSpan||t.__rowSpan!==this.__rowSpan||t.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function m0(e){const n=e,t=e.nodeName.toLowerCase();let r;(au.test(n.style.minWidth)||au.test(n.style.maxWidth))&&(r=parseFloat(n.style.minWidth));const o=Gr(t==="th"?Tt.ROW:Tt.NO_STATUS,n.colSpan,r);o.__rowSpan=n.rowSpan;const i=n.style.backgroundColor;i!==""&&(o.__backgroundColor=i);const l=n.style,c=(l&&l.textDecoration||"").split(" "),d=l.fontWeight==="700"||l.fontWeight==="bold",f=c.includes("line-through"),h=l.fontStyle==="italic",g=c.includes("underline");return{after:C=>(C.length===0&&C.push(p.$createParagraphNode()),C),forChild:(C,b)=>{if(Be(b)&&!p.$isElementNode(C)){const y=p.$createParagraphNode();return p.$isLineBreakNode(C)&&C.getTextContent()===`
|
|
3
|
-
`?null:(In(C)&&(d&&C.toggleFormat("bold"),f&&C.toggleFormat("strikethrough"),h&&C.toggleFormat("italic"),g&&C.toggleFormat("underline")),y.append(C),y)}return C},node:o}}function Gr(e,n=1,t){return p.$applyNodeReplacement(new Zr(e,n,t))}function Be(e){return e instanceof Zr}const Bu=p.createCommand("INSERT_TABLE_COMMAND");function qA(e,n){if(n.add(e.getKey()),p.$isElementNode(e))for(const t of e.getChildren())qA(t,n)}function _u(e){const n=e.getNodes();if(n.length===0)return!1;const t=n[0],r=n[n.length-1];if(p.$isDecoratorNode(t)||p.$isDecoratorNode(r))return!1;const o=p.$createRangeSelection(),i=p.$isElementNode(t)?"element":"text",l=p.$isElementNode(r)?"element":"text";o.anchor.set(t.getKey(),0,i),o.focus.set(r.getKey(),p.$isElementNode(r)?r.getChildrenSize():r.getTextContentSize(),l),p.$setSelection(o)}const Fu=[".ContentEditable__root > *:not(ol):not(ul):not(.dsd__theme__table-scrollable-wrapper):not(.editor-image:not(:has(button))):not(div.video-container):not(div.editor-iframe)",".dsd__theme__table-scrollable-wrapper > table",".editor-image > div.resizable-container > div.resizable-container__inner",".video-container > div.resizable-container > div.resizable-container__inner",".editor-iframe > div.resizable-container > div.resizable-container__inner",".editor-iframe",".audio-container"],ph=[...Fu,"ul.dsd__theme__ul > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol2 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol3 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol4 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol5 > li:not(.dsd__theme__nestedListItem)"],mS=[...Fu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],gS=[...Fu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem"],CS=[...Fu,"ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],AS=e=>{const n=document.querySelectorAll(".selected-block");if(n.length===0)return;setTimeout(()=>{e.update(()=>{const r=p.$createNodeSelection();n.forEach(o=>{const i=p.$getNearestNodeFromDOMNode(o);i&&qA(i,r)}),p.$setSelection(r)})},100);const t=r=>{const o=!!document.querySelector(".draggable-menu");if(r.button===2||o){r.preventDefault();return}const i=r.target;i.closest(".draggable-block-menu")||i.closest(".draggable-menu")||(n.forEach(l=>{Oo(l)}),document.body.removeEventListener("mousedown",t))};setTimeout(()=>{document.body.addEventListener("mousedown",t)}),e.update(()=>{const r=document.querySelector(".ContentEditable__root");r==null||r.focus({preventScroll:!0})})},bS=(e,n,t)=>{var l;const r=n.code==="ArrowUp"||n.code==="ArrowLeft",o=n.code==="ArrowDown"||n.code==="ArrowRight";if(!r&&!o)return!1;const i=t[0];return i?(n.preventDefault(),(l=e.getRootElement())==null||l.focus({preventScroll:!0}),e.update(()=>{var g,C,b,y;const c=p.$getNearestNodeFromDOMNode(i);if(!c)return;const d=r?(g=c.getPreviousSibling)==null?void 0:g.call(c):(C=c.getNextSibling)==null?void 0:C.call(c);if(!d)return;let f=d;for(;p.$isElementNode(f)&&f.getChildrenSize()>0&&(f=r?((b=f.getLastChild)==null?void 0:b.call(f))??f:((y=f.getFirstChild)==null?void 0:y.call(f))??f,f!==d););const h=(r?f==null?void 0:f.selectEnd:f==null?void 0:f.selectStart)||(f==null?void 0:f.select)||(d==null?void 0:d.select);h&&h.call(f||d)}),t.forEach(c=>Oo(c)),!0):!1},yS=(e,n,t)=>{var o;const r=t[0];return r?(n.preventDefault(),(o=e.getRootElement())==null||o.focus({preventScroll:!0}),e.update(()=>{const i=p.$getNearestNodeFromDOMNode(r);if(!i||typeof i.insertAfter!="function")return;const l=p.$createParagraphNode();i.insertAfter(l),l.selectStart()}),t.forEach(i=>Oo(i)),!0):!1},xS=(e,n,t)=>{const{hasSelectedBlock:r}=ti(),o=(t==null?void 0:t.getSelectedTargets())||[];return!r||!o.length?!1:n.key==="Backspace"||n.key==="Delete"?(o.forEach(c=>Oo(c)),t==null||t.setSelectedTargets([]),!1):n.code==="Enter"&&yS(e,n,o)?(t==null||t.setSelectedTargets([]),!0):bS(e,n,o)?(t==null||t.setSelectedTargets([]),!0):!1},vS={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},g0=(e,n,t)=>function r(o){if(o instanceof KeyboardEvent&&o.key!=="Backspace"&&o.key!=="Delete"&&o.key!=="Escape")return!1;const i=o.target;i.closest(".draggable-block-menu")||i.closest(".toolbar")||i.closest(".draggable-menu")||(e==null||e.classList.remove(n),t.update(()=>{i.closest(".ContentEditable__root")||p.$setSelection(null),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key!=="Escape"&&t.update(()=>{var c;(c=p.$getRoot().getFirstChild())==null||c.selectStart()}),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key==="Escape"&&t.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},Wu=(e,n)=>{var t,r;if(n&&n.block){const{block:o,isCreateEventListener:i}=n,l="selected-block";if(o.classList.add(l),o.classList.remove("selected-block-hidden"),i){const c=g0(o,l,e);document.body.addEventListener("mousedown",c),document.addEventListener("keydown",c)}}else{const o="selected-all-document",i=g0(e._rootElement,o,e);document.body.addEventListener("mousedown",i),document.addEventListener("keydown",i),(t=e._rootElement)==null||t.classList.add(o),(r=e._rootElement)==null||r.classList.remove("selected-block-hidden")}},Oo=e=>{e.classList.remove("selected-block"),e.classList.add("selected-block-hidden")},dc=e=>{e.querySelectorAll(".selected-block").forEach(t=>{Oo(t)})},wS=(e,n,t,r,o)=>{var i;if(((i=e.selected[0])==null?void 0:i.tagName)==="LI"){let l=e.added[0];if(!e.added.length&&e.beforeSelected.length>=2){const g=e.beforeSelected[0],C=e.beforeSelected[1],b=g.getBoundingClientRect().top;C.getBoundingClientRect().top<b?l=QA(e.selected[0]):l=e.selected[0]}let d=(l==null?void 0:l.classList.contains("dsd__theme__nestedListItem"))&&e.added.length===0?1:0,f=l,h=null;for(;f;){const g=f.tagName.toUpperCase();if(g==="UL"||g==="OL")h||(h=g.toLowerCase()),d++;else if(g!=="LI")break;f=f.parentElement}if(d!==0&&t.depth!==d){if(!h)return;r({depth:d,targets:kS(d,h)}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)})}}else!t.depth&&e.added.length&&(r({depth:999,targets:mS}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)}));e.added.forEach(l=>{Wu(n,{block:l,isCreateEventListener:!1})}),e.removed.forEach(l=>{Oo(l)})},ti=()=>{const e=document.querySelector("div.ContentEditable__root"),n=(e==null?void 0:e.querySelector(".selected-block"))!==null,t=e==null?void 0:e.classList.contains("selected-all-document");return{hasSelectedBlock:n,selectedAllDocument:t}},C0=(e,n,t,r)=>{if(e==="ol"){const o=Array.from({length:n},(d,f)=>`ol.dsd__theme__ol${f+1}`).join(" ");let i="";n===1&&(i=":not(.dsd__theme__nestedListItem ol)");const l=`${o}${i} >`;return t?`${l} li.dsd__theme__nestedListItem`:`${l} li:not(.dsd__theme__nestedListItem)`}else{const o=" ul".repeat(n-1).trim(),i=" ul".repeat(n).trim(),c=`ul.dsd__theme__ul${o?` ${o}`:""}:not(.dsd__theme__nestedListItem ${i}) >`;let d=`${c} li:not(.dsd__theme__nestedListItem)`;return t?`${c} li.dsd__theme__nestedListItem`:d}};function kS(e,n){if(e<1)throw new Error("Depth must be >= 1");const t=[];if(t.push(C0(n,e,!1)),t.push(C0(n,e,!0)),n==="ol"){if(e>1)for(let r=1;r<e;r++)t.push(`ol.dsd__theme__ol${r} > li:not(.dsd__theme__nestedListItem)`);return[...gS,...t]}else if(n==="ul"){if(e>1)for(let r=1;r<e;r++)t.push(`ul.dsd__theme__ul${" ul".repeat(r-1)}:not(.dsd__theme__nestedListItem ${"ul ".repeat(r).trim()}) > li:not(.dsd__theme__nestedListItem):not(:has(ul))`);return[...CS,...t]}return[...ph,...t]}function QA(e){const n=e.querySelector("ul, ol");let t=n==null?void 0:n.lastElementChild;for(;t&&t.tagName!=="LI";)t=t.previousElementSibling;return t!=null&&t.classList.contains("dsd__theme__nestedListItem")?QA(t)??t:t}function So(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}class Qs extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__height");this.__height=t}static getType(){return"tablerow"}static clone(t){return new Qs(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:SS,priority:0})}}static importJSON(t){return Ja(t.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(t){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),ve.addClassNamesToElement(r,t.theme.tableRow),r}isShadowRoot(){return!0}setHeight(t){const r=this.getWritable();return r.__height=t,this.__height}getHeight(){return this.getLatest().__height}updateDOM(t){return t.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function SS(e){const n=e;let t;return au.test(n.style.height)&&(t=parseFloat(n.style.height)),{node:Ja(t)}}function Ja(e){return p.$applyNodeReplacement(new Qs(e))}function _t(e){return e instanceof Qs}function ES(e,n,t=!0){const r=E1();for(let o=0;o<e;o++){const i=Ja();for(let l=0;l<n;l++){let c=Tt.NO_STATUS;typeof t=="object"?(o===0&&t.rows&&(c|=Tt.ROW),l===0&&t.columns&&(c|=Tt.COLUMN)):t&&(o===0&&(c|=Tt.ROW),l===0&&(c|=Tt.COLUMN));const d=Gr(c),f=p.$createParagraphNode();f.append(ci()),d.append(f),i.append(d)}r.append(i)}return r}function JA(e){const n=ve.$findMatchingParent(e,t=>_t(t));if(_t(n))return n;throw new Error("Expected table cell to be inside of table row.")}function Hn(e){const n=ve.$findMatchingParent(e,t=>St(t));if(St(n))return n;throw new Error("Expected table cell to be inside of table.")}function Xo(e){const n=JA(e);return Hn(n).getChildren().findIndex(r=>r.is(n))}function $o(e){return JA(e).getChildren().findIndex(t=>t.is(e))}const TS=(e,n)=>e===Tt.BOTH||e===n?n:Tt.NO_STATUS;function Xa(e=!0){const n=p.$getSelection();lt(p.$isRangeSelection(n)||xt(n),"Expected a RangeSelection or TableSelection");const t=n.focus.getNode(),[r,,o]=Tn(t),[i,l]=Dr(o,r,r),c=i[0].length,{startRow:d}=l;let f=null;if(e){const h=d+r.__rowSpan-1,g=i[h],C=Ja();for(let y=0;y<c;y++){const{cell:x,startRow:w}=g[y];if(w+x.__rowSpan-1<=h){const T=g[y].cell.__headerState;C.append(Gr(T).append(p.$createParagraphNode()))}else x.setRowSpan(x.__rowSpan+1)}const b=o.getChildAtIndex(h);lt(_t(b),"focusEndRow is not a TableRowNode"),b.insertAfter(C),f=C}else{const h=i[d],g=Ja();for(let b=0;b<c;b++){const{cell:y,startRow:x}=h[b];if(x===d){const k=h[b].cell.__headerState;g.append(Gr(k).append(p.$createParagraphNode()))}else y.setRowSpan(y.__rowSpan+1)}const C=o.getChildAtIndex(d);lt(_t(C),"focusEndRow is not a TableRowNode"),C.insertBefore(g),f=g}return f}function lu(e=!0){const n=p.$getSelection();lt(p.$isRangeSelection(n)||xt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),r=n.focus.getNode(),[o]=Tn(t),[i,,l]=Tn(r),[c,d,f]=Dr(l,i,o),h=c.length,g=e?Math.max(d.startColumn,f.startColumn):Math.min(d.startColumn,f.startColumn),C=e?g+i.__colSpan-1:g-1,b=l.getFirstChild();lt(_t(b),"Expected firstTable child to be a row");let y=null;function x(T=Tt.NO_STATUS){const R=Gr(T).append(p.$createParagraphNode());return y===null&&(y=R),R}let w=b;e:for(let T=0;T<h;T++){if(T!==0){const j=w.getNextSibling();lt(_t(j),"Expected row nextSibling to be a row"),w=j}const R=c[T],N=R[C<0?0:C].cell.__headerState,L=TS(N,Tt.ROW);if(C<0){v1(w,x(L));continue}const{cell:M,startColumn:S,startRow:I}=R[C];if(S+M.__colSpan-1<=C){let j=M,B=I,_=C;for(;B!==T&&j.__rowSpan>1;)if(_-=M.__colSpan,_>=0){const{cell:O,startRow:W}=R[_];j=O,B=W}else{w.append(x(L));continue e}const D=T?0:L;j.insertAfter(x(D))}else M.setColSpan(M.__colSpan+1)}y!==null&&$a(y);const k=l.getColWidths();if(k){const T=[...k],R=C<0?0:C,N=T[R];T.splice(R,0,N),l.setColWidths(T)}return y}function XA(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const[n,t]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[r,,o]=Tn(n),[i]=Tn(t),[l,c,d]=Dr(o,r,i),{startRow:f}=c,{startRow:h}=d,g=h+i.__rowSpan-1;if(l.length===g-f+1){o.remove();return}const C=l[0].length,b=l[g+1],y=o.getChildAtIndex(g+1);for(let x=g;x>=f;x--){for(let k=C-1;k>=0;k--){const{cell:T,startRow:R,startColumn:N}=l[x][k];if(N===k&&(x===f&&R<f&&T.setRowSpan(T.__rowSpan-(R-f)),R>=f&&R+T.__rowSpan-1>g))if(T.setRowSpan(T.__rowSpan-(g-R+1)),lt(y!==null,"Expected nextRowNode not to be null"),k===0)v1(y,T);else{const{cell:L}=b[k-1];L.insertAfter(T)}}const w=o.getChildAtIndex(x);lt(_t(w),"Expected TableNode childAtIndex(%s) to be RowNode",String(x)),w.remove()}if(b!==void 0){const{cell:x}=b[0];$a(x)}else{const x=l[f-1],{cell:w}=x[0];$a(w)}}function $A(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),t=e.focus.getNode(),[r,,o]=Tn(n),[i]=Tn(t),[l,c,d]=Dr(o,r,i),{startColumn:f}=c,{startRow:h,startColumn:g}=d,C=Math.min(f,g),b=Math.max(f+r.__colSpan-1,g+i.__colSpan-1),y=b-C+1;if(l[0].length===b-C+1){o.selectPrevious(),o.remove();return}const w=l.length;for(let N=0;N<w;N++)for(let L=C;L<=b;L++){const{cell:M,startColumn:S}=l[N][L];if(S<C){if(L===C){const I=C-S;M.setColSpan(M.__colSpan-Math.min(y,M.__colSpan-I))}}else if(S+M.__colSpan-1>b){if(L===b){const I=b-S+1;M.setColSpan(M.__colSpan-I)}}else M.remove()}const k=l[h],T=f>g?k[f+r.__colSpan]:k[g+i.__colSpan];if(T!==void 0){const{cell:N}=T;$a(N)}else{const N=g<f?k[g-1]:k[f-1],{cell:L}=N;$a(L)}const R=o.getColWidths();if(R){const N=[...R];N.splice(C,y),o.setColWidths(N)}}function $a(e){const n=e.getFirstDescendant();n==null?e.selectStart():n.getParentOrThrow().selectStart()}function v1(e,n){const t=e.getFirstChild();t!==null?t.insertBefore(n):e.append(n)}function A0(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),[t,r,o]=Tn(n),i=t.__colSpan,l=t.__rowSpan;if(i===1&&l===1)return;const[c,d]=Dr(o,t,t),{startColumn:f,startRow:h}=d,g=t.__headerState&Tt.COLUMN,C=Array.from({length:i},(x,w)=>{let k=g;for(let T=0;k!==0&&T<c.length;T++)k&=c[T][w+f].cell.__headerState;return k}),b=t.__headerState&Tt.ROW,y=Array.from({length:l},(x,w)=>{let k=b;for(let T=0;k!==0&&T<c[0].length;T++)k&=c[w+h][T].cell.__headerState;return k});if(i>1){for(let x=1;x<i;x++)t.insertAfter(Gr(C[x]|y[0]).append(p.$createParagraphNode()));t.setColSpan(1)}if(l>1){let x;for(let w=1;w<l;w++){const k=h+w,T=c[k];x=(x||r).getNextSibling(),lt(_t(x),"Expected row next sibling to be a row");let R=null;for(let N=0;N<f;N++){const L=T[N],M=L.cell;L.startRow===k&&(R=M),M.__colSpan>1&&(N+=M.__colSpan-1)}if(R===null)for(let N=i-1;N>=0;N--)v1(x,Gr(C[N]|y[w]).append(p.$createParagraphNode()));else for(let N=i-1;N>=0;N--)R.insertAfter(Gr(C[N]|y[w]).append(p.$createParagraphNode()))}t.setRowSpan(1)}}function Dr(e,n,t){const[r,o,i]=eb(e,n,t);return lt(o!==null,"Anchor not found in Table"),lt(i!==null,"Focus not found in Table"),[r,o,i]}function eb(e,n,t){const r=[];let o=null,i=null;function l(d){let f=r[d];return f===void 0&&(r[d]=f=[]),f}const c=e.getChildren();for(let d=0;d<c.length;d++){const f=c[d];lt(_t(f),"Expected TableNode children to be TableRowNode");for(let h=f.getFirstChild(),g=0;h!=null;h=h.getNextSibling()){lt(Be(h),"Expected TableRowNode children to be TableCellNode");const C=l(d);for(;C[g]!==void 0;)g++;const b={cell:h,startColumn:g,startRow:d},{__rowSpan:y,__colSpan:x}=h;for(let w=0;w<y&&!(d+w>=c.length);w++){const k=l(d+w);for(let T=0;T<x;T++)k[g+T]=b}n!==null&&o===null&&n.is(h)&&(o=b),t!==null&&i===null&&t.is(h)&&(i=b)}}return[r,o,i]}function Tn(e){let n;if(e instanceof Zr)n=e;else if("__type"in e){const o=ve.$findMatchingParent(e,Be);lt(Be(o),"Expected to find a parent TableCellNode"),n=o}else{const o=ve.$findMatchingParent(e.getNode(),Be);lt(Be(o),"Expected to find a parent TableCellNode"),n=o}const t=n.getParent();lt(_t(t),"Expected TableCellNode to have a parent TableRowNode");const r=t.getParent();return lt(St(r),"Expected TableRowNode to have a parent TableNode"),[n,t,r]}function b0(e){const[n,,t]=Tn(e),r=t.getChildren(),o=r.length,i=r[0].getChildren().length,l=new Array(o);for(let c=0;c<o;c++)l[c]=new Array(i);for(let c=0;c<o;c++){const f=r[c].getChildren();let h=0;for(let g=0;g<f.length;g++){for(;l[c][h];)h++;const C=f[g],b=C.__rowSpan||1,y=C.__colSpan||1;for(let x=0;x<b;x++)for(let w=0;w<y;w++)l[c+x][h+w]=C;if(n===C)return{colSpan:y,columnIndex:h,rowIndex:c,rowSpan:b};h+=y}}return null}class zu{constructor(n,t,r){Ne(this,"tableKey");Ne(this,"anchor");Ne(this,"focus");Ne(this,"_cachedNodes");Ne(this,"dirty");this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=n}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(n){this._cachedNodes=n}is(n){return xt(n)?this.tableKey===n.tableKey&&this.anchor.is(n.anchor)&&this.focus.is(n.focus):!1}set(n,t,r){this.dirty=!0,this.tableKey=n,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new zu(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(n){}insertText(){}hasFormat(n){let t=0;this.getNodes().filter(Be).forEach(i=>{const l=i.getFirstChild();p.$isParagraphNode(l)&&(t|=l.getTextFormat())});const o=p.TEXT_TYPE_TO_FORMAT[n];return(t&o)!==0}insertNodes(n){const t=this.focus.getNode();lt(p.$isElementNode(t),"Expected TableSelection focus to be an ElementNode"),p.$normalizeSelection__EXPERIMENTAL(t.select(0,t.getChildrenSize())).insertNodes(n)}getShape(){const n=p.$getNodeByKey(this.anchor.key);lt(Be(n),"Expected TableSelection anchor to be (or a child of) TableCellNode");const t=b0(n);lt(t!==null,"getCellRect: expected to find AnchorNode");const r=p.$getNodeByKey(this.focus.key);lt(Be(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=b0(r);lt(o!==null,"getCellRect: expected to find focusCellNode");const i=Math.min(t.columnIndex,o.columnIndex),l=Math.max(t.columnIndex+t.colSpan-1,o.columnIndex+o.colSpan-1),c=Math.min(t.rowIndex,o.rowIndex),d=Math.max(t.rowIndex+t.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(i,l),fromY:Math.min(c,d),toX:Math.max(i,l),toY:Math.max(c,d)}}getNodes(){const n=this._cachedNodes;if(n!==null)return n;const t=this.anchor.getNode(),r=this.focus.getNode(),o=ve.$findMatchingParent(t,Be),i=ve.$findMatchingParent(r,Be);lt(Be(o),"Expected TableSelection anchor to be (or a child of) TableCellNode"),lt(Be(i),"Expected TableSelection focus to be (or a child of) TableCellNode");const l=o.getParent();lt(_t(l),"Expected anchorCell to have a parent TableRowNode");const c=l.getParent();lt(St(c),"Expected tableNode to have a parent TableNode");const d=i.getParents()[1];if(d!==c){if(c.isParentOf(i)){const I=d.getParent();lt(I!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,i.getKey(),I.getKey())}else{const I=c.getParent();lt(I!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,I.getKey(),i.getKey())}return this.getNodes()}const[f,h,g]=Dr(c,o,i);let C=Math.min(h.startColumn,g.startColumn),b=Math.min(h.startRow,g.startRow),y=Math.max(h.startColumn+h.cell.__colSpan-1,g.startColumn+g.cell.__colSpan-1),x=Math.max(h.startRow+h.cell.__rowSpan-1,g.startRow+g.cell.__rowSpan-1),w=C,k=b,T=C,R=b;function N(I){const{cell:j,startColumn:B,startRow:_}=I;C=Math.min(C,B),b=Math.min(b,_),y=Math.max(y,B+j.__colSpan-1),x=Math.max(x,_+j.__rowSpan-1)}for(;C<w||b<k||y>T||x>R;){if(C<w){const I=R-k,j=w-1;for(let B=0;B<=I;B++)N(f[k+B][j]);w=j}if(b<k){const I=T-w,j=k-1;for(let B=0;B<=I;B++)N(f[j][w+B]);k=j}if(y>T){const I=R-k,j=T+1;for(let B=0;B<=I;B++)N(f[k+B][j]);T=j}if(x>R){const I=T-w,j=R+1;for(let B=0;B<=I;B++)N(f[j][w+B]);R=j}}const L=new Map([[c.getKey(),c]]);let M=null;for(let I=b;I<=x;I++)for(let j=C;j<=y;j++){const{cell:B}=f[I][j],_=B.getParent();lt(_t(_),"Expected TableCellNode parent to be a TableRowNode"),_!==M&&L.set(_.getKey(),_),L.set(B.getKey(),B);for(const D of MS(B))L.set(D.getKey(),D);M=_}const S=Array.from(L.values());return p.isCurrentlyReadOnlyMode()||(this._cachedNodes=S),S}getTextContent(){const n=this.getNodes().filter(r=>Be(r));let t="";for(let r=0;r<n.length;r++){const o=n[r],i=o.__parent,l=(n[r+1]||{}).__parent;t+=o.getTextContent()+(l!==i?`
|
|
4
|
-
`:" ")}return t}}function xt(e){return e instanceof zu}function y0(){const e=p.$createPoint("root",0,"element"),n=p.$createPoint("root",0,"element");return new zu("root",e,n)}function MS(e){const n=[],t=[e];for(;t.length>0;){const r=t.pop();lt(r!==void 0,"Stack.length > 0; can't be undefined"),p.$isElementNode(r)&&t.unshift(...r.getChildren()),r!==e&&n.push(r)}return n}function tb(e,n=p.$getEditor()){const t=p.$getNodeByKey(e);lt(St(t),"TableObserver: Expected tableNodeKey %s to be a TableNode",e);const r=Hi(t,n.getElementByKey(e));return lt(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",e),{tableElement:r,tableNode:t}}class LS{constructor(n,t){Ne(this,"focusX");Ne(this,"focusY");Ne(this,"listenersToRemove");Ne(this,"table");Ne(this,"isHighlightingCells");Ne(this,"anchorX");Ne(this,"anchorY");Ne(this,"tableNodeKey");Ne(this,"anchorCell");Ne(this,"focusCell");Ne(this,"anchorCellNodeKey");Ne(this,"focusCellNodeKey");Ne(this,"editor");Ne(this,"tableSelection");Ne(this,"hasHijackedSelectionStyles");Ne(this,"isSelecting");Ne(this,"shouldCheckSelection");Ne(this,"abortController");Ne(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=n,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(n=>n()),this.listenersToRemove.clear()}$lookup(){return tb(this.tableNodeKey,this.editor)}trackTable(){const n=new MutationObserver(t=>{this.editor.getEditorState().read(()=>{let r=!1;for(let o=0;o<t.length;o++){const c=t[o].target.nodeName;if(c==="TABLE"||c==="TBODY"||c==="THEAD"||c==="TR"){r=!0;break}}if(r)try{const{tableNode:o,tableElement:i}=this.$lookup();this.table=Ia(o,i)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:t,tableElement:r}=this.$lookup();this.table=Ia(t,r),n.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const n=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),n.update(()=>{const{tableNode:t,tableElement:r}=this.$lookup(),o=Ia(t,r);fc(n,o,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}enableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();ve.removeClassNamesFromElement(t,n._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:n})}disableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();ve.addClassNamesToElement(t,n._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:n})}updateTableTableSelection(n){if(n!==null&&n.tableKey===this.tableNodeKey){const t=this.editor;this.tableSelection=n,this.isHighlightingCells=!0,this.disableHighlightStyle(),fc(t,this.table,this.tableSelection)}else n==null?this.clearHighlight():(this.tableNodeKey=n.tableKey,this.updateTableTableSelection(n))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(n,t=!1){const r=this.editor;r.update(()=>{const{tableNode:o}=this.$lookup(),i=n.x,l=n.y;if(this.focusCell=n,this.anchorCell!==null){const c=nb(r._window);c&&c.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==i||this.anchorY!==l||t))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(i===this.focusX&&l===this.focusY)return;if(this.focusX=i,this.focusY=l,this.isHighlightingCells){const c=p.$getNearestNodeFromDOMNode(n.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&Be(c)&&o.is(Ii(c))){const d=c.getKey();this.tableSelection=this.tableSelection.clone()||y0(),this.focusCellNodeKey=d,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),p.$setSelection(this.tableSelection),r.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),fc(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(n){this.isHighlightingCells=!1,this.anchorCell=n,this.anchorX=n.x,this.anchorY=n.y,this.editor.update(()=>{const t=p.$getNearestNodeFromDOMNode(n.elem);if(Be(t)){const r=t.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():y0(),this.anchorCellNodeKey=r}})}formatCells(n){this.editor.update(()=>{const t=p.$getSelection();xt(t)||lt(!1,"Expected grid selection");const r=p.$createRangeSelection(),o=r.anchor,i=r.focus,l=t.getNodes().filter(Be),c=l[0].getFirstChild(),d=p.$isParagraphNode(c)?c.getFormatFlags(n,null):null;l.forEach(f=>{o.set(f.getKey(),0,"element"),i.set(f.getKey(),f.getChildrenSize(),"element"),r.formatText(n,d)}),p.$setSelection(t),this.editor.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){const n=this.editor;n.update(()=>{const t=p.$getNodeByKey(this.tableNodeKey);if(!St(t))throw new Error("Expected TableNode.");const r=p.$getSelection();xt(r)||lt(!1,"Expected grid selection");const o=r.getNodes().filter(Be);if(o.length===this.table.columns*this.table.rows){t.selectPrevious(),t.remove(),p.$getRoot().selectStart();return}o.forEach(i=>{if(p.$isElementNode(i)){const l=p.$createParagraphNode(),c=ci();l.append(c),i.append(l),i.getChildren().forEach(d=>{d!==l&&d.remove()})}}),fc(n,this.table,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}}const w1="__lexicalTableSelection",nb=e=>mi?(e||window).getSelection():null,NS=e=>(e.buttons&1)===1;function Hi(e,n){if(!n)return n;const t=n.nodeName==="TABLE"?n:e.getDOMSlot(n).element;return lt(t.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",n.nodeName),t}function jS(e,n,t,r){const o=t.getRootElement();if(o===null)throw new Error("No root element.");const i=new LS(t,e.getKey()),l=t._window||window,c=Hi(e,n);IS(c,i),i.listenersToRemove.add(()=>RS(c,i));const d=()=>{const y=()=>{i.isSelecting=!1,l.removeEventListener("mouseup",y),l.removeEventListener("mousemove",x)},x=Su.debounce(w=>{setTimeout(()=>{if(!NS(w)&&i.isSelecting){i.isSelecting=!1,l.removeEventListener("mouseup",y),l.removeEventListener("mousemove",x);return}const k=cu(w.target);k!==null&&(i.anchorX!==k.x||i.anchorY!==k.y)&&(w.preventDefault(),i.setFocusCellForSelection(k))},0)},20);return{onMouseMove:x,onMouseUp:y}},f=y=>{setTimeout(()=>{if(y.button!==0||!l)return;const x=cu(y.target);x!==null&&(So(y),i.setAnchorCellForSelection(x));const{onMouseUp:w,onMouseMove:k}=d();i.isSelecting=!0,l.addEventListener("mouseup",w,i.listenerOptions),l.addEventListener("mousemove",k,i.listenerOptions)},0)};c.addEventListener("mousedown",f,i.listenerOptions);const h=y=>{y.button===0&&t.update(()=>{const x=p.$getSelection(),w=y.target;xt(x)&&x.tableKey===i.tableNodeKey&&o.contains(w)&&i.clearHighlight()})};l.addEventListener("mousedown",h,i.listenerOptions),i.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_DOWN_COMMAND,y=>xa(t,y,"down",e,i),p.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_UP_COMMAND,y=>xa(t,y,"up",e,i),p.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_LEFT_COMMAND,y=>xa(t,y,"backward",e,i),p.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,y=>xa(t,y,"forward",e,i),p.COMMAND_PRIORITY_HIGH));const g=y=>()=>{const x=p.$getSelection();if(!ji(x,e))return!1;if(xt(x))return i.clearText(),!0;if(p.$isRangeSelection(x)){const w=ve.$findMatchingParent(x.anchor.getNode(),I=>Be(I));if(!Be(w))return!1;const k=x.anchor.getNode(),T=x.focus.getNode(),R=e.isParentOf(k),N=e.isParentOf(T);if(R&&!N||N&&!R)return i.clearText(),!0;const M=ve.$findMatchingParent(x.anchor.getNode(),I=>p.$isElementNode(I)),S=M&&ve.$findMatchingParent(M,I=>p.$isElementNode(I)&&Be(I.getParent()));if(!p.$isElementNode(S)||!p.$isElementNode(M))return!1;if(y===p.DELETE_LINE_COMMAND&&S.getPreviousSibling()===null)return!0}return!1};[p.DELETE_WORD_COMMAND,p.DELETE_LINE_COMMAND,p.DELETE_CHARACTER_COMMAND].forEach(y=>{i.listenersToRemove.add(t.registerCommand(y,g(y),p.COMMAND_PRIORITY_CRITICAL))});const C=y=>{const x=p.$getSelection();if(!(xt(x)||p.$isRangeSelection(x)))return!1;const w=e.isParentOf(x.anchor.getNode()),k=e.isParentOf(x.focus.getNode());if(w!==k){const T=w?"anchor":"focus",R=w?"focus":"anchor",{key:N,offset:L,type:M}=x[R];return e[x[T].isBefore(x[R])?"selectPrevious":"selectNext"]()[R].set(N,L,M),!1}return xt(x)?(y&&(y.preventDefault(),y.stopPropagation()),i.clearText(),!0):!1};i.listenersToRemove.add(t.registerCommand(p.KEY_BACKSPACE_COMMAND,C,p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.KEY_DELETE_COMMAND,C,p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.CUT_COMMAND,y=>{const x=p.$getSelection();if(x){if(!(xt(x)||p.$isRangeSelection(x)))return!1;Ka.copyToClipboard(t,ve.objectKlassEquals(y,ClipboardEvent)?y:null,Ka.$getClipboardDataFromSelection(x));const w=C(y);return p.$isRangeSelection(x)?(x.removeText(),!0):w}return!1},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.FORMAT_TEXT_COMMAND,y=>{const x=p.$getSelection();if(!ji(x,e))return!1;if(xt(x))return i.formatCells(y),!0;if(p.$isRangeSelection(x)){const w=ve.$findMatchingParent(x.anchor.getNode(),k=>Be(k));if(!Be(w))return!1}return!1},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.FORMAT_ELEMENT_COMMAND,y=>{const x=p.$getSelection();if(!xt(x)||!ji(x,e))return!1;const w=x.anchor.getNode(),k=x.focus.getNode();if(!Be(w)||!Be(k))return!1;const[T,R,N]=Dr(e,w,k),L=Math.max(R.startRow,N.startRow),M=Math.max(R.startColumn,N.startColumn),S=Math.min(R.startRow,N.startRow),I=Math.min(R.startColumn,N.startColumn);for(let j=S;j<=L;j++)for(let B=I;B<=M;B++){const _=T[j][B].cell;_.setFormat(y);const D=_.getChildren();for(let O=0;O<D.length;O++){const W=D[O];p.$isElementNode(W)&&!W.isInline()&&W.setFormat(y)}}return!0},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,y=>{const x=p.$getSelection(),w=x==null?void 0:x.getNodes(),k=Be(w[1]),T=p.$getRoot(),R=t._keyToDOMMap.size-1===(x==null?void 0:x.getNodes().length);if(k&&t.update(()=>{const N=p.$createParagraphNode(),L=ci(y);N.append(L),w.forEach(M=>{if(!St(M))return;const S=M.getPreviousSibling(),I=M.getNextSibling();S?S.insertAfter(N,!0):I&&I.insertBefore(N).selectEnd(),M.remove()}),R&&(T.clear(),x.insertText(y))}),!ji(x,e))return!1;if(xt(x))return i.clearHighlight(),!1;if(p.$isRangeSelection(x)){const N=ve.$findMatchingParent(x.anchor.getNode(),L=>Be(L));if(!Be(N))return!1;if(typeof y=="string"){const L=w0(t,x,e);if(L)return v0(L,e,[ci(y)]),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),r&&i.listenersToRemove.add(t.registerCommand(p.KEY_TAB_COMMAND,y=>{const x=p.$getSelection();if(!p.$isRangeSelection(x)||!x.isCollapsed()||!ji(x,e))return!1;const w=pc(x.anchor.getNode());if(w===null)return!1;So(y);const k=e.getCordsFromCellNode(w,i.table);return rb(i,e,k.x,k.y,y.shiftKey?"backward":"forward"),!0},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.FOCUS_COMMAND,y=>e.isSelected(),p.COMMAND_PRIORITY_HIGH));function b(y){const x=e.getCordsFromCellNode(y,i.table);return e.getDOMCellFromCordsOrThrow(x.x,x.y,i.table)}return i.listenersToRemove.add(t.registerCommand(p.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,y=>{const{nodes:x,selection:w}=y,k=w.focus.getNode().getParent();if(Be(k)&&x.length>0){const T=x[0];if(St(T)){const R=T.getFirstChild();return R&&R.getChildrenSize(),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>{const y=p.$getSelection(),x=p.$getPreviousSelection();if(i.getAndClearShouldCheckSelection()&&p.$isRangeSelection(x)&&p.$isRangeSelection(y)&&y.isCollapsed()){const T=y.anchor.getNode(),R=e.getFirstChild(),N=pc(T);if(N!==null&&e.is(Ii(N))&&_t(R)){const L=R.getFirstChild();if(Be(L)&&!ve.$findMatchingParent(N,M=>M.is(L)))return L.selectStart(),!0}}const{hasSelectedBlock:w,selectedAllDocument:k}=ti();if(p.$isRangeSelection(y)){const{anchor:T,focus:R}=y,N=T.getNode(),L=R.getNode(),M=pc(N),S=pc(L),I=!!(M&&e.is(Ii(M))),j=!!(S&&e.is(Ii(S))),B=I!==j,_=I&&j,D=y.isBackward();if(B){const O=y.clone();if(j){const[W]=Dr(e,S,S),K=W[0][0].cell,F=W[W.length-1].at(-1).cell;O.focus.set(D?K.getKey():F.getKey(),D?K.getChildrenSize():F.getChildrenSize(),"element")}else if(I){const[W]=Dr(e,M,M),K=W[0][0].cell,F=W[W.length-1].at(-1).cell;O.anchor.set(D?F.getKey():K.getKey(),D?F.getChildrenSize():0,"element")}p.$setSelection(O),!w&&!k&&x0(t,i)}else _&&(M.is(S)||(i.setAnchorCellForSelection(b(M)),i.setFocusCellForSelection(b(S),!0),i.isSelecting||setTimeout(()=>{const{onMouseUp:O,onMouseMove:W}=d();i.isSelecting=!0,l.addEventListener("mouseup",O),l.addEventListener("mousemove",W)},0)))}else if(y&&xt(y)&&y.is(x)&&y.tableKey===e.getKey()){const T=nb(t._window);if(T&&T.anchorNode&&T.focusNode){const R=p.$getNearestNodeFromDOMNode(T.focusNode),N=R&&!e.is(Ii(R)),L=p.$getNearestNodeFromDOMNode(T.anchorNode),M=L&&e.is(Ii(L));if(N&&M&&T.rangeCount>0){const S=p.$createRangeSelectionFromDom(T,t);S&&(S.anchor.set(e.getKey(),y.isBackward()?e.getChildrenSize():0,"element"),T.removeAllRanges(),p.$setSelection(S))}}}return y&&!y.is(x)&&(xt(y)||xt(x))&&i.tableSelection&&!i.tableSelection.is(x)?(xt(y)&&y.tableKey===i.tableNodeKey?i.updateTableTableSelection(y):!xt(y)&&xt(x)&&x.tableKey===i.tableNodeKey&&i.updateTableTableSelection(null),!1):(i.hasHijackedSelectionStyles&&!e.isSelected()?DS(t,i):!i.hasHijackedSelectionStyles&&e.isSelected()&&!w&&!k&&x0(t,i),!1)},p.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(t.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const y=p.$getSelection();if(!p.$isRangeSelection(y)||!y.isCollapsed()||!ji(y,e))return!1;const x=w0(t,y,e);return x?(v0(x,e),!0):!1},p.COMMAND_PRIORITY_CRITICAL)),i}function RS(e,n){k1(e)===n&&delete e[w1]}function IS(e,n){lt(k1(e)===null,"tableElement already has an attached TableObserver"),e[w1]=n}function k1(e){return e[w1]||null}function cu(e){let n=e;for(;n!=null;){const t=n.nodeName;if(t==="TD"||t==="TH"){const r=n._cell;return r===void 0?null:r}n=n.parentNode}return null}function Ia(e,n){const t=Hi(e,n),r=[],o={columns:0,domRows:r,rows:0};let i=t.querySelector("tr"),l=0,c=0;for(r.length=0;i!=null;){const d=i.nodeName;if(d==="TD"||d==="TH"){const g=i,C={elem:g,hasBackgroundColor:g.style.backgroundColor!=="",highlighted:!1,x:l,y:c};i._cell=C;let b=r[c];b===void 0&&(b=r[c]=[]),b[l]=C}else{const g=i.firstChild;if(g!=null){i=g;continue}}const f=i.nextSibling;if(f!=null){l++,i=f;continue}const h=i.parentNode;if(h!=null){const g=h.nextSibling;if(g==null)break;c++,l=0,i=g}}return o.columns=l+1,o.rows=c+1,o}function fc(e,n,t){const r=new Set(t?t.getNodes():[]);S1(n,(o,i)=>{const l=o.elem;r.has(i)?(o.highlighted=!0,ib(e,o)):(o.highlighted=!1,sb(e,o),l.getAttribute("style")||l.removeAttribute("style"))})}function S1(e,n){const{domRows:t}=e;for(let r=0;r<t.length;r++){const o=t[r];if(o)for(let i=0;i<o.length;i++){const l=o[i];if(!l)continue;const c=p.$getNearestNodeFromDOMNode(l.elem);c!==null&&n(l,c,{x:i,y:r})}}}function x0(e,n){n.disableHighlightStyle(),S1(n.table,t=>{t.highlighted=!0,ib(e,t)})}function DS(e,n){n.enableHighlightStyle(),S1(n.table,t=>{const r=t.elem;t.highlighted=!1,sb(e,t),r.getAttribute("style")||r.removeAttribute("style")})}const rb=(e,n,t,r,o)=>{const i=o==="forward";switch(o){case"backward":case"forward":return t!==(i?e.table.columns-1:0)?hc(n.getCellNodeFromCordsOrThrow(t+(i?1:-1),r,e.table),i):r!==(i?e.table.rows-1:0)?hc(n.getCellNodeFromCordsOrThrow(i?0:e.table.columns-1,r+(i?1:-1),e.table),i):i?n.selectNext():n.selectPrevious(),!0;case"up":return r!==0?hc(n.getCellNodeFromCordsOrThrow(t,r-1,e.table),!1):n.selectPrevious(),!0;case"down":return r!==e.table.rows-1?hc(n.getCellNodeFromCordsOrThrow(t,r+1,e.table),!0):n.selectNext(),!0;default:return!1}},OS=(e,n,t,r,o)=>{const i=o==="forward";switch(o){case"backward":case"forward":return t!==(i?e.table.columns-1:0)&&e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t+(i?1:-1),r,e.table)),!0;case"up":return r!==0?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r-1,e.table)),!0):!1;case"down":return r!==e.table.rows-1?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r+1,e.table)),!0):!1;default:return!1}};function ji(e,n){if(p.$isRangeSelection(e)||xt(e)){const t=n.isParentOf(e.anchor.getNode()),r=n.isParentOf(e.focus.getNode());return t&&r}return!1}function hc(e,n){n?e.selectStart():e.selectEnd()}const kf="172,206,247";let ob=!1;function Ca(e){ob=e}function ib(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);if(lt(Be(r),"Expected to find LexicalNode from Table Cell DOMNode"),ob){t.style.setProperty("caret-color","transparent");return}r.getBackgroundColor()===null?t.style.setProperty("background-color",`rgb(${kf})`):t.style.setProperty("background-image",`linear-gradient(to right, rgba(${kf},0.85), rgba(${kf},0.85))`),t.style.setProperty("caret-color","transparent")}function sb(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);lt(Be(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&t.style.removeProperty("background-color"),t.style.removeProperty("background-image"),t.style.removeProperty("caret-color")}function pc(e){const n=ve.$findMatchingParent(e,Be);return Be(n)?n:null}function Ii(e){const n=ve.$findMatchingParent(e,St);return St(n)?n:null}function xa(e,n,t,r,o){if((t==="up"||t==="down")&&PS(e))return!1;const i=p.$getSelection();if(!ji(i,r)){if(p.$isRangeSelection(i)){if(i.isCollapsed()&&t==="backward"){const l=i.anchor.type,c=i.anchor.offset;if(l!=="element"&&!(l==="text"&&c===0))return!1;const d=i.anchor.getNode();if(!d)return!1;const f=ve.$findMatchingParent(d,g=>p.$isElementNode(g)&&!g.isInline());if(!f)return!1;const h=f.getPreviousSibling();return!h||!St(h)?!1:(So(n),h.selectEnd(),!0)}else if(n.shiftKey&&(t==="up"||t==="down")){const l=i.focus.getNode();if(!i.isCollapsed()&&(t==="up"&&!i.isBackward()||t==="down"&&i.isBackward())){let d=ve.$findMatchingParent(l,b=>St(b));if(Be(d)&&(d=ve.$findMatchingParent(d,St)),d!==r||!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(!f)return!1;let h=0;t==="up"&&p.$isElementNode(f)&&(h=f.getChildrenSize());let g=f;if(t==="up"&&p.$isElementNode(f)){const b=f.getLastChild();g=b||f,h=In(g)?g.getTextContentSize():0}const C=i.clone();return C.focus.set(g.getKey(),h,In(g)?"text":"element"),p.$setSelection(C),So(n),!0}else if(p.$isRootOrShadowRoot(l)){const d=t==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(d){const f=ve.$findMatchingParent(d,Be);if(f&&r.isParentOf(f)){const h=r.getFirstDescendant(),g=r.getLastDescendant();if(!h||!g)return!1;const[C]=Tn(h),[b]=Tn(g),y=r.getCordsFromCellNode(C,o.table),x=r.getCordsFromCellNode(b,o.table),w=r.getDOMCellFromCordsOrThrow(y.x,y.y,o.table),k=r.getDOMCellFromCordsOrThrow(x.x,x.y,o.table);return o.setAnchorCellForSelection(w),o.setFocusCellForSelection(k,!0),!0}}return!1}else{let d=ve.$findMatchingParent(l,h=>p.$isElementNode(h)&&!h.isInline());if(Be(d)&&(d=ve.$findMatchingParent(d,St)),!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(St(f)&&o.tableNodeKey===f.getKey()){const h=f.getFirstDescendant(),g=f.getLastDescendant();if(!h||!g)return!1;const[C]=Tn(h),[b]=Tn(g),y=i.clone();return y.focus.set((t==="up"?C:b).getKey(),t==="up"?0:b.getChildrenSize(),"element"),So(n),p.$setSelection(y),!0}}}}return t==="down"&&ab(e)&&o.setShouldCheckSelection(),!1}if(p.$isRangeSelection(i)&&i.isCollapsed()){const{anchor:l,focus:c}=i,d=ve.$findMatchingParent(l.getNode(),Be),f=ve.$findMatchingParent(c.getNode(),Be);if(!Be(d)||!d.is(f))return!1;const h=Ii(d);if(h!==r&&h!=null){const T=Hi(h,e.getElementByKey(h.getKey()));if(T!=null)return o.table=Ia(h,T),xa(e,n,t,h,o)}if(t==="backward"||t==="forward"){const T=l.type,R=l.offset,N=l.getNode();if(!N)return!1;const L=i.getNodes();return L.length===1&&p.$isDecoratorNode(L[0])?!1:BS(T,R,N,t)?WS(n,N,r,t):!1}const g=e.getElementByKey(d.__key),C=e.getElementByKey(l.key);if(C==null||g==null)return!1;let b;if(l.type==="element")b=C.getBoundingClientRect();else{const T=window.getSelection();if(T===null||T.rangeCount===0)return!1;b=T.getRangeAt(0).getBoundingClientRect()}const y=t==="up"?d.getFirstChild():d.getLastChild();if(y==null)return!1;const x=e.getElementByKey(y.__key);if(x==null)return!1;const w=x.getBoundingClientRect();if(t==="up"?w.top>b.top-b.height:b.bottom+b.height>w.bottom){So(n);const T=r.getCordsFromCellNode(d,o.table);if(n.shiftKey){const R=r.getDOMCellFromCordsOrThrow(T.x,T.y,o.table);o.setAnchorCellForSelection(R),o.setFocusCellForSelection(R,!0)}else return rb(o,r,T.x,T.y,t);return!0}}else if(xt(i)){const{anchor:l,focus:c}=i,d=ve.$findMatchingParent(l.getNode(),Be),f=ve.$findMatchingParent(c.getNode(),Be),[h]=i.getNodes();lt(St(h),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const g=Hi(h,e.getElementByKey(h.getKey()));if(!Be(d)||!Be(f)||!St(h)||g==null)return!1;o.updateTableTableSelection(i);const C=Ia(h,g),b=r.getCordsFromCellNode(d,C),y=r.getDOMCellFromCordsOrThrow(b.x,b.y,C);if(o.setAnchorCellForSelection(y),So(n),n.shiftKey){const x=r.getCordsFromCellNode(f,C);return OS(o,h,x.x,x.y,t)}else f.selectEnd();return!0}return!1}function PS(e){const n=e.getRootElement();return n?n.hasAttribute("aria-controls")&&n.getAttribute("aria-controls")==="typeahead-menu":!1}function BS(e,n,t,r){return _S(e,t,r)||FS(e,n,t,r)}function _S(e,n,t){return e==="element"&&(t==="backward"?n.getPreviousSibling()===null:n.getNextSibling()===null)}function FS(e,n,t,r){const o=ve.$findMatchingParent(t,l=>p.$isElementNode(l)&&!l.isInline());if(!o)return!1;const i=r==="backward"?n===0:n===t.getTextContentSize();return e==="text"&&i&&(r==="backward"?o.getPreviousSibling()===null:o.getNextSibling()===null)}function WS(e,n,t,r){const o=ve.$findMatchingParent(n,Be);if(!Be(o))return!1;const[i,l]=Dr(t,o,o);if(!zS(i,l,r))return!1;const c=KS(n,r,t);return!c||St(c)?!1:(So(e),r==="backward"?c.selectEnd():c.selectStart(),!0)}function zS(e,n,t){const r=e[0][0],o=e[e.length-1][e[0].length-1],{startColumn:i,startRow:l}=n;return t==="backward"?i===r.startColumn&&l===r.startRow:i===o.startColumn&&l===o.startRow}function KS(e,n,t){const r=ve.$findMatchingParent(e,i=>p.$isElementNode(i)&&!i.isInline());if(!r)return;const o=n==="backward"?r.getPreviousSibling():r.getNextSibling();return o&&St(o)?o:n==="backward"?t.getPreviousSibling():t.getNextSibling()}function v0(e,n,t){const r=p.$createParagraphNode();e==="first"?n.insertBefore(r):n.insertAfter(r),r.append(...t||[]),r.selectEnd()}function w0(e,n,t){const r=t.getParent();if(!r)return;const o=window.getSelection();if(!o)return;const i=o.anchorNode,l=e.getElementByKey(r.getKey()),c=Hi(t,e.getElementByKey(t.getKey()));if(!i||!l||!c||!l.contains(i)||c.contains(i))return;const d=ve.$findMatchingParent(n.anchor.getNode(),T=>Be(T));if(!d)return;const f=ve.$findMatchingParent(d,T=>St(T));if(!St(f)||!f.is(t))return;const[h,g]=Dr(t,d,d),C=h[0][0],b=h[h.length-1][h[0].length-1],{startRow:y,startColumn:x}=g,w=y===C.startRow&&x===C.startColumn,k=y===b.startRow&&x===b.startColumn;return w?"first":k?"last":void 0}function k0(e,n,t,r){const o=e.querySelector("colgroup");if(!o)return;const i=[];for(let l=0;l<t;l++){const c=document.createElement("col"),d=r&&r[l];d&&(c.style.width=`${d}px`),i.push(c)}o.replaceChildren(...i)}function S0(e,n,t){t?(ve.addClassNamesToElement(e,n.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):(ve.removeClassNamesFromElement(e,n.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}const mh=new WeakSet;function ab(e=p.$getEditor()){return mh.has(e)}function US(e,n){n?(e._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),mh.add(e)):mh.delete(e)}class Vr extends p.ElementNode{constructor(t){super(t);Ne(this,"__rowStriping");Ne(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(t){const r=this.getWritable();return r.__colWidths=t,r}static clone(t){return new Vr(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__colWidths=t.__colWidths,this.__rowStriping=t.__rowStriping}static importDOM(){return{table:t=>({conversion:HS,priority:1})}}static importJSON(t){const r=E1();return r.__rowStriping=t.rowStriping||!1,r.__colWidths=t.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(t){const r=t.nodeName!=="TABLE"&&t.querySelector("table")||t;return lt(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(t,r){const o=document.createElement("table"),i=document.createElement("colgroup");if(o.appendChild(i),k0(o,t,this.getColumnCount(),this.getColWidths()),p.setDOMUnmanaged(i),ve.addClassNamesToElement(o,t.theme.table),this.__rowStriping&&S0(o,t,!0),ab(r)){const l=document.createElement("div"),c=t.theme.tableScrollableWrapper;return c?ve.addClassNamesToElement(l,c):l.style.cssText="overflow-x: auto;",l.appendChild(o),l}return o}updateDOM(t,r,o){const l=this.getDOMSlot(r).element;return t.__rowStriping!==this.__rowStriping&&S0(r,o,this.__rowStriping),k0(l,o,this.getColumnCount(),this.getColWidths()),t!==this}exportDOM(t){return{...super.exportDOM(t),after:r=>{if(!r||!ve.isHTMLElement(r))return null;const o=r.firstChild;if(!(o instanceof HTMLTableElement))return null;const i=r.querySelectorAll(":scope > tr");if(i.length>0){const l=document.createElement("tbody");l.append(...i),o.append(l),r.append(o)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(t,r){const{rows:o,domRows:i}=r;for(let l=0;l<o;l++){const c=i[l];if(c==null)continue;const d=c.findIndex(f=>{if(!f)return;const{elem:h}=f;return p.$getNearestNodeFromDOMNode(h)===t});if(d!==-1)return{x:d,y:l}}throw new Error("Cell not found in table.")}getDOMCellFromCords(t,r,o){const{domRows:i}=o,l=i[r];if(l==null)return null;const c=t<l.length?t:l.length-1,d=l[c];return d??null}getDOMCellFromCordsOrThrow(t,r,o){const i=this.getDOMCellFromCords(t,r,o);if(!i)throw new Error("Cell not found at cords.");return i}getCellNodeFromCords(t,r,o){const i=this.getDOMCellFromCords(t,r,o);if(i==null)return null;const l=p.$getNearestNodeFromDOMNode(i.elem);return Be(l)?l:null}getCellNodeFromCordsOrThrow(t,r,o){const i=this.getCellNodeFromCords(t,r,o);if(!i)throw new Error("Node at cords not TableCellNode.");return i}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(t){this.getWritable().__rowStriping=t}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const t=this.getFirstChild();if(!t)return 0;let r=0;return t.getChildren().forEach(o=>{Be(o)&&(r+=o.getColSpan())}),r}}function HS(e){const n=E1();e.hasAttribute("data-lexical-row-striping")&&n.setRowStriping(!0);const t=e.querySelector(":scope > colgroup");if(t){let r=[];for(const o of t.querySelectorAll(":scope > col")){const i=o.style.width;if(!i||!au.test(i)){r=void 0;break}r.push(parseFloat(i))}r&&n.setColWidths(r)}return{node:n}}function E1(){return p.$applyNodeReplacement(new Vr)}function St(e){return e instanceof Vr}const lb=m.createContext([e=>()=>{},e=>{}]),YS=({children:e})=>{const n=m.useMemo(()=>{let t=null;const r=new Set;return[o=>(o(t),r.add(o),()=>{r.delete(o)}),o=>{t=o;for(const i of r)i(o)}]},[]);return s.jsx(lb.Provider,{value:n,children:e})},ZS=()=>{const[e,n]=m.useContext(lb),[t,r]=m.useState(null);return m.useEffect(()=>e(o=>{r(o)}),[e]),[t,n]},GS=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class Ku extends p.DecoratorNode{constructor(t,r){super(r);Ne(this,"__uuid");this.__uuid=t}static clone(t){return new Ku(t.__uuid,t.__key)}static getType(){return"autocomplete"}static importJSON(t){return VS(t.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==GS?null:s.jsx(qS,{})}}function VS(e){return new Ku(e)}function qS(){const[e]=ZS(),n=window.navigator.userAgentData,t=n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600;return s.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[e," ",t?"(SWIPE ⮕)":"(TAB)"]})}class qr extends vs.MarkNode{constructor(t,r=null,o){super(t,o);Ne(this,"__resolve");this.__resolve=r}static getType(){return"extend-mark"}static clone(t){return new qr(t.getIDs(),t.__resolve,t.__key)}static importJSON(t){return new qr(t.ids||[])}static importDOM(){return{mark:r=>({conversion:()=>{const o=r.getAttribute("data-key"),i=o?o.split(" "):[],l=r.getAttribute("resolve"),c=document.createDocumentFragment();return Array.from(r.childNodes).forEach(d=>c.appendChild(d.cloneNode(!0))),{node:cb(i,l)}},priority:1})}}resolveThreat(t){const r=this.getWritable();r.__resolve=t}createDOM(t){const r=document.createElement("mark");ve.addClassNamesToElement(r,t.theme.mark),ve.addClassNamesToElement(r,t.theme.markOverlap),r.style.background="transparent",r.style.border="none";const o=this.getIDs();if(o.length>0){const i=o.join(" ");r.setAttribute("data-key",i),r.setAttribute("data-comment-count",String(o.length))}else r.removeAttribute("data-key"),r.removeAttribute("data-comment-count");return this.__resolve&&r.setAttribute("resolve",this.__resolve),r}exportDOM(t){const{element:r}=super.exportDOM(t);return this.__resolve&&r.setAttribute("resolve",this.__resolve),{element:r}}updateDOM(t,r,o){const i=this.getIDs();return i.length>0?(r.setAttribute("data-key",i.join(" ")),r.setAttribute("data-comment-count",String(i.length))):(r.removeAttribute("data-key"),r.removeAttribute("data-comment-count")),this.__resolve?r.setAttribute("resolve",this.__resolve):r.removeAttribute("resolve"),super.updateDOM(t,r,o)}exportJSON(){return{...super.exportJSON(),type:"extend-mark",ids:this.getIDs()}}excludeFromCopy(t){return!1}updateExtendId(t,r){const o=this.getWritable();o.hasID(t)&&(o.deleteID(t),o.addID(r))}}function cb(e,n=null){return p.$applyNodeReplacement(new qr(e,n))}function Qo(e){return e instanceof qr}const ub=[{replace:p.TextNode,with:e=>new jo(e.getTextContent()),withKlass:jo},{replace:Gt.CodeNode,with:e=>new Qn(!1),withKlass:Qn},{replace:vs.MarkNode,with:e=>new qr(e.__ids),withKlass:qr}],Fn={transition:"fade",duration:400};function QS(e,n){for(let t=0;t<n.length;t++){const r=n[t];if(jt(r)){const o=r.getParent(),i=gt(o)?o.getListType():"bullet",l=hn(i);for(;t<n.length&&jt(n[t]);)l.append(n[t]),t++;e.append(l),t--}else e.append(r)}}function JS(e,n){const t=e.getChildren();if(t.length===0){e.remove();return}const r=t.findIndex(c=>c.getKey()===n.getKey());if(r===-1)return;const o=t.slice(r+1),i=e.getParent(),l=e.getNextSibling();if(n.remove(),e.getChildrenSize()===0){if(i&&jt(i)){const c=i.getParent();if(c&>(c)){const d=c.getChildren().findIndex(f=>f.getKey()===i.getKey());if(d!==-1){i.remove();const f=c.getChildren(),h=c.getListType(),g=hn(h),C=hn(h);for(let b=0;b<d;b++)g.append(f[b]);for(let b=d;b<f.length;b++)C.append(f[b]);c.insertBefore(g),g.insertAfter(n),n.insertAfter(C),c.isAttached()&&c.remove();return}}}i&&p.$isElementNode(i)&&(l?l.insertBefore(n):i.append(n)),e.isAttached()&&e.remove();return}if(r===0)e.insertBefore(n);else if(r===t.length-1)e.insertAfter(n);else{const c=e.getListType(),d=hn(c);for(const f of o)d.append(f);e.insertAfter(n),n.insertAfter(d)}}function XS(e){var t;const n=mr();return(t=e.parentElement)!=null&&t.classList.contains("dsd__theme__layoutItem")?{node:n}:null}class $r extends p.ElementNode{static getType(){return"layout-divider"}static clone(n){return new $r(n.__key)}createDOM(n){const t=document.createElement("div");return typeof n.theme.layoutDivider=="string"&&ve.addClassNamesToElement(t,n.theme.layoutDivider),t.setAttribute("contenteditable","false"),t}updateDOM(){return!1}static importDOM(){return{div:n=>n.className!=="dsd__theme__layoutDivider"?null:{conversion:XS,priority:2}}}static importJSON(){return mr()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function mr(){return new $r}function $S(e){return e instanceof $r}const Uu=(e,n,t)=>{var o,i,l,c,d;const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const f=r.anchor.getNode(),h=f.getKey(),g=f.getParent()===t,C=t instanceof p.ElementNode&&(t.__type==="layout-item"?(i=(o=t.getLastChild())==null?void 0:o.getPreviousSibling())==null?void 0:i.getKey():(l=t.getLastChild())==null?void 0:l.getKey())===h,b=t instanceof p.ElementNode&&((c=t.getFirstChild())==null?void 0:c.getKey())===h;if(t&&f instanceof p.ParagraphNode&&!f.getTextContent()&&g&&!((d=f.getPreviousSibling())!=null&&d.getTextContent())&&C&&!b){const x=e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>(x(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{var k;if(t){let T=t.getChildren();const R=t.getLastChild();$S(R)&&(T=T.slice(0,-1)),T.length===2?T.slice(-1).forEach(N=>N.remove()):T.slice(-2).forEach(N=>N.remove())}const w=n==null?void 0:n.getNextSibling();if(p.$isParagraphNode(w)&&w.getTextContent()==="")(k=n==null?void 0:n.getNextSibling())==null||k.selectEnd();else{const T=n==null?void 0:n.insertAfter(p.$createParagraphNode());T==null||T.selectStart()}}),!0}}return!1},uo=e=>{for(;e;){if(fo(e))return e;const n=e.getParent();if(!n)break;e=n}return null},Hu=e=>{switch(e){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"",calloutType:"success"};default:return{emoji:"e=%F0%9F%92%AB",backgroundColor:"",calloutType:"😊"}}},E0=e=>e.replace(/\s+/g," ").trim(),eE=e=>{const n=en();if(n){const t=ve.$findMatchingParent(n,Ai);if((t==null?void 0:t.__type)==="callout"){const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const o=r.anchor.getNode(),i=ve.$findMatchingParent(o,fo);return Uu(e,i,t)}}}return!0};function Sf(e,n){let t=e;for(;t;){if(p.$isElementNode(t)){const r=t.getParent();if(jt(t)||(r==null?void 0:r.getKey())===n.getKey())return t}t=t.getParent()}return null}function tE(e){const n=[];function t(r){if(gt(r))for(const o of r.getChildren())t(o);else if(jt(r)){n.push(r);for(const o of r.getChildren())t(o)}else p.$isElementNode(r)&&n.push(r)}for(const r of e.getChildren())t(r);return n}function db(e){const n=p.$getRoot(),t=e.anchor.getNode(),r=e.focus.getNode(),o=Sf(t,n),i=Sf(r,n);if(!o||!i)return[];const l=new Set([o.getKey(),i.getKey()]);for(const h of e.getNodes()){const g=Sf(h,n);g&&l.add(g.getKey())}const d=tE(n).filter(h=>l.has(h.getKey())),f=new Set(d.map(h=>h.getKey()));return d.filter(h=>{let g=h.getParent();for(;g;){if(f.has(g.getKey()))return!1;g=g.getParent()}return!0})}const nE=(e,n,t)=>()=>{const r=ll(n,t),o=pl(e),i=p.$createParagraphNode(),l=al().append(i);return r.append(o),r.append(l),r};function rE(e,n,t){const r=ll(n,t),o=pl(e),i=al();return r.append(o),r.append(i),r}function oE(e,n,t,r){const o=db(e);if(o.length===0)return!1;const i=o[0],l=i.getParent(),c=rE(n,t,r),d=c.getChildren().find(Ai);return!d||!p.$isElementNode(d)?!1:(i.insertBefore(c),QS(d,o),l&>(l)&&JS(l,c),!0)}const iE=(e,n)=>{const r=n.getChildren().find(Ai);if(!r)return;const o=r.getFirstChild();if(!o||!p.$isElementNode(o))return;const i=e.getChildren();for(const l of i)o.append(l)},fb=[{key:"default",i18n:"editor.menu.callout.default.name"},{key:"success",i18n:"editor.menu.callout.success.name"},{key:"warning",i18n:"editor.menu.callout.warning.name"},{key:"alert",i18n:"editor.menu.callout.alert.name"}],T1={default:"",violet:"var(--mantine-color-violet-light)",indigo:"var(--mantine-color-indigo-light)",blue:"var(--mantine-color-blue-light)",teal:"var(--mantine-color-teal-light)",green:"var(--mantine-color-green-light)",yellow:"var(--mantine-color-yellow-light)",orange:"var(--mantine-color-orange-light)",red:"var(--mantine-color-red-light)",brown:"var(--mantine-color-dark-light)",gray:"var(--mantine-color-gray-light)"},hb=e=>{const n=Object.entries(T1).find(([,t])=>t===e);return n?n[0]:"default"},pb=[{name:"violet",outline:"var(--mantine-color-violet-outline, #9775fa)",bg:"rgba(121, 80, 242, 0.25)"},{name:"indigo",outline:"var(--mantine-color-indigo-outline, #748ffc)",bg:"rgba(76, 110, 245, 0.25)"},{name:"blue",outline:"var(--mantine-color-blue-outline, #4dabf7)",bg:"rgba(34, 139, 230, 0.25)"},{name:"teal",outline:"var(--mantine-color-teal-2, #96f2d7)",bg:"rgba(56, 217, 169, 0.25)"},{name:"green",outline:"var(--mantine-color-green-outline, #69db7c)",bg:"rgba(64, 192, 87, 0.25)"},{name:"yellow",outline:"var(--mantine-color-yellow-outline, #ffd43b)",bg:"rgba(250, 176, 5, 0.25)"},{name:"orange",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"rgba(253, 126, 20, 0.25)"},{name:"red",outline:"var(--mantine-color-red-outline, #ff8787)",bg:"rgba(250, 82, 82, 0.25)"},{name:"brown",outline:"#9F765A",bg:"rgba(159, 118, 90, 0.25)"},{name:"gray",outline:"var(--mantine-color-gray-outline, #ced4da)",bg:"rgba(134, 142, 150, 0.25)"}],Ef="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function sE({editor:e,keyNode:n,currentType:t,currentBg:r,onClose:o}){const{t:i}=Ue.useTranslation(),l=m.useCallback(g=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const b=uo(C);if(!b)return;const{emoji:y,backgroundColor:x,calloutType:w}=Hu(g);b.setType(w),b.setBackgroundColor(x),C instanceof Qr&&C.setEmoji(y)}),o()},[e,n,o]),c=m.useCallback(g=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const b=uo(C);b&&b.setBackgroundColor(g)})},[e,n]),d=t==="😊"||t==="default"?"default":t,f=d==="default",h=hb(r);return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingTop:8,paddingBottom:8,overflow:"hidden"},children:[s.jsx("div",{style:{paddingLeft:8,paddingRight:8,paddingBottom:6},children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[s.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:i("editor.menu.callout.type","Type")}),s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:fb.map(({key:g,i18n:C})=>{const b=d===g;return s.jsx("button",{type:"button",onClick:()=>l(g),style:{flex:"1 1 calc(50% - 2px)",minWidth:0,height:36,padding:4,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--mantine-radius-md)",border:"none",cursor:"pointer",backgroundColor:b?"var(--mantine-primary-color-light)":"var(--mantine-color-gray-light)",color:b?"light-dark(var(--mantine-primary-color-light-color), var(--mantine-primary-color-4))":"var(--mantine-color-bright)",fontSize:"var(--mantine-font-size-sm)",fontWeight:400,lineHeight:1.45,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"inherit"},children:i(C)},g)})})]})}),f&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{paddingTop:4,paddingBottom:4},children:s.jsx("div",{style:{height:1,backgroundColor:"light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5))"}})}),s.jsxs("div",{style:{paddingLeft:8,paddingRight:8,display:"flex",flexDirection:"column",gap:4},children:[s.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:i("editor.colors.color","Color")}),s.jsx(At.ColorPicker,{colors:pb.map(({name:g,outline:C,bg:b})=>({value:g,border:C,bg:b})),value:h,onChange:g=>c(T1[g]||""),swatchSize:28,swatchVariant:"outline",gap:5})]})]})]})}function aE({editor:e,keyNode:n}){const{t}=Ue.useTranslation(),[r,o]=m.useState("default"),[i,l]=m.useState(""),[c,d]=m.useState(!1);m.useEffect(()=>{const h=()=>{const g=p.$getNodeByKey(n);if(!g)return;const C=uo(g);C&&(o(C.__calloutType),l(C.__backgroundColor))};return e.getEditorState().read(h),e.registerUpdateListener(({editorState:g})=>{g.read(h)})},[e,n]);const f=m.useCallback(()=>{e.update(()=>{const h=p.$getNodeByKey(n);if(!h)return;const g=uo(h);if(g){for(const C of g.getChildren())if(Ai(C))for(const b of C.getChildren())g.insertBefore(b);g.remove()}})},[e,n]);return s.jsxs("div",{className:"callout-hover-actions",children:[s.jsxs(v.Menu,{opened:c,onChange:d,position:"bottom-end",shadow:"md",withinPortal:!0,transitionProps:Fn,styles:{dropdown:{borderRadius:"var(--mantine-spacing-sm)",padding:0,overflow:"hidden",width:306}},children:[s.jsx(v.Menu.Target,{children:s.jsx(Jt,{label:t("editor.contextMenu.appearance"),"aria-label":t("editor.contextMenu.appearance"),icon:li,iconColor:"var(--mantine-color-gray-text)"})}),s.jsx(v.Menu.Dropdown,{children:s.jsx(sE,{editor:e,keyNode:n,currentType:r,currentBg:i,onClose:()=>d(!1)})})]}),s.jsx(Ci,{label:t("editor.actions.delete"),ariaLabel:"remove-callout-block",onClick:f})]})}function lE({editor:e,keyNode:n}){const{t}=Ue.useTranslation(),[r,o]=m.useState("default"),[i,l]=m.useState(""),[c,{open:d,close:f}]=Ft.useDisclosure(!1),[h,{open:g,close:C}]=Ft.useDisclosure(!1),[b,{open:y,close:x}]=Ft.useDisclosure(!1);m.useEffect(()=>{const N=()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);M&&(o(M.__calloutType),l(M.__backgroundColor))};return e.getEditorState().read(N),e.registerUpdateListener(({editorState:L})=>{L.read(N)})},[e,n]);const w=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);if(!M)return;const{emoji:S,backgroundColor:I,calloutType:j}=Hu(N);M.setType(j),M.setBackgroundColor(I),L instanceof Qr&&L.setEmoji(S)}),C()},[e,n,C]),k=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);M&&M.setBackgroundColor(N)}),x()},[e,n,x]),T=m.useCallback(()=>{f(),e.update(()=>{const N=p.$getNodeByKey(n);if(!N)return;const L=uo(N);if(L){for(const M of L.getChildren())if(Ai(M))for(const S of M.getChildren())L.insertBefore(S);L.remove()}})},[e,n,f]),R=r==="😊"||r==="default"?"default":r;return s.jsxs(s.Fragment,{children:[s.jsx(v.ActionIcon,{className:"callout-mobile-actions-btn",size:32,variant:"subtle",color:"gray",radius:"md",bg:"var(--mantine-color-body)",onClick:d,children:s.jsx($,{icon:qn,size:16})}),s.jsx(Bt,{opened:c,onClose:f,title:t("editor.menu.main.code.mobileActions"),children:s.jsxs(v.Stack,{gap:2,p:0,children:[s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:Ef,leftSection:s.jsx($,{icon:li,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:s.jsx($,{icon:Fi,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),g()},children:t("editor.menu.callout.type","Type")}),s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:Ef,leftSection:s.jsx($,{icon:uk,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:s.jsx($,{icon:Fi,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),y()},children:t("editor.colors.color","Color")}),s.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:Ef,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:T,children:t("editor.actions.delete")})]})}),s.jsx(Bt,{opened:h,onClose:C,title:t("editor.menu.callout.type","Type"),children:s.jsx(v.Stack,{gap:2,p:0,children:fb.map(({key:N,i18n:L})=>s.jsx(qi,{label:t(L),checked:R===N,onSelect:()=>w(N)},N))})}),s.jsx(Bt,{opened:b,onClose:x,title:t("editor.colors.color","Color"),children:s.jsx(At.ColorPicker.List,{sections:[{key:"color",label:"",type:"highlight",colors:pb.map(({name:N,outline:L,bg:M})=>({value:N,label:t(`editor.colors.${N}`,N),border:L,bg:M})),value:hb(i)}],onChange:N=>{k(T1[N]||"")}})})]})}const cE=({editor:e,keyNode:n,emoji:t})=>{const{t:r}=Ue.useTranslation(),{disable:o}=m.useContext(ft),i=m.useRef(null);return m.useEffect(()=>{e.update(()=>{var d,f;const l=p.$getNodeByKey(n),c=((f=(d=i.current)==null?void 0:d.firstChild)==null?void 0:f.outerHTML)||"";l instanceof Qr&&l.setRef(c)})},[t]),o?s.jsx("div",{ref:i,children:s.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,style:{pointerEvents:"none"},children:s.jsx(At.ProjectIcon,{size:24,fz:24,icon:t,fallback:s.jsx(Ee.IconFile,{size:"1em"})})})}):s.jsxs("div",{ref:i,children:[rt?s.jsx(uE,{emoji:t,onChange:l=>{e.update(()=>{var d;const c=p.$getNodeByKey(n);c instanceof Qr&&((d=c.getNextSibling())==null||d.selectStart(),c.setEmoji(l))})}}):s.jsx(At.EmojiPicker,{value:t,showRemoveButton:!1,onChange:l=>{e.update(()=>{var d;const c=p.$getNodeByKey(n);c instanceof Qr&&((d=c.getNextSibling())==null||d.selectStart(),c.setEmoji(l))})},locales:{emojis:r("editor.emoji.emojis"),icons:r("editor.emoji.icons"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{classNames:{dropdown:"emoji-picker-callout"},withinPortal:!0,transitionProps:Fn},children:s.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,children:s.jsx(At.ProjectIcon,{size:24,fz:24,icon:t,fallback:s.jsx(Ee.IconFile,{size:"1em"})})})}),rt?s.jsx(lE,{editor:e,keyNode:n}):s.jsx(aE,{editor:e,keyNode:n})]})};function uE({emoji:e,onChange:n}){const{t}=Ue.useTranslation(),[r,{open:o,close:i}]=Ft.useDisclosure(!1);return s.jsxs(s.Fragment,{children:[s.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,onClick:o,"aria-label":t("editor.emoji.emojis"),children:s.jsx(At.ProjectIcon,{size:24,fz:24,icon:e,fallback:s.jsx(Ee.IconFile,{size:"1em"})})}),s.jsx(Bt,{opened:r,onClose:i,title:t("editor.emoji.emojis"),classNames:{content:"emoji-panel-drawer"},children:s.jsx(At.EmojiPanel,{locales:{emojis:t("editor.emoji.emojis"),search:t("editor.emoji.search"),searchResults:t("editor.emoji.searchResults"),searchNoResults:t("editor.emoji.searchNoResults"),remove:t("editor.emoji.remove"),emojiCategory:{frequent:t("editor.emoji.emojiCategory.frequent"),people:t("editor.emoji.emojiCategory.people"),nature:t("editor.emoji.emojiCategory.nature"),foods:t("editor.emoji.emojiCategory.foods"),activity:t("editor.emoji.emojiCategory.activity"),places:t("editor.emoji.emojiCategory.places"),objects:t("editor.emoji.emojiCategory.objects"),symbols:t("editor.emoji.emojiCategory.symbols"),flags:t("editor.emoji.emojiCategory.flags")}},value:e,onChange:l=>{n(l),i()},setRandomIcon:()=>{},onClose:i})})]})}function dE(e){const n=e.getAttribute("data-emoji");return{node:pl(n||"","")}}const T0=new Map;class Qr extends eo.DecoratorBlockNode{constructor(t,r,o,i){super(o,i);Ne(this,"__emojiCode");Ne(this,"__refElem");this.__emojiCode=t||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(t){return new Qr(t.__emojiCode,t.__refElem,t.__format,t.__key)}static importJSON(t){return pl(t.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:t=>t.classList.contains("callout-image")?{conversion:dE,priority:2}:null}}createDOM(){const t=document.createElement("div");return t.className="callout-image",t}updateDOM(){return!1}exportDOM(){const t=document.createElement("div"),r=T0.get(this.__key)||"";return t.innerHTML=r,t.classList.add("callout-image"),t.setAttribute("data-emoji",this.__emojiCode),{element:t}}setEmoji(t){const r=this.getWritable();r.__emojiCode=t}setRef(t){T0.set(this.__key,t)}decorate(t,r){return s.jsx(cE,{emoji:this.__emojiCode,editor:t,keyNode:this.__key})}}function pl(e,n){return new Qr(e||"",n||"")}const M0={bullet:Ee.IconList,check:Ee.IconListCheck,"check-mark":Ee.IconCheck,code:Ee.IconCode,h1:Ee.IconH1,h2:Ee.IconH2,h3:Ee.IconH3,number:Ee.IconListNumbers,paragraph:Ee.IconIndentIncrease,quote:Ee.IconQuote,fontFamily:Ee.IconLetterT,undo:Ee.IconArrowBackUp,redo:Ee.IconArrowForwardUp,bold:Ee.IconBold,italic:Ee.IconItalic,underline:Ee.IconUnderline,link:Ee.IconLink,"color-picker":Ee.IconColorPicker,background:Ee.IconBucketDroplet,photo:Ee.IconPhoto,"photo-check":Ee.IconPhotoCheck,"align-left":Ee.IconAlignLeft,"align-end":Ee.IconAlignLeft,"align-start":Ee.IconAlignLeft,"align-right":Ee.IconAlignRight,"align-center":Ee.IconAlignCenter,"align-justify":Ee.IconAlignJustified,"horizontal-rule":Ee.IconFlipHorizontal,strikethrough:Ee.IconStrikethrough,subscript:Ee.IconSubscript,superscript:Ee.IconSuperscript,minus:Ee.IconMinus,plus:Ee.IconPlus,"chevron-down":Ee.IconChevronDown,"chevron-right":Ee.IconChevronRight,grip:Ee.IconGripVertical,"circle-check":Ee.IconCircleCheck,"circle-x":Ee.IconCircleX,pencil:Ee.IconPencil,trash:Ee.IconTrash,table:Ee.IconTable,"caret-right":Ee.IconCaretRight,grid:Ee.IconColumns3,"dots-vertical":Ee.IconDotsVertical,copy:Ee.IconCopy,clipboard:Ee.IconClipboard,cut:Ee.IconCut,"arrow-bar-to-up":Ee.IconArrowBarToUp,"arrow-bar-to-down":Ee.IconArrowBarToDown,"arrow-bar-to-left":Ee.IconArrowBarToLeft,"arrow-bar-to-right":Ee.IconArrowBarToRight,"column-insert-left":Ee.IconColumnInsertLeft,"column-insert-right":Ee.IconColumnInsertRight,"row-insert-top":Ee.IconRowInsertTop,"row-insert-bottom":Ee.IconRowInsertBottom,"container-off":Ee.IconContainerOff,"table-off":Ee.IconTableOff,"layers-union":Ee.IconLayersUnion,"layers-substract":Ee.IconLayersSubtract,"сlear-format":Ee.IconDropletOff,form:Ee.IconCheckupList,youtube:Ee.IconBrandYoutube,emoji:Ee.IconMoodSmile,file:Ee.IconFile,success:Ee.IconCheck,warning:Ee.IconAlertTriangle,alert:Ee.IconExclamationCircle,defaultOff:Ee.IconBaseline,embed:Ee.IconCodeCircle,at:Ee.IconAt,paperclip:Ee.IconPaperclip,close:Ee.IconX,api:Ee.IconApi,music:Ee.IconMusic,message:Ee.IconMessage,reply:Ee.IconArrowBackUp,filter:Ee.IconFilter,messages:Ee.IconMessages,"shield-check":Ee.IconShieldCheckFilled,reOpen:Ee.IconReload,send:Ee.IconSend,expandSidebar:Ee.IconLayoutSidebarLeftExpand,palette:Ee.IconPalette},bn=({name:e,iconStyle:n,...t})=>{const r=M0[e]||M0.bullet;return s.jsx(v.Flex,{gap:0,justify:"center",align:"center",...t,children:s.jsx(r,{size:18,stroke:2,style:n,...t})})},fE=({icon:e,title:n,pointerEvents:t="auto",isLoading:r,progress:o,nodeKey:i,onAfterCancel:l,...c})=>{const[d]=ot.useLexicalComposerContext(),{t:f}=Ue.useTranslation(),{fetchUploadMedia:h,disable:g}=m.useContext(ft),C=o?((h==null?void 0:h.length)??0)>=5:!1,b=()=>{d.update(()=>{const x=p.$getNodeByKey(i);x&&x.remove()})},y=x=>{x.stopPropagation(),l==null||l()};return g?null:s.jsxs(v.UnstyledButton,{className:"image-node-picker-button",styles:{root:{width:"100%",display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)",flexDirection:"column",padding:"var(--mantine-spacing-md)",background:"var(--mantine-primary-color-light)",color:"var(--mantine-color-text)",borderRadius:"var(--mantine-radius-default)",opacity:.75,pointerEvents:r?"none":t,boxSizing:"border-box"}},...c,children:[s.jsxs("div",{className:"empty-node-button__content",children:[r&&!C&&s.jsx(v.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&s.jsx(bn,{name:e}),n,r&&l&&s.jsx(v.Text,{component:"span",onClick:y,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:f("editor.cancel")}),i&&!r&&s.jsx(bn,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:b})]}),r&&typeof o=="number"&&C&&s.jsx(v.Progress,{w:"100%",value:o,animated:!0,transitionDuration:200})]})},hE="_title_f282m_1",pE="_icon_f282m_23",mE="_link_f282m_41",mc={title:hE,icon:pE,link:mE},gE=({page:e,titleClassName:n,withTooltip:t=!0,withHover:r=!0})=>{const{t:o}=Ue.useTranslation(),i=s.jsx(v.Text,{truncate:!0,className:`${mc.title} ${n||""}`.trim(),"data-empty":!e.title,children:e.title||o("editor.noTitle")});return s.jsxs("div",{className:`${mc.link} ${r?"":mc.linkNoHover}`.trim(),onClick:e.onClick,children:[s.jsx("div",{className:mc.icon,children:e.icon?s.jsx(At.ProjectIcon,{size:16,fz:16,icon:e.icon,fallback:s.jsx(Ee.IconFile,{size:"1em"})}):s.jsx(At.EntityIcon,{item:{...e,type:"PAGE"}})}),t?s.jsx(v.Tooltip,{label:e.title,disabled:!e.title,openDelay:400,zIndex:1e3,children:i}):i]})},CE=m.memo,uu=CE(gE),AE=({page:e})=>s.jsx("div",{className:"docs-item",children:s.jsx(uu,{page:e})});function bE({nodeKey:e}){const{pages:n,childPagesLoading:t}=m.useContext(ft),{t:r}=Ue.useTranslation();return n.length===0?s.jsx("p",{style:{margin:0},children:s.jsx(fE,{title:r(t?"editor.menu.other.documents.loading":"editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:e,isLoading:t})}):s.jsx("div",{className:"docs-container",children:n.map(o=>s.jsx(AE,{page:o},o.id))})}function yE(e){return e.getAttribute("data-child-docs")?{node:mb()}:null}class _s extends eo.DecoratorBlockNode{static getType(){return"childDocs"}static clone(n){return new _s(n.__format,n.__key)}constructor(n,t){super(n,t)}createDOM(){const n=document.createElement("div");return n.className="editor-child-docs",n}updateDOM(){return!1}decorate(n,t){return s.jsx(bE,{nodeKey:this.__key})}static importJSON(n){const{format:t,key:r}=n;return new _s(t,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const n=document.createElement("div");return n.setAttribute("data-child-docs","true"),{element:n}}static importDOM(){return{div:n=>n.getAttribute("data-child-docs")?{conversion:yE,priority:2}:null}}}function mb(){return new _s(void 0)}function xE(e){const n=mb(),t=en();t==null||t.replace(n)}const gb=p.createCommand("INSERT_CHILD_DOCUMENTS_COMMAND");function vE(e){m.useEffect(()=>{if(!e.hasNodes([_s]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return e.registerCommand(gb,()=>(xE(),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function wE(){const[e]=ot.useLexicalComposerContext();return vE(e),null}function kE(e){var o;const n=e.getAttribute("open");return((o=e.firstElementChild)==null?void 0:o.tagName)==="SPAN"?{node:null}:{node:M1(n!==null)}}class Yi extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__open");this.__open=t}static getType(){return"collapsible-container"}static clone(t){return new Yi(t.__open,t.__key)}createDOM(t,r){const o=document.createElement("details");return o.open=this.__open,o.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==o.open&&r.update(()=>this.toggleOpen())}),o.classList.add("Collapsible__container"),o}updateDOM(t,r){const o=this.__open;return t.__open!==o&&(r.open=this.__open),!1}static importDOM(){return{details:t=>({conversion:kE,priority:1})}}static importJSON(t){return M1(t.open)}exportDOM(){const t=document.createElement("details");return t.classList.add("Collapsible__container"),this.__open&&t.setAttribute("open",""),{element:t}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(t){const r=this.getWritable();r.__open=t}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function M1(e){return new Yi(e)}function Cr(e){return e instanceof Yi}function SE(e){return{node:L1()}}class Po extends p.ElementNode{static getType(){return"collapsible-content"}static clone(n){return new Po(n.__key)}createDOM(n,t){const r=document.createElement("div");return r.classList.add("Collapsible__content"),r}updateDOM(n,t){return!1}static importDOM(){return{div:n=>n.hasAttribute("data-lexical-collapsible-content")?{conversion:SE,priority:2}:null}}exportDOM(){const n=document.createElement("div");return n.classList.add("Collapsible__content"),n.setAttribute("data-lexical-collapsible-content","true"),{element:n}}static importJSON(n){return L1()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function L1(){return new Po}function di(e){return e instanceof Po}function EE(e){return{node:N1()}}class fi extends p.ElementNode{static getType(){return"collapsible-title"}static clone(n){return new fi(n.__key)}createDOM(n,t){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),Yk&&(r.style.cursor="pointer"),r}updateDOM(n,t){return!1}static importDOM(){return{summary:n=>({conversion:EE,priority:1})}}static importJSON(n){return N1()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(n){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(n,t=!0){const r=this.getParentOrThrow();if(!Cr(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const o=this.getNextSibling();if(!di(o))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const i=o.getFirstChild();if(p.$isElementNode(i))return i;{const l=p.$createParagraphNode();return o.append(l),l}}else{const o=p.$createParagraphNode();return r.insertAfter(o,t),o}}}function N1(){return new fi}function Lo(e){return e instanceof fi}const Cb=p.createCommand("INSERT_COLLAPSIBLE_COMMAND");p.createCommand("TOGGLE_COLLAPSIBLE_COMMAND");function TE(e){m.useEffect(()=>{if(!e.hasNodes([Yi,fi,Po]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return ve.mergeRegister(e.registerNodeTransform(Po,n=>{const t=n.getParent();if(!Cr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove()}}),e.registerNodeTransform(fi,n=>{const t=n.getParent();if(!Cr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove();return}}),e.registerNodeTransform(Yi,n=>{const t=n.getChildren();if(t.length!==2||!Lo(t[0])||!di(t[1])){for(const r of t)n.insertBefore(r);n.remove()}}),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{var t;const n=e.getEditorState().read(()=>p.$getSelection());if(p.$isRangeSelection(n)){const r=ve.$findMatchingParent(n.anchor.getNode(),o=>Lo(o));if(r&&Lo(r)){const o=r.getParent();if(o&&Cr(o))return o.getOpen()||o.toggleOpen(),(t=r.getNextSibling())==null||t.selectEnd(),!0}}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(Cb,()=>(e.update(()=>{const n=N1(),t=p.$createParagraphNode(),r=en(),o=M1(!1).append(n.append(t),L1().append(p.$createParagraphNode()));r==null||r.replace(o),t.select()}),!0),p.COMMAND_PRIORITY_LOW))},[e])}function ME(){const[e]=ot.useLexicalComposerContext();return TE(e),null}function LE(e){const n=e.style.gridTemplateColumns;return n?{node:Yu(n)}:null}class Or extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__templateColumns");this.__templateColumns=t}static getType(){return"layout-container"}static clone(t){return new Or(t.__templateColumns,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof t.theme.layoutContainer=="string"&&ve.addClassNamesToElement(r,t.theme.layoutContainer),r}exportDOM(){const t=document.createElement("div");return t.style.gridTemplateColumns=this.__templateColumns,t.setAttribute("data-lexical-layout-container","true"),t.classList.add("dsd__theme__layoutContainer"),{element:t}}updateDOM(t,r){return t.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-layout-container")?{conversion:LE,priority:2}:null}}static importJSON(t){return Yu(t.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns,type:"layout-container",version:1}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(t){this.getWritable().__templateColumns=t}}function Yu(e){return new Or(e)}function du(e){return e instanceof Or}function NE(e){const n=e.style.backgroundColor||"transparent";return{node:lo(n)}}class Mn extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__backgroundColor");this.__backgroundColor=t}static getType(){return"layout-item"}static clone(t){return new Mn(t.__backgroundColor,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof t.theme.layoutItem=="string"&&ve.addClassNamesToElement(r,t.theme.layoutItem),r}exportDOM(){const t=document.createElement("div");return t.style.backgroundColor=this.__backgroundColor,t.classList.add("dsd__theme__layoutItem"),{element:t}}updateDOM(t,r){return t.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutItem"?null:{conversion:NE,priority:2}}}static importJSON(){return lo()}isShadowRoot(){return!1}setLayoutBackground(t){this.getWritable().__backgroundColor=t}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function lo(e="transparent"){return new Mn(e)}function jr(e){return e instanceof Mn}const j1="calc(50% - 25px) calc(50% - 25px)",jE=4,RE=2,IE="draggable-block-menu",DE=16,L0="application/x-lexical-drag-block",N0=32,R1=e=>e?e.match(/(\d*\.?\d+)%/g):[],Ab=e=>e<0?0:e>100?100:e,bb=(e,n,t)=>{let r=0,o=[];e.update(()=>{if(e&&n){const d=e.getElementByKey(n.getKey());if(d){const f=d.style;o=R1(f.getPropertyValue("grid-template-columns")).map(h=>h.slice(0,-1)),r=o?o.length:0}}const i=100/(r+1),l=[...o];l.splice(t,0,`${i}%`);let c=i/r;for(let d=0;d<l.length;d++)if(t!==d){const f=Number(l[d])-c;l[d]=`minmax(100px,${Ab(f)}%)`}else l[d]=`minmax(100px,${l[d]})`;n.setTemplateColumns(l.join(" "))})},gh=(e,n,t,r)=>{e.update(()=>{const o=e.getElementByKey(n.getKey());if(!o)return;let i=r;t<r&&(i=r-1);const c=o.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],d=c.splice(t,1)[0];c.splice(i,0,d),n.setTemplateColumns(c.join(" "))})},el=(e,n)=>(e!=null&&e.children?Array.from(e.children):[]).indexOf(n);function OE(e,n,t,r){var d;let o=e.getAttribute("data-direction")==="left",i=e.getAttribute("data-direction")==="right",l=e.getAttribute("data-index"),c=e.getAttribute("data-index-start");if(o||i||l){let f=(d=t.getParent())==null?void 0:d.getParent();if(t instanceof Or&&(f=t),t instanceof $r||t instanceof Or){const h=f==null?void 0:f.getChildren();let g=r instanceof $r;if((h==null?void 0:h.length)>=4&&!g)return!0;n.update(()=>{var y;let C=0;o?C=0:i?C=((y=f==null?void 0:f.getChildren())==null?void 0:y.length)-1:C=Number(l),g?gh(n,f,Number(c),C):bb(n,f,C);let b=null;C!==void 0&&n.update(()=>{if(b=f.getChildren()[C],g)t instanceof Or?b.insertAfter(r.getParent()):b.insertBefore(r.getParent());else if(i)b.insertAfter(lo().append(r).append(mr()));else{const x=r.getParent(),w=x==null?void 0:x.getParent();jr(x)&&(x==null?void 0:x.getChildrenSize())===2&&jr(x)&&du(w)&&Ws(n,x,w),b.insertBefore(lo().append(r).append(mr()))}})})}else n.update(()=>{const h=Yu(j1);let g;if(fo(t)||Cr(t)){const C=r.getParent(),b=C==null?void 0:C.getParent();if(jr(C)&&(C==null?void 0:C.getChildrenSize())===2&&du(b)){const x=b.getParent(),w=x==null?void 0:x.getParent(),k=b.getChildren(),R=k.findIndex(L=>L===C)===0?1:0,N=k[R];if(jr(N)){const L=N.getChildren()[0];fo(w)&&(w.append(L),b.remove(),g=Ir(w))}}else g=Ir(t,r)}else g=Ir(t);g&&(o?(h.append(lo().append(r).append(mr())),h.append(lo().append(g).append(mr()))):(h.append(lo().append(g).append(mr())),h.append(lo().append(r).append(mr()))),t.insertAfter(h),t.remove(),g.selectStart())});return!0}return!1}function PE(e,n,t="right",r=!1){e.update(()=>{const o=p.$getNearestNodeFromDOMNode(n),i=o==null?void 0:o.getParent();if(i){if(R1(i.__templateColumns).length===4)return;let c=el(n.parentElement,n);t==="right"&&(c=c+1),bb(e,i,c)}const l=lo().append(p.$createParagraphNode()).append(mr());o&&(t==="right"?r?(o.insertBefore(Ir(o)),o.selectStart()):(o.insertAfter(l),l==null||l.selectStart()):(o.insertBefore(l),l.selectStart()))})}const yb=(e,n)=>{const t=n==null?void 0:n.getParent();let r=R1(t==null?void 0:t.getTemplateColumns());const o=t==null?void 0:t.getChildren();let i=0;if(o&&n){for(let h=0;h<o.length;h++)if(o[h].__key===n.__key){i=h;break}}r.splice(i,1);const l=r.map(h=>parseFloat(h)),c=l.reduce((h,g)=>h+g,0),f=l.map(h=>h/c*100).map(h=>`minmax(50px,${h.toFixed(2)}%)`);t==null||t.setTemplateColumns(f.join(" "))},BE=e=>e.className.includes("editor-image")||e.className.includes("video-container")?e:e.className.includes("editor-excalidraw")?e.firstChild:null,xb=(e,n)=>n!=null&&n.__key&&e!==n.__key?xb(e,n==null?void 0:n.getParent()):e===(n==null?void 0:n.__key),Fs=(e,n,t)=>{if(n==null)return;const r=typeof n=="string"?n:n.getKey();e.update(()=>{var d,f,h;const o=p.$getNodeByKey(r);if(!o)return;const i=(d=o.getParent())==null?void 0:d.getParent(),l=o.getParent(),c=t==="right"?(f=o.getParent())==null?void 0:f.getNextSibling():(h=o.getParent())==null?void 0:h.getPreviousSibling();if(l&&c&&i instanceof Or){const g=e.getElementByKey(l.getKey()),C=e.getElementByKey(i.getKey()),b=el(C,g);l&&i&&c&&(t==="right"&&(gh(e,i,b+1,b),c.insertAfter(l)),t==="left"&&(gh(e,i,b,b+1),c.insertBefore(l)))}})};function _E(e){e&&(e.style.display="none")}function j0({blockElement:e,editor:n,isTop:t,isClickedBlockRef:r,setDraggableBlockElem:o}){e&&(r.current=!0,n.update(()=>{const i=p.$getNearestNodeFromDOMNode(e);if(i){const l=p.$createParagraphNode();t?(i.insertBefore(l),setTimeout(()=>{r.current=!1,o(n.getElementByKey(l.__key)),n.update(()=>{l.selectStart()})})):(i.insertAfter(l),setTimeout(()=>{r.current=!1,o(n.getElementByKey(l.__key)),n.update(()=>{l.selectEnd()})}))}}))}function FE(e){const n=(d,f)=>d?parseFloat(window.getComputedStyle(d)[f]):0,{marginTop:t,marginBottom:r}=window.getComputedStyle(e),o=n(e.previousElementSibling,"marginBottom"),i=n(e.nextElementSibling,"marginTop"),l=Math.max(parseFloat(t),o);return{marginBottom:Math.max(parseFloat(r),i),marginTop:l}}function WE(e){return!!e.closest(`.${IE}`)}function R0(e,n,t,r){if(!e){n.style.opacity="0";return}n.style.display="block";let o=null;const i=BE(e);i&&i.style.justifyContent!=="left"&&i.firstChild instanceof HTMLElement?o=i.firstChild.getBoundingClientRect():o=e.getBoundingClientRect();let l=null,c=0,d=!0,f=0;if(o){let k=e.firstChild instanceof HTMLElement&&(e.firstChild.hasAttribute("data-lexical-text")||e.firstChild.tagName==="LI"||e.firstChild.tagName==="A")?e.firstChild:null;if(k&&!k.className.includes("editor-image")&&e.tagName!=="CODE"){const T=window.getComputedStyle(k),R=parseFloat(T.lineHeight),N=parseFloat(T.fontSize);f=Math.ceil(N+(R-N)/2),l=k.getBoundingClientRect()}else if(e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="BR"&&e.tagName!=="CODE"){const T=window.getComputedStyle(e,"::before");f=parseFloat(T.height)||30}else e&&(e.tagName==="HR"||e.matches(":has(audio)")||e.classList.contains("file-container"))?f=e.clientHeight:e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="SUMMARY"?f=e.firstChild.clientHeight:(l=o,d=!1)}const h=t.getBoundingClientRect(),g=(l==null?void 0:l.top)||o.top,C=f||c,b=n.clientHeight,y=C-b;let x=!d||!C?o.top+7-h.top:g+y/2-h.top,w=o.left-h.left-b*2-5;e.tagName==="LI"&&e.getAttribute("role")!=="checkbox"&&(w=w-26,x=x-1),i&&(x=g-h.top+7,(i.style.justifyContent==="center"||i.style.justifyContent==="right")&&(w=w+10)),e.matches(":has(.resizable-container__handle)")&&!e.matches(":has(.hide-padding)")&&e.tagName!=="DETAILS"&&(x=g-h.top+27),o.top<0&&(x=x+-o.top),e.className==="dsd__theme__layoutDivider"&&(n.style.display="none",o.top-n.clientHeight<0?e.style.setProperty("--height-column",`${e.clientHeight+o.top-n.clientHeight-7}px`):e.style.setProperty("--height-column",`${e.clientHeight}px`)),n.style.opacity="1",!r&&w>-40&&(n.style.transform=`translate(${w}px, ${x}px)`)}function I0(e,n){const{transform:t}=n.style;n.style.transform="translateZ(0)",e.setDragImage(n,0,0),setTimeout(()=>{n.style.transform=t})}function zE(e,n){const t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",n.forEach(r=>{const o=r.cloneNode(!0);o.style.position="relative",t.appendChild(o)}),document.body.appendChild(t),e.setDragImage(t,0,0),setTimeout(()=>document.body.removeChild(t),0)}function KE(e,n,t,r,o,i,l){var _;const{top:c,height:d,width:f,left:h}=n.getBoundingClientRect(),{top:g,left:C,width:b}=o==null?void 0:o.getBoundingClientRect(),{marginTop:y,marginBottom:x}=FE(n);let w=c;t>=c?(l.current.isBottom=!0,w+=d+x/2):(l.current.isBottom=!1,w-=y/2);const k=w-g-RE,T=DE-jE,N=i.target.closest(".dsd__theme__layoutDivider");e.setAttribute("data-index",""),e.style.background="deepskyblue";const L=h-C-T,M=b-L,S=r-C,I=h+f,j=S>=M,B=r>=I-N0&&r<=I+N0;if(r<=h&&!N){if(n.closest(".dsd__theme__layoutItem"))return;e.style.transform=`translate(${L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","left")}else if((j||B)&&!N&&!n.closest(".dsd__theme__layoutItem"))n.classList.contains("dsd__theme__layoutContainer")&&!e.getAttribute("data-index-start")&&n&&n.children.length>=4&&(e.style.background="red"),e.style.transform=`translate(${b-L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","right");else if(N){i.preventDefault();const D=(_=N.parentNode)==null?void 0:_.parentNode;(D==null?void 0:D.children.length)===4&&(e.style.background="red");const O=N.parentNode,W=el(D,O),K=W?N.getBoundingClientRect().left-C:L+30;e.style.transform=`translate(${K}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-index",`${W}`)}else e.style.transform=`translate(${L}px, ${k}px)`,e.style.width=`${f+T}px`,e.style.opacity=".4",e.style.height="4px",e.setAttribute("data-direction","")}function D0(e){e&&(e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)")}const Ws=(e,n,t)=>{var i,l,c;const r=(t==null?void 0:t.getChildren())||[];if((r==null?void 0:r.length)===2){for(const d of r)d.__key!==(n==null?void 0:n.__key)&&(t==null||t.insertBefore(d),(i=d.getFirstChild())==null||i.selectEnd());t.remove()}else for(const d of r)if(d.__key===(n==null?void 0:n.__key)){yb(e,d),Lu(e,d);const f=d.getPreviousSibling()??d.getNextSibling();(c=(l=f==null?void 0:f.getFirstChild)==null?void 0:l.call(f))==null||c.selectEnd()}const o=e.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>(o(),!0),p.COMMAND_PRIORITY_NORMAL);return!0},UE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,di),o=ve.$findMatchingParent(t,Cr);return Uu(e,o,r)&&di(r)}return!0},HE=()=>{const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;const t=e.anchor.getNode().getTopLevelElement();if(t===null)return!1;const r=t.getPreviousSibling();return!Cr(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},YE=()=>{var n;const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()&&e.anchor.offset===0){const t=ve.$findMatchingParent(e.anchor.getNode(),Cr);if(Cr(t)){const r=t.getParent();r!==null&&r.getFirstChild()===t&&e.anchor.key===((n=t.getFirstDescendant())==null?void 0:n.getKey())&&t.insertBefore(p.$createParagraphNode())}}return!1},ZE=()=>{const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()){const n=ve.$findMatchingParent(e.anchor.getNode(),Cr);if(Cr(n)){const t=n.getParent();if(t!==null&&t.getLastChild()===n){const r=n.getFirstDescendant(),o=n.getLastDescendant();(o!==null&&e.anchor.key===o.getKey()&&e.anchor.offset===o.getTextContentSize()||r!==null&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize())&&n.insertAfter(p.$createParagraphNode())}}}return!1},GE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();return Ws(e,t,r)}return!1},O0=[{value:"left",icon:aA,labelKey:"editor.toolbar.left"},{value:"center",icon:Xc,labelKey:"editor.toolbar.center"},{value:"right",icon:lA,labelKey:"editor.toolbar.right"}],vb=({currentAlignment:e,onAlign:n,className:t,targetLabel:r})=>{var c;const{t:o}=Ue.useTranslation(),i=((c=O0.find(d=>d.value===e))==null?void 0:c.icon)??Xc,l=s.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:s.jsx($,{icon:Jn,size:16})});return s.jsxs(v.Menu,{shadow:"md",position:"bottom-end",transitionProps:Fn,children:[s.jsx(v.Menu.Target,{children:s.jsx(Jt,{className:t,label:r??o("editor.toolbar.align"),icon:i,iconColor:"var(--mantine-color-gray-text)"})}),s.jsx(v.Menu.Dropdown,{p:4,children:O0.map(d=>s.jsx(v.Menu.Item,{onClick:()=>n(d.value),leftSection:s.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:s.jsx($,{icon:d.icon,size:16})}),rightSection:e===d.value?l:void 0,children:o(d.labelKey)},d.value))})]})},VE=e=>{if(e==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},hs=(()=>{var n;const e=(n=window.navigator)==null?void 0:n.userAgentData;return e!==void 0?e.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),qE={center:-8,right:2,left:-18},P0=(e,n,t,r)=>{const i=e.width/2,l=e.height/2,c=r==null?void 0:r.classList[1],d=qE[c];switch(n){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:e.width-16,y:0};case"sw-resize":return{x:0,y:e.height-16};case"se-resize":return{x:e.width-16,y:e.height-16};case"n-resize":return{x:i+d,y:0};case"s-resize":return{x:i+d,y:e.height-16};case"w-resize":return{x:0,y:l-8};case"e-resize":return{x:e.width-16,y:l-(t?17:8)}}},QE=(e,n,t,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const i=t<=32,l=t>=e.height-32,c=n<=32,d=n>=e.width-32;return i&&c?r.includes("nw-resize")?"nw-resize":"default":i&&d?r.includes("ne-resize")?"ne-resize":"default":l&&c?r.includes("sw-resize")?"sw-resize":"default":l&&d?r.includes("se-resize")?"se-resize":"default":i?r.includes("n-resize")?"n-resize":"default":l?r.includes("s-resize")?"s-resize":"default":c?r.includes("w-resize")?"w-resize":"default":d&&r.includes("e-resize")?"e-resize":"default"},gc=32,Cc=(e,n)=>e&&typeof e=="number"?Math.min(e/n*100,95.5):95.5;function JE(e){const t=100-4e3/e;return{minResizePercent:Math.max(5,9792/e),maxWidthPercent:t}}const I1=({editor:e,width:n,height:t,initialHeight:r,initialWidth:o,children:i,onResizeStart:l,isIcon:c,onResizeEnd:d,alignment:f,isEmbed:h,type:g,disableInteractions:C=!1})=>{const[b,y]=m.useState({x:-1e3,y:-1e3}),[x,w]=m.useState(30),[k,T]=m.useState("default"),[R,N]=m.useState(!1),{imperativeHandleRef:L,disable:M}=m.useContext(ft),S=C||!!M,[I,j]=m.useState(null),B=m.useMemo(()=>VE(f)||["e-resize"],[f]),_=B.length===1&&B[0]==="e-resize",D=m.useRef(null),O=m.useRef(null),W=m.useRef(null),K=m.useRef({rootHeight:0,rootWidth:0,ratio:1,currentWidth:0,currentWidthPercent:0,currentHeight:0,currentHeightPercent:0,startWidth:0,startWidthPercent:0,startHeight:0,startHeightPercent:0,startX:0,startY:0,direction:"x",isResizing:!1,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1}),F=(H,Z=95.5)=>{var fe;const re=(fe=e._window)==null?void 0:fe.innerWidth;if(re){let ge=100;h&&(ge=250);const Re=ge/re*100;return H<Re?Re:H>Z?Z:H}else return H<20?20:H>100?100:H},Y=(H,Z)=>{const re=Math.min(H,Z);return 15+(Math.max(200,Math.min(800,re))-100)/500*15},q=(H,Z,re)=>{if(T("default"),!R)return;let fe=k;fe=QE(H,Z,re,B),K.current.isResizing&&(fe=k),T(fe),w(x),y(ge=>P0(H,fe,h||!1,D.current)||ge)},ee=H=>{var ge;if(hs)return;H.preventDefault();const Z=(ge=D.current)==null?void 0:ge.getBoundingClientRect();if(!Z)return;const re=H.clientX-Z.left,fe=H.clientY-Z.top;K.current.isResizing||q(Z,re,fe)},Q=(H,Z=12,re=95.5,fe=K.current.rootWidth)=>{const ge=D.current,Re=K.current;if(!ge||H.button===2||!(Re!=null&&Re.isResizing))return;const Oe=ge.getBoundingClientRect(),ce=H.clientX-Oe.left,Le=H.clientY-Oe.top;q(Oe,ce,Le);const Ze=.17,dt=f==="right",Ct=f==="center",Wt=Re.isLeft,Dt=Re.isTop,ue=Re.isBottom,ne=Re.direction==="y",ke=Re.isRight,Fe=Math.floor(dt?Oe.right-H.clientX-(Oe.right-Re.startX):H.clientX-Re.startX),me=Math.floor(H.clientY-Re.startY);let se=0;Wt||ke?se=Fe/fe*100:(Dt||ue||Ct)&&(se=me*Ze),(Wt||Dt)&&(!dt||ne&&!Wt)&&(!ue||Ct)&&(se=-se),(Dt&&ke||ue&&ke)&&(se=Fe/fe*100),se=Math.max(-100,Math.min(100,se));const Ae=Re.startWidthPercent+se,Pe=Re.startHeightPercent+se;Re.currentWidthPercent=F(Math.max(Z,Ae),re),Re.currentHeightPercent=F(Math.max(Z,Pe),re),ge.style.width=`${Re.currentWidthPercent}%`,ge.style.height=`${Re.currentHeightPercent}%`},J=()=>{const H=W.current;H&&(document.removeEventListener("mousedown",H,!0),document.removeEventListener("pointerdown",H,!0),document.removeEventListener("click",H,!0),W.current=null)},xe=H=>{var ge,Re;const Z=K.current;if(Z.isResizing=!1,Ce(null),J(),(ge=D.current)==null||ge.classList.remove("is-resizing"),(Re=D.current)==null||Re.releasePointerCapture(H.pointerId),d(Z.currentWidthPercent+"%",Z.currentHeightPercent+"%"),document.removeEventListener("pointermove",Q),!D.current)return;const re=D.current.getBoundingClientRect(),fe=Y(re.width,re.height);w(fe)},we=(H,Z)=>{var Se,ze;const re=H.target;if(re!=null&&re.closest(".video-player-controls")||re!=null&&re.closest(".video-player-menu-dropdown")||re!=null&&re.closest(".mantine-Menu-dropdown"))return;if(H.button===2||!R&&!Z){H.preventDefault(),H.stopPropagation();return}if(!D.current)return;D.current.classList.add("is-resizing");const fe=e.getRootElement();if(!fe)return;const ge=fe.getBoundingClientRect();if(!e.isEditable())return;const Re=Z??k;if(Re==="default")return;Z&&T(Z);const Oe=O.current;if(Oe===null)return;const ce=(Se=D.current)==null?void 0:Se.getBoundingClientRect();if(!Oe.getBoundingClientRect()||!ce)return;if(H.preventDefault(),H.stopPropagation(),!W.current){const _e=Xe=>{K.current.isResizing&&(Xe.preventDefault(),Xe.stopPropagation())};W.current=_e,document.addEventListener("mousedown",_e,!0),document.addEventListener("pointerdown",_e,!0),document.addEventListener("click",_e,!0)}const{width:Ze,height:dt,top:Ct,left:Wt}=ce,Dt=H.clientX-Wt,ue=H.clientY-Ct,ne=Z?Re.startsWith("n"):ue<=gc,ke=Z?Re.startsWith("s"):ue>=dt-gc,Fe=Z?Re.includes("w-"):Dt<=gc,me=Z?Re.includes("e-"):Dt>=Ze-gc,se=K.current,Ae=window.getComputedStyle(fe),Pe=parseFloat(Ae.paddingTop),He=parseFloat(Ae.paddingBottom),$e=parseFloat(Ae.paddingLeft),it=parseFloat(Ae.paddingRight);se.rootHeight=ge.height-Pe-He||0,se.rootWidth=ge.width-$e-it||0,se.ratio=Ze/dt,se.currentWidth=se.currentWidth||Ze,se.currentWidthPercent=+D.current.style.width.replace("%",""),se.currentHeight=se.currentHeight||dt,se.currentHeightPercent=+D.current.style.height.replace("%",""),se.startX=H.clientX,se.startY=H.clientY,se.startWidth=se.currentWidth||Ze,se.startWidthPercent=se.currentWidthPercent,se.startHeight=se.currentHeight||dt,se.startHeightPercent=se.currentHeightPercent,se.isResizing=!0,se.isTop=ne,se.isBottom=ke,se.isLeft=Fe,se.isRight=me,se.direction=ke||ne?"y":"x",l&&l(),D.current.setPointerCapture(H.pointerId);const Je=((ze=D.current.parentElement)==null?void 0:ze.offsetWidth)??se.rootWidth,{maxWidthPercent:ct,minResizePercent:be}=JE(Je);document.addEventListener("pointermove",_e=>{var Xe,Ye;return Q(_e,g==="video"?40:be,ct,(Ye=(Xe=D.current)==null?void 0:Xe.parentElement)==null?void 0:Ye.offsetWidth)}),document.addEventListener("pointerup",xe,{capture:!0,once:!0})};m.useEffect(()=>{var ge;const H=D.current;if(!H)return;if(typeof n=="number"&&typeof t=="number"){H.style.width=`${F(n)}%`,H.style.height=`${F(t)}%`;return}const Z=(ge=H.parentElement)==null?void 0:ge.getBoundingClientRect();if(!Z)return;const re=Cc(r,Z.height),fe=Cc(o,Z.width);H.style.width=`${fe}%`,H.style.height=`${re}%`},[n,t,o,r]),m.useEffect(()=>{var fe;if(!D.current)return;const H=D.current.getBoundingClientRect(),Z=(fe=D.current.parentElement)==null?void 0:fe.getBoundingClientRect(),re=Y(H.width,H.height);if(w(re),typeof n=="number"&&typeof t=="number")D.current.style.width=`${F(n)}%`,D.current.style.height=`${F(t)}%`,K.current.currentWidthPercent=n,K.current.currentHeightPercent=t;else if(Z){const ge=Cc(r,Z.height),Re=Cc(o,Z.width);requestAnimationFrame(()=>{D.current&&(D.current.style.height=`${ge}%`,D.current.style.width=`${Re}%`)}),K.current.currentWidthPercent=Re,K.current.currentHeightPercent=ge}else D.current.style.height="100%",D.current.style.width="100%",K.current.currentWidthPercent=100,K.current.currentHeightPercent=100},[D.current,c,r,o]);const Te=H=>{const re=H.target.closest("[data-lexical-decorator]");return re?e.update(()=>{const fe=p.$getNearestNodeFromDOMNode(re);fe&&fe instanceof p.DecoratorNode&&(typeof fe.select=="function"&&fe.select(),j(fe))}):j(null),!1},We=()=>(I&&setTimeout(()=>{e.update(()=>(I.insertAfter(p.$createParagraphNode()).selectStart(),j(null),!0))}),!1);L!=null&&L.current&&(L.current.decoratorEnterAction=We),m.useEffect(()=>{const H=e.registerCommand(p.CLICK_COMMAND,Te,p.COMMAND_PRIORITY_NORMAL);return()=>{H()}},[I]);const ie=S||hs,[X,ae]=m.useState(!1),[pe,Ce]=m.useState(null);m.useEffect(()=>{if(!hs||!X)return;const H=Z=>{var re;K.current.isResizing||(re=D.current)!=null&&re.contains(Z.target)||ae(!1)};return document.addEventListener("pointerdown",H,!0),()=>document.removeEventListener("pointerdown",H,!0)},[X]);const G=H=>{if(!hs||S)return;const Z=H.target;Z!=null&&Z.closest(".resizable-container__touch-handle")||Z!=null&&Z.closest(".video-player-controls")||Z!=null&&Z.closest(".video-player-menu-dropdown")||Z!=null&&Z.closest(".mantine-Menu-dropdown")||X||ae(!0)},he=H=>Z=>{Z.stopPropagation(),Ce(H),we(Z,H)},oe=H=>{var re;const Z=(re=D.current)==null?void 0:re.getBoundingClientRect();return Z?P0(Z,H,h||!1,D.current)||{x:0,y:0}:{x:0,y:0}};return s.jsxs("div",{ref:D,className:`resizable-container ${f||""} ${_?"hide-padding":""} ${g?`resizable-container--${g}`:""}`,style:{cursor:k,pointerEvents:S?"none":"auto"},onMouseMove:ie?void 0:ee,onMouseEnter:ie?void 0:()=>N(!0),onMouseLeave:ie?void 0:()=>{N(!1),T("default")},onMouseUp:ie?void 0:()=>{e.dispatchCommand(ii,"show_menu")},onPointerDown:S?void 0:hs?G:we,children:[s.jsx("svg",{className:`resizable-container__handle ${R?"hovered":""}`,style:{"--clip-x1":`${b.x-x}px`,"--clip-y1":`${b.y-x}px`,"--clip-x2":`${b.x+x}px`,"--clip-y2":`${b.y-x}px`,"--clip-x3":`${b.x+x}px`,"--clip-y3":`${b.y+x}px`,"--clip-x4":`${b.x-x}px`,"--clip-y4":`${b.y+x}px`,clipPath:`polygon(
|
|
5
|
-
var(--clip-x1) var(--clip-y1),
|
|
6
|
-
var(--clip-x2) var(--clip-y2),
|
|
7
|
-
var(--clip-x3) var(--clip-y3),
|
|
8
|
-
var(--clip-x4) var(--clip-y4)
|
|
9
|
-
)`,opacity:R?1:0,transition:`${K.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(B==null?void 0:B.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:s.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),s.jsx("div",{ref:O,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:K.current.isResizing?"none":"auto"},children:i}),hs&&X&&!S&&B.filter(H=>pe?H===pe:!0).map(H=>{const Z=oe(H);return s.jsx("svg",{className:"resizable-container__handle hovered resizable-container__touch-handle",onPointerDown:he(H),style:{"--clip-x1":`${Z.x-x}px`,"--clip-y1":`${Z.y-x}px`,"--clip-x2":`${Z.x+x}px`,"--clip-y2":`${Z.y-x}px`,"--clip-x3":`${Z.x+x}px`,"--clip-y3":`${Z.y+x}px`,"--clip-x4":`${Z.x-x}px`,"--clip-y4":`${Z.y+x}px`,clipPath:`polygon(
|
|
10
|
-
var(--clip-x1) var(--clip-y1),
|
|
11
|
-
var(--clip-x2) var(--clip-y2),
|
|
12
|
-
var(--clip-x3) var(--clip-y3),
|
|
13
|
-
var(--clip-x4) var(--clip-y4)
|
|
14
|
-
)`,opacity:1,pointerEvents:"auto",touchAction:"none"},children:s.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})},H)})]})},wb=e=>typeof e=="string"&&e.includes("%")?parseFloat(e):e;function XE(e,n){if(e.match(/\n/))return!1;try{const t=new URL(e);return["javascript:","file:","vbscript:","data:"].includes(t.protocol)?!1:t.hostname?!0:t.protocol!==""&&(t.pathname.startsWith("//")||t.pathname.startsWith("http"))&&!(n!=null&&n.requireHostname)}catch{return!1}}function kb(e){var n;try{if(e.includes("maps/embed"))return e;const t=new URL(e),r=t.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),o=t.href.match(/1s([^!]+)/),i=t.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!r&&!i)throw new Error("Invalid Google Maps URL format");const l=i?i[1]:r?r[1]:"0",c=i?i[2]:r?r[2]:"0",d=r?Math.round(Math.log2(40075016686e-3/(parseFloat(r[3])*2))):14,f=o?o[1]:"",h=((n=navigator==null?void 0:navigator.language)==null?void 0:n.split("-")[0])||"en";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${c}!3d${l}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${d}!3m3!1m2!1s${f}!2z!5e1!3m2!1s${h}!2s!4v${Date.now()}!5m2!1s${h}!2s`}catch(t){return console.error("Error link:",t),""}}function $E(e){const n=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return e.replace(n,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function Sb(e){if(e)return e.includes("lookerstudio")?$E(e):e.includes("maps")?kb(e):!XE(e,{requireHostname:!1})&&!e.startsWith("/")&&!e.startsWith("#")&&!e.startsWith("mailto:")&&!e.startsWith("sms:")&&!e.startsWith("fax:")&&!e.startsWith("tel:")?`https://${e}`:e}const eT=28,Zi=m.forwardRef(({src:e,title:n,icon:t,canonicalUrl:r,isSelected:o,width:i="100%",height:l,saveUrl:c,editor:d,updateMinHeight:f,disableOutline:h},g)=>{var w;const C=m.useRef(null),[b,y]=m.useState(!1),x=m.useMemo(()=>{var T;return(l?parseFloat(String(l)):((T=C.current)==null?void 0:T.scrollHeight)||0)+eT},[l,(w=C.current)==null?void 0:w.scrollHeight]);return m.useEffect(()=>{const k=setTimeout(()=>{y(!0),e&&(d==null||d.update(()=>{c(e)}))},0);return()=>clearTimeout(k)},[e]),m.useEffect(()=>{x&&f(x)},[x]),s.jsx(v.Box,{className:`frame-container ${o?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:b&&s.jsx("iframe",{ref:g||C,style:h?{outline:"none"}:{outline:"1px"},className:"editor-video",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:l,frameBorder:"0",title:n||"embed",loading:"lazy",src:Sb(e),allowFullScreen:!0})})}),tT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKKEL/wAAlt/n/wQDeADn/wQD/vwAbsf3/wQDJKEIltvn/wAD/wQD/wAD/wAD/wQD/wgD/wAD/wAD/wAAjtPYis/oZsPn/sQD0JC4mtfjIJ0Ilt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uC72v2zacu2sfqgJbhJpz6DVLNsahsj4X7a8Fuo2djNRtXrQwLlKUIMPFMlUTsgasb8qm74yrAVsOZlom4Lbn/Ks4NMptaJyRqqfBDdEFdhSY1x9uR0tXHzYVLxfQLxdRA28dXQI9BLJ0MCAzXQMwbw2lbwAzxMHyhuPSwSI1v7HxbMHmRz73w3/qOTcJNuXSEsBRlQOuIKP3rFO3htxvl/cYC+To4BZyzsXWva1TgAlZdq7a1HxWU7OFntitgNxry3KOzUH16OcfHQYaYBnl92rQAnbPye2QyZOyc5DjteKEiyXkUprWf4qAgPnngPiXYDrAAS5YFVOzkapfFt64KkLWY9AS2BLIofKcCABNORwt3ZxdTJBxMgHr9thysbxpag1gmaK7P98zBffmwOrPmiFbC/mODnIO7KhAbzsiH0vQMQOWAg2lJkOUmzvQjjbZdHHrZA2YkEvtsAYs/+aT/FuLwrl/1Iy6hfz+meev/8jGDs1QqIA1DuWA50Bfs8RO2Qp0b3ar4GQC7i3rEYAlZMxL82ap+ublXsDoLaNDFZh8CzOQzTi30A1/fPLnSze2ex6wBViTdx5bLBdha+iEzDjEzdLJcgrTCzmoBFnfrNwaKsm/3AbX4iJ+APv6ZlNt4cw5Cm6evOXj1VAJDXEUJU8Ay81UBrQ1V205OTVPbUJ2ujjlYEIGXEw/tq49v9lcW8j/j0bQwdGTdxybhVrUqn/NRwfwLGwJOuPmImTjYgTg4ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",AT="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20width='256'%20height='256'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20fill='%23625DF5'%20d='M256%20113.765h-74.858l64.83-37.43-14.237-24.667-64.83%2037.43%2037.421-64.825-24.667-14.246-37.421%2064.826V0h-28.476v74.86L76.326%2010.027%2051.667%2024.266%2089.096%2089.09%2024.265%2051.668l-14.238%2024.66%2064.83%2037.43H0v28.477h74.85l-64.823%2037.43%2014.238%2024.667%2064.824-37.423-37.43%2064.825%2024.667%2014.239%2037.429-64.832V256h28.476v-74.853l37.422%2064.826%2024.665-14.239-37.428-64.832%2064.83%2037.43%2014.24-24.667-64.825-37.423h74.85v-28.477H256ZM128%20166.73c-21.472%200-38.876-17.403-38.876-38.876%200-21.472%2017.404-38.876%2038.876-38.876%2021.472%200%2038.875%2017.404%2038.875%2038.876%200%2021.473-17.403%2038.876-38.875%2038.876Z'/%3e%3c/svg%3e",bT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4jR33jRz4jRv3jRz2jBr3jRr5jBr4jRz3jR5wb2LMAAAANHRSTlMA/AwPCAPo+fWvIovN8pxLNi4TBu3GchkW496qgnhWUEUd2JdlYEDSwbSloblrXH07MyeRXwFKAQAABC1JREFUaN7t2ulymzAQAODlMgYMGGyM7/uIHR9Juu//bJ1pnQKJtBUyUtpOv9/YAiHtaoXgvz+eud8NBtu9Bb+1ii+zwfW110yrnos/uOelRba67eBP4aZrw4OWLpYYV+CaYtnah4ecDawwMhOYumusakcPdLg/xk9aCTDMQ/zES0HScIwMLZ/xQpDlKPvMT8h0+NwzbWQ6gZQpckSCd4huAhLsPnK0c6iIkWcsM6tuyLWBst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+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",wT="data:image/svg+xml,%3csvg%20height='256'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20256'%20width='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m127.059657%20255.996921c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722zm0%200c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722z'%20fill='%23fff'/%3e%3cpath%20d='m127.184644%20238.997327c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076zm0%200c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076z'%20fill='%2349a32b'/%3e%3cpath%20d='m169.327319%20127.956161c-.284596%205.290212-4.906213%209.683063-9.461106%208.916425-.021787%200-.044936%200-.068085%200-5.045107.006809-9.139745-4.078298-9.145192-9.123404.171575-5.058724%204.366979-9.045787%209.427064-8.96%205.045106.02451%209.51966%204.288%209.247319%209.166979zm-81.1261275%2051.264c1.9022979.055829%203.8059574.014978%205.9996596.014978v13.785873c-13.6347234%202.305361-24.8660426-1.565958-27.6221277-13.091405-.9436596-4.237617-1.5237447-8.548766-1.7361702-12.885787-.292766-4.591659.2137872-9.235064-.1361702-13.818553-.9695319-12.612085-2.6035745-16.917787-14.706383-17.514213v-15.69634c.8674043-.202894%201.7470638-.352681%202.6321702-.452085%206.6355745-.326809%209.4325107-2.361192%2010.916766-8.897362.6754042-3.672511%201.0757447-7.389958%201.1942127-11.1223831.5256171-7.2170212.3390639-14.5511489%201.5414468-21.6510638%201.737532-10.267234%208.1116596-15.2551489%2018.6403405-15.8134468%202.9957447-.1606808%206.0010212-.0245106%209.3957447-.0245106v14.0908936c-1.3971064.0994042-2.6771064.3022979-3.9489362.2641702-8.5800851-.2628085-9.024%202.6594043-9.650383%209.7620426-.3908085%204.4541276.1484255%208.9845106-.155234%2013.453617-.3172766%204.4473189-.9123405%208.8714889-1.7811064%2013.2452769-1.2377873%206.338723-5.1349787%2011.052936-10.5354894%2015.053617%2010.4837447%206.822127%2011.6765958%2017.422978%2012.3574468%2028.187234.3662979%205.78451.1988085%2011.609872.7857022%2017.365787.4575319%204.467745%202.1950638%205.607489%206.8085106%205.74366zm8.8360851-60.430979h.1620425c5.0124259.083064%209.0103829%204.213106%208.9273189%209.226893%200%20.164766-.005447.328171-.014978.491575-.281873%204.899404-4.481362%208.641362-9.3807664%208.359489-.1974468.004085-.3935319%200-.5909787-.009532-4.9892766-.247829-8.8333617-4.493617-8.5855319-9.482893.2478298-4.989277%204.493617-8.833362%209.4828936-8.585532zm31.2360854%200c5.482212-.042213%209.123404%203.510468%209.152%208.930042.029957%205.565277-3.421958%209.126128-8.868766%209.149277-5.539405.024511-9.186043-3.479149-9.216-8.866043-.016341-.275063-.020426-.550127-.012256-.825191.153873-4.786383%204.158639-8.541958%208.945022-8.388085zm65.399829-6.865702c1.458383%205.446808%204.297532%207.361361%2010.03166%207.622808.939575.043575%201.875064.202894%203.163234.345873v15.692255c-.697191.228766-1.412085.40034-2.137872.512-7.684085.477957-11.186383%203.630298-11.962553%2011.334808-.49566%204.918468-.454809%209.891405-.795234%2014.827575-.142979%205.419574-.635915%2010.82417-1.476086%2016.179745-1.960851%209.703489-8.019063%2014.54434-18.028936%2015.135319-3.221787.190638-6.466723.029957-9.940425.029957v-14.025532c1.869617-.115744%203.52-.275064%205.174468-.314553%205.980596-.142979%208.095319-2.071149%208.388085-8.010894.324085-6.525276.465702-13.058723.757106-19.585361.42349-9.433873%203.006639-17.861447%2011.795064-23.745362-5.028766-3.585362-9.066213-7.92783-10.112-13.783149-1.265021-7.097191-1.673532-14.3509787-2.354383-21.5475744-.33634-3.597617-.32-7.2265532-.671319-10.8214468-.378553-3.8808511-3.044766-5.2234894-6.577021-5.3106383-2.02349-.0490213-4.055149-.0095319-6.642383-.0095319v-13.696c16.509276-2.7411064%2027.913532%202.752%2028.972936%2018.5477446.443915%206.6328511.378553%2013.2970213.803404%2019.9298728.186553%203.60851.725787%207.189787%201.612255%2010.692085z'%20fill='%23fff'/%3e%3c/svg%3e",kT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCt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72ABQKB1vHvUEbAAAAAASUVORK5CYII=",TT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAAACXBIWXMAACE4AAAhOAFFljFgAAAHGUlEQVR42u2cW2wNWxjHN1rtbiXud1td69pWEGkiHjxIiBcqrhGJB4+ePJCQiKBRgod6aCWSulX1uCVCvKDauJ4iSDy4Bm3qEkIoysH5Z/9jZcyemb2nu86xp//fw8p0Zs2sWf/9rW9935qZhkJCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBAiaGRkZGRlZYV/BXvS09MlTlsycODAYcOGDRkyZKgF7OnTpw+OdujQQRK1AdnZ2R5He/ToIa2Tgtp1794d5YkTJ27dunX16tX6+vq/o1y7du327du7d+/GUVi6tE5W6P79+6NsaGj44cSVK1dwdPz48RI6WaH79euH8v79+5D169ev336CbeypqanB0bFjx0rothH64cOHkBX6Glvmdm1tLY6OGzdOQktoCf3HdjsR2rCtjh07+hIa9X/HzfzRZtiGp/fq1Suu0GPGjPkdN/M/CJeWloZYFZkY8zE3IpFIt27dkmkuMzMTyg4ePJgXzMnJobW6CV1XV4ejhYWF5hTe5PDhw1MvaUTnfdVHV9m9BDtpquG3pKOI5d69e45Cnz171uPKTHZSg549e6KcPHnygQMHjh49Wl1d/ZcLOLRjxw6YEurDpvz6ilGjRnFj/vz5paWlhw8f5mWPHDlSWVn56tUryPr9+3cjNLdh6Xv37j127JjtTpBJrl+/Hlfr27dvahg1hUPnrZ304PXr18XFxb60traC3Prz58+OV469Ae9bunTpEt13p06dUkBo6jV37tz379+b3OwfF8zQpjUZI/WG1TZs2PDx40fjFmytuGmK/WzXWplJ47lz53jx1BAaDhdlUVFRc3OzzUs68uXLF5SNjY083c3n2mx55cqVVIc/5I/k4K/C7DywQrOTKFevXo0TR44c6XZlhL1ZWVkMlp89e2Z+pORJSaEdXYcZ2rG6mzGOiREnjhgxwk1llLm5uSirqqpQH1fzcAuJuA7jQFLSdfidDBMR2rr+OW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M9XUIaejFP64TmnS12d85s702IB8xyUwopxU1jGEJqqUE0rcCbXL14F7F9LdXcu+YrKgKf2VGtCWNDgD1pTWmFiM5xSkz0zW6S1JiywfvTJrlQOwAN9boIQ1BxpvoAlgYbs1xlQzU0QgjgjSU9hES9v5zGbmCHtZpGBKyTFIaxkTRU7tlZkzGoV1uomUo5SsscXutIBrDZMpHxN6V09VZ7VxG3qvgqEzCErnZuwGk8UpChk9SwPCV4JG2QRkgpOPSVDQrO+0tP7Bc+C6EuHBG1cugYPNOnRZV6R0AewiUXXus3gi4LcD6cMNsk6pNwtyTPV9TlsInykeAP8qSQTdlLYyPDkjnZO9kR7cNjIiuW2dcUm3iy3yh5SZ3tGFkZpBWzFfSZxm+ENtYpdC9iu9JBSchjxs04m3KiwXXpHykk8Xx/s/ROGsEWKG45xjYiRW/om4AVqzebfw3gaK0gmHMBLCn12hvC00VDiO7xe0CMpzmbjsrsFrxkaJCmdCcCNibioF/CirEOa3oUiiDWkdQJexGsFSUyP80hBWh/CywoPaUxx2VQ1SnhdEOFqNYfXWTGuFZuwA3FiuI49wC5qHVfREg67KK64hlKrsI/UWRW3DWEn6o2tiOuksJtcvsksGq8In2wys30B+xnuTDKuV6uwI94qKMXNM9hV5aEM/RHCvtJeKu7Jgp2JRqLW2hh3P5X79sFBC3uGC9oMdrH217TOhLdI52vNagFv0jCcplUc3sXQZ+ZkwuF9pu4hTHMMDm+UXSfGc2fBeyUulW7kq/Bu9ZfIin0yOLydyO0/qtz4JnyC6jvaGPba+iF8iDByx2U/ahxfkhA+SDWK+vKo/SRV4dOEaarHv+APh8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function LT({matches:e,...n}){const t=e[0],r=new URL(t).searchParams,o="Draw.io",i=r.get("title")?`${o} (${r.get("title")})`:o;return s.jsx(Zi,{...n,src:n.attrs.href,icon:s.jsx(v.Image,{src:Eb,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:n.attrs.href,title:i})}function NT(e){return e.endsWith(".pibb")?e:`${e}.pibb`}function jT(e){const n=NT(e.attrs.href);return s.jsx(Zi,{...e,src:n,canonicalUrl:n,width:"100%",title:"GitHub Gist"})}function RT({matches:e,...n}){let t="";try{t=new URL(e[0]).pathname}catch{t=""}const r=t.replace(/^\/embed/,"/");let o;return r.includes("episode")||r.includes("show")?o=232:r.includes("track")?o=80:o=380,s.jsx(Zi,{...n,disableOutline:!0,width:"100%",height:`${o}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function IT({matches:e,...n}){const t=e[2];return e[1]==="c"?s.jsx(Zi,{...n,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${t}`,title:`Trello Card (${t})`}):s.jsx(Zi,{...n,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${t}`,title:`Trello Board (${t})`})}function DT({matches:e,...n}){const t=e[4],r=e[5],o=`https://player.vimeo.com/video/${t}?byline=0${r?`&h=${r}`:""}`;return s.jsx(Zi,{...n,src:o,canonicalUrl:o,title:`Vimeo Embed (${t})`,height:"412px",referrerPolicy:"origin"})}const OT={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Js=[{parentKey:"integrations",platform:"spotify",keywords:["spotify"],key:"spotify",hide:!1,regexMatches:[/(?:https?:\/\/)?(?:open\.)?spotify\.com\/(?:embed\/)?(track|album|playlist|show|episode)\/([a-zA-Z0-9]+)/],icon:s.jsx(Zt,{className:"integration-icon",src:vT}),name:"Spotify",placeholder:"https://open.spotify.com/...",component:RT},{parentKey:"integrations",platform:"figma",keywords:["figma","design"],key:"figma",hide:!1,regexMatches:[new RegExp("^https://([w.-]+\\.)?figma\\.com/(file|proto|board|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"),new RegExp("^https://([w.-]+\\.)?figma\\.com/embed(.*)$")],transformMatch:e=>e[0].includes("/embed")?e[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(e[0])}`,icon:s.jsx(Zt,{className:"integration-icon",src:iT}),name:"Figma",placeholder:"https://www.figma.com/...",getIframeUrl:e=>`https://www.figma.com/embed?embed_host=share&url=${e}`},{parentKey:"integrations",platform:"airtable",keywords:["spreadsheet"],key:"airtable",hide:!1,regexMatches:[new RegExp("^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$"),new RegExp("^https://airtable.com/(app.*/)?(pag.*)/form$")],icon:s.jsx(Zt,{className:"integration-icon",src:tT}),name:"Airtable",placeholder:"https://airtable.com/...",transformMatch:e=>`https://airtable.com/embed/${e[1]??""}${e[2]}`,getIframeUrl:e=>`https://airtable.com/embed/${e}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:nT}),name:"Codepen",placeholder:"https://codepen.io/...",transformMatch:e=>`https://codepen.io/${e[1]}/embed/${e[3]}`,getIframeUrl:e=>`https://codepen.io/${e}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:s.jsx(Zt,{className:"integration-icon",src:rT}),name:"DBDiagram",placeholder:"https://dbdiagram.io/...",transformMatch:e=>`https://dbdiagram.io/embed/${e[2]}`,getIframeUrl:e=>`https://dbdiagram.io/embed/${e}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:s.jsx(Zt,{className:"integration-icon",src:Eb}),name:"Diagrams.net",placeholder:"https://viewer.diagrams.net/...",component:LT},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:s.jsx(Zt,{className:"integration-icon",src:oT}),name:"Descript",placeholder:"https://share.descript.com/...",transformMatch:e=>`https://share.descript.com/embed/${e[1]}`,getIframeUrl:e=>`https://share.descript.com/embed/${e}`},{parentKey:"integrations",platform:"github",keywords:["code"],key:"gist",hide:!1,regexMatches:[/^https:\/\/gist\.github\.com\/([a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38})\/(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:sT}),name:"GitHub Gist",placeholder:"https://gist.github.com/...",component:jT},{parentKey:"integrations",platform:"google-maps",keywords:["maps"],key:"google-maps",hide:!1,regexMatches:[/https?:\/\/(?!maps\.app\.goo\.gl\/2SrY88FwWBpKDkk88)(?:maps\.app\.goo\.gl\/[\w-]+|www\.google\.com\/maps\/[\S]+)/],icon:s.jsx(Zt,{className:"integration-icon",src:hT}),name:"Google Maps",placeholder:"https://www.google.com/maps/...",transformMatch:e=>e[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:cT}),name:"Google Drawings",placeholder:"https://docs.google.com/drawings/...",transformMatch:e=>e[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:uT}),name:"Google Drive",placeholder:"https://drive.google.com/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-docs",keywords:["documents","word"],key:"google-docs",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/document\/(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:lT}),name:"Google Docs",placeholder:"https://docs.google.com/document/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-sheets",keywords:["excel","spreadsheet"],key:"google-sheets",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)$/],icon:s.jsx(Zt,{className:"integration-icon",src:pT}),name:"Google Sheets",placeholder:"https://docs.google.com/spreadsheets/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-slides",keywords:["presentation","slideshow"],key:"slides",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/presentation\/d\/(.*)$/],transformMatch:e=>e[0].replace("/edit","/preview").replace("/pub","/embed"),icon:s.jsx(Zt,{className:"integration-icon",src:mT,alt:"Google Slides"}),name:"Google Slides",placeholder:"https://docs.google.com/presentation/..."},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:e=>e[0],icon:s.jsx(Zt,{className:"integration-icon",src:aT,alt:"Google Calendar"}),name:"Google Calendar",placeholder:"https://calendar.google.com/..."},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:e=>e[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:s.jsx(Zt,{className:"integration-icon",src:dT,alt:"Google Forms"}),name:"Google Forms",placeholder:"https://docs.google.com/forms/..."},{parentKey:"integrations",platform:"google-business",keywords:["bi","business intelligence"],key:"lookerstudio",hide:!1,regexMatches:[/^https?:\/\/(lookerstudio|datastudio)\.google\.com\/(embed|u\/0)\/reporting\/(.*)\/page\/(.*)(\/edit)?$/],transformMatch:e=>e[0].replace("u/0","embed").replace("/edit",""),icon:s.jsx(Zt,{className:"integration-icon",src:fT,alt:"Google Looker Studio"}),name:"Google Looker Studio",placeholder:"https://lookerstudio.google.com/..."},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>{const n=e.input??e[0];return n.includes("style=singlePage")?n:n.replace(/(\?embed=true)?$/,"?embed=true")},icon:s.jsx(Zt,{className:"integration-icon",src:gT,alt:"Grist"}),name:"Grist",placeholder:"https://docs.getgrist.com/..."},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:e=>`${e[0]}/embed`,icon:s.jsx(Zt,{className:"integration-icon",src:CT,alt:"Instagram"}),name:"Instagram",placeholder:"https://www.instagram.com/..."},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:e=>e[0].replace("share","embed"),icon:s.jsx(Zt,{className:"integration-icon",src:AT,alt:"Loom"}),name:"Loom",placeholder:"https://www.loom.com/..."},{parentKey:"integrations",platform:"lucidchart",keywords:["chart"],key:"lucidchart",hide:!1,regexMatches:[/^https?:\/\/(www\.|app\.)?(lucidchart\.com|lucid\.app)\/documents\/(embeddedchart|view|edit)\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/,/^https?:\/\/(www\.|app\.)?(lucid\.app|lucidchart\.com)\/lucidchart\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/],transformMatch:e=>{var n;return`https://lucidchart.com/documents/embeddedchart/${(n=e.groups)==null?void 0:n.chartId}`},icon:s.jsx(Zt,{className:"integration-icon",src:bT,alt:"Lucidchart"}),name:"Lucidchart",placeholder:"https://lucid.app/lucidchart/..."},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:e=>`https://${e[1]}.com/app/embed/${e[2]}`,icon:s.jsx(Zt,{className:"integration-icon",src:yT,alt:"Miro"}),name:"Miro",placeholder:"https://miro.com/app/board/..."},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:e=>`https://scribehow.com/embed/${e[1]}`,icon:s.jsx(Zt,{className:"integration-icon",src:xT,alt:"Scribe"}),name:"Scribe",placeholder:"https://scribehow.com/..."},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>e.input??e[0],icon:s.jsx(Zt,{className:"integration-icon",src:wT,alt:"Swagger"}),name:"Swagger"},{parentKey:"integrations",platform:"tldraw",keywords:["draw","schematics","diagrams"],key:"tldraw",hide:!1,regexMatches:[/^https?:\/\/(beta|www|old)\.tldraw\.com\/[rsvo]+\/(.*)$/],transformMatch:e=>e[0],icon:s.jsx(Zt,{className:"integration-icon",src:kT,alt:"Tldraw"}),name:"Tldraw",placeholder:"https://www.tldraw.com/..."},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:s.jsx(Zt,{className:"integration-icon",src:ST,alt:"Trello"}),component:IT,name:"Trello",placeholder:"https://trello.com/..."},{parentKey:"integrations",platform:"typeform",keywords:["form","survey"],key:"typeform",hide:!1,regexMatches:[/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/],transformMatch:e=>e[0],icon:s.jsx(Zt,{className:"integration-icon typeform",src:ET,alt:"Typeform"}),name:"Typeform",placeholder:"https://typeform.com/..."},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:e=>`https://www.val.town/embed/${e[1]}`,icon:s.jsx(Zt,{className:"integration-icon",src:TT,alt:"Valtown"}),name:"Valtown",placeholder:"https://www.val.town/..."},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:s.jsx(Zt,{className:"integration-icon",src:MT,alt:"Vimeo"}),name:"Vimeo",placeholder:"https://vimeo.com/...",component:DT}];function Zt({w:e=16,h:n=16,...t}){return s.jsx(v.Image,{w:e,h:n,...t})}const Ch=(e,n=[])=>{const t=n??[];for(const r of t){const o=e.match(r);if(o)return o}return!1};function PT(e){for(const n of Js){const t=Ch(e,n.regexMatches);if(t)return{embed:n,matches:t}}}function Tb(e){var r;let n=null;const t=Js.find(o=>o.regexMatches.some(i=>{var l;return n=e.match(i),n?{platform:o.platform,id:((l=o==null?void 0:o.transformMatch)==null?void 0:l.call(o,n))||"valid"}:{platform:"unknown",id:null}}));return t?{platform:t.platform,id:n?((r=t.transformMatch)==null?void 0:r.call(t,n))||"valid":null}:{platform:"unknown",id:null}}function BT(e,n){var r;const t=Js.find(o=>o.platform===e);return t?((r=t==null?void 0:t.getIframeUrl)==null?void 0:r.call(t,n))||"valid":""}const _T=({height:e,width:n,id:t,platform:r,src:o})=>{const i=OT[r]||r,c=`${parseInt(e,10)-24}px`;return s.jsxs("span",{className:"frame-container",style:{width:n,height:e},children:[s.jsx("iframe",{"data-lexical-embedid":t,"data-lexical-platform":r,src:o,style:{margin:0},width:"100%","data-exportheight":e,"data-exportwidth":n,height:c,allowFullScreen:!0,frameBorder:"0"}),s.jsx("span",{className:"frame-bar","data-title":i,children:s.jsx("a",{className:"frame-open-link",href:o,target:"_blank",rel:"noopener noreferrer"})})]})},Aa="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function B0({icon:e,title:n,actions:t}){return s.jsxs("div",{className:"embed-header",children:[s.jsxs("div",{className:"embed-header__title",children:[s.jsx("div",{className:"embed-header__icon",children:e}),s.jsx(v.Text,{size:"sm",fw:500,c:"bright",truncate:!0,children:n})]}),s.jsx("div",{className:"embed-header__actions",children:t})]})}function Tf({showPreview:e,onTogglePreview:n,onViewOriginal:t,onCopyLink:r,onDelete:o}){const{t:i}=Ue.useTranslation();return s.jsxs(v.Menu,{shadow:"md",position:"bottom-end",withinPortal:!0,children:[s.jsx(v.Menu.Target,{children:s.jsx(Jt,{className:"embed-action-btn",label:i("editor.embed.moreAction"),icon:qn,iconColor:"var(--mantine-color-gray-text)"})}),s.jsxs(v.Menu.Dropdown,{miw:232,children:[s.jsx(v.Menu.Item,{leftSection:s.jsx($,{icon:e?h1:MA,size:16,color:"currentColor"}),onClick:n,children:i(e?"editor.embed.hidePreview":"editor.embed.showPreview")}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{leftSection:s.jsx($,{icon:CA,size:16,color:"currentColor"}),onClick:t,children:i("editor.embed.viewOriginal")}),s.jsx(v.Menu.Item,{leftSection:s.jsx($,{icon:c1,size:16,color:"currentColor"}),onClick:r,children:i("editor.embed.copyLink")}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{color:"red",leftSection:s.jsx($,{icon:sn,size:16,color:"currentColor"}),onClick:o,children:i("editor.embed.delete")})]})]})}function Ac({opened:e,onClose:n,hasPreview:t,showPreview:r,onTogglePreview:o,onViewOriginal:i,onCopyLink:l,onDuplicate:c,onDelete:d}){const{t:f}=Ue.useTranslation(),h=g=>{n(),g()};return s.jsx(Bt,{opened:e,onClose:n,title:f("editor.menu.main.code.mobileActions"),children:s.jsxs(v.Stack,{gap:t?16:2,p:0,children:[t&&s.jsx(v.Stack,{gap:2,p:0,children:s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:Aa,leftSection:s.jsx($,{icon:r?h1:MA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(o),children:f(r?"editor.embed.hidePreview":"editor.embed.showPreview")})}),s.jsxs(v.Stack,{gap:2,p:0,children:[t&&s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:Aa,leftSection:s.jsx($,{icon:CA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(i),children:f("editor.embed.viewOriginal")}),s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:Aa,leftSection:s.jsx($,{icon:c1,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(l),children:f("editor.embed.copyLink")})]}),c&&!t&&s.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:Aa,leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(c),children:f("editor.contextMenu.duplicate")})]}),s.jsx(v.Stack,{gap:2,p:0,children:s.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:Aa,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>h(d),children:f("editor.embed.delete")})})]})})}function FT({opened:e,onClose:n,title:t,url:r,onUrlChange:o,onSubmit:i,onCancel:l,inputPlaceholder:c,invalidUrl:d,errorMessage:f}){const{t:h}=Ue.useTranslation();return s.jsx(Bt,{opened:e,onClose:n,title:t,children:s.jsxs(v.Stack,{gap:16,p:0,children:[s.jsx(v.TextInput,{placeholder:c,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:r,onChange:g=>o(g.currentTarget.value),error:d?f:void 0}),s.jsxs(v.Stack,{gap:8,p:0,children:[s.jsx(v.Button,{h:36,fullWidth:!0,onClick:i,disabled:!r,children:h("editor.embed.save")}),s.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:l,children:h("editor.cancel")})]})]})})}function WT({className:e,format:n,platform:t,embedId:r,embedSrc:o="",width:i,editor:l,nodeKey:c,create:d,showPreview:f}){const[h,g]=m.useState(r||""),[C,b]=m.useState(!1),[y,x]=m.useState(d||!1),[w,k]=m.useState(f!==!1),{t:T}=Ue.useTranslation(),{disable:R,onTrack:N}=m.useContext(ft),[L,{open:M,close:S}]=Ft.useDisclosure(!1),[I,{open:j,close:B}]=Ft.useDisclosure(!1),_=fl(),D=m.useMemo(()=>Js.find(oe=>oe.platform===t),[t]);m.useEffect(()=>{if(y)return rt||Vs(),()=>{rt||Ki()}},[y]);const O=m.useMemo(()=>PT(h),[h]);m.useEffect(()=>{g(r||"")},[r]);const W=m.useMemo(()=>O!=null&&O.embed.transformMatch?O.embed.transformMatch(O.matches):o||r||"",[O,o,r]),K=m.useMemo(()=>Sb(W),[W]),F=D!=null&&D.icon?D.icon:s.jsx($,{icon:Af,size:20,color:"var(--mantine-color-gray-text)"}),Y=(D==null?void 0:D.name)||T("editor.embed.insert"),q=oe=>{l.update(()=>{const H=p.$getNodeByKey(c);return ba(H)&&H.setMinHeight(oe),!0})},ee=oe=>{const H=p.$getNodeByKey(c),Z=Ch(h,(O==null?void 0:O.embed.regexMatches)||[]);if(ba(H)&&Z){const re=h.includes("maps");if(oe&&!re){H.setSrc(oe);return}H.setPlatform(O==null?void 0:O.embed.platform),H.setId(h),re?H.setSrc(kb(h)):O!=null&&O.embed.transformMatch?H.setSrc(O==null?void 0:O.embed.transformMatch(O==null?void 0:O.matches)):H.setSrc(h)}},Q=(oe,H)=>{l.update(()=>{p.$setSelection(null);const Z=p.$getNodeByKey(c);return ba(Z)&&Z.setWidthAndHeight(oe,H),!0})},J=()=>{if(!Ch(h,(O==null?void 0:O.embed.regexMatches)||[])&&!(O!=null&&O.embed.platform)){b(!0);return}l.update(()=>{const H=p.$getNodeByKey(c);if(!H)return;ee();const Z=H.getNextSibling();Z&&p.$setSelection(Z.selectNext())}),x(!1),b(!1)},xe=oe=>{oe.preventDefault(),J()},we=()=>{x(!1),g(""),b(!1)},Te=()=>{N==null||N("block_deleted"),l.update(()=>{const oe=p.$getNodeByKey(c);oe&&oe.remove()})},We=()=>{N==null||N("block_duplicated"),l.update(()=>{const oe=p.$getNodeByKey(c);oe&&oe.insertAfter(Ir(oe))})},ie=()=>{r&&navigator.clipboard.writeText(r).then(()=>_(T("editor.embed.linkCopied")),()=>_(T("editor.embed.linkCopyFailed")))},X=()=>{r&&window.open(r,"_blank","noopener,noreferrer")},ae=()=>{const oe=!w;k(oe),l.update(()=>{const H=p.$getNodeByKey(c);ba(H)&&H.setShowPreview(oe)})},pe=()=>{M()},Ce=()=>{if(O!=null&&O.embed.transformMatch){const oe=O==null?void 0:O.embed.transformMatch(O==null?void 0:O.matches);return s.jsx(Zi,{src:oe,width:"100%",height:"400px",canonicalUrl:h,title:D==null?void 0:D.name,allow:"encrypted-media",saveUrl:ee,editor:l,updateMinHeight:q})}return D!=null&&D.component?D.component({saveUrl:ee,attrs:{href:h},matches:O==null?void 0:O.matches,isSelected:!1,isEditable:!1,embed:D,editor:l,updateMinHeight:q}):s.jsx("div",{})};m.useEffect(()=>{d&&x(!0)},[d]);const G=(D==null?void 0:D.placeholder)||T("editor.embed.placeholder"),he=D!=null&&D.name?`${T("editor.embed.addPrefix")} ${D.name}`:T("editor.embed.addEmbed");return r?w?O?s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:s.jsxs(I1,{editor:l,width:wb(i),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:Q,children:[s.jsx(v.Modal,{opened:L,onClose:S,fullScreen:!0,title:Y,zIndex:1e4,children:s.jsx(v.Box,{style:{height:"calc(100dvh - 2 * var(--mantine-spacing-xl))",minHeight:"60vh"},children:K?s.jsx("iframe",{sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:"100%",style:{border:0,minHeight:"calc(100dvh - 2 * var(--mantine-spacing-xl))"},title:Y,src:K,allowFullScreen:!0}):D!=null&&D.component?s.jsx(v.Box,{style:{height:"100%",minHeight:"60vh"},children:D.component({saveUrl:ee,attrs:{href:h},matches:O==null?void 0:O.matches,isSelected:!1,isEditable:!1,embed:D,editor:l,updateMinHeight:q})}):null})}),s.jsx("div",{className:"embed-block embed-block--preview",children:s.jsxs("div",{className:"embed-block__box",children:[s.jsx(B0,{icon:F,title:Y,actions:R?null:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:j,children:s.jsx($,{icon:qn,size:16,color:"currentColor"})}),s.jsx(Ac,{opened:I,onClose:B,hasPreview:!0,showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]}):s.jsxs(v.Flex,{gap:4,align:"center",children:[s.jsx(Jt,{className:"embed-action-btn",label:T("editor.embed.openPreview"),icon:rk,iconColor:"var(--mantine-color-gray-text)",onClick:pe}),s.jsx(vb,{currentAlignment:n||"left",onAlign:oe=>{l.update(()=>{const H=p.$getNodeByKey(c);ba(H)&&H.setFormat(oe)})},className:"embed-action-btn",targetLabel:T("editor.embed.alignment")}),s.jsx(Tf,{showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]})}),s.jsx("div",{className:"embed-block__preview-content",children:Ce()})]})})]})}):s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:s.jsx("div",{className:"embed-block embed-block--inline",children:s.jsxs("div",{className:"embed-inline",children:[s.jsxs("div",{className:"embed-inline__info",children:[s.jsx($,{icon:Af,size:20,color:"currentColor"}),s.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:r})]}),R?null:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:j,children:s.jsx($,{icon:qn,size:16,color:"currentColor"})}),s.jsx(Ac,{opened:I,onClose:B,hasPreview:!1,showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]}):s.jsx(Tf,{showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]})})}):s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:s.jsx("div",{className:"embed-block embed-block--inline",children:s.jsxs("div",{className:"embed-inline",children:[s.jsxs("div",{className:"embed-inline__info",children:[s.jsx($,{icon:Af,size:20,color:"currentColor"}),s.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:Y})]}),R?null:rt?s.jsxs(s.Fragment,{children:[s.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:j,children:s.jsx($,{icon:qn,size:16,color:"currentColor"})}),s.jsx(Ac,{opened:I,onClose:B,hasPreview:!0,showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]}):s.jsx(Tf,{showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDelete:Te})]})})}):s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:s.jsx("div",{className:"embed-block embed-block--empty",children:s.jsxs("div",{className:"embed-block__box",children:[s.jsx(B0,{icon:F,title:Y,actions:R?null:rt?s.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:j,children:s.jsx($,{icon:qn,size:16,color:"currentColor"})}):s.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[s.jsx(Mu,{label:T("editor.contextMenu.duplicate"),ariaLabel:"duplicate-embed-block",onClick:We}),s.jsx(Ci,{label:T("editor.actions.delete"),ariaLabel:"remove-embed-block",onClick:Te})]})}),rt?s.jsxs(s.Fragment,{children:[s.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(!0),children:s.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:he})}),s.jsx(FT,{opened:y,onClose:we,title:he,url:h,onUrlChange:g,onSubmit:J,onCancel:we,inputPlaceholder:G,invalidUrl:C,errorMessage:T("editor.validation.link")}),s.jsx(Ac,{opened:!R&&I,onClose:B,hasPreview:!1,showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:ie,onDuplicate:We,onDelete:Te})]}):s.jsxs(v.Popover,{width:400,position:"bottom-start",shadow:"md",opened:y,trapFocus:!0,onChange:oe=>{x(oe),oe||(g(""),b(!1))},withinPortal:!0,zIndex:Ts,children:[s.jsx(v.Popover.Target,{children:s.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(oe=>!oe),children:s.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:he})})}),s.jsx(v.Popover.Dropdown,{className:"embed-url-input",children:s.jsxs("form",{onSubmit:xe,children:[s.jsx(v.TextInput,{placeholder:G,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:h,onChange:oe=>g(oe.currentTarget.value),error:C?T("editor.validation.link"):void 0}),s.jsxs(v.Flex,{justify:"flex-end",mt:"xs",gap:8,children:[s.jsx(v.Button,{variant:"subtle",size:"xs",color:"gray",onClick:we,children:T("editor.cancel")}),s.jsx(v.Button,{type:"submit",size:"xs",disabled:!h,children:T("editor.embed.save")})]})]})})]})]})})})}function zT(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("src"),r=e.getAttribute("data-lexical-embedid")||"",o=parseFloat(e.getAttribute("data-exportwidth")??"100%"),i=parseFloat(e.getAttribute("height")??"100%"),l=e.getAttribute("data-exportheight");if(n&&typeof t=="string"){const c=D1(t,o,i,r,!1,n);return c.setMinHeight(parseFloat(l)),{node:c}}return{node:null}}class Xs extends eo.DecoratorBlockNode{constructor(t,r,o,i,l,c,d,f,h,g){super(o,c);Ne(this,"__platform");Ne(this,"__id");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__src");Ne(this,"__minHeight");Ne(this,"__showPreview");this.__platform=t,this.__id=r,this.__create=d||!1,this.__width=i||560,this.__height=l||315,this.__src=f,this.__minHeight=h||400,this.__showPreview=g!==!1}static getType(){return"embed"}static clone(t){return new Xs(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__create,t.__src,t.__minHeight,t.__showPreview)}static importJSON(t){const r=D1(t.src,t.width,t.height,t.embedId,t.create,t.platform,t.showPreview);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"embed",version:1,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,src:this.__src,showPreview:this.__showPreview}}createDOM(){const t=document.createElement("div");return t.className="editor-iframe",t}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-embedid");return r&&typeof o=="string"?{conversion:zT,priority:1}:null}}}updateDOM(){return!1}exportDOM(){const t=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=this.__src||"",o=y9.renderToString(s.jsx(_T,{platform:this.__platform,id:this.__id,src:r,height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:t})),i=document.createElement("div");return i.innerHTML=o,{element:i.firstChild}}decorate(t,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return s.jsx(WT,{editor:t,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,embedId:this.__id,embedSrc:this.__src??"",width:this.__width,height:this.__height,create:this.__create,showPreview:this.__showPreview})}setMinHeight(t){const r=this.getWritable();r.__minHeight=t}setPlatform(t){const r=this.getWritable();r.__platform=t}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){const r=this.getWritable();r.__src=t}getId(){return this.__id}setCreated(t){const r=this.getWritable();r.__create=t}setShowPreview(t){const r=this.getWritable();r.__showPreview=t}getShowPreview(){return this.__showPreview}getTextContent(){return BT(this.__platform,this.__id)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function D1(e,n,t,r,o,i,l){let c=i||"unknown";if(!i){const{platform:d}=Tb(e||"");c=d||"unknown"}return new Xs(c,r,void 0,n,t,void 0,o,e,void 0,l)}function ba(e){return e instanceof Xs}const _0=m.lazy(()=>Promise.resolve().then(()=>require("./layers.Brbunzgb.js")));function KT(e){const n=e.getAttribute("data-lexical-excalidraw-json"),t=e.firstChild.style.height||"0",r=e.firstChild.style.width||"0",o=e.style.justifyContent||"left",i=t==="inherit"?"inherit":parseInt(t,10),l=r==="inherit"?"inherit":parseInt(r,10);return n?{node:O1(n,l,i,o)}:null}class hi extends p.DecoratorNode{constructor(t="[]",r="inherit",o="inherit",i="left",l){super(l);Ne(this,"__data");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");this.__data=t,this.__width=r,this.__height=o,this.__alignment=i}static getType(){return"excalidraw"}static clone(t){return new hi(t.__data,t.__width,t.__height,t.__alignment,t.__key)}static importJSON(t){return new hi(t.data,t.width??"inherit",t.height??"inherit",t.alignment??"left")}exportJSON(){return{data:this.__data,height:this.__height==="inherit"?void 0:this.__height,type:"excalidraw",version:1,width:this.__width==="inherit"?void 0:this.__width,alignment:this.__alignment||"left"}}createDOM(t){const r=document.createElement("span"),i=t.theme.excalidraw;return i!==void 0&&(r.className=i),r}updateDOM(){return!1}static importDOM(){return{span:t=>t.className==="editor-excalidraw"?{conversion:KT,priority:2}:null}}exportDOM(t){const r=document.createElement("span"),o=document.createElement("span");r.style.display="inline-block",r.style.width="100%";const i=t.getElementByKey(this.getKey());if(i!==null){const l=i.querySelector(".excalidraw-svg");l!==null&&(o.innerHTML=l.outerHTML)}return o.style.width=this.__width==="inherit"?"inherit":`${parseInt(String(this.__width))}%`,o.style.height=this.__height==="inherit"?"inherit":`${parseInt(String(this.__height))}%`,r.setAttribute("data-lexical-excalidraw-json",this.__data),r.className="editor-excalidraw",r.style.justifyContent=this.__alignment,r.style.display="flex",r.appendChild(o),{element:r}}setData(t){const r=this.getWritable();r.__data=t}getWidth(){return this.getLatest().__width}setWidth(t){const r=this.getWritable();r.__width=t}getHeight(){return this.getLatest().__height}setHeight(t){const r=this.getWritable();r.__height=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setAlignment(t){const r=this.getWritable();r.__alignment=t}isInline(){return!1}decorate(){return _0?s.jsx(m.Suspense,{fallback:null,children:s.jsx(_0,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):s.jsx("div",{})}}function O1(e="[]",n="inherit",t="inherit",r="left"){return new hi(e,n,t,r)}function UT(e){return e instanceof hi}const Mb=p.createCommand("INSERT_EXCALIDRAW_COMMAND");function HT(e){m.useEffect(()=>{if(!e.hasNodes([hi]))throw new Error("ExcalidrawPlugin: ExcalidrawNode not registered on editor");return e.registerCommand(Mb,()=>(e.update(()=>{const n=O1(),t=en();t&&t.getParent()&&t.replace(n)}),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function YT({className:e,format:n,editor:t,nodeKey:r,formID:o}){const i={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return s.jsxs(ei.BlockWithAlignableContents,{className:i,format:n,nodeKey:r,children:[s.jsx(v.Tooltip,{label:"Удалить",children:s.jsx(v.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:l=>{l.stopPropagation(),t.update(()=>{if(p.$getSelection()){const c=p.$getNodeByKey(r);c&&c.remove()}return!1})},children:s.jsx(bn,{name:"trash"})})}),s.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${o}`,title:"Form",style:{border:"none"}})]})}function ZT(e){const n=e.getAttribute("data-form");return n?{node:P1(n)}:null}class ml extends eo.DecoratorBlockNode{constructor(t,r,o){super(r,o);Ne(this,"__id");this.__id=t}static getType(){return"form"}static clone(t){return new ml(t.__id,t.__format,t.__key)}static importJSON(t){const r=P1(t.formID);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const t=document.createElement("iframe");return t.setAttribute("data-form",this.__id),t.setAttribute("width","100%"),t.setAttribute("height","500"),t.setAttribute("src",`https://dudoc.io/f/${this.__id}`),t.setAttribute("title","Form"),{element:t}}static importDOM(){return{iframe:t=>t.hasAttribute("data-form")?{conversion:ZT,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(t,r){const o=r.theme.embedBlock||{},i={base:o.base||"",focus:o.focus||""};return s.jsx(YT,{className:i,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:t})}}function P1(e){return new ml(e)}class Zu extends p.TextNode{static getType(){return"keyword"}static clone(n){return new Zu(n.__text,n.__key)}static importJSON(n){const t=GT(n.text);return t.setFormat(n.format),t.setDetail(n.detail),t.setMode(n.mode),t.setStyle(n.style),t}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(n){const t=super.createDOM(n);return t.style.cursor="default",t.className="keyword",t}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function GT(e){return new Zu(e)}function VT({nodeKey:e}){const[n]=ot.useLexicalComposerContext(),[t,r,o]=x9.useLexicalNodeSelection(e),i=m.useCallback(l=>{if(l.preventDefault(),t&&p.$isNodeSelection(p.$getSelection())){const c=p.$getNodeByKey(e);if(QT(c))return c.remove(),!0}return!1},[t,e]);return m.useEffect(()=>ve.mergeRegister(n.registerCommand(p.CLICK_COMMAND,l=>{const c=n.getElementByKey(e);return l.target===c?(l.shiftKey||o(),r(!t),!0):!1},p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_DELETE_COMMAND,i,p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_BACKSPACE_COMMAND,i,p.COMMAND_PRIORITY_LOW)),[o,n,t,e,i,r]),m.useEffect(()=>{const l=n.getElementByKey(e);l!==null&&(l.className=t?"selected":"")},[n,t,e]),null}class gl extends p.DecoratorNode{static getType(){return"page-break"}static clone(n){return new gl(n.__key)}static importJSON(){return Lb()}static importDOM(){return{figure:n=>n.getAttribute("type")!==this.getType()?null:{conversion:qT,priority:p.COMMAND_PRIORITY_HIGH}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const n=document.createElement("figure");return n.style.pageBreakAfter="always",n.setAttribute("type",this.getType()),n}getTextContent(){return`
|
|
15
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return s.jsx(VT,{nodeKey:this.__key})}}function qT(){return{node:Lb()}}function Lb(){return new gl}function QT(e){return e instanceof gl}const JT="_inlineElement_tumj2_1",XT="_placeholderInline_tumj2_29",$T="_placeholderInlineIcon_tumj2_67",eM="_placeholderInlineText_tumj2_79",tM="_placeholderInlineDisabled_tumj2_87",nM="_main_tumj2_97",rM="_mainIcon_tumj2_105",Mi={inlineElement:JT,placeholderInline:XT,placeholderInlineIcon:$T,placeholderInlineText:eM,placeholderInlineDisabled:tM,main:nM,mainIcon:rM};function oM({page:e,inlineElement:n,placeholder:t}){const{t:r}=Ue.useTranslation(),{disable:o}=m.useContext(ft);if(t)return null;if(n&&!e.id)return s.jsxs(v.Box,{component:"span",className:`${Mi.placeholderInline} ${o?Mi.placeholderInlineDisabled:""}`,"data-page-link-anchor":"true",children:[s.jsx("span",{className:Mi.placeholderInlineIcon,children:s.jsx($,{icon:Ds,size:16})}),s.jsx(v.Text,{component:"span",className:Mi.placeholderInlineText,children:r("editor.menu.other.pageLink.placeholder")})]});if(n)return s.jsx(v.Box,{component:"span",className:Mi.inlineElement,"data-page-link-anchor":"true",children:s.jsx(uu,{page:e,withTooltip:!1,withHover:!0})});const i=l=>{e.onClick&&e.onClick(l)};return s.jsxs(v.Box,{component:"div",className:Mi.main,onClick:i,children:[s.jsx(uu,{page:{...e,onClick:void 0},withTooltip:!1}),s.jsx("span",{className:Mi.mainIcon,children:s.jsx($,{icon:ik,size:20})})]})}function Nb(e,n){var t;if(e)for(const r of e){if(r.id===n)return r;if((t=r.children)!=null&&t.length){const o=Nb(r.children,n);if(o)return o}}}function iM(e){const{pageId:n,title:t,icon:r,inlineElement:o,placeholder:i}=e,{linkablePages:l,pages:c}=m.useContext(ft),f=Nb(l??c,n)??c.find(g=>g.id===n),h={id:n,title:t||((f==null?void 0:f.title)??""),icon:r??(f==null?void 0:f.icon)??null,order:(f==null?void 0:f.order)??0,onClick:f==null?void 0:f.onClick};return s.jsx(oM,{page:h,inlineElement:o,placeholder:i})}function F0(e){const n=e.getAttribute("data-page-link-id");if(!n)return null;const t=e.getAttribute("data-page-link-title")??"",r=e.getAttribute("data-page-link-icon"),o=e.getAttribute("data-page-link-inline")==="true",i=n==="__placeholder__",l=e.getAttribute("data-page-link-placeholder")==="true";return{node:As({id:i?"":n,title:t,icon:r??null,inlineElement:o,placeholder:l})}}class No extends p.DecoratorNode{constructor(t,r,o,i,l=!1,c=!1,d){super(d);Ne(this,"__pageId");Ne(this,"__title");Ne(this,"__icon");Ne(this,"__order");Ne(this,"__inlineElement");Ne(this,"__placeholder");this.__pageId=t,this.__title=r,this.__icon=o,this.__order=i,this.__inlineElement=l,this.__placeholder=c}static getType(){return"pageLink"}static clone(t){return new No(t.__pageId,t.__title,t.__icon,t.__order,t.__inlineElement,t.__placeholder,t.__key)}getPageId(){return this.__pageId}getMeta(){return{title:this.__title,icon:this.__icon}}setMeta(t,r){const o=this.getWritable();o.__title=t,o.__icon=r}static importJSON(t){const{pageId:r,title:o,icon:i,order:l,inlineElement:c,placeholder:d,format:f}=t;return new No(r??"",o??"",i??null,l,c??!1,d??!1,f).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),type:"pageLink",pageId:this.__pageId,title:this.__title,icon:this.__icon,order:this.__order,inlineElement:this.__inlineElement,placeholder:this.__placeholder}}createDOM(t){if(this.__inlineElement){const o=document.createElement("span");return o.className="editor-page-link-inline",o}const r=document.createElement("div");return r.className="editor-page-link-wrap",r}updateDOM(t){return this.__inlineElement!==t.__inlineElement}getTextContent(){return this.__title}isInline(){return this.__inlineElement}decorate(t,r){return s.jsx(iM,{nodeKey:this.__key,pageId:this.__pageId,title:this.__title,icon:this.__icon,inlineElement:this.__inlineElement,placeholder:this.__placeholder})}exportDOM(){const t=document.createElement("a");return t.setAttribute("data-page-link","true"),t.setAttribute("data-page-link-id",this.__pageId||"__placeholder__"),t.setAttribute("data-page-link-title",this.__title),this.__icon&&t.setAttribute("data-page-link-icon",this.__icon),t.setAttribute("data-page-link-inline",this.__inlineElement?"true":"false"),t.setAttribute("data-page-link-placeholder",this.__placeholder?"true":"false"),t.setAttribute("href","#"),t.className="editor-page-link",t.textContent=this.__title||"",{element:t}}getInlineElement(){return this.__inlineElement}static importDOM(){return{div:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:F0,priority:2},a:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:F0,priority:2}}}}function As(e){return new No(e.id,e.title,e.icon,e.order,e.inlineElement??!1,e.placeholder??!1,void 0)}function W0(e){return e instanceof No}function sM(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-json");return{node:B1(n||"",t||"",!1)}}class Cl extends eo.DecoratorBlockNode{constructor(t,r,o,i,l){super(i,l);Ne(this,"__src");Ne(this,"__json");Ne(this,"__create");this.__src=t,this.__json=r,this.__create=o}static getType(){return"swagger"}static clone(t){return new Cl(t.__src,t.__json,!1,t.__format,t.__key)}static importJSON(t){const r=B1(t.src,t.json);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const t=document.createElement("span");return t.className="editor-swagger",t}setSrc(t){const r=this.getWritable();r.__src=t}setJSON(t){const r=this.getWritable();r.__json=t}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const t=document.createElement("span");return t.classList.add("editor-swagger"),t.setAttribute("data-src",this.getSrc()),t.setAttribute("data-json",this.getJSON()),{element:t}}static importDOM(){return{span:t=>t.classList.contains("editor-swagger")?{conversion:sM,priority:1}:null}}decorate(t,r){return(r.theme.embedBlock||{}).base,s.jsx("div",{})}}function B1(e,n,t){return new Cl(e,n,t)}function aM(e){const n=e.textContent;return n!==null?{node:jb(n)}:null}const lM="background-color: rgba(24, 119, 232, 0.2)";class Gu extends p.TextNode{constructor(t,r,o){super(r??t,o);Ne(this,"__mention");this.__mention=t}static getType(){return"mention"}static clone(t){return new Gu(t.__mention,t.__text,t.__key)}static importJSON(t){const r=jb(t.mentionName);return r.setTextContent(t.text),r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(t){const r=super.createDOM(t);return r.style.cssText=lM,r.className="mention",r}exportDOM(){const t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.textContent=this.__text,{element:t}}static importDOM(){return{span:t=>t.hasAttribute("data-lexical-mention")?{conversion:aM,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function jb(e){const n=new Gu(e);return n.setMode("segmented").toggleDirectionless(),p.$applyNodeReplacement(n)}const cM=[fn.HeadingNode,br,On,fn.QuoteNode,Vr,Zr,Qs,b9.HashtagNode,cn.AutoLinkNode,cn.LinkNode,OC.OverflowNode,gr,jo,Gu,Ku,Zu,Pi.HorizontalRuleNode,Xs,ml,vs.MarkNode,Yi,Po,fi,gl,Or,Mn,$r,_s,No,Ro,Vi,qr,Qr,Qn,to,Dn,Gt.CodeHighlightNode,Cl,Qi,ui,hi,Zs,...ub.map(e=>e)],uM=(e,n)=>{const t=e==="comment"?[br,On,cn.AutoLinkNode,cn.LinkNode,OC.OverflowNode,gr,jo,Qn,Gt.CodeHighlightNode,...ub.map(o=>o)]:cM,r=(n==null?void 0:n.map(o=>o.node).filter(Boolean))||[];return[...t,...r]};function dM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function fM(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(gr,o=>{if(!n)return;const i=o.getParent(),l=dM(o);if(l&&i&&!Ar(i)){const c=o.getNextSibling(),d=hl(o);c?c.insertBefore(d):i.append(d);return}if(!l&&i&&Ar(i)){const c=i;c.insertBefore(o),c.remove()}}),r=n?e.registerNodeTransform(Dn,o=>{const i=o.getChildren(),l=i.find(Pr);if(!l||i.some(qs))return;const d=Fo();l.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r)},[e])}const _1=p.createCommand("INSERT_IMAGE_COMMAND"),Rb=p.createCommand("UPLOAD_IMAGE_COMMAND");function hM(){const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ft);return o||fM(e),m.useEffect(()=>{if(!e.hasNodes([gr]))throw new Error("ImageOlugin: FileNode not registered on editor");const i=l=>{if(l.length>1){At.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(l[0].size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}let c="";e.update(()=>{const d=qa({src:"upload",create:!1,altText:""});zs(d),c=d.getKey()}),setTimeout(()=>{e.dispatchCommand(Rb,{files:l,targetNodeKey:c})},100)};return t!=null&&t.current&&(t.current.insertImages=i),e.registerCommand(_1,l=>{const c=qa(l);return zs(c),!1},p.COMMAND_PRIORITY_LOW)},[e]),null}const zs=e=>{var l;const n=en();if(p.$isRootNode(n))return n.append(e),!0;let t=n==null?void 0:n.getParent();const r=t instanceof p.ParagraphNode||t instanceof On||t instanceof br,o=n instanceof jo&&!!n.__text,i=p.$isElementNode(n)&&(n==null?void 0:n.getChildrenSize())>0;if(i&&(t=n),r&&o||r||i)return t.insertAfter(e),!0;if(n&&t)return n instanceof $r?((l=n.getPreviousSibling())==null||l.replace(e),!0):(n==null||n.replace(e),!0);if(!n)return p.$getRoot().append(e),!0},Ah=p.createCommand("INSERT_FILE_COMMAND"),Ib=p.createCommand("UPLOAD_FILE_COMMAND");function pM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function mM(){const[e]=ot.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ft);m.useEffect(()=>{if(!e.hasNodes([ui]))throw new Error("FilePlugin: FileNode not registered on editor");const t=e.hasNodes([Dn,to]),r=o=>{if(o.length>1){At.showMessageNotification({message:"editor.validation.doNotUploadMoreThanSingleFile"});return}e.dispatchCommand(Ah,"upload"),setTimeout(()=>{e.dispatchCommand(Ib,o)})};return n!=null&&n.current&&(n.current.insertFiles=r),ve.mergeRegister(e.registerNodeTransform(ui,o=>{if(!t)return;const i=o.getParent(),l=pM(o);if(l&&i&&!Ar(i)){const c=o.getNextSibling(),d=hl(o);c?c.insertBefore(d):i.append(d);return}if(!l&&i&&Ar(i)){const c=i;c.insertBefore(o),c.remove()}}),...t?[e.registerNodeTransform(Dn,o=>{const i=o.getChildren(),l=i.find(Io);if(!l||i.some(qs))return;const d=Fo();l.insertBefore(d)})]:[],e.registerCommand(Ah,o=>{const i=g1(o,"100%","100%","left",o!=="upload");return zs(i),!1},p.COMMAND_PRIORITY_LOW))},[e,n])}function gM(){return mM(),null}function bh(e){return e!==null&&typeof e=="object"&&typeof e.getType=="function"&&e.getType()==="video"&&"setId"in e&&typeof e.setId=="function"}function bc(e){if(e&&e.includes("unsplash"))return null;const n=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,t=e==null?void 0:e.match(n);return t&&(e.startsWith("/v1/attachments/")||e.includes(window.location.origin))?t[0]:null}function z0(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Pr(r)||Xr(r)?r.setSrc(t):bh(r)&&t.trim()&&r.setId(t)},{tag:"historic"})}const Lr=new Map;function CM({editor:e}){const{fetchDeleteMedia:n,fetchRestoreMedia:t,pageId:r}=m.useContext(ft);return m.useEffect(()=>()=>{Lr.clear()},[r]),m.useEffect(()=>{if(e)return e.getEditorState().read(()=>{var l;const o=((l=e.getDecorators)==null?void 0:l.call(e))||e._decorators,i=new Map;for(const[c,d]of Object.entries(o)){const f=d.props,h=d._self,C=Pr(h)||bh(h)||Io(h)||Xr(h);if(!f&&C)continue;const b=(f==null?void 0:f.src)||(f==null?void 0:f.videoID);if(b!=null&&b.trim()&&!(b!=null&&b.includes("unsplash"))&&bc(b)){const y=i.get(b)||[],x=y.includes(c)?y:[...y,c];i.set(b,x)}}for(const[c,d]of i.entries())Lr.set(c,{mediaNodeKeys:d})}),e.registerDecoratorListener(o=>{var c;const i=new Map;let l=!1;for(const[d,f]of Object.entries(o)){const h=f==null?void 0:f.props,g=f==null?void 0:f._self,C=bh(g)||Pr(g)||Io(g)||Xr(g);if(C&&((c=h==null?void 0:h.src)!=null&&c.includes("unsplash"))||!h&&C)continue;const b=h.src||h.videoID;if(!b)continue;if(b.trim()==="")return;const y=i.get(b)||[];!y.includes(d)&&bc(h==null?void 0:h.src)&&i.set(b,[...y,d])}for(const[d,f]of Lr.entries()){const h=i.get(d);if(Array.isArray(f.mediaNodeKeys)&&f.mediaNodeKeys.length>0&&(!h||h.length===0)){const g=bc(d);if(g&&n){const C=e.registerCommand(p.UNDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);n(g,()=>{C()}),Lr.set(d,{mediaNodeKeys:[]})}}}for(const[d]of Lr.entries())i.has(d)||Lr.set(d,{mediaNodeKeys:[]});if(Lr.size>0)for(const[d,f]of i.entries()){const h=Lr.get(d);if(h&&Array.isArray(h.mediaNodeKeys)&&h.mediaNodeKeys.length===0&&f.length>0){z0(e,f[0]," "),l=!0;const g=bc(d);if(Lr.set(d,{mediaNodeKeys:f}),g&&t){const C=e.registerCommand(p.REDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);t(g,()=>{C(),z0(e,f[0],d)})}}}if(!l)for(const[d,f]of i.entries())Lr.set(d,{mediaNodeKeys:f})})},[e,t,n]),Lr}const K0=window.location.hostname,AM=K0!=="playground.lexical.dev"&&K0!=="lexical-playground.vercel.app",bM=new URLSearchParams(window.location.search),U0=e=>bM.get(e)==="true",{isShowTreeView:yM,isMaxLength:xM}={isShowTreeView:U0("showTreeView"),isMaxLength:U0("isMaxLength")},tl={disableBeforeInput:!1,emptyEditor:AM,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:xM,isRichText:!0,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:yM,tableCellBackgroundColor:!0,tableCellMerge:!0},H0={...tl},Db=m.createContext({setOption:(e,n)=>{},settings:tl});function vM(){const e={},n=new URLSearchParams(window.location.search);for(const t of Object.keys(tl)){const r=n.get(t);r!==null&&(e[t]=r==="true")}return e}const wM=({children:e})=>{const[n,t]=m.useState(()=>({...tl,...vM()})),r=m.useCallback((i,l)=>{t(c=>({...c,[i]:l})),tl[i]===l?Y0(i,null):Y0(i,l)},[]),o=m.useMemo(()=>({setOption:r,settings:n}),[r,n]);return s.jsx(Db.Provider,{value:o,children:e})},F1=()=>m.useContext(Db);function Y0(e,n){const t=new URL(window.location.href),r=new URLSearchParams(t.search);n!==null?r.has(e)?r.set(e,String(n)):r.append(e,String(n)):r.has(e)&&r.delete(e),t.search=r.toString(),window.history.pushState(null,"",t.toString())}const Ob=m.createContext({}),kM=({children:e})=>{const n=m.useMemo(()=>({historyState:Vh.createEmptyHistoryState()}),[]);return s.jsx(Ob.Provider,{value:n,children:e})},W1=()=>m.useContext(Ob),ni="data-block-id",Bo=p.createState("blockId",{parse:e=>typeof e=="string"&&e.length>0?e:null});function SM(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)})}function EM(e){return e.replace(/-/g,"")}function TM(e){return/^[0-9a-f]{32}$/i.test(e)?`${e.slice(0,8)}-${e.slice(8,12)}-${e.slice(12,16)}-${e.slice(16,20)}-${e.slice(20)}`:null}function MM(e){const n=new URL(window.location.href);return n.hash=EM(e),n.toString()}function LM(e){let n=e.parentElement;for(;n&&n!==document.body;){const r=getComputedStyle(n).overflowY;if((r==="auto"||r==="scroll")&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return document.documentElement}function Z0(e){const n=e.getBoundingClientRect(),t=LM(e);if(t!==document.documentElement){const r=t.getBoundingClientRect(),i=n.top-r.top+t.scrollTop-t.clientHeight/2+n.height/2;t.scrollTo({top:Math.max(0,i),behavior:"auto"})}else{const o=n.top+window.scrollY-window.innerHeight/2+n.height/2;window.scrollTo({top:Math.max(0,o),behavior:"auto"})}}function NM(e){if(navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return navigator.clipboard.writeText(e).then(()=>!0,()=>!1);try{const n=document.createElement("textarea");return n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),Promise.resolve(!0)}catch{return Promise.resolve(!1)}}function Pb(e){if(jt(e))return e;const n=p.$getRoot().getKey();let t=e,r=t.getParent();for(;r&&r.getKey()!==n;){if(t=r,jt(t))return t;r=t.getParent()}return t}function jM(e,n){return n?Bb(e,[n]):Promise.resolve(null)}function Bb(e,n){if(n.length===0)return Promise.resolve(null);const t=[];if(e.update(()=>{const o=new Set;for(const i of n){const l=p.$getNodeByKey(i.getKey());if(!l)continue;const c=Pb(l),d=c.getKey();if(o.has(d))continue;o.add(d);let f=p.$getState(c,Bo,"direct");f||(f=SM(),p.$setState(c,Bo,f)),t.push(f)}}),t.length===0)return Promise.resolve(null);const r=t.map(MM).join(`
|
|
16
|
-
`);return NM(r).then(o=>o?r:null)}function G0(e,n){const t=document.createElement("div");t.innerHTML=n;let r=!1;return e.getEditorState().read(()=>{p.$getRoot().getChildren().forEach((o,i)=>{const l=t.children[i];if(!l)return;const c=p.$getState(o,Bo);c&&(l.setAttribute(ni,c),r=!0),gt(o)&&o.getChildren().forEach((d,f)=>{const h=l.children[f];if(!h)return;const g=p.$getState(d,Bo);g&&(h.setAttribute(ni,g),r=!0)})})}),r?t.innerHTML:n}function RM(e,n){const t=n.body;if(!t||t.children.length===0)return;const r=()=>{const o=e.getRootElement();o&&e.update(()=>{Array.from(t.children).forEach((i,l)=>{const c=o.children[l];c&&(V0(i,c),Array.from(i.children).forEach((d,f)=>{const h=c.children[f];h&&V0(d,h)}))})})};requestAnimationFrame(()=>requestAnimationFrame(r))}function V0(e,n){const t=e.getAttribute(ni);if(!t)return;const r=p.$getNearestNodeFromDOMNode(n);if(!r)return;const o=Pb(r);p.$getState(o,Bo,"direct")!==t&&p.$setState(o,Bo,t)}const IM=5e3;function DM(){const e=[];for(const n of p.$getRoot().getChildren()){const t=p.$getState(n,Bo);if(t&&e.push({key:n.getKey(),id:t}),!!gt(n))for(const r of n.getChildren()){const o=p.$getState(r,Bo);o&&e.push({key:r.getKey(),id:o})}}return e}function OM(e,n){const t=e.getRootElement();if(!t)return null;const r=TM(n);return r?t.querySelector(`[${ni}="${r}"]`):null}function q0(e,n,t){const r=e.getElementByKey(n);r&&(t?r.getAttribute(ni)!==t&&r.setAttribute(ni,t):r.hasAttribute(ni)&&r.removeAttribute(ni))}function PM(){const[e]=ot.useLexicalComposerContext();m.useEffect(()=>{let n=!1,t=window.location.hash.slice(1)||null,r=null,o;const i=()=>{const b=[];e.getEditorState().read(()=>{b.push(...DM())});for(const{key:y,id:x}of b)q0(e,y,x)},l=b=>{const y=[];e.getEditorState().read(()=>{for(const x of b){const w=p.$getNodeByKey(x);y.push({key:x,id:w?p.$getState(w,Bo):null})}});for(const{key:x,id:w}of y)q0(e,x,w)},c=b=>{Wu(e,{block:b,isCreateEventListener:!0})},d=()=>{r==null||r.disconnect(),r=null,o!==void 0&&(clearTimeout(o),o=void 0)},f=()=>{if(n||!t)return!1;const b=OM(e,t);return b?(n=!0,t=null,d(),requestAnimationFrame(()=>{Z0(b),requestAnimationFrame(()=>{Z0(b),c(b)})}),!0):!1},h=()=>{if(d(),!t)return;const b=e.getRootElement();b&&(r=new MutationObserver(()=>{i(),f()}),r.observe(b,{childList:!0,subtree:!0}),o=window.setTimeout(d,IM))};i(),f()||h();const g=e.registerUpdateListener(({dirtyElements:b})=>{b.size!==0&&(l(b.keys()),t&&f())}),C=()=>{n=!1,t=window.location.hash.slice(1)||null,f()||h()};return window.addEventListener("hashchange",C),()=>{d(),g(),window.removeEventListener("hashchange",C)}},[e])}function BM(){return PM(),null}const _M=[".toolbar",'[role="menu"]',".mantine-Popover-dropdown",".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],FM=({onBlur:e})=>{const[n]=ot.useLexicalComposerContext();return m.useEffect(()=>{const t=n.getRootElement();if(!t)return;const r=(i,l,c)=>i>=c.left&&i<=c.right&&l>=c.top&&l<=c.bottom,o=i=>{const l=t.getBoundingClientRect(),c=i.target,d=c instanceof Element&&_M.some(y=>c.closest(y)),{clientX:f,clientY:h}=i,g=r(f,h,l),C=document.activeElement;!t.contains(C)&&!g&&!d&&n.update(()=>{var y;p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),(y=n._rootElement)==null||y.classList.remove("focused"),e&&(e==null||e(n.getEditorState(),n))})};return document.addEventListener("pointerdown",o,!0),()=>{document.removeEventListener("pointerdown",o,!0)}},[n,e]),null};function WM(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>Gt.registerCodeHighlighting(e),[e]),null}function zM({isLoading:e}){const[n]=ot.useLexicalComposerContext(),{disable:t}=m.useContext(ft);return m.useEffect(()=>{t||n.update(()=>{p.$getRoot().getFirstChild()&&setTimeout(()=>{var i;(i=n._rootElement)==null||i.setAttribute("contenteditable","true")},0)})},[n,e,t]),null}function z1(e){const n=e.getParent();if(!jr(n)||!p.$isParagraphNode(e))return!1;let t=0;for(const r of n.getChildren())p.$isParagraphNode(r)&&t++;return t===1}function _b(e,n,t){const r=e.getParent();if(!di(r)||!p.$isParagraphNode(e))return t||n("editor.placeholder");const o=r.getChildren();return o.length===1&&o[0].getKey()===e.getKey()?n("editor.placeholders.collapsibleContent"):t||n("editor.placeholder")}const Fb=(e,n,t)=>{if(ve.$findMatchingParent(e,St)||ve.$findMatchingParent(e,Lo)||Lo(e))return;const i=p.$isParagraphNode(e)?e:p.$isParagraphNode(e.getParent())?e.getParent():null;if(i){const l=i.getParent();return di(l)?_b(i,n,t):z1(i)?n("editor.placeholders.layoutAddContent"):t||n("editor.placeholder")}},Mf="node-placeholder",Q0=new WeakMap,KM=({selection:e,editor:n,t,customPlaceholder:r})=>{var f,h;const o=e.anchor,i=Q0.get(n);if(i&&i!==o.key){const g=n.getElementByKey(i);(f=g==null?void 0:g.classList)==null||f.remove(Mf),g==null||g.removeAttribute("data-placeholder")}const l=Fb(o.getNode(),t,r),c=o.getNode().getTextContentSize(),d=n.getElementByKey(o.key);l&&c===0?(d==null||d.classList.add(Mf),d==null||d.setAttribute("data-placeholder",l)):d&&((h=d==null?void 0:d.classList)==null||h.remove(Mf),d==null||d.removeAttribute("data-placeholder")),Q0.set(n,o.key)},UM="node-placeholder",J0=(e,n,t)=>{e.getEditorState().read(()=>{const r=p.$getSelection();if(p.$isRangeSelection(r)){KM({selection:r,editor:e,t:n,customPlaceholder:t});return}const o=p.$getRoot();if(o.getChildrenSize()!==1)return;const i=o.getFirstChild();if(!i||!p.$isParagraphNode(i)||i.getTextContentSize()!==0)return;const l=Fb(i,n,t);if(!l)return;const c=e.getElementByKey(i.getKey());c&&(c.classList.add(UM),c.setAttribute("data-placeholder",l))})},yc="node-placeholder";function HM(e,n){if(fn.$isHeadingNode(e)){const t=e.getTag();let r=n("editor.heading.name");switch(t){case"h1":r+=" 1";break;case"h2":r+=" 2";break;case"h3":r+=" 3";break;case"h4":r+=" 4";break;case"h5":r+=" 5";break;case"h6":r+=" 6";break}return r}if(fn.$isQuoteNode(e))return n("editor.placeholders.quote");if(jt(e)){const t=e.getParent();if(gt(t))return t.getListType()==="check"?n("editor.placeholders.todo"):n("editor.placeholders.list")}if(p.$isParagraphNode(e)){const t=e.getParent();if(Lo(t))return n("editor.placeholders.toggle");if(di(t))return _b(e,n);if(z1(e))return n("editor.placeholders.layoutAddContent")}}function X0(e,n){e.getEditorState().read(()=>{const t=r=>{const o=HM(r,n),i=n("editor.placeholders.layoutAddContent");if(p.$isParagraphNode(r)){const l=r.getParent();if(jr(l)&&!z1(r)&&r.getTextContentSize()===0){const c=e.getElementByKey(r.getKey());c&&c.classList.contains(yc)&&c.getAttribute("data-placeholder")===i&&(c.classList.remove(yc),c.removeAttribute("data-placeholder"))}}if(o){const l=e.getElementByKey(r.getKey());if(!l)return;r.getTextContentSize()===0?(l.classList.add(yc),l.setAttribute("data-placeholder",o)):(l.classList.remove(yc),l.removeAttribute("data-placeholder"))}if(p.$isElementNode(r))for(const l of r.getChildren())t(l)};for(const r of p.$getRoot().getChildren())t(r)})}const YM=()=>{const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),{placeholder:t,disable:r}=m.useContext(ft);return m.useEffect(()=>{const o=setTimeout(()=>{r||J0(e,n,t),X0(e,n)}),i=e.registerUpdateListener(()=>{r||J0(e,n,t),X0(e,n)});return()=>{clearTimeout(o),i()}},[e,t,r,n]),null},Lf=700,ZM=3e3,$0=15,GM=55,VM=150,qM=45,QM=5,JM=200,XM=3,$M=500,eL=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches,tL=e=>{if(e<Lf)return 0;const n=Math.min(1,(e-Lf)/(ZM-Lf));return $0+(GM-$0)*n};function nL(){const[e]=ot.useLexicalComposerContext();m.useEffect(()=>{if(!eL())return;let n=0,t=0,r=0,o=0,i=null,l=0,c=0,d=!1;const f=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},h=()=>{f(),n=0,t=0,r=0,l=0},g=()=>{const T=performance.now();if(T-t>VM){f();return}const R=T-n,N=tL(R);if(N>0){const L=N>=qM,M=L?1e3/(N/QM):1e3/N;if(T-r>=M){r=T;let S=!1;if(e.update(()=>{const I=p.$getSelection();if(!p.$isRangeSelection(I)||!I.isCollapsed())return;const j=p.$getRoot(),B=j.getTextContent().length;B!==0&&(L?I.deleteWord(!0):I.deleteCharacter(!0),S=j.getTextContent().length<B)}),S)l=0;else if(l+=1,l>=XM){c=T+$M,h();return}}}i=requestAnimationFrame(g)},C=T=>{if(T.key!=="Backspace"||d||!e.isEditable())return;const R=e.getRootElement(),N=T.target;if(!R||!N||!R.contains(N))return;const L=performance.now(),M=o?L-o:1/0,S=T.repeat||M<JM;if(o=L,!S){h(),n=L,t=L,r=L;return}n===0&&(n=L,r=L),!(L<c)&&(t=L,i===null&&(i=requestAnimationFrame(g)),T.preventDefault())},b=T=>{T.inputType==="deleteContentBackward"&&i!==null&&(performance.now()<c||T.preventDefault())},y=()=>{d=!0,h()},x=()=>{d=!1},w=()=>h(),k=e.getRootElement();return document.addEventListener("keydown",C,!0),k==null||k.addEventListener("beforeinput",b),k==null||k.addEventListener("compositionstart",y),k==null||k.addEventListener("compositionend",x),k==null||k.addEventListener("blur",w),()=>{h(),document.removeEventListener("keydown",C,!0),k==null||k.removeEventListener("beforeinput",b),k==null||k.removeEventListener("compositionstart",y),k==null||k.removeEventListener("compositionend",x),k==null||k.removeEventListener("blur",w)}},[e])}function rL(){return nL(),null}const oL=({onFocus:e})=>{const[n]=ot.useLexicalComposerContext();return m.useEffect(()=>{n.registerCommand(p.FOCUS_COMMAND,t=>{var r;return(r=n._rootElement)==null||r.classList.add("focused"),!t.relatedTarget&&e&&e(),!1},p.COMMAND_PRIORITY_LOW)},[]),null};function iL(e){m.useEffect(()=>{if(e)return e.registerCommand(p.KEY_DOWN_COMMAND,n=>{if(!(n.ctrlKey||n.metaKey))return!1;switch(n.code){case"KeyC":return n.shiftKey||n.altKey?!1:(n.preventDefault(),e.dispatchCommand(p.COPY_COMMAND,n),!0);case"KeyX":return n.shiftKey||n.altKey?!1:(n.preventDefault(),e.dispatchCommand(p.CUT_COMMAND,n),!0);case"KeyZ":return n.preventDefault(),n.shiftKey?e.dispatchCommand(p.REDO_COMMAND,void 0):e.dispatchCommand(p.UNDO_COMMAND,void 0),!0;case"KeyY":return n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0;default:return!1}},p.COMMAND_PRIORITY_CRITICAL)},[e])}const sL=()=>{const[e]=ot.useLexicalComposerContext();return iL(e),null};function aL(){return s.jsx(L9.LinkPlugin,{attributes:{target:null,rel:"noreferrer"}})}function lL(e){m.useEffect(()=>pS(e),[e])}function cL(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([br,On]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),lL(e),null}const uL=" ";function dL(e){const n=e.getNodes();return n.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(n.map(t=>p.$isElementNode(t)?t:t.getParentOrThrow()))}function fL(e){const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.focus.getNode();if(!(gt(t)||jt(t)||jt(t.getParent())))return n.insertText(uL),!1;const o=dL(n);let i=0;for(const l of o)if(gt(l))i=Math.max(dh(l)+1,i);else if(jt(l)){const c=l.getParent();if(!gt(c))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(dh(c)+1,i)}return i<=e}function hL({maxDepth:e}){const[n]=ot.useLexicalComposerContext();return m.useEffect(()=>ve.mergeRegister(n.registerCommand(p.INDENT_CONTENT_COMMAND,()=>!fL(e??7),p.COMMAND_PRIORITY_CRITICAL)),[n,e]),null}const Wb=4,pL={dependencies:[Pi.HorizontalRuleNode],export:e=>Pi.$isHorizontalRuleNode(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,n,t,r)=>{const o=Pi.$createHorizontalRuleNode();r||e.getNextSibling()!=null?e.replace(o):e.insertBefore(o),o.selectNext()},type:"element"},mL={dependencies:[gr],export:e=>Pr(e)?`})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(e,n)=>{const[,t,r]=n,o=qa({altText:t,maxWidth:800,src:r});e.replace(o)},trigger:")",type:"text-match"};function gL(e){const n=e.match(/\t/g),t=e.match(/ /g);let r=0;return n&&(r+=n.length),t&&(r+=Math.floor(t.length/Wb)),r}const zb=e=>(n,t,r)=>{const o=n.getPreviousSibling(),i=n.getNextSibling(),l=_n(e==="check"?r[3]==="x":void 0);if(gt(i)&&i.getListType()===e){const d=i.getFirstChild();d!==null?d.insertBefore(l):i.append(l),n.remove()}else if(gt(o)&&o.getListType()===e)o.append(l),n.remove();else{const d=hn(e,e==="number"?Number(r[2]):void 0);d.append(l),n.replace(d)}l.append(...t),l.select(0,0);const c=gL(r[1]);c&&l.setIndent(c)},K1=(e,n,t)=>{const r=[],o=e.getChildren();let i=0;for(const l of o)if(jt(l)){if(l.getChildrenSize()===1){const h=l.getFirstChild();if(gt(h)){r.push(K1(h,n,t+1));continue}}const c=" ".repeat(t*Wb),d=e.getListType(),f=d==="number"?`${e.getStart()+i}. `:d==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(c+f+n(l)),i++}return r.join(`
|
|
17
|
-
`)},CL=/^(\s*)(\d{1,})\.\s/,AL=/^(\s*)[-*+]\s/,bL={dependencies:[br,On],export:(e,n)=>gt(e)?K1(e,n,0):null,regExp:CL,replace:zb("number"),type:"element"},yL={dependencies:[br,On],export:(e,n)=>gt(e)?K1(e,n,0):null,regExp:AL,replace:zb("bullet"),type:"element"},Kb=/^(?:\|)(.+)(?:\|)\s?$/,xL=/^(\| ?:?-*:? ?)+\|\s?$/,vL={dependencies:[jn.TableNode,jn.TableRowNode,jn.TableCellNode],export:e=>{if(!jn.$isTableNode(e))return null;const n=[];for(const t of e.getChildren()){const r=[];if(!jn.$isTableRowNode(t))continue;let o=!1;for(const i of t.getChildren())jn.$isTableCellNode(i)&&(r.push(ao.$convertToMarkdownString(nl,i).replace(/\n/g,"\\n")),i.__headerState===jn.TableCellHeaderStates.ROW&&(o=!0));n.push(`| ${r.join(" | ")} |`),o&&n.push(`| ${r.map(i=>"---").join(" | ")} |`)}return n.join(`
|
|
18
|
-
`)},regExp:Kb,replace:(e,n,t)=>{if(xL.test(t[0])){const f=e.getPreviousSibling();if(!f||!jn.$isTableNode(f))return;const h=f.getChildren(),g=h[h.length-1];if(!g||!jn.$isTableRowNode(g))return;g.getChildren().forEach(C=>{jn.$isTableCellNode(C)&&C.setHeaderStyles(jn.TableCellHeaderStates.ROW,jn.TableCellHeaderStates.ROW)}),e.remove();return}const r=e2(t[0]);if(r==null)return;const o=[r];let i=e.getPreviousSibling(),l=r.length;for(;i&&!(!p.$isParagraphNode(i)||i.getChildrenSize()!==1);){const f=i.getFirstChild();if(!In(f))break;const h=e2(f.getTextContent());if(h==null)break;l=Math.max(l,h.length),o.unshift(h);const g=i.getPreviousSibling();i.remove(),i=g}const c=jn.$createTableNode();for(const f of o){const h=jn.$createTableRowNode();c.append(h);for(let g=0;g<l;g++)h.append(g<f.length?f[g]:Ub(""))}const d=e.getPreviousSibling();jn.$isTableNode(d)&&wL(d)===l?(d.append(...c.getChildren()),e.remove()):e.replace(c),c.selectEnd()},type:"element"};function wL(e){const n=e.getFirstChild();return jn.$isTableRowNode(n)?n.getChildrenSize():0}const Ub=e=>{e=e.replace(/\\n/g,`
|
|
19
|
-
`);const n=jn.$createTableCellNode(jn.TableCellHeaderStates.NO_STATUS);return ao.$convertFromMarkdownString(e,nl,n),n},e2=e=>{const n=e.match(Kb);return!n||!n[1]?null:n[1].split("|").map(t=>Ub(t))},nl=[vL,pL,mL,ao.CHECK_LIST,ao.HEADING,ao.QUOTE,yL,bL,...ao.MULTILINE_ELEMENT_TRANSFORMERS,...ao.TEXT_FORMAT_TRANSFORMERS,...ao.TEXT_MATCH_TRANSFORMERS];function kL(){return s.jsx(N9.MarkdownShortcutPlugin,{transformers:nl})}function SL({maxLength:e}){const[n]=ot.useLexicalComposerContext();return m.useEffect(()=>{let t=null;return n.registerNodeTransform(p.RootNode,r=>{const o=p.$getSelection();if(!p.$isRangeSelection(o)||!o.isCollapsed())return;const i=n.getEditorState(),l=i.read(()=>r.getTextContentSize()),c=r.getTextContentSize();if(l!==c){const d=c-e,f=o.anchor;d>0&&(l===e&&t!==i?(t=i,ve.$restoreEditorState(n,i)):dn.trimTextContentFromAnchor(n,f,d))}})},[n,e]),null}const Nf=8,jf=72,yh=15,EL={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${yh}px`,fontSizeInputValue:`${yh}`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!0,isUppercase:!0,isCapitalize:!0,rootType:"root",listStartNumber:null},Hb=m.createContext(void 0),TL=({children:e})=>{const[n,t]=m.useState(EL),r=n.fontSize,o=m.useCallback((l,c)=>{t(d=>({...d,[l]:c}))},[]);m.useEffect(()=>{o("fontSizeInputValue",r.slice(0,-2))},[r,o]);const i=m.useMemo(()=>({toolbarState:n,updateToolbarState:o}),[n,o]);return s.jsx(Hb.Provider,{value:i,children:e})},ML=()=>{const e=m.useContext(Hb);if(e===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return e};function ps(e,n){if(e=e.trim(),e.startsWith("rgb"))return e.replace("rgb","rgba").replace(")",`, ${n})`);const t=e.replace("#",""),r=parseInt(t,16),o=r>>16&255,i=r>>8&255,l=r&255;return`rgba(${o}, ${i}, ${l}, ${n})`}const Vu=p.createCommand("INSERT_INLINE_COMMAND");function LL(){var L;const[e]=ot.useLexicalComposerContext(),[n,t]=m.useState([]),[r,o]=m.useState(!1),i=m.useRef(new Map);m.useEffect(()=>{if(!(rt||!r))return Vs(),()=>Ki()},[r]);const l=(L=m.useContext(ft))==null?void 0:L.commentController,{onHighlight:c,activeCommentId:d,actions:f,editorComments:h}=l??{onHighlight:void 0,activeCommentId:{ids:[],source:null},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};m.useEffect(()=>{const M=document.documentElement,S=getComputedStyle(M).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5";M.style.setProperty("--comment-selection-color-level1",ps(S,.12)),M.style.setProperty("--comment-selection-color-level2",ps(S,.24)),M.style.setProperty("--comment-selection-color-level3",ps(S,.4)),M.style.setProperty("--comment-selection-color-selected1",ps(S,.28)),M.style.setProperty("--comment-selection-color-selected2",ps(S,.36)),M.style.setProperty("--comment-selection-color-selected3",ps(S,.48))},[]),m.useEffect(()=>{const S=((d==null?void 0:d.ids)??[])[0];!S||d.source==="editor"||e.update(()=>{const I=g.get(S);if(!I)return;const j=Array.from(I).filter(_=>!!p.$getNodeByKey(_)),B=p.$getNodeByKey(j[0]);B&&Qo(B)&&B.selectStart()})},[d==null?void 0:d.ids,d==null?void 0:d.source]);const g=m.useMemo(()=>new Map,[]),C=m.useRef(h),b=m.useRef(null);m.useEffect(()=>{C.current=h},[h]);function y(M,S){e.update(()=>{const I=g.get(M);if(I)for(const j of I){const B=p.$getNodeByKey(j);Qo(B)&&B.resolveThreat(S)}})}function x(M){const S=g.get(M);!S||S.size===0||(e.update(()=>{for(const I of S){const j=p.$getNodeByKey(I);Qo(j)&&(j.deleteID(M),j.getIDs().length===0&&vs.$unwrapMarkNode(j))}}),g.delete(M))}function w(M,S){S&&x(M)}m.useEffect(()=>{if(h){for(const[M,S]of h.entries()){const I=i.current.get(M);I&&(I.resolution!==S.resolution&&y(M,S.resolution),I.deleted!==S.deleted&&w(M,S.deleted))}i.current=new Map(h)}},[h]),m.useEffect(()=>{const M=[];if(n.length!==0){for(let S=0;S<n.length;S++){const I=n[S],j=g.get(I);if(j!==void 0)for(const B of j){const _=e.getElementByKey(B);_!==null&&(_.classList.add("selected"),M.push(_))}}return()=>{for(let S=0;S<M.length;S++)M[S].classList.remove("selected")}}},[n,e,g]),m.useEffect(()=>{const M=new Map;return ve.mergeRegister(ve.registerNestedElementResolver(e,qr,S=>cb(S.getIDs()),(S,I)=>{S.getIDs().forEach(B=>{I.addID(B)})}),e.registerMutationListener(qr,S=>{e.getEditorState().read(()=>{for(const[I,j]of S){const B=p.$getNodeByKey(I);let _=[];j==="created"&&Qo(B)&&B.getIDs().forEach(O=>{var K;const W=(K=C.current)==null?void 0:K.get(O);W!=null&&W.deleted&&(f==null||f.restore(O))}),j==="destroyed"?_=M.get(I)||[]:Qo(B)&&(_=B.getIDs());for(let D=0;D<_.length;D++){const O=_[D];let W=g.get(O);if(M.set(I,_),j==="destroyed"){let K=!1;for(const[F,Y]of S)if(Y==="created"){const q=p.$getNodeByKey(F);Qo(q)&&q.getIDs().some(ee=>_.includes(ee))&&(K=!0)}K||W!==void 0&&(W.delete(I),W.size===0&&(g.delete(O),f==null||f.delete(O)))}else W===void 0&&(W=new Set,g.set(O,W)),W.has(I)||W.add(I)}}})},{skipInitialization:!1}),e.registerUpdateListener(({editorState:S})=>{S.read(()=>{const I=p.$getSelection();let j=!1;if(p.$isRangeSelection(I)){const B=I.anchor.getNode();if(In(B)){const _=vs.$getMarkIDs(B,I.anchor.offset);_!==null&&(c==null||c(_,"editor"),t(()=>_),j=!0)}}j||(c==null||c(null,"editor"),t(B=>B.length===0?B:[]))})}),e.registerCommand(Vu,()=>{e.update(()=>{const I=p.$getSelection();p.$isRangeSelection(I)&&(b.current=I.clone())});const S=window.getSelection();return S!==null&&S.removeAllRanges(),o(!0),!0},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.COPY_COMMAND,S=>{if(!(S!=null&&S.clipboardData))return!1;S.preventDefault();const I=p.$getSelection();if(!I||!I.getNodes().some(D=>Qo(D)||Qo(D.getParent())))return!1;const _=I.getTextContent();return S.clipboardData.setData("text/plain",_),!0},p.COMMAND_PRIORITY_LOW))},[e,g]);const k=m.useCallback((M,S,I)=>{e.getEditorState().read(()=>{const j=b.current??p.$getSelection();if(p.$isRangeSelection(j)){S.current=j.clone();const B=j.anchor,_=j.focus,D=dn.createDOMRange(e,B.getNode(),B.offset,_.getNode(),_.offset);if(D!==null&&M!==null){const{left:O,bottom:W,top:K,width:F}=D.getBoundingClientRect(),Y=dn.createRectsFromDOMRange(e,D),q=M.offsetHeight||200,ee=window.pageYOffset||document.documentElement.scrollTop,Q=window.innerHeight-W>q+20;let J=Y.length===1?O+F/2-125:O-125;J<10&&(J=10),M.style.left=`${J}px`,M.style.top=Q?`${W+10+ee}px`:`${K-q-55+ee}px`;const xe=Y.length,{container:we,elements:Te}=I,We=Te.length;for(let ie=0;ie<xe;ie++){const X=Y[ie];let ae=Te[ie];ae===void 0&&(ae=document.createElement("span"),Te[ie]=ae,we.appendChild(ae));const Ce=document.body.scrollHeight>window.innerHeight?0:8;ae.style.cssText=`
|
|
20
|
-
position:absolute;
|
|
21
|
-
top:${X.top+ee}px;
|
|
22
|
-
left:${X.left+Ce}px;
|
|
23
|
-
height:${X.height}px;
|
|
24
|
-
width:${X.width}px;
|
|
25
|
-
background-color: var(--comment-selection-color, rgba(76, 110, 245, 0.35));
|
|
26
|
-
pointer-events:none;
|
|
27
|
-
z-index:5;
|
|
28
|
-
`}for(let ie=We-1;ie>=xe;ie--){const X=Te[ie];we.removeChild(X),Te.pop()}}}})},[e]);function T(M){e.update(()=>{const S=b.current??p.$getSelection();if(!p.$isRangeSelection(S))return;const I=S.isBackward();vs.$wrapSelectionInMarkNode(S,I,M,j=>new qr(j,null)),b.current=null})}function R(M){return async S=>{if(S.mode!=="create")return;let I="";e.getEditorState().read(()=>{const B=b.current??p.$getSelection();p.$isRangeSelection(B)&&(I=B.getTextContent())}),await(async()=>{const B=await(f==null?void 0:f.add({text:S.data.text,files:S.data.files},I));B&&(M(B),o(!1))})()}}const N=M=>{const{handleBlur:S,setCommentDraft:I,editorRef:j}=M;return s.jsx(G5,{initialContent:"",outputFormat:"html",debounce:1,editorRef:j,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:S,onChange:B=>I(_=>({..._,text:B}))})};return rt?s.jsx(Bt,{opened:r,onClose:()=>o(!1),children:r&&s.jsx(At.CommentComposer,{onSubmit:R(T),ns:"",children:N})}):s.jsx(s.Fragment,{children:r&&Br.createPortal(s.jsx(At.CommentComposer,{updateLocation:k,onSubmit:R(T),onBlur:()=>o(!1),ns:"",children:N}),document.body)})}const vn={ctrlKey:!ve.IS_APPLE,metaKey:ve.IS_APPLE};function NL(e){const{code:n}=e;return(n==="Numpad0"||n==="Digit0")&&p.isModifierMatch(e,{...vn,altKey:!0})}function jL(e){const{code:n}=e;if(!n)return!1;const t=n[n.length-1];return["1","2","3"].includes(t)&&p.isModifierMatch(e,{...vn,altKey:!0})}function RL(e){const{code:n}=e;return(n==="Numpad7"||n==="Digit7")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function IL(e){const{code:n}=e;return(n==="Numpad8"||n==="Digit8")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function DL(e){const{code:n}=e;return(n==="Numpad9"||n==="Digit9")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function OL(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...vn,altKey:!0})}function PL(e){const{code:n}=e;return n==="KeyQ"&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function BL(e){const{code:n}=e;return(n==="Numpad1"||n==="Digit1")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function _L(e){const{code:n}=e;return(n==="Numpad2"||n==="Digit2")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function FL(e){const{code:n}=e;return(n==="Numpad3"||n==="Digit3")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function WL(e){const{code:n}=e;return n==="KeyX"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function zL(e){const{code:n}=e;return n==="BracketRight"&&p.isModifierMatch(e,vn)}function KL(e){const{code:n}=e;return n==="BracketLeft"&&p.isModifierMatch(e,vn)}function UL(e){const{code:n}=e;return n==="KeyE"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function HL(e){const{code:n}=e;return n==="KeyL"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function YL(e){const{code:n}=e;return n==="KeyR"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function ZL(e){const{code:n}=e;return n==="KeyJ"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function GL(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,vn)}function VL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,vn)}function qL(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function QL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function JL(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function XL(e){const{code:n}=e;return n==="Backslash"&&p.isModifierMatch(e,vn)}function $L(e){const{code:n}=e;return n==="KeyK"&&p.isModifierMatch(e,vn)}function eN(e){const{code:n}=e;return n==="KeyM"&&p.isModifierMatch(e,{...vn,altKey:!0})}var xh=(e=>(e[e.increment=1]="increment",e[e.decrement=2]="decrement",e))(xh||{});const Yb=(e,n)=>{if(!n)return e;let t=e;switch(n){case 2:switch(!0){case e>jf:t=jf;break;case e>=48:t-=12;break;case e>=24:t-=4;break;case e>=14:t-=2;break;case e>=9:t-=1;break;default:t=Nf;break}break;case 1:switch(!0){case e<Nf:t=Nf;break;case e<12:t+=1;break;case e<20:t+=2;break;case e<36:t+=4;break;case e<=60:t+=12;break;default:t=jf;break}break}return t},t2=(e,n,t)=>{const r=o=>(o||(o=`${yh}px`),o=o.slice(0,-2),`${Yb(Number(o),t)}px`);e.update(()=>{if(e.isEditable()){const o=p.$getSelection();o!==null&&dn.$patchStyleText(o,{"font-size":n||r})}})},n2=(e,n,t)=>{if(t!==""){const r=Yb(Number(t),n);t2(e,String(r)+"px",null)}else t2(e,null,n)},qu=e=>{e.update(()=>{const n=p.$getSelection();dn.$setBlocksType(n,()=>p.$createParagraphNode())})},tN=(e,n,t)=>{n!==t&&e.update(()=>{const r=p.$getSelection();dn.$setBlocksType(r,()=>fn.$createHeadingNode(t))})},nN=(e,n)=>{n!=="bullet"?e.dispatchCommand(y1,void 0):qu(e)},rN=(e,n)=>{n!=="check"?e.dispatchCommand(x1,void 0):qu(e)},oN=(e,n)=>{n!=="number"?e.dispatchCommand(Pu,void 0):qu(e)},iN=(e,n)=>{n!=="quote"&&e.update(()=>{const t=p.$getSelection();dn.$setBlocksType(t,()=>fn.$createQuoteNode())})},sN=(e,n)=>{n!=="code"&&e.update(()=>{let t=p.$getSelection();if(t)if(!p.$isRangeSelection(t)||t.isCollapsed())dn.$setBlocksType(t,()=>Gt.$createCodeNode());else{const r=t.getTextContent(),o=Gt.$createCodeNode();t.insertNodes([o]),t=p.$getSelection(),p.$isRangeSelection(t)&&t.insertRawText(r)}})},aN=e=>{e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||jn.$isTableSelection(n)){const t=n.anchor,r=n.focus,o=n.getNodes(),i=n.extract();if(t.key===r.key&&t.offset===r.offset)return;o.forEach((l,c)=>{if(p.$isTextNode(l)){let d=l;c===0&&t.offset!==0&&(d=d.splitText(t.offset)[1]||d),c===o.length-1&&(d=d.splitText(r.offset)[0]||d);const f=i[0];o.length===1&&p.$isTextNode(f)&&(d=f),d.__style!==""&&d.setStyle(""),d.__format!==0&&d.setFormat(0);const h=ve.$getNearestBlockElementAncestorOrThrow(d);h.__format!==0&&h.setFormat(""),h.__indent!==0&&h.setIndent(0),l=d}else fn.$isHeadingNode(l)||fn.$isQuoteNode(l)?l.replace(p.$createParagraphNode(),!0):eo.$isDecoratorBlockNode(l)&&l.setFormat("")})}})};function lN({editor:e,setIsLinkEditMode:n}){const{toolbarState:t}=ML();return m.useEffect(()=>{const r=o=>{if(p.isModifierMatch(o,{}))return!1;if(NL(o))qu(e);else if(jL(o)){const{code:i}=o,l=`h${i[i.length-1]}`;tN(e,t.blockType,l)}else if(IL(o))nN(e,t.blockType);else if(RL(o))oN(e,t.blockType);else if(DL(o))rN(e,t.blockType);else if(OL(o))sN(e,t.blockType);else if(PL(o))iN(e,t.blockType);else if(WL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough");else if(BL(o))console.log("isLowercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"lowercase");else if(_L(o))console.log("isUppercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"uppercase");else if(FL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"capitalize");else if(zL(o))e.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0);else if(KL(o))e.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0);else if(UL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"center");else if(HL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"left");else if(YL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"right");else if(ZL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"justify");else if(GL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript");else if(VL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript");else if(qL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code");else if(QL(o))n2(e,xh.increment,t.fontSizeInputValue);else if(JL(o))n2(e,xh.decrement,t.fontSizeInputValue);else if(XL(o))aN(e);else if($L(o))e.dispatchCommand(ju,"create");else if(eN(o))e.dispatchCommand(Vu,void 0);else return!1;return o.preventDefault(),!0};return e.registerCommand(p.KEY_DOWN_COMMAND,r,p.COMMAND_PRIORITY_NORMAL)},[e,t.isLink,t.blockType,t.fontSizeInputValue,n]),null}const fu="/v1/me/features";let Da=null,Ri=null;function cN(){return Da?Promise.resolve(Da):Ri||(Ri=fetch(fu,{credentials:"include"}).then(e=>{if(!e.ok)throw new Error(`GET ${fu} ${e.status}`);return e.json()}).then(e=>(Da=e,Ri=null,e)).catch(e=>{throw Ri=null,e}),Ri)}function uN(e){return fetch(fu,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(n=>{if(!n.ok)throw new Error(`PATCH ${fu} ${n.status}`);return n.json()}).then(n=>(Da=n,n))}function dN(){Da=null,Ri=null}const r2="smart-paste-preference",o2="smart_paste",vh=15e3,Ks=1e4,Zb=400,fN=7,hN=new Set(["paragraph","heading","bullet-list","number-list","quote","code","callout","horizontal-rule"]);function pN(e,n,t){const r=()=>{var C;let o=p.$getSelection();if(p.$isRangeSelection(o)||(p.$getRoot().selectEnd(),o=p.$getSelection()),!p.$isRangeSelection(o)){const b=p.$getRoot(),y=p.$createParagraphNode(),x=p.$createTextNode(n);return y.append(x),b.append(y),y.selectEnd(),{start:{key:x.getKey(),offset:0,type:"text"},end:{key:x.getKey(),offset:n.length,type:"text"},anchorTopKey:y.getKey(),tracking:"fallback"}}const i=o.isBackward()?o.focus:o.anchor,l={key:i.key,offset:i.offset,type:i.type},c=((C=i.getNode().getTopLevelElement())==null?void 0:C.getKey())??null,d=(t==null?void 0:t.trim())||"";if(d)try{const y=new DOMParser().parseFromString(d,"text/html"),x=za.$generateNodesFromDOM(e,y);if(x.length>0){o.removeText(),p.$insertNodes(x);const w=x[0].getTopLevelElement()??x[0],k=x[x.length-1].getTopLevelElement()??x[x.length-1],T=Array.from(new Set(x.map(L=>(L.getTopLevelElement()??L).getKey()))),R=p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},N=p.$isTextNode(k)?{key:k.getKey(),offset:k.getTextContentSize(),type:"text"}:{key:k.getKey(),offset:p.$isElementNode(k)?k.getChildrenSize():0,type:"element"};return{start:R,end:N,anchorTopKey:w.getKey(),tracking:"exact",insertedTopLevelKeys:T}}o.insertRawText(n)}catch{o.insertRawText(n)}else o.insertRawText(n);const f=p.$getSelection();if(p.$isRangeSelection(f)){const b=f.anchor;return{start:l,end:{key:b.key,offset:b.offset,type:b.type},anchorTopKey:c,tracking:"exact"}}let h={...l};const g=p.$getNodeByKey(l.key);return p.$isTextNode(g)&&(h={key:l.key,type:"text",offset:Math.min(g.getTextContentSize(),l.offset+n.length)}),{start:l,end:h,anchorTopKey:c,tracking:"fallback"}};try{return r()}catch{let o=null;return e.update(()=>{o=r()},{discrete:!0}),o}}function Qt(e){return e.replace(/\s+/g," ").trim()}function Al(e){return e?Qt(e).slice(0,180):""}function Gb(e,n,t){if(t==="fallback")return!0;const r=Qt(e);if(!r)return!0;const o=Al(n);if(o.length<=20)return!1;const i=o.slice(0,Math.min(o.length,80));return r.includes(i)}function U1(e){try{const n=p.$createRangeSelection();return n.anchor.set(e.start.key,e.start.offset,e.start.type),n.focus.set(e.end.key,e.end.offset,e.end.type),p.$setSelection(n),!0}catch{return!1}}function Vb(e,n){let t=null;const r=Al(n),o=Qt(n);return r.length<=20||!o?null:(e.read(()=>{const l=p.$getRoot().getChildren();if(l.length===0)return;const c=w=>p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},d=w=>p.$isTextNode(w)?{key:w.getKey(),offset:w.getTextContentSize(),type:"text"}:{key:w.getKey(),offset:p.$isElementNode(w)?w.getChildrenSize():0,type:"element"},f=w=>{var N;const k=w.filter(L=>L.isAttached());if(k.length===0)return null;const T=k[0],R=k[k.length-1];return{start:c(T),end:d(R),anchorTopKey:((N=T.getTopLevelElement())==null?void 0:N.getKey())??T.getKey(),tracking:"fallback",insertedTopLevelKeys:k.map(L=>L.getKey())}},h=p.$getSelection(),g=p.$isRangeSelection(h)?(h.anchor.getNode().getTopLevelElement()??h.anchor.getNode()).getKey():null;let C=g!==null?l.findIndex(w=>w.getKey()===g):-1;C>=0?!Qt(l[C].getTextContent())&&C>0&&(C-=1):C=l.length-1;const b=[];let y="";for(let w=C;w>=0;w--){const k=l[w],T=Qt(k.getTextContent());if(!T){if(b.length>0)break;continue}const R=Qt(`${T} ${y}`);if(o.endsWith(R)||o.includes(R)){if(b.unshift(k),y=R,y.length>=Math.min(o.length,220))break;continue}if(b.length>0)break}if(b.length>0&&y.length>=Math.min(o.length,40)&&(t=f(b),t))return;const x=l.find(w=>{const k=Qt(w.getTextContent());return k?k.includes(r)||r.includes(k):!1})??null;x&&(t=f([x]))}),t)}function H1(e){const n=e.exportJSON();return p.$isElementNode(e)&&(n.children=e.getChildren().map(H1)),n}function mN(e,n){let t=0;for(const r of e)if(r.kind==="paragraph"){const o=r.combinedText.split(/\s+/);if(o.length<3)continue;const i=o.slice(0,3).join(" "),l=o.slice(-3).join(" "),c=n.indexOf(i,t);if(c!==-1){const d=n.indexOf(l,c);d!==-1&&(r.combinedText=n.slice(c,d+l.length).trim(),t=d+l.length)}}else{const i=r.serializedNodes.map(l=>Us(l).trim()).join(" ").split(/\s+/);if(i.length>=3){const l=i.slice(-3).join(" "),c=n.indexOf(l,t);c!==-1&&(t=c+l.length)}}}const Y1=new Set(["table","image","inline-image","video","embed","heading","list","extend-code","code","callout-wrapper","quote","horizontalrule","excalidraw","collapsible-container","layout-container","page-break","music","file","swagger"]),gN=new Set(["paragraph","element","linebreak"]);function Us(e){return"text"in e&&typeof e.text=="string"?e.text:"children"in e&&Array.isArray(e.children)?e.children.map(Us).join(""):""}function qb(e){const n=[];for(const t of e){const r=t.type;if(r==="paragraph"||Y1.has(r))n.push(t);else if("children"in t&&Array.isArray(t.children)){const o=t.children;o.length>0&&n.push(...qb(o))}else Us(t).trim()&&n.push({...t,type:"paragraph"})}return n}const CN=[/\n\s*\n/,/^[-*+]\s/m,/^\d+\.\s/m,/^```/m,/^#{1,6}\s/m,/^>\s/m,/\|.*\|.*\|/,/^(ВНИМАНИЕ|WARNING|ВАЖНО|NOTE|TIP):/im,/^[⚠️❗🔥💡ℹ️]/m];function AN(e){for(const n of CN)if(n.test(e))return!0;return!1}function i2(e){const n=qb(e),t=[];let r=null,o=[],i=[],l=[];function c(){o.length>0&&(t.push({kind:"stable",nodes:o}),o=[])}function d(){i.length>0&&(t.push({kind:"paragraph",texts:i,combinedText:i.join(`
|
|
29
|
-
`),originalNodes:l}),i=[],l=[])}for(const x of n){const w=x.type;if(w==="paragraph"||gN.has(w)){const k=Us(x).trim();if(!k)continue;r!=="paragraph"&&(c(),r="paragraph"),i.push(k),l.push(x)}else if(Y1.has(w))r!=="stable"&&(d(),r="stable"),o.push(x);else{const k=Us(x).trim();k?(r!=="paragraph"&&(c(),r="paragraph"),i.push(k),l.push(x)):(r!=="stable"&&(d(),r="stable"),o.push(x))}}c(),d();let f=0,h="";for(const x of t)x.kind==="paragraph"&&(f+=x.combinedText.length,h+=(h?`
|
|
30
|
-
`:"")+x.combinedText);const g=t.some(x=>x.kind==="paragraph"),C=t.some(x=>x.kind==="stable"),b=g&&(C||f>=Zb),y=h?AN(h):!1;return{runs:t,hasParagraphRuns:b,totalParagraphChars:f,hasStructuralSignals:y}}const xn={text:{detail:0,format:0,mode:"normal",style:"",text:"{{TEXT}}",type:"extended-text",version:1},paragraph:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""},heading:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"heading",version:1,tag:"h1|h2|h3"},bulletList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"bullet",start:1,tag:"ul"},numberList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"number",start:1,tag:"ol"},checkList:{children:["{{CHECK_LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"check",start:1,tag:"ul"},listitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,value:1},checkListitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,checked:!1,value:1,opened:!0},quote:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"quote",version:1},code:{children:["{{CODE_HIGHLIGHT + LINEBREAK nodes}}"],direction:null,format:"",indent:0,type:"extend-code",version:1,language:"plain",isCollapsed:!1},codeHighlight:{detail:0,format:0,mode:"normal",style:"",text:"{{LINE}}",type:"code-highlight",version:1},linebreak:{type:"linebreak",version:1},calloutWrapper:{children:["{{CALLOUT_IMAGE}}","{{CALLOUT_CONTENT}}"],direction:null,format:"",indent:0,type:"callout-wrapper",version:1,backgroundColor:"",calloutType:""},calloutImage:{type:"callout-image",version:1,format:"",emojiCode:"e=%F0%9F%99%82",refElem:""},calloutContent:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"callout",version:1},horizontalRule:{type:"horizontalrule",version:1},table:{children:["{{TABLEROWS}}"],direction:null,format:"",indent:0,type:"table",version:1},tableRow:{children:["{{TABLECELLS}}"],direction:null,format:"",indent:0,type:"tablerow",version:1},tableCell:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"tablecell",version:1,backgroundColor:null,colSpan:1,headerState:0,rowSpan:1}},s2={default:{emoji:"e=%F0%9F%99%82",bg:""},success:{emoji:"e=%E2%9C%85",bg:"rgba(219, 242, 233, 1)"},warning:{emoji:"e=%E2%9A%A0%EF%B8%8F",bg:"rgba(254, 247, 230, 1)"},alert:{emoji:"e=%E2%9D%97",bg:"rgba(255, 224, 223, 1)"}};function va(e){return{...xn.text,text:e}}const a2=/[\s([{]$/,l2=/^[\s)\]}.,:;!?]/;function xc(e){const n=[],t=/(\*\*(.+?)\*\*|`([^`]+)`)/g;let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){let i=e.slice(r,o.index);n.length>0&&i.length>0&&!l2.test(i)&&(i=" "+i),i.length>0&&!a2.test(i)&&(i+=" "),n.push(va(i))}else if(n.length>0){const i=n[n.length-1];i.text&&!a2.test(i.text)&&n.push(va(" "))}o[2]?n.push({...xn.text,text:o[2],format:1}):o[3]&&n.push({...xn.text,text:o[3],format:16}),r=o.index+o[0].length}if(r<e.length){let i=e.slice(r);n.length>0&&i.length>0&&!l2.test(i)&&(i=" "+i),n.push(va(i))}return n.length>0?n:[va(e)]}function bN(e,n){return{type:"link",version:1,url:e,rel:"noreferrer",target:null,title:null,direction:null,format:"",indent:0,children:[va(n)]}}function bl(e,n){if(!n.length)return xc(e);const t=[];let r=e;for(;r.length>0;){let o=1/0,i=null;for(const l of n){const c=r.indexOf(l.text);c!==-1&&c<o&&(o=c,i=l)}i!==null&&o<1/0?(o>0&&t.push(...xc(r.slice(0,o))),t.push(bN(i.url,i.text)),r=r.slice(o+i.text.length)):(t.push(...xc(r)),r="")}return t.length>0?t:xc(e)}function Oa(e,n=[]){return{...xn.paragraph,children:bl(e,n)}}function yN(e,n,t=[]){return{...xn.heading,tag:e,children:bl(n,t)}}function xN(e,n,t=[]){return{...e==="bullet"?xn.bulletList:xn.numberList,children:n.map((o,i)=>({...xn.listitem,value:i+1,children:bl(o,t)}))}}function vN(e,n=[]){return{...xn.checkList,children:e.map((t,r)=>({...xn.checkListitem,value:r+1,checked:t.checked,children:bl(t.text,n)}))}}function wN(e,n=[]){return{...xn.quote,children:bl(e,n)}}function kN(e,n,t=[]){const r=s2[e]??s2.default;return{...xn.calloutWrapper,backgroundColor:r.bg,calloutType:e,children:[{...xn.calloutImage,emojiCode:r.emoji},{...xn.calloutContent,children:[Oa(n,t)]}]}}const SN=new Set(["c","clike","cpp","css","html","java","js","json","markdown","objc","plain","powershell","py","rust","sql","swift","typescript","xml"]),c2={javascript:"js",python:"py","c++":"cpp","objective-c":"objc",ts:"typescript",tsx:"typescript",jsx:"js"};function EN(e){if(!e)return"plain";const n=e.toLowerCase();return SN.has(n)?n:c2[n]?c2[n]:"plain"}function TN(e,n){const t=n.split(`
|
|
31
|
-
`),r=[];return t.forEach((o,i)=>{r.push({...xn.codeHighlight,text:o}),i<t.length-1&&r.push({...xn.linebreak})}),{...xn.code,language:EN(e),children:r}}function MN(e,n,t,r){return{type:"video",version:1,format:"",platform:e,videoID:n,width:t||"inherit",height:r||"inherit"}}function LN(e,n,t,r,o){return{type:"embed",version:1,format:"",platform:n,embedId:t,src:e,width:r?parseInt(r,10)||r:560,height:o?parseInt(o,10)||o:315}}function Pa(e){switch(e.kind){case"image":return NN(e.src,e.altText,e.width,e.height);case"video":return MN(e.platform,e.mediaId,e.width,e.height);case"embed":return LN(e.src,e.platform,e.mediaId,e.width,e.height)}}function NN(e,n,t,r){return{type:"image",version:1,src:e,altText:n||"",maxWidth:t||"inherit",width:t||"inherit",height:r||"inherit",showCaption:!1,caption:{editorState:{root:{children:[],direction:null,format:"",indent:0,type:"root",version:1}}}}}function Qb(e,n){if(!n)return!1;const t=n.slice(0,60).toLowerCase().replace(/\s+/g," ").trim(),r=e.toLowerCase().replace(/\s+/g," ").trim();return t.length>5&&(r.includes(t)||t.includes(r))}function jN(e,n=[]){return{...xn.table,children:e.map((t,r)=>({...xn.tableRow,children:t.map(o=>({...xn.tableCell,headerState:r===0?1:0,children:[Oa(o,n)]}))}))}}function u2(e,n){switch(e.type){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.some(r=>r.text===e.text.trim())?Oa(e.text,n):yN(e.type,e.text,n);case"p":return Oa(e.text,n);case"bullet":case"number":return xN(e.type,e.items,n);case"check":return vN(e.items,n);case"quote":return wN(e.text,n);case"callout":return kN(e.style,e.text||"",n);case"code":return TN(e.lang,e.text||"");case"table":return jN(e.rows,n);case"hr":return xn.horizontalRule;default:return Oa(e.text??"",n)}}function RN(e){return"text"in e?e.text??"":"items"in e?e.items.map(t=>typeof t=="string"?t:t.text).join(" "):""}function Jb(e,n=[],t=[]){if(!t.length)return e.map(i=>u2(i,n));const r=[],o=new Set;for(const i of e){r.push(u2(i,n));const l=RN(i);for(let c=0;c<t.length;c++)o.has(c)||Qb(l,t[c].anchorText)&&(r.push(Pa(t[c])),o.add(c))}for(let i=0;i<t.length;i++)o.has(i)||r.push(Pa(t[i]));return r}const IN=[[/^>\s*\[!WARNING\]\s*/im,"warning"],[/^>\s*\[!CAUTION\]\s*/im,"warning"],[/^>\s*\[!NOTE\]\s*/im,"default"],[/^>\s*\[!TIP\]\s*/im,"default"],[/^>\s*\[!IMPORTANT\]\s*/im,"alert"],[/^>\s*\[!ERROR\]\s*/im,"alert"],[/^>\s*\[!SUCCESS\]\s*/im,"success"],[/^ВАЖНОЕ ПРИМЕЧАНИЕ:\s*/im,"alert"],[/^ВАЖНО:\s*/im,"alert"],[/^IMPORTANT:\s*/im,"alert"],[/^ALERT:\s*/im,"alert"],[/^ВНИМАНИЕ:\s*/im,"alert"],[/^WARNING:\s*/im,"warning"],[/^CAUTION:\s*/im,"warning"],[/^NOTE:\s*/im,"default"],[/^TIP:\s*/im,"default"],[/^ПРИМЕЧАНИЕ:\s*/im,"default"],[/^SUCCESS:\s*/im,"success"]];function Xb(e){return e.split(`
|
|
32
|
-
`).map(n=>{for(const[t,r]of IN){const o=n.match(t);if(o)return`[CALLOUT:${r}] ${n.slice(o[0].length)}`}return n}).join(`
|
|
33
|
-
`)}function $b(e){return e.map(n=>{if("text"in n&&n.text&&n.type!=="callout"){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{type:"callout",style:t[1],text:t[2]}}if(n.type==="callout"&&"text"in n&&n.text){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{...n,style:t[1],text:t[2]}}return n})}function DN(e,n,t){const r=e.trim();if(!r)return null;const o=h=>t.some(g=>h>=g.start&&h<g.end),i=[...new Set(r.match(/\b\w{5,}\b/g)||[])],l=h=>i.length<=2?!0:i.filter(C=>h.includes(C)).length/i.length>=.4;let c=-1,d=0,f=null;{let h=0;for(;;){const g=n.indexOf(r,h);if(g===-1)break;if(!o(g)){f={code:r,start:g,end:g+r.length},c=g;break}h=g+1}}if(c===-1){const h=r.match(/\b\w{4,}\b/g);if(!(h!=null&&h.length))return null;const g=[...new Set(h)],C=g.sort((w,k)=>k.length-w.length),b=C[0],y=[];let x=0;for(;;){const w=n.indexOf(b,x);if(w===-1)break;o(w)||y.push(w),x=w+1}if(y.length===0)for(const w of C.slice(1)){for(x=0;;){const k=n.indexOf(w,x);if(k===-1)break;if(!o(k)){c=k;break}x=k+1}if(c!==-1)break}else if(y.length===1)c=y[0];else{const w=r.length+200,k=g.slice(0,20);let T=-1;for(const R of y){const N=Math.max(0,R-100),L=Math.min(n.length,R+w),M=n.slice(N,L);let S=0;for(const I of k)M.includes(I)&&(S+=I.length);S>T&&(T=S,c=R)}}c!==-1&&(d=r.indexOf(b))}if(c===-1)return null;{const h=Math.max(0,c-300),g=Math.min(n.length,c+r.length+300),C=n.slice(h,g),b=/```\w*\s*\n?([\s\S]*?)```/g;let y;for(;(y=b.exec(C))!==null;){const x=h+y.index+y[0].indexOf(y[1]),w=x+y[1].length;if(c>=h+y.index&&c<h+y.index+y[0].length){const k=y[1].trim();if(k.length>0)return{code:k,start:x,end:w}}}}if(f)return f;{const h=Math.max(0,c-2e3);let g=0,C=-1;for(let M=c-1;M>=h;M--)if(n[M]==="}"&&g++,n[M]==="{")if(g>0)g--;else{C=M;break}const b=C!==-1?C:c,y=n.slice(Math.max(0,b-500),b),x=y.match(/(?:void|int|float|double|char|bool|def|function|class|struct|fn|func|async|module|pub|export|const|let|var)\s+\w+[^.!?]*$/i);let w;if((x==null?void 0:x.index)!==void 0)w=Math.max(0,b-500)+x.index;else if(C!==-1){const M=y.match(/\b(\w+)\s*\([^)]*\)\s*(?:=>)?\s*$/);(M==null?void 0:M.index)!==void 0?w=Math.max(0,b-500)+M.index:w=C}else w=c;let k=0,T=w,R=!1,N=-1;for(let M=w;M<n.length&&M<w+3e3;M++)if(n[M]==="{"&&(R||(N=M),k++,R=!0),n[M]==="}"&&(k--,k<=0&&R)){T=M+1;break}const L=Math.max(r.length,300);if(R&&T>w&&N-w<=L){const M=n.slice(w,T).trim(),S=M.replace(/\s/g,"").length,I=r.replace(/\s/g,"").length;if(S>=I*.7&&l(M))return{code:M,start:w,end:T}}}{const h=n.slice(Math.max(0,c-500),c),g=h.lastIndexOf(`
|
|
34
|
-
|
|
35
|
-
`),C=h.search(/(?:^|\n)\s*(?:def |class |import |from |#include|package |pub |async |module |export |const |let |var |function )[^\n]*$/m),b=h.search(/(?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b/i);let y;g!==-1?y=Math.max(0,c-500)+g+2:C!==-1?y=Math.max(0,c-500)+C+1:b!==-1?y=Math.max(0,c-500)+b:y=Math.max(0,c-d-20);const x=y+r.length+40,w=n.slice(c),k=w.search(/\n\s*\n/),T=r.length-d;let R=-1;if(k!==-1)R=k;else{const I=w.search(/[.!?]\s+[A-ZА-ЯЁ]|>\s*\[!/);I!==-1&&I>=T&&c+I<=x&&(R=I)}let N=R!==-1?c+R+1:Math.min(x,n.length);if(R===-1&&i.length>0){const I=n.slice(y,N);let j=0;for(const B of i){const _=I.lastIndexOf(B);_!==-1&&(j=Math.max(j,_+B.length))}j>0&&(N=y+j)}const L=n.slice(y,N).trim(),M=L.replace(/\s/g,"").length,S=r.replace(/\s/g,"").length;if(M>=S*.7&&l(L))return{code:L,start:y,end:N}}return f||null}const ON=new Set(["c","cpp","c++","h","hpp","java","javascript","js","jsx","typescript","ts","tsx","go","rust","rs","swift","kotlin","kt","php","scala","dart","csharp","cs","c#","css","scss","less","arduino","ino","plain"]);function PN(e){if(e.includes(`
|
|
36
|
-
`))return e;let n=e.trim();n=n.replace(/\s+(def |class |import |from )/g,`
|
|
37
|
-
$1`),n=n.replace(/([)'"a-zA-Z0-9_])\s+(while |for |with |try:|elif |else:|except|finally:|return |break\b|continue\b|pass\b|raise )/g,`$1
|
|
38
|
-
$2`),n=n.replace(/:\s+([a-zA-Z_"'(])/g,`:
|
|
39
|
-
$1`);const t=n.split(`
|
|
40
|
-
`).map(i=>i.trim()).filter(Boolean);if(t.length<=1)return e;const r=[];let o=0;for(const i of t)/^(elif\b|else:|except\b|finally:)/.test(i)&&(o=Math.max(0,o-1)),r.push(" ".repeat(o)+i),i.endsWith(":")&&o++,/^(return|break|continue|pass)\b/.test(i)&&(o=Math.max(0,o-1));return r.join(`
|
|
41
|
-
`)}function d2(e,n){if(e.includes(`
|
|
42
|
-
`))return e;const t=(n||"plain").toLowerCase();if(t==="python"||t==="py")return PN(e);if(!e.includes("{")||!ON.has(t))return e;const r=[];let o=0,i="",l=null,c=0;const d=f=>{const h=f.trim();h&&r.push(" ".repeat(o)+h)};for(let f=0;f<e.length;f++){const h=e[f];if(l){i+=h,h==="\\"&&f+1<e.length?i+=e[++f]:h===l&&(l=null);continue}if(h==='"'||h==="'"||h==="`"){l=h,i+=h;continue}if(h==="("){c++,i+=h;continue}if(h===")"){c--,i+=h;continue}if(h==="{"){i=i.trimEnd()+" {",d(i),i="",o++,f+1<e.length&&e[f+1]===" "&&f++;continue}if(h==="}"){i.trim()&&(d(i),i=""),o=Math.max(0,o-1),r.push(" ".repeat(o)+"}"),f+1<e.length&&e[f+1]===" "&&f++;continue}if(h===";"&&c<=0){i+=";";let g=f+1;for(;g<e.length&&e[g]===" ";)g++;if(g<e.length-1&&e[g]==="/"&&e[g+1]==="/"){let C=g+2;for(;C<e.length&&e[C]!=="{"&&e[C]!=="}";)C++;i+=e.slice(f+1,C).trimEnd(),f=C-1}d(i),i="",f+1<e.length&&e[f+1]===" "&&f++;continue}i+=h}return i.trim()&&d(i),r.length<=1?e:r.join(`
|
|
43
|
-
`)}function f2(e,n){if(!n)return e;const t=new RegExp(`^${n}\\s+`,"i");return e.replace(t,"")}function e5(e,n,t){const r=t??[];return e.map(o=>{var c;if(o.type!=="code"||!((c=o.text)!=null&&c.trim()))return o;const i=DN(o.text,n,r);if(i){r.push({start:i.start,end:i.end});const d=f2(i.code,o.lang);return{type:"code",lang:o.lang,text:d2(d,o.lang)}}const l=f2(o.text||"",o.lang);return{...o,text:d2(l,o.lang)}})}const BN=["h1","h2","h3","h4","h5","h6"];function Ls(e){return BN.includes(e)}function Zc(e){return parseInt(e.charAt(1),10)}function _N(e){let n=!1;const t=e.findIndex(l=>Ls(l.type));if(t!==-1&&e[t].type!=="h1"&&!e.some(c=>c.type==="h1")){const c=Zc(e[t].type);e.some(f=>Ls(f.type)&&Zc(f.type)>c)&&(e=e.map((f,h)=>h===t?{...f,type:"h1"}:f))}let r=e.map(l=>{if(l.type==="h1"){if(n)return{...l,type:"h2"};n=!0}return l});const o=new Map;let i=0;return r=r.map(l=>{if(!Ls(l.type))return l;const c=Zc(l.type);if(o.has(c)){const f=o.get(c);return i=f,{...l,type:`h${f}`}}let d=c;return i>0&&c>i+1&&(d=i+1),o.set(c,d),i=d,{...l,type:`h${d}`}}),r=FN(r),r}function Rf(e,n){for(let t=n+1;t<e.length;t++){if(Ls(e[t].type))return null;const r=e[t].type;if(r!=="p")return r}return null}function FN(e){const n=[...e];let t=0;for(;t<n.length;){if(n[t].type!=="h2"){t++;continue}const r=t,o=[t];let i=t+1;for(;i<n.length;)if(Ls(n[i].type))if(n[i].type==="h2")o.push(i),i++;else break;else i++;if(o.length>=2){const l=Rf(n,o[0]),c=o.slice(1).every(d=>Rf(n,d)==="code"||Rf(n,d)==="table");if(l!=="code"&&l!=="table"&&c)for(let d=1;d<o.length;d++)n[o[d]]={...n[o[d]],type:"h3"}}t=r+1}return n}function t5(e){const n=e.split(`
|
|
44
|
-
`);if(e.length/Math.max(n.length,1)<200&&n.length>3)return e;let r=e;return r=r.replace(new RegExp("(\\p{L}{2,}):([A-ZА-ЯЁ])","gu"),`$1:
|
|
45
|
-
$2`),r=r.replace(/([.:!?])\s*(«[^»]+»[^.!?\n]*\.\s*—\s*[^.!?\n]+[.!?]?)\s*/g,`$1
|
|
46
|
-
$2
|
|
47
|
-
`),r=r.replace(/\s*(```\w*)\s*/g,`
|
|
48
|
-
|
|
49
|
-
$1
|
|
50
|
-
|
|
51
|
-
`),r=r.replace(/\s+(#{1,6}\s)/g,`
|
|
52
|
-
|
|
53
|
-
$1`),r=r.replace(/\s+(>\s)/g,`
|
|
54
|
-
|
|
55
|
-
$1`),r=r.replace(new RegExp('(?<=[.!?:>)\\]»"])\\s+([-*•]\\s)',"g"),`
|
|
56
|
-
$1`),r=r.replace(/\s{2,}([-*•]\s)/g,`
|
|
57
|
-
$1`),r=r.replace(/\s+(\d+\.\s)/g,`
|
|
58
|
-
$1`),r=r.split(`
|
|
59
|
-
`).flatMap(o=>{const i=o.match(/^(\d+\.\s.*?[.!?)]+)\s+(?=[A-ZА-ЯЁ])/u);if(i){const l=i[0].length-1,c=o.slice(0,l).trimEnd(),d=o.slice(l).trimStart();if(d.length>0)return[c,d]}return[o]}).join(`
|
|
60
|
-
`),r=r.split(`
|
|
61
|
-
`).flatMap(o=>{if(!/^>\s*\[!\w+\]/.test(o)||o.length<=120)return[o];const i=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));if(i.length<=1)return[o];let l=1;for(let f=1;f<i.length&&!(/^.{1,50}:\s*$/.test(i[f])||/^\d+\.\s/.test(i[f])||/^[A-ZА-ЯЁ]\S*(?:\s+\S+){0,4}:\s/.test(i[f])||(l=f+1,l>=3));f++);if(l>=i.length)return[o];const c=i.slice(0,l).join(" "),d=i.slice(l).join(" ");return[c,d]}).join(`
|
|
62
|
-
`),r=r.split(`
|
|
63
|
-
`).flatMap(o=>/^>\s*\[!/.test(o)?[o]:o.length<=200?[o]:o.split(new RegExp("(?<=:)\\s+(?=[A-ZА-ЯЁ][a-zа-яё])","gu"))).join(`
|
|
64
|
-
`),r=r.split(`
|
|
65
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const i=o.match(/^(.+?)\s+([A-ZА-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s*$/u);return i?[i[1],i[2]]:[o]}).join(`
|
|
66
|
-
`),r=r.split(`
|
|
67
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const i=o.match(/^(.+?[.!?])\s+([А-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s+([А-ЯЁ].+)/u);return i?[i[1],i[2],i[3]]:[o]}).join(`
|
|
68
|
-
`),r=r.split(`
|
|
69
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const i=o.match(/^([^:\n]{5,55}:)\s+([А-ЯЁ].{30,})/u);return i?[i[1],i[2]]:[o]}).join(`
|
|
70
|
-
`),r=r.replace(/(\s)((?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b)/gi,`
|
|
71
|
-
$2`),r=r.split(`
|
|
72
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];if(o.length<=150)return[o];const i=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));return i.reduce((c,d)=>c+d.length,0)/i.length>=85?[o]:i}).join(`
|
|
73
|
-
`),r=r.replace(/\n{3,}/g,`
|
|
74
|
-
|
|
75
|
-
`),r=r.trim(),r}const n5=`You are a text structure detector. Input is plain text. Return a JSON object {"blocks":[...]} detecting structure.
|
|
76
|
-
|
|
77
|
-
BLOCK TYPES:
|
|
78
|
-
{"type":"h1"|"h2"|"h3"|"h4"|"h5"|"h6", "text":"..."}
|
|
79
|
-
{"type":"p", "text":"..."}
|
|
80
|
-
{"type":"bullet", "items":["...", "..."]}
|
|
81
|
-
{"type":"number", "items":["...", "..."]}
|
|
82
|
-
{"type":"check", "items":[{"text":"...", "checked":true|false}]}
|
|
83
|
-
{"type":"quote", "text":"..."}
|
|
84
|
-
{"type":"callout", "style":"default"|"success"|"warning"|"alert", "text":"..."}
|
|
85
|
-
{"type":"code", "lang":"...", "text":"..."}
|
|
86
|
-
{"type":"table", "rows":[["A","B"],["C","D"]]} (first row = header)
|
|
87
|
-
{"type":"hr"}
|
|
88
|
-
|
|
89
|
-
IMPORTANT — CODE BLOCKS:
|
|
90
|
-
For code, return {"type":"code", "lang":"...", "text":"..."}.
|
|
91
|
-
Copy code VERBATIM — every character, every line. NEVER truncate, summarize or shorten code.
|
|
92
|
-
If code is inside \`\`\` fences, omit the fences, keep only the code content.
|
|
93
|
-
Text BEFORE code (intro phrases like "Вот код:", "Here is the script:", "Пример:") MUST be output as a separate p block BEFORE the code block. NEVER drop intro text.
|
|
94
|
-
|
|
95
|
-
INLINE FORMATTING:
|
|
96
|
-
- Preserve **bold** and \`code\` markers from input text EXACTLY as-is.
|
|
97
|
-
- For text without markers: add **bold** for key terms, important concepts, parameter names.
|
|
98
|
-
Add \`code\` for function names, variable names, commands, file paths, code identifiers, version strings (v1.0.0, stable-build-v2.1.0-alpha, etc.), config keys, env vars.
|
|
99
|
-
- Bold and code markers go INSIDE the "text" field of blocks. Example:
|
|
100
|
-
{"type":"p", "text":"**Important:** use \`fetchData()\` to load items"}
|
|
101
|
-
- NEVER add formatting inside code blocks (type "code").
|
|
102
|
-
|
|
103
|
-
DETECTION (priority order):
|
|
104
|
-
- \`\`\` fences → code (lang from fence label). Lines with code syntax (function, if(, while(, for(, switch(, try, catch, =>, {}, var/let/const, import, return, class, console.log, etc.) without natural language → code.
|
|
105
|
-
- "- "/"* "/"• " → bullet, "1. " → number, "[ ]"/"[x]" → check. Group consecutive items. ✅/👉/➡️ at line start are NOT list markers and NOT checkboxes — they are decorative emoji, keep them in p text.
|
|
106
|
-
- CRITICAL — CHECK TYPE: {"type":"check"} is ONLY for explicit text markers [ ] and [x]. NEVER use check type for lines starting with emoji (✅❌🟢🔴☑️⬜🎯👉 etc.). Emoji at line start = decorative, keep in heading or p text. Examples:
|
|
107
|
-
"✅ Добавляй лейбл когда:" → {"type":"h2","text":"✅ Добавляй лейбл когда:"}
|
|
108
|
-
"❌ НЕ добавляй когда:" → {"type":"h2","text":"❌ НЕ добавляй когда:"}
|
|
109
|
-
"[ ] Task not done" → {"type":"check","items":[{"text":"Task not done","checked":false}]}
|
|
110
|
-
"[x] Task done" → {"type":"check","items":[{"text":"Task done","checked":true}]}
|
|
111
|
-
- CRITICAL — NUMBER/BULLET EMOJI: 1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ at line start are NOT numbered list markers. They are decorative emoji — keep them in the text as-is. NEVER convert to {"type":"number"}. Output as p or heading with the emoji preserved.
|
|
112
|
-
"1️⃣ PR → stage (Staging окружение)" → {"type":"h2","text":"1️⃣ PR → stage (Staging окружение)"}
|
|
113
|
-
"2️⃣ PR → main (Production окружение)" → {"type":"h2","text":"2️⃣ PR → main (Production окружение)"}
|
|
114
|
-
- 3+ consecutive short lines (1-4 words each) after a line ending with ":" → bullet list (unmarked list pattern).
|
|
115
|
-
- 3+ consecutive "Key: Value" pairs (like "Framework: React 18.3.1", "Build Tool: Vite 7.0.0") → bullet list. Each pair becomes one bullet. Keep the "Key: Value" text as-is. Tech specs, configs, metadata lists — always bullet.
|
|
116
|
-
|
|
117
|
-
- QUOTES — detect ALL these patterns as {"type":"quote"}:
|
|
118
|
-
"> " at line start, «text» — Author, "text" — Author, „text" — Author.
|
|
119
|
-
Intro words BEFORE the quote are NOT part of the quote — output intro as separate p.
|
|
120
|
-
CRITICAL RULE: ANY text containing «...» followed by " — Name" or ". — Name" MUST be split into p + quote. This applies even when the quote is embedded in a longer sentence or paragraph.
|
|
121
|
-
Examples:
|
|
122
|
-
'Цитата дня: «Программирование — это искусство». — Автор' → {"type":"p","text":"Цитата дня:"} + {"type":"quote","text":"«Программирование — это искусство». — Автор"}
|
|
123
|
-
'Важные мысли садоводов (записал в интернете): «Базилик — это фермерство». — Неизвестный автор.' → {"type":"p","text":"Важные мысли садоводов (записал в интернете):"} + {"type":"quote","text":"«Базилик — это фермерство». — Неизвестный автор."}
|
|
124
|
-
'Мне понравилась фраза «Код — поэзия». — Кнут' → {"type":"p","text":"Мне понравилась фраза"} + {"type":"quote","text":"«Код — поэзия». — Кнут"}
|
|
125
|
-
ALWAYS split. NEVER leave «...» — Author inside a p block.
|
|
126
|
-
- ВАЖНОЕ ПРИМЕЧАНИЕ/NOTE/WARNING/IMPORTANT/TIP/ALERT/CAUTION/ВНИМАНИЕ/ПРИМЕЧАНИЕ: at line start → callout. Remove marker. Style: NOTE/TIP/ПРИМЕЧАНИЕ→default, SUCCESS→success, WARNING/CAUTION→warning, IMPORTANT/ALERT/ВНИМАНИЕ/ВАЖНОЕ ПРИМЕЧАНИЕ→alert.
|
|
127
|
-
- > [!WARNING], > [!NOTE], > [!TIP], > [!IMPORTANT], > [!ERROR], > [!SUCCESS], > [!CAUTION] → callout. Remove the > [!...] marker. Map: WARNING/CAUTION→warning, NOTE/TIP→default, IMPORTANT/ERROR→alert, SUCCESS→success.
|
|
128
|
-
- Emoji ⚠️❗🔥💡ℹ️ at line start → callout. REMOVE the emoji from text. Style: ⚠️→warning, ❗🔥→alert, 💡ℹ️→default. Callout = ONLY that single line, following lines are separate blocks.
|
|
129
|
-
- Any OTHER emoji at line start (🎯👉🙂💰🎮📌🚨➡️ etc.) → NOT a callout. KEEP the emoji in the text. Example: "🎯 Мой совет" → {"type":"h2","text":"🎯 Мой совет"}.
|
|
130
|
-
- SHELL WORKFLOW BLOCKS — CRITICAL: When you see a sequence of shell commands (git, npm, npx, cd, mkdir, rm, cp, mv, ls, echo, docker, curl, wget, pip, python, node, yarn, pnpm, brew, apt, sudo, chmod, ssh, make, cargo) mixed with "# comment" lines (# followed by a space), this is a SINGLE bash code block. Rules:
|
|
131
|
-
1. "# text" lines near shell commands are bash COMMENTS, NOT headings. NEVER output them as h1/h2/h3.
|
|
132
|
-
2. Group the ENTIRE consecutive sequence (commands + # comments + empty lines between them) into ONE {"type":"code", "lang":"bash", "text":"..."} block.
|
|
133
|
-
3. NEVER split a shell workflow into multiple code blocks. NEVER interleave heading/p blocks between commands.
|
|
134
|
-
4. Text BEFORE the shell sequence (intro like "Стандартный workflow:") → separate p or heading. Text AFTER → separate block.
|
|
135
|
-
5. Example input:
|
|
136
|
-
"Стандартный workflow
|
|
137
|
-
# 1. Создать ветку
|
|
138
|
-
git checkout stage
|
|
139
|
-
git pull origin stage
|
|
140
|
-
|
|
141
|
-
# 2. Разработка
|
|
142
|
-
npm start
|
|
143
|
-
|
|
144
|
-
# 3. Коммит
|
|
145
|
-
git add .
|
|
146
|
-
git commit -m \\"feat\\"
|
|
147
|
-
|
|
148
|
-
# 4. Push
|
|
149
|
-
git push origin feature/x
|
|
150
|
-
Готово!"
|
|
151
|
-
Correct output: heading "Стандартный workflow" + ONE code block (lang:"bash") containing ALL lines from "# 1. Создать ветку" through "git push origin feature/x" + p "Готово!"
|
|
152
|
-
WRONG: multiple code blocks, or h2 "1. Создать ветку" + code "git checkout stage" + h2 "2. Разработка" etc.
|
|
153
|
-
- ENV/CONFIG FILE BLOCKS — CRITICAL: When ALL or MOST lines follow UPPER_SNAKE_CASE=value format (e.g. VITE_APP_NAME=Layers, DB_HOST=localhost, NODE_ENV=production), this is a configuration/env file. Rules:
|
|
154
|
-
1. Output the ENTIRE block as ONE {"type":"code","lang":"dotenv","text":"..."} block.
|
|
155
|
-
2. "# comment" lines within the block are part of the code — NEVER output them as headings or p blocks.
|
|
156
|
-
3. Empty lines between groups of vars → keep inside the single code block (part of the text).
|
|
157
|
-
4. NEVER split env vars into multiple blocks or individual p lines.
|
|
158
|
-
5. Example: "VITE_APP=Layers
|
|
159
|
-
VITE_KEY=<secret>
|
|
160
|
-
|
|
161
|
-
# Sentry
|
|
162
|
-
VITE_DSN=<secret>" → ONE code block (lang:"dotenv") containing all lines.
|
|
163
|
-
- # through ###### → h1-h6. ONLY ONE h1 per document (the main title). All other sections → h2 or lower. ALL CAPS line (>3 chars) → h1 (only if no h1 exists yet, otherwise h2). REMEMBER: "# text" near shell commands = bash comment, NOT heading (see SHELL WORKFLOW BLOCKS above).
|
|
164
|
-
- "---"/"***" → hr. Lines with "|" → table (skip |---| separator rows).
|
|
165
|
-
- HEADINGS — CRITICAL: A short phrase (2-8 words, no ending period) followed by explanatory text, list, or code block is ALWAYS a heading, NEVER a p. Rules:
|
|
166
|
-
1. Standalone short line (10-80 chars, ≥2 words, no ending .!?) → h2.
|
|
167
|
-
2. Short phrase at START of paragraph before a longer sentence or code → split into heading + content.
|
|
168
|
-
3. Lines with decorative emoji at start that match heading criteria (10-80 chars, ≥2 words) → heading WITH the emoji in text. Example: "📘 Инструкция: «Как делать X»" → h1, "🔵 Шаг 1. Настройка" → h2.
|
|
169
|
-
4. NEVER split a single heading into multiple blocks. ALL words of a heading line MUST stay in ONE block. "🔵 Шаг 0. Подготовь гипотезу в формате H1/H0" → ONE h2, NOT two p blocks.
|
|
170
|
-
5. HEADING HIERARCHY — NOT everything is h2! Analyze semantic nesting:
|
|
171
|
-
- Top-level sections under h1 → h2 (major topics like "Монорепозиторий структура", "Path Mapping")
|
|
172
|
-
- Sub-topics that belong INSIDE an h2 section → h3 (e.g. "Основное приложение (apps/layers)" and "Модули (packages/*)" are sub-topics of "Монорепозиторий структура" → h3, not h2)
|
|
173
|
-
- Sibling sections at the same semantic level MUST have the same heading level
|
|
174
|
-
- Example: h1 "Project Architecture" → h2 "Монорепозиторий структура" → h3 "Основное приложение" + h3 "Модули" → h2 "Path Mapping" → h3 "Примеры использования:"
|
|
175
|
-
6. Examples of HEADINGS (not p!): "Монорепозиторий структура", "Основное приложение (apps/layers)", "Path Mapping", "Примеры использования:", "Переменные и функции", "Качество кода", "Системные требования", "📘 Инструкция: «Название»", "🔵 Шаг 0. Описание".
|
|
176
|
-
7. These are NOT headings → regular p: single words (<10 chars), full sentences ending with period, lines >80 chars.
|
|
177
|
-
Single words and lines <10 chars → p.
|
|
178
|
-
- Empty line (double newline) = paragraph break. Each text block separated by empty lines → separate p. NEVER merge multiple paragraphs into one.
|
|
179
|
-
- Long text without empty lines: split into separate p blocks by semantic topic. When subject changes, new argument starts, or a new idea begins → new p. Aim for 2-5 sentences per paragraph. Never output a single giant p for multi-topic text.
|
|
180
|
-
- Everything else → p
|
|
181
|
-
|
|
182
|
-
RULES:
|
|
183
|
-
1. Return ONLY {"blocks":[...]}. No markdown fences, no explanation.
|
|
184
|
-
2. EVERY line of input MUST appear in output VERBATIM. Do NOT skip, drop, summarize, shorten, paraphrase, or rewrite any text. Copy the EXACT original words. You are a formatter, NOT a summarizer.
|
|
185
|
-
3. NEVER remove emoji from text — except callout-trigger emoji (⚠️❗🔥💡ℹ️) which are replaced by the callout icon. All other emoji must stay in text as-is.
|
|
186
|
-
4. ALWAYS split heading phrases from paragraph text.
|
|
187
|
-
5. Callout = single line only. Following lines → separate blocks.
|
|
188
|
-
6. For code blocks: copy the FULL code text verbatim, never truncate.
|
|
189
|
-
7. BLOCK BOUNDARY INTEGRITY: When splitting one input line into multiple blocks (heading+p, callout+p, p+code, etc.), the concatenation of ALL resulting block texts MUST contain EVERY word from the original line. NEVER drop words at split boundaries. Example: "ВАЖНО: Версионирование Не забудьте увеличить minor версию в package.json перед созданием PR!" → callout "Версионирование" + p "Не забудьте увеличить minor версию в package.json перед созданием PR!" — ALL words preserved.`,WN="/v1/smart-paste";function zN(e,n,t=[]){let r=e.trim();const o=r.match(/```(?:json)?\s*([\s\S]*?)```/);o&&(r=o[1].trim());const i=JSON.parse(r);let l=Array.isArray(i)?i:i.blocks||i.children;if(!(l!=null&&l.length))throw new Error("Invalid AI response: empty blocks");return l=e5(l,n),l=$b(l),l=_N(l),Jb(l,[],t)}async function r5(e,n,t=[]){const r=e.slice(0,Ks),o=t5(r),i=Xb(o),l=JSON.stringify({messages:[{role:"system",content:n5},{role:"user",content:i}]});return new Promise((c,d)=>{const f=setTimeout(()=>{d(new Error("AI timeout"))},vh);n(l,h=>{clearTimeout(f);try{const g=zN(h,r,t);c(g)}catch(g){d(g)}},()=>{clearTimeout(f),d(new Error("AI request failed"))})})}function Z1(e,n,t,r,o,i){let l=setTimeout(()=>i(),vh),c=0,d=e.length>Ks;const f=new Set,h=[];let g=!1,C=0;const b=new Map,y=e.slice(0,Ks),x=t5(y),w=Xb(x),k=R=>{clearTimeout(l),l=setTimeout(()=>i(),vh);let N=R;if(Ls(N.type)){N.type==="h1"&&g&&(N={...N,type:"h2"}),N.type==="h1"&&(g=!0);const I=Zc(N.type);if(b.has(I)){const j=b.get(I);N={...N,type:`h${j}`},C=j}else{let j=I;C>0&&I>C+1&&(j=C+1),b.set(I,j),C=j,N={...N,type:`h${j}`}}}const[L]=e5([N],y,h),[M]=$b([L]),S=Jb([M],n);if(t.length>0){const I="text"in M?M.text??"":"";for(let j=0;j<t.length;j++)!f.has(j)&&Qb(I,t[j].anchorText)&&(S.push(Pa(t[j])),f.add(j))}r(S),c++},T=JSON.stringify({messages:[{role:"system",content:n5},{role:"user",content:w}]});fetch(WN,{method:"POST",headers:{"Content-Type":"application/json"},body:T}).then(async R=>{if(!R.ok||!R.body){clearTimeout(l),i();return}const N=R.body.getReader(),L=new TextDecoder;let M="";for(;;){const{done:S,value:I}=await N.read();if(S)break;const j=L.decode(I,{stream:!0});M+=j;const B=M.split(`
|
|
190
|
-
`);M=B.pop()||"";for(const _ of B){const D=_.trim();if(D){if(D==="data: [DONE]"){if(clearTimeout(l),c===0){i();return}if(t.length>0){const O=t.filter((W,K)=>!f.has(K)).map(W=>Pa(W));O.length>0&&r(O)}o(d);return}if(D.startsWith("data: "))try{const O=D.slice(6),W=JSON.parse(O);if(W.error){clearTimeout(l),i({error:W.error,message:W.message});return}if(W.warning==="truncated"){d=!0;continue}k(W)}catch{}}}}if(clearTimeout(l),c===0){i();return}if(t.length>0){const S=t.filter((I,j)=>!f.has(j)).map(I=>Pa(I));S.length>0&&r(S)}o(d)}).catch(()=>{clearTimeout(l),i()})}const KN=Object.freeze(Object.defineProperty({__proto__:null,segmentByAI:r5,segmentByAIStream:Z1},Symbol.toStringTag,{value:"Module"}));function UN(e,n){if(!e||e.length===0)return{valid:!1,reason:"No segments produced"};for(const i of e)if(!hN.has(i.blockType))return{valid:!1,reason:`Unknown block type: ${i.blockType}`};const t=e.map(i=>i.rawText).join(""),r=n.replace(/\r\n/g,`
|
|
191
|
-
`);return t.replace(/\r\n/g,`
|
|
192
|
-
`)!==r?{valid:!1,reason:"Reassembled text does not match original"}:{valid:!0}}function HN(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),i=p.$getRoot();let l=!1;o&&t&&(l=U1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const g=p.$getNodeByKey(t.anchorTopKey),C=(g==null?void 0:g.getTopLevelElement())??g??null;C&&C.isAttached()&&(c=C,d=!0)}if(!c&&r){const g=Al(r);g.length>20&&(c=i.getChildren().find(C=>Qt(C.getTextContent()).includes(g))??null,c&&(d=!0))}if(!c&&l){const g=p.$getSelection();if(!p.$isRangeSelection(g))return;const C=g.anchor.getNode().getTopLevelElement();if(g.removeText(),C&&C.isAttached()&&Gb(C.getTextContent(),r,t==null?void 0:t.tracking))c=C,d=!0;else{const b=g.getNodes()[0];c=b?b.getTopLevelElement():i.getLastChild(),d=!!c}}c||(c=i.getLastChild());let f=c,h=!1;for(const g of n)try{const C=p.$parseSerializedNode(g);!h&&f&&f.getTextContent().trim()===""?(f.replace(C),f=C,h=!0):(f?f.insertAfter(C):i.append(C),f=C)}catch{}(!h&&d&&c&&c.isAttached()||h&&c&&c.isAttached())&&c.remove()})}function $s(e,n){return e._nodes.has(n)}function h2(e){return e.trim().replace(/^#{1,6}\s+/,"")}function p2(e){return e.trim().split(`
|
|
193
|
-
`).map(n=>n.replace(/^>\s?/,"")).join(`
|
|
194
|
-
`)}function m2(e){return e.trim().replace(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*/im,"")}function Ji(e){const n=p.$createParagraphNode();return e.trim()&&n.append(p.$createTextNode(e.trim())),n}function YN(e,n){const t=[];for(const r of e){const o=ZN(r,n);t.push(...o)}return t}function ZN(e,n){switch(e.blockType){case"heading":return GN(e,n);case"bullet-list":return g2(e,"bullet",n);case"number-list":return g2(e,"number",n);case"quote":return VN(e,n);case"code":return qN(e,n);case"callout":return QN(e,n);case"horizontal-rule":return JN(n);case"paragraph":default:return[Ji(e.rawText)]}}function GN(e,n){var o;const t=((o=e.meta)==null?void 0:o.headingLevel)||"h1";if(!$s(n,"heading"))return[Ji(h2(e.rawText))];const r=fn.$createHeadingNode(t);return r.append(p.$createTextNode(h2(e.rawText))),[r]}function g2(e,n,t){var i,l;if(!$s(t,"list"))return(((i=e.meta)==null?void 0:i.listItems)||[e.rawText.trim()]).map(d=>Ji(d));const r=hn(n),o=((l=e.meta)==null?void 0:l.listItems)||[e.rawText.trim()];for(const c of o){const d=_n();d.append(p.$createTextNode(c)),r.append(d)}return[r]}function VN(e,n){if(!$s(n,"quote"))return[Ji(p2(e.rawText))];const t=fn.$createQuoteNode();return t.append(p.$createTextNode(p2(e.rawText))),[t]}function qN(e,n){var l;if(!$s(n,"extend-code"))return[Ji(e.rawText)];const t=((l=e.meta)==null?void 0:l.language)||"plain";let r=e.rawText.trim();const o=r.match(/^```\w*\n([\s\S]*?)```\s*$/);o&&(r=o[1]),r.endsWith(`
|
|
195
|
-
`)&&(r=r.slice(0,-1));const i=new Qn(!1,t);return r&&i.append(p.$createTextNode(r)),[i]}function QN(e,n){var g;if(!$s(n,"callout-wrapper"))return[Ji(m2(e.rawText))];const t=((g=e.meta)==null?void 0:g.calloutType)||"default",{emoji:r,backgroundColor:o,calloutType:i}=Hu(t),l=ll(o||"#f3f3f4",i||"default"),c=pl(r||"e=%F0%9F%99%82"),d=al(),f=p.$createParagraphNode(),h=m2(e.rawText);return h.trim()&&f.append(p.$createTextNode(h.trim())),d.append(f),l.append(c),l.append(d),[l]}function JN(e){return $s(e,"horizontalrule")?[Pi.$createHorizontalRuleNode()]:[Ji("---")]}function XN(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),i=p.$getRoot();let l=!1;o&&t&&(l=U1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const h=p.$getNodeByKey(t.anchorTopKey),g=(h==null?void 0:h.getTopLevelElement())??h??null;g&&g.isAttached()&&(c=g,d=!0)}if(!c&&r){const h=Al(r);h.length>20&&(c=i.getChildren().find(g=>Qt(g.getTextContent()).includes(h))??null,c&&(d=!0))}if(!c&&l){const h=p.$getSelection();if(p.$isRangeSelection(h)){const g=h.anchor.getNode().getTopLevelElement();if(h.removeText(),g&&g.isAttached()&&Gb(g.getTextContent(),r,t==null?void 0:t.tracking))c=g,d=!0;else{const C=h.getNodes()[0];c=C?C.getTopLevelElement():i.getLastChild(),d=!!c}}}c||(c=i.getLastChild());const f=YN(n,e);if(f.length>0){let h=c,g=!1;for(const C of f)!g&&h&&h.getTextContent().trim()===""?(h.replace(C),h=C,g=!0):(h?h.insertAfter(C):i.append(C),h=C);(!g&&d&&c&&c.isAttached()||g&&c&&c.isAttached())&&c.remove()}})}let Bi=Promise.resolve();function Gc(){Bi=Promise.resolve()}function Vc(e){Bi=e}function qc(e){if(!Gt.$isCodeNode(e)&&!yn(e)||!p.$isElementNode(e))return null;const n=e.getChildren();if(n.length===0)return null;const t=[];let r=[];for(const o of n){const i=o.exportJSON();p.$isLineBreakNode(o)?(r.push(i),t.push(r),r=[]):r.push(i)}return r.length>0&&t.push(r),e.clear(),{codeNodeKey:e.getKey(),lines:t}}function wh(e){const n=[],t=[];function r(o){if(p.$isTextNode(o)&&t.push(o),p.$isElementNode(o)){if(Gt.$isCodeNode(o)||yn(o))return;for(const i of o.getChildren())r(i)}}r(e);for(const o of t){const i=o.getTextContent();if(i.trim()){const l=i.split(/\s+/).filter(c=>c);n.push({textNodeKey:o.getKey(),fullText:i,words:l}),o.setTextContent(" ")}}return n}async function kh(e,n){const t=n.words;let r="";for(let o=0;o<t.length;o++)if(await new Promise(i=>setTimeout(i,50)),r+=(o>0?" ":"")+t[o],e.update(()=>{const i=p.$getNodeByKey(n.textNodeKey);i&&i.isAttached()&&(i.setTextContent(r),i.select(r.length,r.length))}),o%10===0||o===t.length-1){const i=e.getElementByKey(n.textNodeKey);i&&i.scrollIntoView({behavior:"smooth",block:"center"})}r!==n.fullText&&e.update(()=>{const o=p.$getNodeByKey(n.textNodeKey);o&&o.isAttached()&&o.setTextContent(n.fullText)})}async function Qc(e,n){for(let t=0;t<n.lines.length;t++)if(await new Promise(r=>setTimeout(r,30)),e.update(()=>{const r=p.$getNodeByKey(n.codeNodeKey);if(!(!r||!p.$isElementNode(r)))for(const o of n.lines[t])try{const i=p.$parseSerializedNode(o);r.append(i)}catch{}},{discrete:!0}),t%3===0||t===n.lines.length-1){const r=e.getElementByKey(n.codeNodeKey);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}}function Jo(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent("smart-paste-telemetry",{detail:e}))}const $N={note:"default",tip:"success",warning:"warning",caution:"alert",important:"alert"};function ej(e){const n=e.replace(/\r\n/g,`
|
|
196
|
-
`),t=[];let r=0;const i=n.replace(/^```(\w*)\n([\s\S]*?)^```\s*$/gm,(d,f,h)=>{const g=`\0CODE_BLOCK_${r++}\0`;return t.push({placeholder:g,content:h,language:f||"plain",fullMatch:d}),g}).split(/(\n\s*\n)/),l=[];for(let d=0;d<i.length;d++)d%2===0?l.push(i[d]):l.length>0?l[l.length-1]+=i[d]:l.push(i[d]);const c=[];for(const d of l){const f=d.trim();if(f.length===0){c.length>0&&(c[c.length-1].rawText+=d);continue}const h=t.find(b=>f===b.placeholder);if(h){c.push({blockType:"code",rawText:d.replace(h.placeholder,h.fullMatch),meta:{language:h.language}});continue}let g=d;for(const b of t)g.includes(b.placeholder)&&(g=g.replace(b.placeholder,b.fullMatch));const C=tj(f,g);c.push(C)}return nj(c)}function tj(e,n){if(/^(---|___|\*\*\*)\s*$/.test(e))return{blockType:"horizontal-rule",rawText:n};const t=e.match(/^(#{1,6})\s+(.*)$/);if(t){const o=`h${t[1].length}`;return{blockType:"heading",rawText:n,meta:{headingLevel:o}}}const r=e.match(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*([\s\S]*)$/im);if(r){const o=$N[r[1].toLowerCase()]||"default";return{blockType:"callout",rawText:n,meta:{calloutType:o}}}if(/^>\s/m.test(e)&&e.split(`
|
|
197
|
-
`).every(i=>i.trim()===""||/^>\s?/.test(i)))return{blockType:"quote",rawText:n};if(/^(\s*[-*+]\s)/m.test(e)){const o=e.split(`
|
|
198
|
-
`);if(o.every(l=>l.trim()===""||/^\s*[-*+]\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*[-*+]\s/,""));return{blockType:"bullet-list",rawText:n,meta:{listItems:l}}}}if(/^(\s*\d+\.\s)/m.test(e)){const o=e.split(`
|
|
199
|
-
`);if(o.every(l=>l.trim()===""||/^\s*\d+\.\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*\d+\.\s/,""));return{blockType:"number-list",rawText:n,meta:{listItems:l}}}}return{blockType:"paragraph",rawText:n}}function nj(e){var t,r;const n=[];for(const o of e){const i=n[n.length-1];i&&i.blockType===o.blockType&&(o.blockType==="bullet-list"||o.blockType==="number-list")?(i.rawText+=o.rawText,i.meta={...i.meta,listItems:[...((t=i.meta)==null?void 0:t.listItems)||[],...((r=o.meta)==null?void 0:r.listItems)||[]]}):n.push({...o})}return n}function Sh(e,n,t,r,o){const i=n.current;i&&(e.setEditorState(i),n.current=null),t();const l=(o==null?void 0:o.error)==="free_trial_exceeded";PC.notifications.show({message:r(l?"editor.smartPaste.freeLimitReached":"editor.smartPaste.fallback"),color:l?"yellow":"red",autoClose:5e3}),l&&window.dispatchEvent(new CustomEvent("smart-paste-free-limit",{detail:{error:o.error,message:o.message}}))}async function rj(e,n,t,r){const{editor:o,fetchSmartPastePrompt:i,serverStreamAvailable:l}=e;let c=!1,d=!1,f;const h=[];let g=null;o.update(()=>{let x=null,w=[],k=[];for(const R of t){const N=p.$getNodeByKey(R);if(!N)continue;const L=N.getType();if(Y1.has(L))x==="paragraph"&&k.length>0&&(h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
200
|
-
`)}),k=[]),x="stable",w.push(H1(N));else{const S=N.getTextContent().trim();if(!S)continue;x==="stable"&&w.length>0&&(h.push({kind:"stable",serializedNodes:w}),w=[]),x="paragraph",k.push(S)}}w.length>0&&h.push({kind:"stable",serializedNodes:w}),k.length>0&&h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
201
|
-
`)});const T=p.$getNodeByKey(t[0]);if(T!=null&&T.isAttached()){const R=T.getPreviousSibling();g=(R==null?void 0:R.getKey())??null}ys(!0);for(const R of t){const N=p.$getNodeByKey(R);N!=null&&N.isAttached()&&N.remove()}},{discrete:!0}),mN(h,r),Gc();const C=async x=>{if(i){const{segmentByAI:w}=await Promise.resolve().then(()=>KN);return w(x.combinedText,i,e.pendingRichElementsRef.current)}throw new Error("No classic AI provider")},b=new Map;if(i)for(let x=0;x<h.length;x++){const w=h[x];if(w.kind==="paragraph"){const k={texts:w.texts,combinedText:w.combinedText};b.set(x,C(k))}}function y(x){if(g){const w=p.$getNodeByKey(g),k=w?w.getTopLevelElement()??w:null;k!=null&&k.isAttached()?k.insertAfter(x):p.$getRoot().append(x)}else{const w=p.$getRoot(),k=w.getFirstChild();k?k.insertBefore(x):w.append(x)}g=x.getKey()}for(let x=0;x<h.length;x++){const w=h[x],k=x;w.kind==="stable"?Vc(Bi.then(async()=>{const T=[];o.update(()=>{for(const R of w.serializedNodes)try{const N=p.$parseSerializedNode(R);y(N);const L=qc(N);L&&T.push(L)}catch{}},{discrete:!0});for(const R of T)await Qc(o,R)})):Vc(Bi.then(async()=>{if(i){let T;try{T=await b.get(k)}catch{return}for(let R=0;R<T.length;R++){const N=T[R],L=[];let M=null;if(o.update(()=>{try{const S=p.$parseSerializedNode(N);y(S),M=qc(S),M||L.push(...wh(S))}catch{}},{discrete:!0}),await new Promise(S=>requestAnimationFrame(S)),M)await Qc(o,M);else for(const S of L)await kh(o,S)}}else if(l){const R=w.combinedText.slice(0,Ks),N=[];let L=!1,M=null;for(Z1(R,e.pendingLinksRef.current,e.pendingRichElementsRef.current,S=>{N.push(S),M&&(M(),M=null)},S=>{S&&(c=!0),L=!0,M&&(M(),M=null)},S=>{d=!0,f=S,L=!0,M&&(M(),M=null)});!L||N.length>0;){if(N.length===0){await new Promise(I=>{M=I});continue}const S=N.shift();for(const I of S){const j=[];let B=null;if(o.update(()=>{try{const _=p.$parseSerializedNode(I);y(_),B=qc(_),B||j.push(...wh(_))}catch{}},{discrete:!0}),await new Promise(_=>requestAnimationFrame(_)),B)await Qc(o,B);else for(const _ of j)await kh(o,_)}}}}))}return Vc(Bi.then(()=>{if(ys(!1),e.setIsProcessing(!1),d){Sh(o,e.preAIEditorStateRef,()=>{e.resetPendingRefs(),e.setPopupMode(null),e.setPendingText("")},e.t,f),Gc();return}e.setPopupMode("confirm"),Gc()})),c}function vc(e){e.setPopupMode(null),e.setPendingText(""),e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]}async function oj(e,n,t){const{editor:r,fetchSmartPastePrompt:o,serverStreamAvailable:i,onTrack:l}=e,c=performance.now();if(l==null||l("smart_paste_processing_started",{choice:n,textLength:t.length}),n==="plain"){vc(e),Jo({choice:"plain",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c});return}try{if(n==="ai"){if(e.pendingClassificationRef.current&&e.pendingInsertedKeysRef.current.length>0){const b=e.pendingClassificationRef.current,y=[...e.pendingInsertedKeysRef.current];e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[];try{const x=await rj({editor:r,fetchSmartPastePrompt:o,pendingLinksRef:e.pendingLinksRef,pendingRichElementsRef:e.pendingRichElementsRef,setIsProcessing:e.setIsProcessing,setPendingText:e.setPendingText,setPopupMode:e.setPopupMode,resetPendingRefs:()=>{e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]},serverStreamAvailable:i,preAIEditorStateRef:e.preAIEditorStateRef,t:e.t},b,y,t);Jo({choice:"ai",textLength:t.length,segmentCount:b.runs.length,processingTimeMs:performance.now()-c,wasTruncated:x}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:b.runs.length})}catch(x){console.warn("[SmartPaste] processNodeBasedAI failed, restoring state",x),ys(!1),e.setIsProcessing(!1),Sh(r,e.preAIEditorStateRef,()=>vc(e),e.t)}return}let g=e.pendingRangeRef.current;if(!g){const b=Vb(r,t);b&&(e.pendingRangeRef.current=b,g=b)}const C=!!o&&(!g||g.tracking==="fallback");if(i&&!C){let b=0,y=null,x=null,w=null,k=!1,T=Promise.resolve();const R=[],N=Al(t),L=N.slice(0,Math.min(N.length,80));r.update(()=>{const M=p.$getRoot(),S=e.pendingRangeRef.current;e.pendingRangeRef.current=null;let I=!1;if(S){const j=(S.insertedTopLevelKeys||[]).map(_=>{const D=p.$getNodeByKey(_);return(D==null?void 0:D.getTopLevelElement())??D??null}).filter(_=>!!(_&&_.isAttached()));if(j.length>0){const[_,...D]=j;x=_,w=_.getKey(),k=!0,I=!0,D.forEach(O=>{O.isAttached()&&O.remove()})}if(!x&&U1(S)){const D=p.$getSelection();p.$isRangeSelection(D)&&D.removeText()}const B=S.anchorTopKey?p.$getNodeByKey(S.anchorTopKey):null;if(B&&B.isAttached()){if(!x){x=B,w=x.getKey();const _=Qt(x.getTextContent());k=S.tracking==="fallback"||L.length>20&&_.includes(L),p.$isElementNode(x)&&S.start.offset===0&&S.end.key===S.start.key&&x.clear()}}else{const _=p.$getSelection(),D=_==null?void 0:_.getNodes()[0];if(x=(D==null?void 0:D.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const O=Qt(x.getTextContent());k=L.length>20&&O.includes(L)}}y=x??M.getLastChild()}else{const j=p.$getSelection();p.$isRangeSelection(j)&&j.removeText();const B=j==null?void 0:j.getNodes()[0];if(x=(B==null?void 0:B.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const _=Qt(x.getTextContent());k=L.length>20&&_.includes(L)}else if(L.length>20){const _=M.getChildren().find(D=>Qt(D.getTextContent()).includes(L))??null;_&&(x=_,w=_.getKey(),k=!0)}y=x??M.getLastChild()}if((S==null?void 0:S.tracking)==="fallback"&&x&&x.isAttached()){const j=x.getTopLevelElement()??x,B=M.getChildren(),_=B.findIndex(D=>D.getKey()===j.getKey());if(_>=0){const D=Qt(t);let O=Qt(j.getTextContent());const W=[];if(O&&D.startsWith(O))for(let K=_+1;K<B.length;K+=1){const F=B[K],Y=Qt(F.getTextContent());if(!Y)continue;const q=Qt(`${O} ${Y}`);if(D.startsWith(q)){W.push(F),O=q;continue}break}W.length>0&&W.forEach(K=>{K.isAttached()&&K.remove()})}}if((S==null?void 0:S.tracking)==="fallback"&&L.length>20&&x&&x.isAttached()){const j=x.getTopLevelElement()??x,B=M.getChildren(),_=B.findIndex(D=>D.getKey()===j.getKey());if(_>0){const D=B.slice(0,_),O=Qt(t);let W=D.findIndex(K=>Qt(K.getTextContent()).includes(L));if(W<0&&D.length>0){const K=Qt(D[0].getTextContent());K&&O.startsWith(K)&&(W=0)}if(W>=0){const K=[];let F="";for(let Y=W;Y<D.length;Y+=1){const q=Qt(D[Y].getTextContent()),ee=Qt(`${F} ${q}`);if(O.startsWith(ee)||O.includes(ee)){K.push(D[Y]),F=ee;continue}break}K.length>0&&K.forEach(Y=>{Y.isAttached()&&Y.remove()})}}}I&&x&&x.isAttached()&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""))}),ys(!0),Z1(t,e.pendingLinksRef.current,e.pendingRichElementsRef.current,M=>{Vc(Bi.then(async()=>{const S=[],I=[],j=[];let B=b===0;if(r.update(()=>{B&&k&&x&&x.isAttached()&&x.getTextContent().trim()!==""&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""));for(const _ of M)try{const D=p.$parseSerializedNode(_);if(B&&x&&x.isAttached()&&x.getTextContent().trim()==="")x.replace(D),y=D,x=null,B=!1;else{const K=y?y.getTopLevelElement()??y:null;K&&K.isAttached()?K.insertAfter(D):p.$getRoot().append(D),y=D,B=!1}b++;const O=D.getKey();S.push(O);const W=qc(D);if(W)j.push(W);else{const K=wh(D);I.push(...K)}}catch{}p.$getRoot().selectEnd()},{discrete:!0}),R.push(...S),await new Promise(_=>requestAnimationFrame(_)),await new Promise(_=>requestAnimationFrame(_)),S.length>0){const _=S[0],D=r.getElementByKey(_);D&&D.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}for(const _ of j)await Qc(r,_);for(const _ of I)await kh(r,_)})),T=Bi},async M=>{await T,Gc(),r.update(()=>{var j,B;let S=!1;if(L.length>20&&R.length>0){const _=p.$getRoot(),D=(j=R.map(O=>{const W=p.$getNodeByKey(O);return(W==null?void 0:W.getTopLevelElement())??W??null}).find(Boolean))==null?void 0:j.getKey();if(D){const O=_.getChildren(),W=O.findIndex(K=>K.getKey()===D);if(W>0){const K=O.slice(0,W),F=Qt(t);let Y=K.findIndex(q=>Qt(q.getTextContent()).includes(L));if(Y<0&&K.length>0){const q=Qt(K[0].getTextContent());q&&F.startsWith(q)&&(Y=0)}if(Y>=0){const q=[];let ee="";for(let Q=Y;Q<K.length;Q++){const J=Qt(K[Q].getTextContent()),xe=Qt(`${ee} ${J}`);if(F.startsWith(xe)||F.includes(xe)){q.push(K[Q]),ee=xe;continue}break}q.forEach(Q=>{Q.isAttached()&&Q.remove()}),S=!0}}}}const I=w?((B=p.$getNodeByKey(w))==null?void 0:B.getTopLevelElement())??p.$getNodeByKey(w):null;if(!S&&I&&I.isAttached()&&b>0&&k){I.remove();return}I&&I.isAttached()&&I.getTextContent().trim()===""&&p.$getRoot().getChildrenSize()>1&&I.remove()}),Jo({choice:"ai",textLength:t.length,segmentCount:b,processingTimeMs:performance.now()-c,wasTruncated:M}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:b}),ys(!1),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"})},M=>{const S=(M==null?void 0:M.error)??"AI stream failed";Jo({choice:"ai",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:S}),l==null||l("smart_paste_processing_failed",{choice:"ai",fallbackReason:S}),ys(!1),e.setIsProcessing(!1),Sh(r,e.preAIEditorStateRef,()=>vc(e),e.t,M)});return}if(o){const b=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const y=await r5(t,o,e.pendingRichElementsRef.current);HN(r,y,b,t),Jo({choice:"ai",textLength:t.length,segmentCount:y.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:y.length}),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"});return}}const d=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const f=ej(t);UN(f,t).valid?(XN(r,f,d,t),Jo({choice:"rules",textLength:t.length,segmentCount:f.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"rules",processingTimeMs:Math.round(performance.now()-c),segmentCount:f.length})):(Jo({choice:"rules",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:"Validation failed for rules engine"}),l==null||l("smart_paste_processing_failed",{choice:"rules",fallbackReason:"Validation failed for rules engine"}))}catch(d){const f=`Error: ${d instanceof Error?d.message:String(d)}`;Jo({choice:n,textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:f}),l==null||l("smart_paste_processing_failed",{choice:n,fallbackReason:f})}finally{n!=="ai"&&(e.setIsProcessing(!1),vc(e))}}m.createContext(null);const ij={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},sj=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},C)=>{const b=t!==void 0?r?Number(t)*24/Number(n):t:void 0,y=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},x={ref:C,...ij,width:n,height:n,color:d||e,className:o,...y,...g},k=[...l&&i?i:c].sort(([,T],[,R])=>{const N=T.opacity!==void 0;return R.opacity!==void 0?1:N?-1:0}).map(([T,R])=>{const N=R.opacity!==void 0,L=N&&!h?R.opacity:void 0,M=f?{...R.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...R,...y,...M,opacity:L,key:R.key})});return m.createElement("svg",x,k)});sj.displayName="HugeiconsIcon";p.createCommand("INSERT_VIDEO_COMMAND");p.createCommand("UPLOAD_VIDEO_COMMAND");function aj(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const i=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(i)return{platform:"download",id:i[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}const lj=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}];lj.reduce((e,n)=>(e[n.value]=n.label,e),{});function cj(e){var r,o;let n=e.previousSibling;for(;n;){const i=(r=n.textContent)==null?void 0:r.trim();if(i)return i;n=n.previousSibling}let t=e.parentElement;for(;t&&t!==t.ownerDocument.body;){let i=t.previousElementSibling;for(;i;){const l=(o=i.textContent)==null?void 0:o.trim();if(l)return l;i=i.previousElementSibling}t=t.parentElement}return""}function uj(e){if(!e)return[];try{const t=new DOMParser().parseFromString(e,"text/html"),r=[];return t.querySelectorAll("img, iframe").forEach(o=>{const i=cj(o);if(o.tagName==="IMG"){const l=o,c=l.src;if(!c||c.startsWith("file:///")||c===window.location.href)return;r.push({kind:"image",src:c,altText:l.alt||"",width:l.getAttribute("width")||void 0,height:l.getAttribute("height")||void 0,anchorText:i});return}if(o.tagName==="IFRAME"){const l=o,c=l.getAttribute("src")||"";if(!c)return;const d=l.getAttribute("width")||void 0,f=l.getAttribute("height")||void 0,h=aj(c);if(h.id&&h.platform!=="download"&&h.platform!=="upload"&&h.platform!=="unknown"&&h.platform!=="link"){r.push({kind:"video",src:c,platform:h.platform,mediaId:h.id,width:d,height:f,anchorText:i});return}const g=Tb(c);g.id&&g.platform!=="unknown"&&r.push({kind:"embed",src:c,platform:g.platform,mediaId:g.id,width:d,height:f,anchorText:i})}}),r}catch{return[]}}function dj(e){if(!e)return[];try{const r=new DOMParser().parseFromString(e,"text/html").querySelectorAll("a[href]"),o=[];return r.forEach(i=>{var d;const l=(d=i.textContent)==null?void 0:d.trim(),c=i.getAttribute("href");l&&c&&o.push({text:l,url:c})}),o}catch{return[]}}function fj(){const[e]=ot.useLexicalComposerContext(),{fetchSmartPastePrompt:n,onTrack:t}=m.useContext(ft),{t:r}=Ue.useTranslation(),o=!0,i=m.useRef(null);m.useEffect(()=>{dN(),cN().then(ee=>{i.current=ee.smartPasteEnabled}).catch(()=>{i.current=!0})},[]);const[l,c]=m.useState(null),[d,f]=m.useState(""),[h,g]=m.useState(!1),[C,b]=m.useState(null),y=m.useRef(null),x=m.useRef([]),w=m.useRef([]),k=m.useRef(null),T=m.useRef(null),R=m.useRef([]),N=m.useRef(!1),L=m.useCallback(()=>{y.current=null,f(""),x.current=[],w.current=[],k.current=null,T.current=null,R.current=[]},[]),M=m.useCallback(()=>({editor:e,fetchSmartPastePrompt:n,serverStreamAvailable:o,onTrack:t,pendingLinksRef:x,pendingRichElementsRef:w,pendingRangeRef:k,pendingClassificationRef:T,pendingInsertedKeysRef:R,preAIEditorStateRef:y,setPendingText:f,setIsProcessing:g,setPopupMode:c,t:r}),[e,n,o,t,r]),S=m.useCallback((ee,Q)=>{oj(M(),ee,Q)},[M]),I=m.useCallback(()=>{var xe;const ee=we=>{let Te=e.getElementByKey(we);return Te||e.read(()=>{var X;const We=p.$getNodeByKey(we),ie=(X=We==null?void 0:We.getTopLevelElement)==null?void 0:X.call(We);ie&&(Te=e.getElementByKey(ie.getKey()))}),Te},Q=R.current.at(-1)??((xe=k.current)==null?void 0:xe.end.key);if(Q){const we=ee(Q);if(we)return we}let J=null;return e.read(()=>{const we=p.$getRoot().getChildren();for(let Te=we.length-1;Te>=0;Te--){const We=e.getElementByKey(we[Te].getKey());if(We){J=We;break}}}),J},[e]),j=m.useCallback(()=>{const ee=I();ee&&ee.scrollIntoView({block:"end",inline:"nearest"})},[I]),B=m.useCallback(()=>{const ee=I();if(ee){const xe=ee.getBoundingClientRect();return{left:xe.left,top:xe.bottom}}const Q=window.getSelection();if(Q&&Q.rangeCount>0){const xe=Q.getRangeAt(0).getBoundingClientRect();if(xe.width||xe.height)return{left:xe.left,top:xe.bottom}}const J=e.getRootElement();if(J){const xe=J.getBoundingClientRect();return{left:xe.left,top:xe.bottom}}return{left:100,top:100}},[e,I]),_=m.useCallback(()=>{const ee=B();b(ee),c("choose"),t==null||t("smart_paste_popup_shown",{mode:"choose"}),requestAnimationFrame(()=>{const Q=B();b(Q)})},[B,t]);m.useEffect(()=>{const ee=e.registerCommand(p.PASTE_COMMAND,Q=>{var pe,Ce,G,he,oe;if(!i.current||(pe=Q.clipboardData)!=null&&pe.files&&Q.clipboardData.files.length>0)return!1;const J=(Ce=Q.clipboardData)==null?void 0:Ce.getData("application/x-lexical-editor");if(J){try{const H=JSON.parse(J),Z=H.nodes??H;if(Array.isArray(Z)&&Z.length>0){if(Z.some(Oe=>typeof(Oe==null?void 0:Oe.text)=="string"||(Oe==null?void 0:Oe.type)==="linebreak"||(Oe==null?void 0:Oe.type)==="tab"))return!1;const fe=i2(Z);if(!fe.hasParagraphRuns||!fe.hasStructuralSignals)return!1;Q.preventDefault();const ge=[];e.update(()=>{const Oe=p.$getSelection();p.$isRangeSelection(Oe)&&Oe.removeText();for(const ce of Z)try{const Le=p.$parseSerializedNode(ce);p.$getRoot().append(Le),ge.push(Le.getKey())}catch{}},{discrete:!0}),T.current=fe,R.current=ge;const Re=((G=Q.clipboardData)==null?void 0:G.getData("text/plain"))||"";return f(Re||Z.map(Oe=>Us(Oe)).join(`
|
|
202
|
-
`)),j(),_(),!0}}catch{}return!1}const xe=p.$getSelection();if(p.$isRangeSelection(xe)){const H=xe.anchor.getNode();if(ve.$findMatchingParent(H,re=>Gt.$isCodeNode(re)||yn(re))!==null)return!1}const we=((he=Q.clipboardData)==null?void 0:he.getData("text/plain"))||"";if(!we.trim())return!1;const Te=we.trim(),We=Te.split(`
|
|
203
|
-
`).filter(H=>H.trim()).length;if(Te.length<Zb&&We<fN)return!1;const ie=((oe=Q.clipboardData)==null?void 0:oe.getData("text/html"))||"";x.current=dj(ie),w.current=uj(ie),Q.preventDefault();try{const H=pN(e,we,ie);if(H){if(k.current=H,ie&&H.insertedTopLevelKeys&&H.insertedTopLevelKeys.length>0&&(n||o))try{let Z=[];for(const re of H.insertedTopLevelKeys){const fe=p.$getNodeByKey(re);fe&&Z.push(H1(fe))}if(Z.length>0){const re=i2(Z);re.hasParagraphRuns&&(T.current=re,R.current=[...H.insertedTopLevelKeys])}}catch{}}else{const Z=Vb(e,we);k.current=Z}}catch{}f(we),j();let X=null;try{const H=localStorage.getItem(r2);H==="ai"||H==="plain"?X=H:H==="rules"&&localStorage.removeItem(r2)}catch{}const ae=we.length>Ks;return X&&!(X==="ai"&&ae)?(X==="ai"&&(y.current=e.getEditorState().clone(),g(!0)),S(X,we),!0):(_(),!0)},p.COMMAND_PRIORITY_HIGH);return()=>{ee(),x.current=[],k.current=null,T.current=null,R.current=[]}},[e,n,o,S,_,j]),m.useEffect(()=>{if(l!=="confirm")return;const ee=B();b(ee),requestAnimationFrame(()=>{b(B())})},[e,l,B]),m.useEffect(()=>{if(!l||h)return;const ee=e.registerCommand(p.KEY_DOWN_COMMAND,Q=>(Q.defaultPrevented||Q.ctrlKey||Q.metaKey||Q.altKey||!(Q.isComposing||Q.key.length===1||Q.key==="Enter"||Q.key==="Backspace"||Q.key==="Delete"||Q.key==="Tab")||(c(null),L()),!1),p.COMMAND_PRIORITY_HIGH);return()=>{ee()}},[e,h,l,L]);const D=m.useCallback(()=>{if(!h){if(N.current){N.current=!1;return}t==null||t("smart_paste_popup_dismissed",{mode:l}),c(null),L()}},[h,l,t,L]),O=m.useCallback(()=>{d&&(N.current=!0,t==null||t("smart_paste_choice_made",{choice:"ai"}),y.current=e.getEditorState().clone(),g(!0),c(null),S("ai",d))},[e,d,S,t]),W=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_choice_made",{choice:"plain"}),c(null),S("plain",d)},[d,S,t]),K=m.useCallback(()=>{t==null||t("smart_paste_choice_made",{choice:"disabled"}),i.current=!1,uN({smartPasteEnabled:!1}).catch(()=>{}),W()},[W,t]),F=m.useCallback(()=>{At.isFeatureRated(o2)||At.showFeatureFeedback({feature:o2,title:r("editor.smartPaste.feedbackTitle"),delay:5})},[r]),Y=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_accepted"),c(null),L(),F()},[L,t,F]),q=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_discarded");const ee=y.current;ee&&e.setEditorState(ee),c(null),L(),F()},[e,L,t,F]);return{popupMode:l,isProcessing:h,anchorPosition:C,excessChars:Math.max(0,d.length-Ks),onClose:D,onApply:O,onDismiss:W,onDontShowAgain:K,onAccept:Y,onDiscard:q}}function hj({visible:e,containerSelector:n}){const[t]=ot.useLexicalComposerContext(),[r,o]=m.useState(null);return m.useEffect(()=>{if(!e){o(null);return}const i=t.getRootElement();if(!i)return;const l=h=>i.closest(h)??document.querySelector(h),c=n&&l(n)||l(".editor-scroller");if(!c)return;const d=()=>o(c.getBoundingClientRect());d();const f=new ResizeObserver(d);return f.observe(c),window.addEventListener("scroll",d,!0),window.addEventListener("resize",d),()=>{f.disconnect(),window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)}},[t,e,n]),!e||!r?null:s.jsxs("div",{className:"smart-paste-gradient-border",style:{left:r.left,top:r.top,width:r.width,height:r.height},children:[s.jsx("div",{className:"smart-paste-border"}),s.jsx("div",{className:"smart-paste-glow"})]})}const pj=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[s.jsx("path",{d:"M13.666 2.5L13.666 3.51302C13.666 5.77556 13.6666 6.18491 13.5026 7.53646C13.3375 8.8974 12.9983 9.93817 12.2617 10.7546C11.5184 11.5783 10.5594 11.9646 9.30794 12.151C8.07654 12.3345 6.4926 12.3333 4.45508 12.3333L3.83268 12.3333C3.55654 12.3333 3.33268 12.1095 3.33268 11.8333C3.33268 11.5572 3.55654 11.3333 3.83268 11.3333L4.45508 11.3333C6.52366 11.3333 8.0195 11.332 9.16016 11.1621C10.2807 10.9952 10.9866 10.6745 11.5189 10.0846C12.0578 9.48738 12.3566 8.68359 12.5104 7.41602C12.6654 6.13877 12.666 5.80113 12.666 3.51302L12.666 2.5C12.666 2.22386 12.8899 2 13.166 2C13.4422 2 13.666 2.22386 13.666 2.5Z",fill:"#868E96"}),s.jsx("path",{d:"M5.52484 14.1817C5.33243 14.3796 5.01583 14.3843 4.8178 14.1921C4.74012 14.1166 4.58915 13.996 4.37379 13.8268C4.16984 13.6666 3.9241 13.475 3.69085 13.2774C3.45977 13.0815 3.22345 12.8651 3.04111 12.6511C2.94976 12.5438 2.86148 12.4255 2.79437 12.3001C2.72937 12.1787 2.66611 12.0172 2.66611 11.8333C2.66611 11.6495 2.72937 11.488 2.79437 11.3666C2.86148 11.2412 2.94976 11.1229 3.04111 11.0156C3.22345 10.8016 3.45977 10.5852 3.69085 10.3893C3.9241 10.1917 4.16984 10.0001 4.37379 9.83986C4.58915 9.6707 4.74012 9.55014 4.81781 9.47462C5.01583 9.28235 5.33243 9.2871 5.52484 9.48504C5.71711 9.68306 5.71236 9.99966 5.51442 10.1921C5.38982 10.3131 5.18909 10.4712 4.99163 10.6263C4.78276 10.7904 4.55337 10.9693 4.33734 11.1524C4.11917 11.3372 3.93152 11.5122 3.80218 11.6641C3.74074 11.7362 3.70275 11.7931 3.68044 11.8333C3.70275 11.8736 3.74074 11.9305 3.80218 12.0026C3.93152 12.1545 4.11917 12.3295 4.33734 12.5143C4.55337 12.6974 4.78276 12.8763 4.99163 13.0404C5.18909 13.1955 5.38982 13.3535 5.51442 13.4746C5.71236 13.667 5.71711 13.9836 5.52484 14.1817Z",fill:"#868E96"})]}),mj=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[s.jsx("path",{d:"M9.65765 4.62598C9.99776 4.45762 10.3977 4.45755 10.7377 4.62598C10.9348 4.72374 11.1005 4.89892 11.267 5.06543C11.4128 5.2112 11.5652 5.35646 11.6664 5.52246L11.7065 5.5957L11.7621 5.72559C11.8727 6.03457 11.8539 6.37814 11.7065 6.67578C11.6331 6.82375 11.5161 6.95393 11.392 7.08008L4.07952 14.3926C3.95337 14.5167 3.82318 14.6337 3.67523 14.707C3.33507 14.8755 2.93529 14.8755 2.59515 14.707C2.39802 14.6093 2.23243 14.4341 2.06585 14.2676C1.89922 14.1009 1.72419 13.9346 1.6264 13.7373C1.45793 13.3971 1.45781 12.9974 1.6264 12.6572C1.6998 12.5094 1.81686 12.3789 1.94085 12.2529L9.25335 4.94043C9.37936 4.81646 9.50975 4.69929 9.65765 4.62598ZM2.77288 12.835C2.67136 12.9365 2.60954 12.9989 2.56585 13.0479C2.53594 13.0814 2.52559 13.0972 2.52288 13.1016C2.49294 13.162 2.49288 13.2334 2.52288 13.2939C2.52568 13.2985 2.53592 13.3151 2.56585 13.3486C2.60957 13.3976 2.6715 13.4591 2.77288 13.5605C2.87416 13.6618 2.93591 13.7229 2.9848 13.7666C3.01794 13.7962 3.03379 13.8076 3.03851 13.8105C3.08378 13.833 3.13577 13.8383 3.18402 13.8271L3.23187 13.8105C3.23651 13.8076 3.2523 13.7963 3.28558 13.7666C3.33446 13.7229 3.39622 13.6618 3.49749 13.5605L8.6264 8.43262L7.90081 7.70703L2.77288 12.835ZM12.9994 7.83301C13.2087 7.83301 13.3956 7.96395 13.4682 8.16016L13.5414 8.3584C13.5924 8.4961 13.6216 8.57182 13.6469 8.62598C13.6684 8.67195 13.6739 8.67346 13.6664 8.66602L13.7065 8.68652C13.7606 8.7118 13.8363 8.74001 13.9741 8.79102L14.1723 8.86426C14.3684 8.93682 14.4993 9.1239 14.4994 9.33301C14.4994 9.54224 14.3685 9.72916 14.1723 9.80176L13.9741 9.87598C13.8363 9.92696 13.7606 9.9552 13.7065 9.98047L13.6664 10.001C13.6739 9.99355 13.6683 9.99439 13.6469 10.04C13.6216 10.0942 13.5924 10.1698 13.5414 10.3076L13.4682 10.5068C13.3955 10.7029 13.2086 10.833 12.9994 10.833C12.7904 10.8329 12.6033 10.7029 12.5307 10.5068L12.4575 10.3076C12.4065 10.1699 12.3773 10.0942 12.352 10.04L12.3325 10.001C12.3396 10.008 12.3379 10.0017 12.2924 9.98047C12.2383 9.9552 12.1626 9.92698 12.0248 9.87598L11.8266 9.80176C11.6304 9.72916 11.4994 9.54224 11.4994 9.33301C11.4996 9.1239 11.6305 8.93682 11.8266 8.86426L12.0248 8.79102C12.1625 8.74006 12.2383 8.71178 12.2924 8.68652C12.3382 8.66513 12.3398 8.6587 12.3325 8.66602L12.352 8.62598C12.3773 8.57181 12.4064 8.49621 12.4575 8.3584L12.5307 8.16016L12.5629 8.08887C12.6503 7.93274 12.8166 7.83307 12.9994 7.83301ZM10.2465 5.50586C10.1981 5.49453 10.1464 5.49996 10.101 5.52246C10.0969 5.52496 10.0815 5.53587 10.0473 5.56641C9.99843 5.61004 9.93666 5.67117 9.83538 5.77246L8.60784 7L9.33343 7.72559L10.56 6.49805C10.6615 6.39655 10.7233 6.33507 10.767 6.28613C10.7974 6.25207 10.8074 6.23564 10.81 6.23145L10.8276 6.18457C10.8387 6.13639 10.8323 6.08527 10.81 6.04004V6.03906C10.8071 6.03443 10.7964 6.01834 10.767 5.98535C10.7233 5.93641 10.6615 5.87393 10.56 5.77246C10.4587 5.67122 10.397 5.61008 10.3481 5.56641C10.3131 5.53521 10.2971 5.5248 10.2934 5.52246L10.2465 5.50586ZM6.99945 1.16699C7.20857 1.16699 7.39551 1.29711 7.4682 1.49316L7.54144 1.69238C7.59245 1.83019 7.62163 1.90582 7.64691 1.95996C7.66825 2.00558 7.67386 2.00645 7.66644 1.99902C7.65945 1.99221 7.66154 1.99853 7.70648 2.01953C7.76059 2.04479 7.83634 2.07306 7.97405 2.12402L8.17327 2.19824C8.36931 2.27094 8.49945 2.45789 8.49945 2.66699C8.49931 2.87596 8.36921 3.06309 8.17327 3.13574L7.97405 3.20898C7.83627 3.25997 7.7606 3.28821 7.70648 3.31348C7.66107 3.33469 7.65925 3.34106 7.66644 3.33398C7.67388 3.32654 7.66837 3.32808 7.64691 3.37402C7.62165 3.42816 7.59241 3.50389 7.54144 3.6416L7.4682 3.83984C7.39559 4.03606 7.20867 4.16699 6.99945 4.16699C6.79027 4.16692 6.60327 4.03604 6.5307 3.83984L6.45745 3.6416C6.40644 3.50378 6.37726 3.42817 6.35198 3.37402C6.33052 3.32808 6.32501 3.32654 6.33245 3.33398C6.3398 3.3413 6.33815 3.33485 6.29241 3.31348C6.2383 3.28824 6.16249 3.25992 6.02484 3.20898L5.82562 3.13574C5.62971 3.06308 5.49958 2.87595 5.49945 2.66699C5.49945 2.45798 5.62972 2.271 5.82562 2.19824L6.02484 2.12402C6.1626 2.07305 6.23829 2.04478 6.29241 2.01953C6.33781 1.99832 6.33962 1.99197 6.33245 1.99902C6.32504 2.00644 6.33069 2.00546 6.35198 1.95996C6.37725 1.90584 6.40647 1.83012 6.45745 1.69238L6.5307 1.49316L6.56292 1.42285C6.65022 1.26655 6.81646 1.16705 6.99945 1.16699ZM12.9994 1.16699C13.2086 1.16699 13.3955 1.29711 13.4682 1.49316L13.5414 1.69238C13.5924 1.83019 13.6216 1.90582 13.6469 1.95996C13.6682 2.00558 13.6739 2.00645 13.6664 1.99902C13.6595 1.99221 13.6615 1.99853 13.7065 2.01953C13.7606 2.04479 13.8363 2.07306 13.9741 2.12402L14.1733 2.19824C14.3693 2.27094 14.4994 2.45789 14.4994 2.66699C14.4993 2.87596 14.3692 3.06309 14.1733 3.13574L13.9741 3.20898C13.8363 3.25997 13.7606 3.28821 13.7065 3.31348C13.6611 3.33469 13.6593 3.34106 13.6664 3.33398C13.6739 3.32654 13.6684 3.32808 13.6469 3.37402C13.6216 3.42816 13.5924 3.50389 13.5414 3.6416L13.4682 3.83984C13.3956 4.03606 13.2087 4.16699 12.9994 4.16699C12.7903 4.16692 12.6033 4.03604 12.5307 3.83984L12.4575 3.6416C12.4064 3.50378 12.3773 3.42817 12.352 3.37402C12.3305 3.32808 12.325 3.32654 12.3325 3.33398C12.3398 3.3413 12.3382 3.33485 12.2924 3.31348C12.2383 3.28824 12.1625 3.25992 12.0248 3.20898L11.8256 3.13574C11.6297 3.06308 11.4996 2.87595 11.4994 2.66699C11.4994 2.45798 11.6297 2.271 11.8256 2.19824L12.0248 2.12402C12.1626 2.07305 12.2383 2.04479 12.2924 2.01953C12.3378 1.99831 12.3396 1.99194 12.3325 1.99902C12.325 2.00644 12.3307 2.00546 12.352 1.95996C12.3773 1.90584 12.4065 1.83012 12.4575 1.69238L12.5307 1.49316L12.5629 1.42285C12.6502 1.26655 12.8165 1.16705 12.9994 1.16699Z",fill:"url(#smartPasteAiGrad)"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"smartPasteAiGrad",x1:"1.5",y1:"8.00019",x2:"14.4994",y2:"8.00019",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#BE4BDB"}),s.jsx("stop",{offset:"0.360577",stopColor:"#E64980"}),s.jsx("stop",{offset:"0.990385",stopColor:"#FAB005"})]})})]});function gj({mode:e,anchorPosition:n,excessChars:t=0,onClose:r,onApply:o,onDismiss:i,onDontShowAgain:l,onAccept:c,onDiscard:d}){const{t:f}=Ue.useTranslation(),h=t>0,g=s.jsx(v.Menu.Item,{onClick:h?void 0:o,leftSection:s.jsx(mj,{}),disabled:h,className:"smart-paste-ai-gradient-item",children:s.jsx("span",{className:"smart-paste-ai-gradient",children:f("editor.smartPaste.aiButton")})});return s.jsxs(v.Menu,{opened:e!==null&&n!==null,onClose:r,position:"bottom-start",offset:8,transitionProps:Fn,zIndex:999,shadow:"0px 10px 10px -5px rgba(0,0,0,0.15), 0px 0px 40px 0px rgba(0,0,0,0.1)",radius:12,styles:{dropdown:{minWidth:e==="confirm"?200:176,padding:5},item:{padding:"6px 12px",lineHeight:1.45,height:32},divider:{margin:"3.5px 0"}},children:[s.jsx(v.Menu.Target,{children:s.jsx("div",{style:{position:"fixed",left:(n==null?void 0:n.left)??0,top:(n==null?void 0:n.top)??0,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),s.jsxs(v.Menu.Dropdown,{children:[e==="choose"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{onClick:i,leftSection:s.jsx(pj,{}),children:f("editor.smartPaste.plainButton")}),h?s.jsx(v.Tooltip,{label:f("editor.smartPaste.textTooLong",{max:"10,000",excess:t.toLocaleString()}),position:"left",multiline:!0,maw:250,withArrow:!0,children:g}):g,s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{onClick:l,leftSection:s.jsx($,{icon:h1,size:16,color:"var(--gray-gray-text, #868E96)"}),style:{color:"var(--gray-gray-text, #868E96)"},children:f("editor.smartPaste.dontShowAgain")})]}),e==="confirm"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{onClick:c,leftSection:s.jsx($,{icon:Jn,size:16}),children:f("editor.smartPaste.accept")}),s.jsx(v.Menu.Item,{onClick:d,leftSection:s.jsx($,{icon:u1,size:16}),children:f("editor.smartPaste.discard")})]})]})]})}function Cj({containerSelector:e}){const n=fj();return s.jsxs(s.Fragment,{children:[s.jsx(hj,{visible:n.isProcessing,containerSelector:e}),s.jsx(gj,{mode:n.popupMode,anchorPosition:n.anchorPosition,excessChars:n.excessChars,onClose:n.onClose,onApply:n.onApply,onDismiss:n.onDismiss,onDontShowAgain:n.onDontShowAgain,onAccept:n.onAccept,onDiscard:n.onDiscard})]})}const Aj=1,bj=100;let o5=0,C2=!1;function yj(e){e.addEventListener("keydown",n=>{n.key==="Tab"&&(n.preventDefault(),o5=n.timeStamp)},!0)}function xj(e){if(!C2){const n=e.getRootElement();n&&yj(n),C2=!0}return e.registerCommand(p.FOCUS_COMMAND,n=>{const t=p.$getSelection();return p.$isRangeSelection(t)&&o5+bj>n.timeStamp&&p.$setSelection(t.clone()),!1},Aj)}function vj(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>xj(e),[e]),null}function wj(e,n){const t=e.anchor,r=e.focus,i=(r.isBefore(t)?r:t).getNode(),l=ve.$getNearestBlockElementAncestorOrThrow(i);if(!n&&l.__prev===null)return!0;l instanceof On&&!l.__opened&&l.setOpened(!0);const c=d=>{const f=d.getNextSibling(),h=f==null?void 0:f.getFirstChild();(h==null?void 0:h.__type)==="list"&&h.getChildren().forEach(C=>{C instanceof On&&(c(C),C.setIndent(Math.max(0,C.getIndent()-1)))})};return n&&c(l),!1}function kj(e){return e.registerCommand(p.KEY_TAB_COMMAND,n=>{const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;try{if(wj(t,n.shiftKey))return!1;n.preventDefault();const o=n.shiftKey?p.OUTDENT_CONTENT_COMMAND:p.INDENT_CONTENT_COMMAND;return e.dispatchCommand(o,void 0)}catch{return!1}},p.COMMAND_PRIORITY_EDITOR)}function Sj(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>kj(e)),null}const G1=()=>!!document.querySelector(".selected-all-document");function Ej(){const[e]=ot.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ft),t=m.useCallback(()=>{const r=en(),{lexicalNode:o}=Os(r,e,{"callout-wrapper":!0});return o&&p.$isElementNode(o)&&o.getChildren().length===1&&e.update(()=>{const i=p.$createParagraphNode();i.append(p.$createTextNode(""));const l=o.getParent();l&&(l.replace(i),i.selectStart())}),!1},[e]);m.useEffect(()=>{n!=null&&n.current&&(n.current.onDeleteCallout=t)},[n,t]),m.useEffect(()=>{if(!e.hasNodes([Vi,Ro,Qr]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return ve.mergeRegister(e.registerMutationListener(Qr,r=>{e.getEditorState().read(()=>{for(const[o,i]of r)if(i==="destroyed"){const l=Number(o),c=String(l-1);e.update(()=>{const d=p.$getNodeByKey(c);if(d&&fo(d)){const f=d.getChildren();for(const h of f)d==null||d.insertBefore(h);d.remove()}},{tag:p.HISTORY_MERGE_TAG})}})}),e.registerCommand(Nu,r=>{const{emoji:o,backgroundColor:i,calloutType:l}=Hu(r);let c=p.$getSelection();if(p.$isNodeSelection(c)&&(_u(c),c=p.$getSelection()),!p.$isRangeSelection(c))return!1;const d=db(c);if(d.length===0)return!1;const f=d[0],h=f.getParent();return fn.$isQuoteNode(f)||h!=null&&fn.$isQuoteNode(h)?(dn.$setBlocksType(c,nE(o,i,l),iE),!0):oE(c,o,i,l)},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.KEY_DELETE_COMMAND,t,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,()=>G1()&&e._keyToDOMMap.size>2,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.COPY_COMMAND,r=>{if(!r.clipboardData)return!1;const o=p.$getSelection();if(!p.$isRangeSelection(o))return!1;const i=uo(o.anchor.getNode()),l=uo(o.focus.getNode());if(!i||!l||i.__key!==l.__key)return!1;const{hasSelectedBlock:c,selectedAllDocument:d}=ti(),f=E0(o.getTextContent()),h=E0(i.getTextContent());if(!(f===h&&(c||d)))return!1;r.preventDefault();const y=i.__calloutType??"default",x=Ka.$getClipboardDataFromSelection(o)["text/html"],w=i.getTextContent(),k=`<div class="dsd__theme__callout-wrapper" style="background-color: ${i.__backgroundColor}" data-type="${y}">${x}</div>`;return r.clipboardData.setData("text/html",k),r.clipboardData.setData("text/plain",w),!0},p.COMMAND_PRIORITY_LOW))},[e,t])}function Tj(){return Ej(),null}function V1(e,n){if(!e.parentElement)return null;if(e.parentElement.classList.contains("ContentEditable__root")){let t=[];if(!CSS.supports("selector(:has(*))"))t=e.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");else{const r=e.querySelectorAll("li");t=Array.from(r).filter(o=>{const i=o.nextElementSibling;return i&&i.classList.contains("dsd__theme__nestedListItem")})}return setTimeout(()=>{for(let r=0;r<t.length;r++){const o=t[r],i=o.nextElementSibling;if(!i)return;let l=!1,c=!0;Array.from(i.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(f=>{const h=f.getAttribute("aria-checked");(h===null||h==="false")&&(c=!1),h==="true"&&(l=!0)}),n.update(()=>{const f=p.$getNearestNodeFromDOMNode(o);f instanceof On&&(!c&&l?(f.setChecked(!1),f.setIndeterminate(!0)):!l&&!c?(f.setChecked(!1),f.setIndeterminate(!1)):c&&(f.setChecked(!0),f.setIndeterminate(!1)))}),l=!1,c=!0}},0),null}return V1(e.parentElement,n)}const Mj=()=>{const e=en();if(!e)return!1;try{const n=ve.$getNearestBlockElementAncestorOrThrow(e);n instanceof On&&!n.__opened&&n.setOpened(!0)}catch{return!1}return!1};function i5(e,n,t=!1){const r=e.target;if(r===null||!ve.isHTMLElement(r))return;const o=r.firstChild;if(o!=null&&ve.isHTMLElement(o)&&(o.tagName==="UL"||o.tagName==="OL"))return;const i=r.parentNode,l=r.getBoundingClientRect(),c=e.pageX/ve.calculateZoomLevel(r);if(i&&c>l.right){if(t){n();return}if(e.target instanceof HTMLElement){const d=p.getNearestEditorFromDOMNode(i);d!=null&&d.update(()=>{const f=p.$getNearestNodeFromDOMNode(i);f instanceof On&&f.toggleOpen()})}}!i||i.__lexicalListType!=="check"||(r.dir==="rtl"?c<l.right&&c>l.right-20:c>l.left&&c<l.left+20)&&n()}const Lj=Su.debounce((e,n)=>{const t=n.getElementByKey(e);t&&V1(t,n)},100);function A2(e){i5(e,()=>{if(e.target instanceof HTMLElement){const n=e.target,t=p.getNearestEditorFromDOMNode(n);t!=null&&t.isEditable()&&(t.update(()=>{const r=p.$getNearestNodeFromDOMNode(n);if(jt(r)&&(r.selectEnd(),r.toggleChecked()),n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="false"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const i=p.$getNearestNodeFromDOMNode(o);i instanceof On&&i.setChecked(!0)});return}if(n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="true"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const i=p.$getNearestNodeFromDOMNode(o);i instanceof On&&i.setChecked(!1)});return}}),V1(n,t))}})}function b2(e){i5(e,()=>{e.preventDefault()},!0)}function Nj(){const[e]=ot.useLexicalComposerContext();m.useEffect(()=>{const n=e.registerMutationListener(br,t=>{for(const[r,o]of t)o==="updated"&&Lj(r,e)},{skipInitialization:!0});return()=>{n()}},[e]),m.useEffect(()=>ve.mergeRegister(e.registerCommand(x1,()=>(hh(e,"check"),!0),p.COMMAND_PRIORITY_LOW),e.registerRootListener((n,t)=>{n!==null&&(n.addEventListener("click",A2),n.addEventListener("pointerdown",b2)),t!==null&&(t.removeEventListener("click",A2),t.removeEventListener("pointerdown",b2))})),[e])}function jj(){return Nj(),null}const hu=p.createCommand("INSERT_EMBED_INTEGRATION_COMMAND ");function Rj(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([Xs]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return e.registerCommand(hu,n=>{const t=D1("","100%","100%","",!0,n),r=en();return r&&r.getParent()&&(r==null||r.replace(t)),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function Ij(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(Zs,o=>{if(!n)return;const i=o.getParent();if(!i||Ou(i)||o.isInline())return;const l=o.getNextSibling(),c=hl(o);l?l.insertBefore(c):i.append(c)}),r=n?e.registerNodeTransform(Dn,o=>{const i=o.getChildren();if(i.some(yn))return;const l=i.some(f=>qs(f)),c=i.find(_o);if(l||!c)return;const d=Fo();c.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r,e.registerCommand(Va,o=>{const i=p.$getSelection();if(!p.$isRangeSelection(i))return!1;if(o==="inline")e.update(()=>{const c=p.$getSelection();if(!p.$isRangeSelection(c))return;const d=c.getTextContent().trim(),f=Ya(d,!0);c.insertNodes([f]),setTimeout(()=>{e.dispatchCommand(nu,f.getKey())},0)});else if(n)a7(e);else return!1;return!0},p.COMMAND_PRIORITY_EDITOR))},[e])}function Dj(){const[e]=ot.useLexicalComposerContext();return Ij(e),null}const Oj=()=>{var c;const e=p.$getSelection(),n=e.anchor,t=e.focus,r=n.getNode(),o=t.getNode(),i=(c=r.getParent())==null?void 0:c.getIndexWithinParent();return(o instanceof Qn||o.getParent()instanceof Qn)&&(i===0||i||-1)&&n.key!==t.key?(e.removeText(),!0):!1};function pu(e){for(;e;){if(Do(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const y2=e=>e.replace(/\s+/g," ").trim();function Pj(e){const n=e.getTextContent();return`<pre data-highlight-language="${e.__language}" data-language="${e.__language}" data-collapsed="${e.__isCollapsed}"><code>${n}</code></pre>`}function Bj(e){const n=p.$getSelection();if(!n||!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode(),r=pu(t);if(!r)return!1;const o=r.getChildren().find(yn);return!o||o.getTextContent()!==""?!1:(e.update(()=>{const i=p.$createParagraphNode();r.insertBefore(i),r.remove(),i.selectStart()}),!0)}const _j=e=>{e.update(()=>{let n=p.$getSelection();if(!n||p.$isNodeSelection(n)&&(_u(n),n=p.$getSelection(),!n))return;if(!p.$isRangeSelection(n)||n.isCollapsed()){dn.$setBlocksType(n,()=>Qa(()=>{const i=rh(!1);return i.setLanguage("plain"),i})());return}const t=n.getTextContent(),r=Qa(()=>{const i=rh(!1);return i.setLanguage("plain"),i})(),o=r.getChildren().find(i=>yn(i));n.insertNodes([r]),n=p.$getSelection(),p.$isRangeSelection(n)&&o&&yn(o)&&o.append(ci(t))})},s5=p.createCommand("INSERT_CODE_COMMAND");function Fj(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(Qn,o=>{if(!n)return;const i=o.getParent();if(!i||Do(i))return;const l=o.getNextSibling(),c=hl(o);l?l.insertBefore(c):i.append(c)}),r=n?e.registerNodeTransform(Dn,o=>{const i=o.getChildren();if(i.some(_o))return;const l=i.some(f=>qs(f)),c=i.find(yn);if(l||!c)return;const d=Fo();c.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r,e.registerCommand(s5,()=>n?(e.update(()=>{const o=en(),i=p.$getRoot();if(o){const l=Qa(()=>{const d=rh(!1);return d.setLanguage("plain"),d})(),c=l.getLastChild();c&&yn(c)&&c.append(ci(o.getTextContent()||"")),o.replace(l),i.getChildrenSize()===1&&l.insertAfter(p.$createParagraphNode())}}),!0):!1,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_DOWN_COMMAND,o=>{const i=p.$getSelection();let l=null;if(o.shiftKey&&o.code==="Enter"&&p.$isRangeSelection(i)&&(yn(i.anchor.getNode())?l=i.anchor.getNode():Gt.$isCodeHighlightNode(i.anchor.getNode())&&(l=i.anchor.getNode().getParent()),l)){const c=e.registerCommand(p.INSERT_LINE_BREAK_COMMAND,()=>(c(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{const d=l==null?void 0:l.getParent(),f=d==null?void 0:d.getNextSibling();f instanceof p.ParagraphNode&&!f.getTextContent()?f.selectStart():d&&d.insertAfter(p.$createParagraphNode()).selectStart()}),!0}return!1},0),e.registerCommand(p.COPY_COMMAND,o=>{if(!o.clipboardData)return!1;const i=p.$getSelection();if(!p.$isRangeSelection(i))return!1;const l=pu(i.anchor.getNode()),c=pu(i.focus.getNode());if(!l||!c||l.getKey()!==c.getKey())return!1;const{hasSelectedBlock:d,selectedAllDocument:f}=ti(),h=y2(i.getTextContent()),g=l.getChildren().find(yn);if(!g)return!1;const C=y2(g.getTextContent());return h===C&&(d||f)?(o.preventDefault(),o.clipboardData.setData("text/html",Pj(g)),o.clipboardData.setData("text/plain",g.getTextContent()),!0):!1},p.COMMAND_PRIORITY_LOW))},[e])}function Wj(){const[e]=ot.useLexicalComposerContext();return Fj(e),null}const zj=p.createCommand("INSERT_FORM_COMMAND");function Kj(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([ml]))throw new Error("FormPlugin: FormNode not registered on editor");return e.registerCommand(zj,n=>{const t=P1(n);return ve.$insertNodeToNearestRoot(t),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function Uj(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.rel="noopener",document.body.appendChild(t),t.click(),t.remove()}function a5(e){try{const t=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return t.includes(".")?t:`${t}.png`}catch{return"image"}}async function l5(e,n){const t=await fetch(e);if(!t.ok)throw new Error("fetch failed");const r=await t.blob(),o=URL.createObjectURL(r);try{Uj(o,n)}finally{setTimeout(()=>URL.revokeObjectURL(o),0)}}const Qu=(e,n,t)=>{const r=e.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let o=null;const i=r.closest(n);for(const c of t)if(o=r.closest(c),o)break;return{lexicalDOMNode:i,isOutside:!(i||o)}}else return{lexicalDOMNode:null,isOutside:!0}};function ea(e,n,t){const r=m.useRef(null);return r.current=e,m.useMemo(()=>Su.debounce((...o)=>{r.current&&r.current(...o)},n,{maxWait:t}),[n,t])}function x2(e){return e!==null&&"setAlignment"in e&&typeof e.setAlignment=="function"}const q1=({editor:e,nodeKey:n,opened:t,setOpened:r,t:o,setShown:i,flexBorder:l})=>{var C;const[c,d]=m.useState("left");m.useEffect(()=>{if(!n)return;const b=()=>{e.getEditorState().read(()=>{const y=p.$getNodeByKey(n);x2(y)&&d(y.__alignment||"left")})};return b(),e.registerUpdateListener(()=>{b()})},[e,n]);const f=b=>{n&&e.update(()=>{const y=p.$getNodeByKey(n);x2(y)&&(y.setAlignment(b),i&&i(!1))})},h=s.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:s.jsx($,{icon:Jn,size:16})}),g=[{value:"left",icon:aA,label:o("editor.toolbar.left")},{value:"center",icon:Xc,label:o("editor.toolbar.center")},{value:"right",icon:lA,label:o("editor.toolbar.right")}];return s.jsxs(v.Menu,{opened:t,shadow:"md",onChange:r,transitionProps:Fn,children:[s.jsx(v.Menu.Target,{children:s.jsx(Jt,{label:o("editor.toolbar.align"),tooltipDisabled:t,flexBorder:l,icon:((C=g.find(b=>b.value===c))==null?void 0:C.icon)??Xc,iconColor:"var(--mantine-color-gray-text)","aria-label":"Alignment"})}),s.jsx(v.Menu.Dropdown,{p:4,children:g.map(b=>s.jsx(v.Menu.Item,{onClick:()=>f(b.value),leftSection:s.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:s.jsx($,{icon:b.icon,size:16})}),rightSection:c===b.value?h:void 0,children:b.label},b.value))})]})};function c5({opened:e,onOpenChange:n,t,onDownload:r,onDelete:o}){return s.jsxs(v.Menu,{opened:e,onChange:n,transitionProps:Fn,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[s.jsx(v.Menu.Target,{children:s.jsx(Jt,{label:t("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more")})}),s.jsxs(v.Menu.Dropdown,{p:4,w:164,onMouseDown:i=>i.preventDefault(),children:[s.jsx(v.Menu.Item,{leftSection:s.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:s.jsx($,{icon:Is,size:16})}),onClick:i=>{i.stopPropagation(),r()},children:t("editor.gallery.download")}),s.jsx(v.Menu.Item,{color:"red",leftSection:s.jsx(v.Flex,{align:"center",justify:"center",c:"red.6",children:s.jsx($,{icon:sn,size:16})}),onClick:i=>{i.stopPropagation(),o()},children:t("editor.contextMenu.delete")})]})]})}const u5=({t:e,src:n,setShown:t,id:r})=>{const[o,{open:i,close:l}]=Ft.useDisclosure(!1),c=m.useMemo(()=>[{id:!r||r==="0"?"":r,Url:n??"",contentType:"",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[n,r]),d=f=>{f?i():l()};return s.jsxs(s.Fragment,{children:[s.jsx(At.AttachmentsGalleryModal,{opened:o,onOpenChange:d,attachments:c}),s.jsx(Jt,{label:e("editor.image.preview"),icon:cA,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{t(!1),i()}})]})},v2=8,Hj=({anchorElem:e=document.body})=>{var N;const[n]=ot.useLexicalComposerContext(),t=BC.useLexicalEditable(),[r,o]=m.useState(!1),[i,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(null),g=m.useRef(null),[C,b]=m.useState({right:"0",top:"0"}),{t:y}=Ue.useTranslation(),x=ea(L=>{if(i||L.target instanceof HTMLElement&&L.target.clientWidth<100)return;const{lexicalDOMNode:S,isOutside:I}=Qu(L,"img",["div.media-actions"]);if(I){d(!1);return}if(g.current=S,S){n.update(()=>{const K=p.$getNearestNodeFromDOMNode(S);K&&h({key:K.__key,src:K.__src})});const{y:j,right:B}=e.getBoundingClientRect(),{y:_,right:D}=S.getBoundingClientRect();d(!0);const O=_-j+v2,W=B-D+v2;b(()=>({right:`${W}px`,top:`${O}px`}))}},50,500);m.useEffect(()=>(document.addEventListener("mousemove",x),document.addEventListener("touchstart",x),()=>{d(!1),x.cancel(),document.removeEventListener("mousemove",x),document.removeEventListener("touchstart",x)}),[x]);const w=(L,M)=>{{L();return}},k=m.useCallback(()=>{w(()=>{n.update(()=>{if(!(f!=null&&f.key))return!1;const L=p.$getNodeByKey(f.key);return Pr(L)&&L.remove(),!1})})},[n,f==null?void 0:f.key]),T=m.useCallback(async()=>{const L=f==null?void 0:f.src;if(L)try{await l5(L,a5(L))}catch{}},[f==null?void 0:f.src]),R=c||!gi?"auto":"none";return Br.createPortal(s.jsxs("div",{className:`media-actions ${c?"visible":""} ${t?"":"media-actions--readonly"}`,style:{right:C.right,top:C.top,pointerEvents:R},children:[s.jsx(u5,{setShown:d,t:y,src:f==null?void 0:f.src,id:(N=g.current)==null?void 0:N.getAttribute("data-id")}),t&&s.jsxs(s.Fragment,{children:[s.jsx(q1,{opened:r,setOpened:o,t:y,editor:n,nodeKey:f==null?void 0:f.key,setShown:d}),s.jsx(c5,{opened:i,onOpenChange:l,t:y,onDownload:()=>void T(),onDelete:k})]})]}),e)};function d5(e,n){var i,l;const t=(i=n.exportDOM)==null?void 0:i.call(n,e),r=(t==null?void 0:t.element)??null;if(p.$isElementNode(n)){const c=r??document.createElement("div"),d=((l=n.getChildren)==null?void 0:l.call(n))??[];for(const f of d){const h=d5(e,f);if(h)c.appendChild(h);else{const g=typeof f.getTextContent=="function"?f.getTextContent():"";g&&c.appendChild(document.createTextNode(g))}}return typeof(t==null?void 0:t.after)=="function"&&t.after(c),c}if(r)return typeof(t==null?void 0:t.after)=="function"&&t.after(r),r;const o=typeof n.getTextContent=="function"?n.getTextContent():"";return o?document.createTextNode(o):null}function w2(e,n){const t=e.getRootElement(),r=Array.from(t.querySelectorAll(".selected-block"));if(!r.length)return;let o="",i="";e.getEditorState().read(()=>{e.update(()=>{let l=r.map(d=>p.$getNearestNodeFromDOMNode(d)).filter(d=>!!d);o=l.map(d=>typeof d.getTextContent=="function"?d.getTextContent():"").filter(Boolean).join(`
|
|
204
|
-
`);const c=document.createElement("div");l.forEach(d=>{const f=d5(e,d);n==="cut"&&d.remove(),f&&c.appendChild(f)}),i=c.innerHTML})}),(o||i)&&Yj(o,i)}function Yj(e,n){const t=o=>{var i,l;(i=o.clipboardData)==null||i.setData("text/plain",e||" "),n&&((l=o.clipboardData)==null||l.setData("text/html",n)),o.preventDefault()},r=document.createElement("textarea");r.value=e||" ",r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t),document.body.removeChild(r)}const mu=(e,n,t,r)=>{if(t==null)return;const o=typeof t=="string"?t:t.getKey();e.update(()=>{const i=p.$getNodeByKey(o);if(i)if(r==="layout"){const l=i.getParent(),c=l.getParent();Ws(e,l,c),n("delete")}else{const l=i.getParent();if(l instanceof Mn&&l.getChildren().length===2){const c=l,d=l.getParent();if(i.__type==="image"){c.append(p.$createParagraphNode());return}Ws(e,c,d)}Lu(e,i),n("delete")}})},wc=e=>{const n=e._rootElement;return Array.from(n.querySelectorAll(".selected-block"))},gu=(e,n,t,r=!1)=>{if(n==null)return;const o=typeof n=="string"?n:n.getKey();e.update(()=>{const i=p.$getNodeByKey(o);if(!i)return;const l=i.getParent();if(!l)return;const c=e.getElementByKey(l.getKey());c&&PE(e,c,t,r)})},Q1=(e,n,t,r)=>{if(r==="layout")gu(e,t,"right",!0);else{const o=e._rootElement,i=Array.from(o.querySelectorAll(".selected-block")).reverse();i.length&&(e.update(()=>{const l=p.$getNearestNodeFromDOMNode(i[0]);i.forEach(c=>{let d=p.$getNearestNodeFromDOMNode(c);d&&(l==null||l.insertAfter(Ir(d))),Oo(c)})}),n())}},Ns=({label:e,icon:n,dataNameAttribute:t})=>s.jsxs("div",{className:"custom-menu-item","data-test-id":t||"color-picker",children:[s.jsxs("div",{children:[n,s.jsx("span",{children:e})]}),s.jsx($,{className:"custom-menu-item__chevron",icon:Fi,size:16})]}),Zj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],Gj=16;function Vj({color:e,onChange:n}){const{t}=Ue.useTranslation(),r=e===""?"inherit":e,o=m.useMemo(()=>Zj.map(({value:l,nameKey:c,border:d})=>({value:l,label:t(`editor.toolbar.colorPicker.names.${c}`),border:d})),[t]),i=m.useMemo(()=>[{key:"columnBackground",label:t("editor.toolbar.colorPicker.background"),type:"highlight",colors:o,value:r}],[r,t,o]);return s.jsxs(v.Menu,{trigger:gi?"hover":"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},shadow:"md",children:[s.jsx(v.Menu.Target,{children:s.jsx("div",{children:s.jsx(Ns,{label:t("editor.column.changeColor"),dataNameAttribute:"layout-column-color",icon:s.jsx($,{icon:li,size:Gj,color:"var(--mantine-color-gray-6)"})})})}),s.jsx(v.Menu.Dropdown,{onMouseDown:l=>l.preventDefault(),style:{width:232},children:s.jsx(At.ColorPicker.List,{sections:i,onChange:n})})]})}function qj({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:i,t:l,onClose:c}){const{onTrack:d}=m.useContext(ft),f=()=>{},h=m.useCallback(C=>{const y=C===(t===""?"inherit":t)?"inherit":C;e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=x.getParent();w instanceof Mn&&w.setLayoutBackground(y)}),r(y)},[e,n,t,r]),g=()=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const b=C.getParent();if(!(b instanceof Mn))return;for(const x of[...b.getChildren()])x.remove();const y=p.$createParagraphNode();b.append(y),b.append(mr()),y.selectStart()})};return s.jsxs(s.Fragment,{children:[s.jsx(Vj,{color:t,onChange:h}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{disabled:o.left,onClick:()=>{Fs(e,n,"left"),zi(e),c()},leftSection:s.jsx($,{icon:n1,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-left",children:l("editor.column.moveLeft")}),s.jsx(v.Menu.Item,{disabled:o.right,onClick:()=>{Fs(e,n,"right"),zi(e),c()},leftSection:s.jsx($,{icon:r1,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-right",children:l("editor.column.moveRight")}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{disabled:i,onClick:()=>{d==null||d("block_duplicated"),Q1(e,f,n,"layout"),c()},leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-duplicate",children:l("editor.column.duplicate")}),s.jsx(v.Menu.Item,{onClick:()=>{g(),c()},leftSection:s.jsx($,{icon:f1,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-clear-content",children:l("editor.column.clearContent")}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{onClick:()=>{d==null||d("block_deleted"),mu(e,f,n,"layout"),c()},color:"var(--mantine-color-red-6)",leftSection:s.jsx($,{icon:sn,size:16}),"data-test-id":"layout-column-menu-delete",children:l("editor.column.deleteColumn")})]})}const ms="#ced4da0d",Qj=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],Jj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],Li=16,Xj=({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:i,onClose:l,children:c})=>{const{t:d}=Ue.useTranslation(),{onTrack:f}=m.useContext(ft),[h,g]=Ft.useDisclosure(!1),[C,b]=Ft.useDisclosure(!1),y=t===""?"inherit":t,x=m.useMemo(()=>Qj.map(({value:I,nameKey:j})=>({value:I,label:d(`editor.toolbar.colorPicker.names.${j}`)})),[d]),w=m.useMemo(()=>Jj.map(({value:I,nameKey:j,border:B})=>({value:I,label:d(`editor.toolbar.colorPicker.names.${j}`),border:B})),[d]),k=m.useMemo(()=>[{key:"textColor",label:d("editor.toolbar.colorPicker.textColors"),type:"text",colors:x,value:"inherit"},{key:"columnBackground",label:d("editor.toolbar.colorPicker.textHighlights"),type:"highlight",colors:w,value:y}],[y,d,x,w]),T=m.useCallback((I,j)=>{if(j==="columnBackground"){const B=I===y?"inherit":I;e.update(()=>{const _=p.$getNodeByKey(n);if(!_)return;const D=_.getParent();D instanceof Mn&&D.setLayoutBackground(B)}),r(B)}},[e,n,y,r]),R=m.useCallback(()=>{e.update(()=>{const I=p.$getNodeByKey(n);if(!I)return;const j=I.getParent();if(!(j instanceof Mn))return;for(const _ of[...j.getChildren()])_.remove();const B=p.$createParagraphNode();j.append(B),j.append(mr()),B.selectStart()})},[e,n]),N=()=>{},L=m.useCallback(()=>{g.open()},[g]),M=m.useCallback(()=>{g.close(),b.open()},[g,b]),S=m.useCallback(()=>{b.close()},[b]);return s.jsxs(s.Fragment,{children:[s.jsx("div",{onClick:L,style:{display:"contents"},children:c}),s.jsx(Bt,{opened:h,onClose:g.close,title:d("editor.column.mobile.columnActions","Actions"),children:s.jsxs(v.Stack,{gap:16,p:0,children:[s.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:s.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:li,size:Li}),rightSection:s.jsx($,{icon:Fi,size:Li}),onClick:M,children:d("editor.column.changeColor")})}),s.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[s.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:n1,size:Li}),disabled:o.left,onClick:()=>{Fs(e,n,"left"),zi(e),g.close(),l()},children:d("editor.column.moveLeft")}),s.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:r1,size:Li}),disabled:o.right,onClick:()=>{Fs(e,n,"right"),zi(e),g.close(),l()},children:d("editor.column.moveRight")})]}),s.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[s.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:ir,size:Li}),disabled:i,onClick:()=>{f==null||f("block_duplicated"),Q1(e,N,n,"layout"),g.close(),l()},children:d("editor.column.duplicate")}),s.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:f1,size:Li}),onClick:()=>{R(),g.close(),l()},children:d("editor.column.clearContent")})]}),s.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:s.jsx(v.Button,{variant:"subtle",color:"red",justify:"flex-start",fullWidth:!0,bg:ms,radius:8,leftSection:s.jsx($,{icon:sn,size:Li}),onClick:()=>{f==null||f("block_deleted"),mu(e,N,n,"layout"),g.close(),l()},children:d("editor.column.deleteColumn")})})]})}),s.jsx(Bt,{opened:C,onClose:S,title:d("editor.toolbar.colorPicker.textColor","Text color"),children:s.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:s.jsx(At.ColorPicker.List,{sections:k,onChange:T})})})]})},f5=-16,Eh=31,$j=6,eR=8;function tR(e){if("clientX"in e)return{x:e.clientX,y:e.clientY};const n=e.touches[0];return n?{x:n.clientX,y:n.clientY}:null}function nR(e,n){const t=tR(e);if(!t)return!1;const r=n.getBoundingClientRect(),o=r.top+f5-$j,i=r.right+Eh+eR;return t.x>=r.left&&t.x<=i&&t.y>=o&&t.y<=r.bottom}function rR({anchorElem:e}){const[n]=ot.useLexicalComposerContext(),{disable:t}=m.useContext(ft),{t:r}=Ue.useTranslation(),[o,i]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState(null),[h,g]=m.useState(!1),[C,b]=m.useState("inherit"),[y,x]=m.useState({left:"0px",top:"0px",width:"0px"}),w=m.useRef(null);m.useEffect(()=>{w.current=l},[l]);const k=d??l,T=m.useCallback(B=>{if(!e)return;const{left:_,top:D}=e.getBoundingClientRect(),{left:O,top:W,width:K}=B.getBoundingClientRect();x({left:`${O-_}px`,top:`${W-D+f5}px`,width:`${K+Eh}px`})},[e]);m.useEffect(()=>{k&&n.read(()=>{const B=p.$getNearestNodeFromDOMNode(k);B instanceof Mn&&b(B.__backgroundColor||"inherit")})},[k,n]),m.useEffect(()=>{h||f(null)},[h]);const R=m.useMemo(()=>{if(!k)return null;let B=null;return n.read(()=>{var D;const _=p.$getNearestNodeFromDOMNode(k);_ instanceof Mn&&(B=((D=_.getFirstChild())==null?void 0:D.getKey())??null)}),B},[k,n]),N=ea(B=>{if(h||!e)return;const{lexicalDOMNode:_,isOutside:D}=Qu(B,".dsd__theme__layoutItem",["div.editor-layout-column-hover","div.editor-layout-column-hover__dropdown","div.mantine-Menu-dropdown","div.mantine-Popover-dropdown","div.mobile-drawer","section.mantine-Drawer-content"]);if(D){const K=B.target;if(!(K instanceof HTMLElement&&!!K.closest(".callout-image, .callout-hover-actions, .callout-mobile-actions-btn"))&&w.current&&nR(B,w.current))return;i(!1),c(null);return}if(!_)return;const O=n.getRootElement();if(!(O!=null&&O.contains(_))||!_.closest(".dsd__theme__layoutContainer")){i(!1),c(null);return}let W=!1;if(n.read(()=>{W=p.$getNearestNodeFromDOMNode(_)instanceof Mn}),!W){i(!1),c(null);return}c(_),i(!0),T(_)},50,500);m.useEffect(()=>{if(t||!e){i(!1),c(null),g(!1),f(null);return}return document.addEventListener("mousemove",N),document.addEventListener("touchstart",N),()=>{i(!1),N.cancel(),document.removeEventListener("mousemove",N),document.removeEventListener("touchstart",N)}},[e,N,t]);const L=m.useMemo(()=>{const B={isDisabledAddColumnButton:!0,isMaxColumns:!1,disabledMoveColumnButtons:{left:!0,right:!0}};if(!k)return B;const _=k.parentElement;if(!(_!=null&&_.classList.contains("dsd__theme__layoutContainer")))return B;const D=_.children,O=Array.from(D).indexOf(k);return{isDisabledAddColumnButton:D.length>=4,isMaxColumns:D.length>=4,disabledMoveColumnButtons:{left:O<=0,right:O>=D.length-1}}},[k]),M=m.useCallback(()=>{!R||L.isDisabledAddColumnButton||(gu(n,R,"right"),i(!1))},[R,L.isDisabledAddColumnButton,n]),S=o?"auto":"none";if(t||!e)return null;const I=["editor-layout-column-hover",o?"editor-layout-column-hover--visible":""].filter(Boolean).join(" "),j={left:y.left,top:y.top,width:y.width,pointerEvents:S,"--editor-layout-column-hover-add-outset":`${Eh}px`};return Br.createPortal(s.jsx(v.Box,{className:I,style:j,children:o&&k?s.jsxs(v.Box,{className:"editor-layout-column-hover__inner",children:[s.jsx(v.Box,{className:"editor-layout-column-hover__menu-slot",children:rt&&R?s.jsx(Xj,{editor:n,anchorChildKey:R,layoutColor:C,setLayoutColor:b,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,onClose:()=>i(!1),children:s.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:s.jsx($,{icon:qn,size:18})})}):s.jsxs(v.Menu,{opened:h,onChange:g,onOpen:()=>{w.current&&f(w.current)},position:"bottom",shadow:"md",withinPortal:!0,transitionProps:Fn,closeOnItemClick:!1,classNames:{dropdown:"editor-layout-column-hover__dropdown"},children:[s.jsx(v.Menu.Target,{children:s.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:s.jsx($,{icon:qn,size:18})})}),s.jsx(v.Menu.Dropdown,{onMouseDown:B=>B.stopPropagation(),children:R?s.jsx(qj,{editor:n,anchorChildKey:R,layoutColor:C,setLayoutColor:b,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,t:r,onClose:()=>g(!1)}):null})]})}),s.jsx(v.Tooltip,{label:L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),children:s.jsx(v.Box,{component:"span",className:"editor-layout-column-hover__add-column-wrap",children:s.jsx(v.ActionIcon,{variant:"transparent",type:"button",size:16,radius:"sm",className:"editor-layout-column-hover__add-column","aria-label":L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),disabled:L.isDisabledAddColumnButton,p:0,onMouseDown:B=>{B.stopPropagation(),B.preventDefault()},onClick:M,children:s.jsx($,{icon:Q8,size:16})})})})]}):null}),e)}const J1=p.createCommand(),oR=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,du),o=ve.$findMatchingParent(t,jr),{lexicalNode:i}=Os(t,e,{"layout-item":!0});if(i&&!i.getTextContent()&&r)return Uu(e,r,o)&&jr(i)}return!0},iR=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();if((t==null?void 0:t.getTextContent())===`
|
|
205
|
-
|
|
206
|
-
`&&(p.$isParagraphNode(t==null?void 0:t.getChildren()[0])||p.$isParagraphNode(t==null?void 0:t.getChildren()[1])))return Ws(e,t,r)}return!1};p.createCommand();function sR(e,n,t){const r=e.trim().split(/\s+/).filter(Boolean);if(r.length!==t)return e;const o=[];for(const l of r){const c=l.match(/^([\d.]+)px$/i);if(!c)return e;o.push(parseFloat(c[1]))}if(o.some(l=>!Number.isFinite(l)))return e;const i=n>0?n:1;return o.map((l,c)=>{const d=l/i*100;return`minmax(${c?100:50}px,${Ab(d)}%)`}).join(" ")}function aR(e){const n=getComputedStyle(e),t=n.columnGap;if(t&&t!=="normal"){const o=parseFloat(t);if(Number.isFinite(o))return o}const r=n.gap;if(r&&r!=="normal"){const o=r.trim().split(/\s+/),i=o.length>1?o[1]:o[0],l=parseFloat(i);if(Number.isFinite(l))return l}return 0}function lR({anchorElem:e}={}){const[n]=ot.useLexicalComposerContext();return m.useEffect(()=>{if(!n.hasNodes([Or,Mn,$r]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return ve.mergeRegister(n.registerCommand(J1,t=>(n.update(()=>{const r=Yu(t),o=cR(t);for(let l=0;l<o;l++)r.append(lo().append(p.$createParagraphNode()).append(mr()));const i=en();i&&(i==null||i.replace(r),r.selectStart())}),!0),p.COMMAND_PRIORITY_EDITOR),n.registerCommand(p.KEY_BACKSPACE_COMMAND,()=>{var l,c;const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;const r=(l=t.focus)==null?void 0:l.getNode(),o=(c=ve.$findMatchingParent(r,jr))==null?void 0:c.getKey(),i=r==null?void 0:r.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(i instanceof Or){const f=mr(),h=i.getLastChild();h==null||h.append(f)}const d=o?p.$getNodeByKey(o):null;if(d!=null&&d.getChildren&&d.getChildren().length===1){const f=p.$createParagraphNode();d.append(f),f.selectStart()}})},50),!1},p.COMMAND_PRIORITY_CRITICAL),n.registerNodeTransform(Mn,t=>{if(!t.isAttached())return;const r=t.getParent();if(!du(r)){for(const o of t.getChildren())t.insertBefore(o);t.remove()}}),n.registerNodeTransform(Or,t=>{if(!t.isAttached())return;const r=t.getChildren();if(!r.every(jr)){for(const o of r)t.insertBefore(o);t.remove()}}))},[n]),m.useEffect(()=>{let t=!1,r=0,o=null,i=0,l=[],c=0,d=null,f=null;const h=b=>{const y=b.target.closest(".dsd__theme__layoutItem"),x=b.target.closest(".dsd__theme__layoutDivider");if(y&&x){b.preventDefault(),n.update(()=>{const w=p.$getNearestNodeFromDOMNode(y);w&&w.selectStart()}),g(y,b),x.classList.add("dragging"),d=b.pointerId,f=x;try{x.setPointerCapture(b.pointerId)}catch{}}};function g(b,y){t=!0;const x=document.querySelector("code");x&&(x.style.pointerEvents="none"),r=y.clientX,o=b.closest(".dsd__theme__layoutContainer");const w=o.querySelectorAll(".dsd__theme__layoutItem");c=w.length;const k=aR(o);i=o.clientWidth-k*Math.max(0,w.length-1);const T=Array.from(w).map(B=>B.getBoundingClientRect().width),R=T.reduce((B,_)=>B+_,0),N=R>0?i/R:1,L=T.map(B=>B*N),M=i-L.reduce((B,_)=>B+_,0);L.length>0&&(L[L.length-1]+=M),l=L,o.style.gridTemplateColumns=l.map(B=>`${B}px`).join(" ");const S=Array.from(w).indexOf(b),I=B=>C(B,S),j=B=>{var O;t=!1,n.dispatchCommand(sh,"up"),x&&x.style.pointerEvents==="none"&&(x.style.pointerEvents="auto");const _=document.querySelector(".dsd__theme__layoutDivider.dragging");if(_==null||_.classList.remove("dragging"),d!==null&&f)try{f.releasePointerCapture(d)}catch{}d=null,f=null;const D=o??((O=B.target)==null?void 0:O.closest(".dsd__theme__layoutContainer"));if(D&&c>0){const W=sR(D.style.gridTemplateColumns,D.clientWidth,c);D.style.gridTemplateColumns=W,n.update(()=>{p.$getNearestNodeFromDOMNode(D).setTemplateColumns(W)})}o=null,l=[],c=0,document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",j),document.removeEventListener("pointercancel",j)};document.addEventListener("pointermove",I),document.addEventListener("pointerup",j),document.addEventListener("pointercancel",j)}function C(b,y,x){if(!t||!y)return;n.dispatchCommand(sh,"move");const w=b.clientX-r;if(Math.abs(w)<1)return;const k=y===1?50:100,T=l[y-1]+l[y],R=Math.max(k,Math.min(T-100,l[y-1]+w)),N=T-R,L=[...l];L[y-1]=R,L[y]=N;const M=document.querySelector(".dsd__theme__layoutDivider.dragging");if(M&&o){const S=o.clientHeight+"px";M.style.getPropertyValue("--height-column")!==S&&requestAnimationFrame(()=>{M.style.setProperty("--height-column",S)})}o.style.gridTemplateColumns=L.map(S=>`${S}px`).join(" ")}return document.body.addEventListener("pointerdown",h),()=>document.body.removeEventListener("pointerdown",h)},[n]),s.jsx(rR,{anchorElem:e??null})}function cR(e){return e.replace(/\(([^)]+)\)/g,t=>t.replace(/\s+/g,"")).trim().split(/\s+/).length}function uR(){const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ft);return I7(e,!o),m.useEffect(()=>{if(!e.hasNodes([Qi]))throw new Error("MusicPlugin: MusicNode not registered on editor");const i=l=>{const c=l.filter(d=>d.type.includes("audio/"));if(c.length){if(l.length>1){At.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(c[0].size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}e.dispatchCommand(Yc,"upload"),setTimeout(()=>{e.dispatchCommand(KA,c)})}};return t!=null&&t.current&&(t.current.insertMusics=i),ve.mergeRegister(e.registerCommand(Yc,l=>{const d=A1(l==="upload"?"":l,l!=="upload");return zs(d),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.PASTE_COMMAND,l=>{var f,h,g,C;if(o||e.getEditorState().read(()=>{const b=p.$getSelection();if(!p.$isRangeSelection(b))return!1;const y=b.anchor.getNode();return Gt.$isCodeNode(y)||Gt.$isCodeNode(y.getParent())}))return!1;const d=((h=(f=l.clipboardData)==null?void 0:f.getData("text/plain"))==null?void 0:h.trim())||((C=(g=l.clipboardData)==null?void 0:g.getData("text"))==null?void 0:C.trim());return!d||!HA(d)?!1:(l.preventDefault(),l.stopPropagation(),e.dispatchCommand(Yc,d),!0)},p.COMMAND_PRIORITY_CRITICAL))},[o,e,t,r,n]),null}const Th=p.createCommand("INSERT_PAGE_LINK_COMMAND");function Mh(e,n){var r,o;if(!n)return e;const t=[];for(const i of e){if(i.id===n){(r=i.children)!=null&&r.length&&t.push(...Mh(i.children,n));continue}t.push({...i,children:(o=i.children)!=null&&o.length?Mh(i.children,n):void 0})}return t}function h5(e,n){var o;const t=n.trim().toLowerCase();if(!t)return e;const r=[];for(const i of e){const l=i.title.toLowerCase().includes(t)||i.id.toLowerCase().includes(t),c=(o=i.children)!=null&&o.length?h5(i.children,n):[];(l||c.length>0)&&r.push({...i,children:c.length>0?c:void 0})}return r}function dR(e){const{linkablePages:n,pages:t,pageId:r,disable:o}=m.useContext(ft),[i,l]=m.useState(!1),[c,d]=m.useState(null),[f,h]=m.useState(""),g=m.useRef(null),C=m.useRef(null),b=m.useRef(null),y=m.useRef(null),x=n??t,w=m.useMemo(()=>Mh(x,r),[x,r]),k=!f.trim(),T=m.useMemo(()=>k?w:h5(w,f),[w,f,k]),R=()=>{if(g.current&&C.current===!1){const L=g.current;e.update(()=>{const M=p.$getNodeByKey(L);if(!M||!(M instanceof No))return;const S=M;S.__placeholder&&S.remove()})}l(!1),d(null),g.current=null,C.current=null};return m.useEffect(()=>{if(i)return Vs(),()=>{Ki()}},[i]),m.useEffect(()=>{if(!i||!c)return;const L=y.current;if(!L)return;const M=L.value.length;L.focus(),L.setSelectionRange(M,M)},[i,c]),m.useEffect(()=>{if(!e.hasNodes([No]))throw new Error("PageLinkPlugin: PageLinkNode not registered on editor");return e.registerCommand(Th,L=>L==="inline"?(e.update(()=>{const M=p.$getSelection();if(!p.$isRangeSelection(M))return;const S=As({id:"",title:"",icon:null,inlineElement:!0,placeholder:!1});M.insertNodes([S]),g.current=S.getKey()}),C.current=!0,h(""),l(!0),!0):L!==void 0?(e.update(()=>{const M=As({id:L.id,title:L.title,icon:L.icon}),S=en();S==null||S.replace(M)}),!0):(e.update(()=>{const M=p.$getSelection();if(!p.$isRangeSelection(M))return;const S=As({id:"",title:"",icon:null,inlineElement:!0,placeholder:!0});M.insertNodes([S]),g.current=S.getKey()}),C.current=!1,h(""),l(!0),!0),p.COMMAND_PRIORITY_EDITOR)},[e]),m.useEffect(()=>{if(!i||!g.current)return;const L=g.current;let M=0,S=0;const I=()=>{const j=e.getElementByKey(L);if(j){const B=j.querySelector('[data-page-link-anchor="true"]')||j;return d(B.getBoundingClientRect()),!0}return!1};return M=requestAnimationFrame(()=>{I()||(S=window.setTimeout(()=>I(),50))}),()=>{M&&cancelAnimationFrame(M),S&&window.clearTimeout(S)}},[i,e]),m.useEffect(()=>{if(!i||!g.current)return;const L=g.current,M=()=>{const I=e.getElementByKey(L);if(!I)return;const j=I.querySelector('[data-page-link-anchor="true"]')||I;d(j.getBoundingClientRect())};M(),window.addEventListener("scroll",M,!0);const S=window.visualViewport;return S==null||S.addEventListener("scroll",M),S==null||S.addEventListener("resize",M),()=>{window.removeEventListener("scroll",M,!0),S==null||S.removeEventListener("scroll",M),S==null||S.removeEventListener("resize",M)}},[e,i]),m.useEffect(()=>{if(!i||rt)return;const L=M=>{var I;const S=M.target;(I=b.current)!=null&&I.contains(S)||R()};return document.addEventListener("mousedown",L,!0),()=>document.removeEventListener("mousedown",L,!0)},[i]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,L=>(i||o||e.update(()=>{const M=L.target;if(!M)return;const S=p.$getNearestNodeFromDOMNode(M);if(!S||!W0(S))return;const I=S;if(I.__placeholder)C.current=!1;else if(I.isInline()){if(I.getPageId().trim()!=="")return;C.current=!0}else return;g.current=S.getKey(),h(""),l(!0)}),!1),p.COMMAND_PRIORITY_LOW),[e,i,h]),m.useEffect(()=>{if(!n||n.length===0)return;const L={},M=[...n];for(;M.length;){const S=M.pop();L[S.id]={title:S.title,icon:S.icon},S.children&&S.children.length&&M.push(...S.children)}e.update(()=>{const I=[...p.$getRoot().getChildren()];for(;I.length;){const j=I.pop();if(W0(j)){const B=j.getPageId(),_=L[B];if(_){const D=j.getMeta();(D.title!==_.title||D.icon!==_.icon)&&j.setMeta(_.title,_.icon)}}p.$isElementNode(j)&&I.push(...j.getChildren())}})},[e,n]),{pickerOpen:i,anchorRect:c,searchQuery:f,setSearchQuery:h,filteredPages:T,showAsTree:k,dropdownRef:b,inputRef:y,handleSelectPage:L=>{const M=g.current;if(!M){R();return}e.update(()=>{const S=p.$getNodeByKey(M);if(!S)return;if(S instanceof No){if(C.current){const B=S.getWritable();B.__pageId=L.id,B.setMeta(L.title,L.icon)}else{const B=S,_=B.getTopLevelElementOrThrow(),D=As({id:L.id,title:L.title,icon:L.icon,inlineElement:!1}),O="getChildren"in _?_.getChildren():[];O.length===1&&O[0]===B?_.replace(D):(_.insertAfter(D),B.remove())}return}const I=As({id:L.id,title:L.title,icon:L.icon,inlineElement:!1});S.getTopLevelElementOrThrow().insertAfter(I)}),R()},closePicker:R}}function p5(e){const{onConfirm:n,onCancel:t}=e;return r=>{if(r.stopPropagation(),r.key==="Enter"&&!r.shiftKey&&!r.ctrlKey&&!r.metaKey&&n){r.preventDefault(),n();return}r.key==="Escape"&&t&&(r.preventDefault(),t())}}const fR="_dropdown_pjj0g_1",hR="_searchInput_pjj0g_39",pR="_textInputRoot_pjj0g_49",mR="_mobileBody_pjj0g_57",gR="_mobileList_pjj0g_71",CR="_scrollViewport_pjj0g_81",AR="_item_pjj0g_107",bR="_itemNested_pjj0g_109",yR="_treeChildren_pjj0g_133",xR="_pageLinkItemTitle_pjj0g_167",vR="_listWrap_pjj0g_217",wR="_empty_pjj0g_251",rr={dropdown:fR,searchInput:hR,textInputRoot:pR,mobileBody:mR,mobileList:gR,scrollViewport:CR,item:AR,itemNested:bR,treeChildren:yR,pageLinkItemTitle:xR,listWrap:vR,empty:wR};function kR({page:e,onSelect:n,level:t}){const r=t>0;return s.jsx(v.Box,{className:r?rr.itemNested:rr.item,style:{paddingLeft:r?t*10:void 0},role:"button",tabIndex:0,"aria-label":e.title||void 0,onClick:()=>n(e),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n(e))},children:s.jsx(uu,{page:{...e,onClick:void 0},titleClassName:rr.pageLinkItemTitle})})}function m5({pages:e,onSelect:n,level:t=0}){const r=[...e].sort((o,i)=>(o.order??0)-(i.order??0));return s.jsx(s.Fragment,{children:r.map(o=>s.jsxs(m.Fragment,{children:[s.jsx(kR,{page:o,onSelect:n,level:t}),o.children&&o.children.length>0&&s.jsx("div",{className:rr.treeChildren,"data-level":t,children:s.jsx(m5,{pages:o.children,onSelect:n,level:t+1})})]},o.id))})}const k2=35,If=5,SR=8,ER=8;function TR(e){const{pickerOpen:n,anchorRect:t,searchQuery:r,setSearchQuery:o,filteredPages:i,dropdownRef:l,inputRef:c,handleSelectPage:d,closePicker:f}=e,{t:h}=Ue.useTranslation(),[g,C]=m.useState(null);m.useLayoutEffect(()=>{if(rt)return;if(!n||!t){C(null);return}const R=l.current;if(!R)return;const N=()=>{const S=t,I=R.getBoundingClientRect(),j=I.height,B=I.width,_=window.visualViewport,D=(_==null?void 0:_.height)??window.innerHeight,O=(_==null?void 0:_.width)??window.innerWidth,W=ER,K=SR,F=S.top+k2,Y=S.top-K-j,q=F+If,ee=q+j<=D-W,Q=Y>=W;let J,xe;if(ee)J=F,xe=!0;else if(Q)J=Y,xe=!1;else{const Te=D-W-q,We=S.top-K-W;xe=Te>=We,J=xe?F:Y,J=Math.max(W,Math.min(J,D-j-W))}xe&&(J+=If);let we=S.left;we+B>O-W&&(we=O-B-W),we=Math.max(W,we),C({top:J,left:we})},L=window.visualViewport;N();const M=new ResizeObserver(N);return M.observe(R),window.addEventListener("scroll",N,!0),L==null||L.addEventListener("resize",N),L==null||L.addEventListener("scroll",N),()=>{M.disconnect(),window.removeEventListener("scroll",N,!0),L==null||L.removeEventListener("resize",N),L==null||L.removeEventListener("scroll",N)}},[t,i,n]);const b=R=>{d(R)},y=p5({onCancel:f}),x=i.length===0?s.jsx(v.Box,{component:"div",className:rr.empty,children:s.jsx(v.Text,{size:"sm",c:"dimmed",children:h("editor.menu.other.pageLink.empty")})}):s.jsx(m5,{pages:i,onSelect:b});if(rt)return s.jsx(Bt,{opened:n,onClose:f,title:h("editor.menu.other.pageLink.drawerTitle","Add content"),children:s.jsxs(v.Box,{className:rr.mobileBody,children:[s.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:R=>o(R.currentTarget.value),onKeyDown:y,leftSection:s.jsx($,{size:16,icon:tu}),ref:c,classNames:{input:rr.searchInput,root:rr.textInputRoot}}),s.jsx(v.Box,{className:rr.mobileList,children:x})]})});if(!n||!t)return null;const w=(g==null?void 0:g.top)??t.top+k2+If,k=(g==null?void 0:g.left)??t.left,T=s.jsxs(v.Paper,{ref:l,className:rr.dropdown,style:{position:"fixed",top:w,left:k,width:400,maxWidth:"100%"},shadow:"md",withBorder:!1,children:[s.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:R=>o(R.currentTarget.value),onKeyDown:y,leftSection:s.jsx($,{size:16,icon:tu}),ref:c,classNames:{input:rr.searchInput,root:rr.textInputRoot}}),s.jsx(v.ScrollArea.Autosize,{mah:250,viewportProps:{tabIndex:-1},scrollbars:"y",offsetScrollbars:"y",classNames:{viewport:rr.scrollViewport},children:s.jsx(v.Box,{className:rr.listWrap,children:x})})]});return Br.createPortal(T,document.body)}function MR(){const[e]=ot.useLexicalComposerContext(),n=dR(e);return s.jsx(TR,{...n})}const g5=p.createCommand("INSERT_SWAGGER_COMMAND");function LR(e){if(!e.hasNodes([Cl]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return e.registerCommand(g5,n=>{const t=en();if(t&&t.getParent()){const r=B1(n,"",!0);t==null||t.replace(r)}return!0},p.COMMAND_PRIORITY_EDITOR)}function NR(){const[e]=ot.useLexicalComposerContext();return m.useEffect(()=>LR(e),[e]),null}function jR(e){const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,St),o=ve.$findMatchingParent(t,Be);return Uu(e,r,o)}return!0}function S2(e){return(e==null?void 0:e.tagName)==="TABLE"}function E2(e){let n=1;for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function T2(e){const n=e.getShape();return{columns:n.toX-n.fromX+1,rows:n.toY-n.fromY+1}}function RR(e){const n=e.getNodes(),t=[];let r=null,o=null,i=0;for(let l=0;l<n.length;l++){const c=n[l];if(Be(c)){const d=c.getParentOrThrow();if(PR(_t(d),"Expected CellNode to have a RowNode parent"),r!==d){if(o!==null&&i!==o)return!1;r!==null&&(o=i),r=d,i=0}const f=c.__colSpan;for(let h=0;h<f;h++)t[i+h]===void 0&&(t[i+h]=0),t[i+h]+=c.__rowSpan;i+=f}}return(o===null||i===o)&&t.every(l=>l===t[0])}function IR(){const e=p.$getSelection();if(p.$isRangeSelection(e)&&!e.isCollapsed()||xt(e)&&!e.anchor.is(e.focus)||!p.$isRangeSelection(e)&&!xt(e))return!1;const[n]=Tn(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function kc(e){if(e.getChildrenSize()!==1)return!1;const n=e.getFirstChildOrThrow();return!(!p.$isParagraphNode(n)||!n.isEmpty())}function M2(e){const n=e.getLastDescendant();In(n)?n.select():p.$isElementNode(n)?n.selectEnd():n!==null&&n.selectNext()}function L2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||xt(n)){const[t]=Tn(n.anchor);if(Be(t))return t.getBackgroundColor()}return null})}function DR(e,n){const t=n.querySelectorAll("tr");let r=!1;return Array.from(t).forEach((o,i)=>{i&&o.children[0].tagName==="TH"&&(r=!0)}),r}function OR(e){const n=e.querySelector("tr");let t=!1;return n&&Array.from(n.children).forEach((r,o)=>{o&&r.tagName==="TH"&&(t=!0)}),t}function PR(e,n){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}const BR=(e,n)=>{window.matchMedia("(pointer: coarse)").matches&&n&&setTimeout(()=>{n.scrollBy({left:e+25,behavior:"smooth"})},100)};function N2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||xt(n)){const[t]=Tn(n.anchor);if(Be(t)){let r=function(i){if(p.$isTextNode(i))o.push(i);else if(p.$isElementNode(i))for(const l of i.getChildren())r(l)};const o=[];for(const i of t.getChildren())r(i);if(o.length>0){const l=o[0].getStyle().match(/color\s*:\s*([^;]+)/);if(l)return l[1].trim()}}}return""})}function Df(e,n){function t(r){if(p.$isTextNode(r)){const o=r.getStyle(),i={};o&&o.split(";").forEach(l=>{const c=l.indexOf(":");if(c===-1)return;const d=l.slice(0,c).trim(),f=l.slice(c+1).trim();d&&f&&(i[d]=f)}),n===null?delete i.color:i.color=n,r.setStyle(Object.entries(i).map(([l,c])=>`${l}: ${c}`).join("; "))}else if(p.$isElementNode(r))for(const o of r.getChildren())t(o)}for(const r of e.getChildren())t(r)}p.createCommand("INSERT_NEW_TABLE_COMMAND");const _R=m.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function FR({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:t=!0,hasHorizontalScroll:r=!0}){const[o]=ot.useLexicalComposerContext();m.useEffect(()=>{US(o,r)},[o,r]),m.useEffect(()=>(o.hasNodes([Vr,Zr,Qs])||lt(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),ve.mergeRegister(o.registerCommand(Bu,({columns:i,rows:l,includeHeaders:c})=>{const d=ES(Number(l),Number(i),c),f=en();f&&f.replace(d);const h=d.getFirstDescendant();return In(h)&&h.select(),!0},p.COMMAND_PRIORITY_EDITOR),o.registerNodeTransform(Vr,i=>{const[l]=eb(i,null,null),c=l.reduce((f,h)=>Math.max(f,h.length),0),d=i.getChildren();for(let f=0;f<l.length;++f){const h=d[f];if(!h)continue;const g=l[f].reduce((C,b)=>b?1+C:C,0);if(g!==c)for(let C=g;C<c;++C){const b=Gr(0);b.append(p.$createParagraphNode()),h.append(b)}}}))),[o]),m.useEffect(()=>{const i=new Map,l=(d,f,h)=>{const g=Hi(d,h),C=jS(d,g,o,t);i.set(f,[C,g])},c=o.registerMutationListener(Vr,d=>{o.getEditorState().read(()=>{for(const[f,h]of d){const g=i.get(f);if(h==="created"||h==="updated"){const{tableNode:C,tableElement:b}=tb(f);g===void 0?l(C,f,b):b!==g[1]&&(g[0].removeListeners(),i.delete(f),l(C,f,b))}else h==="destroyed"&&g!==void 0&&(g[0].removeListeners(),i.delete(f))}},{editor:o})},{skipInitialization:!1});return()=>{c();for(const[,[d]]of i)d.removeListeners()}},[o,t]),m.useEffect(()=>{if(!e)return o.registerNodeTransform(Zr,i=>{if(i.getColSpan()>1||i.getRowSpan()>1){const[,,l]=Tn(i),[c]=Dr(l,i,i),d=c.length,f=c[0].length;let h=l.getFirstChild();lt(_t(h),"Expected TableNode first child to be a RowNode");const g=[];for(let C=0;C<d;C++){C!==0&&(h=h.getNextSibling(),lt(_t(h),"Expected TableNode first child to be a RowNode"));let b=null;for(let y=0;y<f;y++){const x=c[C][y],w=x.cell;if(x.startRow===C&&x.startColumn===y)b=w,g.push(w);else if(w.getColSpan()>1||w.getRowSpan()>1){lt(Be(w),"Expected TableNode cell to be a TableCellNode");const k=Gr(w.__headerState);b!==null?b.insertAfter(k):ve.$insertFirst(h,k)}}}for(const C of g)C.setColSpan(1),C.setRowSpan(1)}})},[o,e]),m.useEffect(()=>{if(!n)return o.registerNodeTransform(Zr,i=>{i.getBackgroundColor()!==null&&i.setBackgroundColor(null)})},[o,n,e])}function WR(){const[e]=ot.useLexicalComposerContext();m.useEffect(()=>ve.mergeRegister(e.registerCommand(p.PASTE_COMMAND,n=>{var i,l;try{const c=n.clipboardData||window.clipboardData;if(!c)return!1;const d=c.getData("text/html"),f=document.createElement("div");f.innerHTML=d;let h=null;f.childNodes.length===1&&S2(f.firstChild)&&(h=f.firstChild),f.childNodes.length===2&&S2(f.childNodes[1])&&(h=f.childNodes[1]);const g=Wi?1:2;if(f.childNodes.length===(Wi?2:5)&&((i=f.childNodes[g].className)!=null&&i.includes("table-scrollable-wrapper"))&&(h=f.childNodes[g].firstChild),h){n.preventDefault();const C=en();if(C){const b=ve.$findMatchingParent(C,Be),y=ve.$findMatchingParent(C,_t),x=ve.$findMatchingParent(C,St);if(!x||!y||!b)return!1;const w=h.querySelectorAll("tr"),k=w[0].childNodes,T=x.getChildren();let R=null,N=0;for(let S=0;S<x.getChildren().length;S++)if(x.getChildren()[S].__key===(y==null?void 0:y.__key)&&(N=S,S+w.length>T.length)){let j=S+w.length-T.length;(l=x==null?void 0:x.getLastChild())==null||l.selectStart();for(let B=0;B<j;B++)Xa(!0);break}let L=0;x.getChildren().forEach((S,I)=>{if(I>=N&&w[L]){let j=0;S.getChildren().forEach((_,D)=>{var O,W;if(Be(_)&&(_.__key===(b==null?void 0:b.__key)&&(R=D,_==null||_.selectStart()),R!==null&&D>=R&&D<k.length+R)){const K=((W=(O=w[L])==null?void 0:O.childNodes[j])==null?void 0:W.innerText)||"";_.clear();const F=p.$createParagraphNode(),Y=ci(K||"");F.append(Y),_.append(F),j++}}),L++}})}return!0}}catch(c){console.error("TABLE PASTE",c)}const t=p.$getSelection(),r=t==null?void 0:t.getNodes();return(r==null?void 0:r.length)>1&&Be(r[1])&&e.update(()=>{r.forEach(c=>{St(c)&&c.remove()})}),!1},p.COMMAND_PRIORITY_LOW)),[e])}const zR=33,KR=50;function UR({editor:e}){const n=m.useRef(null),t=m.useRef(null),r=m.useRef(null),[o,i]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),[h,g]=m.useState(null),[C,b]=m.useState({right:!1,bottom:!1});m.useEffect(()=>e.registerCommand(p.SELECTION_CHANGE_COMMAND,M=>{const S=p.$getSelection(),I=xt(S);return d!==I&&f(I),!1},p.COMMAND_PRIORITY_HIGH));const y=m.useCallback(()=>{c(null),g(null),r.current=null,t.current=null,b({right:!1,bottom:!1})},[]);m.useEffect(()=>{const M=S=>{setTimeout(()=>{var W,K;const I=S.target;if(h){i({x:S.clientX,y:S.clientY});return}if(n.current&&n.current.contains(I))return;if(I instanceof Element&&I.closest(".table-cell-action-button-container")){c(null);return}const j=5;let B=null,_=null,D=1/0,O=null;if(l){const F=l.elem.closest("table");if(F){const Y=F.getBoundingClientRect();S.clientX>=Y.left-j&&S.clientX<=Y.right+j&&S.clientY>=Y.top-j&&S.clientY<=Y.bottom+j&&(O=F)}}if(!O&&I instanceof Element){const F=cu(I);if(F?O=F.elem.closest("table"):O=(W=I.closest)==null?void 0:W.call(I,"table"),!O){const Y=document.elementsFromPoint(S.clientX,S.clientY);for(const q of Y){const ee=(K=q.closest)==null?void 0:K.call(q,"table");if(ee){O=ee;break}}}}if(O&&O.querySelectorAll("td, th").forEach((Y,q)=>{var We,ie;const ee=Y.getBoundingClientRect();let Q=cu(Y);if(!Q){const X=Y.closest("tr"),ae=X?Array.from(((We=X.parentElement)==null?void 0:We.children)||[]).indexOf(X):0,pe=Array.from(((ie=Y.parentElement)==null?void 0:ie.children)||[]).indexOf(Y);Q={elem:Y,highlighted:!1,hasBackgroundColor:!1,x:pe,y:ae}}const J=Math.abs(S.clientX-ee.right),xe=S.clientY>=ee.top-j&&S.clientY<=ee.bottom+j;J<=j&&xe&&J<D&&(D=J,B=Q,_="right");const we=Math.abs(S.clientY-ee.bottom),Te=S.clientX>=ee.left-j&&S.clientX<=ee.right+j;we<=j&&Te&&we<D&&(D=we,B=Q,_="bottom")}),B&&_)b({right:_==="right",bottom:_==="bottom"}),l!==B&&e.update(()=>{const F=p.$getNearestNodeFromDOMNode(B.elem);if(!F)return;const Y=Hn(F),q=e.getElementByKey(Y.getKey());q&&(t.current=q.children[0].getBoundingClientRect(),c(B))});else{if(l){const F=l.elem.getBoundingClientRect(),Y=Math.abs(S.clientX-F.right),q=Math.abs(S.clientY-F.bottom),ee=Math.abs(S.clientY-F.top),Q=Math.abs(S.clientX-F.left),J=Math.min(Y,q,ee,Q);b({right:Y<=j&&Y===J,bottom:q<=j&&q===J})}else b({right:!1,bottom:!1});l&&!O&&y()}},0)};return document.addEventListener("mousemove",M),()=>{document.removeEventListener("mousemove",M)}},[l,h,e,y]);const x=M=>M==="bottom",w=m.useCallback(M=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const S=p.$getNearestNodeFromDOMNode(l.elem);if(!Be(S))throw new Error("TableCellResizer: Table cell node not found.");const I=Hn(S),j=Xo(S),B=I.getChildren();if(j>=B.length||j<0)throw new Error("Expected table cell to be inside of table row.");const _=B[j];if(!_t(_))throw new Error("Expected table row");_.setHeight(M)})},[l,e]),k=m.useCallback((M,S)=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const I=p.$getNearestNodeFromDOMNode(l.elem);if(!Be(I))throw new Error("TableCellResizer: Table cell node not found.");const j=Hn(I),B=$o(I),_=j.getChildren();for(let D=0;D<_.length;D++){const O=_[D];if(!_t(O))throw new Error("Expected table row");const W=O.getChildren(),Y=W.map(ee=>ee.getColSpan()).reduce((ee,Q)=>{const J=ee[ee.length-1]??0;return ee.push(J+Q),ee},[]).findIndex(ee=>ee>B);if(Y>=W.length||Y<0)throw new Error("Expected table cell to be inside of table row.");const q=W[Y];if(!Be(q))throw new Error("Expected table cell");q.setWidth(M)}})},[l,e]),T=m.useCallback(M=>{const S=I=>{if(I.preventDefault(),I.stopPropagation(),e.dispatchCommand(ii,!0),!l)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:j,y:B}=r.current;if(l===null)return;const _=E2(I.target);if(x(M)){const D=l.elem.getBoundingClientRect().height,O=Math.abs(I.clientY-B)/_,W=M==="bottom"&&B>I.clientY;w(Math.max(W?D-O:O+D,zR))}else{const D=getComputedStyle(l.elem);let O=l.elem.clientWidth;O-=parseFloat(D.paddingLeft)+parseFloat(D.paddingRight);const W=Math.abs(I.clientX-j)/_,K=M==="right"&&j>I.clientX;k(Math.max(K?O-W:W+O,KR),O),e.update(()=>{p.$setSelection(null)})}y(),document.body.classList.remove("table-resize-active"),document.removeEventListener("mouseup",S)}};return S},[l,y,k,w]),R=m.useCallback(M=>S=>{const I=e.getRootElement();if(I&&I.contains(document.activeElement)&&zi(e),S.preventDefault(),S.stopPropagation(),e.dispatchCommand(ii,!0),!l)throw new Error("TableCellResizer: Expected active cell.");r.current={x:S.clientX,y:S.clientY},i(r.current),g(M),document.body.classList.add("table-resize-active"),document.addEventListener("mouseup",T(M))},[l,T]),L=m.useCallback(()=>{if(l){const{height:M,width:S,top:I,left:j,right:B}=l.elem.getBoundingClientRect(),{right:_}=e._rootElement.getBoundingClientRect(),D=E2(l.elem),O=B>_?B-_+20:0,W={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${j+5}px`,top:`${I+M-5}px`,width:`${S-O}px`,opacity:h==="bottom"||C.bottom?1:0,pointerEvents:h==="bottom"||C.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${M-7}px`,left:`${j+S-5}px`,display:O?"none":"block",top:`${I+7}px`,width:"12px",opacity:h==="right"||C.right?1:0,pointerEvents:h==="right"||C.right?"auto":"none"}},K=t.current;return h&&o&&K&&(x(h)?(W[h].left=`${K.left}px`,W[h].top=`${o.y/D}px`,W[h].height="3px",W[h].width=`${K.width}px`):(W[h].top=`${K.top}px`,W[h].left=`${o.x/D}px`,W[h].width="3px",W[h].height=`${K.height}px`),W[h].backgroundColor="#adf"),W}return{bottom:null,left:null,right:null,top:null}},[l,h,o,C])();return s.jsx("div",{ref:n,children:l!=null&&!d&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.right||void 0,onMouseDown:R("right")}),s.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.bottom||void 0,onMouseDown:R("bottom")})]})})}function HR({}){var r,o;const[e]=ot.useLexicalComposerContext(),n=BC.useLexicalEditable(),t=((o=(r=e.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:o.body)||document.body;return m.useMemo(()=>n?Br.createPortal(s.jsx(UR,{editor:e}),t):null,[e,n,t])}const C5=[{format:"left",icon:Kc,shortcutApple:"(⌘⇧L)",shortcutOther:"(Ctrl+Shift+L)",testIdToolbar:"toolbar-align-left",testIdTable:"table-align-left"},{format:"center",icon:xA,shortcutApple:"(⌘⇧E)",shortcutOther:"(Ctrl+Shift+E)",testIdToolbar:"toolbar-align-center",testIdTable:"table-align-center"},{format:"right",icon:wA,shortcutApple:"(⌘⇧R)",shortcutOther:"(Ctrl+Shift+R)",testIdToolbar:"toolbar-align-right",testIdTable:"table-align-right"},{format:"justify",icon:vA,shortcutApple:"(⌥⌘J)",shortcutOther:"(Ctrl+Alt+J)",testIdToolbar:"toolbar-align-justify",testIdTable:"table-align-justify"}];function A5(e){return{center:{icon:xA,name:e("editor.toolbar.center")},end:{icon:Kc,name:"End Align"},justify:{icon:vA,name:e("editor.toolbar.justify")},left:{icon:Kc,name:e("editor.toolbar.left")},right:{icon:wA,name:e("editor.toolbar.right")},start:{icon:Kc,name:"Start Align"}}}function YR({shortcut:e,trailingIcon:n}){return s.jsxs(v.Flex,{align:"center",gap:8,c:"dimmed",children:[s.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:e}),n]})}function b5({effectiveValue:e,onAlignmentSelect:n,showShortcuts:t,testScope:r,renderLeftSection:o,renderTrailingWhenSelected:i}){const{t:l,i18n:c}=Ue.useTranslation(),d=m.useMemo(()=>A5(l),[c.language]),h=i??s.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"});return s.jsx(s.Fragment,{children:C5.map(g=>{const C=e===g.format,b=r==="toolbar"?g.testIdToolbar:g.testIdTable,y=o?o(g):s.jsx($,{icon:g.icon,size:16});return s.jsx(v.Menu.Item,{leftSection:y,rightSection:t?s.jsx(YR,{shortcut:Wi?g.shortcutApple:g.shortcutOther,trailingIcon:C?h:void 0}):C?h:void 0,onClick:()=>n(g.format),"data-test-id":b,children:d[g.format].name},g.format)})})}const ZR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],GR=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],VR=16;function qR({textColor:e,backgroundColor:n,onTextColorChange:t,onBackgroundColorChange:r}){const{t:o}=Ue.useTranslation(),i=e||"inherit",l=n||"inherit",c=m.useMemo(()=>ZR.map(({value:g,nameKey:C})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${C}`)})),[o]),d=m.useMemo(()=>GR.map(({value:g,nameKey:C,border:b})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${C}`),border:b})),[o]),f=m.useMemo(()=>[{key:"textColor",label:o("editor.toolbar.colorPicker.textColors"),type:"text",colors:c,value:i},{key:"cellBackground",label:o("editor.table.colorPicker.cellBackground"),type:"highlight",colors:d,value:l}],[i,l,o,c,d]),h=(g,C)=>{C==="textColor"?t(g):r(g)};return s.jsxs(v.Menu,{trigger:gi?"hover":"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},shadow:"md",children:[s.jsx(v.Menu.Target,{children:s.jsx("div",{children:s.jsx(Ns,{label:o("editor.table.menu.color"),dataNameAttribute:"table-cell-color",icon:s.jsx($,{icon:li,size:VR,color:"var(--mantine-color-gray-6)"})})})}),s.jsx(v.Menu.Dropdown,{onMouseDown:g=>g.preventDefault(),style:{width:232},children:s.jsx("div",{style:{maxHeight:388,overflowY:"auto"},children:s.jsx(At.ColorPicker.List,{sections:f,onChange:h})})})]})}function y5({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:i,tableDom:l,menuContext:c="cell"}){const[d]=ot.useLexicalComposerContext(),{onTrack:f}=m.useContext(ft),[h,g]=m.useState(e),[C,b]=m.useState({columns:1,rows:1}),[y,x]=m.useState(!1),[w,k]=m.useState(!1),[T,R]=m.useState(!1),[N,L]=m.useState(""),[M,S]=m.useState(""),[I,j]=m.useState("left");m.useEffect(()=>d.registerMutationListener(Zr,H=>{H.get(h.getKey())==="updated"&&(d.getEditorState().read(()=>{g(h.getLatest())}),L(L2(d)||""),S(N2(d)))}),[d,h]),m.useEffect(()=>{t?(L(L2(d)||""),S(N2(d)),d.getEditorState().read(()=>{var Z;const H=r.current;try{const fe=h.getLatest().getFirstChild();fe&&"getFormatType"in fe&&j(fe.getFormatType()||"left")}catch{}if(H&&xt(H)){let re;try{re=T2(H)}catch{return}b(re);const fe=Hn(H.anchor.getNode()),ge=fe.getChildrenSize(),Re=(Z=fe.getChildAtIndex(0))==null?void 0:Z.getChildrenSize(),Oe=re.columns>=Re&&re.rows>=ge;R(Oe),x(RR(H)&&(re.columns>1||re.rows>1))}try{k(IR())}catch{}})):d.update(()=>{p.$getSelection()!==null&&setTimeout(()=>{x(!1),r.current=null,b({columns:1,rows:1});try{h.getParent(),B()}catch{}},200)})},[t]);const B=m.useCallback(()=>{d.update(()=>{if(h.isAttached()){const H=Hn(h),Z=d.getElementByKey(H.getKey());if(!Z)throw new Error("Expected to find tableElement in DOM");const re=k1(Z);re!==null&&re.clearHighlight(),H.markDirty(),g(h.getLatest()),h.getLatest().select(0,0)}else p.$getRoot().selectStart()})},[d,h]),_=m.useCallback(()=>{const Z=Hn(h).getChildren();if(c==="row"&&i!==null){const re=Z[i];if(_t(re))return re.getChildren().filter(Be)}if(c==="column"&&o!==null){const re=[];for(const fe of Z)if(_t(fe)){const ge=fe.getChildAtIndex(o);Be(ge)&&re.push(ge)}return re}return[h]},[h,c,i,o]),D=()=>{d.update(()=>{var Z;if(c==="row"||c==="column"){const re=_();if(re.length<=1)return;const fe=re[0];c==="row"?fe.setColSpan(re.length):fe.setRowSpan(re.length);const ge=kc(fe);let Re;ge&&p.$isParagraphNode(Re=fe.getFirstChild())&&Re.remove();for(let Oe=1;Oe<re.length;Oe++)kc(re[Oe])||fe.append(...re[Oe].getChildren()),re[Oe].remove();fe.getChildrenSize()===0&&fe.append(p.$createParagraphNode()),M2(fe);return}const H=r.current;if(xt(H)){let re;try{re=T2(H)}catch{return}const{columns:fe,rows:ge}=re,Re=Hn(H.anchor.getNode()),Oe=Re.getChildrenSize(),ce=(Z=Re.getChildAtIndex(0))==null?void 0:Z.getChildrenSize();if(fe>=ce&&ge>=Oe)return;const Le=H.getNodes();let Ze=null;for(let dt=0;dt<Le.length;dt++){const Ct=Le[dt];if(Be(Ct))if(Ze===null){Ct.setColSpan(fe).setRowSpan(ge),Ze=Ct;const Wt=kc(Ct);let Dt;Wt&&p.$isParagraphNode(Dt=Ct.getFirstChild())&&Dt.remove()}else Be(Ze)&&(kc(Ct)||Ze.append(...Ct.getChildren()),Ct.remove())}Ze!==null&&(Ze.getChildrenSize()===0&&Ze.append(p.$createParagraphNode()),M2(Ze))}})},O=()=>{d.update(()=>{if(c==="row"||c==="column"){const H=_();for(const Z of H)if(Z.getColSpan()>1||Z.getRowSpan()>1){Z.selectStart(),A0();break}return}A0()})},W=m.useCallback(H=>{f==null||f("table_row_added",{position:H?"after":"before"}),d.update(()=>{const Z=!H&&h.getHeaderStyles()&Tt.ROW;for(let re=0;re<C.rows;re++)Xa(H);if(Z){const fe=Hn(h).getChildren(),ge=fe[0],Re=fe[1];_t(ge)&&_t(Re)&&(ge.getChildren().forEach(Oe=>{Be(Oe)&&Oe.setHeaderStyles(Tt.ROW,Tt.ROW)}),Re.getChildren().forEach(Oe=>{Be(Oe)&&Oe.setHeaderStyles(Tt.NO_STATUS,Tt.ROW)}))}})},[d,C.rows,h]),K=m.useCallback(H=>{f==null||f("table_column_added",{position:H?"after":"before"}),d.update(()=>{const Z=!H&&h.getHeaderStyles()&Tt.COLUMN;for(let re=0;re<C.columns;re++)lu(H);if(Z){const fe=Hn(h).getChildren();for(const ge of fe){if(!_t(ge))continue;const Re=ge.getChildAtIndex(0),Oe=ge.getChildAtIndex(1);Be(Re)&&Re.setHeaderStyles(Tt.COLUMN,Tt.COLUMN),Be(Oe)&&Oe.setHeaderStyles(Tt.NO_STATUS,Tt.COLUMN)}}})},[d,C.columns]),F=m.useCallback(()=>{f==null||f("table_row_deleted"),d.update(()=>{XA()})},[d]),Y=m.useCallback(()=>{d.update(()=>{Hn(e).remove(),B()})},[d,e,B]),q=m.useCallback(()=>{f==null||f("table_column_deleted"),d.update(()=>{$A()})},[d]),ee=m.useCallback(()=>{d.update(()=>{const H=Hn(h),Z=Xo(h),re=H.getChildren();if(Z>=re.length||Z<0)throw new Error("Expected table cell to be inside of table row.");const fe=re[Z];if(!_t(fe))throw new Error("Expected table row");const ge=h.getHeaderStyles()^Tt.ROW;fe.getChildren().forEach(Re=>{if(!Be(Re))throw new Error("Expected table cell");Re.setHeaderStyles(ge,Tt.ROW)}),B()})},[d,h,B]),Q=m.useCallback(H=>{d.update(()=>{const Z=Hn(h),re=$o(h),fe=Z.getChildren(),ge=Math.max(...fe.map(Oe=>Oe.getChildren().length));if(re>=ge||re<0)throw new Error("Expected table cell to be inside of table row.");const Re=h.getHeaderStyles()^Tt.COLUMN;for(let Oe=0;Oe<fe.length;Oe++){const ce=fe[Oe];if(!_t(ce))throw new Error("Expected table row");const Le=ce.getChildren();if(re>=Le.length)continue;const Ze=Le[re];if(!Be(Ze))throw new Error("Expected table cell");H?Ze.setHeaderStyles(0,3):Ze.setHeaderStyles(Re,Tt.COLUMN)}B()})},[d,h,B]),J=m.useCallback(H=>{d.update(()=>{if(c==="row"||c==="column"){const re=_();for(const fe of re)fe.setBackgroundColor(H);return}const Z=r.current;if(p.$isRangeSelection(Z)||xt(Z)){const[re]=Tn(Z.anchor);if(Be(re)&&re.setBackgroundColor(H),xt(Z)){const fe=Z.getNodes();for(let ge=0;ge<fe.length;ge++){const Re=fe[ge];Be(Re)&&Re.setBackgroundColor(H)}}}})},[d,c,_]),xe=m.useCallback(H=>{d.update(()=>{const Z=H==="inherit"||!H?null:H;if(c==="row"||c==="column"){const fe=_();for(const ge of fe)Df(ge,Z);return}const re=r.current;if(p.$isRangeSelection(re)||xt(re)){const[fe]=Tn(re.anchor);if(Be(fe)&&Df(fe,Z),xt(re)){const ge=re.getNodes();for(let Re=0;Re<ge.length;Re++){const Oe=ge[Re];Be(Oe)&&Df(Oe,Z)}}}})},[d,c,_,r]),we=m.useCallback(()=>{function H(Z){const re=Z.exportJSON();return typeof Z.getChildren=="function"&&(re.children=Z.getChildren().map(fe=>H(fe))),re}d.update(()=>{const Z=Hn(h);if(c==="row"&&i!==null){const fe=Z.getChildren()[i];if(!_t(fe))return;const ge=fe.getChildren().filter(Be).map(Le=>H(Le));Xa(!0);const Oe=Z.getChildren()[i+1];if(!_t(Oe))return;const ce=Oe.getChildren().filter(Be);for(let Le=0;Le<Math.min(ge.length,ce.length);Le++){ce[Le].getChildren().forEach(dt=>dt.remove());for(const dt of ge[Le].children)ce[Le].append(p.$parseSerializedNode(dt));ce[Le].setBackgroundColor(ge[Le].backgroundColor||"");const Ze=ge[Le].headerState&Tt.COLUMN;ce[Le].setHeaderStyles(Ze?Tt.COLUMN:Tt.NO_STATUS,Tt.ROW|Tt.COLUMN)}}else if(c==="column"&&o!==null){const fe=Z.getChildren().filter(_t).map(Oe=>{const ce=Oe.getChildAtIndex(o);return Be(ce)?H(ce):null});lu(!0);const ge=Z.getChildren();let Re=0;for(const Oe of ge){if(!_t(Oe))continue;const ce=fe[Re];if(Re++,!ce)continue;const Le=Oe.getChildAtIndex(o+1);if(!Be(Le))continue;Le.getChildren().forEach(dt=>dt.remove());for(const dt of ce.children)Le.append(p.$parseSerializedNode(dt));Le.setBackgroundColor(ce.backgroundColor||"");const Ze=ce.headerState&Tt.ROW;Le.setHeaderStyles(Ze?Tt.ROW:Tt.NO_STATUS,Tt.ROW|Tt.COLUMN)}}})},[d,c,h,i,o]),Te=m.useCallback(()=>{d.update(()=>{if(c==="row"||c==="column"){const Z=_();for(const re of Z)re.getChildren().forEach(fe=>fe.remove()),re.append(p.$createParagraphNode());return}const H=r.current;if(xt(H)){const Z=H.getNodes();for(const re of Z)Be(re)&&(re.getChildren().forEach(fe=>fe.remove()),re.append(p.$createParagraphNode()))}else{const Z=p.$getSelection()||H;if(!Z||!p.$isRangeSelection(Z)&&!xt(Z))return;const[re]=Tn(Z.anchor);Be(re)&&(re.getChildren().forEach(fe=>fe.remove()),re.append(p.$createParagraphNode()),re.selectStart())}})},[d,r,c,_]),We=m.useCallback(()=>{c==="row"?F():c==="column"?q():Y()},[c,F,q,Y]),ie=m.useCallback(H=>{c==="row"||c==="column"?d.update(()=>{const Z=_();for(const re of Z)re.getChildren().forEach(fe=>{p.$isElementNode(fe)&&fe.setFormat(H)})}):d.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,H)},[d,c,_]),X=m.useCallback(()=>{d.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0)},[d]),ae=m.useCallback(()=>{d.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0)},[d]),pe=i===0&&OR(l),Ce=o===0&&DR(o||0,l),G=c==="row"||c==="column",he=(()=>{if(!G)return!1;try{return d.getEditorState().read(()=>_().some(Z=>Z.getColSpan()>1||Z.getRowSpan()>1))}catch{return!1}})();return{tableCellNode:h,selectionCounts:C,canMergeCells:y,canUnmergeCell:w,isAllCellsSelected:T,backgroundColor:N,textColor:M,cellAlignment:I,isTableRowHeader:pe,isTableCollHeader:Ce,isFullMenu:G,isMerged:G?he:w,cellMerge:n,menuContext:c,currentIndexRow:i,currentIndexColumn:o,mergeTableCellsAtSelection:D,unmergeTableCellsAtSelection:O,insertTableRowAtSelection:W,insertTableColumnAtSelection:K,toggleTableRowIsHeader:ee,toggleTableColumnIsHeader:Q,duplicateRowOrColumn:we,clearCellContent:Te,handleDelete:We,handleCellBackgroundColor:J,handleCellTextColor:xe,handleAlignment:ie,handleIndentIncrease:X,handleIndentDecrease:ae}}const Un=16,nr=({children:e,color:n})=>s.jsx("span",{style:{color:n||"var(--mantine-color-gray-6)",display:"flex",alignItems:"center"},children:e}),QR=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:Un,height:Un,viewBox:"0 0 16 16",fill:"none",children:s.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),JR=({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:i,tableDom:l,menuContext:c="cell"})=>{const{t:d}=Ue.useTranslation(),{canMergeCells:f,canUnmergeCell:h,isAllCellsSelected:g,backgroundColor:C,textColor:b,cellAlignment:y,isTableRowHeader:x,isTableCollHeader:w,isFullMenu:k,isMerged:T,mergeTableCellsAtSelection:R,unmergeTableCellsAtSelection:N,insertTableRowAtSelection:L,insertTableColumnAtSelection:M,toggleTableRowIsHeader:S,toggleTableColumnIsHeader:I,duplicateRowOrColumn:j,clearCellContent:B,handleDelete:_,handleCellBackgroundColor:D,handleCellTextColor:O,handleAlignment:W,handleIndentIncrease:K,handleIndentDecrease:F}=y5({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:i,tableDom:l,menuContext:c});return s.jsxs(s.Fragment,{children:[s.jsx(qR,{textColor:b,backgroundColor:C,onTextColorChange:O,onBackgroundColorChange:D}),s.jsxs(v.Menu,{trigger:gi?"hover":"click",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[s.jsx(v.Menu.Target,{children:s.jsx("div",{children:s.jsx(Ns,{label:d("editor.toolbar.align"),dataNameAttribute:"table-alignment",icon:s.jsx($,{icon:ek,size:Un,color:"var(--mantine-color-gray-6)"})})})}),s.jsxs(v.Menu.Dropdown,{children:[s.jsx(b5,{effectiveValue:y||"left",onAlignmentSelect:W,showShortcuts:!0,testScope:"table",renderLeftSection:Y=>s.jsx(nr,{children:s.jsx($,{icon:Y.icon,size:Un})}),renderTrailingWhenSelected:s.jsx(nr,{color:"var(--mantine-primary-color-filled)",children:s.jsx($,{icon:Jn,size:Un})})}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:_k,size:Un})}),onClick:K,"data-test-id":"table-indent-increase",children:d("editor.table.menu.increaseIndent")}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:Bk,size:Un})}),onClick:F,"data-test-id":"table-indent-decrease",children:d("editor.table.menu.decreaseIndent")})]})]}),k&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Divider,{}),(c==="row"&&i===0||c==="column"&&o===0)&&s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:yA,size:Un})}),rightSection:s.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:c==="row"?x:w,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{c==="row"?S():I(w)},"data-test-id":c==="row"?"table-row-header":"table-column-header",children:d(c==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:$c,size:Un})}),rightSection:s.jsx(v.Switch,{size:"xs",checked:T,onChange:()=>{},styles:{root:{pointerEvents:"none"}},withThumbIndicator:!1}),onClick:()=>{T?N():R()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")}),c==="row"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:gA,size:Un})}),"data-test-id":"table-insert-row-above",onClick:()=>L(!1),children:d("editor.table.menu.insertAbove")}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:mA,size:Un})}),"data-test-id":"table-insert-row-below",onClick:()=>L(!0),children:d("editor.table.menu.insertBelow")})]}),c==="column"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:hA,size:Un})}),"data-test-id":"table-insert-column-before",onClick:()=>M(!1),children:d("editor.table.menu.insertLeft")}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:pA,size:Un})}),"data-test-id":"table-insert-column-after",onClick:()=>M(!0),children:d("editor.table.menu.insertRight")})]}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx($,{icon:ir,size:Un})}),"data-test-id":"table-duplicate",onClick:j,children:d("editor.table.menu.duplicate")})]}),!k&&n&&(f||h)&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{disabled:g&&!h,leftSection:s.jsx(nr,{children:s.jsx($,{icon:$c,size:Un})}),rightSection:s.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:T,readOnly:!0,disabled:g&&!h,styles:{track:{cursor:"pointer"}}}),onClick:()=>{h?N():f&&R()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")})]}),!k&&s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{leftSection:s.jsx(nr,{children:s.jsx(QR,{})}),"data-test-id":"table-clear-content",onClick:B,children:d("editor.table.menu.clearContent")}),k&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Item,{color:"red",leftSection:s.jsx(nr,{color:"var(--mantine-color-red-6)",children:s.jsx($,{icon:sn,size:Un})}),"data-test-id":c==="row"?"table-delete-rows":"table-delete-columns",onClick:_,children:d("editor.table.menu.delete")})]})]})},so="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",XR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],$R=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],eI=({tableCellNode:e,setIsMenuOpen:n,cellMerge:t,isMenuOpen:r,selectionBeforeMenuOpenedRef:o,currentIndexColumn:i,currentIndexRow:l,tableDom:c,menuContext:d="cell",onOpen:f,children:h})=>{const{t:g}=Ue.useTranslation(),[C,{open:b,close:y}]=Ft.useDisclosure(!1),[x,{open:w,close:k}]=Ft.useDisclosure(!1),{backgroundColor:T,textColor:R,isFullMenu:N,isMerged:L,isTableRowHeader:M,isTableCollHeader:S,mergeTableCellsAtSelection:I,unmergeTableCellsAtSelection:j,insertTableRowAtSelection:B,insertTableColumnAtSelection:_,toggleTableRowIsHeader:D,toggleTableColumnIsHeader:O,duplicateRowOrColumn:W,clearCellContent:K,handleDelete:F,handleCellBackgroundColor:Y,handleCellTextColor:q}=y5({tableCellNode:e,cellMerge:t,isMenuOpen:C||x,selectionBeforeMenuOpenedRef:o,currentIndexColumn:i,currentIndexRow:l,tableDom:c,menuContext:d}),ee=m.useMemo(()=>XR.map(({value:X,nameKey:ae})=>({value:X,label:g(`editor.toolbar.colorPicker.names.${ae}`)})),[g]),Q=m.useMemo(()=>$R.map(({value:X,nameKey:ae,border:pe})=>({value:X,label:g(`editor.toolbar.colorPicker.names.${ae}`),border:pe})),[g]),J=m.useMemo(()=>[{key:"textColor",label:g("editor.toolbar.colorPicker.textColors"),type:"text",colors:ee,value:R||"inherit"},{key:"cellBackground",label:g("editor.table.colorPicker.cellBackground"),type:"highlight",colors:Q,value:T||"inherit"}],[R,T,g,ee,Q]),xe=(X,ae)=>{ae==="textColor"?q(X):Y(X)},we=()=>{f(),n(!0),b()},Te=()=>{y(),n(!1)},We=()=>{k(),n(!1)},ie=g(d==="column"?"editor.table.mobile.columnActions":"editor.table.mobile.rowActions");return s.jsxs(s.Fragment,{children:[s.jsx("div",{onClick:we,style:{display:"contents"},children:h}),s.jsx(Bt,{opened:C,onClose:Te,title:ie,children:s.jsxs(v.Stack,{gap:2,p:0,children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:so,leftSection:s.jsx($,{icon:li,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:s.jsx($,{icon:Fi,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{y(),w()},"data-test-id":"table-mobile-color",children:g("editor.table.menu.color")}),N&&s.jsxs(s.Fragment,{children:[(d==="row"&&l===0||d==="column"&&i===0)&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:so,leftSection:s.jsx($,{icon:yA,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:s.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:d==="row"?M:S,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{d==="row"?D():O(S),Te()},"data-test-id":d==="row"?"table-mobile-row-header":"table-mobile-column-header",children:g(d==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:so,leftSection:s.jsx($,{icon:$c,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:s.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:L,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{L?j():I(),Te()},"data-test-id":"table-mobile-merge",children:g("editor.table.menu.mergeCells")}),d==="row"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:gA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{B(!1),Te()},"data-test-id":"table-mobile-insert-row-above",children:g("editor.table.menu.insertAbove")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:mA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{B(!0),Te()},"data-test-id":"table-mobile-insert-row-below",children:g("editor.table.menu.insertBelow")})]}),d==="column"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:hA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!1),Te()},"data-test-id":"table-mobile-insert-column-left",children:g("editor.table.menu.insertLeft")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:pA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!0),Te()},"data-test-id":"table-mobile-insert-column-right",children:g("editor.table.menu.insertRight")})]}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{W(),Te()},"data-test-id":"table-mobile-duplicate",children:g("editor.table.menu.duplicate")})]}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:{color:"var(--mantine-color-dimmed)"},children:s.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),onClick:()=>{K(),Te()},"data-test-id":"table-mobile-clear-content",children:g("editor.table.menu.clearContent")}),N&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:so,leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>{F(),Te()},"data-test-id":d==="row"?"table-mobile-delete-row":"table-mobile-delete-column",children:g("editor.table.menu.delete")})]})}),s.jsx(Bt,{opened:x,onClose:We,title:g("editor.table.menu.color"),children:s.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:s.jsx(At.ColorPicker.List,{sections:J,onChange:xe})})})]})},Of=({tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,children:o,tableDom:i,isMenuOpen:l,menuContext:c="cell"})=>{const[d]=ot.useLexicalComposerContext(),f=m.useRef(null),h=m.useRef(null),g=m.useRef(null),C=()=>{n(!0),d.read(()=>{const b=$o(e),y=Xo(e);h.current=b,g.current=y;const x=p.$getSelection();xt(x)?f.current=x.clone():(o7(e,d),setTimeout(()=>{d.read(()=>{const w=p.$getSelection();f.current=w})},200))})};return rt?s.jsx(eI,{tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,isMenuOpen:l,tableDom:i,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c,onOpen:C,children:o}):s.jsxs(v.Menu,{onOpen:C,onClose:()=>n(!1),shadow:"md",position:"right",opened:l,clickOutsideEvents:["mousedown"],transitionProps:Fn,classNames:{dropdown:"table-menu-dropdown"},children:[s.jsx(v.Menu.Target,{children:o}),s.jsx(v.Menu.Dropdown,{children:s.jsx(JR,{isMenuOpen:l,contextRef:t,tableCellNode:e,cellMerge:r,setIsMenuOpen:n,tableDom:i,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c})})]})},Sc=12;function tI({anchorElem:e,isShowTableOptions:n,cellMerge:t}){var ke,Fe;const[r]=ot.useLexicalComposerContext(),[o,i]=m.useState(!1),[l,c]=m.useState({}),[d,f]=m.useState({}),[h,g]=m.useState({}),[C,b]=m.useState({}),[y,x]=m.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),w=m.useRef(null),k=m.useCallback(me=>{x(se=>{const Ae=typeof me=="function"?me(se):me,Pe=se.row&&!Ae.row,He=se.column&&!Ae.column;return(Pe||He)&&document.body.classList.contains("table-drag-active")?se:Pe||He?(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{document.body.classList.contains("table-drag-active")||x($e=>({...$e,row:Pe?!1:$e.row,column:He?!1:$e.column}))},150),{...Ae,row:Pe?se.row:Ae.row,column:He?se.column:Ae.column}):(w.current&&(Ae.row||Ae.column)&&(clearTimeout(w.current),w.current=null),Ae)})},[]),[T,R]=m.useState(!1),[N,L]=m.useState(!1),[M,S]=m.useState({}),[I,j]=m.useState({}),[B,_]=m.useState({}),[D,O]=m.useState(!1),[W,K]=m.useState(!1),[F,Y]=m.useState(!1),[q,ee]=m.useState(!1),[Q,J]=m.useState(!1),[xe,we]=m.useState(null),[Te,We]=m.useState(null),[ie,X]=m.useState(null),ae=m.useRef(null),pe=m.useRef(null),Ce=m.useRef(null),G=m.useRef(!1),he=m.useRef(null),oe=m.useRef(!1),H=m.useRef(null),Z=m.useRef(new Set),re=m.useRef(null),fe=m.useRef(null),ge=m.useRef(null),Re=m.useRef(null),Oe=m.useRef(null),ce=m.useRef(null),{t:Le}=Ue.useTranslation();G.current=D||T||N;const Ze=ea(me=>{if(document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const{isOutside:se,tableDOMNode:Ae,edgeDirection:Pe}=nI(me,r,y.row);H.current=Pe;const He=me.target;if(He!=null&&He.closest(".table-cell-add-container")||He!=null&&He.closest(".table-row-add-container")||G.current)return;if(se&&(y.row||y.column)){const ct=e.querySelectorAll("table.dsd__theme__table");for(const be of ct){const Se=be.getBoundingClientRect(),ze=me.clientY>Se.bottom-10&&me.clientY<Se.bottom+25,_e=me.clientX>Se.right-10&&me.clientX<Se.right+25;if(ze&&_e)return}}if(se&&(y.top||y.bottom||y.left||y.right||y.column||y.row)){if(oe.current){k(ct=>({...ct,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),ce.current=null;return}if(he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),Q){if(r.getEditorState().read(()=>xt(p.$getSelection()))){k(be=>({...be,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),ce.current=null;return}J(!1),We(null),we(null),Ca(!1)}k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),ce.current=null;return}if(!Ae)return;ge.current=Ae;let $e=null,it=null,Je=null;r.update(()=>{var ze,_e,Xe,Ye,et,Ke;const ct=p.$getSelection();if(xt(ct))return;Q&&(J(!1),We(null),we(null));const be=p.$getNearestNodeFromDOMNode(Ae),Se=H.current;if(!(((ze=ce.current)==null?void 0:ze.__key)===(be==null?void 0:be.__key)&&y.options)&&(((_e=ce.current)==null?void 0:_e.__key)!==(be==null?void 0:be.__key)&&(k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),K(!1),Y(!1),ee(!1)),ce.current=be,Be(be))){const at=ve.$findMatchingParent(be,tt=>St(tt));if(!St(at))return;if(Je=r.getElementByKey(at==null?void 0:at.getKey()),Je){const tt=at.getChildrenSize(),st=(Xe=at.getChildAtIndex(0))==null?void 0:Xe.getChildrenSize(),qe=Xo(be),ut=$o(be);if(Re.current=(Ye=Je.firstChild)==null?void 0:Ye.childNodes[qe+1].firstChild,Oe.current=(Ke=(et=Je.firstChild)==null?void 0:et.childNodes[1])==null?void 0:Ke.childNodes[ut],Se==="bottom")$e=be,ce.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1});else if(Se==="right")it=be,ce.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1});else{const Ot=qe===tt-1,bt=ut===st-1;Ot&&($e=be),bt&&(it=be),w.current&&(clearTimeout(w.current),w.current=null),x(Lt=>({...Lt,column:bt,row:Ot}))}}}}),setTimeout(()=>{var ct,be,Se,ze,_e;if(!document.body.classList.contains("table-drag-active")&&Je){const{width:Xe,y:Ye,left:et,right:Ke,bottom:at,height:tt}=Je.getBoundingClientRect(),{y:st,left:qe}=e.getBoundingClientRect();if(ce.current){const bt=r.getElementByKey(ce.current.getKey());if(bt!=null){const Lt=bt.getBoundingClientRect(),Nt=Je.getBoundingClientRect();if(!G.current){const tn=Nt.left+Je.clientWidth;let Kt=Lt.right-qe-8;Lt.right>tn&&(Kt=tn-qe-8),_({top:Lt.top-st+Lt.height/2-11,left:Kt}),S({top:Lt.top-st+Lt.height/2-11,left:et-qe-6}),j({top:Ye-st-6,left:Lt.left-qe+Lt.width/2-11})}}}if(Oe.current){const{top:bt,width:Lt,left:Nt,right:tn}=Oe.current.getBoundingClientRect(),Kt=Sc,an=Nt-qe-Kt/2,Ut=bt-st-Kt/2;let Vt=Lt+Kt+2;tn>Ke&&(Vt=Vt-(tn-Ke)),g({width:Vt,height:Kt,top:Ut,left:an})}if(Re.current){const{top:bt,height:Lt}=Re.current.getBoundingClientRect(),Nt=Sc,tn=et-qe-Nt/2,Kt=bt-st-Nt/2;b({height:Lt+Nt+2,top:Kt,left:tn})}const ut=(ct=Je.parentElement)!=null&&ct.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if($e){const bt=((be=Je.firstElementChild)==null?void 0:be.clientWidth)||0,Lt=Je.closest(".dsd__theme__table-scrollable-wrapper"),Nt=Lt==null?void 0:Lt.getBoundingClientRect(),tn=Nt?Nt.bottom:at,Kt=Xe>bt?bt:Xe,an=Nt?Nt.left-qe:et-qe,Ut=Nt?Math.min(Kt,Nt.width):Kt;c({left:an,top:tn-st+6,width:Ut,padding:0,backgroundColor:ut})}const{right:Ot}=(Se=Je.firstElementChild)==null?void 0:Se.getBoundingClientRect();if(it){BR(Ke,(_e=(ze=r._rootElement)==null?void 0:ze.parentElement)==null?void 0:_e.parentElement);const bt=Math.min(Ot,Ke);f({height:tt,left:bt-qe+6,top:Ye-st,padding:0,backgroundColor:ut})}}},100)},50,150),dt=()=>{k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),ce.current=null,R(!1),L(!1),O(!1),K(!1),Y(!1),ee(!1),X(null)},Ct=(Fe=(ke=Re.current)==null?void 0:ke.parentElement)==null?void 0:Fe.parentElement;m.useEffect(()=>{var me;if(Ct){(me=fe.current)==null||me.call(fe);const se=()=>{document.body.classList.contains("table-drag-active")||dt()},Ae=Ct.parentElement;return Ae==null||Ae.addEventListener("scroll",se),fe.current=()=>{Ae==null||Ae.removeEventListener("scroll",se)},()=>{var Pe;(Pe=fe.current)==null||Pe.call(fe),fe.current=null}}},[Ct]),m.useEffect(()=>{const me=se=>{var Ae;(Ae=se.target)!=null&&Ae.closest(".TableCellResizer__resizer")&&dt()};return document.addEventListener("mousedown",me,!0),()=>document.removeEventListener("mousedown",me,!0)},[]),m.useEffect(()=>{if(!o)return;const me=se=>{var ct,be;const Ae=se.target;if(!Ae||document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const Pe=e.querySelectorAll("table.dsd__theme__table");let He=null;for(const Se of Pe){const ze=Se.getBoundingClientRect();if(se.clientX>ze.right-10&&se.clientX<ze.right+25&&se.clientY>ze.bottom-10&&se.clientY<ze.bottom+25){He=Se;break}}if(He){const Se=He.getBoundingClientRect(),ze=se.clientX,_e=se.clientY,Xe=_e>Se.bottom-10&&_e<Se.bottom+25,Ye=ze>Se.right-10&&ze<Se.right+25;if(Xe&&Ye){Ze.cancel();const et=He.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell"),Ke=et[et.length-1];if(Ke&&(ge.current=Ke),y.row&&y.column)return;const{y:at,left:tt}=e.getBoundingClientRect(),st=(ct=He.closest)==null?void 0:ct.call(He,".dsd__theme__table-scrollable-wrapper"),qe=st==null?void 0:st.getBoundingClientRect(),ut=qe?Math.min(Se.right,qe.right):Se.right;c({top:(qe?qe.bottom:Se.bottom)-at+6,left:qe?qe.left-tt:Se.left-tt,width:qe?Math.min(Se.width,qe.width):Se.width,padding:0}),f({top:Se.top-at,left:ut-tt+6,height:qe?qe.height:Se.height,padding:0}),k(Ot=>({...Ot,row:!0,column:!0}));return}}const $e=e.querySelector(".dsd__theme__tableAddColumns"),it=e.querySelector(".dsd__theme__tableAddRows");{const Se=se.clientX,ze=se.clientY;if($e){const _e=$e.getBoundingClientRect();if(Se>=_e.left-6&&Se<=_e.right&&ze>=_e.top&&ze<=_e.bottom){Ze.cancel();return}}if(it){const _e=it.getBoundingClientRect();if(Se>=_e.left&&Se<=_e.right&&ze>=_e.top-6&&ze<=_e.bottom){Ze.cancel();return}}}if(Ae.closest(".dsd__theme__tableAddRows")||Ae.closest(".dsd__theme__tableAddColumns")||Ae.closest(".dsd__theme__tableAddCorner")||Ae.closest(".table-cell-action-button-container")||Ae.closest(".table-row-add-container")||Ae.closest(".table-cell-add-container")||Ae.closest('[data-testid^="table-"]')||Ae.closest(".mantine-Menu-dropdown")){Ze.cancel();return}if(document.body.classList.contains("table-drag-active"))return;const Je=(be=Ae.closest)==null?void 0:be.call(Ae,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(Ae.className==="ContentEditable__root"||Ae.className==="ContentEditable__root focused"||Ae.className==="dsd__theme__table-scrollable-wrapper"||Ae.className==="content-editable-wrapper"){const Se="td.dsd__theme__tableCell, th.dsd__theme__tableCell",ze=document.elementFromPoint(se.x-20,se.y),_e=document.elementFromPoint(se.x,se.y-20),Xe=ze==null?void 0:ze.closest(Se),Ye=_e==null?void 0:_e.closest(Se);if(Xe&&Ye){Ze.cancel();const et=Ye.closest("table.dsd__theme__table");if(et){const Ke=et.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell");ge.current=Ke[Ke.length-1]||Ye}else ge.current=Ye;if(y.row&&y.column)return;if(et){const Ke=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),st=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=st==null?void 0:st.getBoundingClientRect(),ut=qe?Math.min(Ke.right,qe.right):Ke.right;c({top:(qe?qe.bottom:Ke.bottom)-at+6,left:qe?qe.left-tt:Ke.left-tt,width:qe?Math.min(Ke.width,qe.width):Ke.width,padding:0}),f({top:Ke.top-at,left:ut-tt+6,height:Ke.height,padding:0})}k(Ke=>({...Ke,row:!0,column:!0}));return}if(Xe){Ze.cancel(),ge.current=Xe;const et=Xe.closest("table.dsd__theme__table");if(et){const Ke=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),st=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=st==null?void 0:st.getBoundingClientRect(),ut=qe?Math.min(Ke.right,qe.right):Ke.right;f({top:Ke.top-at,left:ut-tt+6,height:Ke.height,padding:0}),k(Ot=>({...Ot,column:!0}))}return}if(Ye){Ze.cancel(),ge.current=Ye;const et=Ye.closest("table.dsd__theme__table");if(et){const Ke=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),st=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=st==null?void 0:st.getBoundingClientRect();c({top:(qe?qe.bottom:Ke.bottom)-at+6,left:qe?qe.left-tt:Ke.left-tt,width:qe?Math.min(Ke.width,qe.width):Ke.width,padding:0}),k(ut=>({...ut,row:!0}))}return}}if(Je){if(oe.current){r.read(()=>{var ze,_e;const Se=p.$getNearestNodeFromDOMNode(Je);if(Be(Se)){const Xe=ve.$findMatchingParent(Se,Ye=>St(Ye));if(St(Xe)){const Ye=Xe.getChildrenSize(),et=(ze=Xe.getChildAtIndex(0))==null?void 0:ze.getChildrenSize(),Ke=Xo(Se),at=$o(Se),tt=Ke===Ye-1,st=at===et-1,qe=Je.closest("table.dsd__theme__table"),ut=(_e=he.current)==null?void 0:_e.closest("table.dsd__theme__table");if(qe&&ut&&qe!==ut&&(tt||st)){const bt=qe.getBoundingClientRect(),{y:Lt,left:Nt}=e.getBoundingClientRect();if(r.getElementByKey(Xe.getKey()),tt&&(ge.current=Je,c({left:bt.left-Nt,top:bt.bottom-Lt+6,width:bt.width,padding:0})),st){const tn=qe.closest(".dsd__theme__table-scrollable-wrapper"),Kt=tn==null?void 0:tn.getBoundingClientRect(),an=Kt?Math.min(bt.right,Kt.right):bt.right;ge.current=Je,f({top:bt.top-Lt,left:an-Nt+6,height:bt.height,padding:0})}}k(bt=>({...bt,row:tt,column:st}))}}});return}r.read(()=>{var ze;const Se=p.$getNearestNodeFromDOMNode(Je);if(Be(Se)){const _e=ve.$findMatchingParent(Se,Xe=>St(Xe));if(St(_e)){const Xe=_e.getChildrenSize(),Ye=(ze=_e.getChildAtIndex(0))==null?void 0:ze.getChildrenSize(),et=Xo(Se),Ke=$o(Se),at=et===Xe-1,tt=Ke===Ye-1;if(w.current&&(clearTimeout(w.current),w.current=null),at||tt){const st=r.getElementByKey(_e.getKey());if(st){const qe=st.querySelector("table.dsd__theme__table")||st,ut=qe.getBoundingClientRect(),{y:Ot,left:bt}=e.getBoundingClientRect(),Lt=qe.closest(".dsd__theme__table-scrollable-wrapper"),Nt=Lt==null?void 0:Lt.getBoundingClientRect();if(at&&(ge.current=Je,c({top:(Nt?Nt.bottom:ut.bottom)-Ot+6,left:Nt?Nt.left-bt:ut.left-bt,width:Nt?Math.min(ut.width,Nt.width):ut.width,padding:0})),tt){ge.current=Je;const tn=Nt?Math.min(ut.right,Nt.right):ut.right;f({top:ut.top-Ot,left:tn-bt+6,height:Nt?Nt.height:ut.height,padding:0})}}}x(st=>({...st,row:at,column:tt}))}}});return}oe.current?(y.row||y.column)&&k(Se=>({...Se,row:!1,column:!1})):(y.row||y.column)&&Ze(se)};return document.addEventListener("mousemove",me),()=>{document.removeEventListener("mousemove",me)}},[o,Ze,y.options,y.row,y.column]),m.useEffect(()=>{if(!o)return;const me=se=>{var $e;Ze.cancel(),H.current=null;const Ae=se.target;if(G.current)return;const Pe=r.getEditorState().read(()=>p.$getSelection());if(xt(Pe))return;const He=($e=Ae==null?void 0:Ae.closest)==null?void 0:$e.call(Ae,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(!He){oe.current=!1,dt();return}se.shiftKey||(oe.current=!0,ge.current=He,he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),J(!1),We(null),we(null),Ca(!1),r.update(()=>{var at,tt,st,qe;const it=p.$getNearestNodeFromDOMNode(He);if(!Be(it))return;const Je=p.$getSelection();xt(Je)&&it.selectStart();const ct=ve.$findMatchingParent(it,ut=>St(ut));if(!St(ct))return;const be=r.getElementByKey(ct.getKey());if(!be)return;const Se=ct.getChildrenSize(),ze=(at=ct.getChildAtIndex(0))==null?void 0:at.getChildrenSize(),_e=Xo(it),Xe=$o(it),Ye=_e===Se-1,et=Xe===ze-1;Re.current=(tt=be.firstChild)==null?void 0:tt.childNodes[_e+1].firstChild,Oe.current=(qe=(st=be.firstChild)==null?void 0:st.childNodes[1])==null?void 0:qe.childNodes[Xe],ce.current=it;const Ke=r.getElementByKey(it.getKey());Ke&&(Ke.classList.add("dsd__theme__tableCellActive"),he.current=Ke),k({top:!0,bottom:!0,left:!0,right:!0,column:et,row:Ye,options:!0}),K(!1),Y(!1),ee(!1),setTimeout(()=>{var Vt,Xt,_r;const{width:ut,y:Ot,left:bt,right:Lt,bottom:Nt,height:tn}=be.getBoundingClientRect(),{y:Kt,left:an}=e.getBoundingClientRect();if(ce.current){const Ve=r.getElementByKey(ce.current.getKey());if(Ve){const wt=Ve.getBoundingClientRect(),ho=be.getBoundingClientRect().left+be.clientWidth;let Wn=wt.right-an-8;wt.right>ho&&(Wn=ho-an-8),_({top:wt.top-Kt+wt.height/2-11,left:Wn}),S({top:wt.top-Kt+wt.height/2-11,left:bt-an-6}),j({top:Ot-Kt-6,left:wt.left-an+wt.width/2-11})}}if(Oe.current){const{top:Ve,width:wt,left:wn,right:ho}=Oe.current.getBoundingClientRect(),Wn=Sc;let vl=wt+Wn+2;ho>Lt&&(vl-=ho-Lt),g({width:vl,height:Wn,top:Ve-Kt-Wn/2,left:wn-an-Wn/2})}if(Re.current){const{top:Ve,height:wt}=Re.current.getBoundingClientRect(),wn=Sc;b({height:wt+wn+2,top:Ve-Kt-wn/2,left:bt-an-wn/2})}const Ut=(Vt=be.parentElement)!=null&&Vt.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(Ye){const Ve=((Xt=be.firstElementChild)==null?void 0:Xt.clientWidth)||0,wt=be.closest(".dsd__theme__table-scrollable-wrapper"),wn=wt==null?void 0:wt.getBoundingClientRect();c({left:wn?wn.left-an:bt-an,top:(wn?wn.bottom:Nt)-Kt+6,width:wn?Math.min(ut>Ve?Ve:ut,wn.width):ut>Ve?Ve:ut,padding:0,backgroundColor:Ut})}if(et){const{right:Ve}=(_r=be.firstElementChild)==null?void 0:_r.getBoundingClientRect(),wt=Math.min(Ve,Lt);f({height:tn,left:wt-an+6,top:Ot-Kt,padding:0,backgroundColor:Ut})}},100)}))};return document.addEventListener("click",me),()=>{dt(),Ze.cancel(),document.removeEventListener("click",me)}},[o,Ze]),m.useEffect(()=>{if(ce.current)return(T||N)&&(he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current),r.getEditorState().read(()=>{const me=ce.current;if(!me||!Be(me))return;let se,Ae;try{se=Hn(me),Ae=se.getChildren()}catch{return}let Pe=null,He=null;if(T){let $e;try{$e=Xo(me)}catch{return}const it=Ae[$e];if(_t(it)){const Je=it.getChildren(),ct=Je[0],be=Je[Je.length-1];Be(ct)&&Be(be)&&(Pe=r.getElementByKey(ct.getKey()),He=r.getElementByKey(be.getKey()))}}if(N){let $e;try{$e=$o(me)}catch{return}const it=Ae[0],Je=Ae[Ae.length-1];if(_t(it)&&_t(Je)){const ct=it.getChildAtIndex($e),be=Je.getChildAtIndex($e);Be(ct)&&Be(be)&&(Pe=r.getElementByKey(ct.getKey()),He=r.getElementByKey(be.getKey()))}}if(Pe&&He){const{y:$e,left:it}=e.getBoundingClientRect(),Je=Pe.getBoundingClientRect(),ct=He.getBoundingClientRect(),be=Pe.closest(".dsd__theme__table-scrollable-wrapper"),Se=be==null?void 0:be.getBoundingClientRect(),ze=Math.min(Je.top,ct.top),_e=Math.max(Je.bottom,ct.bottom),Xe=Math.min(Je.left,ct.left),Ye=Math.max(Je.right,ct.right),et=Se?Math.max(ze,Se.top):ze,Ke=Se?Math.min(_e,Se.bottom):_e,at=Se?Math.max(Xe,Se.left):Xe,tt=Se?Math.min(Ye,Se.right):Ye;tt>at&&Ke>et&&We({top:et-$e-1,left:at-it,width:tt-at,height:Ke-et+1})}})),()=>{We(null)}},[T,N,r,e]),m.useEffect(()=>r.registerUpdateListener(({editorState:me})=>{me.read(()=>{const se=p.$getSelection();if(xt(se)){oe.current=!1,he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null);const Ae=se.anchor.getNode(),Pe=Be(Ae)?Ae:ve.$findMatchingParent(Ae,Be),He=se.focus.getNode(),$e=Be(He)?He:ve.$findMatchingParent(He,Be);if(!Be(Pe)||!Be($e))return;const it=r.getElementByKey(Pe.getKey()),Je=r.getElementByKey($e.getKey());if(!it||!Je)return;const{y:ct,left:be}=e.getBoundingClientRect(),Se=it.getBoundingClientRect(),ze=Je.getBoundingClientRect(),_e=Math.min(Se.top,ze.top),Xe=Math.max(Se.bottom,ze.bottom),Ye=Math.min(Se.left,ze.left),et=Math.max(Se.right,ze.right);we(Pe),_({top:(_e+Xe)/2-ct-11,left:et-be-8}),We({top:_e-ct,left:Ye-be,width:et-Ye,height:Xe-_e}),J(!0),k(at=>({...at,options:!0})),Ca(!0);const Ke=Hn(Pe).getKey();requestAnimationFrame(()=>{const at=r.getElementByKey(Ke),tt=at==null?void 0:at.querySelectorAll(".dsd__theme__tableCell");tt==null||tt.forEach(st=>{const qe=st;qe.style.backgroundColor==="rgb(172, 206, 247)"&&(qe.style.backgroundColor=""),qe.style.backgroundImage=""})});return}Q&&!xt(se)&&!G.current&&(J(!1),We(null),we(null),Ca(!1))})}),[r,e,Q]),m.useEffect(()=>{const me=()=>{document.body.classList.contains("table-drag-active")||(J(!1),We(null),we(null),Ca(!1),he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),oe.current=!1,r.update(()=>{p.$setSelection(null)}))},se=e.querySelectorAll(".dsd__theme__table-scrollable-wrapper");return se.forEach(Ae=>Ae.addEventListener("scroll",me,{passive:!0})),()=>se.forEach(Ae=>Ae.removeEventListener("scroll",me))},[r,e]),m.useEffect(()=>ve.mergeRegister(r.registerMutationListener(Vr,me=>{r.getEditorState().read(()=>{for(const[se,Ae]of me)switch(Ae){case"created":Z.current.add(se),re.current=r.getElementByKey(se),i(Z.current.size>0);break;case"destroyed":Z.current.delete(se),i(Z.current.size>0);break;case"updated":document.body.classList.contains("table-drag-active")||i(!0);const Pe=r.getElementByKey(se);re.current=Pe;break}})})),[r]),m.useEffect(()=>{var Pe,He,$e,it,Je,ct;if(!y.row&&!y.column)return;const me=((He=(Pe=ge.current)==null?void 0:Pe.closest)==null?void 0:He.call(Pe,"table.dsd__theme__table"))||((it=($e=re.current)==null?void 0:$e.querySelector)==null?void 0:it.call($e,"table.dsd__theme__table"))||((ct=(Je=re.current)==null?void 0:Je.closest)==null?void 0:ct.call(Je,"table.dsd__theme__table"));if(!me)return;let se=0;const Ae=new ResizeObserver(()=>{cancelAnimationFrame(se),se=requestAnimationFrame(()=>{if(document.body.classList.contains("table-drag-active"))return;const be=me.getBoundingClientRect(),Se=e.getBoundingClientRect(),ze=me.closest(".dsd__theme__table-scrollable-wrapper"),_e=ze==null?void 0:ze.getBoundingClientRect(),Xe=_e?Math.min(be.right,_e.right):be.right,Ye=e.querySelector(".dsd__theme__tableAddRows"),et=e.querySelector(".dsd__theme__tableAddColumns"),Ke=e.querySelector(".dsd__theme__tableAddCorner");if(Ye){const at=_e?_e.left-Se.left:be.left-Se.left,tt=_e?Math.min(be.width,_e.width):be.width,st=_e?_e.bottom:be.bottom;Ye.style.top=`${st-Se.y+6}px`,Ye.style.left=`${at}px`,Ye.style.width=`${tt}px`}et&&(et.style.top=`${be.top-Se.y}px`,et.style.left=`${Xe-Se.left+6}px`,et.style.height=`${be.height}px`),Ke&&(Ke.style.top=`${be.bottom-Se.y+6}px`,Ke.style.left=`${Xe-Se.left+6}px`)})});return Ae.observe(me),()=>{cancelAnimationFrame(se),Ae.disconnect()}},[y.row,y.column,e]);const Wt=me=>{r.update(()=>{if(ge.current){const se=p.$getNearestNodeFromDOMNode(ge.current);me?(se==null||se.selectNext(),Xa(),dt()):(se==null||se.selectEnd(),lu(),dt())}})},Dt=20,ue=60,ne=m.useCallback((me,se)=>{var Ye,et;se.preventDefault(),se.stopPropagation(),w.current&&(clearTimeout(w.current),w.current=null),x(Ke=>({...Ke,row:me==="row"||me==="both"||Ke.row,column:me==="column"||me==="both"||Ke.column}));const Ae=se.clientX,Pe=se.clientY;let He=0,$e=0;const it=2,Je=2;let ct=it,be=Je;const Se=ge.current||re.current;if(Se){const Ke=((Ye=Se.closest)==null?void 0:Ye.call(Se,"table"))||((et=Se.querySelector)==null?void 0:et.call(Se,"table"));if(Ke){ct=Ke.querySelectorAll("tr").length;const at=Ke.querySelector("tr");be=at?at.querySelectorAll("td, th").length:Je}}const ze=Ke=>{var bt,Lt,Nt,tn,Kt,an;Ke.preventDefault(),_e||(_e=!0,w.current&&(clearTimeout(w.current),w.current=null),x({top:!1,bottom:!1,left:!1,right:!1,column:me==="column"||me==="both",row:me==="row"||me==="both",options:!1})),(bt=window.getSelection())==null||bt.removeAllRanges();const at=Ke.clientX-Ae,tt=Ke.clientY-Pe;let st=tt,qe=at;if(me==="both"){const Ut=Math.floor(tt/Dt),Vt=Math.floor(at/ue),Xt=Math.abs(Ut)>=Math.abs(Vt)?Ut:Vt;st=Xt*Dt,qe=Xt*ue}if(me==="row"||me==="both"){const Ut=Math.floor(st/Dt);for(;He<Ut;)try{r.update(()=>{if(ge.current){const Vt=p.$getNearestNodeFromDOMNode(ge.current);Vt==null||Vt.selectNext(),Xa()}}),He++}catch{break}for(;He>Ut&&!(ct+He<=it);)try{r.update(()=>{if(ge.current){const Xt=p.$getNearestNodeFromDOMNode(ge.current);Xt==null||Xt.selectEnd()}XA()}),He--}catch{break}}if(me==="column"||me==="both"){const Ut=Math.floor(qe/ue);for(;$e<Ut;)try{r.update(()=>{if(ge.current){const Xt=p.$getNearestNodeFromDOMNode(ge.current);Xt==null||Xt.selectEnd(),lu()}}),$e++;const Vt=(Nt=(Lt=ge.current)==null?void 0:Lt.closest)==null?void 0:Nt.call(Lt,".dsd__theme__table-scrollable-wrapper");Vt&&(Vt.scrollLeft=Vt.scrollWidth)}catch{break}for(;$e>Ut&&!(be+$e<=Je);)try{r.update(()=>{if(ge.current){const Xt=p.$getNearestNodeFromDOMNode(ge.current);Xt==null||Xt.selectEnd()}$A()}),$e--}catch{break}}const ut=((tn=ge.current)!=null&&tn.isConnected?ge.current:null)||re.current,Ot=((Kt=ut==null?void 0:ut.closest)==null?void 0:Kt.call(ut,"table"))||((an=ut==null?void 0:ut.querySelector)==null?void 0:an.call(ut,"table"));if(Ot){const Ut=Ot.getBoundingClientRect();if(Ut.width<=0)return;const{y:Vt,left:Xt}=e.getBoundingClientRect(),_r=Ot.closest(".dsd__theme__table-scrollable-wrapper"),Ve=_r==null?void 0:_r.getBoundingClientRect(),wt=Ve?Math.min(Ut.right,Ve.right):Ut.right,wn=Ve?Math.min(Ut.width,Ve.width):Ut.width,ho=Ve?Ve.left-Xt:Ut.left-Xt;c(Wn=>({...Wn,top:(Ve?Ve.bottom:Ut.bottom)-Vt+6,left:ho,width:wn})),f(Wn=>({...Wn,top:Ut.top-Vt,left:wt-Xt+6,height:Ut.height}))}};document.body.style.userSelect="none",document.body.classList.add("table-drag-active");let _e=!1;const Xe=()=>{document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",Xe),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("table-drag-active"),_e||((me==="row"||me==="both")&&Wt(!0),(me==="column"||me==="both")&&Wt(!1)),k(Ke=>({...Ke,row:me==="row"||me==="both",column:me==="column"||me==="both"}))};document.body.style.cursor=me==="row"?"row-resize":me==="column"?"col-resize":"nwse-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",ze),document.addEventListener("mouseup",Xe)},[r,dt]);return window.matchMedia("(pointer: coarse)").matches,s.jsxs(s.Fragment,{children:[Te&&s.jsx("div",{style:{position:"absolute",boxSizing:"border-box",top:Te.top,left:Te.left,width:Te.width,height:Te.height,border:"1.5px solid var(--mantine-color-blue-outline, #228be6)",pointerEvents:"none",zIndex:5},"data-testid":"table-multi-cell-border"}),s.jsx(v.Transition,{mounted:!!((ce.current||xe)&&y.options),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var se;return s.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-cell-menu-button",style:{...me,...B},onMouseDown:Ae=>{Q&&Ae.stopPropagation()},onMouseEnter:()=>K(!0),onMouseLeave:()=>{D||K(!1)},children:(ce.current||xe)&&s.jsx(Of,{isMenuOpen:D,contextRef:Ce,tableCellNode:xe||ce.current,cellMerge:t,setIsMenuOpen:Ae=>{O(Ae),Ae||K(!1)},tableDom:((se=ge.current)==null?void 0:se.closest("table.dsd__theme__table"))||re.current,menuContext:"cell",children:s.jsx("div",{ref:Ce,style:{width:14,height:22,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:W||D?4:0,backgroundColor:W||D?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:W||D?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:W||D?s.jsx($,{icon:Wc,size:10,color:"var(--mantine-color-white, #fff)"}):s.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-blue-outline, #228be6)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),s.jsx(v.Transition,{mounted:!!(ce.current&&y.options&&!Q),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var se;return s.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-row-button",style:{...me,...M},onMouseEnter:()=>Y(!0),onMouseLeave:()=>{T||Y(!1)},children:ce.current&&s.jsx(Of,{isMenuOpen:T,contextRef:ae,tableCellNode:ce.current,cellMerge:t,setIsMenuOpen:Ae=>{R(Ae),Ae||Y(!1)},tableDom:((se=ge.current)==null?void 0:se.closest("table.dsd__theme__table"))||re.current,menuContext:"row",children:s.jsx("div",{ref:ae,style:{width:14,height:22,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:F||T?4:0,backgroundColor:F||T?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:F||T?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:F||T?s.jsx($,{icon:Wc,size:10,color:"var(--mantine-color-white, #fff)"}):s.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),s.jsx(v.Transition,{mounted:!!(ce.current&&y.options&&!Q),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var se;return s.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-column-button",style:{...me,...I},onMouseEnter:()=>ee(!0),onMouseLeave:()=>{N||ee(!1)},children:ce.current&&s.jsx(Of,{isMenuOpen:N,contextRef:pe,tableCellNode:ce.current,cellMerge:t,setIsMenuOpen:Ae=>{L(Ae),Ae||ee(!1)},tableDom:((se=ge.current)==null?void 0:se.closest("table.dsd__theme__table"))||re.current,menuContext:"column",children:s.jsx("div",{ref:pe,style:{width:22,height:14,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:q||N?4:0,backgroundColor:q||N?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:q||N?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:q||N?s.jsx("span",{style:{transform:"rotate(90deg)",display:"flex"},children:s.jsx($,{icon:Wc,size:10,color:"var(--mantine-color-white, #fff)"})}):s.jsx("div",{style:{width:12,height:1.5,backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),s.jsx(v.Transition,{mounted:y.row,transition:"fade",duration:150,timingFunction:"ease",children:me=>s.jsx(v.Tooltip,{label:Le("editor.table.menu.addRowBelow"),position:"bottom",children:s.jsx("button",{className:"dsd__theme__tableAddRows",style:{...me,...l,display:"flex",alignItems:"center",justifyContent:"center",height:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"pointer"},onMouseDown:se=>ne("row",se),children:s.jsx($,{icon:zc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),s.jsx(v.Transition,{mounted:y.column,transition:"fade",duration:300,timingFunction:"ease",children:me=>s.jsx(v.Tooltip,{label:Le("editor.table.menu.addColAfter"),position:"right",children:s.jsx("button",{className:"dsd__theme__tableAddColumns",style:{...me,...d,display:"flex",alignItems:"center",justifyContent:"center",width:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"pointer"},onMouseDown:se=>ne("column",se),children:s.jsx($,{icon:zc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),s.jsx(v.Transition,{mounted:y.row&&y.column,transition:"fade",duration:300,timingFunction:"ease",children:me=>s.jsx(v.Tooltip,{label:Le("editor.table.menu.addRowAndCol"),position:"bottom",children:s.jsx("button",{className:"dsd__theme__tableAddCorner",style:{...me,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,padding:0,borderRadius:4,border:"none",cursor:"pointer",backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",top:l.top??0,left:d.left??0},onMouseDown:se=>ne("both",se),children:s.jsx($,{icon:zc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})})]})}function nI(e,n,t){const r=e.target;let o="";const i=document.querySelector("div.new-paragraph");if(n.read(()=>{const l=p.$getRoot().getLastChild();St(l)&&!t&&i&&(o="editor",i.style.visibility="hidden")}),r&&(r instanceof HTMLElement||r instanceof SVGElement)){const l="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let c=r.closest(l),d=null;if(r.className==="ContentEditable__root"||r.className==="ContentEditable__root focused"||r.className==="dsd__theme__table-scrollable-wrapper"||r.className==="dsd__theme__callout-wrapper"||r.className==="dsd__theme__layoutItem"||r.className==="dsd__theme__callout-container"||r.className===o){const C=document.elementFromPoint(e.x-40,e.y),b=document.elementFromPoint(e.x,e.y-40);if(C||b){const y=C==null?void 0:C.closest(l),x=b==null?void 0:b.closest(l);y&&r.className!=="dsd__theme__layoutItem"&&(c=y,d="right"),x&&(c=x,d="bottom")}}let f=r.closest(".dsd__theme__tableAddRows")||r.closest(".table-cell-action-button-container")||r.closest(".dsd__theme__tableAddColumns")||r.closest(".dsd__theme__tableAddCorner");const h=r.closest(".mantine-Menu-dropdown"),g=!(c||f||h||r.closest("div.TableCellResizer__resizer"));return g&&!t&&(i==null?void 0:i.style.visibility)==="hidden"&&(i.style.visibility=""),{isOutside:g,tableDOMNode:c,edgeDirection:d}}else return{isOutside:!0,tableDOMNode:null,edgeDirection:null}}function rI({anchorElem:e=document.body,cellMerge:n=!1}){return Br.createPortal(s.jsx(tI,{isShowTableOptions:!1,cellMerge:n,anchorElem:e}),e)}const Cu=624,x5=9;function oI(e,n,t){return e||`${t("editor.heading.name")} ${n.split("")[1]}`}function iI(e){var t;const n=(t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y;return n>=Cu&&n<=Cu+x5}function Ec(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)<Cu}function Pf(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)>=Cu+x5}function sI({tableOfContents:e}){const[n,t]=m.useState(""),r=m.useRef(0),[o]=ot.useLexicalComposerContext(),{t:i}=Ue.useTranslation(),[l,c]=m.useState(!1);function d(f,h){o.getEditorState().read(()=>{const g=o.getElementByKey(f);g!==null&&(g.classList.add("ScrollToBlock"),g.scrollIntoView({behavior:"smooth",block:"center"}),t(f),r.current=h,setTimeout(()=>{g.classList.remove("ScrollToBlock")},2e3))})}return m.useEffect(()=>{function f(){if(e.length>0&&r.current<e.length-1){let b=o.getElementByKey(e[r.current][0]);if(b!==null){if(Pf(b)){for(;b!==null&&Pf(b)&&r.current>0;){const x=o.getElementByKey(e[r.current-1][0]);x!==null&&(Ec(x)||Pf(x))&&r.current--,b=x}const y=e[r.current][0];t(y)}else if(Ec(b)){for(;b!==null&&Ec(b)&&r.current<e.length-1;){const x=o.getElementByKey(e[r.current+1][0]);x!==null&&(iI(x)||Ec(x))&&r.current++,b=x}const y=e[r.current][0];t(y)}}}else r.current=0}let h;function g(b,y){clearTimeout(h),h=setTimeout(b,y)}function C(){g(f,10)}return document.addEventListener("scroll",C),()=>document.removeEventListener("scroll",C)},[e,o]),e.length<2?s.jsx(s.Fragment,{}):s.jsxs(v.Popover,{opened:l,onClose:()=>c(!1),width:300,position:"left",offset:-55,transitionProps:{transition:{in:{opacity:1,transform:"translateX(0px)"},out:{opacity:0,transform:"translateX(25px)"},transitionProperty:"transform, opacity"},duration:100,exitDelay:50,exitDuration:200},children:[s.jsx(v.Popover.Target,{children:s.jsx(v.Box,{className:"table-of-contents-container",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:s.jsx(v.Box,{className:"table-of-contents",children:s.jsx(v.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:e.map(([f,,h],g)=>s.jsx(v.Box,{onClick:()=>d(f,g),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:n===f?"light-dark(var(--mantine-color-dark-2), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-0), var(--mantine-color-dark-2))",width:h==="h1"?"38px":h==="h2"?"25px":"15px",transition:"all 0.7s"}},f))})})})}),s.jsxs(v.Popover.Dropdown,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[s.jsx(v.Text,{size:"xs",children:i("editor.content")}),e.map(([f,h,g],C)=>s.jsx(v.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>d(f,C),style:{fontSize:g==="h1"?"1.25rem":g==="h2"?"1rem":"0.875rem",marginLeft:g==="h1"?"0.25rem":g==="h2"?"0.75rem":"2.25rem",color:n===f?"light-dark(var(--mantine-color-blue-6), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-8), var(--mantine-color-dark-2))"},children:oI(h,g,i)},f))]})]})}function Lh(){return s.jsx(R9.TableOfContentsPlugin,{children:e=>s.jsx(sI,{tableOfContents:e})})}function aI({children:e}){const[n,t]=m.useState({cellEditorConfig:null,cellEditorPlugins:null});return s.jsx(_R.Provider,{value:m.useMemo(()=>({cellEditorConfig:n.cellEditorConfig,cellEditorPlugins:n.cellEditorPlugins,set:(r,o)=>{t({cellEditorConfig:r,cellEditorPlugins:o})}}),[n.cellEditorConfig,n.cellEditorPlugins]),children:e})}function lI({hasCellMerge:e,hasCellBackgroundColor:n}){return FR({hasCellMerge:e,hasCellBackgroundColor:n,hasTabHandler:!0,hasHorizontalScroll:!0}),null}function cI(e){const{floatingAnchorElem:n}=e,{disable:t}=m.useContext(ft),{settings:{tableCellMerge:r,showTableOfContents:o,tableCellBackgroundColor:i}}=F1();return WR(),s.jsxs(s.Fragment,{children:[s.jsx(lI,{hasCellMerge:r,hasCellBackgroundColor:i}),!t&&s.jsx(HR,{}),n&&s.jsxs(s.Fragment,{children:[!t&&s.jsx(rI,{anchorElem:n,cellMerge:!0}),s.jsx("div",{children:o&&s.jsx(Lh,{})})]})]})}const uI=[{name:"alert",color:"rgb(250, 82, 82)",icon:s.jsx(Ee.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(64, 192, 87)",icon:s.jsx(Ee.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(250, 176, 5)",icon:s.jsx(Ee.IconAlertTriangle,{size:16}),emoji:"⚠️"}],dI=e=>e.mode==="callout";function fI({anchorElem:e}){const[n]=ot.useLexicalComposerContext(),{t}=Ue.useTranslation(),{disable:r}=m.useContext(ft),[o,i]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState({right:"0",top:"0"}),h=m.useRef(null),g=o?"auto":"none",C=ea(y=>{const{lexicalDOMNode:x,isOutside:w}=Qu(y,"div.dsd__theme__callout-wrapper",["div.dropdown-select-language","div.mantine-Select-option","div.action-menu-container","div.mantine-Menu-dropdown"]);if(w){i(!1);return}if(!x)return;let k=null;if(n.update(()=>{const T=p.$getNearestNodeFromDOMNode(x);fo(T)&&(k=T,c(T.__key))}),k){const{y:T,right:R,left:N}=e.getBoundingClientRect(),{y:L,right:M,left:S}=x.getBoundingClientRect();i(!0),h.current&&(h.current.style.visibility="visible");const I=L-T,j=R-M,B=S-N;f(()=>({right:`${j}px`,left:`${B}px`,top:`${I}px`}))}},50,500);if(m.useEffect(()=>ve.mergeRegister(n.registerMutationListener(Ro,y=>{n.getEditorState().read(()=>{for(const[x,w]of y)w==="destroyed"&&i(!1)})}),n.registerUpdateListener(({dirtyElements:y,dirtyLeaves:x})=>{o&&(y.size>0||x.size>0)&&n.getEditorState().read(()=>{const w=l!=null?p.$getNodeByKey(l):null;(!w||!fo(w))&&h.current&&(h.current.style.visibility="hidden")})})),[n,o,l]),m.useEffect(()=>(document.addEventListener("mousemove",C),()=>{i(!1),C.cancel(),document.removeEventListener("mousemove",C)}),[C]),r)return null;const b=y=>{n.update(()=>{const x=p.$getNodeByKey(l);fo(x)&&n.update(()=>{const w=dI(y);x.setType(w?y.meta.type:void 0),x.setBackgroundColor(y.value),i(!1)})})};return s.jsx("div",{className:`action-menu-container callout-action ${o?"visible":""}`,ref:h,style:{right:d.right,top:d.top,pointerEvents:g},children:o&&s.jsx(At.NewColorPicker,{data:{callout:{label:t("editor.colors.theme"),filled:!0,palette:uI.map(y=>({label:t(`editor.colors.callout.${y.name}`),value:v.alpha(y.color,.19),icon:y.icon,meta:{type:y.name,emoji:y.emoji}}))}},onChange:y=>{b(y)},modes:["callout","background"],hideInherit:!0,target:s.jsx(v.ActionIcon,{variant:"default","aria-label":"Settings",children:s.jsx(bn,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})})}function hI({anchorElem:e=document.body}){return Br.createPortal(s.jsx(fI,{anchorElem:e}),(e==null?void 0:e.parentElement)||document.body)}function pI({onClose:e,children:n,title:t,size:r}){return s.jsx(v.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:e,title:t,zIndex:999,children:n})}function X1(e){const[n,t]=m.useState(null),r=m.useCallback(()=>{t(null)},[]),o=m.useMemo(()=>{if(n===null)return null;const{title:l,content:c,closeOnClickOutside:d}=n;return s.jsx(pI,{onClose:r,title:l,size:"md",closeOnClickOutside:d,children:c})},[n,r]),i=m.useCallback((l,c,d=!1)=>{t({closeOnClickOutside:d,content:c(r),title:l})},[r]);return[o,i]}function j2({children:e,onClick:n,"data-test-id":t,title:r,className:o,small:i,...l}){return s.jsx(v.Button,{radius:"sm",size:i?"xs":"sm",variant:"default",onClick:n,"aria-label":r,className:o,"data-test-id":t,...l,children:e})}async function*v5(e){let n=!1;for(;!n;){const t=await e.read(),{value:r}=t;r!==void 0&&(yield r),n=t.done}}async function mI(e){const n=[];for await(const r of v5(e))for(let o=0;o<r.length;o+=32768)n.push(String.fromCharCode(...r.subarray(o,o+32768)));return n.join("")}async function gI(e){const n=new CompressionStream("gzip"),t=n.writable.getWriter(),[,r]=await Promise.all([t.write(new TextEncoder().encode(JSON.stringify(e))).then(()=>t.close()),mI(n.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function CI(e){const n=/^#doc=(.*)$/.exec(e);if(!n)return null;const t=new DecompressionStream("gzip"),r=t.writable.getWriter(),o=atob(n[1].replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(o.length);for(let d=0;d<o.length;d++)i[d]=o.charCodeAt(d);const l=r.write(i).then(()=>r.close()),c=[];for await(const d of v5(t.readable.pipeThrough(new TextDecoderStream).getReader()))c.push(d);return await l,JSON.parse(c.join(""))}const AI=p.createCommand("SPEECH_TO_TEXT_COMMAND"),bI="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function yI(e){const n=JSON.stringify(e.getEditorState());try{await fetch("http://localhost:1235/setEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}}async function xI(e){const n=JSON.stringify(e.getEditorState());let t=null;try{t=await fetch("http://localhost:1235/validateEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}if(t!==null&&t.status===403)throw new Error("Editor state validation failed! Server did not accept changes.")}async function vI(e){const n=new URL(window.location.toString());n.hash=await gI(e);const t=n.toString();window.history.replaceState({},"",t),await window.navigator.clipboard.writeText(t)}function wI({isRichText:e,shouldPreserveNewLinesInMarkdown:n}){const[t]=ot.useLexicalComposerContext(),[r,o]=m.useState(()=>t.isEditable()),[i,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!0),[g,C]=X1(),b=fl(),y=!1;m.useEffect(()=>{H0.isCollab||CI(window.location.hash).then(w=>{w&&w.source==="Playground"&&(t.setEditorState(uc.editorStateFromSerializedDocument(t,w)),t.dispatchCommand(p.CLEAR_HISTORY_COMMAND,void 0))})},[t]),m.useEffect(()=>ve.mergeRegister(t.registerEditableListener(w=>{o(w)}),t.registerCommand(I9.CONNECTED_COMMAND,w=>(d(w),!1),p.COMMAND_PRIORITY_EDITOR)),[t]),m.useEffect(()=>t.registerUpdateListener(({dirtyElements:w,prevEditorState:k,tags:T})=>{!r&&w.size>0&&!T.has(p.HISTORIC_TAG)&&!T.has(p.COLLABORATION_TAG)&&xI(t),t.getEditorState().read(()=>{const N=p.$getRoot().getChildren();if(N.length>1)h(!1);else if(p.$isParagraphNode(N[0])){const L=N[0].getChildren();h(L.length===0)}else h(!1)})}),[t,r]);const x=m.useCallback(()=>{t.update(()=>{var R;const w=p.$getRoot(),k=w.getFirstChild();let T=null;if(Gt.$isCodeNode(k))T=k;else if(k instanceof p.ElementNode){const L=(((R=k.getChildren)==null?void 0:R.call(k))??[]).find(M=>Gt.$isCodeNode(M));L&&Gt.$isCodeNode(L)&&(T=L)}if(T&&T.getLanguage()==="markdown")ao.$convertFromMarkdownString(T.getTextContent(),nl,void 0,n);else{for(const M of w.getChildren())if(Do(M)){for(const S of M.getChildren())Gt.$isCodeNode(S)&&M.insertBefore(S);M.remove()}const N=ao.$convertToMarkdownString(nl,void 0,n),L=Gt.$createCodeNode("markdown");L.append(p.$createTextNode(N)),w.clear().append(L),N.length===0&&L.select()}})},[t,n]);return s.jsxs("div",{className:"actions",children:[bI&&s.jsx("button",{onClick:()=>{t.dispatchCommand(AI,!i),l(!i)},className:"action-button action-button-mic "+(i?"active":""),title:"Speech To Text","aria-label":`${i?"Enable":"Disable"} speech to text`,children:s.jsx($,{icon:X8,size:16})}),s.jsx("button",{className:"action-button import",onClick:()=>uc.importFile(t),title:"Import","aria-label":"Import editor state from JSON",children:s.jsx($,{icon:tk,size:16})}),s.jsx("button",{className:"action-button export",onClick:()=>uc.exportFile(t,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:s.jsx($,{icon:nk,size:16})}),s.jsx("button",{className:"action-button share",disabled:H0.isCollab,onClick:()=>vI(uc.serializedDocumentFromEditorState(t.getEditorState(),{source:"Playground"})).then(()=>b("URL copied to clipboard"),()=>b("URL could not be copied to clipboard")),title:"Share","aria-label":"Share Playground link to current editor state",children:s.jsx($,{icon:jk,size:16})}),s.jsx("button",{className:"action-button clear",disabled:f,onClick:()=>{C("Clear editor",w=>s.jsx(kI,{editor:t,onClose:w}))},title:"Clear","aria-label":"Clear editor contents",children:s.jsx($,{icon:Pk,size:16})}),s.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&yI(t),t.setEditable(!t.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:s.jsx($,{icon:r?lk:ck,size:16})}),s.jsx("button",{className:"action-button",onClick:x,title:"Convert From Markdown","aria-label":"Convert from markdown",children:s.jsx($,{icon:mk,size:16})}),y,g]})}function kI({editor:e,onClose:n}){return s.jsxs(s.Fragment,{children:["Are you sure you want to clear the editor?",s.jsxs("div",{className:"Modal__content",children:[s.jsx(j2,{onClick:()=>{e.dispatchCommand(p.CLEAR_EDITOR_COMMAND,void 0),e.focus(),n()},children:"Clear"})," ",s.jsx(j2,{onClick:()=>{e.focus(),n()},children:"Cancel"})]})]})}const R2=(e,n,t)=>{if(!e)return null;let r=null;return t.read(()=>{const o=p.$getNearestNodeFromDOMNode(e);r=o&&ve.$getNearestNodeOfType(o,n)}),r},SI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAACWCAYAAAAff3ceAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGPRSURBVHgB7b1LyG1RUucZcfJW01iZpkU1dKcPqBr4mlWrAxFUUFAHCgWCIx0UOHPiY644VFBHjhzUQB3bDQrqQMGJImIXCIIKnUX7yFFDolbVwPSLuufcHWv/4h+x9jlXHeaC7ztn770e8fxHrLXX3sftffnsZz/37+IT8Z/ff/0P7/++zL5Yvli+WL5YXixh9n/d/pX/2L//zGf+qx9g8v/8m09/6su+9FP/Om7uftYzn9sb69im3gt02LOxdvUC191eo9XsepyPLR8rB9bZ8bSTx6t0P6u3G8vsX04uH1tesYOP1ZvaiW+u24vned3sNVvd0WJPaJp0b/bPs+NnMn7FBse+3iLs7//+v/v///m//bz/K/8/b2+fiF/4t//m05/+si/9pN3crwjiJ79PzNvFuandl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zMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",Cn={header:(e,n)=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsxs(v.Group,{p:8,gap:0,className:"hintBoard",children:[s.jsx(v.Title,{order:n,mb:"sm",mt:12-(n-1)*4,h:40-(n-1)*4,children:e("editor.heading.name")+` H${n}`}),s.jsx(v.Text,{size:"sm",h:80,lh:"21px",children:e("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e(`editor.menu.heading.h${n}.hintDescription`)})]}),ol:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:s.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:s.jsxs(v.List,{type:"ordered",mt:2,children:[s.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),s.jsxs(v.List,{pl:18,listStyleType:"upper-alpha",children:[s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),s.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.numberList.hint.description")})]}),ul:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:s.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:s.jsxs(v.List,{type:"unordered",mt:2,children:[s.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),s.jsxs(v.List,{pl:18,listStyleType:"circle",children:[s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),s.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),s.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.bulletList.hint.description")})]}),checkList:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:s.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:s.jsxs(v.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[s.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),s.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[s.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")}),s.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),s.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["check"],children:[s.jsx(v.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:e("editor.menu.lists.checkList.hint.checked")}),s.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")})]})]}),s.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:e("editor.menu.lists.checkList.hint.checked")})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.checkList.hint.description")})]}),type:(e,n,t)=>r=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:s.jsxs(v.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":e,"data-type":t,style:n?{backgroundColor:n}:void 0,children:[s.jsx(v.Box,{children:s.jsx(v.Text,{w:26,mr:"sm",ta:"center",children:e})}),s.jsx(v.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:s.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.paragraph.hint.description")})]}),quote:e=>s.jsxs(v.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{p:"sm",gap:0,children:s.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:s.jsx(v.Group,{gap:0,className:"quote",children:s.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.quote.hint.description")})]}),collapse:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:s.jsx(v.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:s.jsxs(v.List,{type:"unordered",children:[s.jsx(v.List.Item,{icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:e("editor.menu.main.collapse.hint.firstItemEmpty")}),s.jsx(v.List.Item,{icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:e("editor.menu.main.collapse.hint.secondItem")}),s.jsxs(v.List,{pl:18,listStyleType:"circle",children:[s.jsx(v.List.Item,{fz:"sm",mt:3,icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubItemEmpty")}),s.jsx(v.List.Item,{fz:"sm",mt:2,icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubItem")}),s.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[s.jsx(v.List.Item,{fz:"sm",mt:2,icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),s.jsx(v.List.Item,{fz:"sm",mt:2,icon:s.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.collapse.hint.description")})]}),divider:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:s.jsxs(v.Box,{children:[s.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.topText")}),s.jsx(v.Divider,{my:"sm"}),s.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.horizontal-rule.hint.description")})]}),table:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:s.jsxs(v.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[s.jsx(v.Table.Thead,{children:s.jsxs(v.Table.Tr,{h:58,children:[s.jsxs(v.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[s.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:s.jsx(bn,{stroke:1,size:10,name:"chevron-down"})}),s.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:s.jsx(bn,{stroke:1,size:10,name:"plus"})}),s.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:s.jsx(bn,{stroke:1,size:10,name:"plus"})}),e("editor.menu.main.table.hint.firstRow")]}),s.jsx(v.Table.Th,{w:177,fz:"sm",fw:400})]})}),s.jsxs(v.Table.Tbody,{children:[s.jsxs(v.Table.Tr,{h:47,children:[s.jsx(v.Table.Td,{}),s.jsx(v.Table.Td,{})]}),s.jsxs(v.Table.Tr,{children:[s.jsxs(v.Table.Td,{miw:177,children:[" ",s.jsx(v.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:e("editor.menu.lists.checkList.hint.indeterminate")})]}),s.jsx(v.Table.Td,{miw:177,children:s.jsx(v.Text,{fz:"sm",fw:400,children:e("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.table.hint.description")})]}),grid:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Group,{gap:0,p:8,className:"hintBoard",w:276,children:s.jsxs(v.Flex,{align:"flex-start",gap:"sm",children:[s.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.firstColumn")}),s.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.grid.hint.description")})]}),code:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Group,{px:8,gap:0,className:"hintBoard",children:s.jsx(v.Image,{style:{flex:1},radius:"sm",fit:"cover",src:EI,w:"110%",h:"110%"})})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.code.hint.description")})]}),image:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:LI,w:"100%",h:"100%"})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.photo.hint.description")})]}),video:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsxs(v.Group,{px:"sm",pt:"sm",gap:0,children:[s.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:NI,w:"100%",h:"100%"}),s.jsx(v.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:s.jsx(Ee.IconPlayerPlayFilled,{size:32})})]}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.video.hint.description")})]}),audio:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:SI,w:"100%",h:"100%"})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.audio.hint.description")})]}),file:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:TI,w:"100%",h:"100%"})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.file.hint.description")})]}),excalidraw:e=>s.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[s.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:s.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:MI,w:"100%",h:"100%"})}),s.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.excalidraw.hint.description")})]})};function Hr(e,n,t){return t.filter(r=>e(r)).map(r=>n(r))}const jI=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],RI=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],II=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],DI=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],OI=["editor.menu.main.table.keywords.table"],PI=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],BI=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],_I=["editor.menu.media.photo.keywords.picture","editor.menu.media.photo.keywords.display","editor.menu.media.photo.keywords.meme","editor.menu.media.photo.keywords.drawing","editor.menu.media.photo.keywords.memePic"],FI=["editor.menu.media.form.keywords"],WI=["editor.menu.media.video.keywords.video"],zI=["editor.menu.other.equation.keywords.equation","editor.menu.other.equation.keywords.formula","editor.menu.other.equation.keywords.math","editor.menu.other.equation.keywords.latex","editor.menu.other.equation.keywords.block","editor.menu.other.equation.keywords.expression","editor.menu.other.equation.keywords.tex"],KI=["editor.menu.other.inlineEquation.keywords.equation","editor.menu.other.inlineEquation.keywords.formula","editor.menu.other.inlineEquation.keywords.math","editor.menu.other.inlineEquation.keywords.latex","editor.menu.other.inlineEquation.keywords.inline","editor.menu.other.inlineEquation.keywords.expression","editor.menu.other.inlineEquation.keywords.tex"],I2=(e,n,t)=>{const r=c=>t?Hr(t,n,c):[],o=r(jI),i=r([`editor.menu.lists.${e}List.keywords.heading`,`editor.menu.lists.${e}List.keywords.headingList`,`editor.menu.lists.${e}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[e]||[]).concat(o,i)},Ni=(e,n,t)=>{const r=t?Hr(t,n,RI):[],o=t?Hr(t,n,II):[],i=t?Hr(t,n,DI):[],l=t?Hr(t,n,OI):[],c=t?Hr(t,n,PI):[],d=t?Hr(t,n,BI):[];switch(e){case"quote":return["blockquote","quote"].concat(r);case"collapse":return["collapse","collapsiblelist","toggle"].concat(o);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(i);case"table":return["table","spreadsheet","rows","columns"].concat(l);case"grid":return["columns","layout","grid"].concat(c);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(d)}},Tc=(e,n,t)=>{const r=t?Hr(t,n,_I):[],o=t?Hr(t,n,FI):[],i=t?Hr(t,n,WI):[];switch(e){case"photo":return["image","photo","picture","img","png","jpg","jpeg","media"].concat(r);case"file":return["file","pdf","zip","media"].concat(r);case"excalidraw":return["excalidraw","paint","draw","media"].concat(r);case"audio":return["audio","music"].concat(r);case"form":return["form","embed","media"].concat(o);case"video":return["youtube","rutube","vkvideos","video","mp4","webm","media"].concat(i)}},D2=(e,n,t)=>{const r=l=>t?Hr(t,n,l):l.map(c=>n(c)).filter((c,d)=>c!==l[d]),o=r(zI),i=r(KI);switch(e){case"equation":return["equation","formula","math","latex","block","tex","katex","expression"].concat(o);case"equation-inline":return["equation","formula","math","latex","inline","tex","katex","expression"].concat(i)}},UI=[{type:"number",command:Pu,name:"editor.menu.lists.numberList.name",iconName:"number",hint:Cn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:y1,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:Cn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:x1,name:"editor.menu.lists.checkList.name",iconName:"check",hint:Cn.checkList,description:"editor.menu.lists.checkList.subtitle"}],HI=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:Cn.type("💫","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:Cn.type("❗","","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:Cn.type("✅","","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:Cn.type("⚠️","","warning"),description:"editor.menu.callout.warning.subtitle"}],YI=e=>({1:e("editor.menu.heading.h1.subtitle"),2:e("editor.menu.heading.h2.subtitle"),3:e("editor.menu.heading.h3.subtitle"),4:e("editor.menu.heading.h4.subtitle","Small heading")}),rn=(e,n,t)=>{e.update(()=>{const r=e.__savedDragHandleSelection;if(r&&!p.$getSelection())try{p.$setSelection(r.clone())}catch{}e.__savedDragHandleSelection=null;let o=en();if(!t&&((o==null?void 0:o.__type)==="text"||(o==null?void 0:o.__type)==="listitem")){const i=p.$createParagraphNode(),{lexicalNode:l}=Os(o,e,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});i.append(),l==null||l.insertAfter(i).selectStart(),n(i)}else n(o)})};function ZI(e){return e?"active dropdown-item-active":""}const w5={flip:!0,size:{padding:8,apply({availableHeight:e,elements:n}){requestAnimationFrame(()=>{Object.assign(n.floating.style,{maxHeight:`${e>=425?425:e}px`})})}}};function GI(e,n){return e==="swagger"?!0:n}function Bf(e,n){e.update(()=>{const t=p.$getSelection();t&&(p.$isNodeSelection(t)&&_u(t),dn.$setBlocksType(p.$getSelection(),n))})}const O2=["figma","miro","lucidchart","tldraw","diagrams","dbdiagram","google-sheets","google-slides","google-drawings","google-forms","google-calendar","google-docs","google-maps","google-drive","airtable","grist","trello","typeform","loom","vimeo","descript","spotify","instagram","github","codepen","valtown"];function VI(e){const n=O2.length,t=r=>{const o=O2.indexOf(r);return o===-1?n:o};return[...e].map((r,o)=>({d:r,index:o})).sort((r,o)=>{const i=t(r.d.platform)-t(o.d.platform);return i!==0?i:r.index-o.index}).map(({d:r})=>r)}function $1({editor:e,isToolbar:n,excludeNodes:t,t:r,exists:o,plugins:i,onTrack:l}){const d=YI(r),f=j=>{switch(j){case 1:return["heading1","hone","h1",r("editor.menu.heading.h1.keywords.headerOne")];case 2:return["heading2","htwo","h2",r("editor.menu.heading.h2.keywords.headerTwo")];case 3:return["heading3","hthree","h3",r("editor.menu.heading.h3.keywords.headerThree")];case 4:return["heading4","hfour","h4",r("editor.menu.heading.h4.keywords.headerFour","heading four")]}},h=j=>r(j),g={1:i1,2:s1,3:a1,4:ja},C=()=>[1,2,3,4].map(j=>({parentKey:"heading",name:`${r("editor.heading.name")} ${j}`,description:d[j]||"Добавите заголовок",hint:Cn.header(r,j),keywords:[`${f(j)}`,`${r(`editor.menu.heading.h${j}.keywords.header${j}`)}`,`${r(`editor.menu.heading.h${j}.keywords.heading`)}`,`${r(`editor.menu.heading.h${j}.keywords.h${j}`)}`],icon:s.jsx($,{icon:g[j],size:16}),key:`${j}`,hide:t[`${j}`],"data-test-id":`block-type-h${j}`,onSelect:()=>{l==null||l("block_heading_created",{level:j}),rn(e,()=>{Bf(e,()=>fn.$createHeadingNode(`h${j}`))},n)}})),b={number:l1,bullet:eu,check:o1},y=()=>UI.map(({type:j,command:B,hint:_,description:D,name:O})=>({parentKey:"list",name:r(O),description:r(D),icon:s.jsx($,{icon:b[j]||eu,size:16}),keywords:[`${I2(j,r,o)}`],key:j,hint:_(r),hide:t[j],"data-test-id":`block-type-${j}`,onSelect:()=>{l==null||l(`list_${j}_created`),rn(e,()=>{e.dispatchCommand(B,void 0)},n)}})),x=()=>[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:s.jsx($,{icon:Tu,size:16}),keywords:[`${Ni("paragraph",r,o)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:Cn.paragraph(r),hide:t.paragraph||!n,onSelect:()=>rn(e,()=>{Bf(e,()=>p.$createParagraphNode())},n)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:s.jsx($,{icon:d1,size:16}),keywords:[`${Ni("quote",r,o)}`],key:"quote",hint:Cn.quote(r),hide:t.quote,"data-test-id":"block-type-quote",onSelect:()=>{l==null||l("block_quote_created"),rn(e,()=>{Bf(e,()=>fn.$createQuoteNode())},n)}},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:s.jsx($,{icon:yk,size:16}),keywords:[`${Ni("collapse",r,o)}`],key:"caret-right",hint:Cn.collapse(r),hide:n||t["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>{l==null||l("block_collapse_created"),rn(e,()=>{e.dispatchCommand(Cb,void 0)},n)}},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:s.jsx($,{icon:pk,size:16}),keywords:[`${Ni("horizontal-rule",r,o)}`],hint:Cn.divider(r),hide:n||t["horizontal-rule"],key:"horizontal-rule","data-test-id":"block-type-horizontal-rule",onSelect:()=>{l==null||l("block_divider_inserted"),rn(e,j=>{const B=j==null?void 0:j.getParent();if(jr(B)){const _=Pi.$createHorizontalRuleNode(),D=j==null?void 0:j.replace(_);D==null||D.insertAfter(p.$createParagraphNode())}else e.dispatchCommand(Pi.INSERT_HORIZONTAL_RULE_COMMAND,void 0);!(j!=null&&j.getTextContent())&&!Ai(j==null?void 0:j.getParent())&&(j==null||j.remove())},n)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:s.jsx($,{icon:$c,size:16}),keywords:[`${Ni("table",r,o)}`],key:"table",hint:Cn.table(r),hide:n||t.table,"data-test-id":"block-type-table",onSelect:()=>{l==null||l("block_table_created"),rn(e,()=>{e.dispatchCommand(Bu,{columns:"2",includeHeaders:!1,rows:"2"})},n)}},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:s.jsx($,{icon:bk,size:16}),keywords:[`${Ni("grid",r,o)}`],hide:n||t.grid,hint:Cn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>{l==null||l("block_layout_used"),rn(e,()=>{e.dispatchCommand(J1,j1)},n)}},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:s.jsx($,{icon:Ga,size:16}),keywords:[`${Ni("code",r,o)}`],key:"code",hint:Cn.code(r),hide:t.code,"data-test-id":"block-type-code",onSelect:()=>{l==null||l("block_code_created"),rn(e,()=>{_j(e)},n)}}],w={default:$f,alert:t1,success:ak,warning:$8},k=()=>HI.map(({type:j,command:B,hint:_,description:D,name:O})=>({parentKey:"callout",name:r(O),description:r(D),icon:s.jsx($,{icon:w[j]||$f,size:16}),keywords:[`${I2(j,r,o)}`,`${r(`editor.menu.callout.${j}.keywords.heading`)}`,`${r(`editor.menu.callout.${j}.keywords.headingList`)}`,`${r(`editor.menu.callout.${j}.keywords.markers`)}`],key:j,hint:_(r),hide:t[j],"data-test-id":`block-type-${j}`,onSelect:()=>{l==null||l("block_callout_created",{type:j}),rn(e,()=>{e.dispatchCommand(Nu,B)},n)}})),T=()=>{const j=C(),B=y(),_=x(),D=k(),O={parentKey:"text",name:r("editor.menu.other.equation.name"),description:r("editor.menu.other.equation.subtitle"),icon:s.jsx($,{icon:Za,size:16}),keywords:D2("equation",r,o)||[],key:"equation",hide:n||t.equation,onSelect:()=>{rn(e,()=>{e.dispatchCommand(Va,void 0)},n)}},W=F=>F==="equation"?O:j.find(Y=>Y.key===F)||B.find(Y=>Y.key===F)||_.find(Y=>Y.key===F)||D.find(Y=>Y.key===F);return["1","caret-right","2","bullet","3","number","4","check","quote","equation","default","alert","success","warning","paragraph"].map(F=>W(F)).filter(F=>!!F&&!F.hide).map(F=>({...F,parentKey:"text"}))},R=()=>[{parentKey:"inline",name:r("editor.menu.other.inlinePageLink.name"),description:r("editor.menu.other.inlinePageLink.subtitle"),icon:s.jsx($,{icon:Ds,size:16}),keywords:["inline","page","page link"],key:"inlinePageLink",hide:n||t.inlinePageLink,onSelect:()=>{rn(e,()=>{e.dispatchCommand(Th,"inline")},n)}},{parentKey:"inline",name:r("editor.menu.other.inlineEquation.name"),description:r("editor.menu.other.inlineEquation.subtitle"),icon:s.jsx($,{icon:Za,size:16}),keywords:D2("equation-inline",r,o)||[],key:"equation-inline",hide:n||t["equation-inline"],onSelect:()=>{rn(e,()=>{e.dispatchCommand(Va,"inline")},n)}}].filter(B=>!B.hide),N=()=>{const j=x();return["horizontal-rule","table","grid","code"].map(_=>j.find(D=>D.key===_)).filter(_=>_!==void 0&&!_.hide).map(_=>({..._,parentKey:"advanced"}))},L=()=>{const j=[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:s.jsx($,{icon:fA,size:16}),keywords:[`${Tc("photo",r,o)}`],hide:n||t.photo,hint:Cn.image(r),key:"photo",onSelect:()=>{l==null||l("block_image_added"),rn(e,()=>{e.dispatchCommand(_1,{altText:"new-image",src:"",create:!0})},n)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:Cn.audio(r),keywords:[`${Tc("audio",r,o)}`],icon:s.jsx($,{icon:kk,size:16}),key:"audio",hide:n||t.audio,onSelect:()=>{l==null||l("media_audio_added"),rn(e,()=>{e.dispatchCommand(Yc,"")},n)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:Cn.file(r),keywords:[`${Tc("file",r,o)}`],icon:s.jsx($,{icon:Hg,size:16}),key:"file",hide:n||t.file,onSelect:()=>{l==null||l("media_file_added"),rn(e,()=>{e.dispatchCommand(Ah,"")},n)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:Cn.excalidraw(r),keywords:[`${Tc("excalidraw",r,o)}`,"media"],icon:s.jsx($,{icon:Ek,size:16}),key:"excalidraw",hide:n||t.excalidraw,onSelect:()=>{t.excalidraw||Promise.resolve().then(()=>require("./layers.DH0uo8fs.js")).then(({INSERT_EXCALIDRAW_COMMAND:_})=>{rn(e,()=>{e.dispatchCommand(_,void 0)},n)})}}],B=(i==null?void 0:i.filter(_=>{var D;return((D=_.slashMenu)==null?void 0:D.parentKey)==="media"}).map(_=>{const D=_.key,O=D in Cn?Cn[D](r):_.slashMenu.hint?r(_.slashMenu.hint):void 0;return{parentKey:_.slashMenu.parentKey,name:r(_.slashMenu.name),description:r(_.slashMenu.description),hint:O,keywords:_.slashMenu.keywords,icon:_.slashMenu.icon,key:_.key,hide:n||t[_.key],onSelect:()=>{_.key==="video"&&(l==null||l("media_video_added",{source:"slash_menu"})),rn(e,()=>{e.dispatchCommand(_.slashMenu.command,_.slashMenu.commandPayload)},n)}}}))||[];return[...j,...B]},M=()=>[{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:s.jsx($,{icon:Dk,size:16}),keywords:["emoji","smile"],key:"emoji",hide:n||t.emoji,onSelect:()=>{e.focus(),e.dispatchCommand(m1,void 0)}},{parentKey:"other",name:r("editor.menu.other.pageLink.name"),description:r("editor.menu.other.pageLink.subtitle"),icon:s.jsx($,{icon:Ds,size:16}),keywords:["link","page","page link"],hide:n||t.pageLink,key:"pageLink",onSelect:()=>{rn(e,()=>{e.dispatchCommand(Th,void 0)},n)}},{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:s.jsx($,{icon:Hg,size:16}),keywords:["page","document","child"],hide:n||t.childDocs,key:"childDocuments",onSelect:()=>{l==null||l("block_child_docs_inserted"),rn(e,()=>{e.dispatchCommand(gb,void 0)},n)}}].filter(B=>!B.hide),S=()=>{const j={parentKey:"integrations",name:r("editor.menu.other.embed.name"),description:r("editor.menu.other.embed.subtitle"),icon:s.jsx($,{icon:fk,size:16}),keywords:["embed","iframe","webpage","html"],key:"embed","data-test-id":"block-type-embed",hide:n||t.embed,onSelect:()=>{l==null||l("block_embed_added",{platform:"generic-embed"}),rn(e,()=>{e.dispatchCommand(hu,"generic-embed")},n)}},B=VI(Js).map(O=>({...O,keywords:["iframe",...O.keywords],"data-test-id":`block-type-${O.platform}`,onSelect:()=>{l==null||l("block_embed_added",{platform:O.platform}),rn(e,()=>{O.platform==="swagger"?e.dispatchCommand(g5,""):e.dispatchCommand(hu,O.platform)},n)},hide:GI(O.platform,n)})),_=[j,...B].filter(O=>!O.hide),D=_.findIndex(O=>O.key==="embed");if(D>0){const[O]=_.splice(D,1);_.unshift(O)}return _},I=()=>{const j=_=>rn(e,()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,_)},!0);return[{parentKey:"formatting",name:r("editor.toolbar.bold"),description:r("editor.toolbar.bold"),icon:s.jsx($,{icon:kA,size:16}),keywords:["bold","b","strong"],key:"format-bold",hide:n,"data-test-id":"slash-menu-format-bold",onSelect:()=>j("bold")},{parentKey:"formatting",name:r("editor.toolbar.strike"),description:r("editor.toolbar.strike"),icon:s.jsx($,{icon:EA,size:16}),keywords:["strike","strikethrough"],key:"format-strike",hide:n,"data-test-id":"slash-menu-format-strike",onSelect:()=>j("strikethrough")},{parentKey:"formatting",name:r("editor.toolbar.italic"),description:r("editor.toolbar.italic"),icon:s.jsx($,{icon:SA,size:16}),keywords:["italic","i"],key:"format-italic",hide:n,"data-test-id":"slash-menu-format-italic",onSelect:()=>j("italic")},{parentKey:"formatting",name:r("editor.toolbar.underline"),description:r("editor.toolbar.underline"),icon:s.jsx($,{icon:TA,size:16}),keywords:["underline","u"],key:"format-underline",hide:n,"data-test-id":"slash-menu-format-underline",onSelect:()=>j("underline")},{parentKey:"formatting",name:r("editor.menu.formatting.inlineCode"),description:r("editor.menu.formatting.inlineCode"),icon:s.jsx($,{icon:Ga,size:16}),keywords:["code","inline","pre"],key:"format-inline-code",hide:n,"data-test-id":"slash-menu-format-inline-code",onSelect:()=>j("code")}].filter(_=>!_.hide)};return[{key:"text",name:h("editor.menu.text.title"),blocks:T()},{key:"advanced",name:h("editor.menu.advanced.title"),blocks:N()},{key:"media",name:h("editor.menu.media.title"),blocks:L()},{key:"inline",name:h("editor.menu.inline.title"),blocks:R()},{key:"other",name:h("editor.menu.other.title"),blocks:M()},{key:"integrations",name:h("editor.menu.integrations.title"),blocks:S()},{key:"formatting",name:h("editor.menu.formatting.title"),blocks:I()}]}function qI({index:e,isSelected:n,onClick:t,onMouseEnter:r,option:o}){return s.jsxs(v.UnstyledButton,{tabIndex:-1,className:"item",role:"option",id:"typeahead-item-"+e,ref:o.setRefElement,"aria-selected":n,onMouseEnter:r,onClick:t,"data-selected":n,"data-test-id":`block-type-${o.key}`,children:[s.jsx(v.Box,{className:"slash-menu-item-icon",children:o.icon}),s.jsx(v.Tooltip,{label:o.title,openDelay:400,zIndex:1001,children:s.jsx(v.Box,{className:"slash-menu-item-text",children:s.jsx(v.Text,{className:"slash-menu-item-label",span:!0,truncate:"end",children:o.title})})})]})}const QI=(e,n,t)=>{var r;return(n==null?void 0:n.__key)!==t.current.key&&(t.current={show:!0,key:n.__key,isCheck:!0}),n&&t.current.show&&t.current.isCheck&&(ve.$findMatchingParent(n,Lo)||ve.$findMatchingParent(n,St)||((r=ve.$findMatchingParent(n,jt))==null?void 0:r.__checked)!==void 0)&&(t.current={show:!1,key:n.__key,isCheck:!1}),t.current.show&&(n==null?void 0:n.__key)===t.current.key&&(t.current={show:!0,key:(n==null?void 0:n.__key)||"",isCheck:!1}),t.current.show?e:""};function JI(e,n){for(let t=0;t<e.length;t++){const r=e[t].items;for(let o=0;o<r.length;o++)if(r[o].index===n)return{groupIndex:t,localItemIndex:o}}return null}function XI(e,n){return n<=0?"wrap":e+2<n?e+2:e%2===1&&e+1<n?e+1:"wrap"}function $I(e,n,t,r){if(r<=1)return 0;const o=JI(e,n);if(!o)return Math.max(0,Math.min(r-1,n));const{groupIndex:i,localItemIndex:l}=o,d=e[i].items.length,f=(h,g)=>{var b;const C=(b=e[h])==null?void 0:b.items[g];return(C==null?void 0:C.index)??n};switch(t){case"right":return l%2===0&&l+1<d?f(i,l+1):n;case"left":return l%2===1?f(i,l-1):n;case"down":{const h=XI(l,d);return typeof h=="number"?f(i,h):i+1<e.length?f(i+1,0):f(0,0)}case"up":{if(l-2>=0)return f(i,l-2);if(i>0){const y=e[i-1].items.length;if(y===0)return n;if(l===0){const x=y%2===0?y-2:y-1;return f(i-1,Math.max(0,x))}if(l===1)return f(i-1,y-1)}const h=e.length-1,C=e[h].items.length;if(C===0)return n;if(l===0){const b=C%2===0?C-2:C-1;return f(h,Math.max(0,b))}return f(h,C-1)}default:return n}}function eD({editor:e,opened:n,groupOptions:t,options:r,selectedIndex:o,setHighlightedIndex:i}){const l=m.useRef(r),c=m.useRef(t),d=m.useRef(o);return l.current=r,c.current=t,d.current=o,m.useEffect(()=>{if(!n)return;const f=g=>{var w;const C=l.current;if(C.length===0)return;const b=Math.max(0,Math.min(C.length-1,g));i(b),d.current=b;const y=C[b],x=(w=y==null?void 0:y.ref)==null?void 0:w.current;x!=null&&(e.dispatchCommand(Ua.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND,{index:b,option:y}),requestAnimationFrame(()=>{x.scrollIntoView({block:"nearest",inline:"nearest"})}))},h=(g,C)=>{const b=l.current;if(b.length===0)return!1;C.preventDefault(),C.stopPropagation();const y=d.current,x=y===null?0:y,w=$I(c.current,x,g,b.length);return w!==x&&f(w),!0};return ve.mergeRegister(e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,g=>h("down",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_UP_COMMAND,g=>h("up",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,g=>h("right",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_LEFT_COMMAND,g=>h("left",g),p.COMMAND_PRIORITY_HIGH))},[e,n,i]),null}class k5 extends Ua.MenuOption{constructor(t,r,o,i,l,c){super(t);Ne(this,"key");Ne(this,"title");Ne(this,"description");Ne(this,"icon");Ne(this,"keywords");Ne(this,"keyboardShortcut");Ne(this,"onSelect");Ne(this,"hide");Ne(this,"parentKey");Ne(this,"index");Ne(this,"hint");this.key=t,this.title=r,this.hide=i,this.description=o,this.keywords=c.keywords||[],this.icon=c.icon,this.hint=c.hint,this.parentKey=l,this.index=0,this.keyboardShortcut=c.keyboardShortcut,this.onSelect=c.onSelect.bind(this)}}function tD(e,n){const t=[];if(n==null)return t;const r=n.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const o=r[1],i=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);t.push(...i.map(l=>new k5("table",`${o}x${l} Table`,"",!1,"advanced",{icon:s.jsx(v.Box,{className:"icon table"}),keywords:["table"],onSelect:()=>e.dispatchCommand(Bu,{columns:l,rows:o})})))}return t}function nD({editor:e,excludeNodes:n,t,plugins:r,onTrack:o}){const i=$1({editor:e,isToolbar:!1,excludeNodes:n,t,plugins:r,onTrack:o});let l=[],c={};i.forEach(f=>{c[f.key]=f,l=[...l,...f.blocks]});let d=[];return l.forEach(f=>{f.hide||(d=[...d,new k5(f.key,f.name,f.description,f.hide,f.parentKey,{hint:f.hint,icon:f.icon,keywords:f.keywords,onSelect:f.onSelect})])}),{groupedOptions:c,baseOptions:d}}function rD({mode:e,setOpenedMenu:n,opened:t}){const[r]=ot.useLexicalComposerContext(),o=m.useRef({show:!0,key:"",isCheck:!0}),[i,l]=m.useState(null),[c,d]=m.useState(0),{t:f}=Ue.useTranslation(),h=(c===100).toString(),{fetchUploadMedia:g,excludeNodes:C,plugins:b,onTrack:y}=m.useContext(ft),x=Ua.useBasicTypeaheadTriggerMatch("/",{minLength:0}),{options:w,groupOptions:k,groupedInitialOptions:T}=m.useMemo(()=>{const{groupedOptions:S,baseOptions:I}=nD({editor:r,excludeNodes:C,t:f,plugins:b,onTrack:y}),j=D=>{const O=D.reduce((W,K,F)=>{const Y=K.parentKey;return W[Y]||(W[Y]=[]),W[Y].push({...K,index:F}),W},{});return Object.entries(O).map(([W,K])=>({name:W,items:K}))};if(!i)return{options:I,groupOptions:j(I),groupedInitialOptions:S};const B=new RegExp(i,"i"),_=[...tD(r,i),...I.filter(D=>B.test(D.title)||D.keywords.some(O=>B.test(O)))];return{options:_,groupOptions:j(_),groupedInitialOptions:S}},[r,g,e,i,b]),R=m.useCallback((S,I,j,B)=>{r.update(()=>{I==null||I.remove(),S.onSelect(B),j()})},[r]),N=S=>{const I=S.target;if(I!=null&&I.closest(".component-picker-menu"))return;R2(I,Vr,r)&&d(100),n(!1),document.removeEventListener("click",N)};m.useEffect(()=>(t&&document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}),[t]);const L=S=>{var D;if(!S){y==null||y("slash_menu_opened"),setTimeout(()=>{n(!0),d(O=>O+1)},50);return}const{x:I,y:j}=((D=S.getRect)==null?void 0:D.call(S))??{},B=document.elementFromPoint(I+1,j+1);!B||R2(B,Vr,r)||(y==null||y("slash_menu_opened"),setTimeout(()=>{n(!0),d(O=>O+1)},50))},M=(S,I)=>{if(S.substring(0,1)!=="/")return x(S,I);const B=en();if(!B)return x(S,I);const _=QI(S,B,o);return L(),x(_,I)};return s.jsx(s.Fragment,{children:s.jsx(Ua.LexicalTypeaheadMenuPlugin,{onQueryChange:l,onSelectOption:R,triggerFn:M,options:w,onOpen:L,anchorClassName:"reset-anchor",onClose:()=>{n(!1)},menuRenderFn:(S,I)=>{const{selectedIndex:j,selectOptionAndCleanUp:B,setHighlightedIndex:_}=I;return s.jsx(s.Fragment,{children:S.current&&s.jsx(v.Portal,{target:S.current||document.body,children:s.jsxs(v.Menu,{shadow:"md",opened:t,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"hidden",overflowX:"hidden",zIndex:1e3,display:w.length?"block":"none",width:375,padding:0}},middlewares:{flip:!0,size:{padding:8,apply({elements:D,y:O,placement:W}){requestAnimationFrame(()=>{Object.assign(D.floating.style,{maxHeight:"425px",top:W==="top-start"?`${O-20}px`:`${O}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:Fn,children:[s.jsx(v.Menu.Target,{children:s.jsx(v.Box,{component:"span",w:0,h:0,display:"block"})},c),s.jsxs(v.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:[s.jsx(eD,{editor:r,opened:t,groupOptions:k.filter(D=>D.items.length>0),options:I.options,selectedIndex:j,setHighlightedIndex:_}),s.jsx(v.Box,{id:"typeahead-menu",className:"slash-menu-scroll-region",children:s.jsx(v.Box,{className:"slash-menu-list-column",children:k.map(D=>{const O=T[D.name].name;return s.jsxs(v.Box,{className:"slash-menu-group",children:[s.jsx(v.Text,{className:"slash-menu-group-label",size:"sm",span:!0,children:O}),s.jsx(v.Box,{className:"slash-menu-grid",children:D.items.length>0?D.items.map(W=>s.jsx(qI,{index:W.index,isSelected:j===W.index,onClick:()=>{_(W.index),B(W)},onMouseEnter:()=>{_(W.index)},option:W},W.key)):null})]},O)})})})]})]},h)})})}})})}function Mc(e){return e instanceof HTMLElement}const oD=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:i,editor:l,t:c})=>{const d=Yn,f=d||e==="bottom";return s.jsx("div",{className:`icon add-block-menu ${e||d?"active":""} ${f?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!1,isClickedBlockRef:o,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:s.jsx(v.Tooltip,{openDelay:300,label:c("editor.hoverOptions.addNewBlockBelow"),position:"bottom",disabled:Yn||o.current||!e,children:s.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:f?s.jsx(Ee.IconPlus,{}):s.jsx(Ee.IconMinus,{})})})})},iD=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:i,editor:l,t:c,isTouchDevice:d})=>{const f=Yn,h=f||e==="top";return s.jsx("div",{className:`icon add-block-menu add-block-menu_top ${e||f?"active":""} ${h?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!0,isClickedBlockRef:o,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:s.jsx(v.Tooltip,{disabled:Yn||o.current||!e,openDelay:300,label:c("editor.hoverOptions.addNewBlockAbove"),position:"top",children:s.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:h?s.jsx(Ee.IconPlus,{}):s.jsx(Ee.IconMinus,{})})})})},P2={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},B2={paragraph:Tu,1:i1,2:s1,3:a1,4:ja,bullet:eu,check:o1,number:l1,quote:d1,code:Ga,equation:Za,callout:$f},sD=Wi?{1:"(⌥⌘1)",2:"(⌥⌘2)",3:"(⌥⌘3)",4:"(⌥⌘4)",bullet:"(⇧⌘9)",check:"(⇧⌘8)",number:"(⇧⌘7)"}:{1:"(Ctrl+Alt+1)",2:"(Ctrl+Alt+2)",3:"(Ctrl+Alt+3)",4:"(Ctrl+Alt+4)",bullet:"(Ctrl+Shift+9)",check:"(Ctrl+Shift+8)",number:"(Ctrl+Shift+7)"},aD={h1:"1",h2:"2",h3:"3",h4:"4",h5:"5",h6:"6",paragraph:"paragraph",bullet:"bullet",check:"check",number:"number",quote:"quote",code:"code"},lD=["paragraph","1","2","3","4","__divider_1__","bullet","check","number","__divider_2__","equation","code","callout","quote"];function S5({editor:e,blockType:n,disabled:t=!1,mode:r,fetchUploadMedia:o,excludeNodes:i,children:l,menuProps:c,onChange:d,plugins:f}){const[h,g]=X1(),{t:C,i18n:b}=Ue.useTranslation(),{onTrack:y}=m.useContext(ft),x=m.useMemo(()=>$1({editor:e,isToolbar:!0,excludeNodes:i,t:C,plugins:f,onTrack:y}).map(M=>({...M,blocks:M.blocks.filter(S=>!S.hide)})),[e,g,o,r,b.language,f]),w=m.useCallback(()=>{y==null||y("block_equation_created"),rn(e,()=>{e.dispatchCommand(Va,void 0)},!0)},[e,y]),k=m.useCallback(()=>{y==null||y("block_callout_created",{type:"default"}),rn(e,()=>{e.dispatchCommand(Nu,"default")},!0)},[e,y]),T=m.useMemo(()=>{const M=x.flatMap(j=>j.blocks),S=new Map(M.map(j=>[j.key,j])),I=[];for(const j of lD){if(j.startsWith("__divider_")){I.push({type:"divider",key:j});continue}if(j==="equation"){i.equation||I.push({type:"item",key:"equation",block:{key:"equation",name:C("editor.menu.other.equation.name"),onSelect:w,"data-test-id":"block-type-equation"}});continue}if(j==="callout"){i.default||I.push({type:"item",key:"callout",block:{key:"callout",name:C("editor.menu.callout.default.name"),onSelect:k,"data-test-id":"block-type-callout"}});continue}const B=S.get(j);B&&I.push({type:"item",key:j,block:B})}return I},[x,i,C,w,k]),R=aD[n]||n,[N,L]=m.useState(!1);if(rt){const M=l?m.cloneElement(l,{onClick:S=>{var I,j;(j=(I=l.props)==null?void 0:I.onClick)==null||j.call(I,S),S.defaultPrevented||L(!0)}}):s.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:P2[n],"data-test-id":"toolbar-block-controls",onClick:()=>L(!0),children:[s.jsx(bn,{size:18,mr:5,name:n}),s.jsx(bn,{name:"chevron-down"})]});return s.jsxs(s.Fragment,{children:[h,M,s.jsx(Bt,{opened:N,onClose:()=>L(!1),title:C("editor.toolbar.turnInto"),children:s.jsx(v.Stack,{gap:2,pb:"sm",children:T.map(S=>{if(S.type==="divider")return s.jsx("div",{className:"mobile-slash-menu__divider"},S.key);const{block:I,key:j}=S,B=B2[j],_=R===j||j==="callout"&&["default","alert","success","warning"].includes(R);return s.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":_||void 0,"data-test-id":I["data-test-id"],onClick:()=>{I.onSelect(),d&&d(),L(!1)},children:[s.jsx("div",{className:"mobile-slash-menu__item-icon",children:B?s.jsx($,{icon:B,size:16}):I.icon}),s.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:j==="paragraph"?"Text":I.name}),_&&s.jsx($,{className:"mobile-slash-menu__item-check",icon:Jn,size:16})]},j)})})})]})}return s.jsxs(s.Fragment,{children:[h,s.jsxs(v.Menu,{shadow:"md",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{overflow:"auto",zIndex:1e3,overscrollBehavior:"contain"},item:{gap:"var(--mantine-spacing-sm)"}},middlewares:w5,position:"bottom-start",transitionProps:Fn,...c,children:[s.jsx(v.Menu.Target,{children:l||s.jsx(v.Tooltip,{label:C("editor.toolbar.turnInto"),children:s.jsxs("button",{disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:P2[n],type:"button","data-test-id":"toolbar-block-controls",children:[s.jsx(bn,{size:18,mr:5,name:n}),s.jsx(bn,{name:"chevron-down"})]})})}),s.jsxs(v.Menu.Dropdown,{children:[s.jsx(v.Menu.Label,{children:C("editor.toolbar.turnInto")}),s.jsx("div",{className:"toolbar-dropdown-list",children:T.map(M=>{if(M.type==="divider")return s.jsx(v.Menu.Divider,{},M.key);const{block:S,key:I}=M,j=B2[I],B=sD[I],_=R===I||I==="callout"&&["default","alert","success","warning"].includes(R);return s.jsx(v.Menu.Item,{leftSection:j?s.jsx($,{color:"var(--mantine-color-dark-2)",icon:j,size:16}):S.icon,rightSection:B||_?s.jsxs(s.Fragment,{children:[B&&s.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:B}),_&&s.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"})]}):void 0,onClick:()=>{S.onSelect(),d&&d()},"data-test-id":S["data-test-id"],children:I==="paragraph"?"Text":S.name},I)})})]})]})]})}const cD=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],uD=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}];function Nh({fontColor:e,bgColor:n,disabled:t,onChange:r,onOpenChange:o,children:i,menuProps:l,visibleSections:c,highlightsSectionLabelKey:d="editor.toolbar.colorPicker.textHighlights"}){const{t:f}=Ue.useTranslation(),{onChange:h,...g}=l??{},C=m.useMemo(()=>({recent:(c==null?void 0:c.recent)??!0,textColors:(c==null?void 0:c.textColors)??!0,highlights:(c==null?void 0:c.highlights)??!0}),[c]),b=e===""?"inherit":e,y=n===""?"inherit":n,x=m.useMemo(()=>cD.map(({value:L,nameKey:M})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${M}`)})),[f]),w=m.useMemo(()=>uD.map(({value:L,nameKey:M,border:S})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${M}`),border:S})),[f]),k=m.useMemo(()=>{const L=[];return C.textColors&&L.push({key:"textColor",label:f("editor.toolbar.colorPicker.textColors"),colors:x,value:b}),C.highlights&&L.push({key:"textHighlight",label:f(d),colors:w,value:y}),L},[C,f,b,y,d,x,w]),T=m.useCallback((L,M)=>{r(M==="textColor"?{color:L,"background-color":n}:{color:e,"background-color":L})},[e,n,r]),[R,N]=m.useState(!1);if(rt){const L=S=>{N(S),o==null||o(S),h==null||h(S)},M=m.isValidElement(i)?m.cloneElement(i,{onClick:S=>{var I,j;(j=(I=i.props)==null?void 0:I.onClick)==null||j.call(I,S),S.defaultPrevented||L(!0)}}):i;return s.jsxs(s.Fragment,{children:[M,s.jsx(Bt,{opened:R,onClose:()=>L(!1),title:f("editor.toolbar.colorPicker.textColors"),children:s.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:s.jsx(At.ColorPicker.List,{sections:k,onChange:(S,I)=>{T(S,I)}})})})]})}return s.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown toolbar-color-dropdown"},styles:{dropdown:{zIndex:100}},...g,onChange:L=>{o==null||o(L),h==null||h(L)},children:[s.jsx(v.Menu.Target,{children:i}),s.jsx(v.Menu.Dropdown,{"data-test-id":"toolbar-color-picker-dropdown",onMouseDown:L=>L.preventDefault(),children:s.jsx(At.ColorPicker.Toolbar,{sections:k,onChange:T,withRecentColors:C.recent,recentColorsLabel:f("editor.toolbar.colorPicker.recentlyUsed"),disabled:t})})]})}const dD=({editor:e,onChange:n,currentEditorNode:t,textBlock:r,t:o,isDisabledAddColumnButton:i,disabledMoveColumnButtons:l})=>{const{fetchUploadMedia:c,excludeNodes:d,commentController:f,mode:h,onTrack:g}=m.useContext(ft);fl();const[C,b]=m.useState("inherit"),[y,x]=m.useState("inherit"),[w,k]=m.useState("inherit"),[T,R]=m.useState(""),[N,L]=m.useState(!1),[M,S]=m.useState(()=>wc(e).length);m.useEffect(()=>{S(wc(e).length)},[e,t]),m.useEffect(()=>{const W=t==null?void 0:t.__key;e.read(()=>{var Y;const K=W?p.$getNodeByKey(W):null;if(!K){R("block");return}const F=K.__type;if(((Y=K.getParent())==null?void 0:Y.__type)==="layout-item"){R("layout");return}if(F==="callout-wrapper"){R(F);return}if(Ar(K)&&K.getChildren().some(_o)){R("equation-block");return}if(yn(K)||Do(K)){R("code");return}R("block")})},[e,t==null?void 0:t.__key]);const I=m.useCallback(W=>{e.update(()=>{let K=p.$getSelection();if(!K){const F=e.__savedDragHandleSelection;F&&(p.$setSelection(F.clone()),K=p.$getSelection())}K&&dn.$patchStyleText(K,W)})},[e]),j=m.useCallback(W=>{const K=W["background-color"],F=K===y?"inherit":K;e.update(()=>{const Y=t==null?void 0:t.getParent();Y instanceof Mn&&Y.setLayoutBackground(F)}),x(F),n()},[e,t,y,n]),B=m.useCallback(W=>{T==="callout-wrapper"&&t instanceof Ro?e.update(()=>{t.setBackgroundColor(W["background-color"]);let K=p.$getSelection();if(!K){const F=e.__savedDragHandleSelection;F&&(p.$setSelection(F.clone()),K=p.$getSelection())}K&&dn.$patchStyleText(K,{color:W.color})}):I(W),n()},[e,T,t,n,I]),_=W=>{const K=wc(e);K.length?K.forEach(F=>{e.update(()=>{let Y=p.$getNearestNodeFromDOMNode(F);Y&&mu(e,n,Y,W)})}):e.update(()=>{let F=p.$getNearestNodeFromDOMNode(K[0]);mu(e,n,F,W)})};m.useEffect(()=>{const W=t==null?void 0:t.__key;setTimeout(()=>{e.read(()=>{const K=W?p.$getNodeByKey(W):null;if(T==="callout-wrapper"&&K instanceof Ro){b(K.__backgroundColor);return}const F=K==null?void 0:K.getParent();F instanceof Mn&&x(F.__backgroundColor);const Y=p.$getSelection();p.$isRangeSelection(Y)&&(k(dn.$getSelectionStyleValueForProperty(Y,"color","inherit")),b(dn.$getSelectionStyleValueForProperty(Y,"background-color","inherit")))})})},[]),m.useEffect(()=>{e.update(()=>{let W=p.$getSelection();if(!W){L(!1);return}if(p.$isNodeSelection(W)&&(_u(W),W=p.$getSelection(),!W)){L(!1);return}if(!p.$isRangeSelection(W)){L(!1);return}const K=W.getNodes();if(K.length===0){L(!1);return}const Y=K.every(q=>p.$isTextNode(q)&&!p.$isDecoratorNode(q))&&W.getTextContent().trim().length>0;L(Y)})},[e,t==null?void 0:t.__key]);const D=r==="text"&&T!=="callout-wrapper",O=(r==="text"||T==="callout-wrapper")&&T!=="code";return s.jsxs(s.Fragment,{children:[D&&s.jsx(s.Fragment,{children:s.jsx(S5,{disabled:!1,blockType:"paragraph",rootType:"root",editor:e,mode:"editor",fetchUploadMedia:c,excludeNodes:d,onChange:n,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:s.jsx("div",{children:s.jsx(Ns,{label:o("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:s.jsx($,{icon:ok,size:16,color:"var(--mantine-color-gray-6)"})})})})}),O&&s.jsx(Nh,{fontColor:w,bgColor:C,onChange:B,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},styles:{dropdown:{zIndex:400}}},children:s.jsx("div",{children:s.jsx(Ns,{dataNameAttribute:"color-picker",label:o(T==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:s.jsx($,{size:16,icon:li,color:"var(--mantine-color-gray-6)"})})})}),(D||O)&&s.jsx(v.Menu.Divider,{}),N&&f&&h==="editor"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{onMouseDown:W=>{W.preventDefault(),W.stopPropagation(),e.dispatchCommand(Vu,void 0),n("comment")},leftSection:s.jsx($,{icon:sk,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.toolbar.comment")}),s.jsx(v.Menu.Divider,{})]}),s.jsx(v.Menu.Item,{onMouseDown:W=>{W.preventDefault(),w2(e,"cut"),n("cut")},"data-test-id":"cut-draggable",leftSection:s.jsx($,{icon:Lk,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.cut")}),s.jsx(v.Menu.Item,{onMouseDown:W=>{W.preventDefault(),w2(e,"copy"),n("copy")},leftSection:s.jsx($,{icon:Sk,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"copy-draggable",children:o("editor.link.copy")}),s.jsx(v.Menu.Item,{"data-test-id":"copy-link-draggable",onMouseDown:W=>{W.preventDefault();const K=M>1,F=Y=>{Y&&PC.notifications.show({message:o(K?"editor.contextMenu.linksCopied":"editor.contextMenu.linkCopied"),color:"gray",autoClose:2e3})};if(K){const Y=wc(e);let q=[];e.read(()=>{q=Y.map(ee=>p.$getNearestNodeFromDOMNode(ee)).filter(ee=>ee!=null)}),Bb(e,q).then(F)}else jM(e,t).then(F);n("copy")},leftSection:s.jsx($,{icon:xk,size:16,color:"var(--mantine-color-gray-6)"}),children:M>1?o("editor.contextMenu.copyLinks"):o("editor.contextMenu.copyLink")}),s.jsx(v.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:T==="layout"&&i,onClick:()=>{g==null||g("block_duplicated"),Q1(e,n,t,T)},leftSection:s.jsx($,{icon:ir,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.duplicate")}),s.jsx(v.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>{g==null||g("block_deleted"),_("")},color:"var(--mantine-color-red-6)",leftSection:s.jsx($,{icon:sn,size:16}),children:o("editor.contextMenu.delete")}),T==="layout"&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Divider,{}),s.jsx(Nh,{fontColor:"inherit",bgColor:y===""?"inherit":y,onChange:j,visibleSections:{recent:!1,textColors:!1,highlights:!0},highlightsSectionLabelKey:"editor.toolbar.colorPicker.background",menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},withinPortal:!0},children:s.jsx("div",{children:s.jsx(Ns,{label:o("editor.column.changeColor"),icon:s.jsx($,{size:16,icon:li,color:"var(--mantine-color-gray-6)"})})})}),s.jsx(v.Menu.Item,{disabled:i,onClick:()=>{gu(e,t,"left")},leftSection:s.jsx($,{icon:Yg,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"column-left",children:o("editor.column.addLeft")}),s.jsx(v.Menu.Item,{disabled:i,"data-test-id":"column-right",onClick:()=>{gu(e,t,"right")},leftSection:s.jsx($,{icon:Yg,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.addRight")}),s.jsx(v.Menu.Item,{disabled:l.left,"data-test-id":"column-move-left",onClick:()=>{Fs(e,t,"left"),zi(e)},leftSection:s.jsx($,{icon:n1,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveLeft")}),s.jsx(v.Menu.Item,{disabled:l.right,"data-test-id":"column-move-right",onClick:()=>{Fs(e,t,"right"),zi(e)},leftSection:s.jsx($,{icon:r1,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveRight")}),s.jsx(v.Menu.Item,{"data-test-id":"column-delete",onClick:()=>_("layout"),color:"var(--mantine-color-red-6)",leftSection:s.jsx($,{icon:sn,size:16}),children:o("editor.column.deleteColumn")})]})]})};var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}};/**
|
|
207
|
-
* @license
|
|
208
|
-
* Lodash <https://lodash.com/>
|
|
209
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
210
|
-
* Released under MIT license <https://lodash.com/license>
|
|
211
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
212
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
213
|
-
*/var hD=ka.exports,_2;function pD(){return _2||(_2=1,(function(e,n){(function(){var t,r="4.17.23",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",g=1,C=2,b=4,y=1,x=2,w=1,k=2,T=4,R=8,N=16,L=32,M=64,S=128,I=256,j=512,B=30,_="...",D=800,O=16,W=1,K=2,F=3,Y=1/0,q=9007199254740991,ee=17976931348623157e292,Q=NaN,J=4294967295,xe=J-1,we=J>>>1,Te=[["ary",S],["bind",w],["bindKey",k],["curry",R],["curryRight",N],["flip",j],["partial",L],["partialRight",M],["rearg",I]],We="[object Arguments]",ie="[object Array]",X="[object AsyncFunction]",ae="[object Boolean]",pe="[object Date]",Ce="[object DOMException]",G="[object Error]",he="[object Function]",oe="[object GeneratorFunction]",H="[object Map]",Z="[object Number]",re="[object Null]",fe="[object Object]",ge="[object Promise]",Re="[object Proxy]",Oe="[object RegExp]",ce="[object Set]",Le="[object String]",Ze="[object Symbol]",dt="[object Undefined]",Ct="[object WeakMap]",Wt="[object WeakSet]",Dt="[object ArrayBuffer]",ue="[object DataView]",ne="[object Float32Array]",ke="[object Float64Array]",Fe="[object Int8Array]",me="[object Int16Array]",se="[object Int32Array]",Ae="[object Uint8Array]",Pe="[object Uint8ClampedArray]",He="[object Uint16Array]",$e="[object Uint32Array]",it=/\b__p \+= '';/g,Je=/\b(__p \+=) '' \+/g,ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,ze=RegExp(be.source),_e=RegExp(Se.source),Xe=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,at=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/[\\^$.*+?()[\]{}|]/g,qe=RegExp(st.source),ut=/^\s+/,Ot=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Xt=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,wt=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,ho=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,vl=/['\n\r\u2028\u2029\\]/g,wl="\\ud800-\\udfff",sy="\\u0300-\\u036f",ay="\\ufe20-\\ufe2f",ly="\\u20d0-\\u20ff",up=sy+ay+ly,dp="\\u2700-\\u27bf",fp="a-z\\xdf-\\xf6\\xf8-\\xff",cy="\\xac\\xb1\\xd7\\xf7",uy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dy="\\u2000-\\u206f",fy=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hp="A-Z\\xc0-\\xd6\\xd8-\\xde",pp="\\ufe0e\\ufe0f",mp=cy+uy+dy+fy,od="['’]",hy="["+wl+"]",gp="["+mp+"]",kl="["+up+"]",Cp="\\d+",py="["+dp+"]",Ap="["+fp+"]",bp="[^"+wl+mp+Cp+dp+fp+hp+"]",id="\\ud83c[\\udffb-\\udfff]",my="(?:"+kl+"|"+id+")",yp="[^"+wl+"]",sd="(?:\\ud83c[\\udde6-\\uddff]){2}",ad="[\\ud800-\\udbff][\\udc00-\\udfff]",$i="["+hp+"]",xp="\\u200d",vp="(?:"+Ap+"|"+bp+")",gy="(?:"+$i+"|"+bp+")",wp="(?:"+od+"(?:d|ll|m|re|s|t|ve))?",kp="(?:"+od+"(?:D|LL|M|RE|S|T|VE))?",Sp=my+"?",Ep="["+pp+"]?",Cy="(?:"+xp+"(?:"+[yp,sd,ad].join("|")+")"+Ep+Sp+")*",Ay="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",by="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tp=Ep+Sp+Cy,yy="(?:"+[py,sd,ad].join("|")+")"+Tp,xy="(?:"+[yp+kl+"?",kl,sd,ad,hy].join("|")+")",vy=RegExp(od,"g"),wy=RegExp(kl,"g"),ld=RegExp(id+"(?="+id+")|"+xy+Tp,"g"),ky=RegExp([$i+"?"+Ap+"+"+wp+"(?="+[gp,$i,"$"].join("|")+")",gy+"+"+kp+"(?="+[gp,$i+vp,"$"].join("|")+")",$i+"?"+vp+"+"+wp,$i+"+"+kp,by,Ay,Cp,yy].join("|"),"g"),Sy=RegExp("["+xp+wl+up+pp+"]"),Ey=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ty=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],My=-1,nn={};nn[ne]=nn[ke]=nn[Fe]=nn[me]=nn[se]=nn[Ae]=nn[Pe]=nn[He]=nn[$e]=!0,nn[We]=nn[ie]=nn[Dt]=nn[ae]=nn[ue]=nn[pe]=nn[G]=nn[he]=nn[H]=nn[Z]=nn[fe]=nn[Oe]=nn[ce]=nn[Le]=nn[Ct]=!1;var $t={};$t[We]=$t[ie]=$t[Dt]=$t[ue]=$t[ae]=$t[pe]=$t[ne]=$t[ke]=$t[Fe]=$t[me]=$t[se]=$t[H]=$t[Z]=$t[fe]=$t[Oe]=$t[ce]=$t[Le]=$t[Ze]=$t[Ae]=$t[Pe]=$t[He]=$t[$e]=!0,$t[G]=$t[he]=$t[Ct]=!1;var Ly={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ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":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Iy=parseFloat,Dy=parseInt,Mp=typeof wa=="object"&&wa&&wa.Object===Object&&wa,Oy=typeof self=="object"&&self&&self.Object===Object&&self,Pn=Mp||Oy||Function("return this")(),cd=n&&!n.nodeType&&n,bi=cd&&!0&&e&&!e.nodeType&&e,Lp=bi&&bi.exports===cd,ud=Lp&&Mp.process,xr=(function(){try{var le=bi&&bi.require&&bi.require("util").types;return le||ud&&ud.binding&&ud.binding("util")}catch{}})(),Np=xr&&xr.isArrayBuffer,jp=xr&&xr.isDate,Rp=xr&&xr.isMap,Ip=xr&&xr.isRegExp,Dp=xr&&xr.isSet,Op=xr&&xr.isTypedArray;function sr(le,Me,ye){switch(ye.length){case 0:return le.call(Me);case 1:return le.call(Me,ye[0]);case 2:return le.call(Me,ye[0],ye[1]);case 3:return le.call(Me,ye[0],ye[1],ye[2])}return le.apply(Me,ye)}function Py(le,Me,ye,Qe){for(var yt=-1,zt=le==null?0:le.length;++yt<zt;){var Ln=le[yt];Me(Qe,Ln,ye(Ln),le)}return Qe}function vr(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe&&Me(le[ye],ye,le)!==!1;);return le}function By(le,Me){for(var ye=le==null?0:le.length;ye--&&Me(le[ye],ye,le)!==!1;);return le}function Pp(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe;)if(!Me(le[ye],ye,le))return!1;return!0}function Wo(le,Me){for(var ye=-1,Qe=le==null?0:le.length,yt=0,zt=[];++ye<Qe;){var Ln=le[ye];Me(Ln,ye,le)&&(zt[yt++]=Ln)}return zt}function Sl(le,Me){var ye=le==null?0:le.length;return!!ye&&es(le,Me,0)>-1}function dd(le,Me,ye){for(var Qe=-1,yt=le==null?0:le.length;++Qe<yt;)if(ye(Me,le[Qe]))return!0;return!1}function on(le,Me){for(var ye=-1,Qe=le==null?0:le.length,yt=Array(Qe);++ye<Qe;)yt[ye]=Me(le[ye],ye,le);return yt}function zo(le,Me){for(var ye=-1,Qe=Me.length,yt=le.length;++ye<Qe;)le[yt+ye]=Me[ye];return le}function fd(le,Me,ye,Qe){var yt=-1,zt=le==null?0:le.length;for(Qe&&zt&&(ye=le[++yt]);++yt<zt;)ye=Me(ye,le[yt],yt,le);return ye}function _y(le,Me,ye,Qe){var yt=le==null?0:le.length;for(Qe&&yt&&(ye=le[--yt]);yt--;)ye=Me(ye,le[yt],yt,le);return ye}function hd(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe;)if(Me(le[ye],ye,le))return!0;return!1}var Fy=pd("length");function Wy(le){return le.split("")}function zy(le){return le.match(tn)||[]}function Bp(le,Me,ye){var Qe;return ye(le,function(yt,zt,Ln){if(Me(yt,zt,Ln))return Qe=zt,!1}),Qe}function El(le,Me,ye,Qe){for(var yt=le.length,zt=ye+(Qe?1:-1);Qe?zt--:++zt<yt;)if(Me(le[zt],zt,le))return zt;return-1}function es(le,Me,ye){return Me===Me?$y(le,Me,ye):El(le,_p,ye)}function Ky(le,Me,ye,Qe){for(var yt=ye-1,zt=le.length;++yt<zt;)if(Qe(le[yt],Me))return yt;return-1}function _p(le){return le!==le}function Fp(le,Me){var ye=le==null?0:le.length;return ye?gd(le,Me)/ye:Q}function pd(le){return function(Me){return Me==null?t:Me[le]}}function md(le){return function(Me){return le==null?t:le[Me]}}function Wp(le,Me,ye,Qe,yt){return yt(le,function(zt,Ln,qt){ye=Qe?(Qe=!1,zt):Me(ye,zt,Ln,qt)}),ye}function Uy(le,Me){var ye=le.length;for(le.sort(Me);ye--;)le[ye]=le[ye].value;return le}function gd(le,Me){for(var ye,Qe=-1,yt=le.length;++Qe<yt;){var zt=Me(le[Qe]);zt!==t&&(ye=ye===t?zt:ye+zt)}return ye}function Cd(le,Me){for(var ye=-1,Qe=Array(le);++ye<le;)Qe[ye]=Me(ye);return Qe}function Hy(le,Me){return on(Me,function(ye){return[ye,le[ye]]})}function zp(le){return le&&le.slice(0,Yp(le)+1).replace(ut,"")}function ar(le){return function(Me){return le(Me)}}function Ad(le,Me){return on(Me,function(ye){return le[ye]})}function na(le,Me){return le.has(Me)}function Kp(le,Me){for(var ye=-1,Qe=le.length;++ye<Qe&&es(Me,le[ye],0)>-1;);return ye}function Up(le,Me){for(var ye=le.length;ye--&&es(Me,le[ye],0)>-1;);return ye}function Yy(le,Me){for(var ye=le.length,Qe=0;ye--;)le[ye]===Me&&++Qe;return Qe}var Zy=md(Ly),Gy=md(Ny);function Vy(le){return"\\"+Ry[le]}function qy(le,Me){return le==null?t:le[Me]}function ts(le){return Sy.test(le)}function Qy(le){return Ey.test(le)}function Jy(le){for(var Me,ye=[];!(Me=le.next()).done;)ye.push(Me.value);return ye}function bd(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe,yt){ye[++Me]=[yt,Qe]}),ye}function Hp(le,Me){return function(ye){return le(Me(ye))}}function Ko(le,Me){for(var ye=-1,Qe=le.length,yt=0,zt=[];++ye<Qe;){var Ln=le[ye];(Ln===Me||Ln===h)&&(le[ye]=h,zt[yt++]=ye)}return zt}function Tl(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe){ye[++Me]=Qe}),ye}function Xy(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe){ye[++Me]=[Qe,Qe]}),ye}function $y(le,Me,ye){for(var Qe=ye-1,yt=le.length;++Qe<yt;)if(le[Qe]===Me)return Qe;return-1}function ex(le,Me,ye){for(var Qe=ye+1;Qe--;)if(le[Qe]===Me)return Qe;return Qe}function ns(le){return ts(le)?nx(le):Fy(le)}function Fr(le){return ts(le)?rx(le):Wy(le)}function Yp(le){for(var Me=le.length;Me--&&Ot.test(le.charAt(Me)););return Me}var tx=md(jy);function nx(le){for(var Me=ld.lastIndex=0;ld.test(le);)++Me;return Me}function rx(le){return le.match(ld)||[]}function ox(le){return le.match(ky)||[]}var ix=(function le(Me){Me=Me==null?Pn:rs.defaults(Pn.Object(),Me,rs.pick(Pn,Ty));var ye=Me.Array,Qe=Me.Date,yt=Me.Error,zt=Me.Function,Ln=Me.Math,qt=Me.Object,yd=Me.RegExp,sx=Me.String,wr=Me.TypeError,Ml=ye.prototype,ax=zt.prototype,os=qt.prototype,Ll=Me["__core-js_shared__"],Nl=ax.toString,Ht=os.hasOwnProperty,lx=0,Zp=(function(){var a=/[^.]+$/.exec(Ll&&Ll.keys&&Ll.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),jl=os.toString,cx=Nl.call(qt),ux=Pn._,dx=yd("^"+Nl.call(Ht).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rl=Lp?Me.Buffer:t,Uo=Me.Symbol,Il=Me.Uint8Array,Gp=Rl?Rl.allocUnsafe:t,Dl=Hp(qt.getPrototypeOf,qt),Vp=qt.create,qp=os.propertyIsEnumerable,Ol=Ml.splice,Qp=Uo?Uo.isConcatSpreadable:t,ra=Uo?Uo.iterator:t,yi=Uo?Uo.toStringTag:t,Pl=(function(){try{var a=Si(qt,"defineProperty");return a({},"",{}),a}catch{}})(),fx=Me.clearTimeout!==Pn.clearTimeout&&Me.clearTimeout,hx=Qe&&Qe.now!==Pn.Date.now&&Qe.now,px=Me.setTimeout!==Pn.setTimeout&&Me.setTimeout,Bl=Ln.ceil,_l=Ln.floor,xd=qt.getOwnPropertySymbols,mx=Rl?Rl.isBuffer:t,Jp=Me.isFinite,gx=Ml.join,Cx=Hp(qt.keys,qt),Nn=Ln.max,zn=Ln.min,Ax=Qe.now,bx=Me.parseInt,Xp=Ln.random,yx=Ml.reverse,vd=Si(Me,"DataView"),oa=Si(Me,"Map"),wd=Si(Me,"Promise"),is=Si(Me,"Set"),ia=Si(Me,"WeakMap"),sa=Si(qt,"create"),Fl=ia&&new ia,ss={},xx=Ei(vd),vx=Ei(oa),wx=Ei(wd),kx=Ei(is),Sx=Ei(ia),Wl=Uo?Uo.prototype:t,aa=Wl?Wl.valueOf:t,$p=Wl?Wl.toString:t;function z(a){if(un(a)&&!vt(a)&&!(a instanceof It)){if(a instanceof kr)return a;if(Ht.call(a,"__wrapped__"))return eg(a)}return new kr(a)}var as=(function(){function a(){}return function(u){if(!ln(u))return{};if(Vp)return Vp(u);a.prototype=u;var A=new a;return a.prototype=t,A}})();function zl(){}function kr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}z.templateSettings={escape:Xe,evaluate:Ye,interpolate:et,variable:"",imports:{_:z}},z.prototype=zl.prototype,z.prototype.constructor=z,kr.prototype=as(zl.prototype),kr.prototype.constructor=kr;function It(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function Ex(){var a=new It(this.__wrapped__);return a.__actions__=Xn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Xn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Xn(this.__views__),a}function Tx(){if(this.__filtered__){var a=new It(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Mx(){var a=this.__wrapped__.value(),u=this.__dir__,A=vt(a),E=u<0,P=A?a.length:0,U=W3(0,P,this.__views__),V=U.start,te=U.end,de=te-V,je=E?te:V-1,Ie=this.__iteratees__,De=Ie.length,Ge=0,nt=zn(de,this.__takeCount__);if(!A||!E&&P==de&&nt==de)return wm(a,this.__actions__);var pt=[];e:for(;de--&&Ge<nt;){je+=u;for(var Et=-1,mt=a[je];++Et<De;){var Rt=Ie[Et],Pt=Rt.iteratee,ur=Rt.type,Vn=Pt(mt);if(ur==K)mt=Vn;else if(!Vn){if(ur==W)continue e;break e}}pt[Ge++]=mt}return pt}It.prototype=as(zl.prototype),It.prototype.constructor=It;function xi(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var E=a[u];this.set(E[0],E[1])}}function Lx(){this.__data__=sa?sa(null):{},this.size=0}function Nx(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function jx(a){var u=this.__data__;if(sa){var A=u[a];return A===d?t:A}return Ht.call(u,a)?u[a]:t}function Rx(a){var u=this.__data__;return sa?u[a]!==t:Ht.call(u,a)}function Ix(a,u){var A=this.__data__;return this.size+=this.has(a)?0:1,A[a]=sa&&u===t?d:u,this}xi.prototype.clear=Lx,xi.prototype.delete=Nx,xi.prototype.get=jx,xi.prototype.has=Rx,xi.prototype.set=Ix;function po(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var E=a[u];this.set(E[0],E[1])}}function Dx(){this.__data__=[],this.size=0}function Ox(a){var u=this.__data__,A=Kl(u,a);if(A<0)return!1;var E=u.length-1;return A==E?u.pop():Ol.call(u,A,1),--this.size,!0}function Px(a){var u=this.__data__,A=Kl(u,a);return A<0?t:u[A][1]}function Bx(a){return Kl(this.__data__,a)>-1}function _x(a,u){var A=this.__data__,E=Kl(A,a);return E<0?(++this.size,A.push([a,u])):A[E][1]=u,this}po.prototype.clear=Dx,po.prototype.delete=Ox,po.prototype.get=Px,po.prototype.has=Bx,po.prototype.set=_x;function mo(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var E=a[u];this.set(E[0],E[1])}}function Fx(){this.size=0,this.__data__={hash:new xi,map:new(oa||po),string:new xi}}function Wx(a){var u=ec(this,a).delete(a);return this.size-=u?1:0,u}function zx(a){return ec(this,a).get(a)}function Kx(a){return ec(this,a).has(a)}function Ux(a,u){var A=ec(this,a),E=A.size;return A.set(a,u),this.size+=A.size==E?0:1,this}mo.prototype.clear=Fx,mo.prototype.delete=Wx,mo.prototype.get=zx,mo.prototype.has=Kx,mo.prototype.set=Ux;function vi(a){var u=-1,A=a==null?0:a.length;for(this.__data__=new mo;++u<A;)this.add(a[u])}function Hx(a){return this.__data__.set(a,d),this}function Yx(a){return this.__data__.has(a)}vi.prototype.add=vi.prototype.push=Hx,vi.prototype.has=Yx;function Wr(a){var u=this.__data__=new po(a);this.size=u.size}function Zx(){this.__data__=new po,this.size=0}function Gx(a){var u=this.__data__,A=u.delete(a);return this.size=u.size,A}function Vx(a){return this.__data__.get(a)}function qx(a){return this.__data__.has(a)}function Qx(a,u){var A=this.__data__;if(A instanceof po){var E=A.__data__;if(!oa||E.length<o-1)return E.push([a,u]),this.size=++A.size,this;A=this.__data__=new mo(E)}return A.set(a,u),this.size=A.size,this}Wr.prototype.clear=Zx,Wr.prototype.delete=Gx,Wr.prototype.get=Vx,Wr.prototype.has=qx,Wr.prototype.set=Qx;function em(a,u){var A=vt(a),E=!A&&Ti(a),P=!A&&!E&&Vo(a),U=!A&&!E&&!P&&ds(a),V=A||E||P||U,te=V?Cd(a.length,sx):[],de=te.length;for(var je in a)(u||Ht.call(a,je))&&!(V&&(je=="length"||P&&(je=="offset"||je=="parent")||U&&(je=="buffer"||je=="byteLength"||je=="byteOffset")||bo(je,de)))&&te.push(je);return te}function tm(a){var u=a.length;return u?a[Dd(0,u-1)]:t}function Jx(a,u){return tc(Xn(a),wi(u,0,a.length))}function Xx(a){return tc(Xn(a))}function kd(a,u,A){(A!==t&&!zr(a[u],A)||A===t&&!(u in a))&&go(a,u,A)}function la(a,u,A){var E=a[u];(!(Ht.call(a,u)&&zr(E,A))||A===t&&!(u in a))&&go(a,u,A)}function Kl(a,u){for(var A=a.length;A--;)if(zr(a[A][0],u))return A;return-1}function $x(a,u,A,E){return Ho(a,function(P,U,V){u(E,P,A(P),V)}),E}function nm(a,u){return a&&ro(u,Rn(u),a)}function e3(a,u){return a&&ro(u,er(u),a)}function go(a,u,A){u=="__proto__"&&Pl?Pl(a,u,{configurable:!0,enumerable:!0,value:A,writable:!0}):a[u]=A}function Sd(a,u){for(var A=-1,E=u.length,P=ye(E),U=a==null;++A<E;)P[A]=U?t:sf(a,u[A]);return P}function wi(a,u,A){return a===a&&(A!==t&&(a=a<=A?a:A),u!==t&&(a=a>=u?a:u)),a}function Sr(a,u,A,E,P,U){var V,te=u&g,de=u&C,je=u&b;if(A&&(V=P?A(a,E,P,U):A(a)),V!==t)return V;if(!ln(a))return a;var Ie=vt(a);if(Ie){if(V=K3(a),!te)return Xn(a,V)}else{var De=Kn(a),Ge=De==he||De==oe;if(Vo(a))return Em(a,te);if(De==fe||De==We||Ge&&!P){if(V=de||Ge?{}:Ym(a),!te)return de?j3(a,e3(V,a)):N3(a,nm(V,a))}else{if(!$t[De])return P?a:{};V=U3(a,De,te)}}U||(U=new Wr);var nt=U.get(a);if(nt)return nt;U.set(a,V),yg(a)?a.forEach(function(mt){V.add(Sr(mt,u,A,mt,a,U))}):Ag(a)&&a.forEach(function(mt,Rt){V.set(Rt,Sr(mt,u,A,Rt,a,U))});var pt=je?de?Yd:Hd:de?er:Rn,Et=Ie?t:pt(a);return vr(Et||a,function(mt,Rt){Et&&(Rt=mt,mt=a[Rt]),la(V,Rt,Sr(mt,u,A,Rt,a,U))}),V}function t3(a){var u=Rn(a);return function(A){return rm(A,a,u)}}function rm(a,u,A){var E=A.length;if(a==null)return!E;for(a=qt(a);E--;){var P=A[E],U=u[P],V=a[P];if(V===t&&!(P in a)||!U(V))return!1}return!0}function om(a,u,A){if(typeof a!="function")throw new wr(l);return ma(function(){a.apply(t,A)},u)}function ca(a,u,A,E){var P=-1,U=Sl,V=!0,te=a.length,de=[],je=u.length;if(!te)return de;A&&(u=on(u,ar(A))),E?(U=dd,V=!1):u.length>=o&&(U=na,V=!1,u=new vi(u));e:for(;++P<te;){var Ie=a[P],De=A==null?Ie:A(Ie);if(Ie=E||Ie!==0?Ie:0,V&&De===De){for(var Ge=je;Ge--;)if(u[Ge]===De)continue e;de.push(Ie)}else U(u,De,E)||de.push(Ie)}return de}var Ho=jm(no),im=jm(Td,!0);function n3(a,u){var A=!0;return Ho(a,function(E,P,U){return A=!!u(E,P,U),A}),A}function Ul(a,u,A){for(var E=-1,P=a.length;++E<P;){var U=a[E],V=u(U);if(V!=null&&(te===t?V===V&&!cr(V):A(V,te)))var te=V,de=U}return de}function r3(a,u,A,E){var P=a.length;for(A=kt(A),A<0&&(A=-A>P?0:P+A),E=E===t||E>P?P:kt(E),E<0&&(E+=P),E=A>E?0:vg(E);A<E;)a[A++]=u;return a}function sm(a,u){var A=[];return Ho(a,function(E,P,U){u(E,P,U)&&A.push(E)}),A}function Bn(a,u,A,E,P){var U=-1,V=a.length;for(A||(A=Y3),P||(P=[]);++U<V;){var te=a[U];u>0&&A(te)?u>1?Bn(te,u-1,A,E,P):zo(P,te):E||(P[P.length]=te)}return P}var Ed=Rm(),am=Rm(!0);function no(a,u){return a&&Ed(a,u,Rn)}function Td(a,u){return a&&am(a,u,Rn)}function Hl(a,u){return Wo(u,function(A){return yo(a[A])})}function ki(a,u){u=Zo(u,a);for(var A=0,E=u.length;a!=null&&A<E;)a=a[oo(u[A++])];return A&&A==E?a:t}function lm(a,u,A){var E=u(a);return vt(a)?E:zo(E,A(a))}function Zn(a){return a==null?a===t?dt:re:yi&&yi in qt(a)?F3(a):X3(a)}function Md(a,u){return a>u}function o3(a,u){return a!=null&&Ht.call(a,u)}function i3(a,u){return a!=null&&u in qt(a)}function s3(a,u,A){return a>=zn(u,A)&&a<Nn(u,A)}function Ld(a,u,A){for(var E=A?dd:Sl,P=a[0].length,U=a.length,V=U,te=ye(U),de=1/0,je=[];V--;){var Ie=a[V];V&&u&&(Ie=on(Ie,ar(u))),de=zn(Ie.length,de),te[V]=!A&&(u||P>=120&&Ie.length>=120)?new vi(V&&Ie):t}Ie=a[0];var De=-1,Ge=te[0];e:for(;++De<P&&je.length<de;){var nt=Ie[De],pt=u?u(nt):nt;if(nt=A||nt!==0?nt:0,!(Ge?na(Ge,pt):E(je,pt,A))){for(V=U;--V;){var Et=te[V];if(!(Et?na(Et,pt):E(a[V],pt,A)))continue e}Ge&&Ge.push(pt),je.push(nt)}}return je}function a3(a,u,A,E){return no(a,function(P,U,V){u(E,A(P),U,V)}),E}function ua(a,u,A){u=Zo(u,a),a=qm(a,u);var E=a==null?a:a[oo(Tr(u))];return E==null?t:sr(E,a,A)}function cm(a){return un(a)&&Zn(a)==We}function l3(a){return un(a)&&Zn(a)==Dt}function c3(a){return un(a)&&Zn(a)==pe}function da(a,u,A,E,P){return a===u?!0:a==null||u==null||!un(a)&&!un(u)?a!==a&&u!==u:u3(a,u,A,E,da,P)}function u3(a,u,A,E,P,U){var V=vt(a),te=vt(u),de=V?ie:Kn(a),je=te?ie:Kn(u);de=de==We?fe:de,je=je==We?fe:je;var Ie=de==fe,De=je==fe,Ge=de==je;if(Ge&&Vo(a)){if(!Vo(u))return!1;V=!0,Ie=!1}if(Ge&&!Ie)return U||(U=new Wr),V||ds(a)?Km(a,u,A,E,P,U):B3(a,u,de,A,E,P,U);if(!(A&y)){var nt=Ie&&Ht.call(a,"__wrapped__"),pt=De&&Ht.call(u,"__wrapped__");if(nt||pt){var Et=nt?a.value():a,mt=pt?u.value():u;return U||(U=new Wr),P(Et,mt,A,E,U)}}return Ge?(U||(U=new Wr),_3(a,u,A,E,P,U)):!1}function d3(a){return un(a)&&Kn(a)==H}function Nd(a,u,A,E){var P=A.length,U=P,V=!E;if(a==null)return!U;for(a=qt(a);P--;){var te=A[P];if(V&&te[2]?te[1]!==a[te[0]]:!(te[0]in a))return!1}for(;++P<U;){te=A[P];var de=te[0],je=a[de],Ie=te[1];if(V&&te[2]){if(je===t&&!(de in a))return!1}else{var De=new Wr;if(E)var Ge=E(je,Ie,de,a,u,De);if(!(Ge===t?da(Ie,je,y|x,E,De):Ge))return!1}}return!0}function um(a){if(!ln(a)||G3(a))return!1;var u=yo(a)?dx:Ve;return u.test(Ei(a))}function f3(a){return un(a)&&Zn(a)==Oe}function h3(a){return un(a)&&Kn(a)==ce}function p3(a){return un(a)&&ac(a.length)&&!!nn[Zn(a)]}function dm(a){return typeof a=="function"?a:a==null?tr:typeof a=="object"?vt(a)?pm(a[0],a[1]):hm(a):Ig(a)}function jd(a){if(!pa(a))return Cx(a);var u=[];for(var A in qt(a))Ht.call(a,A)&&A!="constructor"&&u.push(A);return u}function m3(a){if(!ln(a))return J3(a);var u=pa(a),A=[];for(var E in a)E=="constructor"&&(u||!Ht.call(a,E))||A.push(E);return A}function Rd(a,u){return a<u}function fm(a,u){var A=-1,E=$n(a)?ye(a.length):[];return Ho(a,function(P,U,V){E[++A]=u(P,U,V)}),E}function hm(a){var u=Gd(a);return u.length==1&&u[0][2]?Gm(u[0][0],u[0][1]):function(A){return A===a||Nd(A,a,u)}}function pm(a,u){return qd(a)&&Zm(u)?Gm(oo(a),u):function(A){var E=sf(A,a);return E===t&&E===u?af(A,a):da(u,E,y|x)}}function Yl(a,u,A,E,P){a!==u&&Ed(u,function(U,V){if(P||(P=new Wr),ln(U))g3(a,u,V,A,Yl,E,P);else{var te=E?E(Jd(a,V),U,V+"",a,u,P):t;te===t&&(te=U),kd(a,V,te)}},er)}function g3(a,u,A,E,P,U,V){var te=Jd(a,A),de=Jd(u,A),je=V.get(de);if(je){kd(a,A,je);return}var Ie=U?U(te,de,A+"",a,u,V):t,De=Ie===t;if(De){var Ge=vt(de),nt=!Ge&&Vo(de),pt=!Ge&&!nt&&ds(de);Ie=de,Ge||nt||pt?vt(te)?Ie=te:pn(te)?Ie=Xn(te):nt?(De=!1,Ie=Em(de,!0)):pt?(De=!1,Ie=Tm(de,!0)):Ie=[]:ga(de)||Ti(de)?(Ie=te,Ti(te)?Ie=wg(te):(!ln(te)||yo(te))&&(Ie=Ym(de))):De=!1}De&&(V.set(de,Ie),P(Ie,de,E,U,V),V.delete(de)),kd(a,A,Ie)}function mm(a,u){var A=a.length;if(A)return u+=u<0?A:0,bo(u,A)?a[u]:t}function gm(a,u,A){u.length?u=on(u,function(U){return vt(U)?function(V){return ki(V,U.length===1?U[0]:U)}:U}):u=[tr];var E=-1;u=on(u,ar(ht()));var P=fm(a,function(U,V,te){var de=on(u,function(je){return je(U)});return{criteria:de,index:++E,value:U}});return Uy(P,function(U,V){return L3(U,V,A)})}function C3(a,u){return Cm(a,u,function(A,E){return af(a,E)})}function Cm(a,u,A){for(var E=-1,P=u.length,U={};++E<P;){var V=u[E],te=ki(a,V);A(te,V)&&fa(U,Zo(V,a),te)}return U}function A3(a){return function(u){return ki(u,a)}}function Id(a,u,A,E){var P=E?Ky:es,U=-1,V=u.length,te=a;for(a===u&&(u=Xn(u)),A&&(te=on(a,ar(A)));++U<V;)for(var de=0,je=u[U],Ie=A?A(je):je;(de=P(te,Ie,de,E))>-1;)te!==a&&Ol.call(te,de,1),Ol.call(a,de,1);return a}function Am(a,u){for(var A=a?u.length:0,E=A-1;A--;){var P=u[A];if(A==E||P!==U){var U=P;bo(P)?Ol.call(a,P,1):Bd(a,P)}}return a}function Dd(a,u){return a+_l(Xp()*(u-a+1))}function b3(a,u,A,E){for(var P=-1,U=Nn(Bl((u-a)/(A||1)),0),V=ye(U);U--;)V[E?U:++P]=a,a+=A;return V}function Od(a,u){var A="";if(!a||u<1||u>q)return A;do u%2&&(A+=a),u=_l(u/2),u&&(a+=a);while(u);return A}function Mt(a,u){return Xd(Vm(a,u,tr),a+"")}function y3(a){return tm(fs(a))}function x3(a,u){var A=fs(a);return tc(A,wi(u,0,A.length))}function fa(a,u,A,E){if(!ln(a))return a;u=Zo(u,a);for(var P=-1,U=u.length,V=U-1,te=a;te!=null&&++P<U;){var de=oo(u[P]),je=A;if(de==="__proto__"||de==="constructor"||de==="prototype")return a;if(P!=V){var Ie=te[de];je=E?E(Ie,de,te):t,je===t&&(je=ln(Ie)?Ie:bo(u[P+1])?[]:{})}la(te,de,je),te=te[de]}return a}var bm=Fl?function(a,u){return Fl.set(a,u),a}:tr,v3=Pl?function(a,u){return Pl(a,"toString",{configurable:!0,enumerable:!1,value:cf(u),writable:!0})}:tr;function w3(a){return tc(fs(a))}function Er(a,u,A){var E=-1,P=a.length;u<0&&(u=-u>P?0:P+u),A=A>P?P:A,A<0&&(A+=P),P=u>A?0:A-u>>>0,u>>>=0;for(var U=ye(P);++E<P;)U[E]=a[E+u];return U}function k3(a,u){var A;return Ho(a,function(E,P,U){return A=u(E,P,U),!A}),!!A}function Zl(a,u,A){var E=0,P=a==null?E:a.length;if(typeof u=="number"&&u===u&&P<=we){for(;E<P;){var U=E+P>>>1,V=a[U];V!==null&&!cr(V)&&(A?V<=u:V<u)?E=U+1:P=U}return P}return Pd(a,u,tr,A)}function Pd(a,u,A,E){var P=0,U=a==null?0:a.length;if(U===0)return 0;u=A(u);for(var V=u!==u,te=u===null,de=cr(u),je=u===t;P<U;){var Ie=_l((P+U)/2),De=A(a[Ie]),Ge=De!==t,nt=De===null,pt=De===De,Et=cr(De);if(V)var mt=E||pt;else je?mt=pt&&(E||Ge):te?mt=pt&&Ge&&(E||!nt):de?mt=pt&&Ge&&!nt&&(E||!Et):nt||Et?mt=!1:mt=E?De<=u:De<u;mt?P=Ie+1:U=Ie}return zn(U,xe)}function ym(a,u){for(var A=-1,E=a.length,P=0,U=[];++A<E;){var V=a[A],te=u?u(V):V;if(!A||!zr(te,de)){var de=te;U[P++]=V===0?0:V}}return U}function xm(a){return typeof a=="number"?a:cr(a)?Q:+a}function lr(a){if(typeof a=="string")return a;if(vt(a))return on(a,lr)+"";if(cr(a))return $p?$p.call(a):"";var u=a+"";return u=="0"&&1/a==-Y?"-0":u}function Yo(a,u,A){var E=-1,P=Sl,U=a.length,V=!0,te=[],de=te;if(A)V=!1,P=dd;else if(U>=o){var je=u?null:O3(a);if(je)return Tl(je);V=!1,P=na,de=new vi}else de=u?[]:te;e:for(;++E<U;){var Ie=a[E],De=u?u(Ie):Ie;if(Ie=A||Ie!==0?Ie:0,V&&De===De){for(var Ge=de.length;Ge--;)if(de[Ge]===De)continue e;u&&de.push(De),te.push(Ie)}else P(de,De,A)||(de!==te&&de.push(De),te.push(Ie))}return te}function Bd(a,u){u=Zo(u,a);var A=-1,E=u.length;if(!E)return!0;for(var P=a==null||typeof a!="object"&&typeof a!="function";++A<E;){var U=u[A];if(typeof U=="string"){if(U==="__proto__"&&!Ht.call(a,"__proto__"))return!1;if(U==="constructor"&&A+1<E&&typeof u[A+1]=="string"&&u[A+1]==="prototype"){if(P&&A===0)continue;return!1}}}var V=qm(a,u);return V==null||delete V[oo(Tr(u))]}function vm(a,u,A,E){return fa(a,u,A(ki(a,u)),E)}function Gl(a,u,A,E){for(var P=a.length,U=E?P:-1;(E?U--:++U<P)&&u(a[U],U,a););return A?Er(a,E?0:U,E?U+1:P):Er(a,E?U+1:0,E?P:U)}function wm(a,u){var A=a;return A instanceof It&&(A=A.value()),fd(u,function(E,P){return P.func.apply(P.thisArg,zo([E],P.args))},A)}function _d(a,u,A){var E=a.length;if(E<2)return E?Yo(a[0]):[];for(var P=-1,U=ye(E);++P<E;)for(var V=a[P],te=-1;++te<E;)te!=P&&(U[P]=ca(U[P]||V,a[te],u,A));return Yo(Bn(U,1),u,A)}function km(a,u,A){for(var E=-1,P=a.length,U=u.length,V={};++E<P;){var te=E<U?u[E]:t;A(V,a[E],te)}return V}function Fd(a){return pn(a)?a:[]}function Wd(a){return typeof a=="function"?a:tr}function Zo(a,u){return vt(a)?a:qd(a,u)?[a]:$m(Yt(a))}var S3=Mt;function Go(a,u,A){var E=a.length;return A=A===t?E:A,!u&&A>=E?a:Er(a,u,A)}var Sm=fx||function(a){return Pn.clearTimeout(a)};function Em(a,u){if(u)return a.slice();var A=a.length,E=Gp?Gp(A):new a.constructor(A);return a.copy(E),E}function zd(a){var u=new a.constructor(a.byteLength);return new Il(u).set(new Il(a)),u}function E3(a,u){var A=u?zd(a.buffer):a.buffer;return new a.constructor(A,a.byteOffset,a.byteLength)}function T3(a){var u=new a.constructor(a.source,Vt.exec(a));return u.lastIndex=a.lastIndex,u}function M3(a){return aa?qt(aa.call(a)):{}}function Tm(a,u){var A=u?zd(a.buffer):a.buffer;return new a.constructor(A,a.byteOffset,a.length)}function Mm(a,u){if(a!==u){var A=a!==t,E=a===null,P=a===a,U=cr(a),V=u!==t,te=u===null,de=u===u,je=cr(u);if(!te&&!je&&!U&&a>u||U&&V&&de&&!te&&!je||E&&V&&de||!A&&de||!P)return 1;if(!E&&!U&&!je&&a<u||je&&A&&P&&!E&&!U||te&&A&&P||!V&&P||!de)return-1}return 0}function L3(a,u,A){for(var E=-1,P=a.criteria,U=u.criteria,V=P.length,te=A.length;++E<V;){var de=Mm(P[E],U[E]);if(de){if(E>=te)return de;var je=A[E];return de*(je=="desc"?-1:1)}}return a.index-u.index}function Lm(a,u,A,E){for(var P=-1,U=a.length,V=A.length,te=-1,de=u.length,je=Nn(U-V,0),Ie=ye(de+je),De=!E;++te<de;)Ie[te]=u[te];for(;++P<V;)(De||P<U)&&(Ie[A[P]]=a[P]);for(;je--;)Ie[te++]=a[P++];return Ie}function Nm(a,u,A,E){for(var P=-1,U=a.length,V=-1,te=A.length,de=-1,je=u.length,Ie=Nn(U-te,0),De=ye(Ie+je),Ge=!E;++P<Ie;)De[P]=a[P];for(var nt=P;++de<je;)De[nt+de]=u[de];for(;++V<te;)(Ge||P<U)&&(De[nt+A[V]]=a[P++]);return De}function Xn(a,u){var A=-1,E=a.length;for(u||(u=ye(E));++A<E;)u[A]=a[A];return u}function ro(a,u,A,E){var P=!A;A||(A={});for(var U=-1,V=u.length;++U<V;){var te=u[U],de=E?E(A[te],a[te],te,A,a):t;de===t&&(de=a[te]),P?go(A,te,de):la(A,te,de)}return A}function N3(a,u){return ro(a,Vd(a),u)}function j3(a,u){return ro(a,Um(a),u)}function Vl(a,u){return function(A,E){var P=vt(A)?Py:$x,U=u?u():{};return P(A,a,ht(E,2),U)}}function ls(a){return Mt(function(u,A){var E=-1,P=A.length,U=P>1?A[P-1]:t,V=P>2?A[2]:t;for(U=a.length>3&&typeof U=="function"?(P--,U):t,V&&Gn(A[0],A[1],V)&&(U=P<3?t:U,P=1),u=qt(u);++E<P;){var te=A[E];te&&a(u,te,E,U)}return u})}function jm(a,u){return function(A,E){if(A==null)return A;if(!$n(A))return a(A,E);for(var P=A.length,U=u?P:-1,V=qt(A);(u?U--:++U<P)&&E(V[U],U,V)!==!1;);return A}}function Rm(a){return function(u,A,E){for(var P=-1,U=qt(u),V=E(u),te=V.length;te--;){var de=V[a?te:++P];if(A(U[de],de,U)===!1)break}return u}}function R3(a,u,A){var E=u&w,P=ha(a);function U(){var V=this&&this!==Pn&&this instanceof U?P:a;return V.apply(E?A:this,arguments)}return U}function Im(a){return function(u){u=Yt(u);var A=ts(u)?Fr(u):t,E=A?A[0]:u.charAt(0),P=A?Go(A,1).join(""):u.slice(1);return E[a]()+P}}function cs(a){return function(u){return fd(jg(Ng(u).replace(vy,"")),a,"")}}function ha(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var A=as(a.prototype),E=a.apply(A,u);return ln(E)?E:A}}function I3(a,u,A){var E=ha(a);function P(){for(var U=arguments.length,V=ye(U),te=U,de=us(P);te--;)V[te]=arguments[te];var je=U<3&&V[0]!==de&&V[U-1]!==de?[]:Ko(V,de);if(U-=je.length,U<A)return _m(a,u,ql,P.placeholder,t,V,je,t,t,A-U);var Ie=this&&this!==Pn&&this instanceof P?E:a;return sr(Ie,this,V)}return P}function Dm(a){return function(u,A,E){var P=qt(u);if(!$n(u)){var U=ht(A,3);u=Rn(u),A=function(te){return U(P[te],te,P)}}var V=a(u,A,E);return V>-1?P[U?u[V]:V]:t}}function Om(a){return Ao(function(u){var A=u.length,E=A,P=kr.prototype.thru;for(a&&u.reverse();E--;){var U=u[E];if(typeof U!="function")throw new wr(l);if(P&&!V&&$l(U)=="wrapper")var V=new kr([],!0)}for(E=V?E:A;++E<A;){U=u[E];var te=$l(U),de=te=="wrapper"?Zd(U):t;de&&Qd(de[0])&&de[1]==(S|R|L|I)&&!de[4].length&&de[9]==1?V=V[$l(de[0])].apply(V,de[3]):V=U.length==1&&Qd(U)?V[te]():V.thru(U)}return function(){var je=arguments,Ie=je[0];if(V&&je.length==1&&vt(Ie))return V.plant(Ie).value();for(var De=0,Ge=A?u[De].apply(this,je):Ie;++De<A;)Ge=u[De].call(this,Ge);return Ge}})}function ql(a,u,A,E,P,U,V,te,de,je){var Ie=u&S,De=u&w,Ge=u&k,nt=u&(R|N),pt=u&j,Et=Ge?t:ha(a);function mt(){for(var Rt=arguments.length,Pt=ye(Rt),ur=Rt;ur--;)Pt[ur]=arguments[ur];if(nt)var Vn=us(mt),dr=Yy(Pt,Vn);if(E&&(Pt=Lm(Pt,E,P,nt)),U&&(Pt=Nm(Pt,U,V,nt)),Rt-=dr,nt&&Rt<je){var mn=Ko(Pt,Vn);return _m(a,u,ql,mt.placeholder,A,Pt,mn,te,de,je-Rt)}var Kr=De?A:this,vo=Ge?Kr[a]:a;return Rt=Pt.length,te?Pt=$3(Pt,te):pt&&Rt>1&&Pt.reverse(),Ie&&de<Rt&&(Pt.length=de),this&&this!==Pn&&this instanceof mt&&(vo=Et||ha(vo)),vo.apply(Kr,Pt)}return mt}function Pm(a,u){return function(A,E){return a3(A,a,u(E),{})}}function Ql(a,u){return function(A,E){var P;if(A===t&&E===t)return u;if(A!==t&&(P=A),E!==t){if(P===t)return E;typeof A=="string"||typeof E=="string"?(A=lr(A),E=lr(E)):(A=xm(A),E=xm(E)),P=a(A,E)}return P}}function Kd(a){return Ao(function(u){return u=on(u,ar(ht())),Mt(function(A){var E=this;return a(u,function(P){return sr(P,E,A)})})})}function Jl(a,u){u=u===t?" ":lr(u);var A=u.length;if(A<2)return A?Od(u,a):u;var E=Od(u,Bl(a/ns(u)));return ts(u)?Go(Fr(E),0,a).join(""):E.slice(0,a)}function D3(a,u,A,E){var P=u&w,U=ha(a);function V(){for(var te=-1,de=arguments.length,je=-1,Ie=E.length,De=ye(Ie+de),Ge=this&&this!==Pn&&this instanceof V?U:a;++je<Ie;)De[je]=E[je];for(;de--;)De[je++]=arguments[++te];return sr(Ge,P?A:this,De)}return V}function Bm(a){return function(u,A,E){return E&&typeof E!="number"&&Gn(u,A,E)&&(A=E=t),u=xo(u),A===t?(A=u,u=0):A=xo(A),E=E===t?u<A?1:-1:xo(E),b3(u,A,E,a)}}function Xl(a){return function(u,A){return typeof u=="string"&&typeof A=="string"||(u=Mr(u),A=Mr(A)),a(u,A)}}function _m(a,u,A,E,P,U,V,te,de,je){var Ie=u&R,De=Ie?V:t,Ge=Ie?t:V,nt=Ie?U:t,pt=Ie?t:U;u|=Ie?L:M,u&=~(Ie?M:L),u&T||(u&=-4);var Et=[a,u,P,nt,De,pt,Ge,te,de,je],mt=A.apply(t,Et);return Qd(a)&&Qm(mt,Et),mt.placeholder=E,Jm(mt,a,u)}function Ud(a){var u=Ln[a];return function(A,E){if(A=Mr(A),E=E==null?0:zn(kt(E),292),E&&Jp(A)){var P=(Yt(A)+"e").split("e"),U=u(P[0]+"e"+(+P[1]+E));return P=(Yt(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return u(A)}}var O3=is&&1/Tl(new is([,-0]))[1]==Y?function(a){return new is(a)}:ff;function Fm(a){return function(u){var A=Kn(u);return A==H?bd(u):A==ce?Xy(u):Hy(u,a(u))}}function Co(a,u,A,E,P,U,V,te){var de=u&k;if(!de&&typeof a!="function")throw new wr(l);var je=E?E.length:0;if(je||(u&=-97,E=P=t),V=V===t?V:Nn(kt(V),0),te=te===t?te:kt(te),je-=P?P.length:0,u&M){var Ie=E,De=P;E=P=t}var Ge=de?t:Zd(a),nt=[a,u,A,E,P,Ie,De,U,V,te];if(Ge&&Q3(nt,Ge),a=nt[0],u=nt[1],A=nt[2],E=nt[3],P=nt[4],te=nt[9]=nt[9]===t?de?0:a.length:Nn(nt[9]-je,0),!te&&u&(R|N)&&(u&=-25),!u||u==w)var pt=R3(a,u,A);else u==R||u==N?pt=I3(a,u,te):(u==L||u==(w|L))&&!P.length?pt=D3(a,u,A,E):pt=ql.apply(t,nt);var Et=Ge?bm:Qm;return Jm(Et(pt,nt),a,u)}function Wm(a,u,A,E){return a===t||zr(a,os[A])&&!Ht.call(E,A)?u:a}function zm(a,u,A,E,P,U){return ln(a)&&ln(u)&&(U.set(u,a),Yl(a,u,t,zm,U),U.delete(u)),a}function P3(a){return ga(a)?t:a}function Km(a,u,A,E,P,U){var V=A&y,te=a.length,de=u.length;if(te!=de&&!(V&&de>te))return!1;var je=U.get(a),Ie=U.get(u);if(je&&Ie)return je==u&&Ie==a;var De=-1,Ge=!0,nt=A&x?new vi:t;for(U.set(a,u),U.set(u,a);++De<te;){var pt=a[De],Et=u[De];if(E)var mt=V?E(Et,pt,De,u,a,U):E(pt,Et,De,a,u,U);if(mt!==t){if(mt)continue;Ge=!1;break}if(nt){if(!hd(u,function(Rt,Pt){if(!na(nt,Pt)&&(pt===Rt||P(pt,Rt,A,E,U)))return nt.push(Pt)})){Ge=!1;break}}else if(!(pt===Et||P(pt,Et,A,E,U))){Ge=!1;break}}return U.delete(a),U.delete(u),Ge}function B3(a,u,A,E,P,U,V){switch(A){case ue:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case Dt:return!(a.byteLength!=u.byteLength||!U(new Il(a),new Il(u)));case ae:case pe:case Z:return zr(+a,+u);case G:return a.name==u.name&&a.message==u.message;case Oe:case Le:return a==u+"";case H:var te=bd;case ce:var de=E&y;if(te||(te=Tl),a.size!=u.size&&!de)return!1;var je=V.get(a);if(je)return je==u;E|=x,V.set(a,u);var Ie=Km(te(a),te(u),E,P,U,V);return V.delete(a),Ie;case Ze:if(aa)return aa.call(a)==aa.call(u)}return!1}function _3(a,u,A,E,P,U){var V=A&y,te=Hd(a),de=te.length,je=Hd(u),Ie=je.length;if(de!=Ie&&!V)return!1;for(var De=de;De--;){var Ge=te[De];if(!(V?Ge in u:Ht.call(u,Ge)))return!1}var nt=U.get(a),pt=U.get(u);if(nt&&pt)return nt==u&&pt==a;var Et=!0;U.set(a,u),U.set(u,a);for(var mt=V;++De<de;){Ge=te[De];var Rt=a[Ge],Pt=u[Ge];if(E)var ur=V?E(Pt,Rt,Ge,u,a,U):E(Rt,Pt,Ge,a,u,U);if(!(ur===t?Rt===Pt||P(Rt,Pt,A,E,U):ur)){Et=!1;break}mt||(mt=Ge=="constructor")}if(Et&&!mt){var Vn=a.constructor,dr=u.constructor;Vn!=dr&&"constructor"in a&&"constructor"in u&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof dr=="function"&&dr instanceof dr)&&(Et=!1)}return U.delete(a),U.delete(u),Et}function Ao(a){return Xd(Vm(a,t,rg),a+"")}function Hd(a){return lm(a,Rn,Vd)}function Yd(a){return lm(a,er,Um)}var Zd=Fl?function(a){return Fl.get(a)}:ff;function $l(a){for(var u=a.name+"",A=ss[u],E=Ht.call(ss,u)?A.length:0;E--;){var P=A[E],U=P.func;if(U==null||U==a)return P.name}return u}function us(a){var u=Ht.call(z,"placeholder")?z:a;return u.placeholder}function ht(){var a=z.iteratee||uf;return a=a===uf?dm:a,arguments.length?a(arguments[0],arguments[1]):a}function ec(a,u){var A=a.__data__;return Z3(u)?A[typeof u=="string"?"string":"hash"]:A.map}function Gd(a){for(var u=Rn(a),A=u.length;A--;){var E=u[A],P=a[E];u[A]=[E,P,Zm(P)]}return u}function Si(a,u){var A=qy(a,u);return um(A)?A:t}function F3(a){var u=Ht.call(a,yi),A=a[yi];try{a[yi]=t;var E=!0}catch{}var P=jl.call(a);return E&&(u?a[yi]=A:delete a[yi]),P}var Vd=xd?function(a){return a==null?[]:(a=qt(a),Wo(xd(a),function(u){return qp.call(a,u)}))}:hf,Um=xd?function(a){for(var u=[];a;)zo(u,Vd(a)),a=Dl(a);return u}:hf,Kn=Zn;(vd&&Kn(new vd(new ArrayBuffer(1)))!=ue||oa&&Kn(new oa)!=H||wd&&Kn(wd.resolve())!=ge||is&&Kn(new is)!=ce||ia&&Kn(new ia)!=Ct)&&(Kn=function(a){var u=Zn(a),A=u==fe?a.constructor:t,E=A?Ei(A):"";if(E)switch(E){case xx:return ue;case vx:return H;case wx:return ge;case kx:return ce;case Sx:return Ct}return u});function W3(a,u,A){for(var E=-1,P=A.length;++E<P;){var U=A[E],V=U.size;switch(U.type){case"drop":a+=V;break;case"dropRight":u-=V;break;case"take":u=zn(u,a+V);break;case"takeRight":a=Nn(a,u-V);break}}return{start:a,end:u}}function z3(a){var u=a.match(Lt);return u?u[1].split(Nt):[]}function Hm(a,u,A){u=Zo(u,a);for(var E=-1,P=u.length,U=!1;++E<P;){var V=oo(u[E]);if(!(U=a!=null&&A(a,V)))break;a=a[V]}return U||++E!=P?U:(P=a==null?0:a.length,!!P&&ac(P)&&bo(V,P)&&(vt(a)||Ti(a)))}function K3(a){var u=a.length,A=new a.constructor(u);return u&&typeof a[0]=="string"&&Ht.call(a,"index")&&(A.index=a.index,A.input=a.input),A}function Ym(a){return typeof a.constructor=="function"&&!pa(a)?as(Dl(a)):{}}function U3(a,u,A){var E=a.constructor;switch(u){case Dt:return zd(a);case ae:case pe:return new E(+a);case ue:return E3(a,A);case ne:case ke:case Fe:case me:case se:case Ae:case Pe:case He:case $e:return Tm(a,A);case H:return new E;case Z:case Le:return new E(a);case Oe:return T3(a);case ce:return new E;case Ze:return M3(a)}}function H3(a,u){var A=u.length;if(!A)return a;var E=A-1;return u[E]=(A>1?"& ":"")+u[E],u=u.join(A>2?", ":" "),a.replace(bt,`{
|
|
214
|
-
/* [wrapped with `+u+`] */
|
|
215
|
-
`)}function Y3(a){return vt(a)||Ti(a)||!!(Qp&&a&&a[Qp])}function bo(a,u){var A=typeof a;return u=u??q,!!u&&(A=="number"||A!="symbol"&&wn.test(a))&&a>-1&&a%1==0&&a<u}function Gn(a,u,A){if(!ln(A))return!1;var E=typeof u;return(E=="number"?$n(A)&&bo(u,A.length):E=="string"&&u in A)?zr(A[u],a):!1}function qd(a,u){if(vt(a))return!1;var A=typeof a;return A=="number"||A=="symbol"||A=="boolean"||a==null||cr(a)?!0:at.test(a)||!Ke.test(a)||u!=null&&a in qt(u)}function Z3(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Qd(a){var u=$l(a),A=z[u];if(typeof A!="function"||!(u in It.prototype))return!1;if(a===A)return!0;var E=Zd(A);return!!E&&a===E[0]}function G3(a){return!!Zp&&Zp in a}var V3=Ll?yo:pf;function pa(a){var u=a&&a.constructor,A=typeof u=="function"&&u.prototype||os;return a===A}function Zm(a){return a===a&&!ln(a)}function Gm(a,u){return function(A){return A==null?!1:A[a]===u&&(u!==t||a in qt(A))}}function q3(a){var u=ic(a,function(E){return A.size===f&&A.clear(),E}),A=u.cache;return u}function Q3(a,u){var A=a[1],E=u[1],P=A|E,U=P<(w|k|S),V=E==S&&A==R||E==S&&A==I&&a[7].length<=u[8]||E==(S|I)&&u[7].length<=u[8]&&A==R;if(!(U||V))return a;E&w&&(a[2]=u[2],P|=A&w?0:T);var te=u[3];if(te){var de=a[3];a[3]=de?Lm(de,te,u[4]):te,a[4]=de?Ko(a[3],h):u[4]}return te=u[5],te&&(de=a[5],a[5]=de?Nm(de,te,u[6]):te,a[6]=de?Ko(a[5],h):u[6]),te=u[7],te&&(a[7]=te),E&S&&(a[8]=a[8]==null?u[8]:zn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=P,a}function J3(a){var u=[];if(a!=null)for(var A in qt(a))u.push(A);return u}function X3(a){return jl.call(a)}function Vm(a,u,A){return u=Nn(u===t?a.length-1:u,0),function(){for(var E=arguments,P=-1,U=Nn(E.length-u,0),V=ye(U);++P<U;)V[P]=E[u+P];P=-1;for(var te=ye(u+1);++P<u;)te[P]=E[P];return te[u]=A(V),sr(a,this,te)}}function qm(a,u){return u.length<2?a:ki(a,Er(u,0,-1))}function $3(a,u){for(var A=a.length,E=zn(u.length,A),P=Xn(a);E--;){var U=u[E];a[E]=bo(U,A)?P[U]:t}return a}function Jd(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var Qm=Xm(bm),ma=px||function(a,u){return Pn.setTimeout(a,u)},Xd=Xm(v3);function Jm(a,u,A){var E=u+"";return Xd(a,H3(E,ev(z3(E),A)))}function Xm(a){var u=0,A=0;return function(){var E=Ax(),P=O-(E-A);if(A=E,P>0){if(++u>=D)return arguments[0]}else u=0;return a.apply(t,arguments)}}function tc(a,u){var A=-1,E=a.length,P=E-1;for(u=u===t?E:u;++A<u;){var U=Dd(A,P),V=a[U];a[U]=a[A],a[A]=V}return a.length=u,a}var $m=q3(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(tt,function(A,E,P,U){u.push(P?U.replace(an,"$1"):E||A)}),u});function oo(a){if(typeof a=="string"||cr(a))return a;var u=a+"";return u=="0"&&1/a==-Y?"-0":u}function Ei(a){if(a!=null){try{return Nl.call(a)}catch{}try{return a+""}catch{}}return""}function ev(a,u){return vr(Te,function(A){var E="_."+A[0];u&A[1]&&!Sl(a,E)&&a.push(E)}),a.sort()}function eg(a){if(a instanceof It)return a.clone();var u=new kr(a.__wrapped__,a.__chain__);return u.__actions__=Xn(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function tv(a,u,A){(A?Gn(a,u,A):u===t)?u=1:u=Nn(kt(u),0);var E=a==null?0:a.length;if(!E||u<1)return[];for(var P=0,U=0,V=ye(Bl(E/u));P<E;)V[U++]=Er(a,P,P+=u);return V}function nv(a){for(var u=-1,A=a==null?0:a.length,E=0,P=[];++u<A;){var U=a[u];U&&(P[E++]=U)}return P}function rv(){var a=arguments.length;if(!a)return[];for(var u=ye(a-1),A=arguments[0],E=a;E--;)u[E-1]=arguments[E];return zo(vt(A)?Xn(A):[A],Bn(u,1))}var ov=Mt(function(a,u){return pn(a)?ca(a,Bn(u,1,pn,!0)):[]}),iv=Mt(function(a,u){var A=Tr(u);return pn(A)&&(A=t),pn(a)?ca(a,Bn(u,1,pn,!0),ht(A,2)):[]}),sv=Mt(function(a,u){var A=Tr(u);return pn(A)&&(A=t),pn(a)?ca(a,Bn(u,1,pn,!0),t,A):[]});function av(a,u,A){var E=a==null?0:a.length;return E?(u=A||u===t?1:kt(u),Er(a,u<0?0:u,E)):[]}function lv(a,u,A){var E=a==null?0:a.length;return E?(u=A||u===t?1:kt(u),u=E-u,Er(a,0,u<0?0:u)):[]}function cv(a,u){return a&&a.length?Gl(a,ht(u,3),!0,!0):[]}function uv(a,u){return a&&a.length?Gl(a,ht(u,3),!0):[]}function dv(a,u,A,E){var P=a==null?0:a.length;return P?(A&&typeof A!="number"&&Gn(a,u,A)&&(A=0,E=P),r3(a,u,A,E)):[]}function tg(a,u,A){var E=a==null?0:a.length;if(!E)return-1;var P=A==null?0:kt(A);return P<0&&(P=Nn(E+P,0)),El(a,ht(u,3),P)}function ng(a,u,A){var E=a==null?0:a.length;if(!E)return-1;var P=E-1;return A!==t&&(P=kt(A),P=A<0?Nn(E+P,0):zn(P,E-1)),El(a,ht(u,3),P,!0)}function rg(a){var u=a==null?0:a.length;return u?Bn(a,1):[]}function fv(a){var u=a==null?0:a.length;return u?Bn(a,Y):[]}function hv(a,u){var A=a==null?0:a.length;return A?(u=u===t?1:kt(u),Bn(a,u)):[]}function pv(a){for(var u=-1,A=a==null?0:a.length,E={};++u<A;){var P=a[u];E[P[0]]=P[1]}return E}function og(a){return a&&a.length?a[0]:t}function mv(a,u,A){var E=a==null?0:a.length;if(!E)return-1;var P=A==null?0:kt(A);return P<0&&(P=Nn(E+P,0)),es(a,u,P)}function gv(a){var u=a==null?0:a.length;return u?Er(a,0,-1):[]}var Cv=Mt(function(a){var u=on(a,Fd);return u.length&&u[0]===a[0]?Ld(u):[]}),Av=Mt(function(a){var u=Tr(a),A=on(a,Fd);return u===Tr(A)?u=t:A.pop(),A.length&&A[0]===a[0]?Ld(A,ht(u,2)):[]}),bv=Mt(function(a){var u=Tr(a),A=on(a,Fd);return u=typeof u=="function"?u:t,u&&A.pop(),A.length&&A[0]===a[0]?Ld(A,t,u):[]});function yv(a,u){return a==null?"":gx.call(a,u)}function Tr(a){var u=a==null?0:a.length;return u?a[u-1]:t}function xv(a,u,A){var E=a==null?0:a.length;if(!E)return-1;var P=E;return A!==t&&(P=kt(A),P=P<0?Nn(E+P,0):zn(P,E-1)),u===u?ex(a,u,P):El(a,_p,P,!0)}function vv(a,u){return a&&a.length?mm(a,kt(u)):t}var wv=Mt(ig);function ig(a,u){return a&&a.length&&u&&u.length?Id(a,u):a}function kv(a,u,A){return a&&a.length&&u&&u.length?Id(a,u,ht(A,2)):a}function Sv(a,u,A){return a&&a.length&&u&&u.length?Id(a,u,t,A):a}var Ev=Ao(function(a,u){var A=a==null?0:a.length,E=Sd(a,u);return Am(a,on(u,function(P){return bo(P,A)?+P:P}).sort(Mm)),E});function Tv(a,u){var A=[];if(!(a&&a.length))return A;var E=-1,P=[],U=a.length;for(u=ht(u,3);++E<U;){var V=a[E];u(V,E,a)&&(A.push(V),P.push(E))}return Am(a,P),A}function $d(a){return a==null?a:yx.call(a)}function Mv(a,u,A){var E=a==null?0:a.length;return E?(A&&typeof A!="number"&&Gn(a,u,A)?(u=0,A=E):(u=u==null?0:kt(u),A=A===t?E:kt(A)),Er(a,u,A)):[]}function Lv(a,u){return Zl(a,u)}function Nv(a,u,A){return Pd(a,u,ht(A,2))}function jv(a,u){var A=a==null?0:a.length;if(A){var E=Zl(a,u);if(E<A&&zr(a[E],u))return E}return-1}function Rv(a,u){return Zl(a,u,!0)}function Iv(a,u,A){return Pd(a,u,ht(A,2),!0)}function Dv(a,u){var A=a==null?0:a.length;if(A){var E=Zl(a,u,!0)-1;if(zr(a[E],u))return E}return-1}function Ov(a){return a&&a.length?ym(a):[]}function Pv(a,u){return a&&a.length?ym(a,ht(u,2)):[]}function Bv(a){var u=a==null?0:a.length;return u?Er(a,1,u):[]}function _v(a,u,A){return a&&a.length?(u=A||u===t?1:kt(u),Er(a,0,u<0?0:u)):[]}function Fv(a,u,A){var E=a==null?0:a.length;return E?(u=A||u===t?1:kt(u),u=E-u,Er(a,u<0?0:u,E)):[]}function Wv(a,u){return a&&a.length?Gl(a,ht(u,3),!1,!0):[]}function zv(a,u){return a&&a.length?Gl(a,ht(u,3)):[]}var Kv=Mt(function(a){return Yo(Bn(a,1,pn,!0))}),Uv=Mt(function(a){var u=Tr(a);return pn(u)&&(u=t),Yo(Bn(a,1,pn,!0),ht(u,2))}),Hv=Mt(function(a){var u=Tr(a);return u=typeof u=="function"?u:t,Yo(Bn(a,1,pn,!0),t,u)});function Yv(a){return a&&a.length?Yo(a):[]}function Zv(a,u){return a&&a.length?Yo(a,ht(u,2)):[]}function Gv(a,u){return u=typeof u=="function"?u:t,a&&a.length?Yo(a,t,u):[]}function ef(a){if(!(a&&a.length))return[];var u=0;return a=Wo(a,function(A){if(pn(A))return u=Nn(A.length,u),!0}),Cd(u,function(A){return on(a,pd(A))})}function sg(a,u){if(!(a&&a.length))return[];var A=ef(a);return u==null?A:on(A,function(E){return sr(u,t,E)})}var Vv=Mt(function(a,u){return pn(a)?ca(a,u):[]}),qv=Mt(function(a){return _d(Wo(a,pn))}),Qv=Mt(function(a){var u=Tr(a);return pn(u)&&(u=t),_d(Wo(a,pn),ht(u,2))}),Jv=Mt(function(a){var u=Tr(a);return u=typeof u=="function"?u:t,_d(Wo(a,pn),t,u)}),Xv=Mt(ef);function $v(a,u){return km(a||[],u||[],la)}function e6(a,u){return km(a||[],u||[],fa)}var t6=Mt(function(a){var u=a.length,A=u>1?a[u-1]:t;return A=typeof A=="function"?(a.pop(),A):t,sg(a,A)});function ag(a){var u=z(a);return u.__chain__=!0,u}function n6(a,u){return u(a),a}function nc(a,u){return u(a)}var r6=Ao(function(a){var u=a.length,A=u?a[0]:0,E=this.__wrapped__,P=function(U){return Sd(U,a)};return u>1||this.__actions__.length||!(E instanceof It)||!bo(A)?this.thru(P):(E=E.slice(A,+A+(u?1:0)),E.__actions__.push({func:nc,args:[P],thisArg:t}),new kr(E,this.__chain__).thru(function(U){return u&&!U.length&&U.push(t),U}))});function o6(){return ag(this)}function i6(){return new kr(this.value(),this.__chain__)}function s6(){this.__values__===t&&(this.__values__=xg(this.value()));var a=this.__index__>=this.__values__.length,u=a?t:this.__values__[this.__index__++];return{done:a,value:u}}function a6(){return this}function l6(a){for(var u,A=this;A instanceof zl;){var E=eg(A);E.__index__=0,E.__values__=t,u?P.__wrapped__=E:u=E;var P=E;A=A.__wrapped__}return P.__wrapped__=a,u}function c6(){var a=this.__wrapped__;if(a instanceof It){var u=a;return this.__actions__.length&&(u=new It(this)),u=u.reverse(),u.__actions__.push({func:nc,args:[$d],thisArg:t}),new kr(u,this.__chain__)}return this.thru($d)}function u6(){return wm(this.__wrapped__,this.__actions__)}var d6=Vl(function(a,u,A){Ht.call(a,A)?++a[A]:go(a,A,1)});function f6(a,u,A){var E=vt(a)?Pp:n3;return A&&Gn(a,u,A)&&(u=t),E(a,ht(u,3))}function h6(a,u){var A=vt(a)?Wo:sm;return A(a,ht(u,3))}var p6=Dm(tg),m6=Dm(ng);function g6(a,u){return Bn(rc(a,u),1)}function C6(a,u){return Bn(rc(a,u),Y)}function A6(a,u,A){return A=A===t?1:kt(A),Bn(rc(a,u),A)}function lg(a,u){var A=vt(a)?vr:Ho;return A(a,ht(u,3))}function cg(a,u){var A=vt(a)?By:im;return A(a,ht(u,3))}var b6=Vl(function(a,u,A){Ht.call(a,A)?a[A].push(u):go(a,A,[u])});function y6(a,u,A,E){a=$n(a)?a:fs(a),A=A&&!E?kt(A):0;var P=a.length;return A<0&&(A=Nn(P+A,0)),lc(a)?A<=P&&a.indexOf(u,A)>-1:!!P&&es(a,u,A)>-1}var x6=Mt(function(a,u,A){var E=-1,P=typeof u=="function",U=$n(a)?ye(a.length):[];return Ho(a,function(V){U[++E]=P?sr(u,V,A):ua(V,u,A)}),U}),v6=Vl(function(a,u,A){go(a,A,u)});function rc(a,u){var A=vt(a)?on:fm;return A(a,ht(u,3))}function w6(a,u,A,E){return a==null?[]:(vt(u)||(u=u==null?[]:[u]),A=E?t:A,vt(A)||(A=A==null?[]:[A]),gm(a,u,A))}var k6=Vl(function(a,u,A){a[A?0:1].push(u)},function(){return[[],[]]});function S6(a,u,A){var E=vt(a)?fd:Wp,P=arguments.length<3;return E(a,ht(u,4),A,P,Ho)}function E6(a,u,A){var E=vt(a)?_y:Wp,P=arguments.length<3;return E(a,ht(u,4),A,P,im)}function T6(a,u){var A=vt(a)?Wo:sm;return A(a,sc(ht(u,3)))}function M6(a){var u=vt(a)?tm:y3;return u(a)}function L6(a,u,A){(A?Gn(a,u,A):u===t)?u=1:u=kt(u);var E=vt(a)?Jx:x3;return E(a,u)}function N6(a){var u=vt(a)?Xx:w3;return u(a)}function j6(a){if(a==null)return 0;if($n(a))return lc(a)?ns(a):a.length;var u=Kn(a);return u==H||u==ce?a.size:jd(a).length}function R6(a,u,A){var E=vt(a)?hd:k3;return A&&Gn(a,u,A)&&(u=t),E(a,ht(u,3))}var I6=Mt(function(a,u){if(a==null)return[];var A=u.length;return A>1&&Gn(a,u[0],u[1])?u=[]:A>2&&Gn(u[0],u[1],u[2])&&(u=[u[0]]),gm(a,Bn(u,1),[])}),oc=hx||function(){return Pn.Date.now()};function D6(a,u){if(typeof u!="function")throw new wr(l);return a=kt(a),function(){if(--a<1)return u.apply(this,arguments)}}function ug(a,u,A){return u=A?t:u,u=a&&u==null?a.length:u,Co(a,S,t,t,t,t,u)}function dg(a,u){var A;if(typeof u!="function")throw new wr(l);return a=kt(a),function(){return--a>0&&(A=u.apply(this,arguments)),a<=1&&(u=t),A}}var tf=Mt(function(a,u,A){var E=w;if(A.length){var P=Ko(A,us(tf));E|=L}return Co(a,E,u,A,P)}),fg=Mt(function(a,u,A){var E=w|k;if(A.length){var P=Ko(A,us(fg));E|=L}return Co(u,E,a,A,P)});function hg(a,u,A){u=A?t:u;var E=Co(a,R,t,t,t,t,t,u);return E.placeholder=hg.placeholder,E}function pg(a,u,A){u=A?t:u;var E=Co(a,N,t,t,t,t,t,u);return E.placeholder=pg.placeholder,E}function mg(a,u,A){var E,P,U,V,te,de,je=0,Ie=!1,De=!1,Ge=!0;if(typeof a!="function")throw new wr(l);u=Mr(u)||0,ln(A)&&(Ie=!!A.leading,De="maxWait"in A,U=De?Nn(Mr(A.maxWait)||0,u):U,Ge="trailing"in A?!!A.trailing:Ge);function nt(mn){var Kr=E,vo=P;return E=P=t,je=mn,V=a.apply(vo,Kr),V}function pt(mn){return je=mn,te=ma(Rt,u),Ie?nt(mn):V}function Et(mn){var Kr=mn-de,vo=mn-je,Dg=u-Kr;return De?zn(Dg,U-vo):Dg}function mt(mn){var Kr=mn-de,vo=mn-je;return de===t||Kr>=u||Kr<0||De&&vo>=U}function Rt(){var mn=oc();if(mt(mn))return Pt(mn);te=ma(Rt,Et(mn))}function Pt(mn){return te=t,Ge&&E?nt(mn):(E=P=t,V)}function ur(){te!==t&&Sm(te),je=0,E=de=P=te=t}function Vn(){return te===t?V:Pt(oc())}function dr(){var mn=oc(),Kr=mt(mn);if(E=arguments,P=this,de=mn,Kr){if(te===t)return pt(de);if(De)return Sm(te),te=ma(Rt,u),nt(de)}return te===t&&(te=ma(Rt,u)),V}return dr.cancel=ur,dr.flush=Vn,dr}var O6=Mt(function(a,u){return om(a,1,u)}),P6=Mt(function(a,u,A){return om(a,Mr(u)||0,A)});function B6(a){return Co(a,j)}function ic(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new wr(l);var A=function(){var E=arguments,P=u?u.apply(this,E):E[0],U=A.cache;if(U.has(P))return U.get(P);var V=a.apply(this,E);return A.cache=U.set(P,V)||U,V};return A.cache=new(ic.Cache||mo),A}ic.Cache=mo;function sc(a){if(typeof a!="function")throw new wr(l);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function _6(a){return dg(2,a)}var F6=S3(function(a,u){u=u.length==1&&vt(u[0])?on(u[0],ar(ht())):on(Bn(u,1),ar(ht()));var A=u.length;return Mt(function(E){for(var P=-1,U=zn(E.length,A);++P<U;)E[P]=u[P].call(this,E[P]);return sr(a,this,E)})}),nf=Mt(function(a,u){var A=Ko(u,us(nf));return Co(a,L,t,u,A)}),gg=Mt(function(a,u){var A=Ko(u,us(gg));return Co(a,M,t,u,A)}),W6=Ao(function(a,u){return Co(a,I,t,t,t,u)});function z6(a,u){if(typeof a!="function")throw new wr(l);return u=u===t?u:kt(u),Mt(a,u)}function K6(a,u){if(typeof a!="function")throw new wr(l);return u=u==null?0:Nn(kt(u),0),Mt(function(A){var E=A[u],P=Go(A,0,u);return E&&zo(P,E),sr(a,this,P)})}function U6(a,u,A){var E=!0,P=!0;if(typeof a!="function")throw new wr(l);return ln(A)&&(E="leading"in A?!!A.leading:E,P="trailing"in A?!!A.trailing:P),mg(a,u,{leading:E,maxWait:u,trailing:P})}function H6(a){return ug(a,1)}function Y6(a,u){return nf(Wd(u),a)}function Z6(){if(!arguments.length)return[];var a=arguments[0];return vt(a)?a:[a]}function G6(a){return Sr(a,b)}function V6(a,u){return u=typeof u=="function"?u:t,Sr(a,b,u)}function q6(a){return Sr(a,g|b)}function Q6(a,u){return u=typeof u=="function"?u:t,Sr(a,g|b,u)}function J6(a,u){return u==null||rm(a,u,Rn(u))}function zr(a,u){return a===u||a!==a&&u!==u}var X6=Xl(Md),$6=Xl(function(a,u){return a>=u}),Ti=cm((function(){return arguments})())?cm:function(a){return un(a)&&Ht.call(a,"callee")&&!qp.call(a,"callee")},vt=ye.isArray,e4=Np?ar(Np):l3;function $n(a){return a!=null&&ac(a.length)&&!yo(a)}function pn(a){return un(a)&&$n(a)}function t4(a){return a===!0||a===!1||un(a)&&Zn(a)==ae}var Vo=mx||pf,n4=jp?ar(jp):c3;function r4(a){return un(a)&&a.nodeType===1&&!ga(a)}function o4(a){if(a==null)return!0;if($n(a)&&(vt(a)||typeof a=="string"||typeof a.splice=="function"||Vo(a)||ds(a)||Ti(a)))return!a.length;var u=Kn(a);if(u==H||u==ce)return!a.size;if(pa(a))return!jd(a).length;for(var A in a)if(Ht.call(a,A))return!1;return!0}function i4(a,u){return da(a,u)}function s4(a,u,A){A=typeof A=="function"?A:t;var E=A?A(a,u):t;return E===t?da(a,u,t,A):!!E}function rf(a){if(!un(a))return!1;var u=Zn(a);return u==G||u==Ce||typeof a.message=="string"&&typeof a.name=="string"&&!ga(a)}function a4(a){return typeof a=="number"&&Jp(a)}function yo(a){if(!ln(a))return!1;var u=Zn(a);return u==he||u==oe||u==X||u==Re}function Cg(a){return typeof a=="number"&&a==kt(a)}function ac(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=q}function ln(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function un(a){return a!=null&&typeof a=="object"}var Ag=Rp?ar(Rp):d3;function l4(a,u){return a===u||Nd(a,u,Gd(u))}function c4(a,u,A){return A=typeof A=="function"?A:t,Nd(a,u,Gd(u),A)}function u4(a){return bg(a)&&a!=+a}function d4(a){if(V3(a))throw new yt(i);return um(a)}function f4(a){return a===null}function h4(a){return a==null}function bg(a){return typeof a=="number"||un(a)&&Zn(a)==Z}function ga(a){if(!un(a)||Zn(a)!=fe)return!1;var u=Dl(a);if(u===null)return!0;var A=Ht.call(u,"constructor")&&u.constructor;return typeof A=="function"&&A instanceof A&&Nl.call(A)==cx}var of=Ip?ar(Ip):f3;function p4(a){return Cg(a)&&a>=-q&&a<=q}var yg=Dp?ar(Dp):h3;function lc(a){return typeof a=="string"||!vt(a)&&un(a)&&Zn(a)==Le}function cr(a){return typeof a=="symbol"||un(a)&&Zn(a)==Ze}var ds=Op?ar(Op):p3;function m4(a){return a===t}function g4(a){return un(a)&&Kn(a)==Ct}function C4(a){return un(a)&&Zn(a)==Wt}var A4=Xl(Rd),b4=Xl(function(a,u){return a<=u});function xg(a){if(!a)return[];if($n(a))return lc(a)?Fr(a):Xn(a);if(ra&&a[ra])return Jy(a[ra]());var u=Kn(a),A=u==H?bd:u==ce?Tl:fs;return A(a)}function xo(a){if(!a)return a===0?a:0;if(a=Mr(a),a===Y||a===-Y){var u=a<0?-1:1;return u*ee}return a===a?a:0}function kt(a){var u=xo(a),A=u%1;return u===u?A?u-A:u:0}function vg(a){return a?wi(kt(a),0,J):0}function Mr(a){if(typeof a=="number")return a;if(cr(a))return Q;if(ln(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=ln(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=zp(a);var A=_r.test(a);return A||wt.test(a)?Dy(a.slice(2),A?2:8):Xt.test(a)?Q:+a}function wg(a){return ro(a,er(a))}function y4(a){return a?wi(kt(a),-q,q):a===0?a:0}function Yt(a){return a==null?"":lr(a)}var x4=ls(function(a,u){if(pa(u)||$n(u)){ro(u,Rn(u),a);return}for(var A in u)Ht.call(u,A)&&la(a,A,u[A])}),kg=ls(function(a,u){ro(u,er(u),a)}),cc=ls(function(a,u,A,E){ro(u,er(u),a,E)}),v4=ls(function(a,u,A,E){ro(u,Rn(u),a,E)}),w4=Ao(Sd);function k4(a,u){var A=as(a);return u==null?A:nm(A,u)}var S4=Mt(function(a,u){a=qt(a);var A=-1,E=u.length,P=E>2?u[2]:t;for(P&&Gn(u[0],u[1],P)&&(E=1);++A<E;)for(var U=u[A],V=er(U),te=-1,de=V.length;++te<de;){var je=V[te],Ie=a[je];(Ie===t||zr(Ie,os[je])&&!Ht.call(a,je))&&(a[je]=U[je])}return a}),E4=Mt(function(a){return a.push(t,zm),sr(Sg,t,a)});function T4(a,u){return Bp(a,ht(u,3),no)}function M4(a,u){return Bp(a,ht(u,3),Td)}function L4(a,u){return a==null?a:Ed(a,ht(u,3),er)}function N4(a,u){return a==null?a:am(a,ht(u,3),er)}function j4(a,u){return a&&no(a,ht(u,3))}function R4(a,u){return a&&Td(a,ht(u,3))}function I4(a){return a==null?[]:Hl(a,Rn(a))}function D4(a){return a==null?[]:Hl(a,er(a))}function sf(a,u,A){var E=a==null?t:ki(a,u);return E===t?A:E}function O4(a,u){return a!=null&&Hm(a,u,o3)}function af(a,u){return a!=null&&Hm(a,u,i3)}var P4=Pm(function(a,u,A){u!=null&&typeof u.toString!="function"&&(u=jl.call(u)),a[u]=A},cf(tr)),B4=Pm(function(a,u,A){u!=null&&typeof u.toString!="function"&&(u=jl.call(u)),Ht.call(a,u)?a[u].push(A):a[u]=[A]},ht),_4=Mt(ua);function Rn(a){return $n(a)?em(a):jd(a)}function er(a){return $n(a)?em(a,!0):m3(a)}function F4(a,u){var A={};return u=ht(u,3),no(a,function(E,P,U){go(A,u(E,P,U),E)}),A}function W4(a,u){var A={};return u=ht(u,3),no(a,function(E,P,U){go(A,P,u(E,P,U))}),A}var z4=ls(function(a,u,A){Yl(a,u,A)}),Sg=ls(function(a,u,A,E){Yl(a,u,A,E)}),K4=Ao(function(a,u){var A={};if(a==null)return A;var E=!1;u=on(u,function(U){return U=Zo(U,a),E||(E=U.length>1),U}),ro(a,Yd(a),A),E&&(A=Sr(A,g|C|b,P3));for(var P=u.length;P--;)Bd(A,u[P]);return A});function U4(a,u){return Eg(a,sc(ht(u)))}var H4=Ao(function(a,u){return a==null?{}:C3(a,u)});function Eg(a,u){if(a==null)return{};var A=on(Yd(a),function(E){return[E]});return u=ht(u),Cm(a,A,function(E,P){return u(E,P[0])})}function Y4(a,u,A){u=Zo(u,a);var E=-1,P=u.length;for(P||(P=1,a=t);++E<P;){var U=a==null?t:a[oo(u[E])];U===t&&(E=P,U=A),a=yo(U)?U.call(a):U}return a}function Z4(a,u,A){return a==null?a:fa(a,u,A)}function G4(a,u,A,E){return E=typeof E=="function"?E:t,a==null?a:fa(a,u,A,E)}var Tg=Fm(Rn),Mg=Fm(er);function V4(a,u,A){var E=vt(a),P=E||Vo(a)||ds(a);if(u=ht(u,4),A==null){var U=a&&a.constructor;P?A=E?new U:[]:ln(a)?A=yo(U)?as(Dl(a)):{}:A={}}return(P?vr:no)(a,function(V,te,de){return u(A,V,te,de)}),A}function q4(a,u){return a==null?!0:Bd(a,u)}function Q4(a,u,A){return a==null?a:vm(a,u,Wd(A))}function J4(a,u,A,E){return E=typeof E=="function"?E:t,a==null?a:vm(a,u,Wd(A),E)}function fs(a){return a==null?[]:Ad(a,Rn(a))}function X4(a){return a==null?[]:Ad(a,er(a))}function $4(a,u,A){return A===t&&(A=u,u=t),A!==t&&(A=Mr(A),A=A===A?A:0),u!==t&&(u=Mr(u),u=u===u?u:0),wi(Mr(a),u,A)}function ew(a,u,A){return u=xo(u),A===t?(A=u,u=0):A=xo(A),a=Mr(a),s3(a,u,A)}function tw(a,u,A){if(A&&typeof A!="boolean"&&Gn(a,u,A)&&(u=A=t),A===t&&(typeof u=="boolean"?(A=u,u=t):typeof a=="boolean"&&(A=a,a=t)),a===t&&u===t?(a=0,u=1):(a=xo(a),u===t?(u=a,a=0):u=xo(u)),a>u){var E=a;a=u,u=E}if(A||a%1||u%1){var P=Xp();return zn(a+P*(u-a+Iy("1e-"+((P+"").length-1))),u)}return Dd(a,u)}var nw=cs(function(a,u,A){return u=u.toLowerCase(),a+(A?Lg(u):u)});function Lg(a){return lf(Yt(a).toLowerCase())}function Ng(a){return a=Yt(a),a&&a.replace(ho,Zy).replace(wy,"")}function rw(a,u,A){a=Yt(a),u=lr(u);var E=a.length;A=A===t?E:wi(kt(A),0,E);var P=A;return A-=u.length,A>=0&&a.slice(A,P)==u}function ow(a){return a=Yt(a),a&&_e.test(a)?a.replace(Se,Gy):a}function iw(a){return a=Yt(a),a&&qe.test(a)?a.replace(st,"\\$&"):a}var sw=cs(function(a,u,A){return a+(A?"-":"")+u.toLowerCase()}),aw=cs(function(a,u,A){return a+(A?" ":"")+u.toLowerCase()}),lw=Im("toLowerCase");function cw(a,u,A){a=Yt(a),u=kt(u);var E=u?ns(a):0;if(!u||E>=u)return a;var P=(u-E)/2;return Jl(_l(P),A)+a+Jl(Bl(P),A)}function uw(a,u,A){a=Yt(a),u=kt(u);var E=u?ns(a):0;return u&&E<u?a+Jl(u-E,A):a}function dw(a,u,A){a=Yt(a),u=kt(u);var E=u?ns(a):0;return u&&E<u?Jl(u-E,A)+a:a}function fw(a,u,A){return A||u==null?u=0:u&&(u=+u),bx(Yt(a).replace(ut,""),u||0)}function hw(a,u,A){return(A?Gn(a,u,A):u===t)?u=1:u=kt(u),Od(Yt(a),u)}function pw(){var a=arguments,u=Yt(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var mw=cs(function(a,u,A){return a+(A?"_":"")+u.toLowerCase()});function gw(a,u,A){return A&&typeof A!="number"&&Gn(a,u,A)&&(u=A=t),A=A===t?J:A>>>0,A?(a=Yt(a),a&&(typeof u=="string"||u!=null&&!of(u))&&(u=lr(u),!u&&ts(a))?Go(Fr(a),0,A):a.split(u,A)):[]}var Cw=cs(function(a,u,A){return a+(A?" ":"")+lf(u)});function Aw(a,u,A){return a=Yt(a),A=A==null?0:wi(kt(A),0,a.length),u=lr(u),a.slice(A,A+u.length)==u}function bw(a,u,A){var E=z.templateSettings;A&&Gn(a,u,A)&&(u=t),a=Yt(a),u=cc({},u,E,Wm);var P=cc({},u.imports,E.imports,Wm),U=Rn(P),V=Ad(P,U),te,de,je=0,Ie=u.interpolate||Wn,De="__p += '",Ge=yd((u.escape||Wn).source+"|"+Ie.source+"|"+(Ie===et?Ut:Wn).source+"|"+(u.evaluate||Wn).source+"|$","g"),nt="//# sourceURL="+(Ht.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++My+"]")+`
|
|
216
|
-
`;a.replace(Ge,function(mt,Rt,Pt,ur,Vn,dr){return Pt||(Pt=ur),De+=a.slice(je,dr).replace(vl,Vy),Rt&&(te=!0,De+=`' +
|
|
217
|
-
__e(`+Rt+`) +
|
|
218
|
-
'`),Vn&&(de=!0,De+=`';
|
|
219
|
-
`+Vn+`;
|
|
220
|
-
__p += '`),Pt&&(De+=`' +
|
|
221
|
-
((__t = (`+Pt+`)) == null ? '' : __t) +
|
|
222
|
-
'`),je=dr+mt.length,mt}),De+=`';
|
|
223
|
-
`;var pt=Ht.call(u,"variable")&&u.variable;if(!pt)De=`with (obj) {
|
|
224
|
-
`+De+`
|
|
225
|
-
}
|
|
226
|
-
`;else if(Kt.test(pt))throw new yt(c);De=(de?De.replace(it,""):De).replace(Je,"$1").replace(ct,"$1;"),De="function("+(pt||"obj")+`) {
|
|
227
|
-
`+(pt?"":`obj || (obj = {});
|
|
228
|
-
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(de?`, __j = Array.prototype.join;
|
|
229
|
-
function print() { __p += __j.call(arguments, '') }
|
|
230
|
-
`:`;
|
|
231
|
-
`)+De+`return __p
|
|
232
|
-
}`;var Et=Rg(function(){return zt(U,nt+"return "+De).apply(t,V)});if(Et.source=De,rf(Et))throw Et;return Et}function yw(a){return Yt(a).toLowerCase()}function xw(a){return Yt(a).toUpperCase()}function vw(a,u,A){if(a=Yt(a),a&&(A||u===t))return zp(a);if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Fr(u),U=Kp(E,P),V=Up(E,P)+1;return Go(E,U,V).join("")}function ww(a,u,A){if(a=Yt(a),a&&(A||u===t))return a.slice(0,Yp(a)+1);if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Up(E,Fr(u))+1;return Go(E,0,P).join("")}function kw(a,u,A){if(a=Yt(a),a&&(A||u===t))return a.replace(ut,"");if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Kp(E,Fr(u));return Go(E,P).join("")}function Sw(a,u){var A=B,E=_;if(ln(u)){var P="separator"in u?u.separator:P;A="length"in u?kt(u.length):A,E="omission"in u?lr(u.omission):E}a=Yt(a);var U=a.length;if(ts(a)){var V=Fr(a);U=V.length}if(A>=U)return a;var te=A-ns(E);if(te<1)return E;var de=V?Go(V,0,te).join(""):a.slice(0,te);if(P===t)return de+E;if(V&&(te+=de.length-te),of(P)){if(a.slice(te).search(P)){var je,Ie=de;for(P.global||(P=yd(P.source,Yt(Vt.exec(P))+"g")),P.lastIndex=0;je=P.exec(Ie);)var De=je.index;de=de.slice(0,De===t?te:De)}}else if(a.indexOf(lr(P),te)!=te){var Ge=de.lastIndexOf(P);Ge>-1&&(de=de.slice(0,Ge))}return de+E}function Ew(a){return a=Yt(a),a&&ze.test(a)?a.replace(be,tx):a}var Tw=cs(function(a,u,A){return a+(A?" ":"")+u.toUpperCase()}),lf=Im("toUpperCase");function jg(a,u,A){return a=Yt(a),u=A?t:u,u===t?Qy(a)?ox(a):zy(a):a.match(u)||[]}var Rg=Mt(function(a,u){try{return sr(a,t,u)}catch(A){return rf(A)?A:new yt(A)}}),Mw=Ao(function(a,u){return vr(u,function(A){A=oo(A),go(a,A,tf(a[A],a))}),a});function Lw(a){var u=a==null?0:a.length,A=ht();return a=u?on(a,function(E){if(typeof E[1]!="function")throw new wr(l);return[A(E[0]),E[1]]}):[],Mt(function(E){for(var P=-1;++P<u;){var U=a[P];if(sr(U[0],this,E))return sr(U[1],this,E)}})}function Nw(a){return t3(Sr(a,g))}function cf(a){return function(){return a}}function jw(a,u){return a==null||a!==a?u:a}var Rw=Om(),Iw=Om(!0);function tr(a){return a}function uf(a){return dm(typeof a=="function"?a:Sr(a,g))}function Dw(a){return hm(Sr(a,g))}function Ow(a,u){return pm(a,Sr(u,g))}var Pw=Mt(function(a,u){return function(A){return ua(A,a,u)}}),Bw=Mt(function(a,u){return function(A){return ua(a,A,u)}});function df(a,u,A){var E=Rn(u),P=Hl(u,E);A==null&&!(ln(u)&&(P.length||!E.length))&&(A=u,u=a,a=this,P=Hl(u,Rn(u)));var U=!(ln(A)&&"chain"in A)||!!A.chain,V=yo(a);return vr(P,function(te){var de=u[te];a[te]=de,V&&(a.prototype[te]=function(){var je=this.__chain__;if(U||je){var Ie=a(this.__wrapped__),De=Ie.__actions__=Xn(this.__actions__);return De.push({func:de,args:arguments,thisArg:a}),Ie.__chain__=je,Ie}return de.apply(a,zo([this.value()],arguments))})}),a}function _w(){return Pn._===this&&(Pn._=ux),this}function ff(){}function Fw(a){return a=kt(a),Mt(function(u){return mm(u,a)})}var Ww=Kd(on),zw=Kd(Pp),Kw=Kd(hd);function Ig(a){return qd(a)?pd(oo(a)):A3(a)}function Uw(a){return function(u){return a==null?t:ki(a,u)}}var Hw=Bm(),Yw=Bm(!0);function hf(){return[]}function pf(){return!1}function Zw(){return{}}function Gw(){return""}function Vw(){return!0}function qw(a,u){if(a=kt(a),a<1||a>q)return[];var A=J,E=zn(a,J);u=ht(u),a-=J;for(var P=Cd(E,u);++A<a;)u(A);return P}function Qw(a){return vt(a)?on(a,oo):cr(a)?[a]:Xn($m(Yt(a)))}function Jw(a){var u=++lx;return Yt(a)+u}var Xw=Ql(function(a,u){return a+u},0),$w=Ud("ceil"),e9=Ql(function(a,u){return a/u},1),t9=Ud("floor");function n9(a){return a&&a.length?Ul(a,tr,Md):t}function r9(a,u){return a&&a.length?Ul(a,ht(u,2),Md):t}function o9(a){return Fp(a,tr)}function i9(a,u){return Fp(a,ht(u,2))}function s9(a){return a&&a.length?Ul(a,tr,Rd):t}function a9(a,u){return a&&a.length?Ul(a,ht(u,2),Rd):t}var l9=Ql(function(a,u){return a*u},1),c9=Ud("round"),u9=Ql(function(a,u){return a-u},0);function d9(a){return a&&a.length?gd(a,tr):0}function f9(a,u){return a&&a.length?gd(a,ht(u,2)):0}return z.after=D6,z.ary=ug,z.assign=x4,z.assignIn=kg,z.assignInWith=cc,z.assignWith=v4,z.at=w4,z.before=dg,z.bind=tf,z.bindAll=Mw,z.bindKey=fg,z.castArray=Z6,z.chain=ag,z.chunk=tv,z.compact=nv,z.concat=rv,z.cond=Lw,z.conforms=Nw,z.constant=cf,z.countBy=d6,z.create=k4,z.curry=hg,z.curryRight=pg,z.debounce=mg,z.defaults=S4,z.defaultsDeep=E4,z.defer=O6,z.delay=P6,z.difference=ov,z.differenceBy=iv,z.differenceWith=sv,z.drop=av,z.dropRight=lv,z.dropRightWhile=cv,z.dropWhile=uv,z.fill=dv,z.filter=h6,z.flatMap=g6,z.flatMapDeep=C6,z.flatMapDepth=A6,z.flatten=rg,z.flattenDeep=fv,z.flattenDepth=hv,z.flip=B6,z.flow=Rw,z.flowRight=Iw,z.fromPairs=pv,z.functions=I4,z.functionsIn=D4,z.groupBy=b6,z.initial=gv,z.intersection=Cv,z.intersectionBy=Av,z.intersectionWith=bv,z.invert=P4,z.invertBy=B4,z.invokeMap=x6,z.iteratee=uf,z.keyBy=v6,z.keys=Rn,z.keysIn=er,z.map=rc,z.mapKeys=F4,z.mapValues=W4,z.matches=Dw,z.matchesProperty=Ow,z.memoize=ic,z.merge=z4,z.mergeWith=Sg,z.method=Pw,z.methodOf=Bw,z.mixin=df,z.negate=sc,z.nthArg=Fw,z.omit=K4,z.omitBy=U4,z.once=_6,z.orderBy=w6,z.over=Ww,z.overArgs=F6,z.overEvery=zw,z.overSome=Kw,z.partial=nf,z.partialRight=gg,z.partition=k6,z.pick=H4,z.pickBy=Eg,z.property=Ig,z.propertyOf=Uw,z.pull=wv,z.pullAll=ig,z.pullAllBy=kv,z.pullAllWith=Sv,z.pullAt=Ev,z.range=Hw,z.rangeRight=Yw,z.rearg=W6,z.reject=T6,z.remove=Tv,z.rest=z6,z.reverse=$d,z.sampleSize=L6,z.set=Z4,z.setWith=G4,z.shuffle=N6,z.slice=Mv,z.sortBy=I6,z.sortedUniq=Ov,z.sortedUniqBy=Pv,z.split=gw,z.spread=K6,z.tail=Bv,z.take=_v,z.takeRight=Fv,z.takeRightWhile=Wv,z.takeWhile=zv,z.tap=n6,z.throttle=U6,z.thru=nc,z.toArray=xg,z.toPairs=Tg,z.toPairsIn=Mg,z.toPath=Qw,z.toPlainObject=wg,z.transform=V4,z.unary=H6,z.union=Kv,z.unionBy=Uv,z.unionWith=Hv,z.uniq=Yv,z.uniqBy=Zv,z.uniqWith=Gv,z.unset=q4,z.unzip=ef,z.unzipWith=sg,z.update=Q4,z.updateWith=J4,z.values=fs,z.valuesIn=X4,z.without=Vv,z.words=jg,z.wrap=Y6,z.xor=qv,z.xorBy=Qv,z.xorWith=Jv,z.zip=Xv,z.zipObject=$v,z.zipObjectDeep=e6,z.zipWith=t6,z.entries=Tg,z.entriesIn=Mg,z.extend=kg,z.extendWith=cc,df(z,z),z.add=Xw,z.attempt=Rg,z.camelCase=nw,z.capitalize=Lg,z.ceil=$w,z.clamp=$4,z.clone=G6,z.cloneDeep=q6,z.cloneDeepWith=Q6,z.cloneWith=V6,z.conformsTo=J6,z.deburr=Ng,z.defaultTo=jw,z.divide=e9,z.endsWith=rw,z.eq=zr,z.escape=ow,z.escapeRegExp=iw,z.every=f6,z.find=p6,z.findIndex=tg,z.findKey=T4,z.findLast=m6,z.findLastIndex=ng,z.findLastKey=M4,z.floor=t9,z.forEach=lg,z.forEachRight=cg,z.forIn=L4,z.forInRight=N4,z.forOwn=j4,z.forOwnRight=R4,z.get=sf,z.gt=X6,z.gte=$6,z.has=O4,z.hasIn=af,z.head=og,z.identity=tr,z.includes=y6,z.indexOf=mv,z.inRange=ew,z.invoke=_4,z.isArguments=Ti,z.isArray=vt,z.isArrayBuffer=e4,z.isArrayLike=$n,z.isArrayLikeObject=pn,z.isBoolean=t4,z.isBuffer=Vo,z.isDate=n4,z.isElement=r4,z.isEmpty=o4,z.isEqual=i4,z.isEqualWith=s4,z.isError=rf,z.isFinite=a4,z.isFunction=yo,z.isInteger=Cg,z.isLength=ac,z.isMap=Ag,z.isMatch=l4,z.isMatchWith=c4,z.isNaN=u4,z.isNative=d4,z.isNil=h4,z.isNull=f4,z.isNumber=bg,z.isObject=ln,z.isObjectLike=un,z.isPlainObject=ga,z.isRegExp=of,z.isSafeInteger=p4,z.isSet=yg,z.isString=lc,z.isSymbol=cr,z.isTypedArray=ds,z.isUndefined=m4,z.isWeakMap=g4,z.isWeakSet=C4,z.join=yv,z.kebabCase=sw,z.last=Tr,z.lastIndexOf=xv,z.lowerCase=aw,z.lowerFirst=lw,z.lt=A4,z.lte=b4,z.max=n9,z.maxBy=r9,z.mean=o9,z.meanBy=i9,z.min=s9,z.minBy=a9,z.stubArray=hf,z.stubFalse=pf,z.stubObject=Zw,z.stubString=Gw,z.stubTrue=Vw,z.multiply=l9,z.nth=vv,z.noConflict=_w,z.noop=ff,z.now=oc,z.pad=cw,z.padEnd=uw,z.padStart=dw,z.parseInt=fw,z.random=tw,z.reduce=S6,z.reduceRight=E6,z.repeat=hw,z.replace=pw,z.result=Y4,z.round=c9,z.runInContext=le,z.sample=M6,z.size=j6,z.snakeCase=mw,z.some=R6,z.sortedIndex=Lv,z.sortedIndexBy=Nv,z.sortedIndexOf=jv,z.sortedLastIndex=Rv,z.sortedLastIndexBy=Iv,z.sortedLastIndexOf=Dv,z.startCase=Cw,z.startsWith=Aw,z.subtract=u9,z.sum=d9,z.sumBy=f9,z.template=bw,z.times=qw,z.toFinite=xo,z.toInteger=kt,z.toLength=vg,z.toLower=yw,z.toNumber=Mr,z.toSafeInteger=y4,z.toString=Yt,z.toUpper=xw,z.trim=vw,z.trimEnd=ww,z.trimStart=kw,z.truncate=Sw,z.unescape=Ew,z.uniqueId=Jw,z.upperCase=Tw,z.upperFirst=lf,z.each=lg,z.eachRight=cg,z.first=og,df(z,(function(){var a={};return no(z,function(u,A){Ht.call(z.prototype,A)||(a[A]=u)}),a})(),{chain:!1}),z.VERSION=r,vr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){z[a].placeholder=z}),vr(["drop","take"],function(a,u){It.prototype[a]=function(A){A=A===t?1:Nn(kt(A),0);var E=this.__filtered__&&!u?new It(this):this.clone();return E.__filtered__?E.__takeCount__=zn(A,E.__takeCount__):E.__views__.push({size:zn(A,J),type:a+(E.__dir__<0?"Right":"")}),E},It.prototype[a+"Right"]=function(A){return this.reverse()[a](A).reverse()}}),vr(["filter","map","takeWhile"],function(a,u){var A=u+1,E=A==W||A==F;It.prototype[a]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:ht(P,3),type:A}),U.__filtered__=U.__filtered__||E,U}}),vr(["head","last"],function(a,u){var A="take"+(u?"Right":"");It.prototype[a]=function(){return this[A](1).value()[0]}}),vr(["initial","tail"],function(a,u){var A="drop"+(u?"":"Right");It.prototype[a]=function(){return this.__filtered__?new It(this):this[A](1)}}),It.prototype.compact=function(){return this.filter(tr)},It.prototype.find=function(a){return this.filter(a).head()},It.prototype.findLast=function(a){return this.reverse().find(a)},It.prototype.invokeMap=Mt(function(a,u){return typeof a=="function"?new It(this):this.map(function(A){return ua(A,a,u)})}),It.prototype.reject=function(a){return this.filter(sc(ht(a)))},It.prototype.slice=function(a,u){a=kt(a);var A=this;return A.__filtered__&&(a>0||u<0)?new It(A):(a<0?A=A.takeRight(-a):a&&(A=A.drop(a)),u!==t&&(u=kt(u),A=u<0?A.dropRight(-u):A.take(u-a)),A)},It.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},It.prototype.toArray=function(){return this.take(J)},no(It.prototype,function(a,u){var A=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),P=z[E?"take"+(u=="last"?"Right":""):u],U=E||/^find/.test(u);P&&(z.prototype[u]=function(){var V=this.__wrapped__,te=E?[1]:arguments,de=V instanceof It,je=te[0],Ie=de||vt(V),De=function(Rt){var Pt=P.apply(z,zo([Rt],te));return E&&Ge?Pt[0]:Pt};Ie&&A&&typeof je=="function"&&je.length!=1&&(de=Ie=!1);var Ge=this.__chain__,nt=!!this.__actions__.length,pt=U&&!Ge,Et=de&&!nt;if(!U&&Ie){V=Et?V:new It(this);var mt=a.apply(V,te);return mt.__actions__.push({func:nc,args:[De],thisArg:t}),new kr(mt,Ge)}return pt&&Et?a.apply(this,te):(mt=this.thru(De),pt?E?mt.value()[0]:mt.value():mt)})}),vr(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ml[a],A=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);z.prototype[a]=function(){var P=arguments;if(E&&!this.__chain__){var U=this.value();return u.apply(vt(U)?U:[],P)}return this[A](function(V){return u.apply(vt(V)?V:[],P)})}}),no(It.prototype,function(a,u){var A=z[u];if(A){var E=A.name+"";Ht.call(ss,E)||(ss[E]=[]),ss[E].push({name:u,func:A})}}),ss[ql(t,k).name]=[{name:"wrapper",func:t}],It.prototype.clone=Ex,It.prototype.reverse=Tx,It.prototype.value=Mx,z.prototype.at=r6,z.prototype.chain=o6,z.prototype.commit=i6,z.prototype.next=s6,z.prototype.plant=l6,z.prototype.reverse=c6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=u6,z.prototype.first=z.prototype.head,ra&&(z.prototype[ra]=a6),z}),rs=ix();bi?((bi.exports=rs)._=rs,cd._=rs):Pn._=rs}).call(hD)})(ka,ka.exports)),ka.exports}var mD=pD();function gD(e){if(!e)return window;let n=e;for(;n;){if(n===document.body||n===document.documentElement)return window;const r=getComputedStyle(n).overflowY;if((r==="auto"||r==="scroll"||r==="overlay")&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return window}function CD(e,n){let t=150;const{clientY:r}=e;if(n===window){const o=window.innerHeight;r<t?window.scrollBy(0,Math.max(-15,(r-t)/15)):r>o-t&&window.scrollBy(0,Math.min(15,(r-(o-t))/15))}else{t=100;const o=n.getBoundingClientRect();r<o.top+t?n.scrollTop-=5:r>o.bottom-t&&(n.scrollTop+=5)}}const AD=mD.throttle((e,n)=>{e.preventDefault(),CD(e,n)},16);let Lc=null;function bD(e){return e?e.classList.contains("dsd__theme__table-scrollable-wrapper")?e.firstElementChild:e:null}function yD(e,n,t){const r=m.useRef(null),o=m.useRef(null),i=m.useRef(!1),l=m.useRef(!1),c=m.useRef(null),d=m.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),f=m.useRef(null),h=m.useRef(()=>{}),g=m.useCallback(ie=>{h.current(ie)},[]),[C,b]=m.useState(null),{disable:y}=m.useContext(ft),[x,w]=m.useState(!1),k=window.matchMedia("(pointer: coarse)").matches,[T,R]=m.useState({opened:!1}),[N,L]=m.useState(""),[M,S]=m.useState(null),[I,j]=m.useState(!1),[B,_]=m.useState({left:!1,right:!1}),[D,O]=m.useState(null),{t:W}=Ue.useTranslation(),K=ea(ie=>{const X=ie.target;l.current||Mc(X)&&(WE(X)||e.read(()=>{var he;const ae=X.className.includes("content-editable-wrapper"),pe=ae?p.$getRoot():p.$getNearestNodeFromDOMNode(X),{htmlElement:Ce,lexicalNode:G}=Vg(pe,e,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},ie);if((G==null?void 0:G.__type)==="callout"||(G==null?void 0:G.__type)==="callout-image"||((he=G==null?void 0:G.getParent())==null?void 0:he.__type)==="callout"&&(G==null?void 0:G.getPreviousSibling())===null){b(null);return}if(!(ae&&G instanceof $r||ae&&!G)&&G!=null&&G.__key){if(G.__type==="layout-container"||G.__type==="layout-item"||G.__type==="collapsible-content"){b(null);return}Ce&&(d.current.htmlElement=Ce,d.current.lexicalNode=G),(G==null?void 0:G.__type)==="collapsible-title"&&(d.current.htmlElement=(Ce==null?void 0:Ce.parentElement)||Ce,d.current.lexicalNode=G.getParent()),S(null),b(d.current.htmlElement)}}))},20,50);m.useEffect(()=>()=>{Lc=null},[]),m.useEffect(()=>{function ie(){l.current||b(null)}function X(pe){if(!i.current)return!1;const[Ce]=fn.eventFiles(pe);if(Ce)return!1;const{target:G,dataTransfer:he}=pe,oe=(he==null?void 0:he.getData(L0))||"";if(!oe)return!1;pe.preventDefault(),e.update(()=>{var Le;let H=p.$getNodeByKey(oe);if(!H||!(Mc(G)||G.closest(".resizable-container")))return!1;const{htmlElement:Z,lexicalNode:re,isBottom:fe}=d.current;let ge=re,Re=null;if(ge!=null&&ge.__key&&(Re=Z),!Re||!ge)return!1;if(ge===H)return!0;if(o.current&&OE(o.current,e,ge,H))return!1;if(H.__type==="layout-divider"){if(H=H.getParent(),re&&(H!=null&&H.isParentOf(re)))return!1;yb(e,H)}if(H.getParent()instanceof Mn&&((Le=H.getParent())==null?void 0:Le.getChildren().length)===2){const Ze=H.getParent(),dt=Ze.getParent();Ws(e,Ze,dt)}if(Z!=null&&Z.classList.contains("selected-block"))return;let Oe;const ce=e._rootElement;fe?Oe=Array.from(ce.querySelectorAll(".selected-block")).reverse():Oe=Array.from(ce.querySelectorAll(".selected-block")),Oe.length?Oe.forEach(Ze=>{let dt=p.$getNearestNodeFromDOMNode(Ze);fe?ge==null||ge.insertAfter(dt):ge==null||ge.insertBefore(dt)}):fe?ge.insertAfter(H):ge.insertBefore(H),b(null)})}function ae(pe){const{target:Ce}=pe;Mc(Ce)&&Ce.className==="ContentEditable__root"&&D0(o.current)}return n==null||n.addEventListener("mousemove",K),n==null||n.addEventListener("drop",X),n==null||n.addEventListener("mouseleave",ie),n==null||n.addEventListener("dragleave",ae),()=>{n==null||n.removeEventListener("mousemove",K),n==null||n.removeEventListener("drop",X),n==null||n.removeEventListener("mouseleave",ie),n==null||n.removeEventListener("dragleave",ae)}},[n,e]),m.useEffect(()=>{if(r.current){if(l.current||T.opened)return;R0(C,r.current,n,T.opened)}},[n,C,l.current,T.opened]),m.useEffect(()=>(h.current=ie=>{if(!i.current)return;const[X]=fn.eventFiles(ie);if(X)return;Lc||(Lc=gD(ie.target)),AD(ie,Lc),ie.preventDefault(),ie.dataTransfer&&(ie.dataTransfer.dropEffect="move");const{clientY:ae,clientX:pe,target:Ce}=ie;Mc(Ce)&&e.read(()=>{var re,fe;const G=p.$getNearestNodeFromDOMNode(Ce)||p.$getRoot(),{htmlElement:he,lexicalNode:oe}=Vg(G,e,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},ie);if((oe==null?void 0:oe.__type)==="callout"||(oe==null?void 0:oe.__type)==="collapsible-content"||xb(f.current,oe==null?void 0:oe.getParent())||(oe==null?void 0:oe.__type)==="layout-item"&&G.__type!=="root")return;he&&(d.current.htmlElement=he,d.current.lexicalNode=oe);let H=null;H=d.current.htmlElement||he,H!=null&&H.closest(".dsd__theme__layoutContainer")&&G.__type==="root"&&oe&&((oe==null?void 0:oe.__type)==="layout-item"&&G.__type==="root"?(H=H==null?void 0:H.parentElement,d.current.htmlElement=H,d.current.lexicalNode=oe==null?void 0:oe.getParent()):(H=(re=H.parentElement)==null?void 0:re.parentElement,d.current.htmlElement=H,d.current.lexicalNode=(fe=oe.getParent())==null?void 0:fe.getParent()));const Z=o.current;if(!H&&Z){Z.style.background="transparent";return}H===null||Z===null||H!=null&&H.classList.contains("selected-block")||KE(Z,H,ae,pe,n,ie,d)})},ve.mergeRegister(e.registerCommand(ii,ie=>{var X,ae,pe;return ie==="hide_menu"?(_E(r.current),setTimeout(()=>{l.current=!0},0),!1):ie==="show_menu"?(l.current=!1,!1):(ie===!0&&!l.current&&(Yn&&((X=d.current.htmlElement)!=null&&X.classList.contains("dsd__theme__overlay-wrapper"))&&((pe=(ae=d.current.htmlElement)==null?void 0:ae.children[1])!=null&&pe.hasAttribute("data-name-language"))||b(null)),l.current=!1,!1)},p.COMMAND_PRIORITY_LOW),e.registerCommand(DA,ie=>((ie==null?void 0:ie.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(ee(ie,!0),R0(ie.target,r.current,n,T.opened)),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>(e.dispatchCommand(ii,!0),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>(e.dispatchCommand(ii,!0),!1),p.COMMAND_PRIORITY_LOW))),[n,e]),m.useEffect(()=>()=>{n==null||n.removeEventListener("dragover",g,!0)},[n,g]);function F(ie){var G;const X=ie.dataTransfer;(G=o.current)==null||G.setAttribute("data-index-start","");const ae=C||d.current.htmlElement;if(!X||!ae)return;const pe=e._rootElement;if(ae!=null&&ae.classList.contains("selected-block")){const he=e._rootElement,oe=Array.from(he.querySelectorAll(".selected-block"));zE(ie.dataTransfer,oe)}else dc(pe),ae.className.includes("_layoutDivider")&&ae.parentElement?I0(X,ae.parentElement):I0(X,ae);let Ce="";e.read(()=>{var oe,H;const he=p.$getNearestNodeFromDOMNode(ae);if(he&&(Ce=he.getKey()),he instanceof $r){const Z=el((oe=ae.parentElement)==null?void 0:oe.parentElement,ae.parentElement);(H=o.current)==null||H.setAttribute("data-index-start",Z.toString())}}),r.current&&(w(!0),r.current.style.opacity="0"),i.current=!0,f.current=Ce,X.setData(L0,Ce),ie.stopPropagation(),n==null||n.removeEventListener("dragover",g,!0),n==null||n.addEventListener("dragover",g,!0)}function Y(){n==null||n.removeEventListener("dragover",g,!0),i.current=!1,D0(o.current),w(!1)}if(y)return s.jsx("div",{});function q(){var ae;const ie=d.current.htmlElement,X=(ae=ie==null?void 0:ie.parentElement)==null?void 0:ae.parentElement;if(X!=null&&X.classList.contains("dsd__theme__layoutContainer")&&(X.children.length===4?j(!0):j(!1),ie!=null&&ie.parentElement)){const pe=el(X,ie==null?void 0:ie.parentElement);pe?pe===X.children.length-1?_({left:!1,right:!0}):_({left:!1,right:!1}):_({left:!0,right:!1})}}function ee(ie,X=!1){l.current=!0;const ae=bD((ie==null?void 0:ie.target)??d.current.htmlElement);if(!ae)return;const pe=e._rootElement;q(),ae.classList.contains("selected-block")||dc(pe),e.update(()=>{let G=p.$getSelection();!G&&c.current&&(G=c.current),e.__savedDragHandleSelection=c.current,c.current=null;let he=[];try{he=(G==null?void 0:G.getNodes())??[]}catch{he=[]}const oe=he.filter(ce=>!p.$isTextNode(ce)&&ce.__parent==="root"),H=oe.map(ce=>{const Le=e.getElementByKey(ce.getKey());return ce.getType()==="table"?Le==null?void 0:Le.firstElementChild:Le}).filter(ce=>ce!==null),Z=oe.length&&H.includes(ae)?H:[ae];if(Z.length===1){const ce=p.$getNearestNodeFromDOMNode(ae);if(!ce)return;X||(p.$isElementNode(ce)?ce.select(0):eo.$isDecoratorBlockNode(ce)||ce.selectStart(),e.__savedDragHandleSelection=p.$getSelection()),O(ce)}else O(null);const re=document.querySelector(".selected-all-document"),fe=!!re;fe||Z.forEach(ce=>{Wu(e,{block:ce,isCreateEventListener:!1})});const Re=Array.from(fe?re.children:document.querySelectorAll(".selected-block")).reduce((ce,Le)=>{const Ze=p.$getNearestNodeFromDOMNode(Le);return Ze&&ce.push(Ze),ce},[]),Oe=Re.length>0&&Re.every(ce=>fo(ce)||St(ce)||Cr(ce)?!1:p.$isElementNode(ce)||p.$isTextNode(ce));L(Oe?"text":"block")}),Vs();const Ce=Number(ie==null?void 0:ie.y)+240>window.innerHeight?Number(ie==null?void 0:ie.y)-200:ie==null?void 0:ie.y;R({opened:!0,x:(ie==null?void 0:ie.x)??0,y:Ce??0}),e.dispatchCommand(ih,!0)}const Q=()=>{e.update(()=>{const ie=en();if(l.current=!1,R(X=>({opened:!1,x:X.x,y:X.y})),(ie==null?void 0:ie.__key)==="root"){const X=p.$createParagraphNode();ie.append(X)}p.$setSelection(null)})},J=t?"hide-add-button":"",xe=T.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${T.x}px, ${T.y}px)`}:{},we=()=>{var ie;Q(),Ki(),dc(e._rootElement),(ie=e._rootElement)==null||ie.classList.remove("selected-all-document")},Te=(ie=!1)=>{if(!ie){setTimeout(()=>{we()},100);return}we()},We=m.useCallback(ie=>{const X=document.querySelector(".draggable-menu");if(!T&&ie.button!==2)return;const ae=ie.target;if(ae.closest(".mantine-Menu-dropdown"))return;!((X==null?void 0:X.contains(ae))&&ae.closest("div.custom-menu-item"))&&ie.button!==2&&T.opened&&(ie.stopPropagation(),ie.preventDefault())},[e,T]);return m.useEffect(()=>(T.opened?document.addEventListener("mousedown",We):document.removeEventListener("mousedown",We),()=>{document.removeEventListener("mousedown",We)}),[T.opened,We]),Br.createPortal(s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`draggable-block-container ${J} ${C?"visible":""}`,ref:r,onMouseEnter:()=>{var ie;T.opened||S("both"),(ie=r.current)!=null&&ie.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{S(null)},children:[s.jsx(iD,{hoveredButton:M,insertNewParagraph:j0,currentDraggableBlockRef:d,setHoveredButton:S,isClickedBlockRef:l,setDraggableBlockElem:b,editor:e,t:W,isTouchDevice:k}),s.jsxs(v.Menu,{onOpen:ee,opened:T.opened,styles:{dropdown:xe},position:"left-start",width:320,shadow:"md",withinPortal:!0,clickOutsideEvents:["mousedown"],onClose:()=>{Te()},transitionProps:Fn,children:[s.jsx(v.Menu.Target,{children:s.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:F,onDragEnd:Y,onMouseEnter:()=>{T.opened||S("both")},onMouseDown:ie=>{ie.stopPropagation();const X=e.getEditorState();c.current=X._selection},children:s.jsx(v.Tooltip,{openDelay:300,multiline:!0,disabled:Yn||x||l.current,label:s.jsxs(s.Fragment,{children:[s.jsxs("span",{children:[s.jsx("strong",{children:W("editor.hoverOptions.drag")}),","," ",W("editor.hoverOptions.dragAction")]}),s.jsx("br",{}),s.jsxs("span",{children:[s.jsx("strong",{children:W("editor.hoverOptions.click")}),","," ",W("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:s.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"sm",bd:"none",variant:"subtle","aria-label":"Settings",children:s.jsx(Ee.IconGripVertical,{size:20})})})})}),s.jsx(oD,{hoveredButton:M,insertNewParagraph:j0,currentDraggableBlockRef:d,setHoveredButton:S,isClickedBlockRef:l,setDraggableBlockElem:b,editor:e,t:W,isTouchDevice:k}),s.jsx(v.Menu.Dropdown,{className:"draggable-menu",children:s.jsx(dD,{onChange:ie=>{var ae;if(ie==="comment"){R(pe=>({opened:!1,x:pe.x,y:pe.y})),dc(e._rootElement),(ae=e._rootElement)==null||ae.classList.remove("selected-all-document"),Ki();return}let X=null;e.read(()=>{const pe=p.$getSelection(),Ce=pe==null?void 0:pe.getNodes()[0];if(Ce){const G=Ce.getTopLevelElement();X=(G==null?void 0:G.getKey())??Ce.getKey()}}),Te(!0),X&&setTimeout(()=>{e.update(()=>{const pe=p.$getNodeByKey(X);p.$isElementNode(pe)&&pe.selectEnd()})},100)},t:W,textBlock:N,currentEditorNode:D,editor:e,isDisabledAddColumnButton:I,disabledMoveColumnButtons:B})})]})]}),s.jsx("div",{className:"draggable-block-target-line",ref:o})]}),n)}function xD({anchorElem:e=document.body,isShowAddButton:n=!1}){const[t]=ot.useLexicalComposerContext();return yD(t,e,n)}const E5=/(^|\s):([a-z0-9_+-]+)$/i,vD=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,wD=/(^|\s):$/,kD=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function SD(e,n){return{leadOffset:n.index+n[1].length,matchingString:"",replaceableString:":"}}const ED=e=>kD.has(e),TD=e=>e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.isComposing;function MD(e,n){if(n<=0)return{activate:!1,colonAt:-1,expectAt:-1};const t=e[n-1]??"",r=e[n-2]??"",o=n-2<0;return t===":"&&(o||/\s/.test(r))?{activate:!0,colonAt:n-1,expectAt:n}:{activate:!1,colonAt:-1,expectAt:-1}}function F2(e,n){const t=n.index+n[1].length,r=n[0].slice(n[1].length),o=n===e.match(E5)?n[2]??"":r;return{leadOffset:t,matchingString:o,replaceableString:r}}function LD(){return rt?s.jsx(ND,{}):s.jsx(jD,{})}function ND(){const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),[t,r]=m.useState(!1);m.useEffect(()=>e.registerCommand(m1,()=>(r(!0),!1),p.COMMAND_PRIORITY_LOW),[e]);const o=m.useCallback(l=>{e.update(()=>{let c=p.$getSelection();if(!p.$isRangeSelection(c)&&(p.$getRoot().selectEnd(),c=p.$getSelection(),!p.$isRangeSelection(c)))return;let d=c.anchor.getNode();if(p.$isElementNode(d)){const x=p.$createTextNode("");d.append(x),x.select(),d=x}const f=c.anchor.getNode();if(!In(f))return;const h=f.getTextContent(),g=c.anchor.offset,C=l+" ",b=h.slice(0,g)+C+h.slice(g);f.setTextContent(b);const y=g+C.length;c.anchor.set(f.getKey(),y,"text"),c.focus.set(f.getKey(),y,"text")})},[e]),i={emojis:n("editor.emoji.emojis"),search:n("editor.emoji.search"),searchResults:n("editor.emoji.searchResults"),searchNoResults:n("editor.emoji.searchNoResults"),remove:n("editor.emoji.remove"),emojiCategory:{frequent:n("editor.emoji.emojiCategory.frequent"),people:n("editor.emoji.emojiCategory.people"),nature:n("editor.emoji.emojiCategory.nature"),foods:n("editor.emoji.emojiCategory.foods"),activity:n("editor.emoji.emojiCategory.activity"),places:n("editor.emoji.emojiCategory.places"),objects:n("editor.emoji.emojiCategory.objects"),symbols:n("editor.emoji.emojiCategory.symbols"),flags:n("editor.emoji.emojiCategory.flags")}};return s.jsx(Bt,{opened:t,onClose:()=>r(!1),title:n("editor.emoji.emojis"),classNames:{content:"emoji-panel-drawer"},children:s.jsx(At.EmojiPanel,{locales:i,onChange:l=>{var d;const c=((d=At.IconEntity.parse(l))==null?void 0:d.emoji)??l;o(c),r(!1)},onClose:()=>r(!1),setRandomIcon:()=>{}})})}function jD(){const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),[t,r]=m.useState(!1),[o,i]=m.useState({top:0,left:0}),l=m.useRef(""),c=m.useRef({key:null,offset:null}),d=m.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),f=g=>{if(!d.current.active||g.length<1)return null;const C=g.match(wD);if(C)return SD(g,C);const b=g.match(E5);if(b)return F2(g,b);const y=g.match(vD);return y?F2(g,y):null};m.useEffect(()=>e.registerCommand(m1,()=>(e.update(()=>{let g=p.$getSelection();if(!p.$isRangeSelection(g)&&(p.$getRoot().selectEnd(),g=p.$getSelection(),!p.$isRangeSelection(g)))return!1;let C=g.anchor.getNode();if(p.$isElementNode(C)){const L=p.$createTextNode("");C.append(L),L.select(),C=L}const b=g.anchor.getNode();if(!In(b))return;const y=b.getTextContent(),x=g.anchor.offset,w=x>0?y[x-1]:"",T=(x>0&&!/\s/.test(w)?" ":"")+":",R=y.slice(0,x)+T+y.slice(x);b.setTextContent(R);const N=x+T.length;g.anchor.set(b.getKey(),N,"text"),g.focus.set(b.getKey(),N,"text"),d.current={nodeKey:b.getKey(),colonOffset:N-1,expectNextAt:N,active:!0,ts:Date.now()},l.current=":",t&&r(!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerUpdateListener(({editorState:g})=>{g.read(()=>{const C=p.$getSelection();if(p.$isRangeSelection(C)&&C.isCollapsed()?c.current={key:C.anchor.getNode().getKey(),offset:C.anchor.offset}:c.current={key:null,offset:null},!t&&!d.current.active)return;if(!p.$isRangeSelection(C)||!C.isCollapsed()){t&&r(!1),d.current.active=!1;return}const b=C.anchor.getNode().getKey(),y=C.anchor.offset,x=c.current;x.key!==null&&(b!==x.key||x.offset!==null&&Math.abs(y-x.offset)>1)&&(t&&r(!1),d.current.active=!1)})}),[e,t]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,()=>(t&&r(!1),d.current.active=!1,!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerCommand(p.KEY_DOWN_COMMAND,g=>ED(g.key)?(g.key==="Escape"&&t&&r(!1),d.current.active=!1,!1):(TD(g)&&e.getEditorState().read(()=>{const C=p.$getSelection();if(!p.$isRangeSelection(C)||!C.isCollapsed()){d.current.active=!1;return}const b=C.anchor.getNode(),y=b.getKey(),x=C.anchor.offset;if(g.key===":"){d.current={nodeKey:y,colonOffset:x,expectNextAt:x+1,active:!1,ts:Date.now()};return}const w=typeof(b==null?void 0:b.getTextContent)=="function"?b.getTextContent():"",{activate:k,colonAt:T,expectAt:R}=MD(w,x);if(k){d.current={nodeKey:y,colonOffset:T,expectNextAt:R,active:!0,ts:Date.now()};return}d.current.active&&d.current.nodeKey===y||(d.current.active=!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]);const h=m.useCallback(g=>{e.update(()=>{const C=p.$getSelection();if(!p.$isRangeSelection(C)||!C.isCollapsed())return;const b=C.anchor.getNode(),y=C.anchor.offset,w=(D=>typeof(D==null?void 0:D.getTextContent)=="function"?D.getTextContent():"")(b),k=Math.max(0,y-1);let T=d.current.active&&d.current.colonOffset!=null?d.current.colonOffset:-1;if(T===-1){const D=w.lastIndexOf(":",k),O=w.lastIndexOf(";",k),W=w.lastIndexOf("<",k);T=Math.max(D,O,W)}if(T===-1)return;const R=w[T],N=T>0?w[T-1]:null;if(N&&!/\s/.test(N))return;const L=w.slice(T),M=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let S=T,I=null;const j=L.match(M);if(j)I=T+j[0].length;else if(R===":"){const D=W=>/[a-z0-9_+\-]/i.test(W);let O=T+1;for(;O<w.length&&D(w[O]);)O++;O===T+1?I=T+1:I=O}else if(R===";"){const D=L.match(/^(?:\;\)|\;\-\))/);if(D)I=T+D[0].length;else return}else if(R==="<"){const D=L.match(/^(?:<3)/);if(D)I=T+D[0].length;else return}if(I==null)return;const B=w.slice(0,S)+g+w.slice(I);b.setTextContent(B);const _=S+g.length;C.anchor.set(b.getKey(),_,"text"),C.focus.set(b.getKey(),_,"text"),t&&r(!1),d.current.active=!1})},[e,t]);return s.jsx(Ua.LexicalTypeaheadMenuPlugin,{onSelectOption:()=>{},triggerFn:f,onQueryChange:g=>{l.current=g},options:[],onClose:()=>{t&&r(!1),d.current.active=!1},onOpen:()=>{d.current.active&&e.update(()=>{const g=en();if(!g)return;const C=e.getElementByKey(g.getKey());C&&requestAnimationFrame(()=>{const b=C.getBoundingClientRect();i({top:b.bottom,left:b.left}),r(!0)})})},menuRenderFn:()=>s.jsx(v.Portal,{target:document.body,children:t&&s.jsx("div",{style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,zIndex:1e4},children:s.jsx(At.EmojiPicker,{onChange:g=>{var C;h(((C=At.IconEntity.parse(g))==null?void 0:C.emoji)+" ")},querySearch:String(l.current)||"",locales:{emojis:n("editor.emoji.emojis"),search:n("editor.emoji.search"),searchResults:n("editor.emoji.searchResults"),searchNoResults:n("editor.emoji.searchNoResults"),remove:n("editor.emoji.remove"),emojiCategory:{frequent:n("editor.emoji.emojiCategory.frequent"),people:n("editor.emoji.emojiCategory.people"),nature:n("editor.emoji.emojiCategory.nature"),foods:n("editor.emoji.emojiCategory.foods"),activity:n("editor.emoji.emojiCategory.activity"),places:n("editor.emoji.emojiCategory.places"),objects:n("editor.emoji.emojiCategory.objects"),symbols:n("editor.emoji.emojiCategory.symbols"),flags:n("editor.emoji.emojiCategory.flags")}},popoverProps:{opened:t,transitionProps:Fn,withinPortal:!0,onClose:()=>{t&&r(!1),d.current.active=!1}},children:s.jsx(s.Fragment,{})})})})})}const T5=new Set(["http:","https:","mailto:","sms:","tel:"]);function Ba(e){try{const n=new URL(e);if(!T5.has(n.protocol))return"about:blank"}catch{return e}return e}function RD(e,n){e.update(()=>{const t=window.getSelection();if(t&&t.rangeCount>0){const r=t.getRangeAt(0),o=r.startOffset,i=Math.max(0,o-n);r.setStart(r.startContainer,i),t.removeAllRanges(),t.addRange(r)}})}function W2(e){const n=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return n.test(e)||t.test(e)}function ID(){const[e]=ot.useLexicalComposerContext();m.useEffect(()=>e.registerCommand(p.KEY_SPACE_COMMAND,()=>(e.update(()=>{const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.anchor,r=t.getNode();if(Gt.$isCodeNode(r)||Gt.$isCodeNode(r.getParent()))return!1;if(p.$isTextNode(r)){const o=r.getTextContent().substring(0,t.offset),i=o.match(/(\S+)$/);if(i){const l=i[1],c=o.lastIndexOf(l),d=c>0?o[c-1]:"";if((d===""||d===" ")&&W2(l)){const f=cn.$createLinkNode(l,{rel:"noopener noreferrer",target:"_blank"}),h=p.$createTextNode(l);f.append(h);const g=c,C=g+l.length;n.anchor.set(r.__key,g,"text"),n.focus.set(r.__key,C,"text"),n.insertNodes([f]);const b=p.$getSelection();p.$isRangeSelection(b)&&(b.anchor.set(f.getKey(),l.length,"element"),b.focus.set(f.getKey(),l.length,"element")),f.selectEnd()}}}}),!1),p.COMMAND_PRIORITY_CRITICAL),[e]),m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,n=>{var o,i;if(e.getEditorState().read(()=>{const l=p.$getSelection();if(!p.$isRangeSelection(l))return!1;const c=l.anchor.getNode();return Gt.$isCodeNode(c)||Gt.$isCodeNode(c.getParent())}))return!1;const r=((o=n.clipboardData)==null?void 0:o.getData("text"))||((i=n.clipboardData)==null?void 0:i.getData("text/plain"));return!r||!W2(r)||HA(r)||setTimeout(()=>{RD(e,r.length),e.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ba(r)),e.update(()=>{const l=en();p.$getSelection()&&p.$setSelection(null),l==null||l.selectEnd()})},10),!1},p.COMMAND_PRIORITY_CRITICAL),[e])}function DD(){return ID(),null}function js(e){const n=e.anchor,t=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?dn.$isAtNodeEnd(t)?r:o:dn.$isAtNodeEnd(n)?r:o}function OD(e){switch(e){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function PD(e,n){if(!e)return!1;try{if(n==="phone"){const c=e.startsWith("tel:")?e.substring(4):e;return/^\+?[\d\s\-\(\)]+$/.test(c)&&/\d/.test(c)}if(n==="sms"){const d=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return/^\+?[\d\s\-\(\)]+$/.test(d)&&/\d/.test(d)}if(n==="email"){const c=e.startsWith("mailto:")?e.substring(7):e;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)}const t=[".","::","://","https://","http://"],r=e.trim();if(!r||t.includes(r)||r.startsWith("://"))return!1;const o=r.startsWith("http://")||r.startsWith("https://")?r:`https://${r}`,i=new URL(o);if(!T5.has(i.protocol))return!1;const l=i.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(c=>c.length>0):!1}catch{return!1}}function z2(e,n){return!e||e.includes("://")||e.startsWith("tel:")||e.startsWith("mailto:")||e.startsWith("sms:")?e:OD(n)+e}function K2(e){return e?e.startsWith("tel:")?"phone":e.startsWith("mailto:")?"email":e.startsWith("sms:")?"sms":(e.startsWith("http://")||e.startsWith("https://"),"web"):"web"}function Nc(e){if(!e)return e;if(e.startsWith("tel:"))return e.substring(4);if(e.startsWith("mailto:"))return e.substring(7);if(e.startsWith("sms:")){const n=e.substring(4),t=n.indexOf("?");return t===-1?n:n.substring(0,t)}return e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e}function U2(e){if(!e||!e.startsWith("sms:"))return{phone:"",body:""};const n=e.substring(4),t=n.indexOf("?");if(t===-1)return{phone:n,body:""};const r=n.substring(0,t),o=new URLSearchParams(n.substring(t+1));return{phone:r,body:o.get("body")??""}}function H2(e,n){if(!e)return"";const r=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return n?`sms:${r}?body=${encodeURIComponent(n)}`:`sms:${r}`}function BD(e){switch(e){case"phone":return"+373 000 00 000";case"email":return"example@example.com";case"sms":return"+373 000 00 000";case"web":default:return"https://"}}function _D(e){return e==="phone"||e==="sms"?"tel":e==="email"?"email":"text"}function FD(e){return e==="email"?"email":e==="phone"||e==="sms"?"tel":"url"}function WD(e){return(e==null?void 0:e.closest(".doc-space-editor-wrapper"))??null}function _f(e){return(e==null?void 0:e.closest(".dsd__theme__link"))??null}function jh(e){return e?!!(e.closest('[data-test-id="floating-link-dropdown"]')||e.closest(".floating-link-type-combobox-dropdown")):!1}function zD(e){return{top:e.y,left:e.x}}function KD(e){const n=e.getBoundingClientRect();return{top:n.y,left:n.x+n.width/2}}function UD(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).getBoundingClientRect()}function HD(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).startContainer.parentElement}function YD(e,n=!1){var o;if(!e)return;const t=document.createRange(),r=window.getSelection();return t.setStart(e,Number(n)),t.collapse(!0),r&&(r.removeAllRanges(),r.addRange(t)),(o=e.textContent)==null?void 0:o.length}async function ZD(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function GD({showTextToolbar:e,updateLink:n}){const t=m.useRef(null),r=m.useRef(!1),o=m.useRef(!1),i=m.useRef(null),l=m.useRef(null),c=m.useRef(null),d=m.useRef(null),[f,h]=m.useState(""),[g,C]=m.useState(""),[b,y]=m.useState(""),[x,w]=m.useState(""),[k,T]=m.useState(!1),[R,N]=m.useState(!1),[L,M]=m.useState("preview"),[S,I]=m.useState({top:0,left:0}),[j,B]=m.useState("web"),_=m.useRef({linkUrl:f,messageText:x,textUrl:b,linkType:j});_.current={linkUrl:f,messageText:x,textUrl:b,linkType:j};const[D]=ot.useLexicalComposerContext();m.useEffect(()=>{if(R&&!(L!=="edit"&&L!=="create"))return Vs(),()=>Ki()},[R,L]);const O=m.useCallback(()=>{r.current=!1,M("preview"),h(""),C(""),w(""),T(!1),N(!1),B("web"),I({top:0,left:-999}),c.current=null,i.current=null,d.current=null},[]),W=m.useCallback(()=>{const X=d.current;if(!X)return!1;const ae=_.current;return X.linkUrl!==ae.linkUrl||X.messageText!==ae.messageText||X.textUrl!==ae.textUrl||X.linkType!==ae.linkType},[]);m.useEffect(()=>{if(!R)return;const X=()=>O();return window.addEventListener("resize",X,{passive:!0}),()=>window.removeEventListener("resize",X)},[R,O]);const K=m.useCallback(X=>{if(!X||r.current||!WD(X))return;const pe=_f(X);if(!pe||i.current===pe)return;const Ce=D.getRootElement();if(!(Ce!=null&&Ce.contains(pe)))return;const G=pe.getAttribute("href");if(I(KD(pe)),G){const he=K2(G);if(B(he),he==="sms"){const{phone:oe,body:H}=U2(G);h(oe),w(H),C(oe)}else h(Nc(G)),w(""),C(he==="web"?G:Nc(G))}else h(""),w(""),C("");N(!0),i.current=pe},[D]),F=m.useCallback(X=>{const ae=p.$getSelection();X==="create"&&(M("create"),r.current=!0,B("web"),h(""),w(""),d.current={linkUrl:"",messageText:"",textUrl:"",linkType:"web"});const pe=G=>{const he=K2(G);if(B(he),he==="sms"){const{phone:oe,body:H}=U2(G);h(oe),w(H),C(oe)}else h(Nc(G)),w(""),C(he==="web"?G:Nc(G))};if(p.$isRangeSelection(ae)){const G=js(ae),he=ve.$findMatchingParent(G,cn.$isLinkNode);c.current={anchorKey:ae.anchor.key,anchorOffset:ae.anchor.offset,anchorType:ae.anchor.type,focusKey:ae.focus.key,focusOffset:ae.focus.offset,focusType:ae.focus.type},he?pe(he.getURL()):cn.$isLinkNode(G)&&pe(G.getURL())}const Ce=ae?UD():null;return Ce&&I(zD(Ce)),N(!0),!0},[]);m.useEffect(()=>{n.current&&(n.current.updateLinkEditor=()=>{const X=HD();r.current=!1,K(X),r.current=!0,M("edit")})},[K,n]),m.useEffect(()=>{if(rt)return;const X=ae=>{if(e.current)return;const pe=ae.target;pe instanceof HTMLElement&&K(pe)};return document.body.addEventListener("mouseover",X,{passive:!0}),()=>{document.body.removeEventListener("mouseover",X)}},[K,e]),m.useEffect(()=>{if(!rt)return;const X=ae=>{if(e.current)return;const pe=ae.target;if(!(pe instanceof HTMLElement)||jh(pe))return;if(_f(pe)){if(!D.isEditable()||(ae.preventDefault(),ae.stopPropagation(),r.current))return;K(pe);return}r.current||O()};return document.addEventListener("click",X,{capture:!0}),document.addEventListener("touchend",X,{capture:!0,passive:!1}),()=>{document.removeEventListener("click",X,{capture:!0}),document.removeEventListener("touchend",X,{capture:!0})}},[D,K,O,e]),m.useEffect(()=>{if(rt)return;const X=Su.debounce(ae=>{if(r.current)return;if(e.current){O();return}const pe=ae.target;if(!(pe instanceof HTMLElement))return;const Ce=_f(pe)!==null,G=jh(pe);Ce||G||O()},300,{maxWait:600});return document.addEventListener("mousemove",X,{passive:!0}),()=>{document.removeEventListener("mousemove",X),X.cancel()}},[O,e]),m.useEffect(()=>ve.mergeRegister(D.registerCommand(ju,X=>(F(X),!0),p.COMMAND_PRIORITY_LOW)),[D,F]),m.useEffect(()=>{if(!L)return;const X=requestAnimationFrame(()=>{t.current&&(t.current.focus(),t.current.select()),D.read(()=>{const ae=p.$getSelection();if(p.$isRangeSelection(ae)){l.current=en();const pe=js(ae);if(ve.$findMatchingParent(pe,cn.$isLinkNode)&&pe){const G=pe.getTextContent();y(G),L==="edit"&&(d.current={linkUrl:_.current.linkUrl,messageText:_.current.messageText,textUrl:G,linkType:_.current.linkType})}}})});return()=>cancelAnimationFrame(X)},[D,L]);const Y=m.useCallback(()=>{const X=p.$getSelection();if(p.$isRangeSelection(X))return!0;const ae=(G,he,oe)=>oe==="text"&&p.$isTextNode(G)?Math.max(0,Math.min(he,G.getTextContentSize())):oe==="element"&&p.$isElementNode(G)?Math.max(0,Math.min(he,G.getChildrenSize())):Math.max(0,he),pe=c.current;if(pe){const G=p.$getNodeByKey(pe.anchorKey),he=p.$getNodeByKey(pe.focusKey);if(G&&he){const oe=p.$createRangeSelection();return oe.anchor.set(pe.anchorKey,ae(G,pe.anchorOffset,pe.anchorType),pe.anchorType),oe.focus.set(pe.focusKey,ae(he,pe.focusOffset,pe.focusType),pe.focusType),p.$setSelection(oe),!0}}const Ce=l.current;if(!Ce)return!1;if(p.$isTextNode(Ce))return Ce.select(0,Ce.getTextContentSize()),!0;if(p.$isElementNode(Ce)){const G=Ce.getFirstDescendant();if(p.$isTextNode(G))return G.select(0,G.getTextContentSize()),!0}return!1},[]),q=m.useCallback(()=>{if(o.current)return;const X=j==="sms"?H2(f,x):z2(f,j);if(PD(X,j)&&X)T(!1);else{T(!0);return}o.current=!0;try{D.update(()=>{if(!Y())return;const ae=p.$getSelection();if(!p.$isRangeSelection(ae))return;const pe=js(ae),Ce=pe?pe.getParent():null,G=(cn.$isAutoLinkNode(pe)?pe:null)??(cn.$isAutoLinkNode(Ce)?Ce:null);if(!G)D.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ba(X)),L==="edit"&&pe&&In(pe)&&(pe.setTextContent(b),pe.selectEnd());else{const he=p.$createTextNode(b),oe=G.getParent();oe&&(G.remove(),oe.append(he),D.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ba(X)),he.selectEnd())}}),O()}catch(ae){console.error("[FloatingLink] submit failed",ae)}finally{o.current=!1}},[D,L,f,x,j,O,Y,b]),ee=m.useCallback(X=>{if((X.metaKey||X.ctrlKey)&&(X.code==="KeyZ"||X.code==="KeyY")){X.stopPropagation();return}X.code==="Enter"?(X.preventDefault(),q()):X.code==="Escape"&&(X.preventDefault(),O())},[q,O]),Q=X=>{k&&T(!1),h(X)},J=X=>{k&&T(!1),B(X),h(""),X!=="sms"&&w("")},xe=L==="edit",we=Ba(j==="sms"?H2(f,x):z2(f,j));return{inputRef:t,isOpen:R,position:S,linkUrl:f,displayLinkUrl:g,textUrl:b,setTextUrl:y,messageText:x,setMessageText:w,error:k,isLinkEditMode:L,isShowEditTextLink:xe,safeLinkUrl:we,linkType:j,reset:O,isDirty:W,onUrlInputChange:Q,onLinkTypeChange:J,onUrlInputKeyDown:ee,onSubmit:q,onEditClick:()=>{setTimeout(()=>{const X=i.current;X&&document.contains(X)&&YD(X),D.read(()=>{const ae=p.$getSelection();p.$isRangeSelection(ae)&&(c.current={anchorKey:ae.anchor.key,anchorOffset:ae.anchor.offset,anchorType:ae.anchor.type,focusKey:ae.focus.key,focusOffset:ae.focus.offset,focusType:ae.focus.type})}),M("edit"),r.current=!0},100)},onCopyClick:()=>{we&&ZD(we)},onRemoveClick:()=>{const X=i.current;if(!X||!document.contains(X)){O();return}D.update(()=>{const ae=p.$getNearestNodeFromDOMNode(X);if(!ae)return;const pe=ve.$findMatchingParent(ae,H=>cn.$isLinkNode(H)||cn.$isAutoLinkNode(H));if(!pe)return;if(cn.$isAutoLinkNode(pe)){pe.setIsUnlinked(!0),pe.markDirty();const H=pe.getFirstDescendant();p.$isTextNode(H)&&H.selectEnd();return}const Ce=pe.getFirstDescendant(),G=pe.getLastDescendant();if(!p.$isTextNode(Ce)||!p.$isTextNode(G))return;const he=p.$createRangeSelection();he.anchor.set(Ce.getKey(),0,"text"),he.focus.set(G.getKey(),G.getTextContentSize(),"text"),p.$setSelection(he),cn.$toggleLink(null);const oe=p.$getSelection();p.$isRangeSelection(oe)&&oe.anchor.getNode().selectEnd()}),O()}}}function M5({inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:o,onUrlInputChange:i,onUrlInputKeyDown:l}){const{t:c}=Ue.useTranslation();return s.jsxs(v.Group,{wrap:"nowrap",gap:0,w:"100%",className:"floating-link-group","data-error":r||void 0,children:[s.jsx(cl,{data:[{value:"web",label:c("editor.link.type.web")},{value:"phone",label:c("editor.link.type.phone")},{value:"email",label:c("editor.link.type.email")},{value:"sms",label:c("editor.link.type.sms")}],comboboxProps:{width:200,zIndex:400,position:"bottom-start",classNames:{dropdown:"floating-link-type-combobox-dropdown"}},value:t,onChange:d=>{d&&o(d)},placeholder:c("editor.link.type.web"),"data-test-id":"floating-link-type-select",inputClassName:"editor-select__input--create-mode"}),s.jsx(v.Input,{ref:e,value:n,error:r,type:_D(t),name:FD(t),size:"sm",className:"floating-link-url-input",placeholder:BD(t),"data-test-id":"floating-link-url-input",onChange:d=>{i(d.target.value)},onKeyDown:l})]})}function VD({inputRef:e,linkUrl:n,linkType:t,error:r,mobile:o,onLinkTypeChange:i,onUrlInputChange:l,onUrlInputKeyDown:c,onCancel:d,onSave:f}){const{t:h}=Ue.useTranslation();return s.jsxs(v.Box,{className:"floating-link-form",children:[s.jsxs(v.Stack,{gap:5,children:[s.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:h("editor.link.link")}),s.jsx(M5,{inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:i,onUrlInputChange:l,onUrlInputKeyDown:c})]}),o?s.jsxs(v.Stack,{gap:4,mt:16,children:[s.jsx(v.Button,{h:36,fullWidth:!0,onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")}),s.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")})]}):s.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[s.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")}),s.jsx(v.Button,{h:30,type:"submit",onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")})]})]})}function qD({inputRef:e,textUrl:n,linkUrl:t,linkType:r,error:o,mobile:i,setTextUrl:l,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f,onCancel:h,onSave:g}){const{t:C}=Ue.useTranslation();return s.jsxs(v.Box,{className:"floating-link-form",children:[s.jsxs(v.Stack,{gap:10,children:[s.jsxs(v.Stack,{gap:5,children:[s.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:C("editor.link.link")}),s.jsx(M5,{inputRef:e,linkUrl:t,linkType:r,error:o,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f})]}),s.jsxs(v.Stack,{gap:5,children:[s.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:C("editor.link.name")}),s.jsx(v.Input,{value:n,size:"sm",placeholder:C("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:b=>{l(b.target.value)},onKeyDown:f})]})]}),i?s.jsxs(v.Stack,{gap:4,mt:16,children:[s.jsx(v.Button,{h:36,fullWidth:!0,onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:C("editor.link.save")}),s.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:C("editor.cancel")})]}):s.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[s.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:C("editor.cancel")}),s.jsx(v.Button,{h:30,type:"submit",onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:C("editor.link.save")})]})]})}const QD={web:c1,phone:Ik,email:vk,sms:wk};function JD({linkUrl:e,href:n,linkType:t,messageText:r,onEditClick:o,onCopyClick:i,onRemoveClick:l}){const{t:c}=Ue.useTranslation(),d=fl(),f=QD[t],h=()=>{i(),d(c("editor.link.copied"))};return s.jsxs(v.Box,{className:`floating-link-card floating-link-card--${t}`,children:[s.jsxs(v.Group,{className:"floating-link-card__top",wrap:"nowrap",children:[s.jsxs(v.Group,{className:"floating-link-card__info",wrap:"nowrap",gap:6,children:[s.jsx($,{icon:f,size:16,color:"currentColor"}),s.jsx(v.Anchor,{className:"floating-link-card__url",size:"xs",truncate:!0,href:n,target:t==="web"?"_blank":void 0,rel:t==="web"?"noopener noreferrer":void 0,underline:"hover",c:"inherit",onClick:g=>g.stopPropagation(),"data-test-id":"floating-link-anchor",children:e})]}),s.jsxs(v.Group,{className:"floating-link-card__actions",gap:2,wrap:"nowrap",children:[s.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:o,"aria-label":c("editor.link.edit"),"data-test-id":"floating-link-edit",children:s.jsx($,{icon:dA,size:16,color:"currentColor"})}),s.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:h,"aria-label":c("editor.link.copy"),"data-test-id":"floating-link-copy",children:s.jsx($,{icon:sl,size:16,color:"currentColor"})}),s.jsx(v.ActionIcon,{variant:"subtle",color:"red",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:l,"aria-label":c("editor.link.remove"),"data-test-id":"floating-link-remove",children:s.jsx($,{icon:sn,size:16,color:"currentColor"})})]})]}),t==="sms"&&r&&s.jsx(v.Text,{className:"floating-link-card__sms-body",size:"xs",children:r})]})}function XD({showTextToolbar:e,updateLink:n}){const{t}=Ue.useTranslation(),[r,o]=m.useState(!1),{inputRef:i,isOpen:l,position:c,linkUrl:d,displayLinkUrl:f,textUrl:h,setTextUrl:g,messageText:C,error:b,isLinkEditMode:y,isShowEditTextLink:x,safeLinkUrl:w,linkType:k,reset:T,isDirty:R,onUrlInputChange:N,onLinkTypeChange:L,onUrlInputKeyDown:M,onSubmit:S,onEditClick:I,onCopyClick:j,onRemoveClick:B}=GD({showTextToolbar:e,updateLink:n}),_=()=>{if((y==="create"||y==="edit")&&R()){o(!0);return}T()},D=Ft.useClickOutside(ee=>{const Q=ee.target;jh(Q)||_()}),O=()=>{o(!1),T()},W=y==="preview"?"preview":x?"edit":"create",K=ee=>W==="create"?s.jsx(VD,{inputRef:i,linkUrl:d,linkType:k,error:b,mobile:ee,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:M,onCancel:T,onSave:S}):W==="edit"?s.jsx(qD,{inputRef:i,textUrl:h,linkUrl:d,linkType:k,error:b,mobile:ee,setTextUrl:g,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:M,onCancel:T,onSave:S}):s.jsx(JD,{linkUrl:f,href:w,linkType:k,messageText:C,onEditClick:I,onCopyClick:j,onRemoveClick:B}),F=t(W==="edit"?"editor.link.editLink":"editor.link.addLink"),Y=s.jsxs(v.Modal,{opened:r,onClose:()=>o(!1),centered:!0,title:t("editor.unsavedChanges.title"),size:"sm",zIndex:Ts+10,children:[s.jsx(v.Text,{mb:"md",children:t("editor.unsavedChanges.message")}),s.jsxs(v.Flex,{justify:"flex-end",gap:"sm",children:[s.jsx(v.Button,{variant:"default",onClick:()=>o(!1),children:t("editor.unsavedChanges.cancel")}),s.jsx(v.Button,{color:"red",onClick:O,children:t("editor.unsavedChanges.closeWithoutSaving")})]})]}),q=s.jsxs(v.Popover,{width:W==="preview"?312:380,opened:l,onChange:ee=>{ee||T()},closeOnClickOutside:!1,position:"bottom",offset:10,transitionProps:Fn,zIndex:Ts,children:[s.jsx(v.Popover.Target,{children:s.jsx("div",{style:{position:"fixed",left:c.left,top:c.top+8,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),s.jsx(v.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${y}-mode`,"data-test-id":"floating-link-dropdown",children:s.jsx("div",{ref:D,children:K(!1)})})]});if(rt){const ee=W==="create"||W==="edit";return s.jsxs(s.Fragment,{children:[ee?s.jsx(Bt,{opened:l,onClose:_,title:F,zIndex:Ts,children:K(!0)}):q,Y]})}return s.jsxs(s.Fragment,{children:[q,Y]})}function $D(e){const{disable:n}=m.useContext(ft),t=m.useRef({updateLinkEditor:()=>{}});return n?null:s.jsxs(s.Fragment,{children:[s.jsx(DD,{}),Br.createPortal(s.jsx(XD,{showTextToolbar:e,updateLink:t}),document.body)]})}function eO({showTextToolbar:e}){return $D(e)}function tO(e,n){const t=e.getRangeAt(0);let r;if(e.anchorNode===n){let o=n;for(;o.firstElementChild!=null;)o=o.firstElementChild;r=o.getBoundingClientRect()}else r=t.getBoundingClientRect();if(r.width===0&&r.height===0&&r.top===0&&r.left===0){let o=e.anchorNode;if(o&&o.nodeType===Node.TEXT_NODE&&(o=o.parentElement),o instanceof HTMLElement){let i=o;for(;i&&i!==n;){const l=window.getComputedStyle(i).display;if(l==="block"||l==="list-item"||l==="flex"||l==="grid")break;i=i.parentElement}i&&i!==n&&(r=i.getBoundingClientRect())}}return r}const Y2=()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e==null?void 0:e.replace(/\s+/g,"")},nO=10,rO=5;function gs(e,n,t,r=!1,o=nO,i=rO,l=!1){const c=t.parentElement,d=document.querySelector(".ai-editor-menu");if(e===null||!c||d){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}const f=n.getBoundingClientRect(),h=c.getBoundingClientRect();let g,C;if(l){if(e.width===0&&e.height===0&&e.top===0&&e.left===0)return;const y=typeof window<"u"?window.visualViewport:null,x=(y==null?void 0:y.offsetTop)??0,w=((y==null?void 0:y.height)??window.innerHeight)+x,k=(y==null?void 0:y.width)??window.innerWidth;if(g=e.bottom+o,g+f.height>w){const R=e.top-f.height-o;R>=x+o?g=R:g=Math.max(x+o,w-f.height-o)}const T=4;C=Math.round((k-f.width)/2),C+f.width>k-T&&(C=k-f.width-T),C<T&&(C=T),n.style.transform=`translate(${C}px, ${g}px)`,n.style.opacity="1";return}if(g=e.top-f.height-o,g<0&&(g=10),C=e.left-i,g<h.top&&(g+=f.height+e.height+o*2),C+f.width>h.right&&(C=h.right-f.width-i),e.bottom-e.height>h.bottom){n.style.transform="translate(-1000px, -1000px)";return}if(e.bottom+e.height<h.top){n.style.transform="translate(-1000px, -1000px)";return}let b=g;f.top>=h.bottom&&(b=h.bottom),n.style.transform=`translate(${C}px, ${b}px)`,n.style.opacity="1"}function oO({editor:e,anchorElem:n,isLink:t,isBold:r,isItalic:o,isUnderline:i,isCode:l,isStrikethrough:c,isSubscript:d,isSuperscript:f,component:h,isText:g}){const C=m.useRef(null),b=m.useRef(!1),y=m.useRef(null),x=m.useCallback(()=>{e.dispatchCommand(ju,"create")},[e,t]);function w(){var T,R;C.current&&(b.current=!0,gs(((T=y.current)==null?void 0:T.rect)||null,C==null?void 0:C.current,n,(R=y.current)==null?void 0:R.isLink,void 0,void 0,rt))}m.useEffect(()=>{const T=Y2();if(!g&&!(T!=null&&T.length)){let R=function(S){return S instanceof HTMLElement};const N=C.current,L=window.getSelection();let M=!1;L!=null&&L.anchorNode&&R(L.anchorNode)&&L.anchorNode.className==="toolbar"&&(M=!0),N&&!M&&(y.current={rect:null,floatingElem:N,anchorElem:n,isLink:t},gs(null,N,n,t,void 0,void 0,rt),b.current=!1)}},[g,e]),m.useEffect(()=>{if(C!=null&&C.current){const T=()=>{const R=window.getSelection();if(!R||R.isCollapsed)return;const N=e.getRootElement();!N||!R.anchorNode||N.contains(R.anchorNode)&&w()};return document.addEventListener("mouseup",w),document.addEventListener("keyup",T),()=>{document.removeEventListener("mouseup",w),document.removeEventListener("keyup",T)}}},[e,C]),m.useEffect(()=>{e.registerCommand(p.KEY_DOWN_COMMAND,T=>{var R;return(T.metaKey||T.ctrlKey)&&T.code==="KeyA"?(T.preventDefault(),r7(e),en(!0)&&(i7()&&(C!=null&&C.current)?(gs(null,C==null?void 0:C.current,n,(R=y.current)==null?void 0:R.isLink,void 0,void 0,rt),p.$selectAll(),Wu(e)):setTimeout(()=>{w()})),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(ih,()=>(setTimeout(()=>{var T;C!=null&&C.current&&gs(null,C==null?void 0:C.current,n,(T=y.current)==null?void 0:T.isLink,void 0,void 0,rt)},100),!1),p.COMMAND_PRIORITY_LOW)},[e]);const k=m.useCallback(()=>{const T=p.$getSelection(),R=C.current,N=window.getSelection();if(R===null)return;const L=e.getRootElement();let M=!1;const S=Y2();if(S&&S.length>0&&(M=!0),T!==null&&N!==null&&(!N.isCollapsed||rt)&&L!==null&&L.contains(N.anchorNode)&&(M||rt)){const I=tO(N,L);if(y.current={rect:I,floatingElem:R,anchorElem:n,isLink:t},rt){const j=(B=0)=>{var W,K;const _=C.current;if(!_)return;const{width:D,height:O}=_.getBoundingClientRect();if((D===0||O===0)&&B<3){requestAnimationFrame(()=>j(B+1));return}gs(((W=y.current)==null?void 0:W.rect)||null,_,n,(K=y.current)==null?void 0:K.isLink,void 0,void 0,!0)};requestAnimationFrame(()=>j())}if(p.$isRangeSelection(T)){const B=js(T).getParent(),_=B==null?void 0:B.getFormatType();b.current&&_&&C&&e.registerCommand(ih,D=>(D||setTimeout(()=>{var O,W;gs(((O=y.current)==null?void 0:O.rect)||null,R,n,(W=y.current)==null?void 0:W.isLink,void 0,void 0,rt)},100),!1),p.COMMAND_PRIORITY_LOW)}}else y.current={rect:null,floatingElem:R,anchorElem:n,isLink:t}},[e,n,t]);return m.useEffect(()=>{const T=n.parentElement,R=()=>{e.getEditorState().read(()=>{k()})};return window.addEventListener("resize",R),T&&T.addEventListener("scroll",R),()=>{window.removeEventListener("resize",R),T&&T.removeEventListener("scroll",R)}},[e,k,n]),m.useEffect(()=>(e.getEditorState().read(()=>{k()}),ve.mergeRegister(e.registerUpdateListener(({editorState:T})=>{T.read(()=>{k()})}),e.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>(k(),!1),p.COMMAND_PRIORITY_LOW))),[e,k]),s.jsx("div",{ref:C,className:`floating-text-format-popup doc-space-editor-wrapper ${g?"":"floating-text-format-popup-hidden"}`,onMouseDown:T=>T.preventDefault(),children:s.jsx("div",{children:e.isEditable()&&(h||s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:s.jsx(bn,{name:"bold",stroke:r?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-italic",children:s.jsx(bn,{name:"italic",stroke:o?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"popup-item spaced "+(i?"active":""),"data-test-id":"toolbar-underline",children:s.jsx(bn,{name:"underline",stroke:i?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},className:"popup-item spaced "+(c?"active":""),"data-test-id":"toolbar-strikethrough",children:s.jsx(bn,{name:"strikethrough",stroke:c?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript")},className:"popup-item spaced "+(d?"active":""),"data-test-id":"toolbar-subscript",children:s.jsx(bn,{name:"subscript",stroke:d?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript")},className:"popup-item spaced "+(f?"active":""),"data-test-id":"toolbar-superscript",children:s.jsx(bn,{name:"superscript",stroke:f?3:2})}),s.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-code",children:s.jsx(bn,{name:"code"})}),s.jsx("button",{type:"button",onClick:x,className:"popup-item spaced "+(t?"active":""),"data-test-id":"toolbar-link",children:s.jsx(bn,{name:"link"})})]}))})})}function iO(e,n,t){const[r,o]=m.useState(!1),[i,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,C]=m.useState(!1),[b,y]=m.useState(!1),[x,w]=m.useState(!1),[k,T]=m.useState(!1),[R,N]=m.useState(!1),[L,M]=m.useState(!1),[S,I]=m.useState(!1),j=G1(),{disable:B}=m.useContext(ft);m.useEffect(()=>{if(rt)return e.registerCommand(OA,()=>(I(!0),!0),p.COMMAND_PRIORITY_LOW)},[e]),m.useEffect(()=>{if(!rt||!S)return;const O=e.getRootElement();if(!O)return;const W=()=>I(!1);return O.addEventListener("pointerdown",W),()=>{O.removeEventListener("pointerdown",W)}},[e,S]);const _=m.useCallback(()=>{e.getEditorState().read(()=>{var xe,we,Te;if(e.isComposing())return;const O=p.$getSelection(),W=window.getSelection(),K=e.getRootElement();if(W!==null&&(!p.$isRangeSelection(O)||K===null||!K.contains(W.anchorNode))){o(!1);return}if(!p.$isRangeSelection(O))return;const F=js(O),Y=ve.$findMatchingParent(F,St);l(St(Y)),h(O.hasFormat("bold")),C(O.hasFormat("italic")),y(O.hasFormat("underline")),w(O.hasFormat("strikethrough")),T(O.hasFormat("subscript")),N(O.hasFormat("superscript")),M(O.hasFormat("code"));const q=F.getParent();cn.$isLinkNode(q)||cn.$isLinkNode(F)?d(!0):d(!1);const ee=Gt.$isCodeHighlightNode(O.anchor.getNode()),Q=(Te=(we=(xe=e.getElementByKey(F.__key))==null?void 0:xe.parentElement)==null?void 0:we.parentElement)==null?void 0:Te.classList.contains("Collapsible__title");!ee&&(O.getTextContent()!==""||rt)&&!Q?o(In(F)||p.$isParagraphNode(F)||fn.$isHeadingNode(F)||fn.$isQuoteNode(F)||jt(F)):o(!1);const J=O.getTextContent().replace(/\n/g,"");if(!O.isCollapsed()&&J===""){o(!1);return}})},[e]);if(m.useEffect(()=>(document.addEventListener("selectionchange",_),()=>{document.removeEventListener("selectionchange",_)}),[_]),m.useEffect(()=>ve.mergeRegister(e.registerUpdateListener(()=>{_()}),e.registerRootListener(()=>{e.getRootElement()===null&&o(!1)})),[e,_]),B)return null;const D=i?null:t;return Br.createPortal(s.jsx(oO,{editor:e,anchorElem:n,isLink:c,isBold:f,isItalic:g,isStrikethrough:x,isSubscript:k,isSuperscript:R,isUnderline:b,isCode:L,component:D,isText:r&&!j&&!S}),document.body)}function Z2({anchorElem:e=document.body,component:n}){const[t]=ot.useLexicalComposerContext();return iO(t,e,n)}function sO(){const[e]=ot.useLexicalComposerContext(),{maxHeight:n}=m.useContext(ft),t=()=>{RA(e)};return n?null:s.jsx("div",{className:"new-paragraph",onClick:t})}function aO({hover:e,menuRef:n,onCopy:t,onDuplicate:r,isEmpty:o}){const{t:i}=Ue.useTranslation(),l=e.type==="code"?e.label||i("editor.menu.main.code.name"):i("editor.menu.other.equation.overlayTitle");return s.jsxs(v.Paper,{ref:n,className:"preview-code-equation-menu",shadow:"none",radius:"md",withBorder:!1,style:{position:"absolute",top:e.position.top,right:e.position.right,display:"flex",alignItems:"center",gap:8,padding:0,backgroundColor:"transparent",zIndex:1e3},children:[s.jsx(v.Box,{bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",px:8,py:6,style:{borderRadius:"var(--mantine-radius-sm)"},children:s.jsx(v.Text,{className:"preview-code-equation-menu__label",size:"sm",c:"var(--mantine-color-dark-0)",children:l})}),s.jsx(p1,{isEmpty:o,copyToClipboard:t,onDuplicate:r,tooltipCopy:i("editor.contextMenu.copy"),tooltipDuplicate:i("editor.contextMenu.duplicate")})]})}function G2(e){const t=(e.closest("[data-lexical-equation]")??e.querySelector("[data-lexical-equation]")??e).getAttribute("data-lexical-equation");if(t)try{return decodeURIComponent(escape(atob(t)))}catch{}const r=e.querySelector('annotation[encoding="application/x-tex"]');return r&&r.textContent?r.textContent.trim():e.textContent||""}async function V2(e){if(!e)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function lO(e){const{disable:n}=m.useContext(ft),[t]=ot.useLexicalComposerContext(),[r,o]=m.useState(null),i=m.useRef(null),l=n&&!!e,c=m.useMemo(()=>C=>{if(!l||!e)return;const{lexicalDOMNode:b,isOutside:y}=Qu(C,"code.dsd__theme__code, div.editor-equation",[".preview-code-equation-menu"]);if(y){o(null);return}if(!b)return;const x=b.matches("code.dsd__theme__code"),w=x&&(b.getAttribute("data-name-language")||b.getAttribute("data-language"))||"",{y:k,right:T}=e.getBoundingClientRect(),{y:R,right:N}=b.getBoundingClientRect(),L=R-k+4,M=T-N+4;let S=null;t.read(()=>{const I=p.$getNearestNodeFromDOMNode(b);if(!I)return;const j=x?pu(I):Uc(I);S=(j==null?void 0:j.getKey())??null}),o({type:x?"code":"equation",label:w,target:b,wrapperKey:S,position:{top:`${L}px`,right:`${M}px`}})},[e,l,t]),d=ea(c,50,300);if(m.useEffect(()=>{if(!l){o(null);return}return document.addEventListener("mousemove",d),()=>{d.cancel(),document.removeEventListener("mousemove",d)}},[d,l]),!l||!r||!e)return null;const f=async()=>r!=null&&r.target?r.type==="code"?V2((r.target.textContent||"").trim()):V2(G2(r.target).trim()):!1,h=r.type==="code"?!(r.target.textContent||"").trim():!G2(r.target).trim(),g=()=>{const C=r.wrapperKey;C&&t.update(()=>{const b=p.$getNodeByKey(C);!Do(b)&&!Ou(b)||b.insertAfter(Ir(b))})};return m.createElement(aO,{hover:r,menuRef:i,onCopy:f,onDuplicate:g,isEmpty:h})}function cO({anchorElem:e=document.body}){return lO(e)}var uO="function",dO="object",fO="string",hO="undefined",pO=typeof document!==hO&&document,mO=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Yr=1e-7,jc={cm:function(e){return e*96/2.54},mm:function(e){return e*96/254},in:function(e){return e*96},pt:function(e){return e*96/72},pc:function(e){return e*96/6},"%":function(e,n){return e*n/100},vw:function(e,n){return n===void 0&&(n=window.innerWidth),e/100*n},vh:function(e,n){return n===void 0&&(n=window.innerHeight),e/100*n},vmax:function(e,n){return n===void 0&&(n=Math.max(window.innerWidth,window.innerHeight)),e/100*n},vmin:function(e,n){return n===void 0&&(n=Math.min(window.innerWidth,window.innerHeight)),e/100*n}};/*! *****************************************************************************
|
|
233
|
-
Copyright (c) Microsoft Corporation.
|
|
234
|
-
|
|
235
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
236
|
-
purpose with or without fee is hereby granted.
|
|
237
|
-
|
|
238
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
239
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
240
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
241
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
242
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
243
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
244
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
245
|
-
***************************************************************************** */function gO(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var i=arguments[n],l=0,c=i.length;l<c;l++,o++)r[o]=i[l];return r}function pi(e){return e&&typeof e===dO}function Au(e){return Array.isArray(e)}function rl(e){return typeof e===fO}function ep(e){return typeof e===uO}function CO(e,n){var t=e===""||e==" ",r=n===""||n==" ";return r&&t||e===n}function L5(e,n,t,r,o){var i=tp(e,n,t);return i?t:AO(e,n,t+1,r,o)}function tp(e,n,t){if(!e.ignore)return null;var r=n.slice(Math.max(t-3,0),t+3).join("");return new RegExp(e.ignore).exec(r)}function AO(e,n,t,r,o){for(var i=function(f){var h=n[f].trim();if(h===e.close&&!tp(e,n,f))return{value:f};var g=f,C=ol(o,function(b){var y=b.open;return y===h});if(C&&(g=L5(C,n,f,r,o)),g===-1)return l=f,"break";f=g,l=f},l,c=t;c<r;++c){var d=i(c);if(c=l,typeof d=="object")return d.value;if(d==="break")break}return-1}function np(e,n){var t=rl(n)?{separator:n}:n,r=t.separator,o=r===void 0?",":r,i=t.isSeparateFirst,l=t.isSeparateOnlyOpenClose,c=t.isSeparateOpenClose,d=c===void 0?l:c,f=t.openCloseCharacters,h=f===void 0?mO:f,g=h.map(function(S){var I=S.open,j=S.close;return I===j?I:I+"|"+j}).join("|"),C="(\\s*"+o+"\\s*|"+g+"|\\s+)",b=new RegExp(C,"g"),y=e.split(b).filter(function(S){return S&&S!=="undefined"}),x=y.length,w=[],k=[];function T(){return k.length?(w.push(k.join("")),k=[],!0):!1}for(var R=function(S){var I=y[S].trim(),j=S,B=ol(h,function(O){var W=O.open;return W===I}),_=ol(h,function(O){var W=O.close;return W===I});if(B){if(j=L5(B,y,S,x,h),j!==-1&&d)return T()&&i||(w.push(y.slice(S,j+1).join("")),S=j,i)?(N=S,"break"):(N=S,"continue")}else if(_&&!tp(_,y,S)){var D=gO(h);return D.splice(h.indexOf(_),1),{value:np(e,{separator:o,isSeparateFirst:i,isSeparateOnlyOpenClose:l,isSeparateOpenClose:d,openCloseCharacters:D})}}else if(CO(I,o)&&!l)return T(),i?(N=S,"break"):(N=S,"continue");j===-1&&(j=x-1),k.push(y.slice(S,j+1).join("")),S=j,N=S},N,L=0;L<x;++L){var M=R(L);if(L=N,typeof M=="object")return M.value;if(M==="break")break}return k.length&&w.push(k.join("")),w}function bO(e){return np(e,"")}function Sa(e){return np(e,",")}function yO(e){var n=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!n||n.length<4?{}:{prefix:n[1],value:n[2],suffix:n[3]}}function bu(e){var n=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!n)return{prefix:"",unit:"",value:NaN};var t=n[1],r=n[2],o=n[3];return{prefix:t,unit:o,value:parseFloat(r)}}function Rh(e){return e.replace(/[\s-_]+([^\s-_])/g,function(n,t){return t.toUpperCase()})}function Ih(){return Date.now?Date.now():new Date().getTime()}function yu(e,n,t){t===void 0&&(t=-1);for(var r=e.length,o=0;o<r;++o)if(n(e[o],o,e))return o;return t}function ol(e,n,t){var r=yu(e,n);return r>-1?e[r]:t}function q2(e,n){var t=bu(e),r=t.value,o=t.unit;if(pi(n)){var i=n[o];if(i){if(ep(i))return i(r);if(jc[o])return jc[o](r,i)}}else if(o==="%")return r*n/100;return jc[o]?jc[o](r):r}function N5(e,n,t){return Math.max(n,Math.min(e,t))}function Q2(e,n,t,r){return r===void 0&&(r=e[0]/e[1]),[[Eo(n[0],Yr),Eo(n[0]/r,Yr)],[Eo(n[1]*r,Yr),Eo(n[1],Yr)]].filter(function(o){return o.every(function(i,l){var c=n[l],d=Eo(c,Yr);return t?i<=c||i<=d:i>=c||i>=d})})[0]||e}function xO(e,n,t,r){if(!r)return e.map(function(b,y){return N5(b,n[y],t[y])});var o=e[0],i=e[1],l=r===!0?o/i:r,c=Q2(e,n,!1,l),d=c[0],f=c[1],h=Q2(e,t,!0,l),g=h[0],C=h[1];return o<d||i<f?(o=d,i=f):(o>g||i>C)&&(o=g,i=C),[o,i]}function vO(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return t}function wO(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return n?t/n:0}function J2(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function kO(e){return[0,1].map(function(n){return wO(e.map(function(t){return t[n]}))})}function X2(e){var n=kO(e),t=J2(n,e[0]),r=J2(n,e[1]);return t<r&&r-t<Math.PI||t>r&&r-t<-Math.PI?1:-1}function Dh(e,n){return Math.sqrt(Math.pow((n?n[0]:0)-e[0],2)+Math.pow((n?n[1]:0)-e[1],2))}function Eo(e,n){var t=1/n;return Math.round(e/n)/t}function SO(e,n){return e.classList?e.classList.contains(n):!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}function EO(e,n){e.classList?e.classList.add(n):e.className+=" "+n}function En(e,n,t,r){e.addEventListener(n,t,r)}function gn(e,n,t,r){e.removeEventListener(n,t,r)}function ko(e){return(e==null?void 0:e.ownerDocument)||pO}function Oi(e){var n;return((n=e==null?void 0:e.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}function TO(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function $2(e){return pi(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}/*! *****************************************************************************
|
|
246
|
-
Copyright (c) Microsoft Corporation.
|
|
247
|
-
|
|
248
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
249
|
-
purpose with or without fee is hereby granted.
|
|
250
|
-
|
|
251
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
252
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
253
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
254
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
255
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
256
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
257
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
258
|
-
***************************************************************************** */var Oh=function(){return Oh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Oh.apply(this,arguments)};function MO(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var i=arguments[n],l=0,c=i.length;l<c;l++,o++)r[o]=i[l];return r}var Ju=(function(){function e(){this._events={}}var n=e.prototype;return n.on=function(t,r){if(pi(t))for(var o in t)this.on(o,t[o]);else this._addEvent(t,r,{});return this},n.off=function(t,r){if(!t)this._events={};else if(pi(t))for(var o in t)this.off(o);else if(!r)this._events[t]=[];else{var i=this._events[t];if(i){var l=yu(i,function(c){return c.listener===r});l>-1&&i.splice(l,1)}}return this},n.once=function(t,r){var o=this;return r&&this._addEvent(t,r,{once:!0}),new Promise(function(i){o._addEvent(t,i,{once:!0})})},n.emit=function(t,r){var o=this;r===void 0&&(r={});var i=this._events[t];if(!t||!i)return!0;var l=!1;return r.eventType=t,r.stop=function(){l=!0},r.currentTarget=this,MO(i).forEach(function(c){c.listener(r),c.once&&o.off(t,c.listener)}),!l},n.trigger=function(t,r){return r===void 0&&(r={}),this.emit(t,r)},n._addEvent=function(t,r,o){var i=this._events;i[t]=i[t]||[];var l=i[t];l.push(Oh({listener:r},o))},e})();/*! *****************************************************************************
|
|
259
|
-
Copyright (c) Microsoft Corporation.
|
|
260
|
-
|
|
261
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
262
|
-
purpose with or without fee is hereby granted.
|
|
263
|
-
|
|
264
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
265
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
266
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
267
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
268
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
269
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
270
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
271
|
-
***************************************************************************** */var Ph=function(e,n){return Ph=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Ph(e,n)};function LO(e,n){Ph(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var kn=function(){return kn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},kn.apply(this,arguments)};function NO(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function Ff(e){return NO([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function jO(e){return e.touches&&e.touches.length>=2}function Rc(e){return e?e.touches?IO(e.touches):[j5(e)]:[]}function RO(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function eC(e,n,t){var r=t.length,o=_a(e,r),i=o.clientX,l=o.clientY,c=o.originalClientX,d=o.originalClientY,f=_a(n,r),h=f.clientX,g=f.clientY,C=_a(t,r),b=C.clientX,y=C.clientY,x=i-h,w=l-g,k=i-b,T=l-y;return{clientX:c,clientY:d,deltaX:x,deltaY:w,distX:k,distY:T}}function Wf(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function IO(e){for(var n=Math.min(e.length,2),t=[],r=0;r<n;++r)t.push(j5(e[r]));return t}function j5(e){return{clientX:e.clientX,clientY:e.clientY}}function _a(e,n){n===void 0&&(n=e.length);for(var t={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,n),o=0;o<r;++o){var i=e[o];t.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,t.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,t.clientX+=i.clientX,t.clientY+=i.clientY}return n?{clientX:t.clientX/n,clientY:t.clientY/n,originalClientX:t.originalClientX/n,originalClientY:t.originalClientY/n}:t}var zf=(function(){function e(n){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=n,this.prevClients=n,this.length=n.length}return e.prototype.getAngle=function(n){return n===void 0&&(n=this.prevClients),Ff(n)},e.prototype.getRotation=function(n){return n===void 0&&(n=this.prevClients),Ff(n)-Ff(this.startClients)},e.prototype.getPosition=function(n,t){n===void 0&&(n=this.prevClients);var r=eC(n||this.prevClients,this.prevClients,this.startClients),o=r.deltaX,i=r.deltaY;return this.movement+=Math.sqrt(o*o+i*i),this.prevClients=n,r},e.prototype.getPositions=function(n){n===void 0&&(n=this.prevClients);for(var t=this.prevClients,r=this.startClients,o=Math.min(this.length,t.length),i=[],l=0;l<o;++l)i[l]=eC([n[l]],[t[l]],[r[l]]);return i},e.prototype.getMovement=function(n){var t=this.movement;if(!n)return t;var r=_a(n,this.length),o=_a(this.prevClients,this.length),i=r.clientX-o.clientX,l=r.clientY-o.clientY;return Math.sqrt(i*i+l*l)+t},e.prototype.getDistance=function(n){return n===void 0&&(n=this.prevClients),Wf(n)},e.prototype.getScale=function(n){return n===void 0&&(n=this.prevClients),Wf(n)/Wf(this.startClients)},e.prototype.move=function(n,t){this.startClients.forEach(function(r){r.clientX-=n,r.clientY-=t}),this.prevClients.forEach(function(r){r.clientX-=n,r.clientY-=t})},e})(),tC=["textarea","input"],DO=(function(e){LO(n,e);function n(t,r){r===void 0&&(r={});var o=e.call(this)||this;o.options={},o.flag=!1,o.pinchFlag=!1,o.data={},o.isDrag=!1,o.isPinch=!1,o.clientStores=[],o.targets=[],o.prevTime=0,o.doubleFlag=!1,o._useMouse=!1,o._useTouch=!1,o._useDrag=!1,o._dragFlag=!1,o._isTrusted=!1,o._isMouseEvent=!1,o._isSecondaryButton=!1,o._preventMouseEvent=!1,o._prevInputEvent=null,o._isDragAPI=!1,o._isIdle=!0,o._preventMouseEventId=0,o._window=window,o.onDragStart=function(C,b){if(b===void 0&&(b=!0),!(!o.flag&&C.cancelable===!1)){var y=C.type.indexOf("drag")>=-1;if(!(o.flag&&y)){o._isDragAPI=!0;var x=o.options,w=x.container,k=x.pinchOutside,T=x.preventWheelClick,R=x.preventRightClick,N=x.preventDefault,L=x.checkInput,M=x.dragFocusedInput,S=x.preventClickEventOnDragStart,I=x.preventClickEventOnDrag,j=x.preventClickEventByCondition,B=o._useTouch,_=!o.flag;if(o._isSecondaryButton=C.which===3||C.button===2,T&&(C.which===2||C.button===1)||R&&(C.which===3||C.button===2))return o.stop(),!1;if(_){var D=o._window.document.activeElement,O=C.target;if(O){var W=O.tagName.toLowerCase(),K=tC.indexOf(W)>-1,F=O.isContentEditable;if(K||F){if(L||!M&&D===O)return!1;if(D&&(D===O||F&&D.isContentEditable&&D.contains(O)))if(M)O.blur();else return!1}else if((N||C.type==="touchstart")&&D){var Y=D.tagName.toLowerCase();(D.isContentEditable||tC.indexOf(Y)>-1)&&D.blur()}(S||I||j)&&En(o._window,"click",o._onClick,!0)}o.clientStores=[new zf(Rc(C))],o._isIdle=!1,o.flag=!0,o.isDrag=!1,o._isTrusted=b,o._dragFlag=!0,o._prevInputEvent=C,o.data={},o.doubleFlag=Ih()-o.prevTime<200,o._isMouseEvent=RO(C),!o._isMouseEvent&&o._preventMouseEvent&&o._allowMouseEvent();var q=o._preventMouseEvent||o.emit("dragStart",kn(kn({data:o.data,datas:o.data,inputEvent:C,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,isTrusted:b,isDouble:o.doubleFlag},o.getCurrentStore().getPosition()),{preventDefault:function(){C.preventDefault()},preventDrag:function(){o._dragFlag=!1}}));q===!1&&o.stop(),o._isMouseEvent&&o.flag&&N&&C.preventDefault()}if(!o.flag)return!1;var ee=0;if(_?(o._attchDragEvent(),B&&k&&(ee=setTimeout(function(){En(w,"touchstart",o.onDragStart,{passive:!1})}))):B&&k&&gn(w,"touchstart",o.onDragStart),o.flag&&jO(C)){if(clearTimeout(ee),_&&C.touches.length!==C.changedTouches.length)return;o.pinchFlag||o.onPinchStart(C)}}}},o.onDrag=function(C,b){if(o.flag){var y=o.options.preventDefault;!o._isMouseEvent&&y&&C.preventDefault(),o._prevInputEvent=C;var x=Rc(C),w=o.moveClients(x,C,!1);if(o._dragFlag){if(o.pinchFlag||w.deltaX||w.deltaY){var k=o._preventMouseEvent||o.emit("drag",kn(kn({},w),{isScroll:!!b,inputEvent:C}));if(k===!1){o.stop();return}}o.pinchFlag&&o.onPinch(C,x)}o.getCurrentStore().getPosition(x,!0)}},o.onDragEnd=function(C){if(o.flag){var b=o.options,y=b.pinchOutside,x=b.container,w=b.preventClickEventOnDrag,k=b.preventClickEventOnDragStart,T=b.preventClickEventByCondition,R=o.isDrag;(w||k||T)&&requestAnimationFrame(function(){o._allowClickEvent()}),!T&&!k&&w&&!R&&o._allowClickEvent(),o._useTouch&&y&&gn(x,"touchstart",o.onDragStart),o.pinchFlag&&o.onPinchEnd(C);var N=C!=null&&C.touches?Rc(C):[],L=N.length;L===0||!o.options.keepDragging?o.flag=!1:o._addStore(new zf(N));var M=o._getPosition(),S=Ih(),I=!R&&o.doubleFlag;o._prevInputEvent=null,o.prevTime=R||I?0:S,o.flag||(o._dettachDragEvent(),o._preventMouseEvent||o.emit("dragEnd",kn({data:o.data,datas:o.data,isDouble:I,isDrag:R,isClick:!R,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,inputEvent:C,isTrusted:o._isTrusted},M)),o.clientStores=[],o._isMouseEvent||(o._preventMouseEvent=!0,clearTimeout(o._preventMouseEventId),o._preventMouseEventId=setTimeout(function(){o._preventMouseEvent=!1},200)),o._isIdle=!0)}},o.onBlur=function(){o.onDragEnd()},o._allowClickEvent=function(){gn(o._window,"click",o._onClick,!0)},o._onClick=function(C){o._allowClickEvent(),o._allowMouseEvent();var b=o.options.preventClickEventByCondition;b!=null&&b(C)||(C.stopPropagation(),C.preventDefault())},o._onContextMenu=function(C){var b=o.options;b.preventRightClick?o.onDragEnd(C):C.preventDefault()},o._passCallback=function(){};var i=[].concat(t),l=i[0];o._window=TO(l)?l:Oi(l),o.options=kn({checkInput:!1,container:l&&!("document"in l)?Oi(l):l,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var c=o.options,d=c.container,f=c.events,h=c.checkWindowBlur;if(o._useDrag=f.indexOf("drag")>-1,o._useTouch=f.indexOf("touch")>-1,o._useMouse=f.indexOf("mouse")>-1,o.targets=i,o._useDrag&&i.forEach(function(C){En(C,"dragstart",o.onDragStart)}),o._useMouse&&(i.forEach(function(C){En(C,"mousedown",o.onDragStart),En(C,"mousemove",o._passCallback)}),En(d,"contextmenu",o._onContextMenu)),h&&En(Oi(),"blur",o.onBlur),o._useTouch){var g={passive:!1};i.forEach(function(C){En(C,"touchstart",o.onDragStart,g),En(C,"touchmove",o._passCallback,g)})}return o}return n.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},n.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce(function(r,o){return r+o.movement},0)},n.prototype.isDragging=function(){return this.isDrag},n.prototype.isIdle=function(){return this._isIdle},n.prototype.isFlag=function(){return this.flag},n.prototype.isPinchFlag=function(){return this.pinchFlag},n.prototype.isDoubleFlag=function(){return this.doubleFlag},n.prototype.isPinching=function(){return this.isPinch},n.prototype.scrollBy=function(t,r,o,i){i===void 0&&(i=!0),this.flag&&(this.clientStores[0].move(t,r),i&&this.onDrag(o,!0))},n.prototype.move=function(t,r){var o=t[0],i=t[1],l=this.getCurrentStore(),c=l.prevClients;return this.moveClients(c.map(function(d){var f=d.clientX,h=d.clientY;return{clientX:f+o,clientY:h+i,originalClientX:f,originalClientY:h}}),r,!0)},n.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},n.prototype.setEventData=function(t){var r=this.data;for(var o in t)r[o]=t[o];return this},n.prototype.setEventDatas=function(t){return this.setEventData(t)},n.prototype.getCurrentEvent=function(t){return t===void 0&&(t=this._prevInputEvent),kn(kn({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},n.prototype.getEventData=function(){return this.data},n.prototype.getEventDatas=function(){return this.data},n.prototype.unset=function(){var t=this,r=this.targets,o=this.options.container;this.off(),gn(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(i){gn(i,"dragstart",t.onDragStart)}),this._useMouse&&(r.forEach(function(i){gn(i,"mousedown",t.onDragStart)}),gn(o,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(i){gn(i,"touchstart",t.onDragStart)}),gn(o,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},n.prototype.onPinchStart=function(t){var r=this,o=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>o)){var i=new zf(Rc(t));this.pinchFlag=!0,this._addStore(i);var l=this.emit("pinchStart",kn(kn({data:this.data,datas:this.data,angle:i.getAngle(),touches:this.getCurrentStore().getPositions()},i.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));l===!1&&(this.pinchFlag=!1)}},n.prototype.onPinch=function(t,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var o=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",kn(kn({data:this.data,datas:this.data,movement:this.getMovement(r),angle:o.getAngle(r),rotation:o.getRotation(r),touches:o.getPositions(r),scale:o.getScale(r),distance:o.getDistance(r)},o.getPosition(r)),{inputEvent:t,isTrusted:this._isTrusted}))}},n.prototype.onPinchEnd=function(t){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var o=this.getCurrentStore();this.emit("pinchEnd",kn(kn({data:this.data,datas:this.data,isPinch:r,touches:o.getPositions()},o.getPosition()),{inputEvent:t}))}},n.prototype.getCurrentStore=function(){return this.clientStores[0]},n.prototype.moveClients=function(t,r,o){var i=this._getPosition(t,o),l=this.isDrag;(i.deltaX||i.deltaY)&&(this.isDrag=!0);var c=!1;return!l&&this.isDrag&&(c=!0),kn(kn({data:this.data,datas:this.data},i),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:c})},n.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},n.prototype._getPosition=function(t,r){var o=this.getCurrentStore(),i=o.getPosition(t,r),l=this.clientStores.slice(1).reduce(function(f,h){var g=h.getPosition();return f.distX+=g.distX,f.distY+=g.distY,f},i),c=l.distX,d=l.distY;return kn(kn({},i),{distX:c,distY:d})},n.prototype._attchDragEvent=function(){var t=this._window,r=this.options.container,o={passive:!1};this._isDragAPI&&(En(r,"dragover",this.onDrag,o),En(t,"dragend",this.onDragEnd)),this._useMouse&&(En(r,"mousemove",this.onDrag),En(t,"mouseup",this.onDragEnd)),this._useTouch&&(En(r,"touchmove",this.onDrag,o),En(t,"touchend",this.onDragEnd,o),En(t,"touchcancel",this.onDragEnd,o))},n.prototype._dettachDragEvent=function(){var t=this._window,r=this.options.container;this._isDragAPI&&(gn(r,"dragover",this.onDrag),gn(t,"dragend",this.onDragEnd)),this._useMouse&&(gn(r,"mousemove",this.onDrag),gn(t,"mouseup",this.onDragEnd)),this._useTouch&&(gn(r,"touchstart",this.onDragStart),gn(r,"touchmove",this.onDrag),gn(t,"touchend",this.onDragEnd),gn(t,"touchcancel",this.onDragEnd))},n.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},n})(Ju);function OO(e,n){return function(t){t&&(e[n]=t)}}function PO(e,n){return function(t){var r=t.prototype;e.forEach(function(o){n(r,o)})}}function BO(e,n){return n===void 0&&(n={}),function(t,r){e.forEach(function(o){var i=n[o]||o;i in t||(t[i]=function(){for(var l,c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var f=(l=this[r])[o].apply(l,c);return f===this[r]?this:f})})}}var _O=(function(){function e(){this.keys=[],this.values=[]}var n=e.prototype;return n.get=function(t){return this.values[this.keys.indexOf(t)]},n.set=function(t,r){var o=this.keys,i=this.values,l=o.indexOf(t),c=l===-1?o.length:l;o[c]=t,i[c]=r},e})(),FO=(function(){function e(){this.object={}}var n=e.prototype;return n.get=function(t){return this.object[t]},n.set=function(t,r){this.object[t]=r},e})(),WO=typeof Map=="function",zO=(function(){function e(){}var n=e.prototype;return n.connect=function(t,r){this.prev=t,this.next=r,t&&(t.next=this),r&&(r.prev=this)},n.disconnect=function(){var t=this.prev,r=this.next;t&&(t.next=r),r&&(r.prev=t)},n.getIndex=function(){for(var t=this,r=-1;t;)t=t.prev,++r;return r},e})();function KO(e,n){var t=[],r=[];return e.forEach(function(o){var i=o[0],l=o[1],c=new zO;t[i]=c,r[l]=c}),t.forEach(function(o,i){o.connect(t[i-1])}),e.filter(function(o,i){return!n[i]}).map(function(o,i){var l=o[0],c=o[1];if(l===c)return[0,0];var d=t[l],f=r[c-1],h=d.getIndex();d.disconnect(),f?d.connect(f,f.next):d.connect(void 0,t[0]);var g=d.getIndex();return[h,g]})}var UO=(function(){function e(t,r,o,i,l,c,d,f){this.prevList=t,this.list=r,this.added=o,this.removed=i,this.changed=l,this.maintained=c,this.changedBeforeAdded=d,this.fixed=f}var n=e.prototype;return Object.defineProperty(n,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(n,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),n.caculateOrdered=function(){var t=KO(this.changedBeforeAdded,this.fixed),r=this.changed,o=[];this.cacheOrdered=t.filter(function(i,l){var c=i[0],d=i[1],f=r[l],h=f[0],g=f[1];if(c!==d)return o.push([h,g]),!0}),this.cachePureChanged=o},e})();function HO(e,n,t){var r=WO?Map:t?FO:_O,o=t||function(T){return T},i=[],l=[],c=[],d=e.map(o),f=n.map(o),h=new r,g=new r,C=[],b=[],y={},x=[],w=0,k=0;return d.forEach(function(T,R){h.set(T,R)}),f.forEach(function(T,R){g.set(T,R)}),d.forEach(function(T,R){var N=g.get(T);typeof N>"u"?(++k,l.push(R)):y[N]=k}),f.forEach(function(T,R){var N=h.get(T);typeof N>"u"?(i.push(R),++w):(c.push([N,R]),k=y[R]||0,C.push([N-k,R-w]),b.push(R===N),N!==R&&x.push([N,R]))}),l.reverse(),new UO(e,n,i,l,x,c,C,b)}var YO=typeof Map=="function"?void 0:(function(){var e=0;return function(n){return n.__DIFF_KEY__||(n.__DIFF_KEY__=++e)}})();function Ea(e,n){return HO(e,n,YO)}/*! *****************************************************************************
|
|
272
|
-
Copyright (c) Microsoft Corporation.
|
|
273
|
-
|
|
274
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
275
|
-
purpose with or without fee is hereby granted.
|
|
276
|
-
|
|
277
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
278
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
279
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
280
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
281
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
282
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
283
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
284
|
-
***************************************************************************** */var Bh=function(e,n){return Bh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Bh(e,n)};function ZO(e,n){Bh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var xs=function(){return xs=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},xs.apply(this,arguments)};function GO(e){var n=e.container;return n===document.body?[n.scrollLeft||document.documentElement.scrollLeft,n.scrollTop||document.documentElement.scrollTop]:[n.scrollLeft,n.scrollTop]}function nC(e,n){return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}function Ic(e){if(e){if(rl(e))return document.querySelector(e)}else return null;if(ep(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var VO=(function(e){ZO(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var o=r._currentOptions;r._lock||!o||r.emit("scrollDrag",{next:function(i){r.checkScroll({container:o.container,inputEvent:i})}})},r}var t=n.prototype;return t.dragStart=function(r,o){var i=Ic(o.container);if(!i){this._flag=!1;return}var l=0,c=0,d=0,f=0;if(i===document.body)d=window.innerWidth,f=window.innerHeight;else{var h=i.getBoundingClientRect();l=h.top,c=h.left,d=h.width,f=h.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:l,left:c,width:d,height:f},this._prevScrollPos=this._getScrollPosition([0,0],o),this._currentOptions=o,this._registerScrollEvent(o)},t.drag=function(r,o){if(clearTimeout(this._timer),!!this._flag){var i=r.clientX,l=r.clientY,c=o.threshold,d=c===void 0?0:c,f=this,h=f._startRect,g=f._startPos;this._currentOptions=o;var C=[0,0];return h.top>l-d?(g[1]>h.top||l<g[1])&&(C[1]=-1):h.top+h.height<l+d&&(g[1]<h.top+h.height||l>g[1])&&(C[1]=1),h.left>i-d?(g[0]>h.left||i<g[0])&&(C[0]=-1):h.left+h.width<i+d&&(g[0]<h.left+h.width||i>g[0])&&(C[0]=1),!C[0]&&!C[1]?!1:this._continueDrag(xs(xs({},o),{direction:C,inputEvent:r,isDrag:!0}))}},t.checkScroll=function(r){var o=this;if(this._isWait)return!1;var i=r.prevScrollPos,l=i===void 0?this._prevScrollPos:i,c=r.direction,d=r.throttleTime,f=d===void 0?0:d,h=r.inputEvent,g=r.isDrag,C=this._getScrollPosition(c||[0,0],r),b=C[0]-l[0],y=C[1]-l[1],x=c||[b?Math.abs(b)/b:0,y?Math.abs(y)/y:0];return this._prevScrollPos=C,this._lock=!1,!b&&!y?!1:(this.emit("move",{offsetX:x[0]?b:0,offsetY:x[1]?y:0,inputEvent:h}),f&&g&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},f)),!0)},t.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},t._getScrollPosition=function(r,o){var i=o.container,l=o.getScrollPosition,c=l===void 0?GO:l;return c({container:Ic(i),direction:r})},t._continueDrag=function(r){var o=this,i,l=r.container,c=r.direction,d=r.throttleTime,f=r.useScroll,h=r.isDrag,g=r.inputEvent;if(!(!this._flag||h&&this._isWait)){var C=Ih(),b=Math.max(d+this._prevTime-C,0);if(b>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},b),!1;this._prevTime=C;var y=this._getScrollPosition(c,r);this._prevScrollPos=y,h&&(this._isWait=!0),f||(this._lock=!0);var x={container:Ic(l),direction:c,inputEvent:g};return(i=r.requestScroll)===null||i===void 0||i.call(r,x),this.emit("scroll",x),this._isWait=!1,f||this.checkScroll(xs(xs({},r),{prevScrollPos:y,direction:c,inputEvent:g}))}},t._registerScrollEvent=function(r){this._unregisterScrollEvent();var o=r.checkScrollEvent;if(o){var i=o===!0?nC:o,l=Ic(r.container);o===!0&&(l===document.body||l===document.documentElement)?this._unregister=nC(window,this._onScroll):this._unregister=i(l,this._onScroll)}},t._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},n})(Ju),_h=function(e,n){return _h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},_h(e,n)};function qO(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_h(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function QO(e,n){return n={exports:{}},e(n,n.exports),n.exports}var yl=QO(function(e,n){function t(d){if(d&&typeof d=="object"){var f=d.which||d.keyCode||d.charCode;f&&(d=f)}if(typeof d=="number")return l[d];var h=String(d),g=r[h.toLowerCase()];if(g)return g;var g=o[h.toLowerCase()];if(g)return g;if(h.length===1)return h.charCodeAt(0)}t.isEventKey=function(f,h){if(f&&typeof f=="object"){var g=f.which||f.keyCode||f.charCode;if(g==null)return!1;if(typeof h=="string"){var C=r[h.toLowerCase()];if(C)return C===g;var C=o[h.toLowerCase()];if(C)return C===g}else if(typeof h=="number")return h===g;return!1}},n=e.exports=t;var r=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
285
|
-
* Programatically add the following
|
|
286
|
-
*/for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var l=n.names=n.title={};for(i in r)l[r[i]]=i;for(var c in o)r[c]=o[c]});yl.code;yl.codes;yl.aliases;var JO=yl.names;yl.title;var rC={"+":"plus","left command":"meta","right command":"meta"},oC={shift:1,ctrl:2,alt:3,meta:4};function R5(e,n){var t=(JO[e]||n||"").toLowerCase();for(var r in rC)t=t.replace(r,rC[r]);return t.replace(/\s/g,"")}function I5(e,n){n===void 0&&(n=R5(e.keyCode,e.key));var t=XO(e);return t.indexOf(n)===-1&&t.push(n),t.filter(Boolean)}function XO(e){var n=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return n.filter(Boolean)}function iC(e){var n=e.slice();return n.sort(function(t,r){var o=oC[t]||5,i=oC[r]||5;return o-i}),n}var sC,$O=(function(e){qO(n,e);function n(r){r===void 0&&(r=window);var o=e.call(this)||this;return o.container=r,o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o.clear=function(){return o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o},o.keydownEvent=function(i){o.triggerEvent("keydown",i)},o.keyupEvent=function(i){o.triggerEvent("keyup",i)},o.blur=function(){o.clear(),o.trigger("blur")},En(r,"blur",o.blur),En(r,"keydown",o.keydownEvent),En(r,"keyup",o.keyupEvent),o}var t=n.prototype;return Object.defineProperty(n,"global",{get:function(){return sC||(sC=new n)},enumerable:!1,configurable:!0}),n.setGlobal=function(){return this.global},t.destroy=function(){var r=this.container;this.clear(),this.off(),gn(r,"blur",this.blur),gn(r,"keydown",this.keydownEvent),gn(r,"keyup",this.keyupEvent)},t.keydown=function(r,o){return this.addEvent("keydown",r,o)},t.offKeydown=function(r,o){return this.removeEvent("keydown",r,o)},t.offKeyup=function(r,o){return this.removeEvent("keyup",r,o)},t.keyup=function(r,o){return this.addEvent("keyup",r,o)},t.addEvent=function(r,o,i){return Au(o)?this.on("".concat(r,".").concat(iC(o).join(".")),i):rl(o)?this.on("".concat(r,".").concat(o),i):this.on(r,o),this},t.removeEvent=function(r,o,i){return Au(o)?this.off("".concat(r,".").concat(iC(o).join(".")),i):rl(o)?this.off("".concat(r,".").concat(o),i):this.off(r,o),this},t.triggerEvent=function(r,o){this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey;var i=R5(o.keyCode,o.key),l=i==="ctrl"||i==="shift"||i==="meta"||i==="alt",c={key:i,isToggle:l,inputEvent:o,keyCode:o.keyCode,ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey};this.trigger(r,c),this.trigger("".concat(r,".").concat(i),c);var d=I5(o,i);d.length>1&&this.trigger("".concat(r,".").concat(d.join(".")),c)},n})(Ju);/*! *****************************************************************************
|
|
287
|
-
Copyright (c) Microsoft Corporation.
|
|
288
|
-
|
|
289
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
290
|
-
purpose with or without fee is hereby granted.
|
|
291
|
-
|
|
292
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
293
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
294
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
295
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
296
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
297
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
298
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
299
|
-
***************************************************************************** */function eP(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var i=arguments[n],l=0,c=i.length;l<c;l++,o++)r[o]=i[l];return r}function or(e){return Eo(e,Yr)}function tP(e,n){return e.every(function(t,r){return or(t-n[r])===0})}function nP(e,n){return!or(e[0]-n[0])&&!or(e[1]-n[1])}function Kf(e){return e.length<3?0:Math.abs(vO(e.map(function(n,t){var r=e[t+1]||e[0];return n[0]*r[1]-r[0]*n[1]})))/2}function rP(e,n){var t=n.width,r=n.height,o=n.left,i=n.top,l=D5(e),c=l.minX,d=l.minY,f=l.maxX,h=l.maxY,g=t/(f-c),C=r/(h-d);return e.map(function(b){return[o+(b[0]-c)*g,i+(b[1]-d)*C]})}function D5(e){var n=e.map(function(r){return r[0]}),t=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,n),minY:Math.min.apply(Math,t),maxX:Math.max.apply(Math,n),maxY:Math.max.apply(Math,t)}}function Fh(e,n,t){var r=e[0],o=e[1],i=D5(n),l=i.minX,c=i.maxX,d=[[l,o],[c,o]],f=xu(d[0],d[1]),h=Wh(n),g=[];if(h.forEach(function(y){var x=xu(y[0],y[1]),w=y[0];if(tP(f,x))g.push({pos:e,line:y,type:"line"});else{var k=P5(O5(f,x),[d,y]);k.forEach(function(T){y.some(function(R){return nP(R,T)})?g.push({pos:T,line:y,type:"point"}):or(w[1]-o)!==0&&g.push({pos:T,line:y,type:"intersection"})})}}),ol(g,function(y){return y[0]===r}))return!0;var C=0,b={};return g.forEach(function(y){var x=y.pos,w=y.type,k=y.line;if(!(x[0]>r))if(w==="intersection")++C;else{if(w==="line")return;if(w==="point"){var T=ol(k,function(L){return L[1]!==o}),R=b[x[0]],N=T[1]>o?1:-1;R?R!==N&&++C:b[x[0]]=N}}}),C%2===1}function xu(e,n){var t=e[0],r=e[1],o=n[0],i=n[1],l=o-t,c=i-r;Math.abs(l)<Yr&&(l=0),Math.abs(c)<Yr&&(c=0);var d=0,f=0,h=0;return l?c?(d=-c/l,f=1,h=-d*t-r):(f=1,h=-r):c&&(d=-1,h=t),[d,f,h]}function O5(e,n){var t=e[0],r=e[1],o=e[2],i=n[0],l=n[1],c=n[2],d=t===0&&i===0,f=r===0&&l===0,h=[];if(d&&f)return[];if(d){var g=-o/r,C=-c/l;return g!==C?[]:[[-1/0,g],[1/0,g]]}else if(f){var b=-o/t,y=-c/i;return b!==y?[]:[[b,-1/0],[b,1/0]]}else if(t===0){var x=-o/r,w=-(l*x+c)/i;h=[[w,x]]}else if(i===0){var x=-c/l,w=-(r*x+o)/t;h=[[w,x]]}else if(r===0){var w=-o/t,x=-(i*w+c)/l;h=[[w,x]]}else if(l===0){var w=-c/i,x=-(t*w+o)/r;h=[[w,x]]}else{var w=(r*c-l*o)/(l*t-r*i),x=-(t*w+o)/r;h=[[w,x]]}return h.map(function(k){return[k[0],k[1]]})}function P5(e,n){var t=n.map(function(g){return[0,1].map(function(C){return[Math.min(g[0][C],g[1][C]),Math.max(g[0][C],g[1][C])]})}),r=[];if(e.length===2){var o=e[0],i=o[0],l=o[1];if(or(i-e[1][0])){if(!or(l-e[1][1])){var f=Math.max.apply(Math,t.map(function(g){return g[0][0]})),h=Math.min.apply(Math,t.map(function(g){return g[0][1]}));if(or(f-h)>0)return[];r=[[f,l],[h,l]]}}else{var c=Math.max.apply(Math,t.map(function(g){return g[1][0]})),d=Math.min.apply(Math,t.map(function(g){return g[1][1]}));if(or(c-d)>0)return[];r=[[i,c],[i,d]]}}return r.length||(r=e.filter(function(g){var C=g[0],b=g[1];return t.every(function(y){return 0<=or(C-y[0][0])&&0<=or(y[0][1]-C)&&0<=or(b-y[1][0])&&0<=or(y[1][1]-b)})})),r.map(function(g){return[or(g[0]),or(g[1])]})}function Wh(e){return eP(e.slice(1),[e[0]]).map(function(n,t){return[e[t],n]})}function oP(e,n){var t=e.slice(),r=n.slice();X2(t)===-1&&t.reverse(),X2(r)===-1&&r.reverse();var o=Wh(t),i=Wh(r),l=o.map(function(h){return xu(h[0],h[1])}),c=i.map(function(h){return xu(h[0],h[1])}),d=[];l.forEach(function(h,g){var C=o[g],b=[];c.forEach(function(y,x){var w=O5(h,y),k=P5(w,[C,i[x]]);b.push.apply(b,k.map(function(T){return{index1:g,index2:x,pos:T,type:"intersection"}}))}),b.sort(function(y,x){return Dh(C[0],y.pos)-Dh(C[0],x.pos)}),d.push.apply(d,b),Fh(C[1],r)&&d.push({index1:g,index2:-1,pos:C[1],type:"inside"})}),i.forEach(function(h,g){if(Fh(h[1],t)){var C=!1,b=yu(d,function(y){var x=y.index2;return x===g?(C=!0,!1):!!C});b===-1&&(C=!1,b=yu(d,function(y){var x=y.index1,w=y.index2;return x===-1&&w+1===g?(C=!0,!1):!!C})),b===-1?d.push({index1:-1,index2:g,pos:h[1],type:"inside"}):d.splice(b,0,{index1:-1,index2:g,pos:h[1],type:"inside"})}});var f={};return d.filter(function(h){var g=h.pos,C=g[0]+"x"+g[1];return f[C]?!1:(f[C]=!0,!0)})}function aC(e,n){var t=oP(e,n);return t.map(function(r){var o=r.pos;return o})}function iP(e,n,t,r,o,i){for(var l=0;l<o;++l){var c=t+l*o,d=r+l*o;e[c]+=e[d]*i,n[c]+=n[d]*i}}function sP(e,n,t,r,o){for(var i=0;i<o;++i){var l=t+i*o,c=r+i*o,d=e[l],f=n[l];e[l]=e[c],e[c]=d,n[l]=n[c],n[c]=f}}function aP(e,n,t,r,o){for(var i=0;i<r;++i){var l=t+i*r;e[l]/=o,n[l]/=o}}function lP(e,n){for(var t=e.slice(),r=B5(n),o=0;o<n;++o){var i=n*o+o;if(!Eo(t[i],Yr)){for(var l=o+1;l<n;++l)if(t[n*o+l]){sP(t,r,o,l,n);break}}if(!Eo(t[i],Yr))return[];aP(t,r,o,n,t[i]);for(var l=0;l<n;++l){var c=l,d=l+o*n,f=t[d];!Eo(f,Yr)||o===l||iP(t,r,c,o,n,-f)}}return r}function Xi(e,n,t){t===void 0&&(t=Math.sqrt(e.length));var r=[],o=e.length/t,i=n.length/o;if(o){if(!i)return e}else return n;for(var l=0;l<t;++l)for(var c=0;c<i;++c){r[c*t+l]=0;for(var d=0;d<o;++d)r[c*t+l]+=e[d*t+l]*n[c*o+d]}return r}function cP(e,n,t){var r=Xi(e,n,t),o=r[t-1];return r.map(function(i){return i/o})}function uP(e,n){return Xi(e,[1,0,0,0,0,Math.cos(n),Math.sin(n),0,0,-Math.sin(n),Math.cos(n),0,0,0,0,1],4)}function dP(e,n){return Xi(e,[Math.cos(n),0,-Math.sin(n),0,0,1,0,0,Math.sin(n),0,Math.cos(n),0,0,0,0,1],4)}function fP(e,n){return Xi(e,hP(n,4))}function Dc(e,n){var t=n[0],r=t===void 0?1:t,o=n[1],i=o===void 0?1:o,l=n[2],c=l===void 0?1:l;return Xi(e,[r,0,0,0,0,i,0,0,0,0,c,0,0,0,0,1],4)}function Uf(e,n){var t=n[0],r=t===void 0?0:t,o=n[1],i=o===void 0?0:o,l=n[2],c=l===void 0?0:l;return Xi(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,c,1],4)}function zh(e,n){return Xi(e,n,4)}function hP(e,n){var t=Math.cos(e),r=Math.sin(e),o=B5(n);return o[0]=t,o[1]=r,o[n]=-r,o[n+1]=t,o}function B5(e){for(var n=e*e,t=[],r=0;r<n;++r)t[r]=r%(e+1)?0:1;return t}var Fa=function(){return Fa=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Fa.apply(this,arguments)};function rp(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function pP(e,n){return n===void 0&&(n=0),gP(CP(e,n))}function Hf(e,n){var t=cP(e,[n[0],n[1]||0,n[2]||0,1],4),r=t[3]||1;return[t[0]/r,t[1]/r,t[2]/r]}function mP(e,n){n===void 0&&(n=document.body);for(var t=e,r=rp();t;){var o=getComputedStyle(t).transform;if(r=zh(pP(o),r),t===n)break;t=t.parentElement}return r=lP(r,4),r[12]=0,r[13]=0,r[14]=0,r}function gP(e){var n=rp();return e.forEach(function(t){var r=t.matrixFunction,o=t.functionValue;r&&(n=r(n,o))}),n}function CP(e,n){n===void 0&&(n=0);var t=Au(e)?e:bO(e);return t.map(function(r){var o=yO(r),i=o.prefix,l=o.value,c=null,d=i,f="";if(i==="translate"||i==="translateX"||i==="translate3d"){var h=pi(n)?Fa(Fa({},n),{"o%":n["%"]}):{"%":n,"o%":n},g=Sa(l).map(function(O,W){return W===0&&"x%"in h?h["%"]=n["x%"]:W===1&&"y%"in h?h["%"]=n["y%"]:h["%"]=n["o%"],q2(O,h)}),C=g[0],b=g[1],y=b===void 0?0:b,x=g[2],w=x===void 0?0:x;c=Uf,f=[C,y,w]}else if(i==="translateY"){var k=pi(n)?Fa({"%":n["y%"]},n):{"%":n},y=q2(l,k);c=Uf,f=[0,y,0]}else if(i==="translateZ"){var w=parseFloat(l);c=Uf,f=[0,0,w]}else if(i==="scale"||i==="scale3d"){var T=Sa(l).map(function(O){return parseFloat(O)}),R=T[0],N=T[1],L=N===void 0?R:N,M=T[2],S=M===void 0?1:M;c=Dc,f=[R,L,S]}else if(i==="scaleX"){var R=parseFloat(l);c=Dc,f=[R,1,1]}else if(i==="scaleY"){var L=parseFloat(l);c=Dc,f=[1,L,1]}else if(i==="scaleZ"){var S=parseFloat(l);c=Dc,f=[1,1,S]}else if(i==="rotate"||i==="rotateZ"||i==="rotateX"||i==="rotateY"){var I=bu(l),j=I.unit,B=I.value,_=j==="rad"?B:B*Math.PI/180;i==="rotate"||i==="rotateZ"?(d="rotateZ",c=fP):i==="rotateX"?c=uP:i==="rotateY"&&(c=dP),f=_}else if(i==="matrix3d")c=zh,f=Sa(l).map(function(O){return parseFloat(O)});else if(i==="matrix"){var D=Sa(l).map(function(O){return parseFloat(O)});c=zh,f=[D[0],D[1],0,0,D[2],D[3],0,0,0,0,1,0,D[4],D[5],0,1]}else d="";return{name:i,functionName:d,value:l,matrixFunction:c,functionValue:f}})}function AP(e){for(var n=5381,t=e.length;t;)n=n*33^e.charCodeAt(--t);return n>>>0}var bP=AP;function yP(e){return bP(e).toString(36)}function xP(e){if(e&&e.getRootNode){var n=e.getRootNode();if(n.nodeType===11)return n}}function vP(e,n,t){return t.original?n:n.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,o){var i=o.trim();return(i?Sa(i):[""]).map(function(l){var c=l.trim();return c.indexOf("@")===0?c:c.indexOf(":global")>-1?c.replace(/\:global/g,""):c.indexOf(":host")>-1?"".concat(c.replace(/\:host/g,".".concat(e))):c?".".concat(e," ").concat(c):".".concat(e)}).join(", ")+" {"})}function wP(e,n,t,r,o){var i=ko(r),l=i.createElement("style");return l.setAttribute("type","text/css"),l.setAttribute("data-styled-id",e),l.setAttribute("data-styled-count","1"),t.nonce&&l.setAttribute("nonce",t.nonce),l.innerHTML=vP(e,n,t),(o||i.head||i.body).appendChild(l),l}function kP(e){var n="rCS"+yP(e);return{className:n,inject:function(t,r){r===void 0&&(r={});var o=xP(t),i=(o||t.ownerDocument||document).querySelector('style[data-styled-id="'.concat(n,'"]'));if(!i)i=wP(n,e,r,t,o);else{var l=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(l+1))}return{destroy:function(){var c,d=parseFloat(i.getAttribute("data-styled-count"))||0;d<=1?(i.remove?i.remove():(c=i.parentNode)===null||c===void 0||c.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(d-1))}}}}}var Kh=function(e,n){return Kh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Kh(e,n)};function _5(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Kh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var Sn=function(){return Sn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Sn.apply(this,arguments)};function SP(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function EP(e,n,t,r){var o=arguments.length,i=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(o<3?l(i):o>3?l(n,t,i):l(n,t))||i);return o>3&&i&&Object.defineProperty(n,t,i),i}function Wa(e,n,t){for(var r=0,o=n.length,i;r<o;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}function TP(e){if("touches"in e){var n=e.touches[0]||e.changedTouches[0];return{clientX:n.clientX,clientY:n.clientY}}else return{clientX:e.clientX,clientY:e.clientY}}function MP(e){if(typeof Map>"u")return e.filter(function(t,r){return e.indexOf(t)===r});var n=new Map;return e.filter(function(t){return n.has(t)?!1:(n.set(t,!0),!0)})}function LP(e,n,t){var r=ko(e);return r.elementFromPoint&&r.elementFromPoint(n,t)||null}function F5(e,n,t){var r=e.tag,o=e.children,i=e.attributes,l=e.className,c=e.style,d=n||ko(t).createElement(r);for(var f in i)d.setAttribute(f,i[f]);var h=d.children;if(o.forEach(function(C,b){F5(C,h[b],d)}),l&&l.split(/\s+/g).forEach(function(C){C&&!SO(d,C)&&EO(d,C)}),c){var g=d.style;for(var f in c)g[f]=c[f]}return!n&&t&&t.appendChild(d),d}function NP(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=n||{},i=o.className,l=i===void 0?"":i,c=o.style,d=c===void 0?{}:c,f=SP(o,["className","style"]);return{tag:e,className:l,style:d,attributes:f,children:t}}function Yf(e,n,t){e!==n&&t(e,n)}function lC(e,n,t){var r;t===void 0&&(t=e.data.boundArea);var o=e.distX,i=o===void 0?0:o,l=e.distY,c=l===void 0?0:l,d=e.data,f=d.startX,h=d.startY;if(n>0){var g=Math.sqrt((i*i+c*c)/(1+n*n)),C=n*g;i=(i>=0?1:-1)*C,c=(c>=0?1:-1)*g}var b=Math.abs(i),y=Math.abs(c),x=i<0?f-t.left:t.right-f,w=c<0?h-t.top:t.bottom-h;r=xO([b,y],[0,0],[x,w],!!n),b=r[0],y=r[1],i=(i>=0?1:-1)*b,c=(c>=0?1:-1)*y;var k=Math.min(0,i),T=Math.min(0,c),R=f+k,N=h+T;return{left:R,top:N,right:R+b,bottom:N+y,width:b,height:y}}function Oc(e){var n=e.getBoundingClientRect(),t=n.left,r=n.top,o=n.width,i=n.height;return{pos1:[t,r],pos2:[t+o,r],pos3:[t,r+i],pos4:[t+o,r+i]}}function cC(e,n,t){var r=Ea(e,n),o=r.list,i=r.prevList,l=r.added,c=r.removed,d=r.maintained;return Wa(Wa(Wa([],l.map(function(f){return o[f]}),!0),c.map(function(f){return i[f]}),!0),t?d.map(function(f){var h=f[1];return o[h]}):[])}function uC(e){for(var n=0,t=e.length,r=1;r<t;++r)n=Math.max(Dh(e[r],e[r-1]),n);return n}var W5=kP(`
|
|
300
|
-
:host {
|
|
301
|
-
position: fixed;
|
|
302
|
-
display: none;
|
|
303
|
-
border: 1px solid #4af;
|
|
304
|
-
background: rgba(68, 170, 255, 0.5);
|
|
305
|
-
pointer-events: none;
|
|
306
|
-
will-change: transform;
|
|
307
|
-
z-index: 100;
|
|
308
|
-
}
|
|
309
|
-
`),Uh="selecto-selection ".concat(W5.className),op=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],jP=Wa(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],op),z5=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],RP=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],IP=(function(e){_5(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;o.selectedTargets=[],o.dragScroll=new VO,o._onDragStart=function(c,d){var f=c.data,h=c.clientX,g=c.clientY,C=c.inputEvent,b=o.options,y=b.selectFromInside,x=b.selectByClick,w=b.rootContainer,k=b.boundContainer,T=b.preventDragFromInside,R=T===void 0?!0:T,N=b.clickBySelectEnd,L=b.dragCondition;if(L&&!L(c)){c.stop();return}f.data={};var M=Oi(o.container);f.innerWidth=M.innerWidth,f.innerHeight=M.innerHeight,o.findSelectableTargets(f),f.startSelectedTargets=o.selectedTargets,f.scaleMatrix=rp(),f.containerX=0,f.containerY=0;var S=o.container,I={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(w){var j=o.container.getBoundingClientRect();f.containerX=j.left,f.containerY=j.top,f.scaleMatrix=mP(o.container,w)}if(k){var B=pi(k)&&"element"in k?Sn({left:!0,top:!0,bottom:!0,right:!0},k):{element:k,left:!0,top:!0,bottom:!0,right:!0},_=B.element,D=void 0;if(_){rl(_)?D=ko(S).querySelector(_):_===!0?D=o.container:D=_;var O=D.getBoundingClientRect();B.left&&(I.left=O.left),B.top&&(I.top=O.top),B.right&&(I.right=O.right),B.bottom&&(I.bottom=O.bottom)}}f.boundArea=I;var W={left:h,top:g,right:h,bottom:g,width:0,height:0},K=[],F=x&&!N,Y=!1;if(!y||F){var q=o._findElement(d||C.target,f.selectableTargets);Y=!!q,F&&(K=q?[q]:[])}var ee=!y&&Y;if(ee&&!x)return c.stop(),!1;var Q=C.type,J=Q==="mousedown"||Q==="touchstart",xe=!c.isClick&&J?o.emit("dragStart",Sn(Sn({},c),{data:f.data})):!0;if(!xe)return c.stop(),!1;if(o.continueSelect?(K=cC(o.selectedTargets,K,o.continueSelectWithoutDeselect),f.startPassedTargets=o.selectedTargets):f.startPassedTargets=[],o._select(K,W,c,!0,ee&&x&&!N&&R),f.startX=h,f.startY=g,f.selectFlag=!1,f.preventDragFromInside=!1,C.target){var we=Hf(f.scaleMatrix,[h-f.containerX,g-f.containerY]);o.target.style.cssText+="position: ".concat(w?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(we[0],"px, ").concat(we[1],"px)")}if(ee&&x&&!N)C.preventDefault(),R&&(o._selectEnd(f.startSelectedTargets,f.startPassedTargets,W,c,!0),f.preventDragFromInside=!0);else{f.selectFlag=!0;var Te=o.options,We=Te.scrollOptions,ie=Te.innerScrollOptions,X=!1;if(ie){for(var ae=c.inputEvent,pe=ae.target,Ce=null,G=pe;G&&G!==ko(S).body;){var he=getComputedStyle(G).overflow!=="visible";if(he){Ce=G;break}G=G.parentElement}Ce&&(f.innerScrollOptions=Sn({container:Ce,checkScrollEvent:!0},ie===!0?{}:ie),o.dragScroll.dragStart(c,f.innerScrollOptions),X=!0)}!X&&We&&We.container&&o.dragScroll.dragStart(c,We),ee&&x&&N&&(f.selectFlag=!1,c.preventDrag())}return!0},o._onDrag=function(c){if(c.data.selectFlag){var d=o.scrollOptions,f=c.data.innerScrollOptions,h=f||(d==null?void 0:d.container);if(h&&!c.isScroll&&o.dragScroll.drag(c,f||d))return}o._checkSelected(c)},o._onDragEnd=function(c){var d=c.data,f=c.inputEvent,h=lC(c,o.options.ratio),g=d.selectFlag,C=o.container;if(f&&o.emit("dragEnd",Sn(Sn({isDouble:!!c.isDouble,isClick:!!c.isClick,isDrag:!1,isSelect:g},c),{data:d.data,rect:h})),o.target.style.cssText+="display: none;",g)d.selectFlag=!1,o.dragScroll.dragEnd();else if(o.selectByClick&&o.clickBySelectEnd){var b=o._findElement((f==null?void 0:f.target)||LP(C,c.clientX,c.clientY),d.selectableTargets);o._select(b?[b]:[],h,c)}d.preventDragFromInside||o._selectEnd(d.startSelectedTargets,d.startPassedTargets,h,c)},o._onKeyDown=function(c){var d=o.options,f=!1;if(!o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect);o._keydownContinueSelect=h,f||(f=h)}if(!o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect);o._keydownContinueSelectWithoutDeselection=h,f||(f=h)}f&&o.emit("keydown",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onKeyUp=function(c){var d=o.options,f=!1;if(o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect,!0);o._keydownContinueSelect=!h,f||(f=h)}if(o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect,!0);o._keydownContinueSelectWithoutDeselection=!h,f||(f=h)}f&&o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onBlur=function(){(o._keydownContinueSelect||o._keydownContinueSelectWithoutDeselection)&&(o._keydownContinueSelect=!1,o._keydownContinueSelectWithoutDeselection=!1,o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection}))},o._onDocumentSelectStart=function(c){var d=ko(o.container);if(o.gesto.isFlag()){var f=o.dragContainer;f===Oi(o.container)&&(f=d.documentElement);var h=$2(f)?[f]:[].slice.call(f),g=c.target;h.some(function(C){if(C===g||C.contains(g))return c.preventDefault(),!0})}},o.target=r.portalContainer;var i=r.container;o.options=Sn({className:"",portalContainer:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,clickBySelectEnd:!1,hitRate:100,continueSelect:!1,continueSelectWithoutDeselect:!1,toggleContinueSelect:null,toggleContinueSelectWithoutDeselect:null,keyContainer:null,scrollOptions:null,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,dragCondition:null,rootContainer:null,checkOverflow:!1,innerScrollOptions:!1,getElementRect:Oc,cspNonce:"",ratio:0},r);var l=o.options.portalContainer;return l&&(i=l.parentElement),o.container=i||document.body,o.initElement(),o.initDragScroll(),o.setKeyController(),o}var t=n.prototype;return t.setSelectedTargets=function(r){var o=this.selectedTargets,i=Ea(o,r),l=i.added,c=i.removed,d=i.prevList,f=i.list;return this.selectedTargets=r,{added:l.map(function(h){return f[h]}),removed:c.map(function(h){return d[h]}),beforeSelected:o,selected:r}},t.setSelectedTargetsByPoints=function(r,o){var i=Math.min(r[0],o[0]),l=Math.min(r[1],o[1]),c=Math.max(r[0],o[0]),d=Math.max(r[1],o[1]),f={left:i,top:l,right:c,bottom:d,width:c-i,height:d-l},h={ignoreClick:!0};this.findSelectableTargets(h);var g=this.hitTest(f,h,!0,null),C=this.setSelectedTargets(g);return Sn(Sn({},C),{rect:f})},t.selectTargetsByPoints=function(r,o){var i=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),c=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),d=this.gesto,f=d.onDragStart(i);f!==!1&&(d.onDrag(l),d.onDragEnd(c))},t.getSelectedTargets=function(){return this.selectedTargets},t.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},t.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),gn(document,"selectstart",this._onDocumentSelectStart),this.options.portalContainer||(r=this.target.parentElement)===null||r===void 0||r.removeChild(this.target),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},t.getElementPoints=function(r){var o=this.getElementRect||Oc,i=o(r),l=[i.pos1,i.pos2,i.pos4,i.pos3];if(o!==Oc){var c=r.getBoundingClientRect();return rP(l,c)}return l},t.getSelectableElements=function(){var r=this.container,o=[];return this.options.selectableTargets.forEach(function(i){if(ep(i)){var l=i();l&&o.push.apply(o,[].slice.call(l))}else if($2(i))o.push(i);else if(pi(i))o.push(i.value||i.current);else{var c=[].slice.call(ko(r).querySelectorAll(i));o.push.apply(o,c)}}),o},t.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,o=this.gesto.getEventData().innerScrollOptions,i=o||(r==null?void 0:r.container);i&&this.dragScroll.checkScroll(Sn({inputEvent:this.gesto.getCurrentEvent()},o||r))}},t.findSelectableTargets=function(r){var o=this;r===void 0&&(r=this.gesto.getEventData());var i=this.getSelectableElements(),l=i.map(function(g){return o.getElementPoints(g)});r.selectableTargets=i,r.selectablePoints=l,r.selectableParentMap=null;var c=this.options,d=c.checkOverflow||c.innerScrollOptions,f=ko(this.container);if(d){var h=new Map;r.selectableInnerScrollParentMap=h,r.selectableInnerScrollPathsList=i.map(function(g,C){for(var b=g.parentElement,y=[],x=[],w=function(){var k=h.get(b);if(!k){var T=getComputedStyle(b).overflow!=="visible";if(T){var R=Oc(b);k={parentElement:b,indexes:[],points:[R.pos1,R.pos2,R.pos4,R.pos3],paths:Wa([],x)},y.push(b),y.forEach(function(N){h.set(N,k)}),y=[]}}k?(b=k.parentElement,h.get(b).indexes.push(C),x.push(b)):y.push(b),b=b.parentElement};b&&b!==f.body;)w();return x})}return c.checkOverflow||(r.selectableInners=i.map(function(){return!0})),this._refreshGroups(r),i},t.clickTarget=function(r,o){var i=TP(r),l=i.clientX,c=i.clientY,d={data:{selectFlag:!1},clientX:l,clientY:c,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(d,o)&&this._onDragEnd(d),this},t.setKeyController=function(){var r=this.options,o=r.keyContainer,i=r.toggleContinueSelect,l=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(i||l)&&(this.keycon=new $O(o||Oi(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},t.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(Uh," ").concat(r||""))},t.setKeyEvent=function(){var r=this.options,o=r.toggleContinueSelect,i=r.toggleContinueSelectWithoutDeselect;!o&&!i||this.keycon||this.setKeyController()},t.setKeyContainer=function(r){var o=this,i=this.options;Yf(i.keyContainer,r,function(){i.keyContainer=r,o.setKeyController()})},t.getContinueSelect=function(){var r=this.options,o=r.continueSelect,i=r.toggleContinueSelect;return!i||!this._keydownContinueSelect?o:!o},t.getContinueSelectWithoutDeselect=function(){var r=this.options,o=r.continueSelectWithoutDeselect,i=r.toggleContinueSelectWithoutDeselect;return!i||!this._keydownContinueSelectWithoutDeselection?o:!o},t.setToggleContinueSelect=function(r){var o=this,i=this.options;Yf(i.toggleContinueSelect,r,function(){i.toggleContinueSelect=r,o.setKeyEvent()})},t.setToggleContinueSelectWithoutDeselect=function(r){var o=this,i=this.options;Yf(i.toggleContinueSelectWithoutDeselect,r,function(){i.toggleContinueSelectWithoutDeselect=r,o.setKeyEvent()})},t.setPreventDefault=function(r){this.gesto.options.preventDefault=r},t.setCheckInput=function(r){this.gesto.options.checkInput=r},t.initElement=function(){var r=this.options,o=r.dragContainer,i=r.checkInput,l=r.preventDefault,c=r.preventClickEventOnDragStart,d=r.preventClickEventOnDrag,f=r.preventClickEventByCondition,h=r.preventRightClick,g=h===void 0?!0:h,C=r.className,b=this.container;this.target=F5(NP("div",{className:"".concat(Uh," ").concat(C||"")}),this.target,b);var y=this.target;this.dragContainer=typeof o=="string"?[].slice.call(ko(b).querySelectorAll(o)):o||this.target.parentNode,this.gesto=new DO(this.dragContainer,{checkWindowBlur:!0,container:Oi(b),checkInput:i,preventDefault:l,preventClickEventOnDragStart:c,preventClickEventOnDrag:d,preventClickEventByCondition:f,preventRightClick:g}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),En(document,"selectstart",this._onDocumentSelectStart),this.injectResult=W5.inject(y,{nonce:this.options.cspNonce})},t.hitTest=function(r,o,i,l){var c=this.options,d=c.hitRate,f=c.selectByClick,h=r.left,g=r.top,C=r.right,b=r.bottom,y=o.innerGroups,x=o.innerWidth,w=o.innerHeight,k=l==null?void 0:l.clientX,T=l==null?void 0:l.clientY,R=o.ignoreClick,N=[[h,g],[C,g],[C,b],[h,b]],L=function(q,ee){var Q=bu(typeof d=="function"?"".concat(d(ee)):"".concat(d)),J=R?!1:Fh([k,T],q);if(!i&&f&&J)return!0;var xe=aC(N,q);if(!xe.length)return!1;var we=Kf(xe),Te=0;if(we===0&&Kf(q)===0?(Te=uC(q),we=uC(xe)):Te=Kf(q),Q.unit==="px")return we>=Q.value;var We=N5(Math.round(we/Te*100),0,100);return We>=Math.min(100,Q.value)},M=o.selectableTargets,S=o.selectablePoints,I=o.selectableInners;if(!y)return M.filter(function(q,ee){return I[ee]?L(S[ee],M[ee]):!1});for(var j=[],B=Math.floor(h/x),_=Math.floor(C/x),D=Math.floor(g/w),O=Math.floor(b/w),W=B;W<=_;++W){var K=y[W];if(K)for(var F=D;F<=O;++F){var Y=K[F];Y&&Y.forEach(function(q){var ee=S[q],Q=I[q],J=M[q];Q&&L(ee,J)&&j.push(J)})}}return MP(j)},t.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(o){var i=o.next;i(r.gesto.getCurrentEvent())}).on("scroll",function(o){var i=o.container,l=o.direction,c=r.gesto.getEventData().innerScrollOptions;c?r.emit("innerScroll",{container:i,direction:l}):r.emit("scroll",{container:i,direction:l})}).on("move",function(o){var i=o.offsetX,l=o.offsetY,c=o.inputEvent,d=r.gesto;if(!(!d||!d.isFlag())){var f=r.gesto.getEventData(),h=f.boundArea;f.startX-=i,f.startY-=l;var g=r.gesto.getEventData().innerScrollOptions,C=g==null?void 0:g.container,b=!1;if(C){var y=f.selectableInnerScrollParentMap,x=y.get(C);x&&(x.paths.forEach(function(w){var k=y.get(w);k.points.forEach(function(T){T[0]-=i,T[1]-=l})}),x.indexes.forEach(function(w){f.selectablePoints[w].forEach(function(k){k[0]-=i,k[1]-=l})}),b=!0)}b||f.selectablePoints.forEach(function(w){w.forEach(function(k){k[0]-=i,k[1]-=l})}),r._refreshGroups(f),h.left-=i,h.right-=i,h.top-=l,h.bottom-=l,r.gesto.scrollBy(i,l,c.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},t._select=function(r,o,i,l,c){c===void 0&&(c=!1);var d=i.inputEvent,f=i.data,h=this.setSelectedTargets(r),g=Ea(f.startSelectedTargets,r),C=g.added,b=g.removed,y=g.prevList,x=g.list,w={startSelected:y,startAdded:C.map(function(k){return x[k]}),startRemoved:b.map(function(k){return y[k]})};l&&this.emit("selectStart",Sn(Sn(Sn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:i.isTrusted,isDragStartEnd:c})),(h.added.length||h.removed.length)&&this.emit("select",Sn(Sn(Sn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:i.isTrusted,isDragStartEnd:c}))},t._selectEnd=function(r,o,i,l,c){c===void 0&&(c=!1);var d=l.inputEvent,f=l.isDouble,h=l.data,g=d&&d.type,C=g==="mousedown"||g==="touchstart",b=Ea(r,this.selectedTargets),y=b.added,x=b.removed,w=b.prevList,k=b.list,T=Ea(o,this.selectedTargets),R=T.added,N=T.removed,L=T.prevList,M=T.list;this.emit("selectEnd",{startSelected:r,beforeSelected:o,selected:this.selectedTargets,added:y.map(function(S){return k[S]}),removed:x.map(function(S){return w[S]}),afterAdded:R.map(function(S){return M[S]}),afterRemoved:N.map(function(S){return L[S]}),isDragStart:C&&c,isDragStartEnd:C&&c,isClick:!!l.isClick,isDouble:!!f,rect:i,inputEvent:d,data:h.data,isTrusted:l.isTrusted})},t._checkSelected=function(r,o){o===void 0&&(o=lC(r,this.options.ratio));var i=r.data,l=o.top,c=o.left,d=o.width,f=o.height,h=i.selectFlag,g=i.containerX,C=i.containerY,b=i.scaleMatrix,y=Hf(b,[c-g,l-C]),x=Hf(b,[d,f]),w=[];if(h){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(y[0],"px, ").concat(y[1],"px);")+"width:".concat(x[0],"px;height:").concat(x[1],"px;");var k=this.hitTest(o,i,!0,r);w=cC(i.startPassedTargets,k,this.continueSelect&&this.continueSelectWithoutDeselect)}var T=this.emit("drag",Sn(Sn({},r),{data:i.data,isSelect:h,rect:o}));if(T===!1){this.target.style.cssText+="display: none;",r.stop();return}h&&this._select(w,o,r)},t._sameCombiKey=function(r,o,i){if(!o)return!1;var l=I5(r.inputEvent,r.key),c=[].concat(o),d=Au(c[0])?c:[c];if(i){var f=r.key;return d.some(function(h){return h.some(function(g){return g===f})})}return d.some(function(h){return h.every(function(g){return l.indexOf(g)>-1})})},t._findElement=function(r,o){for(var i=r;i&&!(o.indexOf(i)>-1);)i=i.parentElement;return i},t._refreshGroups=function(r){var o,i=r.innerWidth,l=r.innerHeight,c=r.selectablePoints;if(this.options.checkOverflow){var d=(o=this.gesto.getEventData().innerScrollOptions)===null||o===void 0?void 0:o.container,f=r.selectableInnerScrollParentMap,h=r.selectableInnerScrollPathsList;r.selectableInners=h.map(function(b,y){var x=!1;return b.every(function(w){if(x)return!0;if(w===d)return x=!0,!0;var k=f.get(w);if(k){var T=c[y],R=k.points,N=aC(T,R);if(!N.length)return!1}return!0})})}if(!i||!l)r.innerGroups=null;else{var g=r.selectablePoints,C={};g.forEach(function(b,y){var x=1/0,w=-1/0,k=1/0,T=-1/0;b.forEach(function(L){var M=Math.floor(L[0]/i),S=Math.floor(L[1]/l);x=Math.min(M,x),w=Math.max(M,w),k=Math.min(S,k),T=Math.max(S,T)});for(var R=x;R<=w;++R)for(var N=k;N<=T;++N)C[R]=C[R]||{},C[R][N]=C[R][N]||[],C[R][N].push(y)}),r.innerGroups=C}},n=EP([PO(op,function(r,o){var i={enumerable:!0,configurable:!0,get:function(){return this.options[o]}},l=Rh("get ".concat(o));r[l]?i.get=function(){return this[l]()}:i.get=function(){return this.options[o]};var c=Rh("set ".concat(o));r[c]?i.set=function(d){this[c](d)}:i.set=function(d){this.options[o]=d},Object.defineProperty(r,o,i)})],n),n})(Ju),DP=(function(e){_5(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(IP),Hh=function(e,n){return Hh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Hh(e,n)};function OP(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Hh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var vu=function(){return vu=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},vu.apply(this,arguments)};function PP(e,n,t,r){var o=arguments.length,i=o<3?n:r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(o<3?l(i):o>3?l(n,t,i):l(n,t))||i);return o>3&&i&&Object.defineProperty(n,t,i),i}var dC=z5.map(function(e){return Rh("on ".concat(e))}),BP=(function(e){OP(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}var t=n.prototype;return t.render=function(){return m.createElement("div",{className:Uh,ref:OO(this,"selectionElement")})},t.componentDidMount=function(){var r=this,o=this.props,i={};jP.forEach(function(l){l in o&&(i[l]=o[l])}),this.selecto=new DP(vu(vu({},i),{portalContainer:this.selectionElement})),z5.forEach(function(l,c){r.selecto.on(l,function(d){var f=r.props,h=f[dC[c]]&&f[dC[c]](d);h===!1&&d.stop()})})},t.componentDidUpdate=function(r){var o=this.props,i=this.selecto;op.forEach(function(l){r[l]!==o[l]&&(i[l]=o[l])})},t.componentWillUnmount=function(){this.selecto.destroy()},PP([BO(RP)],n.prototype,"selecto",void 0),n})(m.PureComponent);const _P=({editor:e})=>{const{disable:n}=m.useContext(ft),t=m.useRef(null),[r,o]=m.useState({depth:0,targets:ph});return m.useEffect(()=>{const i=()=>{var l;return(l=t.current)==null?void 0:l.checkScroll()};return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}},[e]),m.useEffect(()=>{let i=null;const l=()=>{i=ve.mergeRegister(e.registerCommand(p.KEY_ESCAPE_COMMAND,()=>{var C;const f=((C=t.current)==null?void 0:C.getSelectedTargets())||[],{hasSelectedBlock:h,selectedAllDocument:g}=ti();if(h)f.forEach(b=>Oo(b));else if(g){const b=document.querySelector("div.ContentEditable__root");b==null||b.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL),e.registerCommand(p.KEY_DOWN_COMMAND,f=>{var x,w;const{hasSelectedBlock:h,selectedAllDocument:g}=ti();if(xS(e,f,t.current))return!0;if((f.metaKey||f.ctrlKey)&&(f.code==="KeyX"||f.code==="KeyC")&&g){f.preventDefault();const k=p.$getRoot(),T=p.$createNodeSelection(),R=M=>{T.add(M.getKey()),p.$isElementNode(M)&&M.getChildren().forEach(R)};k.getChildren().forEach(R);const N=Ka.$getClipboardDataFromSelection(T),L=f.code==="KeyX";if(L){const M=document.querySelector("div.ContentEditable__root");M==null||M.classList.remove("selected-all-document")}return setTimeout(()=>{Ka.copyToClipboard(e,null,N).then(()=>{L&&(e.update(()=>{const M=p.$getRoot();M.getChildren().forEach(S=>S.remove()),M.getChildrenSize()===0&&M.append(p.$createParagraphNode())},{tag:"historic"}),e.dispatchCommand(ii,!0))})},0),!0}const b=f.ctrlKey||f.metaKey||f.altKey;if(b)return!1;const y=f.key.length===1&&!b&&!f.isComposing;if(y&&g)return f.preventDefault(),!0;if(y&&h){const k=((x=t.current)==null?void 0:x.getSelectedTargets())||[],T=k.length>0?k:Array.from(document.querySelectorAll('[contenteditable="true"] > .selected-block'));if(T.length===0)return!1;f.preventDefault();const R=f.key;return e.update(()=>{const N=T.map(S=>p.$getNearestNodeFromDOMNode(S)).filter(S=>S!=null);if(N.length===0)return;const L=N[0],M=p.$createParagraphNode().append(p.$createTextNode(R));L.replace(M),N.slice(1).forEach(S=>S.remove()),M.selectEnd()}),T.forEach(N=>Oo(N)),(w=t.current)==null||w.setSelectedTargets([]),!0}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CUT_COMMAND,()=>{const{selectedAllDocument:f}=ti();if(f){const h=document.querySelector("div.ContentEditable__root");h==null||h.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL))},c=e.registerUpdateListener(()=>{const{hasSelectedBlock:f,selectedAllDocument:h}=ti(),g=f||h;g&&!i?l():!g&&i&&(i(),i=null)}),d=f=>{const h=f.target;if(h.closest(".video-container"))return;const g=t.current;if(!g)return;const C=h.closest(".resizable-container__inner")||h.closest("iframe");C instanceof HTMLElement&&(C.classList.contains("selected-block")||(C.classList.add("selected-block"),g.setSelectedTargets([C]),setTimeout(()=>{var b,y;(y=(b=g.props).onSelectEnd)==null||y.call(b,e)},100)))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d),i&&i(),c()}},[e]),n?null:s.jsx(BP,{ref:t,className:"editor-selecto",dragContainer:".editor",selectableTargets:r.targets,selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:i=>{const l=i.inputEvent.target;if(!l.closest(".editor")&&!l.closest(".editor-scroller")){i.stop();return}if(document.body.classList.contains("table-drag-active")||l.closest(".dsd__theme__tableAddRows")||l.closest(".dsd__theme__tableAddColumns")||l.closest(".dsd__theme__tableAddCorner")||l.closest(".table-cell-action-button-container")){i.stop();return}if(l.closest(".draggable-block-container")||l.closest(".draggable-block-target-line")){i.stop();return}document.body.classList.add("editor-selecting")},onSelectEnd:()=>{document.body.classList.remove("editor-selecting"),AS(e),o({targets:ph,depth:0})},onSelect:i=>wS(i,e,r,o,t.current),scrollOptions:vS,onScroll:i=>{document.documentElement.scrollBy(i.direction[0]*10,i.direction[1]*10)}})};function FP({editor:e,value:n,disabled:t=!1,setElementFormat:r}){const{t:o,i18n:i}=Ue.useTranslation(),l=m.useMemo(()=>A5(o),[i.language]),c=m.useMemo(()=>n==="start"||n==="end"?l.left:l[n||"left"],[n,l]),d=C=>{r(C),e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,C)},f=n==="start"||n==="end"?"left":n||"left",[h,g]=m.useState(!1);return rt?s.jsxs(s.Fragment,{children:[s.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment","data-test-id":"toolbar-align-menu",onClick:()=>g(!0),children:[s.jsx("span",{className:"toolbar-light-btn__icon",children:s.jsx($,{icon:c.icon,size:20,color:"currentColor"})}),s.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:s.jsx($,{icon:Jr,size:16,color:"currentColor"})})]}),s.jsx(Bt,{opened:h,onClose:()=>g(!1),title:o("editor.toolbar.align"),children:s.jsx(v.Stack,{gap:2,pb:"sm",children:C5.map(C=>{const b=f===C.format;return s.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":b||void 0,"data-test-id":C.testIdToolbar,onClick:()=>{d(C.format),g(!1)},children:[s.jsx("div",{className:"mobile-slash-menu__item-icon",children:s.jsx($,{icon:C.icon,size:16})}),s.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:l[C.format].name}),b&&s.jsx($,{className:"mobile-slash-menu__item-check",icon:Jn,size:16})]},C.format)})})})]}):s.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},onChange:g,children:[s.jsx(v.Menu.Target,{children:s.jsx(v.Tooltip,{label:o("editor.toolbar.align"),children:s.jsxs("button",{disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-align-menu",children:[s.jsx("span",{className:"toolbar-light-btn__icon",children:s.jsx($,{icon:c.icon,size:20,color:"currentColor"})}),s.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:s.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})}),s.jsx(v.Menu.Dropdown,{onMouseDown:C=>C.preventDefault(),children:s.jsx("div",{className:"toolbar-dropdown-list",children:s.jsx(b5,{effectiveValue:f,onAlignmentSelect:d,showShortcuts:!0,testScope:"toolbar"})})})]})}function WP(e,n=40){const[t,r]=m.useState(""),o=m.useRef(0),i=m.useRef(null),l=m.useRef(null);return m.useEffect(()=>{if(i.current&&clearInterval(i.current),r(""),o.current=0,!!e)return i.current=window.setInterval(()=>{r(c=>{const d=e[o.current];return o.current+=1,o.current>=e.length&&clearInterval(i.current),c+(d||"")})},n),()=>{i.current&&clearInterval(i.current)}},[e,n]),m.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[t]),{displayedText:t,containerRef:l}}const zP=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([o]),r()}})},KP=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([]);const i=o.getParent()??t.focus.getNode().getParent();if(i){const l=t.focus.getNode().getNextSibling();l?l.insertBefore(o):i.append(o),r()}}})},UP=(e,n="",t,r)=>{e.update(()=>{if(!p.$isRangeSelection(t))return;const i=t.anchor.getNode().getTopLevelElementOrThrow(),l=p.$createParagraphNode();n&&l.append(p.$createTextNode(n)),i.insertAfter(l),r()})},HP=(e,n)=>{e.update(()=>{const t=p.$getSelection();if(p.$isRangeSelection(t)){const r=t.getTextContent();n(r)}})},YP=({editor:e,response:n,onSubmit:t,setTypeMenu:r,onClose:o,t:i,selection:l})=>s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-back",leftSection:s.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:i("editor.ai.back")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-replace",onClick:()=>{zP(e,n,l,o)},leftSection:s.jsx(Ee.IconReplace,{size:14}),children:i("editor.ai.menu.answer.replaceSelection")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-inline",onClick:()=>{KP(e,` ${n}`,l,o)},leftSection:s.jsx(Ee.IconTextPlus,{size:14}),children:i("editor.ai.menu.answer.addTextInline")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-below",onClick:()=>{UP(e,n,l,o),o()},leftSection:s.jsx(Ee.IconIndentIncrease,{size:14}),children:i("editor.ai.menu.answer.addBelowParagraph")}),s.jsx(v.Menu.Divider,{}),s.jsx(v.Menu.Label,{children:i("editor.ai.menu.answer.modifyFurther")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-continue",onClick:()=>{t(`Start with this text and continue. Output this text at the start: "${n}"`,!1)},leftSection:s.jsx(Ee.IconPlayerPlay,{size:14}),children:i("editor.ai.menu.answer.continueWriting")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-regenerate",onClick:()=>{t("Regenerate this text with another way: ")},leftSection:s.jsx(Ee.IconReload,{size:14}),children:i("editor.ai.menu.answer.regenerate")}),s.jsx(v.Menu.Item,{"data-test-id":"ai-answer-discard",onClick:o,leftSection:s.jsx(Ee.IconTrash,{size:14}),children:i("editor.ai.menu.answer.discard")})]}),ZP=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],GP=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],VP=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:s.jsx(Ee.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:s.jsx(Ee.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:s.jsx(Ee.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:s.jsx(Ee.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:s.jsx(Ee.IconNotes,{size:14})},{title:"translate",icon:s.jsx(Ee.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:s.jsx(Ee.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:s.jsx(Ee.IconHelpOctagon,{size:14})}]}],qP=({setTypeMenu:e,onSubmit:n,t})=>s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{"data-test-id":"ai-lang-back",leftSection:s.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),ZP.map(r=>s.jsx(v.Menu.Item,{"data-test-id":`ai-lang-${r}`,onClick:()=>{n(`Translate text into the ${r} language`)},children:t(`editor.ai.menu.languages.${r}`)},r))]}),QP=({setTypeMenu:e,onSubmit:n,t})=>s.jsx(s.Fragment,{children:VP.map(r=>s.jsxs("div",{children:[s.jsx(v.Menu.Label,{children:t(`editor.ai.menu.main.${r.title}`)}),r.options.map(o=>s.jsx(v.Menu.Item,{"data-test-id":`ai-op-${o.title}`,onClick:()=>{if(o.type){e(o.type);return}n(o.prompt||"")},leftSection:o.icon,children:t(`editor.ai.menu.main.${o.title}`)},o.title))]},r.title))}),JP=({setTypeMenu:e,onSubmit:n,t})=>s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{"data-test-id":"ai-style-back",leftSection:s.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),GP.map(r=>s.jsx(v.Menu.Item,{"data-test-id":`ai-style-${r}`,onClick:()=>{n(`Change text into ${r} style`)},children:t(`editor.ai.menu.style.${r}`)},r))]}),XP=({keyType:e,setTypeMenu:n,editor:t,onSubmit:r,response:o,onClose:i,t:l,selection:c})=>{switch(e){case"main":return s.jsx(QP,{t:l,setTypeMenu:n,onSubmit:r});case"answer":return s.jsx(YP,{t:l,onSubmit:r,editor:t,response:o,setTypeMenu:n,onClose:i,selection:c});case"language":return s.jsx(qP,{t:l,onSubmit:r,setTypeMenu:n});case"style":return s.jsx(JP,{t:l,onSubmit:r,setTypeMenu:n});default:return null}},$P=()=>{var W;const[e,n]=m.useState({top:"0px",bottom:"auto"}),[t,r]=m.useState(!1),[o,i]=m.useState(!1),[l]=ot.useLexicalComposerContext(),[c,d]=m.useState("main"),[f,h]=m.useState(""),[g,C]=m.useState(""),[b,y]=m.useState(""),[x,w]=m.useState(null),[k,T]=m.useState(!1),{fetchPromptResult:R,onTrack:N}=m.useContext(ft),{t:L}=Ue.useTranslation(),[M,S]=Ft.useResizeObserver(),I=()=>{r(!1),i(!1),y(""),d("main"),setTimeout(()=>{n({top:"0px",bottom:"auto"})},200)},j=Ft.useClickOutside(()=>{I()});m.useEffect(()=>{t?(HP(l,C),document.documentElement.style.overflow="hidden",l.update(()=>{const K=p.$getSelection();K&&w(K)}),setTimeout(()=>{var K;(K=D.current)==null||K.focus()},400)):(d("main"),document.documentElement.style.overflow="auto",y(""))},[t]);const{displayedText:B,containerRef:_}=WP(b,10),D=m.useRef(null),O=(K,F=!0)=>{const Y=K+` "${F?g:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;T(!0),R&&R(Y,q=>{y(q),T(!1),d("answer"),h("")},()=>{T(!1)})};return m.useEffect(()=>{var F,Y,q;const{bottom:K}=((F=M.current)==null?void 0:F.getBoundingClientRect())||{bottom:0};if(K>window.innerHeight){const ee=(((q=(Y=l._rootElement)==null?void 0:Y.getBoundingClientRect())==null?void 0:q.bottom)||0)-window.innerHeight;n({...e,top:"auto",bottom:`${ee}px`})}},[S.height,t,M.current]),(W=l._rootElement)!=null&&W.parentElement?s.jsxs(s.Fragment,{children:[e.top?Br.createPortal(s.jsx(v.Transition,{mounted:!!t,transition:"scale-x",duration:300,timingFunction:"ease",children:K=>s.jsx(v.Box,{ref:j,"data-test-id":"ai-menu",style:{position:"absolute",...e,...K},className:"ai-editor-menu",children:s.jsxs(v.Menu,{opened:!!o,closeOnItemClick:!1,position:"bottom-start",zIndex:300,transitionProps:{transition:"fade",duration:300},styles:{dropdown:{overflow:"auto"}},offset:8,middlewares:{flip:!0,size:{apply({availableHeight:F,elements:Y}){requestAnimationFrame(()=>{Object.assign(Y.floating.style,{maxHeight:`${F>=425?425:F}px`})})}}},disabled:k,children:[s.jsx(v.Menu.Target,{children:s.jsxs(v.Paper,{withBorder:!0,ref:M,shadow:"lg",radius:"md",p:"0",px:"xs",children:[b&&s.jsxs(s.Fragment,{children:[s.jsxs(v.Group,{"data-test-id":"ai-response",gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:_,children:[s.jsx(v.Box,{style:{flex:1},w:"auto",py:"xs",children:B}),s.jsx(v.Box,{w:"auto",mt:"xs",children:s.jsx(v.CopyButton,{value:b,timeout:2e3,children:({copied:F,copy:Y})=>s.jsx(v.Tooltip,{label:L(F?"editor.ai.copied":"editor.ai.copy"),withArrow:!0,position:"right",children:s.jsx(v.ActionIcon,{"data-test-id":"ai-copy-button",color:F?"teal":"gray",variant:"subtle",onClick:Y,children:F?s.jsx(Ee.IconCheck,{size:16}):s.jsx(Ee.IconCopy,{size:16})})})})})]}),s.jsx(v.Divider,{my:"0"})]}),s.jsx(v.Box,{onMouseDown:F=>F.stopPropagation(),onClick:F=>F.stopPropagation(),children:s.jsx(v.Input,{ref:D,"data-test-id":"ai-input",size:"md",placeholder:L("editor.ai.placeholder"),rightSectionPointerEvents:"all",variant:"unstyled",value:f,onKeyDown:F=>{if(F.key==="Enter"){if(k)return;O(f)}},onChange:F=>{h(F.target.value)},rightSection:s.jsx(s.Fragment,{children:k?s.jsx(v.Loader,{"data-test-id":"ai-loader",color:"violet",size:"16",mr:"xs"}):s.jsx(v.ActionIcon,{"data-test-id":"ai-submit",color:"violet",disabled:!f,variant:"subtle",onClick:()=>{O(f)},children:s.jsx(Ee.IconSparkles,{size:16})})})})})]})}),s.jsx(v.Menu.Dropdown,{"data-test-id":"ai-menu-dropdown",className:"menu-dropdown-ai",onMouseDown:F=>{F.stopPropagation()},children:s.jsx(XP,{keyType:c,setTypeMenu:d,editor:l,onSubmit:O,response:b,onClose:I,t:L,selection:x})})]})})}),l._rootElement.parentElement):null,s.jsx("svg",{width:"0",height:"0","aria-hidden":"true",style:{position:"absolute"},children:s.jsx("defs",{children:s.jsxs("linearGradient",{id:"ai-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[s.jsx("stop",{offset:"0%",stopColor:"#e599f7"}),s.jsx("stop",{offset:"36%",stopColor:"#f783ac"}),s.jsx("stop",{offset:"99%",stopColor:"#fab005"})]})})}),s.jsxs("button",{disabled:!1,className:"toolbar-light-btn toolbar-light-btn--ai","aria-label":L("editor.toolbar.ai","Improve writing"),type:"button","data-test-id":"toolbar-ai",onClick:()=>{const K=document.querySelector(".floating-text-format-popup");if(K.style.opacity="0",K.style.transform="translate(-10000px, -10000px)",K!=null&&K.style){const F=window.getSelection();if((F==null?void 0:F.rangeCount)===0)return null;if(F){const q=F.getRangeAt(0).getBoundingClientRect(),ee=document.querySelector(".content-editable-wrapper"),Q=ee.getBoundingClientRect(),J=q.top-Q.top+ee.scrollTop+q.height+"px";n({top:J,bottom:"auto"}),N==null||N("ai_menu_opened"),setTimeout(()=>{r(!0)},0),setTimeout(()=>{i(!0)},100)}}},children:[s.jsx("span",{className:"toolbar-light-btn__icon toolbar-ai-icon",children:s.jsx($,{icon:J8,size:20})}),!rt&&s.jsx("span",{className:"toolbar-light-btn__text toolbar-ai-text",children:L("editor.toolbar.ai","Improve writing")})]})]}):null},K5=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:i,galleryCollection:l,...c})=>{var L;const{imagePickerSettings:d,maxFileSize:f}=m.useContext(ft),{giphyToken:h,unsplashClientId:g,maxUploadFiles:C}=d,b=n&&!!t,y=(L=d.galleryCollection)!=null&&L.length?d.galleryCollection:l,w=Array.isArray(y)&&y.length>0||n,{showTabKeys:k,visibleInFilePicker:T}=m.useMemo(()=>M7(d,{hasOnUpload:!!c.onUpload,hasGalleryInPicker:w}),[d,w,c.onUpload]),R=m.useMemo(()=>n0(o,T),[o,T]);m.useLayoutEffect(()=>{if(!b||!i)return;const M=n0(o,T);M!==o&&i(M)},[b,o,i,T]);const N={showTabs:k,dropZoneProps:{maxFiles:C||1,maxSize:f*1024*1024},giphyToken:h,unsplashClientId:g,inline:n,tab:R,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...c,galleryCollection:y??[]};return s.jsx(At.FilePicker,{...N})},eB=({editor:e,isEditable:n,t})=>{const{fetchUploadMedia:r,imperativeHandleRef:o}=m.useContext(ft),[i,l]=m.useState(!1);return r?s.jsx(K5,{popoverProps:{opened:i,position:"bottom",onChange:l},onUpload:c=>{var d,f;!r||!c.length||(l(!1),(d=o==null?void 0:o.current)!=null&&d.insertImages&&((f=o.current)==null||f.insertImages(c)))},onChange:c=>{e.dispatchCommand(_1,{altText:"",src:c}),l(!1)},children:s.jsx(v.Tooltip,{label:t("editor.image.add_photo"),children:s.jsx("button",{disabled:!n,type:"button",onClick:()=>l(c=>!c),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:s.jsx(bn,{name:"photo"})})})}):null};function U5({editor:e,canUndo:n,canRedo:t,isEditable:r,onClearFormatting:o}){return[{type:"action",id:"undo",icon:Fk,label:"Undo",shortcut:Wi?"(⌘Z)":"(Ctrl+Z)",disabled:!n,onClick:()=>e.dispatchCommand(p.UNDO_COMMAND,void 0),testId:"toolbar-undo"},{type:"action",id:"redo",icon:Mk,label:"Redo",shortcut:Wi?"(⌘⇧Z)":"(Ctrl+Shift+Z)",disabled:!t,onClick:()=>e.dispatchCommand(p.REDO_COMMAND,void 0),testId:"toolbar-redo"},{type:"divider",id:"divider-1"},{type:"action",id:"clear",icon:f1,label:"Clear format",disabled:!r,onClick:o,testId:"toolbar-more-clear-format"}]}function tB({opened:e,onClose:n,editor:t,canUndo:r,canRedo:o,isEditable:i,onClearFormatting:l}){const{t:c}=Ue.useTranslation(),d=U5({editor:t,canUndo:r,canRedo:o,isEditable:i,onClearFormatting:l});return s.jsx(Bt,{opened:e,onClose:n,title:c("editor.toolbar.moreSettings","More settings"),children:s.jsx(v.Stack,{gap:2,pb:"sm",children:d.map(f=>f.type==="divider"?null:s.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item mobile-slash-menu__item--filled","data-test-id":f.testId,disabled:f.disabled,onClick:()=>{f.onClick(),n()},children:[s.jsx("div",{className:"mobile-slash-menu__item-icon",children:s.jsx($,{icon:f.icon,size:16})}),s.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:f.label})]},f.id))})})}function nB({opened:e,onClose:n,editor:t,mode:r,excludeNodes:o,plugins:i,onTrack:l}){const{t:c}=Ue.useTranslation(),d=m.useMemo(()=>$1({editor:t,isToolbar:!1,excludeNodes:o,t:c,plugins:i,onTrack:l}).map(g=>({...g,blocks:g.blocks.filter(C=>!C.hide)})).filter(g=>g.blocks.length>0),[t,o,c,i,l,r]),f=h=>{n(),requestAnimationFrame(()=>{t.focus(),h.onSelect()})};return s.jsx(Bt,{opened:e,onClose:n,title:c("editor.menu.mobileTitle","Insert blok"),children:s.jsx(v.Stack,{gap:"md",pb:"sm",children:d.map(h=>s.jsxs(v.Box,{className:"mobile-slash-menu__group",children:[s.jsx(v.Text,{className:"mobile-slash-menu__group-label",size:"xs",c:"dimmed",children:h.name}),s.jsx(v.Stack,{gap:2,children:h.blocks.map(g=>s.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item",onClick:()=>f(g),"data-test-id":g["data-test-id"],children:[s.jsx(v.Box,{className:"mobile-slash-menu__item-icon",children:g.icon}),s.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:g.name})]},g.key))})]},h.key))})})}const rB={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},oB={paragraph:Tu,h1:i1,h2:s1,h3:a1,h4:ja,h5:ja,h6:ja,bullet:eu,number:l1,check:o1,code:Ga,quote:d1},hr=m.forwardRef((e,n)=>s.jsx(v.Tooltip,{...e,ref:n,disabled:rt||e.disabled}));hr.displayName="Tooltip";function fC({mode:e,isFloating:n}){const[t]=ot.useLexicalComposerContext(),{colorScheme:r}=v.useMantineColorScheme(),o=r==="dark",[i,l]=m.useState(t),[c,d]=m.useState("paragraph"),[f,h]=m.useState("root"),[g,C]=m.useState(null),[b,y]=m.useState("#000"),[x,w]=m.useState("#fff"),[k,T]=m.useState("left"),[R,N]=m.useState(!1),[L,M]=m.useState(!1),[S,I]=m.useState(!1),[j,B]=m.useState(!1),[_,D]=m.useState(!1),[O,W]=m.useState(!1),[K,F]=m.useState(!1),[Y,q]=m.useState(!1),[ee,Q]=m.useState(!1),[J,xe]=m.useState(!1),[we]=X1(),[Te,We]=m.useState(!1),[ie,X]=m.useState(!0),[ae,pe]=m.useState(!0),[Ce,G]=m.useState(0),[he,oe]=m.useState(()=>t.isEditable()),H=e||"default",{excludeNodes:Z,fetchUploadMedia:re,fetchPromptResult:fe,commentController:ge,onTrack:Re,plugins:Oe}=m.useContext(ft),{t:ce}=Ue.useTranslation(),Le=m.useCallback(()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.anchor.getNode(),ze=be.focus.getNode(),_e=p.$isRootNode(Se)?null:Se.getTopLevelElementOrThrow(),Xe=p.$isRootNode(ze)?null:ze.getTopLevelElementOrThrow();let Ye=Se.getKey()==="root"?Se:ve.$findMatchingParent(Se,Ot=>{const bt=Ot.getParent();return bt!==null&&p.$isRootOrShadowRoot(bt)});be.getNodes().length===1?X(!0):X(!1),Ye===null&&(Ye=Se.getTopLevelElementOrThrow());const Ke=Ye.getKey(),at=i.getElementByKey(Ke);t.update(()=>{M(be.hasFormat("bold")),I(be.hasFormat("italic")),B(be.hasFormat("underline")),D(be.hasFormat("strikethrough")),W(be.hasFormat("subscript")),F(be.hasFormat("superscript")),q(be.hasFormat("code"))});const tt=js(be),st=tt.getParent();cn.$isLinkNode(st)||cn.$isLinkNode(tt)?N(!0):N(!1),y(dn.$getSelectionStyleValueForProperty(be,"color","inherit")),w(dn.$getSelectionStyleValueForProperty(be,"background-color","inherit"));let qe;cn.$isLinkNode(st)&&(qe=ve.$findMatchingParent(tt,Ot=>p.$isElementNode(Ot)&&!Ot.isInline())),T(p.$isElementNode(qe)?qe.getFormatType():p.$isElementNode(tt)?tt.getFormatType():(st==null?void 0:st.getFormatType())||"left");const ut=ve.$findMatchingParent(tt,St);if(St(ut)?h("table"):h("root"),at!==null&&(_e==null?void 0:_e.getKey())===(Xe==null?void 0:Xe.getKey()))if(C(Ke),gt(Ye)){const Ot=ve.$getNearestNodeOfType(Se,br),bt=Ot?Ot.getListType():Ye.getListType();d(bt)}else{const Ot=fn.$isHeadingNode(Ye)?Ye.getTag():Ye.getType();Ot in rB&&d(Ot)}else d("")}},[i,X]);m.useEffect(()=>t.registerCommand(p.SELECTION_CHANGE_COMMAND,(be,Se)=>(Le(),l(Se),!1),p.COMMAND_PRIORITY_CRITICAL),[t,Le]),m.useEffect(()=>ve.mergeRegister(t.registerEditableListener(be=>{oe(be)}),i.registerUpdateListener(({editorState:be})=>{be.read(()=>{Le()})}),i.registerCommand(p.CAN_UNDO_COMMAND,be=>(Q(be),!1),p.COMMAND_PRIORITY_CRITICAL),i.registerCommand(p.CAN_REDO_COMMAND,be=>(xe(be),!1),p.COMMAND_PRIORITY_CRITICAL)),[Le,i,t]),m.useEffect(()=>ve.mergeRegister(i.registerCommand(p.KEY_MODIFIER_COMMAND,be=>{const Se=be,{code:ze,metaKey:_e}=Se;if(ze==="KeyK"&&_e){Se.preventDefault();let Xe;return R?Xe=null:Xe=Ba("https://"),i.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Xe)}return!1},p.COMMAND_PRIORITY_NORMAL),i.registerCommand(p.CLICK_COMMAND,()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.getNodes(),ze=Se.length>0&&Se.every(_e=>fo(_e)||St(_e)||Cr(_e)?!1:p.$isElementNode(_e)||p.$isTextNode(_e));pe(!ze)}return!1},p.COMMAND_PRIORITY_NORMAL)),[i,R]),m.useEffect(()=>{const be=Se=>{var Ye,et;const ze=t.getRootElement();if(!ze||ze.contains(document.activeElement)||!(Se.ctrlKey||Se.metaKey)&&!Se.altKey||!!!((Ye=document.activeElement)!=null&&Ye.closest(".toolbar-dark-dropdown")||(et=document.activeElement)!=null&&et.closest(".toolbar-wrapper")))return;t.dispatchCommand(p.KEY_DOWN_COMMAND,Se)&&(Se.preventDefault(),t.focus())};return document.addEventListener("keydown",be,!0),()=>document.removeEventListener("keydown",be,!0)},[t]),m.useCallback((be,Se)=>{i.update(()=>{const ze=p.$getSelection();ze!==null&&dn.$patchStyleText(ze,be)},Se?{tag:"historic"}:{})},[i]);const Ze=m.useCallback(()=>{Re==null||Re("text_formatting_cleared"),setTimeout(()=>{i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"")}),i.update(()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.anchor,ze=be.focus,_e=be.getNodes(),Xe=be.extract();if(Se.key===ze.key&&Se.offset===ze.offset)return;_e.forEach((Ye,et)=>{if(In(Ye)){let Ke=Ye;et===0&&Se.offset!==0&&(Ke=Ke.splitText(Se.offset)[1]||Ke),et===_e.length-1&&(Ke=Ke.splitText(ze.offset)[0]||Ke);const at=Xe[0];_e.length===1&&In(at)&&(Ke=at),Ke.__style!==""&&Ke.setStyle(""),Ke.__format!==0&&Ke.setFormat(0);const tt=ve.$getNearestBlockElementAncestorOrThrow(Ke);tt.__format!==0&&tt.setFormat(""),tt.__indent!==0&&tt.setIndent(0),Ye=Ke}else fn.$isHeadingNode(Ye)||fn.$isQuoteNode(Ye)?Ye.replace(p.$createParagraphNode(),!0):eo.$isDecoratorBlockNode(Ye)&&Ye.setFormat("")})}})},[i]),dt=m.useCallback(()=>{Re==null||Re("block_link_inserted"),t.dispatchCommand(ju,"create"),setTimeout(()=>{oe(!0)},1e3)},[t]),Ct=()=>{Re==null||Re("block_comment_added"),t.dispatchCommand(Vu,void 0),G(be=>be+1)},Wt=oB[c]??Tu,Dt=!b||b==="inherit"||b==="",ue=!x||x==="inherit"||x==="",ne=!Dt,ke=!ue,[Fe,me]=m.useState(!1),se=n&&rt,[Ae,Pe]=m.useState(!1),[He,$e]=m.useState(!1),it=()=>{Pe(!0)},Je=()=>{i.dispatchCommand(OA,void 0)},ct=m.useRef(!1);return m.useEffect(()=>{if(!se)return;const be=ze=>{const _e=ze.target;_e&&(ct.current=!_e.closest('[contenteditable="true"]'))};document.addEventListener("pointerdown",be,!0);const Se=i.registerUpdateListener(({dirtyElements:ze,dirtyLeaves:_e,tags:Xe})=>{(ze.size>0||_e.size>0)&&ct.current&&!Xe.has("historic")&&!Xe.has("collaboration")&&(ct.current=!1,Je())});return()=>{document.removeEventListener("pointerdown",be,!0),Se()}},[se,i]),s.jsxs("div",{className:`toolbar-wrapper${se?" toolbar-wrapper--touch-floating":""}`,tabIndex:-1,children:[s.jsxs("div",{className:"toolbar",children:[se&&s.jsx("div",{className:"toolbar-section toolbar-section--leading-sticky",children:s.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:be=>be.preventDefault(),onClick:it,"data-test-id":"toolbar-insert-slash","aria-label":"Insert",children:s.jsx($,{icon:zc,size:20,color:"currentColor"})})}),e==="editor"&&!0&&fe&&s.jsx("div",{className:"toolbar-section",children:s.jsx(m.Suspense,{fallback:null,children:s.jsx($P,{})})}),s.jsx("div",{className:"toolbar-section",children:s.jsx(S5,{disabled:ae,blockType:c,rootType:f,editor:t,mode:H,fetchUploadMedia:re,excludeNodes:Z,children:s.jsx(hr,{label:ce("editor.toolbar.turnInto"),children:s.jsxs("button",{disabled:ae,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text style",type:"button","data-test-id":"toolbar-block-controls",children:[s.jsx("span",{className:"toolbar-light-btn__icon",children:s.jsx($,{icon:Wt,size:20,color:"currentColor"})}),s.jsx("span",{className:"toolbar-light-btn__chevron",children:s.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})})}),s.jsxs("div",{className:"toolbar-section",children:[s.jsx(hr,{label:ce("editor.toolbar.bold"),children:s.jsx("button",{disabled:!he,onClick:()=>{i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item"+(L?" active":""),type:"button","data-test-id":"toolbar-bold",children:s.jsx($,{icon:kA,size:20,color:"currentColor"})})}),s.jsx(hr,{label:ce("editor.toolbar.italic"),children:s.jsx("button",{disabled:!he,onClick:()=>{i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item"+(S?" active":""),type:"button","data-test-id":"toolbar-italic",children:s.jsx($,{icon:SA,size:20,color:"currentColor"})})}),s.jsx(hr,{label:ce("editor.toolbar.underline"),children:s.jsx("button",{disabled:!he,"data-test-id":"toolbar-underline",onClick:()=>{i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item"+(j?" active":""),type:"button",children:s.jsx($,{icon:TA,size:20,color:"currentColor"})})}),s.jsx(hr,{label:ce("editor.toolbar.strike"),children:s.jsx("button",{disabled:!he,className:"toolbar-item"+(_?" active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},children:s.jsx($,{icon:EA,size:20,color:"currentColor"})})}),s.jsx(hr,{disabled:!he,label:ce("editor.toolbar.link"),children:s.jsx("button",{onClick:dt,className:"toolbar-item"+(R?" active":""),onMouseDown:()=>{oe(!1)},type:"button","data-test-id":"toolbar-link",children:s.jsx($,{icon:Ds,size:20,color:"currentColor"})})}),s.jsx(hr,{label:ce("editor.toolbar.code"),children:s.jsx("button",{disabled:!he,onClick:()=>{Re==null||Re("text_code_toggled"),i.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"toolbar-item"+(Y?" active":""),type:"button","data-test-id":"toolbar-code",children:s.jsx($,{icon:Ga,size:20,color:"currentColor"})})}),s.jsx(hr,{label:ce("editor.toolbar.equation","Inline equation"),children:s.jsx("button",{disabled:!he,className:"toolbar-item",onClick:()=>{Re==null||Re("block_inline_equation_inserted"),i.dispatchCommand(Va,"inline")},"data-test-id":"toolbar-inline-equation",children:s.jsx($,{icon:Za,size:20,color:"currentColor"})})}),s.jsx(Nh,{fontColor:b,bgColor:x,disabled:!he,onOpenChange:me,onChange:be=>{y(be.color),w(be["background-color"]),i.update(()=>{const Se=p.$getSelection();Se!==null&&dn.$patchStyleText(Se,be)})},children:s.jsx(hr,{label:ce("editor.toolbar.color","Text color"),children:s.jsxs("button",{disabled:!he,className:"toolbar-light-btn toolbar-light-btn--compact"+(ke?" toolbar-light-btn--color-active":""),style:ke?{backgroundColor:`color-mix(in srgb, ${x} 85%, transparent)`}:void 0,type:"button","data-test-id":"toolbar-color-picker",children:[s.jsx("span",{className:"toolbar-light-btn__icon",children:s.jsx(At.TextColorIcon,{size:20,color:ne?b:o?"#FFFFFF":"#000000",showBorder:!0})}),s.jsx("span",{className:`toolbar-light-btn__chevron${Fe?" toolbar-light-btn__chevron--open":""}`,children:s.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})})]}),s.jsx("div",{className:"toolbar-section",children:s.jsx(FP,{disabled:!he,value:k,editor:t,isRTL:Te,setElementFormat:T})}),ge&&s.jsx("div",{className:"toolbar-section",children:s.jsx(hr,{label:ce("editor.toolbar.comment"),children:s.jsxs("button",{onClick:Ct,className:"toolbar-light-btn",type:"button","data-test-id":"toolbar-comment",children:[s.jsx("span",{className:"toolbar-light-btn__icon",children:s.jsx($,{icon:dk,size:20,color:"currentColor"})}),!rt&&s.jsx("span",{className:"toolbar-light-btn__text",children:ce("editor.toolbar.comment")})]})},Ce)}),e==="default"&&s.jsx("div",{className:"toolbar-section",children:s.jsx(eB,{editor:t,t:ce,isEditable:he})}),s.jsx("div",{className:"toolbar-section",children:se?s.jsx(hr,{label:ce("editor.toolbar.more"),children:s.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":ce("editor.toolbar.more"),onClick:()=>$e(!0),style:{width:"auto"},children:s.jsxs(v.Flex,{align:"center",justify:"center",gap:6,children:[s.jsx($,{icon:qn,size:20,color:"currentColor"}),s.jsx(v.Text,{size:"sm",children:ce("editor.toolbar.more")})]})})}):s.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-end",offset:4,withinPortal:!0,classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},children:[s.jsx(v.Menu.Target,{children:s.jsx(hr,{label:ce("editor.toolbar.more"),children:s.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":ce("editor.toolbar.more"),children:s.jsx(v.Flex,{align:"center",justify:"center",children:s.jsx($,{icon:qn,size:20,color:"currentColor"})})})})}),s.jsx(v.Menu.Dropdown,{onMouseDown:be=>be.preventDefault(),children:U5({editor:i,canUndo:ee,canRedo:J,isEditable:he,onClearFormatting:Ze}).map(be=>be.type==="divider"?s.jsx(v.Menu.Divider,{},be.id):s.jsx(v.Menu.Item,{leftSection:s.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:s.jsx($,{icon:be.icon,size:16})}),rightSection:be.shortcut?s.jsx(v.Text,{size:"xs",c:"dimmed",children:be.shortcut}):void 0,disabled:be.disabled,onClick:be.onClick,"data-test-id":be.testId,children:be.label},be.id))})]})}),we]}),se&&s.jsx(tB,{opened:He,onClose:()=>$e(!1),editor:i,canUndo:ee,canRedo:J,isEditable:he,onClearFormatting:Ze}),se&&s.jsx("div",{className:"toolbar-section toolbar-section--trailing-fixed",children:s.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:be=>be.preventDefault(),onClick:Je,"data-test-id":"toolbar-hide","aria-label":"Hide toolbar",children:s.jsx($,{icon:Ak,size:20,color:"currentColor"})})}),se&&s.jsx(nB,{opened:Ae,onClose:()=>Pe(!1),editor:i,mode:H,excludeNodes:Z,fetchUploadMedia:re,plugins:Oe,onTrack:Re})]})}function hC(e){let n=0;const t=[];return e.split(/(<[^>]+>)/g).filter(Boolean).forEach(o=>{o.startsWith("</")?(n=Math.max(0,n-2),t.push(" ".repeat(n)+o)):o.startsWith("<")?(t.push(" ".repeat(n)+o),!o.endsWith("/>")&&!o.match(/<(br|img|hr|input)[^>]*>/)&&(n+=2)):o.trim()&&t.push(" ".repeat(n)+o)}),t.join(`
|
|
310
|
-
`)}function iB(){const[e]=ot.useLexicalComposerContext(),[n,t]=m.useState("tree"),[r,o]=m.useState(""),[i,l]=m.useState(!1);m.useEffect(()=>{if(n==="dom"){const d=()=>{const f=e.getRootElement();f&&o(f.innerHTML)};return d(),e.registerUpdateListener(d)}},[n,e]);const c=async(d=!1)=>{try{const f=d?hC(r):r;await navigator.clipboard.writeText(f),l(!0),setTimeout(()=>l(!1),2e3)}catch(f){console.error("Failed to copy:",f)}};return s.jsxs("div",{className:"tree-view-output",children:[s.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[s.jsx("button",{onClick:()=>t("tree"),style:{padding:"6px 12px",background:n==="tree"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="tree"?"bold":"normal"},children:"Tree View"}),s.jsx("button",{onClick:()=>t("dom"),style:{padding:"6px 12px",background:n==="dom"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="dom"?"bold":"normal"},children:"DOM HTML"})]}),n==="tree"&&s.jsx(D9.TreeView,{viewClassName:"tree-view-output",treeTypeButtonClassName:"debug-treetype-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",editor:e}),n==="dom"&&s.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[s.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:s.jsx("button",{onClick:()=>c(!0),style:{padding:"6px 12px",background:i?"#28a745":"#6c757d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"11px",fontWeight:"bold"},children:i?"✓ Copied!":"Copy Formatted"})}),s.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:s.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:hC(r)})})]})]})}function pC({className:e}){return s.jsx(O9.ContentEditable,{className:e||"ContentEditable__root"})}const sB="_listContainer_1l5sq_1",aB="_list_1l5sq_1",lB="_text_1l5sq_55",Zf={listContainer:sB,list:aB,text:lB},cB=({editor:e})=>{var h;const[n,t]=m.useState(!1),{t:r,i18n:o}=Ue.useTranslation(),{excludeNodes:i,disable:l}=m.useContext(ft),c=g=>{const C=document.querySelector(".editor-container");if(g){C.classList.add("empty-editor");return}C.classList.remove("empty-editor")};m.useEffect(()=>{e.update(()=>{oh()&&(t(!0),c(!0))}),ve.mergeRegister(e.registerCommand(p.BLUR_COMMAND,()=>{const g=!!oh();return t(g),c(g),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.FOCUS_COMMAND,()=>(t(!1),c(!1),!1),p.COMMAND_PRIORITY_LOW))},[]);const d=(g,C)=>{g==null||g.update(()=>{g.focus();const y=p.$getRoot().getFirstChild();y&&C&&(C(y),t(!1))})},f=m.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:s.jsx(Ee.IconH1,{stroke:2,size:18}),onSelect:()=>d(e,g=>{g.replace(fn.$createHeadingNode("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:s.jsx(Ee.IconColumns2,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(J1,j1)})}},{title:r("editor.emptyPageOptions.list"),icon:s.jsx(Ee.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(Pu,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:s.jsx(Ee.IconCode,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(s5,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:s.jsx(Ee.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.DH0uo8fs.js")).then(({INSERT_EXCALIDRAW_COMMAND:g})=>{d(e,()=>{e.dispatchCommand(g,void 0)})})}},i.template?{title:r("editor.emptyPageOptions.template"),icon:s.jsx(Ee.IconTemplate,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(IA,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:s.jsx(Ee.IconBaseline,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Nu,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:s.jsx(Ee.IconTable,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Bu,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:s.jsx(Ee.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[o.language]);return!n||l?null:s.jsx(v.Portal,{target:((h=e==null?void 0:e._rootElement)==null?void 0:h.parentElement)||document.body,children:s.jsx("ul",{className:`${Zf.listContainer} empty-page-options`,children:f.map((g,C)=>g?s.jsxs(v.Menu,{disabled:C!==f.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:w5,width:200,transitionProps:Fn,children:[s.jsx(v.Menu.Target,{children:s.jsxs("li",{className:Zf.list,onClick:g.onSelect,children:[g.icon," ",s.jsx("span",{className:Zf.text,children:g.title})]})}),s.jsx(v.Menu.Dropdown,{children:Js.map(b=>s.jsx(v.Menu.Item,{className:"item "+ZI(b.key==="1"),leftSection:b.icon,style:{borderRadius:"var(--mantine-radius-sm)",paddingBlock:"calc(var(--mantine-spacing-xs) / 1.5)"},onClick:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(hu,b.platform),t(!1)})})},children:b.name},b.name))})]},g.title):null)})})};function ip(e,n){try{return za.$generateNodesFromDOM(e,n)}catch(t){if(t instanceof Error&&t.message.includes("to have a parent")){console.warn("[@layers-app/editor] $generateNodesFromDOM failed with orphaned node error, retrying with individual nodes");const r=n.body.childNodes,o=[];for(const i of r)try{const l=document.implementation.createHTMLDocument();l.body.appendChild(i.cloneNode(!0));const c=za.$generateNodesFromDOM(e,l);o.push(...c)}catch{}return o}throw t}}function uB({editor:e,outputFormat:n,debounceMs:t=500,onChange:r,onBlur:o,isCommentVariant:i,checkIsEmpty:l,onChangeCommand:c}){const d=Ft.useDebouncedCallback(g=>{c&&g.dispatchCommand(c,!0)},100),f=Ft.useDebouncedCallback((g,C)=>{if(n==="html")g.read(()=>{const b=za.$generateHtmlFromNodes(C,null);let y=G0(C,b);const x=p.$getRoot();x&&(l()&&(y=""),x.getChildrenSize()===0&&(C.update(()=>{x.append(p.$createParagraphNode())}),y=""));const w=p.$getRoot().getTextContent();r(y,w)});else{const b=g.toJSON();r(b)}},t),h=(g,C)=>{if(o)if(n==="html")C.update(()=>{const b=za.$generateHtmlFromNodes(C,null);o(G0(C,b))});else{const b=g.toJSON();o(b)}};return m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,C=>{if(!i)return!1;try{const b=C.clipboardData||window.clipboardData;if(!b||!b.getData("application/x-lexical-editor"))return!1;const x=b.getData("text/html");if(!x)return!1;const k=new DOMParser().parseFromString(x,"text/html"),T=ip(e,k);return p.$insertNodes(T),!0}catch{return!1}},p.COMMAND_PRIORITY_LOW),[e,i]),{triggerOnChangeCommand:d,onChangeValue:f,onBlurValue:h}}const dB={toolbar:{comment:!1,default:!0,editor:!1},componentPicker:{comment:!1,default:!0,editor:!0},floatingTextToolbar:{comment:!0,default:!0,editor:!0},floatingLinkEditor:{comment:!0,default:!0,editor:!0},actionMenu:{comment:!1,default:!0,editor:!0},mediaActions:{comment:!1,default:!0,editor:!0},previewCodeEquation:{comment:!1,default:!0,editor:!0},richText:{comment:!0,default:!0,editor:!0},history:{comment:!1,default:!0,editor:!0},treeView:{comment:!1,default:!0,editor:!0},actionsInspector:{comment:!1,default:!0,editor:!0},onChange:{comment:!0,default:!0,editor:!0},blur:{comment:!0,default:!0,editor:!0},focus:{comment:!0,default:!0,editor:!0},autoFocus:{comment:!0,default:!0,editor:!0},placeholder:{comment:!0,default:!0,editor:!0},clearEditor:{comment:!0,default:!1,editor:!1},maxLength:{comment:!1,default:!0,editor:!0},emoji:{comment:!0,default:!0,editor:!0},hashtag:{comment:!1,default:!0,editor:!0},markdownShortcut:{comment:!1,default:!0,editor:!0},extendCode:{comment:!1,default:!0,editor:!0},equation:{comment:!1,default:!0,editor:!0},codeHighlight:{comment:!1,default:!0,editor:!0},list:{comment:!0,default:!0,editor:!0},checkList:{comment:!0,default:!0,editor:!0},listMaxIndent:{comment:!0,default:!0,editor:!0},link:{comment:!0,default:!0,editor:!0},clickableLink:{comment:!0,default:!0,editor:!0},horizontalRule:{comment:!1,default:!0,editor:!0},tabFocus:{comment:!0,default:!0,editor:!0},tabIndentation:{comment:!0,default:!0,editor:!0},collapsible:{comment:!1,default:!0,editor:!0},callout:{comment:!1,default:!0,editor:!0},layout:{comment:!1,default:!0,editor:!0},table:{comment:!1,default:!0,editor:!0},draggableBlock:{comment:!1,default:!0,editor:!0},newParagraph:{comment:!0,default:!0,editor:!0},tableOfContents:{comment:!1,default:!0,editor:!0},embed:{comment:!1,default:!0,editor:!0},swagger:{comment:!1,default:!0,editor:!0},images:{comment:!1,default:!0,editor:!0},audio:{comment:!1,default:!0,editor:!0},file:{comment:!1,default:!0,editor:!0},excalidraw:{comment:!1,default:!0,editor:!0},childDocs:{comment:!1,default:!0,editor:!0},pageLink:{comment:!1,default:!0,editor:!0},comment:{comment:!1,default:!0,editor:!0},form:{comment:!1,default:!0,editor:!0},select:{comment:!1,default:!0,editor:!0},shortcuts:{comment:!1,default:!0,editor:!0},smartPaste:{comment:!1,default:!0,editor:!0},fastBackspace:{comment:!1,default:!0,editor:!0},emptyPage:{comment:!1,default:!1,editor:!0},blockLink:{comment:!1,default:!0,editor:!0}},fB={images:"photo",codeHighlight:"code",checkList:"check",listMaxIndent:"list",collapsible:"caret-right",horizontalRule:"horizontal-rule",clickableLink:"link",floatingLinkEditor:"link",previewCodeEquation:"previewCodeEquation"};function hB(e,n){return t=>{if(!dB[t][e])return!1;const o=fB[t];return o?!n[o]:!(t in n&&n[t])}}const H5={comment:!1,default:!0,editor:!0};function pB(e,n,t,r,o){return n.filter(l=>(l.modes??H5)[r]&&!t[l.key]).map(l=>l.Provider).reduceRight((l,c)=>s.jsx(c,{imperativeHandleRef:o,children:l}),s.jsx(s.Fragment,{children:e}))}const mC=m.lazy(()=>Promise.resolve().then(()=>require("./layers.DH0uo8fs.js")).then(e=>({default:e.ExcalidrawPlugin})));function mB(e){const{onRef:n,floatingAnchorElem:t,maxHeight:r,showTextToolbar:o,mode:i,isLoading:l,editor:c,onBlur:d,onFocus:f,onChange:h,outputFormat:g,debounceMs:C}=e,b=i==="editor",y=i==="comment",[x,w]=m.useState(!1),{excludeNodes:k,plugins:T,imperativeHandleRef:R,disable:N}=m.useContext(ft),L=rt,M=hB(i,k),{settings:{isRichText:S,showTreeView:I,isMaxLength:j}}=F1(),{historyState:B}=W1(),{triggerOnChangeCommand:_,onChangeValue:D,onBlurValue:O}=uB({editor:c,outputFormat:g,debounceMs:C,onChange:h,onBlur:d,isCommentVariant:y,checkIsEmpty:oh,onChangeCommand:ii});let W={};r?W={maxHeight:r}:b&&(W={overflowY:"hidden"});const K=b?s.jsx("div",{className:"editor-scroller",style:W,children:s.jsx("div",{className:"editor",ref:n,children:s.jsx("div",{className:"content-editable-wrapper",children:s.jsx("div",{children:s.jsx(pC,{})})})})}):s.jsx("div",{className:"editor-scroller",style:W,children:s.jsx("div",{className:"editor",ref:n,children:s.jsx(pC,{})})}),F=s.jsxs(s.Fragment,{children:[M("toolbar")&&!b&&!L&&s.jsx(fC,{mode:i}),M("componentPicker")&&!L&&s.jsx(rD,{mode:i,opened:x,setOpenedMenu:w}),M("history")&&s.jsx(Vh.HistoryPlugin,{externalHistoryState:B}),M("floatingTextToolbar")&&t&&(b||L?s.jsx(Z2,{anchorElem:t,component:s.jsx(fC,{mode:i,isFloating:!0})}):s.jsx(Z2,{anchorElem:t})),s.jsxs("div",{className:`editor-container ${S?"":"plain-text"}`,children:[M("placeholder")&&s.jsx(YM,{}),M("autoFocus")&&s.jsx(zM,{isLoading:l}),M("emoji")&&s.jsx(LD,{}),M("hashtag")&&s.jsx(S9.HashtagPlugin,{}),M("clearEditor")&&s.jsx(v9.ClearEditorPlugin,{}),M("richText")&&s.jsx(M9.RichTextPlugin,{contentEditable:K,ErrorBoundary:k9.LexicalErrorBoundary}),M("blockLink")&&s.jsx(BM,{}),(M("extendCode")||M("equation"))&&!N&&s.jsx(eS,{}),M("markdownShortcut")&&s.jsx(kL,{}),M("shortcuts")&&s.jsx(lN,{editor:c,setIsLinkEditMode:()=>{}}),M("extendCode")&&!N&&s.jsx(Wj,{}),M("equation")&&!N&&s.jsx(Dj,{}),M("codeHighlight")&&s.jsx(WM,{}),M("list")&&s.jsx(cL,{}),M("checkList")&&s.jsx(jj,{}),M("listMaxIndent")&&s.jsx(hL,{maxDepth:7}),!N&&s.jsx(sL,{}),M("link")&&s.jsx(aL,{}),M("comment")&&s.jsx(LL,{}),mC&&M("excalidraw")&&s.jsx(m.Suspense,{children:s.jsx(mC,{})}),M("swagger")&&s.jsx(NR,{}),M("childDocs")&&s.jsx(wE,{}),M("pageLink")&&s.jsx(MR,{}),M("newParagraph")&&!I&&s.jsx(sO,{}),M("form")&&s.jsx(Kj,{}),T==null?void 0:T.map(Y=>{const{key:q,Plugin:ee,modes:Q}=Y;return!(Q??H5)[i]||k[q]?null:s.jsx(ee,{},q)}),M("audio")&&s.jsx(uR,{}),M("file")&&s.jsx(gM,{}),M("embed")&&s.jsx(Rj,{}),M("images")&&s.jsx(hM,{}),M("onChange")&&s.jsx(T9.OnChangePlugin,{ignoreSelectionChange:!0,onChange:(Y,q)=>{D(Y,q),_(q)}}),M("maxLength")&&j&&s.jsx(SL,{maxLength:30}),M("blur")&&s.jsx(FM,{onBlur:O}),M("focus")&&s.jsx(oL,{onFocus:f}),M("treeView")&&I&&s.jsx(iB,{}),M("actionsInspector")&&I&&s.jsx(wI,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),M("select")&&!Yn&&s.jsx(_P,{editor:c}),M("smartPaste")&&s.jsx(Cj,{containerSelector:"main[data-app-container]"}),M("fastBackspace")&&s.jsx(rL,{}),M("clickableLink")&&s.jsx(w9.ClickableLinkPlugin,{}),M("horizontalRule")&&s.jsx(E9.HorizontalRulePlugin,{}),M("tabFocus")&&s.jsx(vj,{}),M("tabIndentation")&&s.jsx(Sj,{}),M("collapsible")&&s.jsx(ME,{}),M("callout")&&s.jsx(Tj,{}),M("layout")&&s.jsx(lR,{anchorElem:t}),M("table")&&t&&(b||!L)&&s.jsx(cI,{floatingAnchorElem:t}),M("draggableBlock")&&t&&!L&&s.jsx(xD,{isShowAddButton:!L,anchorElem:t}),t&&s.jsxs(s.Fragment,{children:[M("floatingLinkEditor")&&s.jsx(eO,{showTextToolbar:o}),M("actionMenu")&&s.jsx(hI,{anchorElem:t}),M("mediaActions")&&gi&&s.jsx(Hj,{anchorElem:t}),M("previewCodeEquation")&&s.jsx(cO,{anchorElem:t})]})]}),M("tableOfContents")&&(b?k.contents&&s.jsx(Lh,{}):(k.contents||k.contents===void 0)&&s.jsx(Lh,{})),M("emptyPage")&&b&&s.jsx(cB,{editor:c})]});return!T||T.length===0?s.jsx(s.Fragment,{children:F}):pB(F,T,k,i,R)}const gB=()=>{const e=p.$getSelection(),n=en(),t=n==null?void 0:n.getParent(),r=t==null?void 0:t.getParent();if(n){if(G1())return p.$getRoot().clear(),e.insertParagraph(),!0;if(r instanceof Po||r instanceof fi)return HE();if(t instanceof Qn)return Oj()}return!1},CB=e=>{const n=p.$getSelection();if(!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode();if(t.getPreviousSibling()===null&&n.anchor.offset===0){const r=t.getParent();if(r){const o=p.$createParagraphNode();return o.append(...r.getChildren()),r.replace(o),e.preventDefault(),!0}}return!1},AB=/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob)$/i;function Y5(e){return e.type.includes("video")||AB.test(e.name)}function bB(e){if(!e)return null;const t=new DOMParser().parseFromString(e,"text/html").body,r=Array.from(t.children);if(r.length!==1)return null;const o=r[0];return o.tagName!=="IMG"||t.textContent&&t.textContent.trim().length>0?null:o.getAttribute("src")||""||null}const yB=(e,n)=>{var t,r,o,i,l,c;if(e.target instanceof HTMLElement&&e.target.closest('[data-editor-dropzone="video"]')||e.target instanceof HTMLElement&&(e.target.closest("[data-editor-image-picker-drop-root]")||e.target.closest("[data-editor-file-picker-drop-root]")||e.target.closest(".mantine-Dropzone-root")))return!1;if(e.dataTransfer){const d=Object.values(e.dataTransfer.files);if(d&&d.length){if(e.preventDefault(),e.target instanceof HTMLElement&&((t=n.current)!=null&&t.insertImages)){(r=p.$getNearestNodeFromDOMNode(e.target))==null||r.selectEnd();const f=d[0];Y5(f)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(d):f.type.includes("image")&&((i=n.current)!=null&&i.insertImages)?n.current.insertImages(d):f.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(d):(c=n.current)!=null&&c.insertFiles&&(n==null||n.current.insertFiles(d))}return!0}}return!1},gC=()=>{const e=en(),n=e==null?void 0:e.getParent();return e&&di(n)?ZE():!1},CC=()=>{const e=en(),n=e==null?void 0:e.getParent();return e&&Lo(n)?YE():!1},xB=(e,n,t)=>{var i,l;const r=en(),o=r==null?void 0:r.getParent();if(r){if(Lo(o))return GE(e);if(Ai(o))(l=(i=t.current)==null?void 0:i.onDeleteCallout)==null||l.call(i,n);else{if(jr(o))return iR(e);if(jt(o))return CB(n);if(Do(o))return Bj(e)}}return!1},vB=(e,n)=>{const t=n.ctrlKey||n.metaKey,r=n.shiftKey,o=n.code==="KeyZ";return t&&r&&o?(n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0):!1},wB=(e,n,t,r,o)=>{var c,d;if(o)return r.preventDefault(),r.key==="Enter"&&r.shiftKey&&n.insertParagraph(),!0;const i=en(),l=i==null?void 0:i.getParent();if(i){if(l instanceof Mn)return oR(e);if(l instanceof Po)return UE(e);if(l instanceof Vi)return eE(e);if(l instanceof Zr)return jR(e);if(l instanceof br||Mn)return Mj()}return(d=(c=t.current)==null?void 0:c.decoratorEnterAction)==null||d.call(c),!1};function kB(e,n){var t,r,o,i,l,c,d,f;if("dataTransfer"in e&&((r=(t=e.dataTransfer)==null?void 0:t.files)!=null&&r.length)){const h=Array.from(e.dataTransfer.files),g=h[0];return Y5(g)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(h):g.type.includes("image")&&((i=n.current)!=null&&i.insertImages)?n.current.insertImages(h):g.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(h):(c=n.current)!=null&&c.insertFiles&&n.current.insertFiles(h),!0}if("clipboardData"in e){const h=(f=(d=e.clipboardData)==null?void 0:d.getData("text/html"))==null?void 0:f.trim();if(bB(h))return!0}return!1}function SB(e){if(!e||e.classList.contains("video-container")||e.classList.contains("resizable-container")||e.classList.contains("editor-image"))return null;if(e.closest("ol, ul"))return e;let n=e;for(;n&&!n.classList.contains("ContentEditable__root");)n=n.parentElement;if(n!=null&&n.classList.contains("ContentEditable__root")){let t=e;for(;t&&t.parentElement!==n;)t=t.parentElement;return t}return null}function EB(e){const{mode:n,maxHeight:t,disable:r,isErrorWs:o,content:i,isLoading:l,imperativeHandleRef:c,editorRef:d,onBlur:f,onFocus:h,onChange:g,outputFormat:C,debounceMs:b}=e,[y,x]=m.useState(null),w=m.useRef(!1),[k,...T]=ot.useLexicalComposerContext(),{shiftEnterInsertNewLine:R}=m.useContext(ft);CM({editor:k}),m.useEffect(()=>{k&&k.setEditable(!r)},[k,r]),m.useEffect(()=>{k&&(k.setEditable(!r),d&&(d.current=k),o&&k.update(()=>{if(typeof i=="string"){p.$getRoot().clear();const I=new DOMParser().parseFromString(i,"text/html"),j=ip(k,I);p.$getRoot().select(),p.$insertNodes(j)}else{const M=k.parseEditorState(JSON.stringify(i));k.setEditorState(M)}}))},[o]),m.useEffect(()=>{function M(){k.dispatchCommand(sh,!0)}function S(j){const B=j.target,D=(B.tagName.toLowerCase()==="img"?B.closest("div.resizable-container__inner"):null)||SB(B);if(!D||B.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(D.classList.contains("selected-block")||D.querySelector(".selected-block"))&&(j.preventDefault(),k.dispatchCommand(DA,{x:j.clientX,y:j.clientY,target:D}))}window.addEventListener("scroll",M);const I=k.getRootElement();return I==null||I.addEventListener("contextmenu",S),()=>{window.removeEventListener("scroll",M),I==null||I.removeEventListener("contextmenu",S)}},[k]);const N=M=>{M!==null&&x(M)};m.useEffect(()=>{const M=S=>{const I=document.activeElement;if(I&&I!==document.body&&I!==document.documentElement)return;const j=navigator.platform.toUpperCase().includes("MAC"),B=j&&S.metaKey&&!S.shiftKey&&S.code==="KeyZ"||!j&&S.ctrlKey&&!S.shiftKey&&S.code==="KeyZ",_=j&&S.metaKey&&S.shiftKey&&S.code==="KeyZ"||!j&&S.ctrlKey&&S.shiftKey&&S.code==="KeyZ";B&&(S.preventDefault(),k.dispatchCommand(p.UNDO_COMMAND,void 0)),_&&(S.preventDefault(),k.dispatchCommand(p.REDO_COMMAND,void 0))};return ve.mergeRegister(k.registerCommand(p.BLUR_COMMAND,()=>(window.addEventListener("keydown",M),!1),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.FOCUS_COMMAND,()=>(window.removeEventListener("keydown",M),!1),p.COMMAND_PRIORITY_LOW))},[k]),m.useEffect(()=>ve.mergeRegister(k.registerCommand(p.KEY_ENTER_COMMAND,M=>{const S=p.$getSelection();return wB(k,S,c,M,R)},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>gB(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ESCAPE_COMMAND,M=>p.$getSelection()?(k.blur(),p.$setSelection(null),So(M),!0):!1,p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_DOWN_COMMAND,M=>vB(k,M),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>CC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_LEFT_COMMAND,()=>CC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>gC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.PASTE_COMMAND,M=>kB(M,c),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DROP_COMMAND,M=>yB(M,c),p.COMMAND_PRIORITY_HIGH),k.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,()=>gC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const M=p.$getSelection();M.format=0,M.setStyle("");const S=M.insertParagraph();return S&&(S.__format=0),!0},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_BACKSPACE_COMMAND,M=>xB(k,M,c),p.COMMAND_PRIORITY_HIGH)),[k]);const L={onRef:N,floatingAnchorElem:y,maxHeight:t,showTextToolbar:w,mode:n,isLoading:l,editor:k,onBlur:f,onFocus:h,onChange:g,outputFormat:C,debounceMs:b};return s.jsx(mB,{...L})}function TB(e){const n=new URL(e),t=`${n.origin}${n.pathname}`,r={};return n.searchParams.forEach((o,i)=>{r[i]=o}),{baseUrl:t,params:r}}function MB(e,n,t="http://localhost"){const r=LB(e,n),{baseUrl:o,params:i}=TB(t);return new sA(o,e,r,{connect:!1,params:i})}function LB(e,n){let t=n.get(e);return t===void 0?(t=new DC.Doc,n.set(e,t)):t.load(),t}const NB=Wi?"":"os-windows",Z5=({children:e})=>s.jsx("div",{className:`doc-space-styles-provider ${NB}`,children:e}),ft=m.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[],plugins:[]}),G5=({initialContent:e,onChange:n,outputFormat:t,mode:r,maxHeight:o,onBlur:i,onFocus:l,fetchUploadMedia:c,fileChunkUploadApi:d,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,fetchDeleteMedia:C,fetchRestoreMedia:b,pageId:y,commentController:x,maxFileSize:w,contentModalUploadImage:k,maxImageSizeError:T,debounce:R,disable:N,ws:L,excludeNodes:M={},imagePickerSettings:S={},childPages:I,linkablePages:j,language:B,shiftEnterInsertNewLine:_,editorRef:D,placeholder:O,plugins:W=[],onTrack:K})=>{const F=r||"default",Y=e||"<p></p>";let q=!!(L!=null&&L.url);const{historyState:ee}=W1(),Q=m.useRef({}),J=m.useRef(null),[xe,we]=m.useState("initial"),[Te,We]=m.useState(null),ie=m.useCallback(oe=>{oe.update(()=>{if(typeof Y=="string"){const Z=new DOMParser().parseFromString(Y,"text/html"),re=ip(oe,Z);p.$insertNodes(re),p.$setSelection(null),RM(oe,Z)}})},[]),X=m.useMemo(()=>{window.editorAppVersion=`version @layers-app/editor:${z8.version}`,F==="comment"&&document.body.setAttribute("mode","true");const oe=uM(F,W),H=N?oe.filter(Z=>Z!==Dn&&Z!==to):oe;return{editable:!N,editorState:null,namespace:"layers",nodes:H,onError:Z=>{throw Z},theme:V8(F)}},[W,N,F]);m.useEffect(()=>{B&&Xf.changeLanguage(B)},[B]);const ae=()=>typeof Y=="string"?ie:JSON.stringify(Y),pe=m.useCallback((oe,H)=>{const Z=MB(oe,H,L==null?void 0:L.url);return Z.on("status",re=>{re.status==="connecting"&&we(re.status)}),setTimeout(()=>We(Z),0),Z},[]),Ce=m.useCallback(()=>{var re;const oe=Te.awareness,Z=Array.from(oe.getStates().entries()).map(([fe,ge])=>({id:String(fe),userId:fe,name:ge.name,color:ge.color,awarenessData:ge.awarenessData})).filter((fe,ge,Re)=>ge===Re.findIndex(Oe=>Oe.name===fe.name));(re=L==null?void 0:L.getActiveUsers)==null||re.call(L,Z)},[Te]);m.useEffect(()=>{if(Te!=null)return Te.awareness.on("update",Ce),()=>Te.awareness.off("update",Ce)},[Te,Ce]),m.useEffect(()=>{if(Te!=null&&Te.ws){const oe=Te.ws;let H=0;oe?(oe.addEventListener("message",Z=>{if(typeof Z.data!="string"){H===1&&we("connected"),H++;return}const re=JSON.parse(Z.data);re["active-users"]&&console.log("message",re["active-users"]),re.error&&(re.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),Te.disconnect()):re.error==="No token provided"?(console.error("No token provided: You must provide a token."),Te.disconnect()):(console.error("Unknown error:",re.error),Te.disconnect()),we("error"))}),oe.addEventListener("close",Z=>{console.error("WebSocket connection closed:",Z),we("error")})):console.error("WebSocket is not initialized yet.")}},[Te==null?void 0:Te.ws]),m.useEffect(()=>()=>{Te instanceof sA&&(Te.destroy(),Te.disconnect())},[Te]),q||(X.editorState=ae());const G=xe==="connecting"&&q,he=m.useMemo(()=>{const oe={...M};return c||(oe.photo=!0,oe.video=!0,oe.audio=!0,oe.file=!0),r!=="editor"&&(oe.childDocs=!0),N||(oe.previewCodeEquation=!0),{fetchDeleteMedia:C,fetchUploadMedia:c,fileChunkUploadApi:d,fetchRestoreMedia:b,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,onTrack:K,maxFileSize:w||5,contentModalUploadImage:k,maxImageSizeError:T,shiftEnterInsertNewLine:_,commentController:x,disable:N||!1,pageId:y,mode:F,excludeNodes:oe,imagePickerSettings:S,imperativeHandleRef:Q,maxHeight:o,pages:(I==null?void 0:I.items)??[],childPagesLoading:(I==null?void 0:I.isLoading)??!1,linkablePages:j,placeholder:O,plugins:W}},[I,y,x,O,W,j,M,c,d,C,b,f,K,w,k,T,_,N,F,S,o]);return s.jsx(ft.Provider,{value:he,children:s.jsx(Ue.I18nextProvider,{i18n:Xf,children:s.jsx(Z5,{children:s.jsxs(B7,{children:[s.jsx("div",{ref:J}),s.jsxs("div",{className:`doc-space-editor-wrapper ${F}${N?" disabled":""}`,children:[s.jsx(v.LoadingOverlay,{visible:G,overlayProps:{radius:"sm",blur:2}}),s.jsx(wM,{children:s.jsx(m9.LexicalCollaboration,{children:s.jsxs(C9.LexicalComposer,{initialConfig:X,children:[L&&xe!=="error"?s.jsx(g9.CollaborationPlugin,{id:L.id,providerFactory:pe,username:L.user.name,cursorColor:L.user.color,awarenessData:L.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:J,initialEditorState:ae()}):s.jsx(Vh.HistoryPlugin,{externalHistoryState:ee}),s.jsx(kM,{children:s.jsx(aI,{children:s.jsx(TL,{children:s.jsx(YS,{children:s.jsx("div",{className:"editor-shell",children:s.jsx(EB,{editorRef:D,maxHeight:o,mode:F,disable:N||!1,isErrorWs:xe==="error",content:Y,isLoading:G,imperativeHandleRef:Q,onBlur:i,onFocus:l,onChange:n,outputFormat:t,debounceMs:R})})})})})})]})})})]})]})})})})},V5=m.createContext(null);function jB({config:e,children:n,imperativeHandleRef:t}){const[r,o]=m.useState(0),i=m.useRef(new Set),l=m.useCallback(h=>{var g;if(!i.current.has(h)){i.current.add(h);const C=i.current.size;o(C),(g=e.onUploadStateChange)==null||g.call(e,C>0,C)}},[e]),c=m.useCallback(h=>{var g;if(i.current.has(h)){i.current.delete(h);const C=i.current.size;o(C),(g=e.onUploadStateChange)==null||g.call(e,C>0,C)}},[e]),d=m.useCallback((h,g,C)=>{if(!e.onError)return;let b;if(h&&typeof h=="object"&&"status"in h&&typeof h.status=="number"){const y=h;b={status:y.status,statusText:y.statusText||"",message:y.message||(y.data&&typeof y.data=="object"&&"message"in y.data&&typeof y.data.message=="string"?y.data.message:"Request failed"),data:y.data,source:g,videoId:C}}else h instanceof Error?b={status:0,statusText:"Error",message:h.message,source:g,videoId:C}:b={status:0,statusText:"Unknown Error",message:String(h),source:g,videoId:C};e.onError(b)},[e]),f=m.useMemo(()=>({pageId:e.pageId,maxFileSize:e.maxFileSize??5,imperativeHandleRef:t,registerUpload:l,unregisterUpload:c,isUploading:r>0,uploadingCount:r,reportError:d,onTrack:e.onTrack}),[e.pageId,e.maxFileSize,e.onTrack,t,l,c,r,d]);return s.jsx(V5.Provider,{value:f,children:n})}function sp(){const e=m.useContext(V5);if(!e)throw new Error("useVideoContext must be used within a VideoConfigProvider");return e}const Yh=p.createCommand("INSERT_VIDEO_COMMAND"),q5=p.createCommand("UPLOAD_VIDEO_COMMAND");function Q5(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const i=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(i)return{platform:"download",id:i[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}function ri(e,n){let t="";switch(e){case"youtube":t=`https://www.youtube-nocookie.com/embed/${n}`;break;case"download":{t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n)?`/v1/vod/${n}/master.m3u8`:n;break}case"vk":const r=n.split("-");t=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"link":t=n;break;case"rutube":t=`https://rutube.ru/play/embed/${n}`;break}return t}function RB(e){const n=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return!!(n&&n[2].length===11||e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/)||e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/)||e.match(/\.(mp4|webm|ogg|mov|avi|mkv)(\?.*)?$/i))}function AC({children:e,className:n}){const t=["media-actions",n].filter(Boolean).join(" ");return s.jsx("div",{className:t,children:e})}function ap({size:e=32}){return s.jsx("div",{className:"stars-animation",style:{width:e,height:e},children:s.jsxs("svg",{className:"stars-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[s.jsx("path",{d:"M28.3337 14.444C28.3334 14.0149 27.9856 13.6669 27.5563 13.6666C27.3116 13.6666 27.0808 13.782 26.9339 13.9778L23.667 18.332V20.3333L26.9339 24.6888C27.0808 24.8846 27.3117 25 27.5563 25C27.9856 24.9997 28.3334 24.6517 28.3337 24.2226V14.444ZM30.3337 24.2226C30.3334 25.7563 29.09 26.9997 27.5563 27C26.7913 27 26.0643 26.6853 25.5433 26.138L25.3337 25.8893L21.8675 21.2669C21.7377 21.0938 21.667 20.883 21.667 20.6666V18C21.667 17.7836 21.7377 17.5728 21.8675 17.3997L25.3337 12.7773L25.5433 12.5286C26.0643 11.9813 26.7913 11.6666 27.5563 11.6666C29.09 11.6669 30.3334 12.9103 30.3337 14.444V24.2226Z",fill:"currentColor"}),s.jsx("path",{className:"stars-animation__star stars-animation__star--a",d:"M13.0377 7.63672C13.3768 6.78166 14.6243 6.79378 14.9622 7.63803L15.0208 7.83073V7.83334C15.4133 9.75317 16.9135 11.2534 18.8333 11.6458C19.944 11.873 19.944 13.4604 18.8333 13.6875C16.9134 14.08 15.4133 15.5802 15.0208 17.5V17.5013C14.794 18.6022 13.2074 18.6194 12.9791 17.5C12.5866 15.5803 11.0864 14.08 9.16662 13.6875C8.05579 13.4604 8.05579 11.8729 9.16662 11.6458C11.0864 11.2534 12.5866 9.75313 12.9791 7.83334L13.0377 7.63672ZM14 10.5521C13.4583 11.403 12.7363 12.1251 11.8854 12.6667C12.7359 13.2081 13.4584 13.9295 14 14.78C14.5413 13.9298 15.2631 13.208 16.1132 12.6667C15.2628 12.1251 14.5413 11.4027 14 10.5521Z",fill:"#FAB005"}),s.jsx("path",{d:"M1.6665 19.1634C1.6665 16.9963 1.66552 15.2828 1.82536 13.9303C1.98784 12.5557 2.32831 11.4237 3.104 10.4785C3.36704 10.158 3.66108 9.86395 3.98161 9.60086C4.88967 8.85562 5.97067 8.51046 7.27327 8.34045C7.82065 8.26937 8.32162 8.65631 8.39307 9.20373C8.46429 9.7512 8.07858 10.2534 7.53109 10.3248C6.42818 10.4688 5.76031 10.7286 5.25114 11.1464C5.03175 11.3265 4.82966 11.5273 4.64958 11.7467C4.21474 12.2766 3.9512 12.9788 3.81104 14.1647C3.66826 15.3726 3.6665 16.9472 3.6665 19.1634C3.6665 21.3779 3.6677 22.9977 3.81104 24.2506C3.95301 25.4913 4.22137 26.2274 4.64958 26.7493C4.82978 26.9688 5.03186 27.1696 5.25114 27.3496C5.78094 27.7843 6.4823 28.0492 7.66781 28.1894C8.87569 28.3322 10.4504 28.3339 12.6665 28.3339C14.8826 28.3339 16.4573 28.3322 17.6652 28.1894C18.8508 28.0492 19.5521 27.7843 20.0819 27.3496C20.3011 27.1697 20.5033 26.9688 20.6834 26.7493C21.1182 26.2195 21.3818 25.5171 21.522 24.3313C21.6647 23.1236 21.6665 21.5496 21.6665 19.3339C21.6665 16.3651 21.6585 14.5741 21.3423 13.3144C21.2078 12.7788 21.5333 12.2355 22.0688 12.1009C22.6045 11.9664 23.1479 12.2918 23.2824 12.8274C23.6739 14.3871 23.6665 16.4847 23.6665 19.3339C23.6665 21.5009 23.6675 23.2146 23.5076 24.567C23.3452 25.9412 23.0045 27.0725 22.229 28.0175C21.966 28.338 21.6724 28.6331 21.3514 28.8964C20.4062 29.6721 19.2742 30.0126 17.8996 30.1751C16.547 30.3349 14.8336 30.3339 12.6665 30.3339C10.4994 30.3339 8.78597 30.3349 7.43343 30.1751C6.05888 30.0126 4.92684 29.6721 3.98161 28.8964C3.66082 28.6332 3.36705 28.338 3.104 28.0175C2.32195 27.0644 1.98474 25.8816 1.82406 24.4772C1.66477 23.0846 1.6665 21.3316 1.6665 19.1634Z",fill:"currentColor"}),s.jsx("path",{className:"stars-animation__star stars-animation__star--b",opacity:"0.5",d:"M20.1611 3.07952C20.2736 2.529 21.0601 2.529 21.1727 3.07952C21.4212 4.29541 22.3715 5.24561 23.5873 5.49413C24.1379 5.60666 24.1379 6.39325 23.5873 6.50578C22.3715 6.7543 21.4212 7.7045 21.1727 8.9204C21.0601 9.47092 20.2736 9.47092 20.1611 8.9204C19.9125 7.7045 18.9624 6.7543 17.7464 6.50578C17.1959 6.39325 17.1959 5.60666 17.7464 5.49413C18.9624 5.24561 19.9125 4.29541 20.1611 3.07952Z",fill:"currentColor"})]})})}function lp({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,data:i,value:l,defaultValue:c,onChange:d,inputClassName:f,...h}){var Q;const{onClick:g,type:C,onCopy:b,onCut:y,onPaste:x,classNames:w,allowDeselect:k,...T}=h,N=[typeof w=="object"&&w&&"input"in w?w.input:void 0,f].filter(Boolean).join(" ")||void 0,L=N?{...typeof w=="object"&&w?w:{},input:N}:w,[M,S]=m.useState(""),I=v.useCombobox({onDropdownClose:()=>{I.resetSelectedOption(),I.focusTarget(),S("")},onDropdownOpen:()=>{I.focusSearchInput()}}),j=m.useMemo(()=>(Array.isArray(i)?i:[]).map(J=>typeof J=="string"?{value:J,label:J}:J),[i]),B=l??c??null,_=((Q=j.find(J=>J.value===B))==null?void 0:Q.label)??"",{t:D}=Ue.useTranslation(),[O,{open:W,close:K}]=Ft.useDisclosure(!1);if(rt)return s.jsxs(s.Fragment,{children:[s.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:L,pointer:!0,rightSection:r??s.jsx($,{icon:Jr,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:J=>{g==null||g(J),W()},...T,children:_}),s.jsx(Bt,{opened:O,onClose:K,title:D("editor.video.source.drawerTitle","Source"),children:s.jsx(v.Stack,{gap:4,p:0,children:j.map(J=>s.jsx(qi,{label:J.label,checked:J.value===B,onSelect:()=>{d==null||d(J.value,J),K()}},J.value))})})]});const F=(J,xe,we)=>o?o({option:{value:J,label:xe},checked:we}):s.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[xe,we&&s.jsx($,{icon:Jn,size:16,color:"var(--primary-color-text, #4C6EF5)"})]}),{width:Y,...q}=t||{},ee=Y??"target";return s.jsxs(v.Combobox,{store:I,withinPortal:!0,onOptionSubmit:J=>{const xe=j.find(we=>we.value===J)??{value:J,label:J};d==null||d(J,xe),I.closeDropdown()},width:ee,...q,children:[s.jsx(v.Combobox.Target,{children:s.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:L,pointer:!0,rightSection:r??s.jsx($,{icon:Jr,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:J=>{g==null||g(J),I.toggleDropdown()},...T,children:_})}),s.jsx(v.Combobox.Dropdown,{children:s.jsx(v.Combobox.Options,{style:{maxHeight:396,overflowY:"auto"},children:j.length>0?j.map(J=>{const xe=J.value===B;return s.jsx(v.Combobox.Option,{value:J.value,children:F(J.value,J.label,xe)},J.value)}):s.jsx(v.Combobox.Empty,{children:"Nothing found"})})})]})}function Xu(){return""}function IB(){return typeof window<"u"&&window.location.hostname==="dev-app.layers.md"?"https://api.layers.md":""}function xl(){return{}}async function DB(e,n,t,r,o,i,l,c){return new Promise((d,f)=>{const h=IB()+`/v1/videos/${e}/upload`,g=n.slice(t,r+1),C=`bytes ${t}-${r}/${o}`,b=new XMLHttpRequest;if(c(b),i.aborted){f(new Error("Upload cancelled"));return}i.addEventListener("abort",()=>b.abort(),{once:!0}),b.upload.addEventListener("progress",x=>{x.lengthComputable&&l(x.loaded)}),b.addEventListener("load",()=>{if(b.status>=200&&b.status<300)try{const w=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):b.responseText;d(typeof w=="object"&&w!==null?w:{})}catch(x){f(x)}else if(b.status===409){try{const w=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):{};if(w&&typeof w=="object"&&"expectedOffset"in w){d({expectedOffset:w.expectedOffset});return}}catch{}f({status:409,statusText:b.statusText,data:{message:"Upload conflict"}})}else{let x={};try{x=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):b.responseText}catch{x={message:"Unknown error"}}f({status:b.status,statusText:b.statusText,data:x})}}),b.addEventListener("error",()=>{f({status:0,statusText:"Network Error",data:{message:"Network error occurred"}})}),b.addEventListener("abort",()=>{const x=new Error("Upload cancelled");x.isPaused=!0,f(x)}),b.open("PUT",h,!0);const y={"Content-Range":C,...xl()};Object.keys(y).forEach(x=>b.setRequestHeader(x,y[x])),b.withCredentials=!0,b.send(g)})}async function $u(e,n,t=6e4){const r=new AbortController,o=setTimeout(()=>r.abort(),t);try{const i=await fetch(e,{...n,signal:r.signal});return clearTimeout(o),i}catch(i){throw clearTimeout(o),i}}async function OB(e,n,t="PAGE",r,o){const i=Xu()+"/v1/videos/init",l={"Content-Type":"application/json",...xl()},c={parentId:n,parentType:t,file:{originalFileName:e.name,contentType:e.type||"application/octet-stream",bytesTotal:e.size}};try{const d=await $u(i,{method:"POST",headers:l,body:JSON.stringify(c),credentials:r?void 0:"include"},3e4);if(!d.ok){let h={};try{const C=await d.text();C&&(h=JSON.parse(C))}catch{h={message:"Unknown error"}}const g={status:d.status,statusText:d.statusText,data:h};throw console.error("initVideo API error:",{url:i,status:d.status,statusText:d.statusText,data:h,requestBody:c}),g}return await d.json()}catch(d){throw(d==null?void 0:d.name)==="AbortError"?(console.error("initVideo timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):d!=null&&d.status?d:(console.error("initVideo fetch error:",{url:i,error:(d==null?void 0:d.message)||d}),{status:0,statusText:"Network Error",data:{message:(d==null?void 0:d.message)||"Network error occurred"}})}}async function Hs(e,n,t){const r=(n||Xu())+`/v1/videos/${e}/status`,o={...t||xl()};try{const i=await $u(r,{method:"GET",headers:o,credentials:n?void 0:"include"},1e4);if(!i.ok){const c=await i.json().catch(()=>({}));throw console.error("fetchStatus API error:",{url:r,status:i.status,statusText:i.statusText,data:c}),{status:i.status,statusText:i.statusText,data:c}}return await i.json()}catch(i){throw(i==null?void 0:i.name)==="AbortError"?(console.error("fetchStatus timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):i!=null&&i.status?i:(console.error("fetchStatus fetch error:",{url:r,error:(i==null?void 0:i.message)||i}),{status:0,statusText:"Network Error",data:{message:(i==null?void 0:i.message)||"Network error occurred"}})}}async function PB(e,n,t,r){const o=Xu()+`/v1/videos/${e}/cover`,i=new FormData;i.append("file",n);const l=await $u(o,{method:"POST",headers:xl(),body:i,credentials:"include"},3e4);if(!l.ok){const c=await l.json().catch(()=>({}));throw{status:l.status,statusText:l.statusText,data:c}}return l.json()}async function BB(e,n,t){const r=Xu()+`/v1/videos/${e}/retry`,o={...xl()};try{const i=await $u(r,{method:"POST",headers:o,credentials:n?void 0:"include"},3e4);if(!i.ok){const l=await i.json().catch(()=>({}));throw console.error("retryVideoProcessing API error:",{url:r,status:i.status,statusText:i.statusText,data:l}),{status:i.status,statusText:i.statusText,data:l}}}catch(i){throw(i==null?void 0:i.name)==="AbortError"?(console.error("retryVideoProcessing timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):i!=null&&i.status?i:(console.error("retryVideoProcessing fetch error:",{url:r,error:(i==null?void 0:i.message)||i}),{status:0,statusText:"Network Error",data:{message:(i==null?void 0:i.message)||"Network error occurred"}})}}const _B=2e3;function FB(e){return!e||e.playable!==!0?null:e.downloadUrl?e.downloadUrl:e.primaryUrl&&e.optimizedReady||e.proxyReady&&e.primaryUrl?e.primaryUrl:e.rawPlayable&&e.rawUrl?e.rawUrl:e.primaryUrl?e.primaryUrl:e.rawUrl?e.rawUrl:e.fallbackUrl?e.fallbackUrl:null}function WB(e){return!e||e.playable!==!0?null:e.rawPlayable&&e.rawUrl?e.rawUrl:e.proxyReady&&e.primaryUrl?e.primaryUrl:null}function zB({videoId:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,i]=m.useState(null),[l,c]=m.useState(!0),d=m.useRef(null),f=m.useCallback(()=>{d.current&&(clearInterval(d.current),d.current=null)},[]),h=m.useCallback(()=>{if(f(),!e||!r)return;c(!0);const k=e,T=async()=>{var R;if(k)try{const N=await Hs(k,n,t);if(i(N),N.failure){f();return}if(((R=N.playback)==null?void 0:R.optimizedReady)===!0){f();return}}catch(N){if((N==null?void 0:N.status)===404||(N==null?void 0:N.statusText)==="Not Found"){c(!1),f();return}console.error("Video status polling error:",(N==null?void 0:N.message)||N)}};d.current=setInterval(T,_B),T()},[e,r,n,t,f]);m.useEffect(()=>(r&&e?h():(f(),c(!0)),()=>{f()}),[r,e,h,f]);const g=(o==null?void 0:o.playback)||null,C=FB(g),b=(g==null?void 0:g.primaryUrl)||null,y=(g==null?void 0:g.optimizedReady)===!0,x=(g==null?void 0:g.rawPlayable)===!0,w=WB(g);return{status:o,playback:g,videoUrl:C,primaryUrl:b,optimizedReady:y,nativeVideoUrl:w,rawPlayable:x,isStatusAvailable:l}}const KB=18e4;function UB(e){if(!e)return"analysis";switch(e){case"QUEUED":case"PROXY_LQ":case"TRANSCODING":return"analysis";case"PACKAGING":case"THUMBNAILS":return"conversion";default:return"analysis"}}function HB({videoId:e,status:n,onAnalysisComplete:t,onConversionComplete:r,onError:o}){const[i,l]=m.useState({percent:0,stage:"analysis",remaining:void 0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),g=m.useRef(!1),C=m.useRef(""),b=m.useRef(0),y=m.useRef(!1),x=m.useRef(!1),w=m.useRef(!1),k=m.useRef(0),T=m.useRef(t),R=m.useRef(r),N=m.useRef(o);T.current=t,R.current=r,N.current=o,m.useEffect(()=>{var O,W,K,F,Y,q;if(!c||f||!n)return;if(n.failure){const ee=n.failure,Q=(ee==null?void 0:ee.message)||(ee==null?void 0:ee.reason)||"Unknown error";console.error("Video processing failed:",Q),d(!1),(O=N.current)==null||O.call(N);return}const B=n.playback||null,_=(B==null?void 0:B.playable)===!0,D=(B==null?void 0:B.optimizedReady)===!0;if(_&&!x.current&&(x.current=!0,(W=T.current)==null||W.call(T)),_&&!w.current&&(w.current=!0,(K=R.current)==null||K.call(R)),D){x.current||(x.current=!0,(F=T.current)==null||F.call(T)),w.current||(w.current=!0,(Y=R.current)==null||Y.call(R)),d(!1);return}if(n.processing){const ee=n.processing,Q=ee.percent!=null?ee.percent:0,J=UB(ee.stage),xe=JSON.stringify({stage:ee.stage,percent:Q});xe!==C.current&&(C.current=xe,b.current=Date.now(),y.current=!1,J==="conversion"&&!x.current&&(x.current=!0,(q=T.current)==null||q.call(T)));const we=Date.now();!y.current&&b.current>0&&we-b.current>KB&&(y.current=!0);const Te=Math.max(k.current,Q);k.current=Te,l({percent:Te,stage:J,remaining:Te<100?Math.ceil((100-Te)/5):void 0})}},[c,f,n]);const L=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),x.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),C.current="",b.current=0,y.current=!1,w.current=!1)},[e]),M=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),l({percent:0,stage:"conversion",remaining:void 0}))},[e]),S=m.useCallback(()=>{g.current=!0,h(!0)},[]),I=m.useCallback(()=>{g.current=!1,h(!1)},[]),j=m.useCallback(()=>{d(!1),h(!1),g.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),x.current=!1,C.current="",b.current=0,y.current=!1,w.current=!1},[]);return{transcodingProgress:i,isTranscoding:c,isPaused:f,startAnalysis:L,startConversion:M,handlePause:S,handleResume:I,handleCancel:j}}function YB({onError:e,parentId:n,parentType:t="PAGE"}){const r=m.useMemo(()=>({init:async(i,l,c)=>{var f,h;const d=await OB(i,l,c);return{id:d.videoId,startOffset:(h=(f=d.status)==null?void 0:f.upload)==null?void 0:h.nextOffset}},uploadChunk:DB,fetchOffset:async i=>{var c;const l=await Hs(i);return{nextOffset:(c=l==null?void 0:l.upload)==null?void 0:c.nextOffset}}}),[]),o=PA({api:r,parentId:n,parentType:t,onError:i=>{const l=o.uploadId;(i==null?void 0:i.status)===409?e("offset-mismatch",l,i):e("interrupted",l,i)}});return{uploadProgress:o.uploadProgress,isUploading:o.isUploading,isPaused:o.isPaused,handleUpload:o.handleUpload,handlePause:o.handlePause,handleResume:o.handleResume,handleCancel:o.handleCancel,uploadVideoId:o.uploadId}}function J5({size:e=32}){return s.jsxs("div",{className:"video-analysis-animation",style:{width:e,height:e,display:"flex",alignItems:"center",justifyContent:"center"},children:[s.jsxs("svg",{className:"video-analysis-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[s.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--1",d:"M17.3334 9.66663C17.8857 9.66663 18.3334 10.1143 18.3334 10.6666C18.3334 11.2189 17.8857 11.6666 17.3334 11.6666H14.6667C14.1145 11.6666 13.6667 11.2189 13.6667 10.6666C13.6667 10.1143 14.1145 9.66663 14.6667 9.66663H17.3334Z"}),s.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--2",d:"M21.6667 14.6667C21.6667 12.4388 21.665 10.8684 21.5053 9.67973C21.3493 8.51981 21.0592 7.87424 20.5925 7.40759C20.1258 6.94094 19.4803 6.65077 18.3204 6.49483C17.1318 6.33507 15.5613 6.33338 13.3334 6.33338H12.0001C9.77219 6.33338 8.20173 6.33508 7.0131 6.49483C5.85319 6.65078 5.20761 6.94095 4.74097 7.40759C4.27432 7.87424 3.98415 8.51982 3.82821 9.67973C3.66845 10.8684 3.66675 12.4388 3.66675 14.6667V17.3334C3.66675 19.5613 3.66845 21.1317 3.82821 22.3204C3.98415 23.4802 4.27432 24.1258 4.74097 24.5925C5.20761 25.0591 5.85319 25.3493 7.0131 25.5053C8.20173 25.665 9.7722 25.6667 12.0001 25.6667H13.3334C15.5613 25.6667 17.1318 25.665 18.3204 25.5053C19.4803 25.3493 20.1258 25.0591 20.5925 24.5925C21.0592 24.1258 21.3494 23.4802 21.5053 22.3204C21.665 21.1317 21.6667 19.5613 21.6667 17.3334V14.6667ZM23.6667 17.3334C23.6667 19.505 23.6689 21.2344 23.4871 22.5873C23.3013 23.9689 22.9067 25.1063 22.0066 26.0066C21.1064 26.9067 19.969 27.3013 18.5873 27.487C17.2344 27.6689 15.505 27.6667 13.3334 27.6667H12.0001C9.82846 27.6667 8.09909 27.6689 6.74618 27.487C5.36452 27.3013 4.22708 26.9067 3.32691 26.0066C2.42676 25.1063 2.03221 23.9689 1.84644 22.5873C1.66454 21.2344 1.66675 19.505 1.66675 17.3334V14.6667C1.66675 12.4951 1.66454 10.7657 1.84644 9.4128C2.0322 8.03114 2.42673 6.8937 3.32691 5.99353C4.22708 5.09335 5.36451 4.69883 6.74618 4.51306C8.0991 4.33117 9.82847 4.33338 12.0001 4.33338H13.3334C15.505 4.33338 17.2344 4.33117 18.5873 4.51306C19.969 4.69883 21.1064 5.09338 22.0066 5.99353C22.9067 6.89371 23.3013 8.03114 23.4871 9.4128C23.6689 10.7657 23.6667 12.4951 23.6667 14.6667V17.3334Z"}),s.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--3",d:"M28.3332 17.0429V14.957C28.3332 13.0616 28.331 11.7506 28.2017 10.8359C28.0693 9.90011 27.8504 9.74905 27.7551 9.70179C27.6735 9.66142 27.4467 9.57162 26.6666 10.0429C25.898 10.5072 24.9084 11.322 23.4712 12.5078L23.3033 12.6458C22.8773 12.9973 22.2472 12.9364 21.8957 12.5104C21.5443 12.0844 21.6039 11.4543 22.0298 11.1028L22.1978 10.9648C23.5816 9.82307 24.7074 8.89105 25.6327 8.332C26.5446 7.78112 27.5909 7.38889 28.6431 7.91012C29.6814 8.4248 30.0312 9.48824 30.1822 10.556C30.3361 11.6446 30.3332 13.1276 30.3332 14.957V17.0429C30.3332 18.8728 30.3362 20.3566 30.1822 21.4453C30.0311 22.5127 29.6822 23.5751 28.6444 24.0898H28.6431C27.5909 24.611 26.5446 24.2188 25.6327 23.6679C24.7074 23.1089 23.5816 22.1769 22.1978 21.0351L22.0298 20.8971C21.6039 20.5456 21.5443 19.9155 21.8957 19.4895C22.2473 19.0636 22.8773 19.0026 23.3033 19.3541L23.4712 19.4922C24.9084 20.678 25.898 21.4927 26.6666 21.957C27.4466 22.4282 27.6734 22.3385 27.7551 22.2981C27.8505 22.2509 28.0693 22.0998 28.2017 21.164C28.331 20.2494 28.3332 18.9384 28.3332 17.0429Z"}),s.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--4",d:"M3.82796 22.3203C3.6682 21.1317 3.66651 19.5612 3.66651 17.3333V16H1.6665V17.3333C1.66651 19.5049 1.6643 21.2343 1.84619 22.5872C2.03196 23.9689 2.42651 25.1063 3.32666 26.0065C4.22684 26.9067 5.36427 27.3012 6.74593 27.487C8.08281 27.6667 9.78728 27.6667 11.9228 27.6667H11.9998H13.3332H13.4102C15.5457 27.6667 17.2502 27.6667 18.5871 27.487C19.9687 27.3012 21.1061 26.9066 22.0063 26.0065C22.9065 25.1063 23.3011 23.9689 23.4868 22.5872C23.6666 21.2504 23.6665 19.5459 23.6665 17.4104V17.3333V16H21.6665V17.3333C21.6665 19.5612 21.6648 21.1317 21.505 22.3203C21.3491 23.4802 21.0589 24.1257 20.5923 24.5924C20.1256 25.0591 19.48 25.3493 18.3202 25.5052C17.1315 25.665 15.5611 25.6667 13.3332 25.6667H11.9998C9.77195 25.6667 8.20149 25.665 7.01286 25.5052C5.85294 25.3493 5.20737 25.0591 4.74072 24.5924C4.27407 24.1257 3.9839 23.4802 3.82796 22.3203Z"}),s.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--5",d:"M30.3334 17.1443L30.3334 17.043V16H28.3334V17.043C28.3334 18.9384 28.3312 20.2494 28.2019 21.1641C28.0696 22.0998 27.8507 22.2509 27.7553 22.2982C27.6736 22.3386 27.4468 22.4283 26.6668 21.957C25.8982 21.4927 24.9086 20.678 23.4715 19.4922L23.3035 19.3542C22.8775 19.0026 22.2475 19.0636 21.8959 19.4896C21.5445 19.9155 21.6041 20.5456 22.0301 20.8971L22.198 21.0352L22.2585 21.0851C23.6147 22.2041 24.7211 23.1171 25.6329 23.668C26.5448 24.2189 27.5911 24.611 28.6433 24.0898H28.6446C29.6824 23.5752 30.0313 22.5127 30.1824 21.4453C30.3335 20.3768 30.3335 18.9277 30.3334 17.1443Z"})]}),s.jsx("div",{className:"video-analysis-animation__line"})]})}function ZB({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:i}=Ue.useTranslation();return s.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?s.jsx(J5,{size:32}):s.jsx(ap,{size:32}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[s.jsx(v.Text,{size:"md",fw:500,children:i("editor.video.transcoding.title")}),s.jsx(v.Text,{size:"sm",c:"dimmed",children:i("editor.video.transcoding.analysis")})]})]}),s.jsx("div",{style:{width:"100%"},children:s.jsx(Ru,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!1,showInfo:!1})})]}),s.jsx(ul,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function GB({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:i}=Ue.useTranslation();return s.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?s.jsx(J5,{size:32}):s.jsx(ap,{size:32}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[s.jsx(v.Text,{size:"md",fw:500,children:i("editor.video.transcoding.title")}),s.jsx(v.Text,{size:"sm",c:"dimmed",children:i("editor.video.transcoding.conversion")})]})]}),s.jsx("div",{style:{width:"100%"},children:s.jsx(Ru,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!!e.remaining,showInfo:!1})})]}),s.jsx(ul,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function bC({onFileSelect:e,maxFileSize:n}){const t={type:"file",showTabs:["upload"],dropZoneProps:{multiple:!1,maxFiles:1,maxSize:n*1024*1024,accept:{"video/*":[]}},inline:!0,tab:"upload",popoverProps:{opened:!0},onUpload:r=>{r.length>0&&e(r[0])}};return s.jsx(At.FilePicker,{...t})}function VB({errorType:e,onRetry:n,onCancel:t,maxFileSize:r}){const{t:o}=Ue.useTranslation(),i=c=>c>=1024?`${(c/1024).toFixed(1)} GB`:`${c} MB`,l=()=>{switch(e){case"size-limit":return o("editor.video.errors.sizeLimit",{size:i(r)});case"format":return s.jsxs(s.Fragment,{children:[o("editor.video.errors.format"),s.jsx("br",{}),o("editor.video.errors.formatHint")]});case"interrupted":return o("editor.video.errors.interrupted");case"offset-mismatch":return o("editor.video.errors.offsetMismatch");case"stall":return o("editor.video.errors.stall");default:return o("editor.video.errors.unknown")}};return s.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg, 20px)",alignItems:"center",justifyContent:"center"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",width:"100%"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center"},children:[s.jsx($,{icon:t1,size:32,color:"var(--mantine-color-red-filled)",className:"video-upload-error-icon"}),s.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",style:{lineHeight:1.55},children:o("editor.video.errors.uploadFailed")})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",justifyContent:"center",width:"100%"},children:[e==="interrupted"&&s.jsx("div",{style:{width:"100%"},children:s.jsx(v.Progress,{value:100,color:"red",size:6,radius:"md"})}),s.jsx(v.Text,{size:"xs",c:"var(--mantine-color-red-text)",ta:"center",style:{lineHeight:1.4},className:"video-upload-error-message",children:l()})]})]}),e==="interrupted"?s.jsx(ul,{onRetry:n,onCancel:t,showRetry:!0}):s.jsx(v.Button,{variant:"default",size:"sm",onClick:n,style:{height:36,padding:"6px 18px"},children:o("editor.video.actions.selectAnotherFile")})]})}function qB({value:e,disabled:n=!1,error:t,onChange:r,onSubmit:o}){const{t:i}=Ue.useTranslation(),l=m.useCallback(d=>{d.stopPropagation()},[]),c=m.useCallback(d=>{d.stopPropagation()},[]);return s.jsxs("div",{className:"video-upload-link",style:{pointerEvents:"auto",position:"relative",zIndex:10},onClick:l,onMouseDown:l,onMouseUp:l,onPointerDown:c,onPointerUp:c,children:[s.jsx("div",{className:"video-upload-link-input",children:s.jsx(v.TextInput,{value:e,type:"url",variant:"filled",size:"sm",placeholder:i("editor.video.link.placeholder"),disabled:n,error:!!t,w:"100%",leftSection:s.jsx($,{icon:tu,size:16}),styles:{input:{pointerEvents:"auto"}},onChange:d=>r(d.currentTarget.value),onKeyDown:d=>{d.stopPropagation(),d.key==="Enter"&&(d.preventDefault(),o())},onClick:l,onMouseDown:l,onPointerDown:c})}),t?s.jsx(v.Text,{size:"xs",className:"video-upload-link-error",children:t}):null,s.jsx("div",{className:"video-upload-link-actions",children:s.jsx(v.Button,{size:"sm",radius:"md",onClick:o,disabled:n||e.trim().length===0,"data-test-id":"video-link-save",children:i("editor.video.link.save")})})]})}function yC(e){const n=e.match(/(\d+):(\d+):(\d+)\.(\d+)/);if(!n)return 0;const t=Number(n[1]),r=Number(n[2]),o=Number(n[3]),i=Number(n[4]);return t*3600+r*60+o+i/1e3}function X5(e,n){if(e.startsWith("http://")||e.startsWith("https://"))return e;const t=n||(typeof window<"u"?window.location.origin:""),r=e.startsWith("/")?e:`/${e}`;return`${t}${r}`}function QB(e,n){const r=X5(e,n).split("/");return r.pop(),r.join("/")}function JB(e,n,t){const r=e.split(/\r?\n/),o=[],i=QB(n,t);let l=0;for(;l<r.length;){const c=r[l].trim();if(c.includes("-->")){const[d,f]=c.split("-->").map(y=>y.trim()),h=yC(d),g=yC(f),b=(r[l+1]||"").trim().match(/^(sheet_\d+\.jpg)#xywh=(\d+),(\d+),(\d+),(\d+)/);if(b){const y=b[1],x=Number(b[2]),w=Number(b[3]),k=Number(b[4]),T=Number(b[5]),R=`${i}/${y}`;o.push({start:h,end:g,sheetUrl:R,x,y:w,w:k,h:T})}l+=2;continue}l+=1}return o}function xC(e,n){return X5(e,n)}function XB(e){return Math.min(1,Math.max(0,e))}function $B({storyboard:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,i]=m.useState([]),[l,c]=m.useState(0),[d,f]=m.useState(!1),[h,g]=m.useState(()=>new Map),C=m.useRef(new Set),b=r&&(e==null?void 0:e.ready)&&e.vttUrl&&e.metaUrl;m.useEffect(()=>{if(!b){f(!1),i([]),c(0);return}let k=!0;return(async()=>{const R=xC(e.vttUrl,n),N=xC(e.metaUrl,n),M={method:"GET",headers:t||{},credentials:n?void 0:"include"},[S,I]=await Promise.all([fetch(R,M),fetch(N,M)]);if(!S.ok||!I.ok){k&&f(!1);return}const[j,B]=await Promise.all([S.text(),I.json().catch(()=>({}))]);if(!k)return;const _=JB(j,R,n),D=Number(B.durationSec||0);i(_),c(D),f(_.length>0&&D>0)})().catch(()=>{k&&f(!1)}),()=>{k=!1}},[b,e==null?void 0:e.vttUrl,e==null?void 0:e.metaUrl,n,t]);const y=m.useCallback(async k=>{if(h.has(k)||C.current.has(k))return h.get(k);C.current.add(k);const T=new Image,R=await new Promise(N=>{T.onload=()=>N({width:T.naturalWidth,height:T.naturalHeight}),T.onerror=()=>N(null),T.src=k});return C.current.delete(k),R?(g(N=>{const L=new Map(N);return L.set(k,R),L}),R):null},[h]),x=m.useCallback(k=>{if(!d||!l||o.length===0)return null;const T=XB(k),R=Math.min(o.length-1,Math.max(0,Math.floor(T*o.length))),N=o[R],L=h.get(N.sheetUrl);return{...N,sheetWidth:L==null?void 0:L.width,sheetHeight:L==null?void 0:L.height}},[d,l,o,h]),w=m.useMemo(()=>o.map(k=>k.sheetUrl),[o]);return m.useEffect(()=>{if(!d||w.length===0)return;const k=w[0];h.has(k)||y(k).catch(()=>{})},[d,w,h,y]),{ready:d,cues:o,durationSec:l,getFrameAtRatio:x,ensureSheetDimensions:y}}const e_=120,t_=64;function n_({frame:e,left:n,width:t=e_}){const r=m.useMemo(()=>{const o=t/e.w,i=t_,l=e.sheetWidth&&e.sheetHeight?`${e.sheetWidth*o}px ${e.sheetHeight*o}px`:void 0,c=`-${e.x*o}px -${e.y*o}px`;return{container:{left:n,width:t,height:i},image:{backgroundImage:`url('${e.sheetUrl}')`,backgroundSize:l,backgroundPosition:c}}},[e,n,t]);return s.jsx("div",{className:"video-player-storyboard-preview","data-test-id":"video-storyboard-preview",style:r.container,children:s.jsx("div",{className:"video-player-storyboard-preview-image",style:r.image})})}function yr(e){return function({size:t=20,color:r="currentColor"}){return s.jsx($,{icon:e,size:t,color:r})}}function $5({size:e=20,color:n="currentColor"}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e*44/42,viewBox:"0 0 42 44",fill:"none","aria-hidden":"true",focusable:"false",children:s.jsx("path",{d:"M7.80209 0.289726C10.2068 -0.391222 12.6819 0.195277 15.3958 1.34962C18.1136 2.50569 21.4619 4.41001 25.724 6.83139C30.1341 9.33682 33.595 11.3004 36.0547 13.097C38.5092 14.8899 40.3262 16.7646 40.9766 19.235C41.4534 21.0471 41.4534 22.9542 40.9766 24.7663C40.3262 27.2368 38.5092 29.1114 36.0547 30.9043C33.595 32.7009 30.1341 34.6644 25.724 37.1699C21.4619 39.5912 18.1136 41.4956 15.3958 42.6517C12.6819 43.8061 10.2069 44.3926 7.80209 43.7116C6.03479 43.2107 4.4259 42.2585 3.13021 40.9512C1.3719 39.1771 0.664657 36.7249 0.330731 33.7741C-0.00366531 30.8183 1.69004e-06 26.9408 1.69004e-06 22.0007C1.68951e-06 17.0605 -0.00366606 13.183 0.330731 10.2272C0.664657 7.27644 1.37188 4.82417 3.13021 3.05014C4.42578 1.74306 6.03454 0.790589 7.80209 0.289726Z",fill:n})})}function r_({size:e=20,color:n="currentColor"}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false",children:[s.jsx("path",{d:"M8.9585 14.1666C8.9585 14.7382 8.9599 15.2299 8.90723 15.6217C8.85213 16.0313 8.72764 16.4238 8.40918 16.7423C8.09069 17.0607 7.69819 17.1852 7.28858 17.2403C6.89686 17.293 6.40509 17.2916 5.8335 17.2916C5.26191 17.2916 4.77014 17.293 4.37842 17.2403C3.96881 17.1852 3.5763 17.0607 3.25782 16.7423C2.93936 16.4238 2.81487 16.0313 2.75977 15.6217C2.7071 15.2299 2.7085 14.7382 2.7085 14.1666V5.83326C2.7085 5.26167 2.7071 4.7699 2.75977 4.37818C2.81486 3.96855 2.93933 3.57606 3.25782 3.25757C3.5763 2.93908 3.9688 2.81462 4.37842 2.75953C4.77014 2.70686 5.26191 2.70826 5.8335 2.70826C6.40509 2.70826 6.89686 2.70686 7.28858 2.75953C7.6982 2.81462 8.09069 2.93908 8.40918 3.25757C8.72767 3.57606 8.85213 3.96855 8.90723 4.37818C8.9599 4.7699 8.9585 5.26167 8.9585 5.83326V14.1666Z",fill:n}),s.jsx("path",{d:"M17.2915 14.1666C17.2915 14.7382 17.2929 15.2299 17.2402 15.6217C17.1851 16.0313 17.0606 16.4238 16.7422 16.7423C16.4237 17.0607 16.0312 17.1852 15.6216 17.2403C15.2299 17.293 14.7381 17.2916 14.1665 17.2916C13.5949 17.2916 13.1031 17.293 12.7114 17.2403C12.3018 17.1852 11.9093 17.0607 11.5908 16.7423C11.2724 16.4238 11.1479 16.0313 11.0928 15.6217C11.0401 15.2299 11.0415 14.7382 11.0415 14.1666V5.83326C11.0415 5.26167 11.0401 4.76989 11.0928 4.37818C11.1479 3.96856 11.2724 3.57606 11.5908 3.25757C11.9093 2.93911 12.3018 2.81462 12.7114 2.75953C13.1032 2.70686 13.5949 2.70826 14.1665 2.70826C14.7381 2.70826 15.2299 2.70686 15.6216 2.75953C16.0312 2.81462 16.4237 2.93911 16.7422 3.25757C17.0607 3.57606 17.1851 3.96856 17.2402 4.37818C17.2929 4.76989 17.2915 5.26167 17.2915 5.83326V14.1666Z",fill:n})]})}const o_=yr(LA),i_=yr(NA),vC=yr(Nk),si=yr(Fi),s_=yr(gk),a_=yr(Tk),Rs=yr(uA),To=yr(Jn),ey=yr(Ok),ty=yr(hk),ny=yr(Rk),cp=yr(Wc),Pc=yr(u1);function l_({size:e=32}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",focusable:"false",children:[s.jsx("path",{d:"M16 1.66699C23.916 1.66699 30.333 8.08391 30.333 16C30.333 23.916 23.916 30.333 16 30.333C8.08391 30.333 1.66699 23.916 1.66699 16C1.66699 8.08392 8.08392 1.66699 16 1.66699Z",fill:"var(--mantine-primary-color-filled, #4c6ef5)"}),s.jsx("path",{d:"M20.5961 11.3243C20.9693 10.9172 21.6018 10.8899 22.0089 11.2631C22.4159 11.6363 22.4432 12.2687 22.0701 12.6758L14.7367 20.6758C14.5525 20.8767 14.2944 20.994 14.0219 21C13.7492 21.006 13.4856 20.8999 13.2927 20.7071L9.9594 17.3737C9.56887 16.9832 9.56887 16.3502 9.9594 15.9597C10.3499 15.5691 10.9829 15.5691 11.3735 15.9597L13.9672 18.5534L20.5961 11.3243Z",fill:"white"})]})}function ed(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function td(e){return e?{Authorization:`Bearer ${e}`}:{}}async function wC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function nd(e){if(!e.ok){const n=await wC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||e.statusText||"Request failed";throw new Error(t)}return wC(e)}function Ys(e){const n=(e==null?void 0:e.id)??(e==null?void 0:e.trackId)??(e==null?void 0:e.subtitleId)??"",t=(e==null?void 0:e.lang)??(e==null?void 0:e.language)??(e==null?void 0:e.srclang)??"",r=t?String(t):"und",o=(e==null?void 0:e.label)??(e==null?void 0:e.name)??(e==null?void 0:e.title)??r,i=o?String(o):r,l=(e==null?void 0:e.kind)??"subtitles",c=!!((e==null?void 0:e.isDefault)??(e==null?void 0:e.default)??!1),d=!!((e==null?void 0:e.isDisabled)??!1),f=typeof(e==null?void 0:e.url)=="string"?e.url:typeof(e==null?void 0:e.vttUrl)=="string"?e.vttUrl:typeof(e==null?void 0:e.src)=="string"?e.src:void 0,h=typeof(e==null?void 0:e.createdAt)=="string"?e.createdAt:void 0,g=typeof(e==null?void 0:e.fileName)=="string"?e.fileName:void 0,C=!!((e==null?void 0:e.auto)??(e==null?void 0:e.isAuto)??(e==null?void 0:e.source)==="auto");return{id:String(n),lang:r,label:i,kind:String(l),isDefault:c,isDisabled:d,url:f,createdAt:h,fileName:g,status:"ready",auto:C}}function wu(e){return e.label.length<=3}async function kC(e,n={}){const t=ed(`/v1/videos/${e}/subtitles`,n.baseUrl),r=await fetch(t,{method:"GET",credentials:"include",headers:{...td(n.authToken)}}),o=await nd(r);return(Array.isArray(o)?o:Array.isArray(o==null?void 0:o.tracks)?o.tracks:[]).map(Ys).filter(l=>l.id)}async function c_(e,n,t,r={}){const o=new URLSearchParams;o.set("lang",t.lang),t.label&&o.set("label",t.label),t.kind&&o.set("kind",t.kind),o.set("default","false");const i=ed(`/v1/videos/${e}/subtitles?${o.toString()}`,r.baseUrl),l=new FormData;l.append("file",n);const c=await fetch(i,{method:"POST",credentials:"include",headers:{...td(r.authToken)},body:l,signal:t.signal}),d=await nd(c);return d?Ys(d):null}async function u_(e,n,t,r={}){const o=ed(`/v1/videos/${e}/subtitles/${n}/disabled`,r.baseUrl),i=await fetch(o,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...td(r.authToken)},body:JSON.stringify({isDisabled:t})});await nd(i)}async function d_(e,n,t={}){const r=ed(`/v1/videos/${e}/subtitles/${n}`,t.baseUrl),o=await fetch(r,{method:"DELETE",credentials:"include",headers:{...td(t.authToken)}});await nd(o)}const f_={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function h_({opened:e,onClose:n,settings:t,isSettingsDisabled:r,onSubtitlesOpen:o,onSpeedClick:i,onQualityClick:l,onSubtitleSelect:c,optimisticSpeed:d,setOptimisticSpeed:f}){var N,L;const{t:h}=Ue.useTranslation(),[g,C]=m.useState("main"),b=()=>{n(),C("main")},y=(d??t.currentSpeed)===1?h("editor.video.settings.normal"):`${d??t.currentSpeed}x`,x=((N=t.qualities.find(M=>M.id===t.currentQualityId))==null?void 0:N.label)||h("editor.video.settings.auto"),w=((L=t.subtitles.find(M=>M.id===t.currentSubtitleId))==null?void 0:L.label)||h("editor.video.settings.off"),k=M=>M===1?h("editor.video.settings.normal"):M.toString(),T=d??t.currentSpeed,R=h("editor.video.settingsModal.autoGenerated");return s.jsx(v.Drawer,{opened:e,onClose:b,position:"bottom",size:"auto",withCloseButton:!1,padding:0,lockScroll:!1,withOverlay:!1,classNames:{content:"video-mobile-settings-drawer"},withinPortal:!0,children:s.jsxs("div",{className:"video-mobile-settings-drawer__inner",children:[g==="main"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"video-mobile-settings-drawer__header",children:[s.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.player.settings")}),s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:s.jsx(Pc,{size:16})})]}),s.jsx("div",{className:"video-mobile-settings-drawer__divider"}),s.jsxs("div",{className:"video-mobile-settings-drawer__list",children:[s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r,onClick:()=>{r||(o==null||o(),C("subtitles"))},children:[s.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:s.jsx(ey,{size:16})}),s.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.subtitlesCc")}),s.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:w}),s.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:s.jsx(si,{size:16})})]}),s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealSpeeds,onClick:()=>{t.hasRealSpeeds&&C("speed")},children:[s.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:s.jsx(ty,{size:16})}),s.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.speed")}),s.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:y}),s.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:s.jsx(si,{size:16})})]}),s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealQualities,onClick:()=>{t.hasRealQualities&&C("quality")},children:[s.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:s.jsx(ny,{size:16})}),s.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.quality")}),s.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:x}),s.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:s.jsx(si,{size:16})})]})]})]}),g==="subtitles"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:s.jsx(Rs,{size:16})}),s.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.subtitlesCc")}),s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:s.jsx(Pc,{size:16})})]}),s.jsx("div",{className:"video-mobile-settings-drawer__divider"}),s.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.subtitles.map(M=>{const S=M.id===t.currentSubtitleId;let I=M.label;if(wu({label:I})){const j=M.lang?f_[M.lang.toLowerCase()]:null;j&&(I=j),I=`${I} (${R})`}return s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{c(M.id),b()},children:[s.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:I}),S&&s.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:s.jsx(To,{size:16})})]},`subtitle-${M.id??"off"}`)})})]}),g==="speed"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:s.jsx(Rs,{size:16})}),s.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.speed")}),s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:s.jsx(Pc,{size:16})})]}),s.jsx("div",{className:"video-mobile-settings-drawer__divider"}),s.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.speeds.map(M=>{const S=M===T;return s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{f(M),i(M),b()},children:[s.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:k(M)}),S&&s.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:s.jsx(To,{size:16})})]},`speed-${M}`)})})]}),g==="quality"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:s.jsx(Rs,{size:16})}),s.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.quality")}),s.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:s.jsx(Pc,{size:16})})]}),s.jsx("div",{className:"video-mobile-settings-drawer__divider"}),s.jsxs("div",{className:"video-mobile-settings-drawer__scroll-list",children:[t.qualities.map(M=>{var j;const S=M.id===t.currentQualityId,I=(j=M.label)==null?void 0:j.includes("1080");return s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(M.id),b()},children:[s.jsxs("span",{className:"video-mobile-settings-drawer__option-label",children:[M.label,I&&s.jsx("sup",{className:"video-mobile-settings-drawer__hd-badge",children:"HD"})]}),S&&s.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:s.jsx(To,{size:16})})]},`quality-${M.id}`)}),t.hasRealQualities&&s.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(null),b()},children:[s.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:h("editor.video.settings.auto")}),t.currentQualityId==null&&s.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:s.jsx(To,{size:16})})]})]})]})]})})}function rd({header:e,items:n,width:t=300,maxHeight:r}){return s.jsxs(v.Menu.Dropdown,{w:t,mah:r,style:r?{overflowY:"auto"}:void 0,onClick:o=>{o.stopPropagation()},children:[e&&s.jsxs(s.Fragment,{children:[s.jsx(v.Menu.Item,{onClick:o=>{o.stopPropagation(),e.onClick()},disabled:e.disabled,leftSection:e.leftSection,closeMenuOnClick:!1,className:"video-menu-item","data-test-id":e.testId,children:s.jsxs("div",{className:"video-menu-row",children:[s.jsx(v.Text,{className:"video-menu-header",children:e.label}),e.rightSection&&s.jsx("span",{className:"video-menu-icon",onClick:o=>{o.stopPropagation()},children:e.rightSection})]})}),s.jsx(v.Menu.Divider,{})]}),n.map(o=>s.jsx(v.Menu.Item,{onClick:i=>{i.stopPropagation(),o.onClick()},disabled:o.disabled,closeMenuOnClick:!1,className:"video-menu-item","data-test-id":o.testId,children:s.jsxs("div",{className:"video-menu-row",children:[s.jsxs("div",{className:"video-menu-left",children:[o.leftIcon&&s.jsx("span",{className:"video-menu-icon",children:o.leftIcon}),s.jsx(v.Text,{className:"video-menu-item-text",children:o.leftLabel})]}),s.jsxs("div",{className:"video-menu-right",children:[s.jsx(v.Text,{className:"video-menu-item-text video-menu-value",children:o.centerLabel??""}),o.rightSection?s.jsx("span",{className:"video-menu-chevron",children:o.rightSection}):null]})]})},o.key))]})}function p_({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ue.useTranslation(),i=[...n.qualities.map(l=>{var f;const c=l.id===n.currentQualityId,d=(f=l.label)==null?void 0:f.includes("1080");return{key:`quality-${l.id}`,testId:`video-settings-quality-${l.id}`,onClick:()=>r(l.id),disabled:e,leftLabel:d?s.jsxs("span",{children:[l.label," ",s.jsx("sup",{className:"video-menu-hd-badge",children:"HD"})]}):l.label,rightSection:c?s.jsx(To,{size:16}):null}}),...n.hasRealQualities?[{key:"quality-auto",testId:"video-settings-quality-auto",onClick:()=>r(null),disabled:e,leftLabel:o("editor.video.settings.auto"),rightSection:n.currentQualityId==null?s.jsx(To,{size:16}):null}]:[]];return s.jsx(rd,{width:264,header:{label:o("editor.video.settings.quality"),onClick:t,disabled:e,leftSection:s.jsx(Rs,{size:16}),testId:"video-settings-quality-header"},items:i})}function m_({disabled:e,settings:n,onSpeedClick:t,onQualityClick:r,onSubtitlesClick:o}){var h,g;const{t:i}=Ue.useTranslation(),l=n.currentSpeed===1?i("editor.video.settings.normal"):`${n.currentSpeed}x`,c=((h=n.qualities.find(C=>C.id===n.currentQualityId))==null?void 0:h.label)||i("editor.video.settings.auto"),d=((g=n.subtitles.find(C=>C.id===n.currentSubtitleId))==null?void 0:g.label)||i("editor.video.settings.off"),f=[{key:"subtitles",testId:"video-settings-menu-subtitles",onClick:o,disabled:e,leftIcon:s.jsx(ey,{size:16}),leftLabel:i("editor.video.settings.subtitlesCc"),centerLabel:d,rightSection:s.jsx(si,{size:16})},{key:"speed",testId:"video-settings-menu-speed",onClick:t,disabled:e||!n.hasRealSpeeds,leftIcon:s.jsx(ty,{size:16}),leftLabel:i("editor.video.settings.speed"),centerLabel:l,rightSection:s.jsx(si,{size:16})},{key:"quality",testId:"video-settings-menu-quality",onClick:r,disabled:e||!n.hasRealQualities,leftIcon:s.jsx(ny,{size:16}),leftLabel:i("editor.video.settings.quality"),centerLabel:c,rightSection:s.jsx(si,{size:16})}];return s.jsx(rd,{width:300,items:f})}function g_({disabled:e,settings:n,currentSpeed:t,onBack:r,onSelect:o}){const{t:i}=Ue.useTranslation(),l=f=>f===1?i("editor.video.settings.normal"):f.toString(),c=t??n.currentSpeed,d=n.speeds.map(f=>{const h=f===c;return{key:`speed-${f}`,testId:`video-settings-speed-${f}`,onClick:()=>o(f),disabled:e,leftLabel:l(f),rightSection:h?s.jsx(To,{size:16}):null}});return s.jsx(rd,{width:264,maxHeight:244,header:{label:i("editor.video.settings.speed"),onClick:r,disabled:e,leftSection:s.jsx(Rs,{size:16}),testId:"video-settings-speed-header"},items:d})}const C_={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function A_({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ue.useTranslation(),i=o("editor.video.settingsModal.autoGenerated"),l=n.subtitles.map(c=>{const d=c.id===n.currentSubtitleId;let f=c.label;if(wu({label:f})){const h=c.lang?C_[c.lang.toLowerCase()]:null;h&&(f=h),f=`${f} (${i})`}return{key:`subtitle-${c.id??"off"}`,testId:`video-settings-subtitle-${c.id??"off"}`,onClick:()=>r(c.id),disabled:e,leftLabel:f,rightSection:d?s.jsx(To,{size:16}):null}});return s.jsx(rd,{width:264,header:{label:o("editor.video.settings.subtitlesCc"),onClick:t,disabled:e,leftSection:s.jsx(Rs,{size:16}),testId:"video-settings-subtitles-header"},items:l})}function b_({text:e}){const n=m.useRef(null),[t,r]=m.useState(!1),o=m.useCallback(()=>{const i=n.current;i&&r(i.scrollWidth>i.clientWidth)},[]);return s.jsx(v.Tooltip,{label:e,openDelay:300,withinPortal:!0,disabled:!t,children:s.jsx("span",{ref:n,className:"video-player-chapters-item-title",onMouseEnter:o,children:e})})}function y_({video:e,containerRef:n,title:t,settings:r,isSettingsDisabled:o,onSubtitlesOpen:i,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,storyboard:f,baseUrl:h,authHeaders:g,chapters:C=[],isProcessing:b=!1}){const{t:y}=Ue.useTranslation(),[x,w]=m.useState(0),[k,T]=m.useState(0),[R,N]=m.useState(!1),[L,M]=m.useState(1),[S,I]=m.useState(!1),[j,B]=m.useState([]),[_,D]=m.useState(!1),[O,W]=m.useState(!1),[K,F]=m.useState(!1),[Y,q]=m.useState(!1),ee=Ft.useClickOutside(()=>{Yn&&q(!1)}),Q=m.useRef(null),[J,xe]=m.useState(null),[we,Te]=m.useState(null),[We,ie]=m.useState(!1),[X,ae]=m.useState("main"),[pe,Ce]=m.useState(null),G=$B({storyboard:f,baseUrl:h,authHeaders:g,enabled:!!f}),he=m.useMemo(()=>J==null?null:G.getFrameAtRatio(J),[J,G]);m.useEffect(()=>{he!=null&&he.sheetUrl&&G.ensureSheetDimensions(he.sheetUrl).catch(()=>{})},[he,G]),m.useEffect(()=>{if(!e)return;const ne=()=>{w(e.currentTime||0)},ke=()=>{T(e.duration||0),B(r0(e))},Fe=()=>{N(!0)},me=()=>{N(!1)},se=()=>{M(e.volume??1),I(e.muted)},Ae=()=>{B(r0(e))};return ne(),ke(),se(),N(!e.paused),e.addEventListener("timeupdate",ne),e.addEventListener("durationchange",ke),e.addEventListener("loadedmetadata",ke),e.addEventListener("play",Fe),e.addEventListener("pause",me),e.addEventListener("volumechange",se),e.addEventListener("progress",Ae),()=>{e.removeEventListener("timeupdate",ne),e.removeEventListener("durationchange",ke),e.removeEventListener("loadedmetadata",ke),e.removeEventListener("play",Fe),e.removeEventListener("pause",me),e.removeEventListener("volumechange",se),e.removeEventListener("progress",Ae)}},[e]),m.useEffect(()=>{const ne=()=>{W(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",ne),ne(),()=>{document.removeEventListener("fullscreenchange",ne)}},[]),m.useEffect(()=>{if(!e)return;const ne=()=>F(!0),ke=()=>F(!1);return e.addEventListener("enterpictureinpicture",ne),e.addEventListener("leavepictureinpicture",ke),F(document.pictureInPictureElement===e&&!!document.pictureInPictureElement),()=>{e.removeEventListener("enterpictureinpicture",ne),e.removeEventListener("leavepictureinpicture",ke)}},[e]),m.useEffect(()=>{if(!_)return;const ne=Fe=>{var Pe;if(!e||!k)return;const me=(Pe=Q.current)==null?void 0:Pe.getBoundingClientRect();if(!me)return;const Ae=Ur((Fe.clientX-me.left)/me.width,0,1)*k;e.currentTime=Ae,w(Ae)},ke=()=>{D(!1)};return window.addEventListener("pointermove",ne),window.addEventListener("pointerup",ke),()=>{window.removeEventListener("pointermove",ne),window.removeEventListener("pointerup",ke)}},[_,e,k]),m.useEffect(()=>{Ce(null)},[r.currentSpeed]);const oe=k>0?Ur(x/k,0,1):0,H=b?[]:j,Z=m.useMemo(()=>!C||C.length===0?[]:[...C].filter(ne=>k>0&&ne.startSec<=k).sort((ne,ke)=>ne.startSec-ke.startSec),[C,k]),re=m.useMemo(()=>{if(Z.length===0||k<=0)return[];const ne=[],ke=Ur(Z[0].startSec/k,0,1);ke>0&&ne.push({chapter:null,startRatio:0,endRatio:ke});for(let Fe=0;Fe<Z.length;Fe++){const me=Z[Fe],se=Ur(me.startSec/k,0,1),Ae=Z[Fe+1],Pe=Ae?Ur(Ae.startSec/k,0,1):1;ne.push({chapter:me,startRatio:se,endRatio:Pe})}return ne},[Z,k]),fe=m.useMemo(()=>{if(Z.length===0)return null;for(let ne=Z.length-1;ne>=0;ne--)if(x>=Z[ne].startSec)return Z[ne];return Z[0]},[Z,x]),ge=m.useMemo(()=>{if(J==null||Z.length===0||k<=0)return null;const ne=J*k;for(let ke=Z.length-1;ke>=0;ke--)if(ne>=Z[ke].startSec)return Z[ke];return Z[0]},[J,Z,k]),Re=ne=>{e&&(e.currentTime=ne.startSec,w(ne.startSec))},Oe=()=>{e&&(e.paused?e.play().catch(()=>{}):e.pause())},ce=()=>{e&&(e.muted=!e.muted,I(e.muted))},Le=ne=>{e&&(e.volume=ne,ne===0?e.muted=!0:e.muted&&(e.muted=!1),M(ne),I(e.muted))},Ze=()=>{var ke,Fe;const ne=(n==null?void 0:n.current)||e;ne&&(document.fullscreenElement?(ke=document.exitFullscreen)==null||ke.call(document):(Fe=ne.requestFullscreen)==null||Fe.call(ne))},dt=async()=>{if(!(!e||!document.pictureInPictureEnabled))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{return}},Ct=ne=>{var se;if(!e||!k)return;const ke=(se=Q.current)==null?void 0:se.getBoundingClientRect();if(!ke)return;const me=Ur((ne.clientX-ke.left)/ke.width,0,1)*k;e.currentTime=me,w(me),D(!0)},Wt=ne=>{var me;if(!k)return;const ke=(me=Q.current)==null?void 0:me.getBoundingClientRect();if(!ke)return;const Fe=Ur((ne.clientX-ke.left)/ke.width,0,1);xe(Fe),Te(Fe*ke.width)},Dt=()=>{xe(null),Te(null)},ue=re.length>0;return s.jsxs("div",{className:`video-player-controls ${ue?"video-player-controls--with-chapters":"video-player-controls--no-chapters"}`,style:{"--video-subtitles-offset":ue?"48px":"16px"},children:[s.jsxs("div",{className:"video-player-timeline",ref:Q,"data-test-id":"video-player-timeline",children:[s.jsx("div",{className:"video-player-timeline-hitbox",onPointerDown:Ct,onPointerMove:Wt,onPointerLeave:Dt,role:"presentation",children:s.jsxs("div",{className:`video-player-timeline-track ${ue?"video-player-timeline-track--chapters":""}`,children:[ue?s.jsx("div",{className:"video-player-chapter-segments",children:re.map((ne,ke)=>{const Fe=ne.endRatio-ne.startRatio,me=oe<=ne.startRatio?0:oe>=ne.endRatio?1:(oe-ne.startRatio)/Fe;return s.jsxs("div",{className:"video-player-chapter-segment",style:{flex:`${Fe*100} 0 0`},children:[s.jsx("div",{className:"video-player-chapter-segment-progress",style:{width:`${me*100}%`}}),H.map((se,Ae)=>{const Pe=Ur((se.start-ne.startRatio)/Fe,0,1),He=Ur((se.end-ne.startRatio)/Fe,0,1);return He<=0||Pe>=1?null:s.jsx("span",{className:"video-player-chapter-segment-buffered",style:{left:`${Pe*100}%`,width:`${(He-Pe)*100}%`}},`buf-${ke}-${Ae}`)})]},`chapter-${ke}`)})}):s.jsxs(s.Fragment,{children:[H.map((ne,ke)=>s.jsx("span",{className:"video-player-buffered",style:{left:`${ne.start*100}%`,width:`${(ne.end-ne.start)*100}%`}},`${ne.start}-${ne.end}-${ke}`)),s.jsx("span",{className:"video-player-progress",style:{width:`${oe*100}%`}})]}),s.jsx("span",{className:"video-player-knob",style:{left:`${oe*100}%`}})]})}),we!=null&&s.jsxs("div",{"data-test-id":"video-player-hover-preview",className:"video-player-hover-preview",style:{left:we,transform:"translateX(-50%)"},children:[he&&G.ready&&s.jsx(n_,{frame:he,left:0}),J!=null&&s.jsxs("div",{className:"video-player-hover-preview-info",children:[s.jsx("span",{className:"video-player-hover-preview-time",children:bs(J*k)}),((ge==null?void 0:ge.title)||t)&&s.jsx("span",{className:"video-player-hover-preview-title",children:(ge==null?void 0:ge.title)??t})]})]})]}),s.jsxs("div",{className:"video-player-controls-row",children:[s.jsxs("div",{className:"video-player-left",children:[s.jsx("button",{className:"video-player-button",type:"button",onClick:Oe,"aria-label":y(R?"editor.video.player.pause":"editor.video.player.play"),"data-test-id":R?"video-player-pause":"video-player-play",children:R?s.jsx(r_,{size:20}):s.jsx($5,{size:20})}),s.jsxs(v.Box,{ref:ee,onMouseEnter:Yn?void 0:()=>q(!0),onMouseLeave:Yn?void 0:()=>q(!1),style:{display:"inline-flex",alignItems:"center",height:28,borderRadius:8,padding:Y?"0 8px":0,gap:6,background:Y?"rgba(134, 142, 150, 0.15)":"transparent",backdropFilter:Y?"blur(4px)":"none",transition:"padding 120ms ease, background 120ms ease, backdrop-filter 120ms ease"},children:[s.jsx("button",{type:"button",className:Y?void 0:"video-player-button",onClick:()=>{if(Yn&&!Y){q(!0);return}ce()},"aria-label":y(S||L===0?"editor.video.player.unmute":"editor.video.player.mute"),"data-test-id":S||L===0?"video-player-unmute":"video-player-mute",style:Y?{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:16,height:16,padding:0,border:"none",background:"transparent",color:"#fff",cursor:"pointer"}:void 0,children:S||L===0?s.jsx(i_,{size:Y?16:20}):s.jsx(o_,{size:Y?16:20})}),s.jsx(v.Box,{className:"video-player-volume-slider",style:{width:Y?57:0,opacity:Y?1:0,overflow:Y?"visible":"hidden",pointerEvents:Y?"auto":"none",transition:"width 120ms ease, opacity 120ms ease",display:"flex",alignItems:"center"},children:s.jsx(v.Slider,{w:57,min:0,max:1,step:.01,value:S?0:L,onChange:Le,label:null,"aria-label":y("editor.video.player.volume"),size:3})})]}),s.jsxs("div",{className:"video-player-time",children:[bs(x)," / ",bs(k)]}),fe&&s.jsxs("div",{className:"video-player-chapter-title",children:[s.jsx("span",{children:fe.title}),s.jsx(si,{size:16})]}),!fe&&t&&s.jsxs("div",{className:"video-player-title",children:[s.jsx("span",{children:t}),s.jsx(si,{size:16})]})]}),s.jsxs("div",{className:"video-player-right",children:[rt?s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.settings"),onClick:()=>ie(!0),"data-test-id":"video-player-settings",children:s.jsx(vC,{size:20})}),s.jsx(h_,{opened:We,onClose:()=>{ie(!1)},settings:r,isSettingsDisabled:o,onSubtitlesOpen:i,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,optimisticSpeed:pe,setOptimisticSpeed:Ce})]}):s.jsxs(v.Menu,{opened:We,onChange:ne=>{ie(ne),ne||ae("main")},position:"top-end",offset:8,withinPortal:!0,classNames:{dropdown:"video-player-menu-dropdown"},portalProps:O&&document.fullscreenElement?{target:document.fullscreenElement instanceof HTMLElement?document.fullscreenElement:void 0}:void 0,shadow:"md",radius:"md",closeOnItemClick:!1,closeOnEscape:!0,trapFocus:!0,children:[s.jsx(v.Menu.Target,{children:s.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.settings"),"data-test-id":"video-player-settings",children:s.jsx(vC,{size:20})})}),X==="main"&&s.jsx(m_,{isOpen:!0,disabled:o,settings:r,onSpeedClick:()=>{r.hasRealSpeeds&&ae("speed")},onQualityClick:()=>{r.hasRealQualities&&ae("quality")},onSubtitlesClick:()=>{o||(i==null||i(),ae("subtitles"))}}),X==="speed"&&s.jsx(g_,{disabled:o,settings:r,currentSpeed:pe??r.currentSpeed,onBack:()=>ae("main"),onSelect:ne=>{Ce(ne),l(ne),ae("main"),ie(!1)}}),X==="subtitles"&&s.jsx(A_,{disabled:o,settings:r,onBack:()=>ae("main"),onSelect:ne=>{d(ne),ae("main"),ie(!1)}}),X==="quality"&&s.jsx(p_,{disabled:o,settings:r,onBack:()=>ae("main"),onSelect:ne=>{c(ne),ae("main"),ie(!1)}})]}),s.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.pictureInPicture"),onClick:dt,disabled:!document.pictureInPictureEnabled,"aria-pressed":K,"data-test-id":"video-player-pip",children:s.jsx(a_,{size:20})}),s.jsx("button",{className:"video-player-button",type:"button",onClick:Ze,"aria-label":y(O?"editor.video.player.exitFullscreen":"editor.video.player.enterFullscreen"),"data-test-id":O?"video-player-fullscreen-exit":"video-player-fullscreen-enter",children:s.jsx(s_,{size:20})})]})]}),Z.length>0&&s.jsx("div",{className:"video-player-chapters-list",children:Z.map((ne,ke)=>{const Fe=fe===ne;return s.jsxs("button",{type:"button",className:`video-player-chapters-item ${Fe?"video-player-chapters-item--active":""}`,onClick:()=>Re(ne),children:[s.jsx("span",{className:"video-player-chapters-item-time",children:bs(ne.startSec)}),s.jsx(b_,{text:ne.title})]},`chapter-list-${ke}`)})})]})}const SC=[.25,.5,.75,1,1.25,1.5,2],EC=[{id:1,label:"English (Automatic)"},{id:2,label:"Русский (Автоматические)"},{id:3,label:"Spanish (automatic)"}],x_=e=>e.height?`${e.height}p`:e.bandwidth?`${(e.bandwidth/1e6).toFixed(1)} Mbps`:"Auto",ry=e=>e!=null&&e.textTracks?Array.from(e.textTracks).filter(n=>n.kind==="subtitles"||n.kind==="captions"):[],fr=(e,n)=>{var b,y,x;if(!e){const w=ry(n),k=w.length>0,T=w.findIndex(N=>N.mode==="showing"),R=k?[{id:null,label:"Off"},...w.map((N,L)=>({id:L,label:N.label||N.language||"Unknown",lang:N.language||void 0,isDefault:N.default??!1}))]:[{id:null,label:"Off"},...EC];return{speeds:SC,currentSpeed:(n==null?void 0:n.playbackRate)??1,hasRealSpeeds:!0,qualities:[],currentQualityId:null,hasRealQualities:!1,subtitles:R,currentSubtitleId:T>=0?T:null,hasRealSubtitles:k}}const t=SC,r=((b=e.getPlaybackRate)==null?void 0:b.call(e))??(n==null?void 0:n.playbackRate)??1,o=t.length>0,i=((y=e.getVariantTracks)==null?void 0:y.call(e))??[],l=i.map(w=>({id:w.id,label:x_(w)})),c=i.find(w=>w.active),d=l.length>0,f=((x=e.getTextTracks)==null?void 0:x.call(e))??[],h=f.length>0,g=h?[{id:null,label:"Off"},...f.map(w=>({id:w.id,label:w.label||w.language||"Unknown",lang:w.language||void 0,isDefault:!!(w.default??w.isDefault??!1)}))]:[{id:null,label:"Off"},...EC],C=f.find(w=>w.active);return{speeds:t,currentSpeed:r,hasRealSpeeds:o,qualities:l,currentQualityId:(c==null?void 0:c.id)??null,hasRealQualities:d,subtitles:g,currentSubtitleId:(C==null?void 0:C.id)??null,hasRealSubtitles:h}},v_=(e,n)=>{var t;(t=e==null?void 0:e.setPlaybackRate)==null||t.call(e,n)},w_=(e,n)=>{var o,i;if(!e)return;const r=(((o=e.getVariantTracks)==null?void 0:o.call(e))??[]).find(l=>l.id===n);r&&((i=e.selectVariantTrack)==null||i.call(e,r,!0))},Bc=(e,n,t)=>{var o,i,l,c;if(e){if(n===null){(o=e.setTextTrackVisibility)==null||o.call(e,!1);return}const f=(((i=e.getTextTracks)==null?void 0:i.call(e))??[]).find(h=>h.id===n);f&&((l=e.selectTextTrack)==null||l.call(e,f),(c=e.setTextTrackVisibility)==null||c.call(e,!0));return}if(!t)return;const r=ry(t);if(n===null){r.forEach(d=>{d.mode="disabled"});return}r.forEach((d,f)=>{d.mode=f===n?"showing":"disabled"})};function wo(e,n){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("/")?`${n||window.location.origin}${e}`:e:null}function k_(e){return Array.from(e.textTracks||[]).filter(n=>n.kind==="subtitles"||n.kind==="captions")}function Gf(e,n){return e.url?wo(e.url,n):null}function S_({videoId:e,language:n,baseUrl:t,videoUrl:r,primaryUrl:o,optimizedReady:i,nativeVideoUrl:l,rawUrl:c,storyboard:d,chapters:f,subtitles:h,isProcessing:g=!1,posterUrl:C,onPlayerInfo:b,onFallback:y}){const{t:x,i18n:w}=Ue.useTranslation(),[k,T]=m.useState(null),[R,N]=m.useState(null),[L,M]=m.useState(null),[S,I]=m.useState(!1),j=m.useRef(null),B=m.useRef(null),_=m.useRef(null),[D,O]=m.useState(null),[W,K]=m.useState(()=>fr(null,null)),[F,Y]=m.useState(!0),[q,ee]=m.useState([]),[Q,J]=m.useState([{id:null,label:x("editor.video.settings.off")}]),[xe,we]=m.useState(null),[Te,We]=m.useState(null),[ie,X]=m.useState(!0),[ae,pe]=m.useState(0),Ce=m.useRef(null),G=m.useRef(null),he=m.useRef(null),oe=m.useRef(null),H=m.useRef([]),Z=m.useRef(!1),re=m.useRef(new Set),fe=m.useRef(null),ge=m.useRef(!1);m.useEffect(()=>{n&&w.changeLanguage(n).catch(()=>{})},[n]),m.useEffect(()=>{if(!e){ee([]);return}if(h!=null){const ue=(h||[]).map(Ys).filter(ne=>ne.id&&!ne.isDisabled);ee(ue)}},[e,h]),m.useEffect(()=>{Y(!0),fe.current=null},[e]);const Re=m.useCallback(()=>{if(!e||h==null)return;const ue=(h||[]).map(Ys).filter(ne=>ne.id&&!ne.isDisabled);ee(ue)},[e,h]);m.useEffect(()=>{if(q.length===0){J([{id:null,label:x("editor.video.settings.off")}]),we(null);return}const ue=[{id:null,label:x("editor.video.settings.off")},...q.map((ne,ke)=>({id:ke,label:ne.label||ne.lang||"Unknown",lang:ne.lang||void 0,isDefault:ne.isDefault||!1}))];J(ue),we(ne=>ne!=null&&ne>=0&&ne<q.length?ne:null)},[q,x]),m.useEffect(()=>{var me;let ue=!1;const ne=((me=j.current)==null?void 0:me.player)||null;return i?(async()=>{var Je,ct,be;if(!ne)return;if(xe==null){Bc(ne,null),K(fr(ne,D));return}const se=q[xe],Ae=(se==null?void 0:se.label)||(se==null?void 0:se.lang)||"und",Pe=(se==null?void 0:se.lang)||"und",He=(se==null?void 0:se.kind)||"subtitles",$e=((Je=ne.getTextTracks)==null?void 0:Je.call(ne))||[];let it=$e.find(Se=>(Se.language||"")===Pe&&(Se.label||"")===Ae&&(Se.kind||"subtitles")===He);if(!it&&Te&&(it=$e.find(Se=>(Se.language||"")===Te.lang&&(Se.label||"")===Te.label&&(Se.kind||"subtitles")===Te.kind)),!it){const Se=Te&&q.length>0&&q.find(Ye=>(Ye.lang||"und")===Te.lang&&(Ye.label||Ye.lang||"und")===Te.label&&(Ye.kind||"subtitles")===Te.kind)||null,ze=se||Se,_e=ze?Gf(ze,t):null;if(!_e||typeof ne.addTextTrackAsync!="function")return;let Xe=null;Xe=await ne.addTextTrackAsync(_e,(ze==null?void 0:ze.lang)||Pe,(ze==null?void 0:ze.kind)||He,"text/vtt",void 0,(ze==null?void 0:ze.label)||Ae),Xe&&typeof Xe.id=="number"&&(it=Xe)}ue||it&&((ct=ne.selectTextTrack)==null||ct.call(ne,it),(be=ne.setTextTrackVisibility)==null||be.call(ne,!0),K(fr(ne,D)))})().catch(()=>{}):(()=>{D&&(Bc(null,xe,D),K(fr(null,D)))})(),()=>{ue=!0}},[xe,q,i,D,t,e,Te]),m.useEffect(()=>{if(!k)return;let ue=!1,ne=null;const ke=Ae=>{if(ue)return;wo(l,t)||wo(c??null,t)?(I(!0),y==null||y(!0)):M(x("editor.video.player.playbackError",{code:Ae.code}))},Fe=Ae=>{const Pe=Ae.detail;if(Pe.severity===2)ke(Pe);else try{ne==null||ne.recover()}catch{}},me=()=>{var Ae;if(ne=(Ae=j.current)==null?void 0:Ae.player,!ne){const Pe=requestAnimationFrame(me);return()=>cancelAnimationFrame(Pe)}if(he.current)try{ne.removeEventListener("error",he.current)}catch{}he.current=Fe,ne.addEventListener("error",Fe),ne.load(k).catch(Pe=>{ue||Pe.code!==7e3&&ke(Pe)})},se=requestAnimationFrame(me);return()=>{if(ue=!0,cancelAnimationFrame(se),ne&&he.current)try{ne.removeEventListener("error",he.current)}catch{}}},[k,l,c,t,y]),m.useEffect(()=>{let ue=!1,ne=null;if(i&&o){const ke=wo(o,t);if(ke){if(!R&&c){const He=wo(c,t);He&&N(He)}if(fe.current===ke)return;const Fe=B.current;Fe&&Fe.currentTime>0&&(G.current={time:Fe.currentTime,paused:Fe.paused},ge.current=!0);const me=He=>{ue||fetch(ke,{method:"HEAD",credentials:"include"}).then($e=>{ue||(fe.current=ke,$e.ok?(T(ke),M(null),I(!1),y==null||y(!1),re.current.clear()):(re.current.clear(),I(!0),y==null||y(!0),Pe(He)))}).catch($e=>{ue||(re.current.clear(),I(!0),y==null||y(!0),Pe(He))})},se=10,Ae=5e3,Pe=He=>{ue||He>=se||(ne=setTimeout(()=>me(He+1),Ae))};me(0)}}else if(l){const ke=wo(l,t);if(ke){if(Ce.current===ke)return;const Fe=B.current;if(Fe&&Fe.readyState>0&&!Fe.error&&Fe.src){Ce.current=ke;return}Ce.current&&Fe&&Fe.currentTime>0&&(G.current={time:Fe.currentTime,paused:Fe.paused}),N(ke),T(null),Ce.current=ke}}return()=>{ue=!0,ne&&clearTimeout(ne)}},[o,t,i,l]),m.useEffect(()=>{if(i&&k&&j.current){const ue=j.current.videoElement;if(ue){const ne=()=>{ue.readyState>=1&&(G.current&&(ue.currentTime=G.current.time,G.current.paused||ue.play().catch(()=>{}),G.current=null),ge.current=!1)};if(ue.readyState>=1)ne();else{const ke=()=>{ne()},Fe=()=>{ne()};return ue.addEventListener("loadedmetadata",ke,{once:!0}),ue.addEventListener("canplay",Fe,{once:!0}),()=>{ue.removeEventListener("loadedmetadata",ke),ue.removeEventListener("canplay",Fe)}}}}},[i,k]),m.useEffect(()=>{const ue=B.current;ue&&k&&!S&&(ue.currentTime>0&&(G.current={time:ue.currentTime,paused:ue.paused}),ue.paused||ue.pause())},[k,S]),m.useEffect(()=>{var ue;if(k&&!S){const ne=((ue=j.current)==null?void 0:ue.videoElement)||null;if(ne&&ne.readyState>=1)O(ne);else if(ne){const ke=()=>O(ne);return ne.addEventListener("loadedmetadata",ke,{once:!0}),()=>ne.removeEventListener("loadedmetadata",ke)}}else O(B.current)},[i,S,k,R]),m.useEffect(()=>{if(!D)return;const ue=()=>{X(D.paused)};return ue(),D.addEventListener("play",ue),D.addEventListener("pause",ue),D.addEventListener("ended",ue),()=>{D.removeEventListener("play",ue),D.removeEventListener("pause",ue),D.removeEventListener("ended",ue)}},[D]),m.useEffect(()=>{const ue=_.current;if(!ue)return;const ne=new ResizeObserver(ke=>{const Fe=ke[0];Fe&&pe(Math.round(Fe.contentRect.width))});return ne.observe(ue),()=>ne.disconnect()},[]),m.useEffect(()=>{var se,Ae;if(!b)return;const ue=((se=j.current)==null?void 0:se.player)||null,ne=B.current||null,ke=_.current||null,Fe=k&&!S&&ue?"shaka":"native";let me=null;try{const Pe=(Ae=ue==null?void 0:ue.seekRange)==null?void 0:Ae.call(ue);Pe&&Number.isFinite(Pe.end)&&Pe.end>0&&(me=Pe.end)}catch{}if(me==null&&D){const Pe=D.duration;Number.isFinite(Pe)&&Pe>0&&(me=Pe)}b({shakaPlayer:ue,nativeVideo:ne,mode:Fe,containerEl:ke,videoDuration:me})},[b,i,S,k,R,D]),m.useEffect(()=>{var ke;const ue=B.current;ue&&(ue.poster=C||"");const ne=(ke=j.current)==null?void 0:ke.videoElement;ne&&(ne.poster=C||"")},[C,k,R]),m.useEffect(()=>{var ne;const ue=((ne=j.current)==null?void 0:ne.player)||null;if(!i||!ue){K(fr(null,D));return}K(fr(ue,D))},[i,k,D]),m.useEffect(()=>{var Fe;const ue=((Fe=j.current)==null?void 0:Fe.player)||null;if(!i||!ue)return;const ne=()=>{K(fr(ue,D))},ke=["variantchanged","adaptation","trackschanged"];return ke.forEach(me=>{var se;(se=ue.addEventListener)==null||se.call(ue,me,ne)}),()=>{ke.forEach(me=>{var se;(se=ue.removeEventListener)==null||se.call(ue,me,ne)})}},[i,k,D]),m.useEffect(()=>{if(!D)return;const ue=()=>{var ke;const ne=((ke=j.current)==null?void 0:ke.player)||null;K(fr(ne,D))};return D.addEventListener("ratechange",ue),()=>{D.removeEventListener("ratechange",ue)}},[D]),m.useEffect(()=>()=>{var se,Ae;const ue=document.pictureInPictureElement;if(!ue)return;const ne=((se=j.current)==null?void 0:se.videoElement)||null,ke=B.current||null,Fe=_.current||null,me=ue instanceof HTMLVideoElement&&(ke&&ke.currentSrc===ue.currentSrc||ne&&ne.currentSrc===ue.currentSrc);(ue===ne||ue===ke||Fe&&Fe.contains(ue)||me)&&((Ae=document.exitPictureInPicture)==null||Ae.call(document).catch(()=>{}))},[]),m.useEffect(()=>{const ue=B.current;if(!ue||!R)return;const ne=()=>{G.current&&(ue.currentTime=G.current.time,G.current.paused||ue.play().catch(()=>{}),ge.current=!1)};ue.readyState>=1?ne():ue.addEventListener("loadedmetadata",ne,{once:!0});const ke=()=>{ge.current||(oe.current&&clearTimeout(oe.current),oe.current=setTimeout(()=>{ge.current||(G.current||(G.current={time:0,paused:!0}),G.current.time=ue.currentTime)},100))},Fe=()=>{ge.current||(G.current?G.current.paused=!1:G.current={time:0,paused:!1})},me=()=>{ge.current||(G.current?G.current.paused=!0:G.current={time:ue.currentTime,paused:!0})};return ue.addEventListener("timeupdate",ke),ue.addEventListener("play",Fe),ue.addEventListener("pause",me),()=>{ue.removeEventListener("loadedmetadata",ne),ue.removeEventListener("timeupdate",ke),ue.removeEventListener("play",Fe),ue.removeEventListener("pause",me),oe.current&&clearTimeout(oe.current),ue.currentTime>0&&(G.current={time:ue.currentTime,paused:ue.paused})}},[R]),m.useEffect(()=>{if(i)return;const ue=B.current;if(!ue)return;ue.querySelectorAll('track[data-subtitle-track="managed"]').forEach(me=>me.remove()),e&&q.forEach(me=>{const se=Gf(me,t);if(!se)return;const Ae=document.createElement("track");Ae.setAttribute("data-subtitle-track","managed"),Ae.kind=me.kind||"subtitles",Ae.label=me.label||me.lang||"und",Ae.srclang=me.lang||"und",Ae.src=se,Ae.setAttribute("crossorigin","use-credentials"),Ae.default=!1,ue.appendChild(Ae)});try{ue.textTracks}catch{}const ke=k_(ue);ke.some(me=>me.mode==="showing")&&ke.forEach(me=>{me.mode="disabled"}),K(fr(null,ue))},[i,R,q,e,t]),m.useEffect(()=>{var se,Ae,Pe,He;if(!i){H.current=[];return}const ue=((se=j.current)==null?void 0:se.player)||null;if(!ue)return;const ne=(Ae=ue.getNetworkingEngine)==null?void 0:Ae.call(ue);ne&&!Z.current&&((Pe=ne.registerRequestFilter)==null||Pe.call(ne,($e,it)=>{it.allowCrossSiteCredentials=!0}),Z.current=!0),(((He=ue.getTextTracks)==null?void 0:He.call(ue))||[]).forEach($e=>{var it;H.current.includes($e.id)&&((it=ue.removeTextTrack)==null||it.call(ue,$e))}),H.current=[];let Fe=!1;return(async()=>{var it,Je;const $e=((it=ue.getTextTracks)==null?void 0:it.call(ue))||[];if(e)for(const ct of q){const be=Gf(ct,t);if(!be||typeof ue.addTextTrackAsync!="function")continue;const Se=ct.label||ct.lang||"und",ze=ct.lang||"und",_e=ct.kind||"subtitles";if($e.some(et=>(et.language||"")===ze&&(et.label||"")===Se&&(et.kind||"subtitles")===_e))continue;let Ye=null;if(Ye=await ue.addTextTrackAsync(be,ze,_e,"text/vtt",void 0,Se),Fe)return;Ye&&typeof Ye.id=="number"&&(H.current.push(Ye.id),$e.push(Ye))}(Je=ue.setTextTrackVisibility)==null||Je.call(ue,!1),K(fr(ue,D))})().catch(()=>{}),()=>{Fe=!0}},[i,k,q,e,t,D]);const Oe=m.useMemo(()=>({...W,subtitles:Q,currentSubtitleId:xe,currentQualityId:F?null:W.currentQualityId,hasRealSubtitles:Q.length>1}),[W,Q,xe,F]),ce=ue=>{if(!D)return;ue.target.closest(".video-player-controls")!==null||(D.paused?D.play().catch(()=>{}):D.pause())};if(L)return s.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,padding:16}},children:s.jsx("div",{style:{textAlign:"center",color:"red"},children:L})});const Le=wo(c??null,t)||R,Ze=!!(k&&!S),dt=ae>0&&ae<500,Ct=ae>0&&ae<380,Dt=((f==null?void 0:f.length)??0)>0&&!Ct?"48px":"16px";return s.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,position:"relative"}},children:s.jsxs("div",{"data-test-id":"video-player-container",className:`video-player-container video-player-container--with-player ${dt?"video-player--compact":""} ${Ct?"video-player--narrow":""}`,style:{"--video-subtitles-offset":Dt},ref:_,onClick:ce,children:[s.jsx("video",{ref:B,src:R||(S?Le:null)||void 0,className:"video-player-media",style:Ze?{display:"none"}:void 0,poster:C||void 0,onError:ue=>{const ne=ue.currentTarget,ke=ne.currentSrc||ne.src;if(!ke||!ne.error)return;re.current.add(ke);const me=[wo(c??null,t),wo(l,t)].filter(se=>!!se&&!re.current.has(se));me.length>0&&(ne.src=me[0],ne.load())}}),Ze&&s.jsx(j9,{ref:j,autoPlay:!1,className:"video-player-media"}),(R||k||o||S&&Le)&&s.jsxs(s.Fragment,{children:[ie&&!dt&&s.jsx("button",{className:"video-player-center-play",type:"button","aria-label":x("editor.video.player.play"),onClick:ue=>{ue.stopPropagation(),D==null||D.play().catch(()=>{})},children:s.jsx($5,{size:32})}),s.jsxs("div",{className:"video-player-overlay",children:[s.jsx("div",{className:"video-player-gradient"}),s.jsx(y_,{video:D,containerRef:_,settings:Oe,isSettingsDisabled:!1,onSubtitlesOpen:Re,storyboard:d,chapters:i?f:void 0,isProcessing:g,baseUrl:t,onSpeedClick:ue=>{var ke;const ne=((ke=j.current)==null?void 0:ke.player)||null;K(Fe=>({...Fe,currentSpeed:ue})),ne&&v_(ne,ue),D&&(D.playbackRate=ue)},onQualityClick:ue=>{var Fe,me,se;const ne=((Fe=j.current)==null?void 0:Fe.player)||null;if(!ne||W.qualities.length===0)return;if(ue==null){(me=ne.configure)==null||me.call(ne,{abr:{enabled:!0}}),Y(!0),K(fr(ne,D));return}(se=ne.configure)==null||se.call(ne,{abr:{enabled:!1}});const ke=W.qualities.find(Ae=>Ae.id===ue)||null;ke&&w_(ne,ke.id),Y(!1),K(Ae=>({...Ae,currentQualityId:ue}))},onSubtitleSelect:ue=>{var Fe,me;const ne=((Fe=j.current)==null?void 0:Fe.player)||null,ke=typeof ue=="number"?ue:null;if(we(ke),ne){const se=((me=ne.getTextTracks)==null?void 0:me.call(ne))??[];if(ke==null)We(null);else{const Pe=se.find(He=>He.id===ke);if(Pe)We({lang:Pe.language||"und",label:Pe.label||"und",kind:Pe.kind||"subtitles"});else{const He=q[ke];He&&We({lang:He.lang||"und",label:He.label||He.lang||"und",kind:He.kind||"subtitles"})}}let Ae=ke;if(typeof ke=="number"&&!se.find(Pe=>Pe.id===ke)){const Pe=q[ke];if(Pe){const He=Pe.label||Pe.lang||"und",$e=Pe.lang||"und",it=se.find(Je=>(Je.language||"")===$e&&(Je.label||"")===He);it&&(Ae=it.id)}}Bc(ne,Ae),K(fr(ne,D));return}if(D){if(ke==null)We(null);else{const se=q[ke];se&&We({lang:se.lang||"und",label:se.label||se.lang||"und",kind:se.kind||"subtitles"})}Bc(null,ke,D),K(fr(null,D))}}})]})]})]})})}const _c=e=>e==="link"||e==="youtube"||e==="vk"||e==="rutube",E_=e=>e==="upload"||e==="download";function T_({className:e,format:n,nodeKey:t,onUploadComplete:r,initialVideoId:o,initialVideoState:i,onStateChange:l,posterUrl:c,chaptersOverride:d,subtitlesOverride:f,platform:h,fallbackNativeVideoUrl:g,onStatusAvailabilityChange:C,onOptimizedReadyChange:b,onStatusChange:y,onPlayerInfo:x}){var Xt,_r;const[w]=ot.useLexicalComposerContext(),{t:k,i18n:T}=Ue.useTranslation(),{pageId:R,maxFileSize:N,registerUpload:L,unregisterUpload:M,reportError:S}=sp(),I=lp,[j,B]=m.useState(i??"default"),[_,D]=m.useState(()=>_c(h)?"link":"upload"),[O,W]=m.useState(null),[K,F]=m.useState(o??null),[Y,q]=m.useState(""),[ee,Q]=m.useState(null),[J,xe]=m.useState(!1),we=m.useRef(null),Te=m.useRef(!1),We=m.useRef(null),{uploadProgress:ie,isUploading:X,isPaused:ae,handleUpload:pe,handlePause:Ce,handleResume:G,handleCancel:he,uploadVideoId:oe}=YB({parentId:R,parentType:"PAGE",onError:(Ve,wt,wn)=>{W(Ve),B(`error-${Ve}`),wt!=null&&F(wt),wn&&S(wn,"upload",wt??void 0)}});m.useEffect(()=>{if(X){const Ve=`upload-${t}-${Date.now()}`;We.current=Ve,L(Ve)}else We.current&&(M(We.current),We.current=null);return()=>{We.current&&M(We.current)}},[X,t,L,M]),m.useEffect(()=>{oe&&F(oe)},[oe]),m.useEffect(()=>{_c(h)?D("link"):E_(h)&&D("upload")},[h]),m.useEffect(()=>{Te.current=!1},[K]),m.useEffect(()=>{if(_==="link"&&!(Y.trim().length>0)&&!(!h||!K)){if(h==="link"){q(K);return}_c(h)&&q(ri(h,K))}},[_,Y,h,K]);const{status:H,playback:Z,videoUrl:re,primaryUrl:fe,optimizedReady:ge,nativeVideoUrl:Re,rawPlayable:Oe,isStatusAvailable:ce}=zB({videoId:K,enabled:_==="upload"&&!X}),Le=_==="upload"?H:null,Ze=_==="upload"?Z:null,dt=_==="upload"?re:null,Ct=_==="upload"?fe:null,Wt=_==="upload"?ge:!1,Dt=_==="upload"?Oe:!1,ue=_==="upload"?ce:!1,ne=d??(Le==null?void 0:Le.chapters)??void 0,ke=f??(Le==null?void 0:Le.subtitles)??void 0,Fe=m.useRef(ke),me=m.useMemo(()=>ke===Fe.current||JSON.stringify(ke)===JSON.stringify(Fe.current)?Fe.current:(Fe.current=ke,ke),[ke]),se=m.useMemo(()=>{if(g)return g;if(h==="link"){const Ve=K??o;if(Ve)return ri(h,Ve)}return null},[g,h,K,o]),Ae=(_==="upload"?Re:null)??se??null,Pe=(Ze==null?void 0:Ze.rawUrl)??null;m.useEffect(()=>{C==null||C(ue)},[ue,C]),m.useEffect(()=>{b==null||b(Wt)},[Wt,b]),m.useEffect(()=>{y==null||y(Le)},[Le,y]),m.useEffect(()=>{if(_!=="upload")return;const Ve=K?ri("download",K):null,wt=Ct??Pe??dt??Ae??Ve;!Te.current&&wt&&K&&!X&&(Te.current=!0,r(wt,K))},[Ct,Pe,dt,Ae,K,X,r,_]),m.useEffect(()=>{h!=="download"||!Ct||H_(w,t,Ct)},[w,t,h,Ct]),m.useEffect(()=>{if(!X)return;const Ve=wt=>{wt.preventDefault(),wt.returnValue=""};return window.addEventListener("beforeunload",Ve),()=>{window.removeEventListener("beforeunload",Ve)}},[X]),m.useEffect(()=>{j==="upload"&&!X&&K&&B("analysis")},[j,X,K]);const{transcodingProgress:He,isTranscoding:$e,isPaused:it,startAnalysis:Je,startConversion:ct,handlePause:be,handleResume:Se,handleCancel:ze}=HB({videoId:K,status:Le,onAnalysisComplete:()=>{B("conversion"),ct()},onConversionComplete:()=>{B("video-preview")},onError:()=>{W("interrupted"),B("error-interrupted")}}),_e=X||$e||j==="upload"||j==="analysis"||j==="conversion",Ye=j==="video-preview"&&(_==="link"?!0:ue?Wt:Wt||Dt||(!!Ae||!!dt)),et=(Le==null?void 0:Le.state)==="PROCESSING"||(Le==null?void 0:Le.state)==="UPLOADING",Ke=typeof((Xt=Le==null?void 0:Le.processing)==null?void 0:Xt.percent)=="number",at=j==="video-preview"&&_==="upload"&&!!Ae&&ue&&!Wt&&!J&&(et||Ke),tt=m.useRef(0),st=Math.max(0,Math.min(100,((_r=Le==null?void 0:Le.processing)==null?void 0:_r.percent)??0));st>tt.current&&(tt.current=st),at||(tt.current=0);const qe=tt.current,ut=Ve=>{if(_!=="upload")return;const wt=N*1024*1024;if(Ve.size>wt){W("size-limit"),B("error-size-limit");return}if(!Ve.type.startsWith("video/")&&!Ve.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i)){W("format"),B("error-format");return}B("upload"),we.current=Ve,pe(Ve)},Ot=_e,bt=Ve=>{D(Ve),W(null),Q(null),B("default")},Lt=()=>{const Ve=Y.trim();if(!Ve||!RB(Ve)){Q(k("editor.video.link.invalid"));return}if(!iy(w,t,{url:Ve,isLink:!0})){Q(k("editor.video.link.invalid"));return}Q(null),B("video-preview")},Nt=m.useRef(K);Nt.current=K;const tn=m.useRef(oe);tn.current=oe,m.useEffect(()=>w.registerCommand(q5,Ve=>_==="upload"&&Ve.length>0&&!Nt.current&&!tn.current?(ut(Ve[0]),!0):!1,p.COMMAND_PRIORITY_LOW),[w,_,ut]);const Kt=async()=>{const Ve=K??oe;if(O==="interrupted"&&Ve)try{await BB(Ve),W(null),B("analysis")}catch(wt){S(wt,"retry",Ve)}else we.current?(W(null),B("upload"),pe(we.current)):(W(null),B("default"))},an=()=>{he(),we.current=null,B("default"),F(null)},Ut=()=>{ze(),we.current=null,B("default"),F(null)};m.useEffect(()=>{j==="analysis"&&K&&!$e&&Je()},[j,K,$e,Je]),m.useEffect(()=>{o&&F(o),i&&B(i)},[o,i]),m.useEffect(()=>{l==null||l(j)},[j,l]);const Vt=()=>{var Ve;if(_==="link"&&j!=="video-preview")return s.jsx(qB,{value:Y,disabled:Ot,error:ee,onChange:wt=>{q(wt),ee&&Q(null)},onSubmit:Lt});switch(j){case"default":case"hover":case"focus":return s.jsx(bC,{onFileSelect:ut,maxFileSize:N});case"upload":return s.jsx(zA,{progress:ie,onPause:Ce,onResume:G,onCancel:an,isPaused:ae});case"error-size-limit":case"error-format":case"error-interrupted":case"error-offset-mismatch":case"error-stall":return s.jsx(VB,{errorType:O||"interrupted",onRetry:Kt,onCancel:an,maxFileSize:N});case"analysis":return s.jsx(ZB,{progress:He,onPause:be,onResume:Se,onCancel:Ut,isPaused:it});case"conversion":return s.jsx(GB,{progress:He,onPause:be,onResume:Se,onCancel:Ut,isPaused:it});case"video-preview":if(!K)return null;if(h&&_c(h)&&h!=="link")return s.jsx("div",{className:"video-embed-container",children:s.jsx("iframe",{src:ri(h,K),className:"video-embed-frame",width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Video embed"})});const wt=c??((Ve=Le==null?void 0:Le.cover)==null?void 0:Ve.url)??null;return s.jsx(S_,{videoId:K,language:T.resolvedLanguage||T.language,videoUrl:dt,primaryUrl:Ct,optimizedReady:Wt,nativeVideoUrl:Ae,rawUrl:Pe,storyboard:(Le==null?void 0:Le.storyboard)??null,chapters:at?void 0:ne,isProcessing:at,subtitles:me,posterUrl:wt,onPlayerInfo:x,onFallback:xe});default:return s.jsx(bC,{onFileSelect:ut,maxFileSize:N})}};return s.jsx(ei.BlockWithAlignableContents,{className:e,format:n,nodeKey:t,children:s.jsxs(v.Box,{className:"video-upload-container","data-state":j,"data-ready":Ye?"true":"false",children:[j!=="video-preview"?s.jsx("div",{className:"video-upload-header",onClick:Ve=>Ve.stopPropagation(),onMouseDown:Ve=>Ve.stopPropagation(),onPointerDown:Ve=>Ve.stopPropagation(),children:s.jsx(I,{data:[{value:"upload",label:k("editor.video.source.uploadVideo")},{value:"link",label:k("editor.video.source.embedLink")}],value:_,w:"max-content",disabled:Ot,size:"sm",className:"video-upload-source-select",classNames:{root:"video-upload-source-select__root",wrapper:"video-upload-source-select__wrapper",input:"editor-select__input video-upload-source-select__input"},rightSectionWidth:32,comboboxProps:{position:"bottom-start",width:237},onChange:Ve=>{Ve&&bt(Ve)},"data-test-id":"video-upload-source-select",renderOption:({option:Ve})=>s.jsx("div",{"data-test-id":Ve.value==="link"?"video-source-option-link":"video-source-option-upload",children:Ve.label})})}):null,at?s.jsxs("div",{className:"video-upload-processing-banner",children:[s.jsx(ap,{size:20}),s.jsx(v.Text,{className:"video-upload-processing-text",children:k("editor.video.upload.processed",{percent:Math.round(qe)})})]}):null,s.jsx("div",{className:"video-upload-plugin",children:Vt()})]})})}function Ta(e){const n=Math.max(0,Number(e)||0),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=Math.floor(n%60);return t>0?`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function TC(e){const n=e.split(":").map(t=>t.trim());if(n.length===2){const t=Number(n[0]),r=Number(n[1]);return!Number.isFinite(t)||!Number.isFinite(r)?null:t*60+r}if(n.length===3){const t=Number(n[0]),r=Number(n[1]),o=Number(n[2]);return!Number.isFinite(t)||!Number.isFinite(r)||!Number.isFinite(o)?null:t*3600+r*60+o}return null}function M_(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function L_(e){return e?{Authorization:`Bearer ${e}`}:{}}async function MC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function N_(e){if(!e.ok){const n=await MC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||(n&&typeof n=="object"&&"error"in n?n.error:null)||e.statusText||"Request failed";throw new Error(t)}return MC(e)}async function j_(e,n,t={}){const r=M_(`/v1/videos/${e}/chapters`,t.baseUrl),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json",...L_(t.authToken)},body:JSON.stringify({chapters:n})});await N_(o)}function oy(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(16).slice(2)}`}}function R_(e){return e.map(n=>({id:oy(),startSec:n.startSec??0,title:(n.title??"").trim()})).sort((n,t)=>n.startSec-t.startSec)}function I_({chapter:e,index:n,startSec:t,endSec:r,isLast:o,disabled:i,startTimePlaceholder:l,endTimePlaceholder:c,titlePlaceholder:d,deleteChapterLabel:f,startMin:h,startMax:g,endMin:C,endMax:b,onStartSecChange:y,onEndSecChange:x,onTitleChange:w,onRemove:k}){const[T,R]=m.useState(()=>Ta(t)),[N,L]=m.useState(()=>r==null?"":Ta(r)),[M,S]=m.useState(!1),[I,j]=m.useState(!1),[B,_]=m.useState(!1),[D,O]=m.useState(!1);m.useEffect(()=>{B||R(Ta(t))},[t,B]),m.useEffect(()=>{D||L(r==null?"":Ta(r))},[r,D]);const W=F=>{R(F);const Y=TC(F);if(Y!==null){const q=Math.floor(Number(Y)||0),ee=q<h,Q=g!=null&&q>g;if(ee||Q){S(!0);return}S(!1),y(n,q)}else if(F.trim()===""){const ee=0<h,Q=g!=null&&0>g;if(ee||Q){S(!0);return}S(!1),y(n,0)}else S(!0)},K=F=>{if(L(F),o)return;const Y=TC(F);if(Y!==null){const q=Math.floor(Number(Y)||0),Q=q<(C??-1/0),J=b!=null&&q>b;if(Q||J){j(!0);return}j(!1),x(n,q)}else F.trim()===""?j(!1):j(!0)};return s.jsxs(v.Group,{gap:10,align:"flex-start",wrap:"nowrap",className:"video-settings-modal-chapter-row",style:{maxWidth:"100%"},children:[s.jsxs(v.Stack,{className:"video-settings-modal-chapter-times",children:[s.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:l,value:T,onChange:F=>W(F.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:M,disabled:i,onFocus:()=>_(!0),onBlur:()=>_(!1)}),s.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:c,value:N,onChange:F=>K(F.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:I,disabled:i||o||r==null,onFocus:()=>O(!0),onBlur:()=>O(!1)})]}),s.jsx(v.Flex,{className:"video-settings-modal-chapter-title",children:s.jsx(v.Textarea,{size:"sm",radius:8,variant:"default",placeholder:d,value:e.title,onChange:F=>w(n,F.currentTarget.value),styles:{root:{width:"100%",height:"100%"},wrapper:{height:"100%"},input:{height:"100%",paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,lineHeight:1.45,resize:"none"}},style:{width:"100%",height:"100%"},disabled:i})}),s.jsx(v.Flex,{className:"video-settings-modal-chapter-actions",children:s.jsxs(v.Menu,{position:"bottom-end",children:[s.jsx(v.Menu.Target,{children:s.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Chapter actions",disabled:i,radius:8,"data-test-id":"video-settings-transcript-row-menu",children:s.jsx(cp,{size:20})})}),s.jsx(v.Menu.Dropdown,{children:s.jsx(v.Menu.Item,{color:"red",onClick:()=>k(n),"data-test-id":"video-settings-transcript-delete",children:f})})]})})]})}function D_({videoId:e,initialChapters:n,nativeVideo:t,shakaPlayer:r,videoDuration:o,baseUrl:i,authToken:l,title:c,customLabel:d,dontShowLabel:f,chaptersDisabled:h,onChaptersDisabledChange:g,onSave:C,timePlaceholder:b,endTimePlaceholder:y,titlePlaceholder:x,addChapterLabel:w,deleteChapterLabel:k,emptyLabel:T,errorLabel:R,invalidRangeLabel:N,addTranscriptManuallyLabel:L}){const M=lp,[S,I]=m.useState([]),[j,B]=m.useState(null),[_,D]=m.useState(null),[O,W]=m.useState(!1),[K,F]=m.useState(!1),[Y,q]=m.useState(null),ee=m.useRef(!1),Q=m.useRef(!1),J=m.useMemo(()=>({baseUrl:i,authToken:l}),[i,l]),xe=m.useCallback(Ce=>{Q.current||ee.current||I(R_(Ce))},[]);m.useEffect(()=>{var Ce;if(o!=null&&o>0){q(o);return}try{const G=(Ce=r==null?void 0:r.seekRange)==null?void 0:Ce.call(r);if(G&&Number.isFinite(G.end)&&G.end>0){q(G.end);return}}catch{}if(t){const G=t.duration;if(Number.isFinite(G)&&G>0){q(G);return}}},[o,r,t]);const we=m.useCallback(()=>Y==null?null:Math.floor(Y),[Y]);m.useCallback(()=>{const Ce=[...S].filter(he=>he.title.trim()).sort((he,oe)=>he.startSec-oe.startSec),G=we();for(let he=0;he<Ce.length;he++){const oe=Math.floor(Number(Ce[he].startSec)||0),H=he<Ce.length-1?Math.floor(Number(Ce[he+1].startSec)||0):null;if(oe<0||H!=null&&oe>=H||G!=null&&oe>=G)return!1;const Z=H??G??null;if(Z!=null&&oe>=Z||G!=null&&Z!=null&&Z>G)return!1}return!0},[S,we]);const Te=m.useCallback(async()=>{if(!e)return null;D(null),F(!0),Q.current=!0,B(null);try{const Ce=S.filter(G=>G.title.trim()).filter(G=>Y==null||G.startSec<Y).sort((G,he)=>G.startSec-he.startSec).map(({startSec:G,title:he})=>({startSec:G,title:he}));return await j_(e,Ce,J),ee.current=!1,Ce}catch(Ce){const G=Ce instanceof Error?Ce.message:R;return/exceeds/i.test(G)||B(G),null}finally{F(!1),Q.current=!1}},[e,S,J,R,we]);m.useEffect(()=>{C==null||C(Te)},[Te,C]);const We=m.useCallback(()=>{ee.current=!0,D(null),I(Ce=>{const G=Y!=null?Math.floor(Y):null,he=[...Ce].sort((re,fe)=>re.startSec-fe.startSec),oe=he.length>0?Math.floor(he[he.length-1].startSec):-1,H=Math.max(0,oe+1),Z=G!=null?Math.min(H,Math.max(0,G-1)):H;return[...he,{id:oy(),startSec:Z,title:""}]})},[Y]),ie=m.useCallback((Ce,G)=>{ee.current=!0,I(he=>{const H=[...[...he].sort((re,fe)=>re.startSec-fe.startSec)],Z=H[Ce];return Z?(H[Ce]={...Z,title:G},H):he})},[]),X=m.useCallback((Ce,G)=>{ee.current=!0,D(null),I(he=>{const oe=[...he].sort((re,fe)=>re.startSec-fe.startSec),H=oe[Ce];if(!H)return he;const Z=[...oe];return Z[Ce]={...H,startSec:G},Z.sort((re,fe)=>re.startSec-fe.startSec)})},[]),ae=m.useCallback((Ce,G)=>{ee.current=!0,D(null),I(he=>{const oe=[...he].sort((re,fe)=>re.startSec-fe.startSec);if(Ce>=oe.length-1)return he;const H=oe[Ce+1];if(!H)return he;const Z=[...oe];return Z[Ce+1]={...H,startSec:G},Z.sort((re,fe)=>re.startSec-fe.startSec)})},[]),pe=m.useCallback(Ce=>{ee.current=!0,D(null),I(G=>[...G].sort((oe,H)=>oe.startSec-H.startSec).filter((oe,H)=>H!==Ce))},[]);return m.useEffect(()=>{if(!e){I([]),B(null),ee.current=!1;return}Q.current||ee.current||Array.isArray(n)&&xe(n)},[e,n,xe]),s.jsxs(v.Stack,{gap:"xs","data-test-id":"video-settings-transcript-section",children:[s.jsx(v.Text,{className:"video-settings-modal-section-title","data-test-id":"video-settings-transcript-title",children:c}),s.jsx(M,{size:"sm",radius:8,allowDeselect:!1,value:h?"disabled":"custom",data:[{value:"custom",label:d},{value:"disabled",label:f}],onChange:Ce=>{g(Ce==="disabled")},classNames:{root:"video-settings-modal-select-fullwidth",input:"video-settings-modal-language-select"},comboboxProps:{position:"bottom-start",width:"target"},"data-test-id":"video-settings-transcript-mode-select",renderOption:({option:Ce})=>s.jsx("div",{"data-test-id":Ce.value==="disabled"?"video-settings-transcript-mode-disabled":"video-settings-transcript-mode-custom",children:Ce.label})}),!h&&s.jsxs(s.Fragment,{children:[s.jsx(v.Divider,{my:4}),L&&s.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-text-label",children:L}),j&&s.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:j}),_&&s.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:_}),s.jsx(v.Stack,{gap:12,children:[...S].sort((Ce,G)=>Ce.startSec-G.startSec).map((Ce,G,he)=>{const oe=he[G+1]||null,H=he[G+2]||null,Z=Y!=null?Math.floor(Y):null,re=oe!=null?Math.floor(oe.startSec):Z??null,fe=Math.floor(Ce.startSec),ge=G>0?Math.floor(he[G-1].startSec):null,Re=oe!=null?Math.floor(oe.startSec):null,Oe=ge!=null?ge+1:0,ce=Re!=null?Re-1:null,Le=Z!=null?Z-1:null,Ze=ce!=null&&Le!=null?Math.min(ce,Le):ce??Le,dt=G<he.length-1?fe+1:null,Ct=H!=null?Math.floor(H.startSec):null,Wt=Ct!=null?Ct-1:null,Dt=Z??null,ue=Wt!=null&&Dt!=null?Math.min(Wt,Dt):Wt??Dt;return s.jsx(I_,{chapter:Ce,index:G,startSec:fe,endSec:re,isLast:G===he.length-1,startMin:Oe,startMax:Ze,endMin:dt,endMax:ue,disabled:!1,startTimePlaceholder:b,endTimePlaceholder:Y!=null?Ta(Math.floor(Y)):y,titlePlaceholder:x,deleteChapterLabel:k,onStartSecChange:X,onEndSecChange:ae,onTitleChange:ie,onRemove:pe},Ce.id)})}),s.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:We,"data-test-id":"video-settings-transcript-add",children:w}),S.length===0&&!O&&s.jsx(v.Text,{size:"xs",c:"dimmed",children:T})]})]})}function O_({opened:e,videoId:n,initialStatus:t,title:r,uploadLabel:o,cropLabel:i,emptyCoverLabel:l,loadErrorLabel:c,retryLabel:d,onCoverUpload:f,onCropCover:h,onPosterChange:g,onSelectedPosterChange:C,selectedPosterUrl:b}){var Te,We;const[y,x]=m.useState(null),[w,k]=m.useState(null),[T,R]=m.useState(!1),[N,L]=m.useState(!1),[M,S]=m.useState(new Set),[I,j]=m.useState(new Set),[B,_]=m.useState(null),D=m.useRef(null),O=m.useRef(!1),W=m.useMemo(()=>{const ie=(y==null?void 0:y.previews)??[];return B?[...ie,{id:"uploaded",url:B,order:ie.length}]:ie},[y==null?void 0:y.previews,B]),K=m.useMemo(()=>{var ie,X;return((ie=y==null?void 0:y.cover)==null?void 0:ie.previewId)??((X=W[0])==null?void 0:X.id)??null},[(Te=y==null?void 0:y.cover)==null?void 0:Te.previewId,W]),F=w??K;W.length>0;const Y=W.length+1,q=Y>3,ee=m.useCallback(ie=>{S(X=>{const ae=new Set(X);return ae.delete(ie),ae}),j(X=>{const ae=new Set(X);return ae.delete(ie),ae})},[]),Q=m.useCallback(ie=>{S(X=>{const ae=new Set(X);return ae.delete(ie),ae}),j(X=>new Set(X).add(ie))},[]),J=m.useCallback(async()=>{var ie,X,ae;if(n){R(!0),L(!1);try{const pe=await Hs(n);x(pe);const Ce=((X=(ie=pe==null?void 0:pe.previews)==null?void 0:ie[0])==null?void 0:X.id)??null,G=((ae=pe==null?void 0:pe.cover)==null?void 0:ae.previewId)??Ce;k(G),S(new Set),j(new Set)}catch(pe){console.error("cover status fetch failed",pe instanceof Error?pe.message:pe),L(!0)}finally{R(!1)}}},[n]),xe=m.useCallback(async ie=>{var pe,Ce,G,he;const X=ie[0];if(!X||!f)return;const ae=URL.createObjectURL(X);_(ae),S(new Set(["uploaded"])),k("uploaded"),C==null||C(ae);try{const oe=await Promise.resolve(f(X));_(null),ae&&URL.revokeObjectURL(ae);const H=oe==null?void 0:oe.previews,Z=Array.isArray(H)&&H.length>0;if(oe&&Z&&H){O.current=!0,x(oe);const re=((pe=H[H.length-1])==null?void 0:pe.id)??((Ce=oe==null?void 0:oe.cover)==null?void 0:Ce.previewId)??((G=H[0])==null?void 0:G.id);if(k(re??"uploaded"),re){const fe=(he=H.find(ge=>ge.id===re))==null?void 0:he.url;fe&&(C==null||C(fe))}S(new Set),j(new Set)}else J()}catch(oe){_(null),ae&&URL.revokeObjectURL(ae),k(null),console.error("cover upload failed",oe instanceof Error?oe.message:oe),J()}},[f,J,C]),we=m.useMemo(()=>{var ie,X;return b||(((ie=W.find(ae=>ae.id===F))==null?void 0:ie.url)??((X=y==null?void 0:y.cover)==null?void 0:X.url)??null)},[b,W,F,(We=y==null?void 0:y.cover)==null?void 0:We.url]);return m.useEffect(()=>{var ie,X,ae;if(!(!e||!n))if(t){x(t);const pe=((X=(ie=t==null?void 0:t.previews)==null?void 0:ie[0])==null?void 0:X.id)??null,Ce=((ae=t==null?void 0:t.cover)==null?void 0:ae.previewId)??pe;k(Ce),S(new Set),j(new Set),R(!1),L(!1)}else J()},[e,n]),m.useEffect(()=>{if(!B||!D.current)return;const X=requestAnimationFrame(()=>{var Ce;const pe=((y==null?void 0:y.previews)??[]).length+1;(Ce=D.current)==null||Ce.scrollTo(pe)});return()=>cancelAnimationFrame(X)},[B,y==null?void 0:y.previews]),m.useEffect(()=>{if(!O.current)return;O.current=!1;const ie=D.current;if(!ie)return;const ae=((y==null?void 0:y.previews)??[]).length;requestAnimationFrame(()=>ie.scrollTo(ae))},[y==null?void 0:y.previews]),m.useEffect(()=>()=>{D.current=null},[]),s.jsxs(v.Stack,{gap:"xs","data-test-id":"video-settings-cover-section",children:[s.jsx(v.Text,{className:"video-settings-modal-section-title","data-test-id":"video-settings-cover-title",children:r}),N&&s.jsxs(v.Group,{gap:"xs",mb:"xs",children:[s.jsx(v.Text,{size:"sm",c:"red",children:c}),d&&s.jsx(v.Button,{variant:"light",size:"xs",onClick:J,children:d})]}),s.jsxs(mf.Carousel,{className:"video-settings-modal-cover-carousel",classNames:{controls:"video-settings-modal-cover-controls",control:"video-settings-modal-cover-control"},slideSize:"33.333%",slideGap:"10px",emblaOptions:{loop:!1},withControls:q,draggable:Y>1,nextControlIcon:s.jsx($,{icon:Fi,size:20,color:"currentColor"}),previousControlIcon:s.jsx($,{icon:uA,size:20,color:"currentColor"}),getEmblaApi:ie=>{D.current=ie},children:[s.jsx(mf.Carousel.Slide,{children:s.jsx(v.Box,{className:"video-settings-modal-cover-cell",children:s.jsx(Og.Dropzone,{className:"video-settings-modal-cover-upload",onDrop:xe,accept:Og.IMAGE_MIME_TYPE,maxFiles:1,disabled:!f,style:f?void 0:{opacity:.7,pointerEvents:"none"},children:s.jsxs(v.Box,{className:"video-settings-modal-cover-upload-inner",children:[s.jsx($,{icon:fA,size:20,color:"var(--mantine-color-bright)"}),s.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-cover-upload-label",children:o})]})})})}),W.map(ie=>{const X=we!=null?ie.url===we:F!=null&&ie.id===F,ae=M.has(ie.id),pe=I.has(ie.id);return s.jsx(mf.Carousel.Slide,{children:s.jsxs(v.Box,{className:`video-settings-modal-cover-cell video-settings-modal-cover-thumb ${X&&!pe?"selected":""} ${ae?"loading":""} ${pe?"error":""}`,onClick:()=>{pe||(k(ie.id),C==null||C(ie.url))},role:"button",tabIndex:0,onKeyDown:Ce=>Ce.key==="Enter"&&!pe&&(()=>{k(ie.id),C==null||C(ie.url)})(),children:[s.jsx("img",{src:ie.url,alt:"",onLoad:()=>ee(ie.id),onError:()=>Q(ie.id)}),ae&&s.jsx("span",{className:"video-settings-modal-cover-spinner","aria-hidden":!0,children:s.jsx(v.Loader,{size:"sm",color:"gray"})}),pe&&s.jsx("span",{className:"video-settings-modal-cover-error-icon","aria-hidden":!0,children:s.jsx($,{icon:t1,size:24,color:"#fff"})}),X&&!pe&&s.jsx("span",{className:"video-settings-modal-cover-check","aria-hidden":!0,children:s.jsx(l_,{size:32})})]})},ie.id)})]})]})}function P_({cancelLabel:e,saveLabel:n,onCancel:t,onSave:r,isSaving:o}){return s.jsxs(v.Group,{justify:"flex-end",gap:8,children:[s.jsx(v.Button,{size:"sm",variant:"subtle",color:"gray",radius:"md",onClick:t,disabled:o,"data-test-id":"video-settings-cancel",children:e}),s.jsx(v.Button,{size:"sm",radius:"md",onClick:r,loading:o,"data-test-id":"video-settings-save",children:n})]})}const ku=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}],LC="ru",Zh=ku.reduce((e,n)=>(e[n.value]=n.label,e),{});function B_({videoId:e,baseUrl:n,authToken:t,statusSubtitles:r,onTracksChange:o,onSave:i}){const{t:l}=Ue.useTranslation(),{reportError:c}=sp(),d=lp,[f,h]=m.useState([]),[g,C]=m.useState([]),b=m.useRef(new Map),[y,x]=m.useState(!1),w=m.useMemo(()=>f.find(wu)??null,[f]);m.useEffect(()=>{w&&x(w.isDisabled)},[w]);const k=m.useMemo(()=>({baseUrl:n,authToken:t}),[n,t]),T=m.useCallback(D=>{w&&(x(D),h(O=>O.map(W=>W.id===w.id?{...W,isDisabled:D}:W)))},[w]),R=m.useRef(null);m.useEffect(()=>{w&&R.current===null&&(R.current=w.isDisabled)},[w]);const N=m.useCallback(async(D=!1)=>{if(e){if(D||r==null)try{const O=await kC(e,k);h(O);return}catch{}try{const O=await kC(e,k);h(O)}catch{if(r!=null){const O=(r||[]).map(Ys).filter(W=>W.id);h(O)}else try{const O=await Hs(e),W=((O==null?void 0:O.subtitles)||[]).map(Ys).filter(K=>K.id);h(W)}catch(O){c(O,"subtitles",e)}}}},[e,k,c,r]);m.useEffect(()=>{if(!e){h([]),C([]);return}N().catch(()=>{})},[e,N]),m.useEffect(()=>{o==null||o(f)},[f,o]),m.useEffect(()=>{i==null||i(async()=>{!e||!w||y!==R.current&&(await u_(e,w.id,y,k),R.current=y)})},[i,e,w,y,k]);const L=m.useMemo(()=>{const D=f.filter(W=>!wu(W)),O=new Map;for(const W of D)O.set(W.lang,W);return Array.from(O.values())},[f]),M=m.useMemo(()=>{const D=new Set(L.map(O=>O.lang));return g.forEach(O=>{O.lang&&D.add(O.lang)}),D},[L,g]),S=m.useCallback(()=>{var W;const D=((W=ku.find(K=>!M.has(K.value)))==null?void 0:W.value)??(M.has(LC)?null:LC),O=D?Zh[D]||D:null;C(K=>[...K,{id:crypto.randomUUID(),lang:D,label:O,status:"draft"}])},[M]),I=m.useCallback((D,O)=>{C(W=>W.map(K=>K.id===D?{...K,...O}:K))},[]),j=m.useCallback(async(D,O)=>{if(!e)return;const W=g.find(F=>F.id===D);if(!(W!=null&&W.lang))return;const K=new AbortController;b.current.set(D,K),I(D,{status:"uploading",fileName:O.name});try{const F=await c_(e,O,{lang:W.lang,label:W.label||Zh[W.lang]||W.lang,kind:"subtitles",default:!1,signal:K.signal},k);b.current.delete(D),C(Y=>Y.filter(q=>q.id!==D)),F?h(Y=>Y.find(q=>q.id===F.id)?Y:[...Y,F]):await N(!0)}catch(F){b.current.delete(D),I(D,{status:"error"}),c(F,"subtitles",e)}},[e,g,k,N,I,c]),B=m.useCallback(async D=>{e&&(h(O=>O.filter(W=>W.id!==D)),await d_(e,D,k))},[e,k]),_=m.useCallback(D=>{C(O=>O.filter(W=>W.id!==D))},[]);return s.jsxs("div",{className:"video-settings-modal-subtitles",children:[w&&s.jsxs(v.Flex,{align:"center",gap:"md",className:"video-settings-modal-subtitles-auto-toggle",children:[s.jsx(v.Text,{size:"sm",fw:500,c:"var(--mantine-color-bright)",flex:1,children:l("editor.video.settingsModal.hideAutoSubtitles")}),s.jsx(v.Switch,{size:"sm",checked:y,onChange:D=>T(D.currentTarget.checked)})]}),w&&s.jsx(v.Divider,{my:4}),s.jsx(v.Text,{size:"sm",mb:0,className:"video-settings-modal-subtitles-label video-settings-modal-text-label",children:l("editor.video.settingsModal.uploadSubtitlesManually")}),L.map(D=>s.jsxs(v.Flex,{align:"center",gap:"xs",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[s.jsx(d,{size:"sm",data:ku,value:D.lang,disabled:!0,flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},classNames:{input:"video-settings-modal-language-select"}}),s.jsxs(v.Flex,{align:"center",gap:6,flex:1,children:[s.jsx(To,{size:20,color:"var(--mantine-color-green-6)"}),s.jsx(v.Text,{size:"sm","data-test-id":"video-settings-subtitle-success",children:l("editor.video.settingsModal.successfullyLoaded")})]}),s.jsxs(v.Menu,{position:"bottom-end",children:[s.jsx(v.Menu.Target,{children:s.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions","data-test-id":"video-settings-subtitle-row-menu",children:s.jsx(cp,{size:20})})}),s.jsx(v.Menu.Dropdown,{children:s.jsx(v.Menu.Item,{color:"red",onClick:()=>B(D.id),"data-test-id":"video-settings-subtitle-delete",children:l("editor.video.settingsModal.deleteSubtitle")})})]})]},D.id)),g.map(D=>s.jsx(__,{draft:D,usedLanguages:M,onChange:O=>I(D.id,O),onUpload:O=>j(D.id,O),onRemove:()=>_(D.id),SelectComponent:d},D.id)),s.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:S,"data-test-id":"video-settings-subtitle-add",children:l("editor.video.settingsModal.addSubtitleTrack")})]})}function __({draft:e,usedLanguages:n,onChange:t,onUpload:r,onRemove:o,SelectComponent:i}){const{t:l}=Ue.useTranslation(),c=m.useRef(null),d=m.useMemo(()=>ku.filter(h=>h.value===e.lang||!n.has(h.value)),[n,e.lang]),f=h=>{var C;const g=(C=h.target.files)==null?void 0:C[0];h.target.value="",g&&r(g)};return s.jsx(v.Box,{children:s.jsxs(v.Flex,{align:"center",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[s.jsx(i,{size:"sm",placeholder:l("editor.video.settingsModal.selectLanguage"),data:d,value:e.lang,onChange:h=>t({lang:h,label:h?Zh[h]:null}),flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},inputClassName:"video-settings-modal-language-select"}),s.jsx(v.Flex,{align:"center",gap:6,flex:1,children:e.status==="uploading"?s.jsx(v.Loader,{size:22}):s.jsxs(s.Fragment,{children:[s.jsx("input",{ref:c,type:"file",accept:".srt,.vtt",hidden:!0,onChange:f}),s.jsx(v.Button,{variant:"light",size:"sm",className:"video-settings-modal-upload-button",disabled:!e.lang,onClick:()=>{var h;return(h=c.current)==null?void 0:h.click()},"data-test-id":"video-settings-subtitle-upload-file",children:l("editor.video.settingsModal.uploadFile")})]})}),s.jsxs(v.Menu,{position:"bottom-end",children:[s.jsx(v.Menu.Target,{children:s.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:s.jsx(cp,{size:20})})}),s.jsx(v.Menu.Dropdown,{children:s.jsx(v.Menu.Item,{color:"red",onClick:o,children:l("editor.video.settingsModal.deleteSubtitle")})})]}),e.status==="error"&&s.jsx(v.Text,{size:"sm",c:"red",children:l("editor.video.settingsModal.uploadError")})]})})}function NC({opened:e,onClose:n,videoId:t,initialStatus:r,onStatusChange:o,onPosterChange:i,onChaptersSaved:l,onChaptersDisabledChange:c,onSubtitlesSaved:d,posterUrl:f,chaptersDisabled:h=!1,shakaPlayer:g,nativeVideo:C,videoDuration:b,playerMode:y="native"}){const{t:x}=Ue.useTranslation(),[w,k]=m.useState(h),[T,R]=m.useState(null),[N,L]=m.useState(r??null),[M,S]=m.useState([]),I=m.useRef(null),j=m.useRef(null),[B,_]=m.useState(!1),D=m.useCallback(F=>{R(F)},[]);m.useEffect(()=>{r&&L(r)},[r]),m.useEffect(()=>{!e||!t||Hs(t).then(F=>{F&&(L(F),o==null||o(F))}).catch(()=>{})},[e,t]),m.useEffect(()=>{e&&k(h)},[e,h]);const O=m.useCallback(async F=>{if(t)return PB(t,F)},[t]),W=m.useCallback(async()=>{_(!0);try{if(I.current){const F=await I.current();Array.isArray(F)&&(l==null||l(F))}if(c==null||c(w),j.current&&await j.current(),d==null||d(M),T!==null&&(i==null||i(T)),t){const F=await Hs(t);o==null||o(F)}n()}finally{_(!1)}},[t,w,c,l,n,i,o,d,T,M]),K=s.jsxs(s.Fragment,{children:[s.jsx(v.Box,{className:"video-settings-modal-body",children:s.jsxs(v.Stack,{gap:32,children:[s.jsx(O_,{opened:e,videoId:t,initialStatus:N,title:x("editor.video.settingsModal.cover"),uploadLabel:x("editor.video.settingsModal.uploadFile"),cropLabel:x("editor.video.settingsModal.cropCoverImage"),emptyCoverLabel:x("editor.video.settingsModal.emptyCovers"),loadErrorLabel:x("editor.video.settingsModal.loadError"),retryLabel:x("editor.video.settingsModal.retry"),onCoverUpload:O,onSelectedPosterChange:D,selectedPosterUrl:T??f??null}),s.jsxs(v.Stack,{gap:"xs",children:[s.jsxs(v.Flex,{align:"center",gap:6,children:[s.jsx(v.Text,{className:"video-settings-modal-section-title",children:x("editor.video.settingsModal.subtitles")}),s.jsx(v.Tooltip,{label:x("editor.video.settingsModal.subtitlesFormatHint"),position:"right",withArrow:!0,children:s.jsx($,{icon:Ck,size:16,color:"var(--mantine-color-dimmed)"})})]}),s.jsx(B_,{videoId:t,mode:y,shakaPlayer:g,nativeVideo:C,statusSubtitles:N==null?void 0:N.subtitles,onTracksChange:S,onSave:F=>{j.current=F}})]}),s.jsx(D_,{videoId:t,initialChapters:N==null?void 0:N.chapters,nativeVideo:C,shakaPlayer:g,videoDuration:b,title:x("editor.video.settingsModal.chapters"),customLabel:x("editor.video.settingsModal.chaptersCustom"),dontShowLabel:x("editor.video.settingsModal.chaptersDontShow"),chaptersDisabled:w,onChaptersDisabledChange:k,onSave:F=>{I.current=F},timePlaceholder:x("editor.video.settingsModal.chaptersTimePlaceholder"),titlePlaceholder:x("editor.video.settingsModal.chaptersTitlePlaceholder"),endTimePlaceholder:x("editor.video.settingsModal.chaptersEndTimePlaceholder"),addChapterLabel:x("editor.video.settingsModal.addChapter"),deleteChapterLabel:x("editor.video.settingsModal.deleteChapter"),emptyLabel:x("editor.video.settingsModal.emptyChapters"),errorLabel:x("editor.video.settingsModal.chaptersError"),invalidRangeLabel:x("editor.video.settingsModal.chaptersInvalidTimeRange"),addTranscriptManuallyLabel:x("editor.video.settingsModal.addTranscriptManually")})]})}),s.jsx(v.Box,{className:"video-settings-modal-footer",children:s.jsx(P_,{cancelLabel:x("editor.video.settingsModal.cancel"),saveLabel:x("editor.video.settingsModal.save"),onCancel:n,onSave:W,isSaving:B})})]});return rt?s.jsx(v.Drawer,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),position:"bottom",size:"auto",radius:"lg",zIndex:300,className:"video-settings-modal",classNames:{content:"video-settings-drawer",header:"video-settings-drawer__header",title:"video-settings-drawer__title",body:"video-settings-drawer__body"},children:K}):s.jsx(v.Modal,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),size:"md",radius:"lg",zIndex:300,className:"video-settings-modal",children:K})}function jC(e){if(e==="inherit")return 100;if(typeof e=="number")return e;if(typeof e=="string"){const n=parseFloat(e);if(!isNaN(n))return n}return 100}function F_({className:e,format:n,platform:t,videoID:r,editor:o,nodeKey:i,width:l,height:c,alignment:d}){const f=q1,[h,{open:g,close:C}]=Ft.useDisclosure(!1),[,b]=m.useState(!1),[y,x]=m.useState(!0),[w,k]=m.useState(!1),[T,R]=m.useState(!1),[N,L]=m.useState(null),[M,S]=m.useState(!1),[I,j]=m.useState(null),[B,_]=m.useState(null),[D,O]=m.useState(null),[W,K]=m.useState(!0),[F,Y]=m.useState(!1),[q,ee]=m.useState({shakaPlayer:null,nativeVideo:null,mode:"native",containerEl:null,videoDuration:null}),Q=m.useMemo(()=>t==="download"||t==="link"?ri(t,r):null,[t,r]),{t:J}=Ue.useTranslation(),xe=(G,he=!1,oe,H)=>{iy(o,i,{url:G,isLink:he,platformOverride:oe,overrideId:H})||b(!0)},we=(G,he)=>{K_(o,i,G,he)},Te=G=>{x(["video-preview"].includes(G))},We=()=>{var he,oe,H;const G=document.pictureInPictureElement;if(G){const Z=((oe=(he=q.shakaPlayer)==null?void 0:he.getMediaElement)==null?void 0:oe.call(he))||null,re=q.nativeVideo||null,fe=q.containerEl||null,ge=G instanceof HTMLVideoElement&&(re&&re.currentSrc===G.currentSrc||Z&&Z.currentSrc===G.currentSrc);(G===Z||G===re||fe&&fe.contains(G)||ge)&&((H=document.exitPictureInPicture)==null||H.call(document).catch(()=>{}))}Z_(o,i)},ie=m.useCallback(G=>{L(G),U_(o,i,G)},[o,i]),X=m.useCallback(G=>{S(G),Y_(o,i,G)},[o,i]),ae=m.useCallback(G=>{ee(G)},[]);m.useEffect(()=>{o.getEditorState().read(()=>{const G=p.$getNodeByKey(i);ta(G)&&(L(G.getPosterUrl()||null),S(G.getChaptersDisabled()))})},[o,i]);const pe=M?[]:I,Ce={className:e,format:n,nodeKey:i,onUploadComplete:(G,he)=>{xe(G,!1,"download",he)},onStateChange:Te,initialVideoState:r&&(t==="download"||t==="link"||t==="youtube"||t==="vk"||t==="rutube")?"video-preview":void 0};return s.jsx(I1,{editor:o,isIcon:!1,isEmbed:!0,width:jC(l),height:jC(c),onResizeEnd:we,alignment:d,type:"video",disableInteractions:!y||T,children:s.jsxs("div",{className:"media-wrapper",children:[rt?s.jsxs(s.Fragment,{children:[s.jsx(AC,{className:"visible",children:s.jsx(Jt,{label:J("editor.video.mobile.actions"),tooltipDisabled:!0,icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":J("editor.video.mobile.actions"),className:"media-action",onClick:G=>{G.stopPropagation(),g()}})}),s.jsx(Bt,{opened:h,onClose:C,title:J("editor.video.mobile.actions"),children:s.jsxs(v.Stack,{gap:4,p:0,children:[W&&F&&s.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{C(),R(!0)},leftSection:s.jsx($,{icon:Zg,size:16,color:"var(--mantine-color-dimmed)"}),children:J("editor.video.player.settings")}),s.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{C(),We()},leftSection:s.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:J("editor.video.delete")})]})}),W&&F&&s.jsx(NC,{opened:T,onClose:()=>R(!1),videoId:r,initialStatus:D,onStatusChange:O,posterUrl:N,onPosterChange:ie,onChaptersSaved:G=>j(G),onSubtitlesSaved:G=>_(G),chaptersDisabled:M,onChaptersDisabledChange:X,shakaPlayer:q.shakaPlayer,nativeVideo:q.nativeVideo,playerMode:q.mode,videoDuration:q.videoDuration})]}):s.jsxs(AC,{children:[W&&F&&s.jsxs(s.Fragment,{children:[s.jsx(Jt,{label:J("editor.video.player.settings"),"aria-label":"Settings",icon:Zg,iconColor:"var(--mantine-color-gray-text)",onClick:G=>{G.stopPropagation(),R(!0)}}),s.jsx(NC,{opened:T,onClose:()=>R(!1),videoId:r,initialStatus:D,onStatusChange:O,posterUrl:N,onPosterChange:ie,onChaptersSaved:G=>j(G),onSubtitlesSaved:G=>_(G),chaptersDisabled:M,onChaptersDisabledChange:X,shakaPlayer:q.shakaPlayer,nativeVideo:q.nativeVideo,playerMode:q.mode,videoDuration:q.videoDuration})]}),f&&s.jsx(f,{opened:w,setOpened:k,t:J,editor:o,nodeKey:i}),s.jsx(Jt,{label:J("editor.video.delete"),"aria-label":"Delete",icon:sn,iconColor:"var(--mantine-color-red-6)",onClick:We})]}),s.jsx(T_,{...Ce,initialVideoId:r,posterUrl:N,chaptersOverride:pe,subtitlesOverride:B,platform:t,fallbackNativeVideoUrl:Q,onStatusChange:O,onStatusAvailabilityChange:K,onOptimizedReadyChange:Y,onPlayerInfo:ae})]})})}function W_(e){return s.jsx(F_,{...e})}function RC(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("data-lexical-videoid"),r=e.getAttribute("src"),o=e.getAttribute("poster"),i=e.getAttribute("data-lexical-chapters-disabled")==="true",l=parseFloat(e.getAttribute("width")??"100%"),c=parseFloat(e.getAttribute("height")??"100%"),d=e.getAttribute("data-lexical-alignment")||e.style.justifyContent||"left";if(n==="upload"||n==="unknown"&&!t&&!r){const C=Gh("upload",l,c,d,!0);return o&&C.setPosterUrl(o),i&&C.setChaptersDisabled(!0),{node:C}}const h=n||null,g=(typeof t=="string"&&t.length>0?t:null)||r||null;if(h&&g){const C=Gh(ri(h,g),l,c,d);return h==="download"&&r&&C.setUrl(r),o&&C.setPosterUrl(o),i&&C.setChaptersDisabled(!0),{node:C}}return{node:null}}class Gi extends p.DecoratorNode{constructor(t,r,o,i,l,c,d="left",f){super(c);Ne(this,"__platform");Ne(this,"__id");Ne(this,"__url");Ne(this,"__posterUrl");Ne(this,"__chaptersDisabled");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");Ne(this,"__format");this.__platform=t,this.__id=r,this.__url="",this.__posterUrl="",this.__chaptersDisabled=!1,this.__create=f||!1,this.__width=i||560,this.__height=l||315,this.__alignment=d||"left",this.__format=o??null}static getType(){return"video"}static clone(t){const r=new Gi(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create);return r.__url=t.__url,r.__posterUrl=t.__posterUrl,r.__chaptersDisabled=t.__chaptersDisabled,r}static importJSON(t){let r=t.videoID;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)&&t.url){const l=t.url.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);l&&(r=l[1])}const i=new Gi(t.platform,r,t.format??null,t.width,t.height,void 0,t.alignment??"left",t.create);return t.url&&i.setUrl(t.url),t.posterUrl&&i.setPosterUrl(t.posterUrl),typeof t.chaptersDisabled=="boolean"&&i.setChaptersDisabled(t.chaptersDisabled),t.create&&i.setCreated(!0),i}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,url:this.__url,posterUrl:this.__posterUrl,chaptersDisabled:this.__chaptersDisabled,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment,format:this.__format}}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid");return r!=="download"&&typeof o=="string"?{conversion:RC,priority:1}:null},video:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid"),i=t.getAttribute("src");return(r==="download"||r==="link")&&(typeof o=="string"||typeof i=="string")?{conversion:RC,priority:1}:null}}}isInline(){return!1}createDOM(){const t=document.createElement("div");return t.className="video-container",t.style.justifyContent=this.__alignment||"left",t.style.display="flex",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__platform==="download"||this.__platform==="link"?"video":"iframe",r=document.createElement(t),o=this.__platform==="download"&&this.__url?this.__url:this.__id,i=ri(this.__platform,o),l=i==="upload"?"":i;this.__platform==="download"||this.__platform==="link"?(r.setAttribute("controls","true"),this.__posterUrl&&r.setAttribute("poster",this.__posterUrl)):(r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true")),r.setAttribute("src",l),r.setAttribute("data-lexical-platform",this.__platform),r.setAttribute("data-lexical-videoid",this.__id),r.setAttribute("data-lexical-alignment",this.__alignment||"left"),this.__chaptersDisabled&&r.setAttribute("data-lexical-chapters-disabled","true"),r.setAttribute("width",this.__width.toString()+"%"),r.setAttribute("height",this.__height.toString()+"%"),r.setAttribute("style","aspect-ratio: 128 / 72 ");const c=document.createElement("span");return c.setAttribute("data-src",l),c.className="video-container",c.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",c.appendChild(r),{element:c}}decorate(t,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return m.createElement(W_,{editor:t,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(t){const r=this.getWritable();r.__platform=t}setFormat(t){const r=this.getWritable();r.__format=t}setId(t){const r=this.getWritable();r.__id=t}setUrl(t){const r=this.getWritable();r.__url=t}setPosterUrl(t){const r=this.getWritable();r.__posterUrl=t}setChaptersDisabled(t){const r=this.getWritable();r.__chaptersDisabled=t}setCreated(t){const r=this.getWritable();r.__create=t}getId(){return this.__id}getUrl(){return this.__url}getPosterUrl(){return this.__posterUrl}getChaptersDisabled(){return this.__chaptersDisabled}getFormat(){return this.__format}setAlignment(t){const r=this.getWritable();r.__alignment=t}getTextContent(){const t=this.__platform==="download"&&this.__url?this.__url:this.__id;return ri(this.__platform,t)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function Gh(e,n,t,r,o){const i=e.startsWith("https")||e.startsWith("http"),{platform:l,id:c}=Q5(e,i);return new Gi(l,c||"",void 0,n,t,void 0,r,o)}function ta(e){return e instanceof Gi}function z_(e,n){e.update(()=>{const t=Gh(n,"100%","100%","left",n==="upload");t.setChaptersDisabled(!0),zs(t)},{tag:"skip-scroll-into-view"})}function iy(e,n,{url:t,isLink:r=!1,platformOverride:o,overrideId:i}){const{platform:l,id:c}=o&&i?{platform:o,id:i}:Q5(t,r);if(!c&&l!=="upload")return!1;const d=c??"";return e.update(()=>{const f=p.$getNodeByKey(n);if(!f||!ta(f))return;f.setPlatform(l),f.setId(d),f.setUrl(t),f.setCreated(!1);const h=f.getNextSibling();h&&p.$setSelection(h.selectNext())},{tag:"skip-scroll-into-view"}),!0}function K_(e,n,t,r){e.update(()=>{const o=p.$getNodeByKey(n);!o||!ta(o)||o.setWidthAndHeight(t,r)},{tag:"skip-scroll-into-view"})}function U_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!ta(r)||r.setPosterUrl(t||"")},{tag:"skip-scroll-into-view"})}function H_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!ta(r)||r.setUrl(t)},{tag:"skip-scroll-into-view"})}function Y_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!ta(r)||r.setChaptersDisabled(t)},{tag:"skip-scroll-into-view"})}function Z_(e,n){Lu(e,n)}function G_(){const[e]=ot.useLexicalComposerContext(),{t:n}=Ue.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,onTrack:o}=sp();return m.useEffect(()=>{if(!e.hasNodes([Gi]))throw new Error("VideoPlugin: VideoNode not registered on editor");const i=l=>{if(l.length>1){At.showErrorNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}const c=l[0];if(!c)return;if(!(c.type.includes("video/")||c.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i))){At.showErrorNotification({message:n("editor.video.errors.format")});return}if(c.size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}o==null||o("media_video_added",{source:"upload"}),e.dispatchCommand(Yh,"upload"),setTimeout(()=>{e.dispatchCommand(q5,l)})};return t!=null&&t.current&&(t.current.insertVideos=i),e.registerCommand(Yh,l=>(z_(e,l),!1),p.COMMAND_PRIORITY_LOW)},[e,t,r,n,o]),null}function V_(e){return{key:"video",node:Gi,Plugin:G_,modes:{comment:!1,default:!0,editor:!0},Provider:({children:t,imperativeHandleRef:r})=>s.jsx(jB,{config:e,imperativeHandleRef:r,children:t}),slashMenu:{parentKey:"media",name:"editor.menu.media.video.name",description:"editor.menu.media.video.subtitle",hint:"editor.menu.media.video.hint.description",keywords:["video","youtube","rutube","vkvideos","mp4","webm","media"],icon:s.jsx($,{icon:Wk,size:16}),command:Yh,commandPayload:"upload"}}}function q_(e,n=!0){const t=n?"rootStart":"rootEnd";e.focus(()=>{},{defaultSelection:t})}exports.$createExcalidrawNode=O1;exports.$createNewParagraph=RA;exports.$isEquationNode=_o;exports.$isExcalidrawNode=UT;exports.$isImageNode=Pr;exports.$tr=Za;exports.$writeImagePickerTabToNode=lh;exports.ActionIcon=Jt;exports.AlignmentImage=q1;exports.AlignmentMenu=vb;exports.CREATE_TEMPLATE=IA;exports.Context=ft;exports.EDITOR_UI_MIN_Z_INDEX=Ts;exports.Editor=G5;exports.ExcalidrawNode=hi;exports.HugeiconsIcon=$;exports.INSERT_EXCALIDRAW_COMMAND=Mb;exports.IS_HOVER_CAPABLE=gi;exports.IS_TOUCH_DEVICE=rt;exports.IS_TOUCH_TABLET=Yn;exports.Icon=bn;exports.ImageNode=gr;exports.ImagePicker=K5;exports.K1=qn;exports.MediaActionMenu=c5;exports.MobileDrawer=Bt;exports.O1=Gs;exports.OPEN_EQUATION_POPUP_COMMAND=nu;exports.PreviewImage=u5;exports.ResizableContainer=I1;exports.StylesProvider=Z5;exports.Tm=Is;exports.UPLOAD_IMAGE_COMMAND=Rb;exports.blockScroll=Vs;exports.commonjsGlobal=wa;exports.createMediaComponent=zs;exports.createPopupKeyDownHandler=p5;exports.deleteNode=Lu;exports.downloadImageFromExternalUrl=l5;exports.focusEditor=q_;exports.getDefaultExportFromCjs=fD;exports.gn=cA;exports.inferImageFilenameFromUrl=a5;exports.lg=sn;exports.mediaMap=Lr;exports.parseContainerSize=wb;exports.tf=dA;exports.unblockScroll=Ki;exports.useCancelUpload=FA;exports.useExcalidrawBehaviour=HT;exports.useSettings=F1;exports.useSharedHistoryContext=W1;exports.videoPlugin=V_;
|